From e85cb70b8a0b817f76477f381ff323e1cad1d821 Mon Sep 17 00:00:00 2001 From: KonstantIMP Date: Sun, 16 Jan 2022 12:06:41 +0300 Subject: [PATCH 01/16] Worh with livraries linker * Remove useless gtkd.Paths * Replace gtkd.Linker with linker.Linker because this class is not part of gtk and should have own package * Add LinkException - only for link errors --- src/gtkd/paths.d | 139 ---------------------------------- src/linker/Exception.d | 33 ++++++++ src/{gtkd => linker}/Loader.d | 15 +--- 3 files changed, 37 insertions(+), 150 deletions(-) delete mode 100644 src/gtkd/paths.d create mode 100644 src/linker/Exception.d rename src/{gtkd => linker}/Loader.d (97%) diff --git a/src/gtkd/paths.d b/src/gtkd/paths.d deleted file mode 100644 index 38d9a3264..000000000 --- a/src/gtkd/paths.d +++ /dev/null @@ -1,139 +0,0 @@ -/* - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - * - * paths.d -- list of libraries that will be dynamically linked with gtkD - * - * Added: John Reimer -- 2004-12-20 - * Updated: 2005-02-21 changed names; added version(linux) - * Updated: 2005-05-05 updated Linux support - * Updated: 2008-02-16 Tango support - */ - -module gtkd.paths; - -/* - * Define the Libraries that gtkD will be using. - * This is a growable list, as long as the programmer - * also adds to the importLibs list. - */ - -enum LIBRARY -{ - ATK, - CAIRO, - GDK, - GDKPIXBUF, - GLIB, - GMODULE, - GOBJECT, - GIO, - GTHREAD, - GTK, - PANGO, - PANGOCAIRO, - GLGDK, - GLGTK, - GDA, - GSV, - GSV1, - GSTREAMER, - GSTINTERFACES, - VTE, - PEAS, - RSVG, -} - -version (Windows) -{ - const string[LIBRARY.max+1] importLibs = - [ - LIBRARY.ATK: "libatk-1.0-0.dll", - LIBRARY.CAIRO: "libcairo-2.dll", - LIBRARY.GDK: "libgdk-3-0.dll", - LIBRARY.GDKPIXBUF: "libgdk_pixbuf-2.0-0.dll", - LIBRARY.GLIB: "libglib-2.0-0.dll", - LIBRARY.GMODULE: "libgmodule-2.0-0.dll", - LIBRARY.GOBJECT: "libgobject-2.0-0.dll", - LIBRARY.GIO: "libgio-2.0-0.dll", - LIBRARY.GTHREAD: "libgthread-2.0-0.dll", - LIBRARY.GTK: "libgtk-3-0.dll", - LIBRARY.PANGO: "libpango-1.0-0.dll", - LIBRARY.PANGOCAIRO: "libpangocairo-1.0-0.dll", - LIBRARY.GLGDK: "libgdkglext-3.0-0.dll", - LIBRARY.GLGTK: "libgtkglext-3.0-0.dll", - LIBRARY.GDA: "libgda-4.0-4.dll", - LIBRARY.GSV: "libgtksourceview-4-0.dll", - LIBRARY.GSTREAMER: "libgstreamer-1.0.dll", - LIBRARY.GSTINTERFACES: "libgstvideo-1.0.dll", - LIBRARY.VTE: "libvte-2.91.dll", - LIBRARY.PEAS: "libpeas-1.0.dll", - LIBRARY.RSVG: "librsvg-2-2.dll", - ]; -} -else version(darwin) -{ - const string[LIBRARY.max+1] importLibs = - [ - LIBRARY.ATK: "libatk-1.0.dylib", - LIBRARY.CAIRO: "libcairo.dylib", - LIBRARY.GDK: "libgdk-3.0.dylib", - LIBRARY.GDKPIXBUF: "libgdk_pixbuf-2.0.dylib", - LIBRARY.GLIB: "libglib-2.0.dylib", - LIBRARY.GMODULE: "libgmodule-2.0.dylib", - LIBRARY.GOBJECT: "libgobject-2.0.dylib", - LIBRARY.GIO: "libgio-2.0.dylib", - LIBRARY.GTHREAD: "libgthread-2.0.dylib", - LIBRARY.GTK: "libgtk-3.0.dylib", - LIBRARY.PANGO: "libpango-1.0.dylib", - LIBRARY.PANGOCAIRO: "libpangocairo-1.0.dylib", - LIBRARY.GLGDK: "libgdkglext-3.0.dylib", - LIBRARY.GLGTK: "libgtkglext-3.0.dylib", - LIBRARY.GDA: "libgda-2.dylib", - LIBRARY.GSV: "libgtksourceview-4.0.dylib", - LIBRARY.GSTREAMER: "libgstreamer-1.0.dylib", - LIBRARY.GSTINTERFACES: "libgstvideo-1.0.dylib", - LIBRARY.VTE: "libvte-2.91.dylib", - LIBRARY.PEAS: "libpeas-1.0.dylib", - LIBRARY.RSVG: "librsvg-2.dylib", - ]; -} -else -{ - const string[LIBRARY.max+1] importLibs = - [ - LIBRARY.ATK: "libatk-1.0.so.0", - LIBRARY.CAIRO: "libcairo.so.2", - LIBRARY.GDK: "libgdk-3.so.0", - LIBRARY.GDKPIXBUF: "libgdk_pixbuf-2.0.so.0", - LIBRARY.GLIB: "libglib-2.0.so.0", - LIBRARY.GMODULE: "libgmodule-2.0.so.0", - LIBRARY.GOBJECT: "libgobject-2.0.so.0", - LIBRARY.GIO: "libgio-2.0.so.0", - LIBRARY.GTHREAD: "libgthread-2.0.so.0", - LIBRARY.GTK: "libgtk-3.so.0", - LIBRARY.PANGO: "libpango-1.0.so.0", - LIBRARY.PANGOCAIRO: "libpangocairo-1.0.so.0", - LIBRARY.GLGDK: "libgdkglext-3.0.so.0", - LIBRARY.GLGTK: "libgtkglext-3.0.so.0", - LIBRARY.GDA: "libgda-4.0.so.4", - LIBRARY.GSV: "libgtksourceview-4.so.0", - LIBRARY.GSTREAMER: "libgstreamer-1.0.so.0", - LIBRARY.GSTINTERFACES: "libgstvideo-1.0.so.0", - LIBRARY.VTE: "libvte-2.91.so.0", - LIBRARY.PEAS: "libpeas-1.0.so.0", - LIBRARY.RSVG: "librsvg-2.so.2", - ]; -} diff --git a/src/linker/Exception.d b/src/linker/Exception.d new file mode 100644 index 000000000..4e8789442 --- /dev/null +++ b/src/linker/Exception.d @@ -0,0 +1,33 @@ +/* + * This file is part of gtkD. + * + * gtkD is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License + * as published by the Free Software Foundation; either version 3 + * of the License, or (at your option) any later version, with + * some exceptions, please read the COPYING file. + * + * gtkD is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with gtkD; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA + */ +module linker.Exception; + +import std.exception; + +/** + * Exception for librarie loading errors + */ +class LinkException : Exception { + this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable nextInChain = null) pure nothrow @nogc @safe { + super(msg, file, line, nextInChain); + } +} + + + diff --git a/src/gtkd/Loader.d b/src/linker/Loader.d similarity index 97% rename from src/gtkd/Loader.d rename to src/linker/Loader.d index 19c8be537..4e2463b2a 100644 --- a/src/gtkd/Loader.d +++ b/src/linker/Loader.d @@ -16,14 +16,13 @@ * along with gtkD; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA */ - -module gtkd.Loader; +module linker.Loader; import std.algorithm : canFind; import std.stdio; import std.string; -import gtkd.paths; +import linker.Exception; public struct Linker { @@ -32,7 +31,7 @@ public struct Linker extern(C) static void unsupportedSymbol() { - throw new Error("The function you are calling is not pressent in your version of GTK+."); + throw new Error("The function you are calling is not pressent in your version of one of loaded libraries"); } /* @@ -101,7 +100,7 @@ public struct Linker } if ( handle is null ) - throw new Exception("Library load failed ("~ library ~"): "~ getErrorMessage()); + throw new LinkException("Library load failed ("~ library ~"): "~ getErrorMessage()); loadedLibraries[library] = handle; } @@ -166,12 +165,6 @@ public struct Linker return false; } - ///Ditto - public static bool isLoaded(const string[] libraries) - { - return isLoaded(libraries[0]); - } - /** * Gets all the failed loads for a specific library. * returns: An array of the names hat failed to load for a specific library From 03f334c828a95e6c75724ce3d87f4384ea74ea17 Mon Sep 17 00:00:00 2001 From: KonstantIMP Date: Sun, 16 Jan 2022 12:30:52 +0300 Subject: [PATCH 02/16] Update Lookups for wrapper generation --- src/APILookup.txt | 60 ++++++++++++++++++------ src/APILookupAdw.txt | 81 +++++++++++++++++++++++++++++++++ src/APILookupGLib.txt | 6 +-- src/APILookupShumate.txt | 73 +++++++++++++++++++++++++++++ src/APILookupSoup.txt | 91 +++++++++++++++++++++++++++++++++++++ src/APILookupSourceView.txt | 29 ++++++++++++ 6 files changed, 324 insertions(+), 16 deletions(-) create mode 100644 src/APILookupAdw.txt create mode 100644 src/APILookupShumate.txt create mode 100644 src/APILookupSoup.txt create mode 100644 src/APILookupSourceView.txt diff --git a/src/APILookup.txt b/src/APILookup.txt index 7eb2318e6..e4e583d3c 100644 --- a/src/APILookup.txt +++ b/src/APILookup.txt @@ -53,27 +53,61 @@ outputRoot: generated ### predifined: lib ########################################################### -srcDir: gtkd -copy: cairo -copy: gtkd +srcDir: glib lookup: APILookupGLib.txt lookup: APILookupGThread.txt lookup: APILookupGObject.txt -lookup: APILookupGio.txt + +srcDir: graphene +lookup: APILookupGraphene.txt + +srcDir: cairo +copy: cairo lookup: APILookupCairo.txt -lookup: APILookupRsvg.txt + +srcDir: harfbuzz lookup: APILookupHarfBuzz.txt + +srcDir: pango lookup: APILookupPango.txt -lookup: APILookupAtk.txt + +srcDir: gio +lookup: APILookupGio.txt + +srcDir: gdkpixbuf lookup: APILookupGdkPixbuf.txt + +srcDir: gdk lookup: APILookupGdk.txt + +srcDir: atk +lookup: APILookupAtk.txt + +srcDir: rsvg +lookup: APILookupRsvg.txt + +srcDir: gsk lookup: APILookupGsk.txt + +srcDir: gtk +#copy: Implement.d lookup: APILookupGtk.txt -lookup: APILookupGraphene.txt -srcDir: gstreamer -lookup: APILookupGStreamer.txt -lookup: APILookupGstInterfaces.txt -lookup: APILookupGstApp.txt -lookup: APILookupGstBase.txt -lookup: APILookupGstMpegts.txt +srcDir: adw +lookup: APILookupAdw.txt + +srcDir: sourceview +lookup: APILookupSourceView.txt + +srcDir: soup +lookup: APILookupSoup.txt + +srcDir: shumate +lookup: APILookupShumate.txt + +#srcDir: gstreamer +#lookup: APILookupGStreamer.txt +#lookup: APILookupGstInterfaces.txt +#lookup: APILookupGstApp.txt +#lookup: APILookupGstBase.txt +#lookup: APILookupGstMpegts.txt diff --git a/src/APILookupAdw.txt b/src/APILookupAdw.txt new file mode 100644 index 000000000..21ad849ba --- /dev/null +++ b/src/APILookupAdw.txt @@ -0,0 +1,81 @@ +# +# This file is part of gtkD. +# +# gtkD is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License +# as published by the Free Software Foundation; either version 3 +# of the License, or (at your option) any later version, with +# some exceptions, please read the COPYING file. +# +# gtkD is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with gtkD; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA +# +wrap: adw +file: Adw-1.gir + +# Fix generation errors + +struct: ActionRow +noCode: activate +code: start + /** + * Activates @self. + * + * Since: 1.0 + */ + public override bool activate() + { + adw_action_row_activate(adwActionRow); + return true; + } +code: end + +struct: ApplicationWindow +code: start + /** + * You should use `setContent(Widget)` instead + */ + override void setChild(Widget child) + { + setContent(child); + } +code: end + +struct: Window +code: start + /** + * You should use `setContent(Widget)` instead + */ + override void setChild(Widget child) + { + setContent(child); + } +code: end + +struct: SplitButton +# workaround to getDirection being marked as override +# see https://github.com/gtkd-developers/gir-to-d/issues/40 +noCode: get_direction +code: start + /** + * Gets the direction in which the popup will be popped up. + * + * Returns: the direction + * + * Since: 1.0 + */ + public GtkArrowType getButtonDirection() + { + return adw_split_button_get_direction(adwSplitButton); + } +code: end + +struct: SpringParams +# conflicts with constructor +noCode: new_full \ No newline at end of file diff --git a/src/APILookupGLib.txt b/src/APILookupGLib.txt index 133267afc..0c9bde3e0 100644 --- a/src/APILookupGLib.txt +++ b/src/APILookupGLib.txt @@ -1982,9 +1982,9 @@ version: end version 2.60: move: strv_equal Str -move: string_new String -move: string_new_len String -move: string_sized_new String +move: ref_string_new String +move: ref_string_new_len String +#move: ref_string_sized_new String move: bit_lock Thread move: bit_trylock Thread diff --git a/src/APILookupShumate.txt b/src/APILookupShumate.txt new file mode 100644 index 000000000..34fa9461f --- /dev/null +++ b/src/APILookupShumate.txt @@ -0,0 +1,73 @@ +# +# This file is part of gtkD. +# +# gtkD is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License +# as published by the Free Software Foundation; either version 3 +# of the License, or (at your option) any later version, with +# some exceptions, please read the COPYING file. +# +# gtkD is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with gtkD; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA +# +wrap: shumate +file: Shumate-0.0.gir + +struct: MapSourceRegistry +import: glib.ConstructionException +noCode: new +noCode: new_with_defaults +code: start +/** + * Create a new #ShumateMapSourceRegistry. + * + * Returns: a newly created #ShumateMapSourceRegistry + * + * Throws: ConstructionException GTK+ fails to create the object. + */ + public this(bool defaults = false) + { + ShumateMapSourceRegistry* __p; + + if (!defaults) __p = shumate_map_source_registry_new(); + else __p = shumate_map_source_registry_new_with_defaults(); + + if(__p is null) + { + throw new ConstructionException("null returned by new"); + } + + this(cast(ShumateMapSourceRegistry*) __p, true); + } +code: end + +struct: Map +import: glib.ConstructionException +noCode: new +noCode: new_simple +code:start +/** + * Creates an instance of #ShumateMap. + * + * Returns: a new #ShumateMap ready to be used as a #GtkWidget. + * + * Throws: ConstructionException GTK+ fails to create the object. + */ + public this(bool simple = false) + { + auto __p = (simple ? shumate_map_new_simple() : shumate_map_new()); + + if(__p is null) + { + throw new ConstructionException("null returned by new"); + } + + this(cast(ShumateMap*) __p); + } +code:end diff --git a/src/APILookupSoup.txt b/src/APILookupSoup.txt new file mode 100644 index 000000000..0e64228d6 --- /dev/null +++ b/src/APILookupSoup.txt @@ -0,0 +1,91 @@ +# +# This file is part of gtkD. +# +# gtkD is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License +# as published by the Free Software Foundation; either version 3 +# of the License, or (at your option) any later version, with +# some exceptions, please read the COPYING file. +# +# gtkD is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with gtkD; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA +# +wrap: soup +file: Soup-2.4.gir + +addConstants: start +version ( Windows ) { + public import core.sys.windows.winsock2 : sockaddr; +} +else { + public import core.sys.posix.sys.socket : sockaddr; +} +addConstants: end + +struct: Socket +class: SSocket +noCode: read_until +code: start + /** + * Like soup_socket_read(), but reads no further than the first + * occurrence of @boundary. (If the boundary is found, it will be + * included in the returned data, and *@got_boundary will be set to + * %TRUE.) Any data after the boundary will returned in future reads. + * + * soup_socket_read_until() will almost always return fewer than @len + * bytes: if the boundary is found, then it will only return the bytes + * up until the end of the boundary, and if the boundary is not found, + * then it will leave the last (boundary_len - 1) + * bytes in its internal buffer, in case they form the start of the + * boundary string. Thus, @len normally needs to be at least 1 byte + * longer than @boundary_len if you want to make any progress at all. + * + * Params: + * buffer = buffer to read + * into + * boundary = boundary to read until + * boundaryLen = length of @boundary in bytes + * nread = on return, the number of bytes read into @buffer + * gotBoundary = on return, whether or not the data in @buffer + * ends with the boundary string + * cancellable = a #GCancellable, or %NULL + * + * Returns: as for soup_socket_read() + * + * Throws: GException on failure. + */ + public SoupSocketIOStatus readUntil(ubyte[] buffer, void* boundary, size_t boundaryLen, out size_t nread, bool* gotBoundary, Cancellable cancellable) { + GError* err = null; + + auto __p = soup_socket_read_until(soupSocket, buffer.ptr, cast(size_t)buffer.length, boundary, boundaryLen, &nread, cast(int *)gotBoundary, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); + + if (err !is null) { + throw new GException( new ErrorG(err) ); + } + + return __p; + } +code: end + +struct: Buffer +noProperty: data +import: glib.c.types +code: start + /** + * the data + */ + public @property ubyte [] data() { + return cast(ubyte [])soupBuffer.data[0..getArrayLength(cast(ubyte *)soupBuffer.data)]; + } + + /** Ditto */ + public @property void data(ubyte [] value) { + soupBuffer.data = cast(void *)value.ptr; + } +code: end diff --git a/src/APILookupSourceView.txt b/src/APILookupSourceView.txt new file mode 100644 index 000000000..0dc0febe3 --- /dev/null +++ b/src/APILookupSourceView.txt @@ -0,0 +1,29 @@ +# +# This file is part of gtkD. +# +# gtkD is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License +# as published by the Free Software Foundation; either version 3 +# of the License, or (at your option) any later version, with +# some exceptions, please read the COPYING file. +# +# gtkD is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with gtkD; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA +# +wrap: sourceview +file: GtkSource-5.gir + +struct: HoverDisplay +noCode: insert_after +code: start + /** */ + public override void insertAfter(Widget child, Widget sibling) { + gtk_source_hover_display_insert_after(gtkSourceHoverDisplay, (child is null) ? null : child.getWidgetStruct(), (sibling is null) ? null : sibling.getWidgetStruct()); + } +code: end From ab7d1a6b513dc73d4f3aad858eb3dee0a1611922 Mon Sep 17 00:00:00 2001 From: KonstantIMP Date: Sun, 16 Jan 2022 12:36:13 +0300 Subject: [PATCH 03/16] Replace src/ to source/ and fix wrap errors --- generated/gstreamer/gst/app/AppSink.d | 597 - generated/gstreamer/gst/app/AppSrc.d | 545 - generated/gstreamer/gst/app/c/functions.d | 182 - generated/gstreamer/gst/app/c/types.d | 199 - generated/gstreamer/gst/base/Adapter.d | 851 - generated/gstreamer/gst/base/Aggregator.d | 365 - generated/gstreamer/gst/base/AggregatorPad.d | 150 - generated/gstreamer/gst/base/Base.d | 333 - generated/gstreamer/gst/base/BaseParse.d | 483 - generated/gstreamer/gst/base/BaseParseFrame.d | 154 - generated/gstreamer/gst/base/BaseSink.d | 683 - generated/gstreamer/gst/base/BaseSrc.d | 547 - generated/gstreamer/gst/base/BaseTransform.d | 424 - generated/gstreamer/gst/base/BitReader.d | 300 - generated/gstreamer/gst/base/BitWriter.d | 391 - generated/gstreamer/gst/base/ByteReader.d | 1179 -- generated/gstreamer/gst/base/ByteWriter.d | 670 - generated/gstreamer/gst/base/CollectPads.d | 586 - generated/gstreamer/gst/base/DataQueue.d | 307 - generated/gstreamer/gst/base/FlowCombiner.d | 261 - generated/gstreamer/gst/base/PushSrc.d | 87 - generated/gstreamer/gst/base/QueueArray.d | 390 - generated/gstreamer/gst/base/c/functions.d | 1325 -- generated/gstreamer/gst/base/c/types.d | 1016 -- generated/gstreamer/gst/mpegts/AtscEIT.d | 120 - generated/gstreamer/gst/mpegts/AtscEITEvent.d | 162 - generated/gstreamer/gst/mpegts/AtscETT.d | 132 - generated/gstreamer/gst/mpegts/AtscMGT.d | 149 - generated/gstreamer/gst/mpegts/AtscMGTTable.d | 146 - .../gstreamer/gst/mpegts/AtscMultString.d | 104 - generated/gstreamer/gst/mpegts/AtscRRT.d | 165 - .../gstreamer/gst/mpegts/AtscRRTDimension.d | 139 - .../gst/mpegts/AtscRRTDimensionValue.d | 119 - generated/gstreamer/gst/mpegts/AtscSTT.d | 217 - .../gstreamer/gst/mpegts/AtscStringSegment.d | 147 - generated/gstreamer/gst/mpegts/AtscVCT.d | 136 - .../gstreamer/gst/mpegts/AtscVCTSource.d | 304 - generated/gstreamer/gst/mpegts/BAT.d | 102 - generated/gstreamer/gst/mpegts/BATStream.d | 112 - .../mpegts/CableDeliverySystemDescriptor.d | 154 - .../gst/mpegts/ComponentDescriptor.d | 143 - generated/gstreamer/gst/mpegts/Content.d | 111 - .../gst/mpegts/DVBLinkageDescriptor.d | 130 - .../gstreamer/gst/mpegts/DVBLinkageEvent.d | 111 - .../gst/mpegts/DVBLinkageExtendedEvent.d | 207 - .../gst/mpegts/DVBLinkageMobileHandOver.d | 123 - .../gst/mpegts/DVBParentalRatingItem.d | 101 - .../gstreamer/gst/mpegts/DVBServiceListItem.d | 103 - .../gst/mpegts/DataBroadcastDescriptor.d | 156 - generated/gstreamer/gst/mpegts/Descriptor.d | 976 -- .../mpegts/DvbMultilingualBouquetNameItem.d | 107 - .../gst/mpegts/DvbMultilingualComponentItem.d | 105 - .../mpegts/DvbMultilingualNetworkNameItem.d | 107 - .../mpegts/DvbMultilingualServiceNameItem.d | 121 - generated/gstreamer/gst/mpegts/EIT.d | 164 - generated/gstreamer/gst/mpegts/EITEvent.d | 154 - .../gst/mpegts/ExtendedEventDescriptor.d | 151 - .../gstreamer/gst/mpegts/ExtendedEventItem.d | 101 - .../gst/mpegts/ISO639LanguageDescriptor.d | 129 - .../gstreamer/gst/mpegts/LogicalChannel.d | 111 - .../gst/mpegts/LogicalChannelDescriptor.d | 110 - generated/gstreamer/gst/mpegts/Mpegts.d | 43 - generated/gstreamer/gst/mpegts/NIT.d | 155 - generated/gstreamer/gst/mpegts/NITStream.d | 133 - generated/gstreamer/gst/mpegts/PMT.d | 156 - generated/gstreamer/gst/mpegts/PMTStream.d | 142 - generated/gstreamer/gst/mpegts/PatProgram.d | 144 - generated/gstreamer/gst/mpegts/SCTESIT.d | 229 - .../gstreamer/gst/mpegts/SCTESpliceEvent.d | 264 - generated/gstreamer/gst/mpegts/SDT.d | 155 - generated/gstreamer/gst/mpegts/SDTService.d | 181 - .../SatelliteDeliverySystemDescriptor.d | 204 - generated/gstreamer/gst/mpegts/Section.d | 716 - .../gst/mpegts/T2DeliverySystemCell.d | 117 - .../mpegts/T2DeliverySystemCellExtension.d | 103 - .../gst/mpegts/T2DeliverySystemDescriptor.d | 193 - generated/gstreamer/gst/mpegts/TOT.d | 106 - .../TerrestrialDeliverySystemDescriptor.d | 237 - generated/gstreamer/gst/mpegts/c/functions.d | 1010 -- generated/gstreamer/gst/mpegts/c/types.d | 2019 --- .../gstreamer/gstinterfaces/VideoOverlay.d | 469 - .../gstreamer/gstinterfaces/c/functions.d | 80 - generated/gstreamer/gstinterfaces/c/types.d | 741 - .../gstreamer/gstreamer/AllocationParams.d | 114 - generated/gstreamer/gstreamer/Allocator.d | 173 - generated/gstreamer/gstreamer/AtomicQueue.d | 162 - generated/gstreamer/gstreamer/Bin.d | 675 - generated/gstreamer/gstreamer/Bitmask.d | 69 - generated/gstreamer/gstreamer/Buffer.d | 1248 -- generated/gstreamer/gstreamer/BufferList.d | 272 - generated/gstreamer/gstreamer/BufferPool.d | 464 - generated/gstreamer/gstreamer/Bus.d | 673 - generated/gstreamer/gstreamer/Caps.d | 941 -- generated/gstreamer/gstreamer/CapsFeatures.d | 455 - generated/gstreamer/gstreamer/ChildProxyIF.d | 196 - generated/gstreamer/gstreamer/ChildProxyT.d | 255 - generated/gstreamer/gstreamer/Clock.d | 793 - generated/gstreamer/gstreamer/Context.d | 210 - .../gstreamer/gstreamer/ControlBinding.d | 188 - generated/gstreamer/gstreamer/ControlSource.d | 111 - generated/gstreamer/gstreamer/DateTime.d | 576 - generated/gstreamer/gstreamer/Debug.d | 419 - generated/gstreamer/gstreamer/DebugCategory.d | 153 - generated/gstreamer/gstreamer/DebugMessage.d | 47 - generated/gstreamer/gstreamer/Device.d | 240 - generated/gstreamer/gstreamer/DeviceMonitor.d | 311 - .../gstreamer/gstreamer/DeviceProvider.d | 345 - .../gstreamer/gstreamer/DeviceProviderClass.d | 166 - .../gstreamer/DeviceProviderFactory.d | 254 - generated/gstreamer/gstreamer/DoubleRange.d | 69 - .../gstreamer/gstreamer/DynamicTypeFactory.d | 96 - generated/gstreamer/gstreamer/Element.d | 1683 -- generated/gstreamer/gstreamer/ElementClass.d | 252 - .../gstreamer/gstreamer/ElementFactory.d | 422 - generated/gstreamer/gstreamer/Event.d | 1651 -- generated/gstreamer/gstreamer/FlagSet.d | 85 - generated/gstreamer/gstreamer/Format.d | 146 - generated/gstreamer/gstreamer/Fraction.d | 70 - generated/gstreamer/gstreamer/FractionRange.d | 69 - generated/gstreamer/gstreamer/GError.d | 54 - generated/gstreamer/gstreamer/GStreamer.d | 241 - generated/gstreamer/gstreamer/GhostPad.d | 281 - generated/gstreamer/gstreamer/Int64Range.d | 69 - generated/gstreamer/gstreamer/IntRange.d | 69 - generated/gstreamer/gstreamer/Iterator.d | 437 - generated/gstreamer/gstreamer/Memory.d | 331 - generated/gstreamer/gstreamer/Message.d | 2489 --- generated/gstreamer/gstreamer/Meta.d | 226 - generated/gstreamer/gstreamer/MiniObject.d | 427 - generated/gstreamer/gstreamer/ObjectGst.d | 677 - generated/gstreamer/gstreamer/Pad.d | 1875 --- generated/gstreamer/gstreamer/PadProbeInfo.d | 128 - generated/gstreamer/gstreamer/PadTemplate.d | 292 - .../gstreamer/gstreamer/ParamSpecFraction.d | 96 - .../gstreamer/gstreamer/ParentBufferMeta.d | 63 - generated/gstreamer/gstreamer/Parse.d | 286 - generated/gstreamer/gstreamer/ParseContext.d | 148 - generated/gstreamer/gstreamer/Pipeline.d | 360 - generated/gstreamer/gstreamer/Plugin.d | 464 - generated/gstreamer/gstreamer/PluginFeature.d | 240 - generated/gstreamer/gstreamer/Poll.d | 442 - generated/gstreamer/gstreamer/PollFD.d | 72 - generated/gstreamer/gstreamer/PresetIF.d | 193 - generated/gstreamer/gstreamer/PresetT.d | 202 - generated/gstreamer/gstreamer/Promise.d | 249 - .../gstreamer/gstreamer/ProtectionMeta.d | 102 - generated/gstreamer/gstreamer/ProxyPad.d | 171 - generated/gstreamer/gstreamer/Query.d | 1535 -- .../gstreamer/ReferenceTimestampMeta.d | 59 - generated/gstreamer/gstreamer/Registry.d | 528 - generated/gstreamer/gstreamer/Sample.d | 269 - generated/gstreamer/gstreamer/Segment.d | 560 - generated/gstreamer/gstreamer/StaticCaps.d | 95 - .../gstreamer/gstreamer/StaticPadTemplate.d | 170 - generated/gstreamer/gstreamer/Stream.d | 244 - .../gstreamer/gstreamer/StreamCollection.d | 187 - generated/gstreamer/gstreamer/Structure.d | 1306 -- generated/gstreamer/gstreamer/SystemClock.d | 119 - generated/gstreamer/gstreamer/TagList.d | 1112 -- generated/gstreamer/gstreamer/TagSetterIF.d | 166 - generated/gstreamer/gstreamer/TagSetterT.d | 194 - generated/gstreamer/gstreamer/Task.d | 349 - generated/gstreamer/gstreamer/TaskPool.d | 165 - generated/gstreamer/gstreamer/Toc.d | 245 - generated/gstreamer/gstreamer/TocEntry.d | 299 - generated/gstreamer/gstreamer/TocSetterIF.d | 86 - generated/gstreamer/gstreamer/TocSetterT.d | 99 - generated/gstreamer/gstreamer/Tracer.d | 92 - generated/gstreamer/gstreamer/TracerFactory.d | 113 - generated/gstreamer/gstreamer/TracerRecord.d | 75 - generated/gstreamer/gstreamer/TypeFind.d | 144 - .../gstreamer/gstreamer/TypeFindFactory.d | 201 - generated/gstreamer/gstreamer/URIHandlerIF.d | 99 - generated/gstreamer/gstreamer/URIHandlerT.d | 120 - generated/gstreamer/gstreamer/Uri.d | 999 -- generated/gstreamer/gstreamer/Utils.d | 540 - generated/gstreamer/gstreamer/ValueArray.d | 167 - generated/gstreamer/gstreamer/ValueGst.d | 799 - generated/gstreamer/gstreamer/ValueList.d | 209 - generated/gstreamer/gstreamer/c/functions.d | 5483 ------- generated/gstreamer/gstreamer/c/types.d | 7796 --------- generated/gtkd/atk/ActionIF.d | 174 - generated/gtkd/atk/ActionT.d | 192 - generated/gtkd/atk/ComponentIF.d | 289 - generated/gtkd/atk/ComponentT.d | 344 - generated/gtkd/atk/DocumentIF.d | 203 - generated/gtkd/atk/DocumentT.d | 236 - generated/gtkd/atk/EditableTextIF.d | 129 - generated/gtkd/atk/EditableTextT.d | 147 - generated/gtkd/atk/GObjectAccessible.d | 112 - generated/gtkd/atk/Hyperlink.d | 207 - generated/gtkd/atk/HyperlinkImplIF.d | 86 - generated/gtkd/atk/HyperlinkImplT.d | 93 - generated/gtkd/atk/HypertextIF.d | 99 - generated/gtkd/atk/HypertextT.d | 115 - generated/gtkd/atk/ImageIF.d | 119 - generated/gtkd/atk/ImageT.d | 131 - generated/gtkd/atk/ImplementorIF.d | 56 - generated/gtkd/atk/ImplementorT.d | 63 - generated/gtkd/atk/Misc.d | 126 - generated/gtkd/atk/NoOpObject.d | 173 - generated/gtkd/atk/NoOpObjectFactory.d | 93 - generated/gtkd/atk/ObjectAtk.d | 637 - generated/gtkd/atk/ObjectFactory.d | 119 - generated/gtkd/atk/Plug.d | 142 - generated/gtkd/atk/Range.d | 176 - generated/gtkd/atk/Rectangle.d | 134 - generated/gtkd/atk/Registry.d | 152 - generated/gtkd/atk/Relation.d | 203 - generated/gtkd/atk/RelationSet.d | 227 - generated/gtkd/atk/SelectionIF.d | 149 - generated/gtkd/atk/SelectionT.d | 177 - generated/gtkd/atk/Socket.d | 151 - generated/gtkd/atk/State.d | 75 - generated/gtkd/atk/StateSet.d | 255 - generated/gtkd/atk/StreamableContentIF.d | 116 - generated/gtkd/atk/StreamableContentT.d | 132 - generated/gtkd/atk/TableCellIF.d | 135 - generated/gtkd/atk/TableCellT.d | 174 - generated/gtkd/atk/TableIF.d | 461 - generated/gtkd/atk/TableT.d | 601 - generated/gtkd/atk/TextIF.d | 618 - generated/gtkd/atk/TextRange.d | 135 - generated/gtkd/atk/TextT.d | 639 - generated/gtkd/atk/Util.d | 266 - generated/gtkd/atk/ValueIF.d | 348 - generated/gtkd/atk/ValueT.d | 412 - generated/gtkd/atk/Version.d | 138 - generated/gtkd/atk/WindowIF.d | 123 - generated/gtkd/atk/WindowT.d | 147 - generated/gtkd/atk/c/functions.d | 1184 -- generated/gtkd/atk/c/types.d | 3219 ---- generated/gtkd/cairo/c/functions.d | 1254 -- generated/gtkd/gdk/AppLaunchContext.d | 184 - generated/gtkd/gdk/ButtonEvent.d | 79 - generated/gtkd/gdk/CairoContext.d | 101 - generated/gtkd/gdk/Clipboard.d | 510 - generated/gtkd/gdk/ContentDeserializer.d | 232 - generated/gtkd/gdk/ContentFormats.d | 421 - generated/gtkd/gdk/ContentFormatsBuilder.d | 210 - generated/gtkd/gdk/ContentProvider.d | 317 - generated/gtkd/gdk/ContentSerializer.d | 233 - generated/gtkd/gdk/CrossingEvent.d | 99 - generated/gtkd/gdk/Cursor.d | 262 - generated/gtkd/gdk/DNDEvent.d | 88 - generated/gtkd/gdk/DeleteEvent.d | 69 - generated/gtkd/gdk/Device.d | 373 - generated/gtkd/gdk/DevicePadIF.d | 107 - generated/gtkd/gdk/DevicePadT.d | 116 - generated/gtkd/gdk/DeviceTool.d | 124 - generated/gtkd/gdk/Display.d | 644 - generated/gtkd/gdk/DisplayManager.d | 220 - generated/gtkd/gdk/Drag.d | 317 - generated/gtkd/gdk/DragSurfaceIF.d | 58 - generated/gtkd/gdk/DragSurfaceT.d | 58 - generated/gtkd/gdk/DrawContext.d | 203 - generated/gtkd/gdk/Drop.d | 360 - generated/gtkd/gdk/Event.d | 408 - generated/gtkd/gdk/EventSequence.d | 43 - generated/gtkd/gdk/FocusEvent.d | 80 - generated/gtkd/gdk/FrameClock.d | 359 - generated/gtkd/gdk/FrameTimings.d | 213 - generated/gtkd/gdk/GLContext.d | 396 - generated/gtkd/gdk/GLTexture.d | 116 - generated/gtkd/gdk/GrabBrokenEvent.d | 98 - generated/gtkd/gdk/KeyEvent.d | 167 - generated/gtkd/gdk/Keysyms.d | 2311 --- generated/gtkd/gdk/MemoryTexture.d | 101 - generated/gtkd/gdk/MonitorGdk.d | 233 - generated/gtkd/gdk/MotionEvent.d | 69 - generated/gtkd/gdk/PadEvent.d | 104 - generated/gtkd/gdk/PaintableIF.d | 268 - generated/gtkd/gdk/PaintableT.d | 305 - generated/gtkd/gdk/PopupIF.d | 130 - generated/gtkd/gdk/PopupLayout.d | 352 - generated/gtkd/gdk/PopupT.d | 155 - generated/gtkd/gdk/ProximityEvent.d | 69 - generated/gtkd/gdk/RGBA.d | 303 - generated/gtkd/gdk/Rectangle.d | 121 - generated/gtkd/gdk/ScrollEvent.d | 112 - generated/gtkd/gdk/Seat.d | 229 - generated/gtkd/gdk/Snapshot.d | 71 - generated/gtkd/gdk/Surface.d | 662 - generated/gtkd/gdk/Texture.d | 250 - generated/gtkd/gdk/ToplevelIF.d | 321 - generated/gtkd/gdk/ToplevelLayout.d | 277 - generated/gtkd/gdk/ToplevelSize.d | 137 - generated/gtkd/gdk/ToplevelT.d | 375 - generated/gtkd/gdk/TouchEvent.d | 79 - generated/gtkd/gdk/TouchpadEvent.d | 126 - generated/gtkd/gdk/VulkanContext.d | 95 - generated/gtkd/gdk/c/functions.d | 1845 --- generated/gtkd/gdk/c/types.d | 1602 -- generated/gtkd/gdkpixbuf/Pixbuf.d | 1856 --- generated/gtkd/gdkpixbuf/PixbufAnimation.d | 374 - .../gtkd/gdkpixbuf/PixbufAnimationIter.d | 169 - generated/gtkd/gdkpixbuf/PixbufFormat.d | 405 - generated/gtkd/gdkpixbuf/PixbufLoader.d | 438 - generated/gtkd/gdkpixbuf/PixbufNonAnim.d | 83 - .../gtkd/gdkpixbuf/PixbufSimpleAnimation.d | 138 - generated/gtkd/gdkpixbuf/Pixdata.d | 288 - generated/gtkd/gdkpixbuf/c/functions.d | 485 - generated/gtkd/gdkpixbuf/c/types.d | 827 - generated/gtkd/gio/ActionGroupIF.d | 439 - generated/gtkd/gio/ActionGroupT.d | 535 - generated/gtkd/gio/ActionIF.d | 320 - generated/gtkd/gio/ActionMapIF.d | 149 - generated/gtkd/gio/ActionMapT.d | 165 - generated/gtkd/gio/ActionT.d | 264 - generated/gtkd/gio/AppInfoIF.d | 706 - generated/gtkd/gio/AppInfoMonitor.d | 125 - generated/gtkd/gio/AppInfoT.d | 578 - generated/gtkd/gio/AppLaunchContext.d | 233 - generated/gtkd/gio/Application.d | 1349 -- generated/gtkd/gio/ApplicationCommandLine.d | 491 - generated/gtkd/gio/AsyncInitableIF.d | 288 - generated/gtkd/gio/AsyncInitableT.d | 262 - generated/gtkd/gio/AsyncResultIF.d | 183 - generated/gtkd/gio/AsyncResultT.d | 208 - generated/gtkd/gio/BufferedInputStream.d | 340 - generated/gtkd/gio/BufferedOutputStream.d | 181 - generated/gtkd/gio/BytesIcon.d | 131 - generated/gtkd/gio/Cancellable.d | 439 - generated/gtkd/gio/CharsetConverter.d | 154 - generated/gtkd/gio/ContentType.d | 368 - generated/gtkd/gio/ConverterIF.d | 167 - generated/gtkd/gio/ConverterInputStream.d | 124 - generated/gtkd/gio/ConverterOutputStream.d | 124 - generated/gtkd/gio/ConverterT.d | 179 - generated/gtkd/gio/Credentials.d | 309 - generated/gtkd/gio/DBusActionGroup.d | 137 - generated/gtkd/gio/DBusAnnotationInfo.d | 211 - generated/gtkd/gio/DBusArgInfo.d | 185 - generated/gtkd/gio/DBusAuthObserver.d | 222 - generated/gtkd/gio/DBusConnection.d | 1932 --- generated/gtkd/gio/DBusError.d | 238 - generated/gtkd/gio/DBusInterfaceIF.d | 100 - generated/gtkd/gio/DBusInterfaceInfo.d | 381 - generated/gtkd/gio/DBusInterfaceSkeleton.d | 366 - generated/gtkd/gio/DBusInterfaceT.d | 130 - generated/gtkd/gio/DBusMenuModel.d | 125 - generated/gtkd/gio/DBusMessage.d | 934 -- generated/gtkd/gio/DBusMethodInfo.d | 226 - generated/gtkd/gio/DBusMethodInvocation.d | 427 - generated/gtkd/gio/DBusNames.d | 338 - generated/gtkd/gio/DBusNodeInfo.d | 311 - generated/gtkd/gio/DBusObjectIF.d | 111 - generated/gtkd/gio/DBusObjectManagerClient.d | 479 - generated/gtkd/gio/DBusObjectManagerIF.d | 158 - generated/gtkd/gio/DBusObjectManagerServer.d | 237 - generated/gtkd/gio/DBusObjectManagerT.d | 200 - generated/gtkd/gio/DBusObjectProxy.d | 128 - generated/gtkd/gio/DBusObjectSkeleton.d | 206 - generated/gtkd/gio/DBusObjectT.d | 137 - generated/gtkd/gio/DBusPropertyInfo.d | 199 - generated/gtkd/gio/DBusProxy.d | 908 -- generated/gtkd/gio/DBusServer.d | 266 - generated/gtkd/gio/DBusSignalInfo.d | 199 - generated/gtkd/gio/DBusUtilities.d | 442 - generated/gtkd/gio/DataInputStream.d | 723 - generated/gtkd/gio/DataOutputStream.d | 325 - generated/gtkd/gio/DatagramBasedIF.d | 326 - generated/gtkd/gio/DatagramBasedT.d | 372 - generated/gtkd/gio/DesktopAppInfo.d | 615 - generated/gtkd/gio/DesktopAppInfoLookupIF.d | 75 - generated/gtkd/gio/DesktopAppInfoLookupT.d | 82 - generated/gtkd/gio/DriveIF.d | 432 - generated/gtkd/gio/DriveT.d | 600 - generated/gtkd/gio/DtlsClientConnectionIF.d | 119 - generated/gtkd/gio/DtlsClientConnectionT.d | 145 - generated/gtkd/gio/DtlsConnectionIF.d | 589 - generated/gtkd/gio/DtlsConnectionT.d | 758 - generated/gtkd/gio/DtlsServerConnectionIF.d | 56 - generated/gtkd/gio/DtlsServerConnectionT.d | 53 - generated/gtkd/gio/Emblem.d | 161 - generated/gtkd/gio/EmblemedIcon.d | 169 - generated/gtkd/gio/ErrorGIO.d | 63 - generated/gtkd/gio/FileAttributeInfoList.d | 188 - generated/gtkd/gio/FileAttributeMatcher.d | 253 - generated/gtkd/gio/FileDescriptorBasedIF.d | 63 - generated/gtkd/gio/FileDescriptorBasedT.d | 63 - generated/gtkd/gio/FileEnumerator.d | 437 - generated/gtkd/gio/FileIF.d | 2942 ---- generated/gtkd/gio/FileIOStream.d | 222 - generated/gtkd/gio/FileIcon.d | 122 - generated/gtkd/gio/FileInfo.d | 1004 -- generated/gtkd/gio/FileInputStream.d | 177 - generated/gtkd/gio/FileMonitor.d | 177 - generated/gtkd/gio/FileOutputStream.d | 206 - generated/gtkd/gio/FileT.d | 4194 ----- generated/gtkd/gio/FilenameCompleter.d | 150 - generated/gtkd/gio/FilterInputStream.d | 112 - generated/gtkd/gio/FilterOutputStream.d | 112 - generated/gtkd/gio/IOExtension.d | 119 - generated/gtkd/gio/IOExtensionPoint.d | 201 - generated/gtkd/gio/IOModule.d | 214 - generated/gtkd/gio/IOModuleScope.d | 134 - generated/gtkd/gio/IOSchedulerJob.d | 146 - generated/gtkd/gio/IOStream.d | 382 - generated/gtkd/gio/IconIF.d | 166 - generated/gtkd/gio/IconT.d | 146 - generated/gtkd/gio/InetAddress.d | 364 - generated/gtkd/gio/InetAddressMask.d | 244 - generated/gtkd/gio/InetSocketAddress.d | 186 - generated/gtkd/gio/InitableIF.d | 130 - generated/gtkd/gio/InitableT.d | 139 - generated/gtkd/gio/InputStream.d | 675 - generated/gtkd/gio/ListModelIF.d | 203 - generated/gtkd/gio/ListModelT.d | 225 - generated/gtkd/gio/ListStore.d | 284 - generated/gtkd/gio/LoadableIconIF.d | 101 - generated/gtkd/gio/LoadableIconT.d | 141 - generated/gtkd/gio/MemoryInputStream.d | 177 - generated/gtkd/gio/MemoryMonitorIF.d | 129 - generated/gtkd/gio/MemoryMonitorT.d | 110 - generated/gtkd/gio/MemoryOutputStream.d | 262 - generated/gtkd/gio/Menu.d | 361 - generated/gtkd/gio/MenuAttributeIter.d | 170 - generated/gtkd/gio/MenuItem.d | 393 - generated/gtkd/gio/MenuLinkIter.d | 166 - generated/gtkd/gio/MenuModel.d | 391 - generated/gtkd/gio/MountIF.d | 488 - generated/gtkd/gio/MountOperation.d | 450 - generated/gtkd/gio/MountT.d | 688 - generated/gtkd/gio/NativeSocketAddress.d | 96 - generated/gtkd/gio/NativeVolumeMonitor.d | 67 - generated/gtkd/gio/NetworkAddress.d | 283 - generated/gtkd/gio/NetworkMonitorIF.d | 206 - generated/gtkd/gio/NetworkMonitorT.d | 222 - generated/gtkd/gio/NetworkService.d | 177 - generated/gtkd/gio/Notification.d | 276 - generated/gtkd/gio/OutputStream.d | 1000 -- generated/gtkd/gio/Permission.d | 324 - generated/gtkd/gio/PollableInputStreamIF.d | 134 - generated/gtkd/gio/PollableInputStreamT.d | 159 - generated/gtkd/gio/PollableOutputStreamIF.d | 173 - generated/gtkd/gio/PollableOutputStreamT.d | 210 - generated/gtkd/gio/PollableUtils.d | 218 - generated/gtkd/gio/PropertyAction.d | 162 - generated/gtkd/gio/ProxyAddress.d | 203 - generated/gtkd/gio/ProxyAddressEnumerator.d | 77 - generated/gtkd/gio/ProxyIF.d | 151 - generated/gtkd/gio/ProxyResolverIF.d | 157 - generated/gtkd/gio/ProxyResolverT.d | 166 - generated/gtkd/gio/ProxyT.d | 164 - generated/gtkd/gio/RemoteActionGroupIF.d | 111 - generated/gtkd/gio/RemoteActionGroupT.d | 114 - generated/gtkd/gio/Resolver.d | 687 - generated/gtkd/gio/Resource.d | 667 - generated/gtkd/gio/SeekableIF.d | 137 - generated/gtkd/gio/SeekableT.d | 167 - generated/gtkd/gio/Settings.d | 1658 -- generated/gtkd/gio/SettingsBackend.d | 426 - generated/gtkd/gio/SettingsSchema.d | 310 - generated/gtkd/gio/SettingsSchemaKey.d | 287 - generated/gtkd/gio/SettingsSchemaSource.d | 273 - generated/gtkd/gio/SimpleAction.d | 273 - generated/gtkd/gio/SimpleActionGroup.d | 187 - generated/gtkd/gio/SimpleAsyncResult.d | 634 - generated/gtkd/gio/SimpleIOStream.d | 108 - generated/gtkd/gio/SimplePermission.d | 100 - generated/gtkd/gio/SimpleProxyResolver.d | 172 - generated/gtkd/gio/Socket.d | 2025 --- generated/gtkd/gio/SocketAddress.d | 167 - generated/gtkd/gio/SocketAddressEnumerator.d | 182 - generated/gtkd/gio/SocketClient.d | 943 -- generated/gtkd/gio/SocketConnectableIF.d | 146 - generated/gtkd/gio/SocketConnectableT.d | 169 - generated/gtkd/gio/SocketConnection.d | 305 - generated/gtkd/gio/SocketControlMessage.d | 177 - generated/gtkd/gio/SocketListener.d | 529 - generated/gtkd/gio/SocketService.d | 206 - generated/gtkd/gio/SrvTarget.d | 231 - generated/gtkd/gio/StaticResource.d | 118 - generated/gtkd/gio/Subprocess.d | 752 - generated/gtkd/gio/SubprocessLauncher.d | 496 - generated/gtkd/gio/Task.d | 1291 -- generated/gtkd/gio/TcpConnection.d | 106 - generated/gtkd/gio/TcpWrapperConnection.d | 122 - generated/gtkd/gio/TestDBus.d | 254 - generated/gtkd/gio/ThemedIcon.d | 181 - generated/gtkd/gio/ThreadedSocketService.d | 133 - generated/gtkd/gio/TlsBackendIF.d | 178 - generated/gtkd/gio/TlsBackendT.d | 192 - generated/gtkd/gio/TlsCertificate.d | 387 - generated/gtkd/gio/TlsClientConnectionIF.d | 189 - generated/gtkd/gio/TlsClientConnectionT.d | 224 - generated/gtkd/gio/TlsConnection.d | 631 - generated/gtkd/gio/TlsDatabase.d | 532 - generated/gtkd/gio/TlsFileDatabaseIF.d | 56 - generated/gtkd/gio/TlsFileDatabaseT.d | 53 - generated/gtkd/gio/TlsInteraction.d | 393 - generated/gtkd/gio/TlsPassword.d | 237 - generated/gtkd/gio/TlsServerConnectionIF.d | 56 - generated/gtkd/gio/TlsServerConnectionT.d | 53 - generated/gtkd/gio/UnixConnection.d | 345 - generated/gtkd/gio/UnixCredentialsMessage.d | 160 - generated/gtkd/gio/UnixFDList.d | 284 - generated/gtkd/gio/UnixFDMessage.d | 219 - generated/gtkd/gio/UnixInputStream.d | 154 - generated/gtkd/gio/UnixMountEntry.d | 419 - generated/gtkd/gio/UnixMountMonitor.d | 161 - generated/gtkd/gio/UnixMountPoint.d | 285 - generated/gtkd/gio/UnixOutputStream.d | 154 - generated/gtkd/gio/UnixSocketAddress.d | 237 - generated/gtkd/gio/Vfs.d | 262 - generated/gtkd/gio/VolumeIF.d | 354 - generated/gtkd/gio/VolumeMonitor.d | 402 - generated/gtkd/gio/VolumeT.d | 488 - generated/gtkd/gio/ZlibCompressor.d | 140 - generated/gtkd/gio/ZlibDecompressor.d | 123 - generated/gtkd/gio/c/functions.d | 7421 --------- generated/gtkd/gio/c/types.d | 10668 ------------ generated/gtkd/glib/ArrayG.d | 521 - generated/gtkd/glib/AsyncQueue.d | 574 - generated/gtkd/glib/Atomic.d | 436 - generated/gtkd/glib/BBTree.d | 638 - generated/gtkd/glib/Base64.d | 194 - generated/gtkd/glib/BookmarkFile.d | 1429 -- generated/gtkd/glib/ByteArray.d | 398 - generated/gtkd/glib/Bytes.d | 368 - generated/gtkd/glib/CharacterSet.d | 623 - generated/gtkd/glib/Checksum.d | 308 - generated/gtkd/glib/Child.d | 171 - generated/gtkd/glib/Cond.d | 273 - generated/gtkd/glib/ConstructionException.d | 46 - generated/gtkd/glib/DataList.d | 274 - generated/gtkd/glib/DataSet.d | 118 - generated/gtkd/glib/Date.d | 902 -- generated/gtkd/glib/DateTime.d | 1216 -- generated/gtkd/glib/Directory.d | 183 - generated/gtkd/glib/ErrorG.d | 280 - generated/gtkd/glib/FileUtils.d | 536 - generated/gtkd/glib/GException.d | 46 - generated/gtkd/glib/GLib.d | 37 - generated/gtkd/glib/HashTable.d | 805 - generated/gtkd/glib/HashTableIter.d | 195 - generated/gtkd/glib/Hmac.d | 309 - generated/gtkd/glib/Hook.d | 508 - generated/gtkd/glib/HookList.d | 222 - generated/gtkd/glib/Hostname.d | 143 - generated/gtkd/glib/IConv.d | 108 - generated/gtkd/glib/IOChannel.d | 901 -- generated/gtkd/glib/Idle.d | 234 - generated/gtkd/glib/Internationalization.d | 261 - generated/gtkd/glib/KeyFile.d | 1396 -- generated/gtkd/glib/ListG.d | 937 -- generated/gtkd/glib/ListSG.d | 830 - generated/gtkd/glib/MainContext.d | 655 - generated/gtkd/glib/MainLoop.d | 340 - generated/gtkd/glib/MappedFile.d | 273 - generated/gtkd/glib/MatchInfo.d | 450 - generated/gtkd/glib/Memory.d | 340 - generated/gtkd/glib/MemorySlice.d | 190 - generated/gtkd/glib/MessageLog.d | 269 - generated/gtkd/glib/Messages.d | 156 - generated/gtkd/glib/Module.d | 198 - generated/gtkd/glib/Mutex.d | 199 - generated/gtkd/glib/Node.d | 596 - generated/gtkd/glib/Once.d | 173 - generated/gtkd/glib/OptionContext.d | 548 - generated/gtkd/glib/OptionGroup.d | 243 - generated/gtkd/glib/Pattern.d | 184 - generated/gtkd/glib/Private.d | 126 - generated/gtkd/glib/PtrArray.d | 758 - generated/gtkd/glib/Quark.d | 159 - generated/gtkd/glib/QueueG.d | 752 - generated/gtkd/glib/RWLock.d | 270 - generated/gtkd/glib/RandG.d | 315 - generated/gtkd/glib/RecMutex.d | 172 - generated/gtkd/glib/Regex.d | 992 -- generated/gtkd/glib/ScannerG.d | 355 - generated/gtkd/glib/Sequence.d | 757 - generated/gtkd/glib/SequenceIter.d | 206 - generated/gtkd/glib/ShellUtils.d | 146 - generated/gtkd/glib/SimpleXML.d | 498 - generated/gtkd/glib/Source.d | 843 - generated/gtkd/glib/Spawn.d | 650 - generated/gtkd/glib/Str.d | 1733 -- generated/gtkd/glib/StringChunk.d | 205 - generated/gtkd/glib/StringG.d | 788 - generated/gtkd/glib/StrvBuilder.d | 170 - generated/gtkd/glib/TestLogBuffer.d | 119 - generated/gtkd/glib/TestLogMsg.d | 77 - generated/gtkd/glib/TestSuite.d | 89 - generated/gtkd/glib/Thread.d | 393 - generated/gtkd/glib/ThreadPool.d | 448 - generated/gtkd/glib/TimeVal.d | 291 - generated/gtkd/glib/TimeZone.d | 305 - generated/gtkd/glib/Timeout.d | 444 - generated/gtkd/glib/Timer.d | 167 - generated/gtkd/glib/TrashStack.d | 104 - generated/gtkd/glib/TreeNode.d | 129 - generated/gtkd/glib/URI.d | 100 - generated/gtkd/glib/Unicode.d | 1521 -- generated/gtkd/glib/UnixUtils.d | 272 - generated/gtkd/glib/UriParamsIter.d | 172 - generated/gtkd/glib/Util.d | 1175 -- generated/gtkd/glib/Uuid.d | 74 - generated/gtkd/glib/Variant.d | 2515 --- generated/gtkd/glib/VariantBuilder.d | 335 - generated/gtkd/glib/VariantDict.d | 392 - generated/gtkd/glib/VariantIter.d | 195 - generated/gtkd/glib/VariantType.d | 865 - generated/gtkd/glib/Version.d | 68 - generated/gtkd/glib/c/functions.d | 5526 ------- generated/gtkd/glib/c/types.d | 6622 -------- generated/gtkd/gobject/Binding.d | 317 - generated/gtkd/gobject/Boxed.d | 93 - generated/gtkd/gobject/CClosure.d | 1049 -- generated/gtkd/gobject/Closure.d | 487 - generated/gtkd/gobject/DClosure.d | 250 - generated/gtkd/gobject/Enums.d | 183 - generated/gtkd/gobject/Flags.d | 117 - generated/gtkd/gobject/ObjectClass.d | 269 - generated/gtkd/gobject/ObjectG.d | 1530 -- generated/gtkd/gobject/ParamSpec.d | 460 - generated/gtkd/gobject/ParamSpecPool.d | 199 - generated/gtkd/gobject/Signals.d | 870 - generated/gtkd/gobject/Type.d | 836 - generated/gtkd/gobject/TypeClass.d | 301 - generated/gtkd/gobject/TypeInstance.d | 69 - generated/gtkd/gobject/TypeInterface.d | 195 - generated/gtkd/gobject/TypeModule.d | 243 - generated/gtkd/gobject/TypePluginIF.d | 132 - generated/gtkd/gobject/TypePluginT.d | 141 - generated/gtkd/gobject/TypeValueTable.d | 55 - generated/gtkd/gobject/Value.d | 1851 --- generated/gtkd/gobject/ValueArray.d | 304 - generated/gtkd/gobject/WeakRef.d | 171 - generated/gtkd/gobject/c/functions.d | 1460 -- generated/gtkd/gobject/c/types.d | 1995 --- generated/gtkd/graphene/Box.d | 678 - generated/gtkd/graphene/Euler.d | 508 - generated/gtkd/graphene/Frustum.d | 282 - generated/gtkd/graphene/Matrix.d | 1441 -- generated/gtkd/graphene/Plane.d | 373 - generated/gtkd/graphene/Point.d | 344 - generated/gtkd/graphene/Point3D.d | 454 - generated/gtkd/graphene/Quad.d | 250 - generated/gtkd/graphene/Quaternion.d | 575 - generated/gtkd/graphene/Ray.d | 426 - generated/gtkd/graphene/Rect.d | 774 - generated/gtkd/graphene/Size.d | 262 - generated/gtkd/graphene/Sphere.d | 333 - generated/gtkd/graphene/Triangle.d | 435 - generated/gtkd/graphene/Vec2.d | 555 - generated/gtkd/graphene/Vec3.d | 701 - generated/gtkd/graphene/Vec4.d | 712 - generated/gtkd/graphene/c/functions.d | 1400 -- generated/gtkd/graphene/c/types.d | 405 - generated/gtkd/gsk/BlendNode.d | 140 - generated/gtkd/gsk/BlurNode.d | 121 - generated/gtkd/gsk/BorderNode.d | 157 - generated/gtkd/gsk/BroadwayRenderer.d | 95 - generated/gtkd/gsk/CairoNode.d | 138 - generated/gtkd/gsk/CairoRenderer.d | 100 - generated/gtkd/gsk/ClipNode.d | 130 - generated/gtkd/gsk/ColorMatrixNode.d | 155 - generated/gtkd/gsk/ColorNode.d | 114 - generated/gtkd/gsk/ConicGradientNode.d | 173 - generated/gtkd/gsk/ContainerNode.d | 131 - generated/gtkd/gsk/CrossFadeNode.d | 140 - generated/gtkd/gsk/DebugNode.d | 127 - generated/gtkd/gsk/GLRenderer.d | 91 - generated/gtkd/gsk/GLShader.d | 528 - generated/gtkd/gsk/GLShaderNode.d | 186 - generated/gtkd/gsk/InsetShadowNode.d | 175 - generated/gtkd/gsk/LinearGradientNode.d | 160 - generated/gtkd/gsk/NglRenderer.d | 90 - generated/gtkd/gsk/OpacityNode.d | 122 - generated/gtkd/gsk/OutsetShadowNode.d | 175 - generated/gtkd/gsk/RadialGradientNode.d | 189 - generated/gtkd/gsk/RenderNode.d | 250 - generated/gtkd/gsk/Renderer.d | 225 - generated/gtkd/gsk/RepeatNode.d | 132 - .../gtkd/gsk/RepeatingLinearGradientNode.d | 103 - .../gtkd/gsk/RepeatingRadialGradientNode.d | 108 - generated/gtkd/gsk/RoundedClipNode.d | 130 - generated/gtkd/gsk/RoundedRect.d | 278 - generated/gtkd/gsk/ShaderArgsBuilder.d | 284 - generated/gtkd/gsk/ShadowNode.d | 135 - generated/gtkd/gsk/TextNode.d | 188 - generated/gtkd/gsk/TextureNode.d | 114 - generated/gtkd/gsk/Transform.d | 563 - generated/gtkd/gsk/TransformNode.d | 130 - generated/gtkd/gsk/VulkanRenderer.d | 84 - generated/gtkd/gsk/c/functions.d | 1028 -- generated/gtkd/gsk/c/types.d | 570 - generated/gtkd/gthread/Cond.d | 35 - generated/gtkd/gthread/Mutex.d | 35 - generated/gtkd/gthread/Once.d | 35 - generated/gtkd/gthread/Private.d | 35 - generated/gtkd/gthread/RWLock.d | 35 - generated/gtkd/gthread/RecMutex.d | 35 - generated/gtkd/gthread/Thread.d | 35 - generated/gtkd/gthread/c/functions.d | 44 - generated/gtkd/gthread/c/types.d | 26 - generated/gtkd/gtk/ATContext.d | 143 - generated/gtkd/gtk/AboutDialog.d | 576 - generated/gtkd/gtk/AccessibleIF.d | 137 - generated/gtkd/gtk/AccessibleT.d | 173 - generated/gtkd/gtk/ActionBar.d | 193 - generated/gtkd/gtk/ActionableIF.d | 133 - generated/gtkd/gtk/ActionableT.d | 152 - generated/gtkd/gtk/ActivateAction.d | 90 - generated/gtkd/gtk/Adjustment.d | 346 - generated/gtkd/gtk/AlternativeTrigger.d | 144 - generated/gtkd/gtk/AnyFilter.d | 98 - generated/gtkd/gtk/AppChooserButton.d | 289 - generated/gtkd/gtk/AppChooserDialog.d | 185 - generated/gtkd/gtk/AppChooserIF.d | 91 - generated/gtkd/gtk/AppChooserT.d | 107 - generated/gtkd/gtk/AppChooserWidget.d | 290 - generated/gtkd/gtk/Application.d | 553 - generated/gtkd/gtk/ApplicationWindow.d | 248 - generated/gtkd/gtk/AspectFrame.d | 226 - generated/gtkd/gtk/Assistant.d | 529 - generated/gtkd/gtk/AssistantPage.d | 87 - generated/gtkd/gtk/BinLayout.d | 96 - generated/gtkd/gtk/Bitset.d | 525 - generated/gtkd/gtk/BitsetIter.d | 199 - generated/gtkd/gtk/BookmarkList.d | 179 - generated/gtkd/gtk/BoolFilter.d | 149 - generated/gtkd/gtk/Border.d | 183 - generated/gtkd/gtk/Box.d | 269 - generated/gtkd/gtk/BoxLayout.d | 181 - generated/gtkd/gtk/BuildableIF.d | 71 - generated/gtkd/gtk/BuildableParseContext.d | 184 - generated/gtkd/gtk/BuildableT.d | 71 - generated/gtkd/gtk/Builder.d | 845 - generated/gtkd/gtk/BuilderCScope.d | 148 - generated/gtkd/gtk/BuilderListItemFactory.d | 191 - generated/gtkd/gtk/BuilderScopeIF.d | 60 - generated/gtkd/gtk/BuilderScopeT.d | 57 - generated/gtkd/gtk/Button.d | 311 - generated/gtkd/gtk/CClosureExpression.d | 106 - generated/gtkd/gtk/Calendar.d | 333 - generated/gtkd/gtk/CallbackAction.d | 97 - generated/gtkd/gtk/CellArea.d | 1188 -- generated/gtkd/gtk/CellAreaBox.d | 171 - generated/gtkd/gtk/CellAreaClass.d | 124 - generated/gtkd/gtk/CellAreaContext.d | 285 - generated/gtkd/gtk/CellEditableIF.d | 113 - generated/gtkd/gtk/CellEditableT.d | 125 - generated/gtkd/gtk/CellLayoutIF.d | 260 - generated/gtkd/gtk/CellLayoutT.d | 298 - generated/gtkd/gtk/CellRenderer.d | 539 - generated/gtkd/gtk/CellRendererAccel.d | 123 - generated/gtkd/gtk/CellRendererCombo.d | 136 - generated/gtkd/gtk/CellRendererPixbuf.d | 109 - generated/gtkd/gtk/CellRendererProgress.d | 98 - generated/gtkd/gtk/CellRendererSpin.d | 105 - generated/gtkd/gtk/CellRendererSpinner.d | 102 - generated/gtkd/gtk/CellRendererText.d | 138 - generated/gtkd/gtk/CellRendererToggle.d | 191 - generated/gtkd/gtk/CellView.d | 319 - generated/gtkd/gtk/CenterBox.d | 243 - generated/gtkd/gtk/CenterLayout.d | 229 - generated/gtkd/gtk/CheckButton.d | 322 - generated/gtkd/gtk/ClosureExpression.d | 105 - generated/gtkd/gtk/ColorButton.d | 202 - generated/gtkd/gtk/ColorChooserDialog.d | 113 - generated/gtkd/gtk/ColorChooserIF.d | 130 - generated/gtkd/gtk/ColorChooserT.d | 155 - generated/gtkd/gtk/ColorChooserWidget.d | 118 - generated/gtkd/gtk/ColumnView.d | 444 - generated/gtkd/gtk/ColumnViewColumn.d | 352 - generated/gtkd/gtk/ComboBox.d | 657 - generated/gtkd/gtk/ComboBoxText.d | 292 - generated/gtkd/gtk/ConstantExpression.d | 111 - generated/gtkd/gtk/Constraint.d | 278 - generated/gtkd/gtk/ConstraintGuide.d | 239 - generated/gtkd/gtk/ConstraintLayout.d | 503 - generated/gtkd/gtk/ConstraintLayoutChild.d | 69 - generated/gtkd/gtk/ConstraintTargetIF.d | 50 - generated/gtkd/gtk/ConstraintTargetT.d | 47 - generated/gtkd/gtk/CssProvider.d | 242 - generated/gtkd/gtk/CssSection.d | 233 - generated/gtkd/gtk/CustomFilter.d | 122 - generated/gtkd/gtk/CustomLayout.d | 107 - generated/gtkd/gtk/CustomSorter.d | 120 - generated/gtkd/gtk/Dialog.d | 418 - generated/gtkd/gtk/DirectoryList.d | 278 - generated/gtkd/gtk/DragIcon.d | 192 - generated/gtkd/gtk/DragSource.d | 352 - generated/gtkd/gtk/DrawingArea.d | 270 - generated/gtkd/gtk/DropControllerMotion.d | 175 - generated/gtkd/gtk/DropDown.d | 335 - generated/gtkd/gtk/DropTarget.d | 406 - generated/gtkd/gtk/DropTargetAsync.d | 299 - generated/gtkd/gtk/EditableIF.d | 549 - generated/gtkd/gtk/EditableLabel.d | 160 - generated/gtkd/gtk/EditableT.d | 570 - generated/gtkd/gtk/EmojiChooser.d | 132 - generated/gtkd/gtk/Entry.d | 1142 -- generated/gtkd/gtk/EntryBuffer.d | 290 - generated/gtkd/gtk/EntryCompletion.d | 539 - generated/gtkd/gtk/EventController.d | 238 - generated/gtkd/gtk/EventControllerFocus.d | 153 - generated/gtkd/gtk/EventControllerKey.d | 204 - generated/gtkd/gtk/EventControllerLegacy.d | 111 - generated/gtkd/gtk/EventControllerMotion.d | 152 - generated/gtkd/gtk/EventControllerScroll.d | 202 - generated/gtkd/gtk/EveryFilter.d | 98 - generated/gtkd/gtk/Expander.d | 385 - generated/gtkd/gtk/Expression.d | 355 - generated/gtkd/gtk/ExpressionWatch.d | 138 - generated/gtkd/gtk/FileChooserDialog.d | 289 - generated/gtkd/gtk/FileChooserIF.d | 429 - generated/gtkd/gtk/FileChooserNative.d | 308 - generated/gtkd/gtk/FileChooserT.d | 582 - generated/gtkd/gtk/FileChooserWidget.d | 311 - generated/gtkd/gtk/FileFilter.d | 271 - generated/gtkd/gtk/Filter.d | 157 - generated/gtkd/gtk/FilterListModel.d | 233 - generated/gtkd/gtk/Fixed.d | 220 - generated/gtkd/gtk/FixedLayout.d | 120 - generated/gtkd/gtk/FixedLayoutChild.d | 99 - generated/gtkd/gtk/FlattenListModel.d | 148 - generated/gtkd/gtk/FlowBox.d | 703 - generated/gtkd/gtk/FlowBoxChild.d | 186 - generated/gtkd/gtk/FontButton.d | 240 - generated/gtkd/gtk/FontChooserDialog.d | 115 - generated/gtkd/gtk/FontChooserIF.d | 277 - generated/gtkd/gtk/FontChooserT.d | 374 - generated/gtkd/gtk/FontChooserWidget.d | 111 - generated/gtkd/gtk/Frame.d | 250 - generated/gtkd/gtk/GLArea.d | 484 - generated/gtkd/gtk/Gesture.d | 667 - generated/gtkd/gtk/GestureClick.d | 178 - generated/gtkd/gtk/GestureDrag.d | 173 - generated/gtkd/gtk/GestureLongPress.d | 153 - generated/gtkd/gtk/GesturePan.d | 142 - generated/gtkd/gtk/GestureRotate.d | 122 - generated/gtkd/gtk/GestureSingle.d | 185 - generated/gtkd/gtk/GestureStylus.d | 243 - generated/gtkd/gtk/GestureSwipe.d | 136 - generated/gtkd/gtk/GestureZoom.d | 123 - generated/gtkd/gtk/Grid.d | 489 - generated/gtkd/gtk/GridLayout.d | 243 - generated/gtkd/gtk/GridLayoutChild.d | 153 - generated/gtkd/gtk/GridView.d | 310 - generated/gtkd/gtk/HeaderBar.d | 304 - generated/gtkd/gtk/IMContext.d | 489 - generated/gtkd/gtk/IMContextSimple.d | 144 - generated/gtkd/gtk/IMMulticontext.d | 121 - generated/gtkd/gtk/IconPaintable.d | 162 - generated/gtkd/gtk/IconTheme.d | 464 - generated/gtkd/gtk/IconView.d | 1187 -- generated/gtkd/gtk/Image.d | 464 - generated/gtkd/gtk/InfoBar.d | 390 - generated/gtkd/gtk/KeyvalTrigger.d | 117 - generated/gtkd/gtk/Label.d | 1061 -- generated/gtkd/gtk/LayoutChild.d | 114 - generated/gtkd/gtk/LayoutManager.d | 229 - generated/gtkd/gtk/LevelBar.d | 396 - generated/gtkd/gtk/LinkButton.d | 215 - generated/gtkd/gtk/ListBase.d | 79 - generated/gtkd/gtk/ListBox.d | 714 - generated/gtkd/gtk/ListBoxRow.d | 263 - generated/gtkd/gtk/ListItem.d | 225 - generated/gtkd/gtk/ListItemFactory.d | 116 - generated/gtkd/gtk/ListStore.d | 556 - generated/gtkd/gtk/ListView.d | 342 - generated/gtkd/gtk/LockButton.d | 159 - generated/gtkd/gtk/MapListModel.d | 192 - generated/gtkd/gtk/MediaControls.d | 127 - generated/gtkd/gtk/MediaFile.d | 279 - generated/gtkd/gtk/MediaStream.d | 543 - generated/gtkd/gtk/MenuButton.d | 386 - generated/gtkd/gtk/MessageDialog.d | 204 - generated/gtkd/gtk/MnemonicAction.d | 90 - generated/gtkd/gtk/MnemonicTrigger.d | 110 - generated/gtkd/gtk/MountOperation.d | 176 - generated/gtkd/gtk/MultiFilter.d | 105 - generated/gtkd/gtk/MultiSelection.d | 133 - generated/gtkd/gtk/MultiSorter.d | 137 - generated/gtkd/gtk/NamedAction.d | 111 - generated/gtkd/gtk/NativeDialog.d | 247 - generated/gtkd/gtk/NativeIF.d | 125 - generated/gtkd/gtk/NativeT.d | 131 - generated/gtkd/gtk/NeverTrigger.d | 91 - generated/gtkd/gtk/NoSelection.d | 136 - generated/gtkd/gtk/Notebook.d | 993 -- generated/gtkd/gtk/NotebookPage.d | 87 - generated/gtkd/gtk/NothingAction.d | 90 - generated/gtkd/gtk/NumericSorter.d | 155 - generated/gtkd/gtk/ObjectExpression.d | 116 - generated/gtkd/gtk/OrientableIF.d | 66 - generated/gtkd/gtk/OrientableT.d | 69 - generated/gtkd/gtk/Overlay.d | 263 - generated/gtkd/gtk/OverlayLayout.d | 96 - generated/gtkd/gtk/OverlayLayoutChild.d | 111 - generated/gtkd/gtk/PadController.d | 194 - generated/gtkd/gtk/PageSetup.d | 587 - generated/gtkd/gtk/PageSetupUnixDialog.d | 164 - generated/gtkd/gtk/Paned.d | 439 - generated/gtkd/gtk/PaperSize.d | 518 - generated/gtkd/gtk/ParamSpecExpression.d | 69 - generated/gtkd/gtk/PasswordEntry.d | 193 - generated/gtkd/gtk/Picture.d | 441 - generated/gtkd/gtk/Popover.d | 461 - generated/gtkd/gtk/PopoverMenu.d | 304 - generated/gtkd/gtk/PopoverMenuBar.d | 183 - generated/gtkd/gtk/PrintContext.d | 309 - generated/gtkd/gtk/PrintJob.d | 531 - generated/gtkd/gtk/PrintOperation.d | 931 -- generated/gtkd/gtk/PrintOperationPreviewIF.d | 116 - generated/gtkd/gtk/PrintOperationPreviewT.d | 128 - generated/gtkd/gtk/PrintSettings.d | 1115 -- generated/gtkd/gtk/PrintUnixDialog.d | 375 - generated/gtkd/gtk/Printer.d | 414 - generated/gtkd/gtk/ProgressBar.d | 322 - generated/gtkd/gtk/PropertyExpression.d | 174 - generated/gtkd/gtk/Range.d | 463 - generated/gtkd/gtk/RecentInfo.d | 479 - generated/gtkd/gtk/RecentManager.d | 391 - generated/gtkd/gtk/Requisition.d | 158 - generated/gtkd/gtk/Revealer.d | 227 - generated/gtkd/gtk/RootIF.d | 98 - generated/gtkd/gtk/RootT.d | 118 - generated/gtkd/gtk/Scale.d | 410 - generated/gtkd/gtk/ScaleButton.d | 281 - generated/gtkd/gtk/ScrollableIF.d | 160 - generated/gtkd/gtk/ScrollableT.d | 204 - generated/gtkd/gtk/Scrollbar.d | 170 - generated/gtkd/gtk/ScrolledWindow.d | 680 - generated/gtkd/gtk/SearchBar.d | 266 - generated/gtkd/gtk/SearchEntry.d | 258 - generated/gtkd/gtk/SelectionFilterModel.d | 133 - generated/gtkd/gtk/SelectionModelIF.d | 263 - generated/gtkd/gtk/SelectionModelT.d | 310 - generated/gtkd/gtk/Separator.d | 113 - generated/gtkd/gtk/Settings.d | 157 - generated/gtkd/gtk/Shortcut.d | 199 - generated/gtkd/gtk/ShortcutAction.d | 188 - generated/gtkd/gtk/ShortcutController.d | 258 - generated/gtkd/gtk/ShortcutLabel.d | 140 - generated/gtkd/gtk/ShortcutManagerIF.d | 58 - generated/gtkd/gtk/ShortcutManagerT.d | 55 - generated/gtkd/gtk/ShortcutTrigger.d | 275 - generated/gtkd/gtk/ShortcutsGroup.d | 76 - generated/gtkd/gtk/ShortcutsSection.d | 89 - generated/gtkd/gtk/ShortcutsShortcut.d | 72 - generated/gtkd/gtk/ShortcutsWindow.d | 135 - generated/gtkd/gtk/SignalAction.d | 111 - generated/gtkd/gtk/SignalListItemFactory.d | 200 - generated/gtkd/gtk/SingleSelection.d | 240 - generated/gtkd/gtk/SizeGroup.d | 239 - generated/gtkd/gtk/SliceListModel.d | 185 - generated/gtkd/gtk/Snapshot.d | 845 - generated/gtkd/gtk/SortListModel.d | 232 - generated/gtkd/gtk/Sorter.d | 174 - generated/gtkd/gtk/SpinButton.d | 648 - generated/gtkd/gtk/Spinner.d | 141 - generated/gtkd/gtk/Stack.d | 511 - generated/gtkd/gtk/StackPage.d | 224 - generated/gtkd/gtk/StackSidebar.d | 137 - generated/gtkd/gtk/StackSwitcher.d | 146 - generated/gtkd/gtk/Statusbar.d | 226 - generated/gtkd/gtk/StringFilter.d | 208 - generated/gtkd/gtk/StringList.d | 218 - generated/gtkd/gtk/StringObject.d | 107 - generated/gtkd/gtk/StringSorter.d | 156 - generated/gtkd/gtk/StyleContext.d | 450 - generated/gtkd/gtk/StyleProviderIF.d | 60 - generated/gtkd/gtk/StyleProviderT.d | 60 - generated/gtkd/gtk/Switch.d | 208 - generated/gtkd/gtk/Text.d | 816 - generated/gtkd/gtk/TextBuffer.d | 1752 -- generated/gtkd/gtk/TextChildAnchor.d | 143 - generated/gtkd/gtk/TextIter.d | 1644 -- generated/gtkd/gtk/TextMark.d | 210 - generated/gtkd/gtk/TextTag.d | 159 - generated/gtkd/gtk/TextTagTable.d | 238 - generated/gtkd/gtk/TextView.d | 1539 -- generated/gtkd/gtk/ToggleButton.d | 257 - generated/gtkd/gtk/Tooltip.d | 199 - generated/gtkd/gtk/TreeDragDestIF.d | 80 - generated/gtkd/gtk/TreeDragDestT.d | 83 - generated/gtkd/gtk/TreeDragSourceIF.d | 89 - generated/gtkd/gtk/TreeDragSourceT.d | 102 - generated/gtkd/gtk/TreeExpander.d | 208 - generated/gtkd/gtk/TreeIter.d | 114 - generated/gtkd/gtk/TreeListModel.d | 232 - generated/gtkd/gtk/TreeListRow.d | 240 - generated/gtkd/gtk/TreeListRowSorter.d | 140 - generated/gtkd/gtk/TreeModelFilter.d | 361 - generated/gtkd/gtk/TreeModelIF.d | 681 - generated/gtkd/gtk/TreeModelSort.d | 348 - generated/gtkd/gtk/TreeModelT.d | 842 - generated/gtkd/gtk/TreePath.d | 357 - generated/gtkd/gtk/TreeRowReference.d | 274 - generated/gtkd/gtk/TreeSelection.d | 387 - generated/gtkd/gtk/TreeSortableIF.d | 137 - generated/gtkd/gtk/TreeSortableT.d | 155 - generated/gtkd/gtk/TreeStore.d | 477 - generated/gtkd/gtk/TreeView.d | 1787 --- generated/gtkd/gtk/TreeViewColumn.d | 808 - generated/gtkd/gtk/Video.d | 308 - generated/gtkd/gtk/Viewport.d | 169 - generated/gtkd/gtk/VolumeButton.d | 98 - generated/gtkd/gtk/Widget.d | 3573 ----- generated/gtkd/gtk/WidgetClass.d | 408 - generated/gtkd/gtk/WidgetPaintable.d | 145 - generated/gtkd/gtk/Window.d | 1232 -- generated/gtkd/gtk/WindowControls.d | 213 - generated/gtkd/gtk/WindowGroup.d | 149 - generated/gtkd/gtk/WindowHandle.d | 129 - generated/gtkd/gtk/c/functions.d | 13361 ---------------- generated/gtkd/gtk/c/types.d | 8156 ---------- generated/gtkd/gtkd/Loader.d | 465 - generated/gtkd/gtkd/paths.d | 139 - generated/gtkd/harfbuzz/blob_t.d | 44 - generated/gtkd/harfbuzz/buffer_t.d | 43 - generated/gtkd/harfbuzz/c/functions.d | 263 - generated/gtkd/harfbuzz/c/types.d | 4185 ----- generated/gtkd/harfbuzz/face_t.d | 42 - generated/gtkd/harfbuzz/feature_t.d | 155 - generated/gtkd/harfbuzz/font_funcs_t.d | 49 - generated/gtkd/harfbuzz/font_t.d | 42 - generated/gtkd/harfbuzz/glyph_info_t.d | 43 - generated/gtkd/harfbuzz/glyph_position_t.d | 44 - generated/gtkd/harfbuzz/language_t.d | 79 - generated/gtkd/harfbuzz/map_t.d | 42 - .../gtkd/harfbuzz/ot_math_glyph_part_t.d | 151 - .../gtkd/harfbuzz/ot_math_glyph_variant_t.d | 107 - .../gtkd/harfbuzz/segment_properties_t.d | 44 - generated/gtkd/harfbuzz/set_t.d | 45 - generated/gtkd/harfbuzz/shape_plan_t.d | 50 - generated/gtkd/harfbuzz/unicode_funcs_t.d | 49 - generated/gtkd/harfbuzz/user_data_key_t.d | 42 - generated/gtkd/harfbuzz/variation_t.d | 119 - generated/gtkd/pango/PgAttribute.d | 750 - generated/gtkd/pango/PgAttributeFontDesc.d | 93 - generated/gtkd/pango/PgAttributeIterator.d | 208 - generated/gtkd/pango/PgAttributeLanguage.d | 90 - generated/gtkd/pango/PgAttributeList.d | 347 - generated/gtkd/pango/PgAttributeShape.d | 128 - generated/gtkd/pango/PgAttributeSize.d | 96 - generated/gtkd/pango/PgCairo.d | 456 - generated/gtkd/pango/PgCairoFontMap.d | 274 - generated/gtkd/pango/PgColor.d | 224 - generated/gtkd/pango/PgContext.d | 877 - generated/gtkd/pango/PgCoverage.d | 230 - generated/gtkd/pango/PgFont.d | 320 - generated/gtkd/pango/PgFontDescription.d | 737 - generated/gtkd/pango/PgFontFace.d | 165 - generated/gtkd/pango/PgFontFamily.d | 179 - generated/gtkd/pango/PgFontMap.d | 236 - generated/gtkd/pango/PgFontMetrics.d | 242 - generated/gtkd/pango/PgFontset.d | 134 - generated/gtkd/pango/PgFontsetSimple.d | 121 - generated/gtkd/pango/PgGlyphItem.d | 274 - generated/gtkd/pango/PgGlyphItemIter.d | 317 - generated/gtkd/pango/PgGlyphString.d | 274 - generated/gtkd/pango/PgItem.d | 244 - generated/gtkd/pango/PgLanguage.d | 317 - generated/gtkd/pango/PgLayout.d | 1238 -- generated/gtkd/pango/PgLayoutIter.d | 384 - generated/gtkd/pango/PgLayoutLine.d | 324 - generated/gtkd/pango/PgMatrix.d | 463 - generated/gtkd/pango/PgMiscellaneous.d | 361 - generated/gtkd/pango/PgRenderer.d | 481 - generated/gtkd/pango/PgScript.d | 112 - generated/gtkd/pango/PgScriptIter.d | 165 - generated/gtkd/pango/PgTabArray.d | 221 - generated/gtkd/pango/PgVersion.d | 105 - generated/gtkd/pango/PgVertical.d | 128 - generated/gtkd/pango/c/functions.d | 1683 -- generated/gtkd/pango/c/types.d | 2377 --- generated/gtkd/rsvg/Handle.d | 1102 -- generated/gtkd/rsvg/c/functions.d | 155 - generated/gtkd/rsvg/c/types.d | 248 - {generated/gtkd => source}/cairo/Context.d | 0 {generated/gtkd => source}/cairo/Device.d | 0 {generated/gtkd => source}/cairo/FontFace.d | 0 {generated/gtkd => source}/cairo/FontOption.d | 0 .../gtkd => source}/cairo/ImageSurface.d | 0 {generated/gtkd => source}/cairo/Matrix.d | 0 .../gtkd => source}/cairo/MeshPattern.d | 0 {generated/gtkd => source}/cairo/Pattern.d | 0 {generated/gtkd => source}/cairo/PdfSurface.d | 0 .../gtkd => source}/cairo/PostScriptSurface.d | 0 .../gtkd => source}/cairo/RasterSource.d | 0 .../gtkd => source}/cairo/RecordingSurface.d | 0 {generated/gtkd => source}/cairo/Region.d | 0 {generated/gtkd => source}/cairo/ScaledFont.d | 0 {generated/gtkd => source}/cairo/Script.d | 0 .../gtkd => source}/cairo/ScriptSurface.d | 0 {generated/gtkd => source}/cairo/Status.d | 0 {generated/gtkd => source}/cairo/Surface.d | 0 {generated/gtkd => source}/cairo/SvgSurface.d | 0 {generated/gtkd => source}/cairo/Types.d | 0 .../gtkd => source}/cairo/UserFontFace.d | 0 {generated/gtkd => source}/cairo/Version.d | 0 .../cairo/c/functions-compiletime.d | 0 {src => source}/cairo/c/functions-runtime.d | 0 {generated/gtkd => source}/cairo/c/types.d | 0 .../gtkd/gtkd => source/gtk}/Implement.d | 0 {src => source}/linker/Exception.d | 0 {src => source}/linker/Loader.d | 0 src/APILookup.txt | 113 - src/APILookupAdw.txt | 81 - src/APILookupAtk.txt | 109 - src/APILookupCairo.txt | 48 - src/APILookupGLd.txt | 105 - src/APILookupGLib.txt | 2149 --- src/APILookupGLt.txt | 333 - src/APILookupGObject.txt | 1176 -- src/APILookupGStreamer.txt | 1494 -- src/APILookupGThread.txt | 65 - src/APILookupGdk.txt | 63 - src/APILookupGdkPixbuf.txt | 255 - src/APILookupGio.txt | 626 - src/APILookupGraphene.txt | 25 - src/APILookupGsk.txt | 25 - src/APILookupGstApp.txt | 27 - src/APILookupGstBase.txt | 87 - src/APILookupGstInterfaces.txt | 350 - src/APILookupGstMpegts.txt | 80 - src/APILookupGtk.txt | 600 - src/APILookupHarfBuzz.txt | 39 - src/APILookupPango.txt | 269 - src/APILookupRsvg.txt | 28 - src/APILookupShumate.txt | 73 - src/APILookupSoup.txt | 91 - src/APILookupSourceView.txt | 29 - src/cairo/Context.d | 2340 --- src/cairo/Device.d | 303 - src/cairo/FontFace.d | 208 - src/cairo/FontOption.d | 307 - src/cairo/ImageSurface.d | 328 - src/cairo/Matrix.d | 292 - src/cairo/MeshPattern.d | 376 - src/cairo/Pattern.d | 608 - src/cairo/PdfSurface.d | 223 - src/cairo/PostScriptSurface.d | 345 - src/cairo/RasterSource.d | 262 - src/cairo/RecordingSurface.d | 172 - src/cairo/Region.d | 431 - src/cairo/ScaledFont.d | 432 - src/cairo/Script.d | 203 - src/cairo/ScriptSurface.d | 151 - src/cairo/Status.d | 119 - src/cairo/Surface.d | 674 - src/cairo/SvgSurface.d | 207 - src/cairo/Types.d | 64 - src/cairo/UserFontFace.d | 239 - src/cairo/Version.d | 144 - src/cairo/c/types.d | 1823 --- src/gtkd/Implement.d | 503 - 1153 files changed, 443247 deletions(-) delete mode 100644 generated/gstreamer/gst/app/AppSink.d delete mode 100644 generated/gstreamer/gst/app/AppSrc.d delete mode 100644 generated/gstreamer/gst/app/c/functions.d delete mode 100644 generated/gstreamer/gst/app/c/types.d delete mode 100644 generated/gstreamer/gst/base/Adapter.d delete mode 100644 generated/gstreamer/gst/base/Aggregator.d delete mode 100644 generated/gstreamer/gst/base/AggregatorPad.d delete mode 100644 generated/gstreamer/gst/base/Base.d delete mode 100644 generated/gstreamer/gst/base/BaseParse.d delete mode 100644 generated/gstreamer/gst/base/BaseParseFrame.d delete mode 100644 generated/gstreamer/gst/base/BaseSink.d delete mode 100644 generated/gstreamer/gst/base/BaseSrc.d delete mode 100644 generated/gstreamer/gst/base/BaseTransform.d delete mode 100644 generated/gstreamer/gst/base/BitReader.d delete mode 100644 generated/gstreamer/gst/base/BitWriter.d delete mode 100644 generated/gstreamer/gst/base/ByteReader.d delete mode 100644 generated/gstreamer/gst/base/ByteWriter.d delete mode 100644 generated/gstreamer/gst/base/CollectPads.d delete mode 100644 generated/gstreamer/gst/base/DataQueue.d delete mode 100644 generated/gstreamer/gst/base/FlowCombiner.d delete mode 100644 generated/gstreamer/gst/base/PushSrc.d delete mode 100644 generated/gstreamer/gst/base/QueueArray.d delete mode 100644 generated/gstreamer/gst/base/c/functions.d delete mode 100644 generated/gstreamer/gst/base/c/types.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscEIT.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscEITEvent.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscETT.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscMGT.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscMGTTable.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscMultString.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscRRT.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscRRTDimension.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscRRTDimensionValue.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscSTT.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscStringSegment.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscVCT.d delete mode 100644 generated/gstreamer/gst/mpegts/AtscVCTSource.d delete mode 100644 generated/gstreamer/gst/mpegts/BAT.d delete mode 100644 generated/gstreamer/gst/mpegts/BATStream.d delete mode 100644 generated/gstreamer/gst/mpegts/CableDeliverySystemDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/ComponentDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/Content.d delete mode 100644 generated/gstreamer/gst/mpegts/DVBLinkageDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/DVBLinkageEvent.d delete mode 100644 generated/gstreamer/gst/mpegts/DVBLinkageExtendedEvent.d delete mode 100644 generated/gstreamer/gst/mpegts/DVBLinkageMobileHandOver.d delete mode 100644 generated/gstreamer/gst/mpegts/DVBParentalRatingItem.d delete mode 100644 generated/gstreamer/gst/mpegts/DVBServiceListItem.d delete mode 100644 generated/gstreamer/gst/mpegts/DataBroadcastDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/Descriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/DvbMultilingualBouquetNameItem.d delete mode 100644 generated/gstreamer/gst/mpegts/DvbMultilingualComponentItem.d delete mode 100644 generated/gstreamer/gst/mpegts/DvbMultilingualNetworkNameItem.d delete mode 100644 generated/gstreamer/gst/mpegts/DvbMultilingualServiceNameItem.d delete mode 100644 generated/gstreamer/gst/mpegts/EIT.d delete mode 100644 generated/gstreamer/gst/mpegts/EITEvent.d delete mode 100644 generated/gstreamer/gst/mpegts/ExtendedEventDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/ExtendedEventItem.d delete mode 100644 generated/gstreamer/gst/mpegts/ISO639LanguageDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/LogicalChannel.d delete mode 100644 generated/gstreamer/gst/mpegts/LogicalChannelDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/Mpegts.d delete mode 100644 generated/gstreamer/gst/mpegts/NIT.d delete mode 100644 generated/gstreamer/gst/mpegts/NITStream.d delete mode 100644 generated/gstreamer/gst/mpegts/PMT.d delete mode 100644 generated/gstreamer/gst/mpegts/PMTStream.d delete mode 100644 generated/gstreamer/gst/mpegts/PatProgram.d delete mode 100644 generated/gstreamer/gst/mpegts/SCTESIT.d delete mode 100644 generated/gstreamer/gst/mpegts/SCTESpliceEvent.d delete mode 100644 generated/gstreamer/gst/mpegts/SDT.d delete mode 100644 generated/gstreamer/gst/mpegts/SDTService.d delete mode 100644 generated/gstreamer/gst/mpegts/SatelliteDeliverySystemDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/Section.d delete mode 100644 generated/gstreamer/gst/mpegts/T2DeliverySystemCell.d delete mode 100644 generated/gstreamer/gst/mpegts/T2DeliverySystemCellExtension.d delete mode 100644 generated/gstreamer/gst/mpegts/T2DeliverySystemDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/TOT.d delete mode 100644 generated/gstreamer/gst/mpegts/TerrestrialDeliverySystemDescriptor.d delete mode 100644 generated/gstreamer/gst/mpegts/c/functions.d delete mode 100644 generated/gstreamer/gst/mpegts/c/types.d delete mode 100644 generated/gstreamer/gstinterfaces/VideoOverlay.d delete mode 100644 generated/gstreamer/gstinterfaces/c/functions.d delete mode 100644 generated/gstreamer/gstinterfaces/c/types.d delete mode 100644 generated/gstreamer/gstreamer/AllocationParams.d delete mode 100644 generated/gstreamer/gstreamer/Allocator.d delete mode 100644 generated/gstreamer/gstreamer/AtomicQueue.d delete mode 100644 generated/gstreamer/gstreamer/Bin.d delete mode 100644 generated/gstreamer/gstreamer/Bitmask.d delete mode 100644 generated/gstreamer/gstreamer/Buffer.d delete mode 100644 generated/gstreamer/gstreamer/BufferList.d delete mode 100644 generated/gstreamer/gstreamer/BufferPool.d delete mode 100644 generated/gstreamer/gstreamer/Bus.d delete mode 100644 generated/gstreamer/gstreamer/Caps.d delete mode 100644 generated/gstreamer/gstreamer/CapsFeatures.d delete mode 100644 generated/gstreamer/gstreamer/ChildProxyIF.d delete mode 100644 generated/gstreamer/gstreamer/ChildProxyT.d delete mode 100644 generated/gstreamer/gstreamer/Clock.d delete mode 100644 generated/gstreamer/gstreamer/Context.d delete mode 100644 generated/gstreamer/gstreamer/ControlBinding.d delete mode 100644 generated/gstreamer/gstreamer/ControlSource.d delete mode 100644 generated/gstreamer/gstreamer/DateTime.d delete mode 100644 generated/gstreamer/gstreamer/Debug.d delete mode 100644 generated/gstreamer/gstreamer/DebugCategory.d delete mode 100644 generated/gstreamer/gstreamer/DebugMessage.d delete mode 100644 generated/gstreamer/gstreamer/Device.d delete mode 100644 generated/gstreamer/gstreamer/DeviceMonitor.d delete mode 100644 generated/gstreamer/gstreamer/DeviceProvider.d delete mode 100644 generated/gstreamer/gstreamer/DeviceProviderClass.d delete mode 100644 generated/gstreamer/gstreamer/DeviceProviderFactory.d delete mode 100644 generated/gstreamer/gstreamer/DoubleRange.d delete mode 100644 generated/gstreamer/gstreamer/DynamicTypeFactory.d delete mode 100644 generated/gstreamer/gstreamer/Element.d delete mode 100644 generated/gstreamer/gstreamer/ElementClass.d delete mode 100644 generated/gstreamer/gstreamer/ElementFactory.d delete mode 100644 generated/gstreamer/gstreamer/Event.d delete mode 100644 generated/gstreamer/gstreamer/FlagSet.d delete mode 100644 generated/gstreamer/gstreamer/Format.d delete mode 100644 generated/gstreamer/gstreamer/Fraction.d delete mode 100644 generated/gstreamer/gstreamer/FractionRange.d delete mode 100644 generated/gstreamer/gstreamer/GError.d delete mode 100644 generated/gstreamer/gstreamer/GStreamer.d delete mode 100644 generated/gstreamer/gstreamer/GhostPad.d delete mode 100644 generated/gstreamer/gstreamer/Int64Range.d delete mode 100644 generated/gstreamer/gstreamer/IntRange.d delete mode 100644 generated/gstreamer/gstreamer/Iterator.d delete mode 100644 generated/gstreamer/gstreamer/Memory.d delete mode 100644 generated/gstreamer/gstreamer/Message.d delete mode 100644 generated/gstreamer/gstreamer/Meta.d delete mode 100644 generated/gstreamer/gstreamer/MiniObject.d delete mode 100644 generated/gstreamer/gstreamer/ObjectGst.d delete mode 100644 generated/gstreamer/gstreamer/Pad.d delete mode 100644 generated/gstreamer/gstreamer/PadProbeInfo.d delete mode 100644 generated/gstreamer/gstreamer/PadTemplate.d delete mode 100644 generated/gstreamer/gstreamer/ParamSpecFraction.d delete mode 100644 generated/gstreamer/gstreamer/ParentBufferMeta.d delete mode 100644 generated/gstreamer/gstreamer/Parse.d delete mode 100644 generated/gstreamer/gstreamer/ParseContext.d delete mode 100644 generated/gstreamer/gstreamer/Pipeline.d delete mode 100644 generated/gstreamer/gstreamer/Plugin.d delete mode 100644 generated/gstreamer/gstreamer/PluginFeature.d delete mode 100644 generated/gstreamer/gstreamer/Poll.d delete mode 100644 generated/gstreamer/gstreamer/PollFD.d delete mode 100644 generated/gstreamer/gstreamer/PresetIF.d delete mode 100644 generated/gstreamer/gstreamer/PresetT.d delete mode 100644 generated/gstreamer/gstreamer/Promise.d delete mode 100644 generated/gstreamer/gstreamer/ProtectionMeta.d delete mode 100644 generated/gstreamer/gstreamer/ProxyPad.d delete mode 100644 generated/gstreamer/gstreamer/Query.d delete mode 100644 generated/gstreamer/gstreamer/ReferenceTimestampMeta.d delete mode 100644 generated/gstreamer/gstreamer/Registry.d delete mode 100644 generated/gstreamer/gstreamer/Sample.d delete mode 100644 generated/gstreamer/gstreamer/Segment.d delete mode 100644 generated/gstreamer/gstreamer/StaticCaps.d delete mode 100644 generated/gstreamer/gstreamer/StaticPadTemplate.d delete mode 100644 generated/gstreamer/gstreamer/Stream.d delete mode 100644 generated/gstreamer/gstreamer/StreamCollection.d delete mode 100644 generated/gstreamer/gstreamer/Structure.d delete mode 100644 generated/gstreamer/gstreamer/SystemClock.d delete mode 100644 generated/gstreamer/gstreamer/TagList.d delete mode 100644 generated/gstreamer/gstreamer/TagSetterIF.d delete mode 100644 generated/gstreamer/gstreamer/TagSetterT.d delete mode 100644 generated/gstreamer/gstreamer/Task.d delete mode 100644 generated/gstreamer/gstreamer/TaskPool.d delete mode 100644 generated/gstreamer/gstreamer/Toc.d delete mode 100644 generated/gstreamer/gstreamer/TocEntry.d delete mode 100644 generated/gstreamer/gstreamer/TocSetterIF.d delete mode 100644 generated/gstreamer/gstreamer/TocSetterT.d delete mode 100644 generated/gstreamer/gstreamer/Tracer.d delete mode 100644 generated/gstreamer/gstreamer/TracerFactory.d delete mode 100644 generated/gstreamer/gstreamer/TracerRecord.d delete mode 100644 generated/gstreamer/gstreamer/TypeFind.d delete mode 100644 generated/gstreamer/gstreamer/TypeFindFactory.d delete mode 100644 generated/gstreamer/gstreamer/URIHandlerIF.d delete mode 100644 generated/gstreamer/gstreamer/URIHandlerT.d delete mode 100644 generated/gstreamer/gstreamer/Uri.d delete mode 100644 generated/gstreamer/gstreamer/Utils.d delete mode 100644 generated/gstreamer/gstreamer/ValueArray.d delete mode 100644 generated/gstreamer/gstreamer/ValueGst.d delete mode 100644 generated/gstreamer/gstreamer/ValueList.d delete mode 100644 generated/gstreamer/gstreamer/c/functions.d delete mode 100644 generated/gstreamer/gstreamer/c/types.d delete mode 100644 generated/gtkd/atk/ActionIF.d delete mode 100644 generated/gtkd/atk/ActionT.d delete mode 100644 generated/gtkd/atk/ComponentIF.d delete mode 100644 generated/gtkd/atk/ComponentT.d delete mode 100644 generated/gtkd/atk/DocumentIF.d delete mode 100644 generated/gtkd/atk/DocumentT.d delete mode 100644 generated/gtkd/atk/EditableTextIF.d delete mode 100644 generated/gtkd/atk/EditableTextT.d delete mode 100644 generated/gtkd/atk/GObjectAccessible.d delete mode 100644 generated/gtkd/atk/Hyperlink.d delete mode 100644 generated/gtkd/atk/HyperlinkImplIF.d delete mode 100644 generated/gtkd/atk/HyperlinkImplT.d delete mode 100644 generated/gtkd/atk/HypertextIF.d delete mode 100644 generated/gtkd/atk/HypertextT.d delete mode 100644 generated/gtkd/atk/ImageIF.d delete mode 100644 generated/gtkd/atk/ImageT.d delete mode 100644 generated/gtkd/atk/ImplementorIF.d delete mode 100644 generated/gtkd/atk/ImplementorT.d delete mode 100644 generated/gtkd/atk/Misc.d delete mode 100644 generated/gtkd/atk/NoOpObject.d delete mode 100644 generated/gtkd/atk/NoOpObjectFactory.d delete mode 100644 generated/gtkd/atk/ObjectAtk.d delete mode 100644 generated/gtkd/atk/ObjectFactory.d delete mode 100644 generated/gtkd/atk/Plug.d delete mode 100644 generated/gtkd/atk/Range.d delete mode 100644 generated/gtkd/atk/Rectangle.d delete mode 100644 generated/gtkd/atk/Registry.d delete mode 100644 generated/gtkd/atk/Relation.d delete mode 100644 generated/gtkd/atk/RelationSet.d delete mode 100644 generated/gtkd/atk/SelectionIF.d delete mode 100644 generated/gtkd/atk/SelectionT.d delete mode 100644 generated/gtkd/atk/Socket.d delete mode 100644 generated/gtkd/atk/State.d delete mode 100644 generated/gtkd/atk/StateSet.d delete mode 100644 generated/gtkd/atk/StreamableContentIF.d delete mode 100644 generated/gtkd/atk/StreamableContentT.d delete mode 100644 generated/gtkd/atk/TableCellIF.d delete mode 100644 generated/gtkd/atk/TableCellT.d delete mode 100644 generated/gtkd/atk/TableIF.d delete mode 100644 generated/gtkd/atk/TableT.d delete mode 100644 generated/gtkd/atk/TextIF.d delete mode 100644 generated/gtkd/atk/TextRange.d delete mode 100644 generated/gtkd/atk/TextT.d delete mode 100644 generated/gtkd/atk/Util.d delete mode 100644 generated/gtkd/atk/ValueIF.d delete mode 100644 generated/gtkd/atk/ValueT.d delete mode 100644 generated/gtkd/atk/Version.d delete mode 100644 generated/gtkd/atk/WindowIF.d delete mode 100644 generated/gtkd/atk/WindowT.d delete mode 100644 generated/gtkd/atk/c/functions.d delete mode 100644 generated/gtkd/atk/c/types.d delete mode 100644 generated/gtkd/cairo/c/functions.d delete mode 100644 generated/gtkd/gdk/AppLaunchContext.d delete mode 100644 generated/gtkd/gdk/ButtonEvent.d delete mode 100644 generated/gtkd/gdk/CairoContext.d delete mode 100644 generated/gtkd/gdk/Clipboard.d delete mode 100644 generated/gtkd/gdk/ContentDeserializer.d delete mode 100644 generated/gtkd/gdk/ContentFormats.d delete mode 100644 generated/gtkd/gdk/ContentFormatsBuilder.d delete mode 100644 generated/gtkd/gdk/ContentProvider.d delete mode 100644 generated/gtkd/gdk/ContentSerializer.d delete mode 100644 generated/gtkd/gdk/CrossingEvent.d delete mode 100644 generated/gtkd/gdk/Cursor.d delete mode 100644 generated/gtkd/gdk/DNDEvent.d delete mode 100644 generated/gtkd/gdk/DeleteEvent.d delete mode 100644 generated/gtkd/gdk/Device.d delete mode 100644 generated/gtkd/gdk/DevicePadIF.d delete mode 100644 generated/gtkd/gdk/DevicePadT.d delete mode 100644 generated/gtkd/gdk/DeviceTool.d delete mode 100644 generated/gtkd/gdk/Display.d delete mode 100644 generated/gtkd/gdk/DisplayManager.d delete mode 100644 generated/gtkd/gdk/Drag.d delete mode 100644 generated/gtkd/gdk/DragSurfaceIF.d delete mode 100644 generated/gtkd/gdk/DragSurfaceT.d delete mode 100644 generated/gtkd/gdk/DrawContext.d delete mode 100644 generated/gtkd/gdk/Drop.d delete mode 100644 generated/gtkd/gdk/Event.d delete mode 100644 generated/gtkd/gdk/EventSequence.d delete mode 100644 generated/gtkd/gdk/FocusEvent.d delete mode 100644 generated/gtkd/gdk/FrameClock.d delete mode 100644 generated/gtkd/gdk/FrameTimings.d delete mode 100644 generated/gtkd/gdk/GLContext.d delete mode 100644 generated/gtkd/gdk/GLTexture.d delete mode 100644 generated/gtkd/gdk/GrabBrokenEvent.d delete mode 100644 generated/gtkd/gdk/KeyEvent.d delete mode 100644 generated/gtkd/gdk/Keysyms.d delete mode 100644 generated/gtkd/gdk/MemoryTexture.d delete mode 100644 generated/gtkd/gdk/MonitorGdk.d delete mode 100644 generated/gtkd/gdk/MotionEvent.d delete mode 100644 generated/gtkd/gdk/PadEvent.d delete mode 100644 generated/gtkd/gdk/PaintableIF.d delete mode 100644 generated/gtkd/gdk/PaintableT.d delete mode 100644 generated/gtkd/gdk/PopupIF.d delete mode 100644 generated/gtkd/gdk/PopupLayout.d delete mode 100644 generated/gtkd/gdk/PopupT.d delete mode 100644 generated/gtkd/gdk/ProximityEvent.d delete mode 100644 generated/gtkd/gdk/RGBA.d delete mode 100644 generated/gtkd/gdk/Rectangle.d delete mode 100644 generated/gtkd/gdk/ScrollEvent.d delete mode 100644 generated/gtkd/gdk/Seat.d delete mode 100644 generated/gtkd/gdk/Snapshot.d delete mode 100644 generated/gtkd/gdk/Surface.d delete mode 100644 generated/gtkd/gdk/Texture.d delete mode 100644 generated/gtkd/gdk/ToplevelIF.d delete mode 100644 generated/gtkd/gdk/ToplevelLayout.d delete mode 100644 generated/gtkd/gdk/ToplevelSize.d delete mode 100644 generated/gtkd/gdk/ToplevelT.d delete mode 100644 generated/gtkd/gdk/TouchEvent.d delete mode 100644 generated/gtkd/gdk/TouchpadEvent.d delete mode 100644 generated/gtkd/gdk/VulkanContext.d delete mode 100644 generated/gtkd/gdk/c/functions.d delete mode 100644 generated/gtkd/gdk/c/types.d delete mode 100644 generated/gtkd/gdkpixbuf/Pixbuf.d delete mode 100644 generated/gtkd/gdkpixbuf/PixbufAnimation.d delete mode 100644 generated/gtkd/gdkpixbuf/PixbufAnimationIter.d delete mode 100644 generated/gtkd/gdkpixbuf/PixbufFormat.d delete mode 100644 generated/gtkd/gdkpixbuf/PixbufLoader.d delete mode 100644 generated/gtkd/gdkpixbuf/PixbufNonAnim.d delete mode 100644 generated/gtkd/gdkpixbuf/PixbufSimpleAnimation.d delete mode 100644 generated/gtkd/gdkpixbuf/Pixdata.d delete mode 100644 generated/gtkd/gdkpixbuf/c/functions.d delete mode 100644 generated/gtkd/gdkpixbuf/c/types.d delete mode 100644 generated/gtkd/gio/ActionGroupIF.d delete mode 100644 generated/gtkd/gio/ActionGroupT.d delete mode 100644 generated/gtkd/gio/ActionIF.d delete mode 100644 generated/gtkd/gio/ActionMapIF.d delete mode 100644 generated/gtkd/gio/ActionMapT.d delete mode 100644 generated/gtkd/gio/ActionT.d delete mode 100644 generated/gtkd/gio/AppInfoIF.d delete mode 100644 generated/gtkd/gio/AppInfoMonitor.d delete mode 100644 generated/gtkd/gio/AppInfoT.d delete mode 100644 generated/gtkd/gio/AppLaunchContext.d delete mode 100644 generated/gtkd/gio/Application.d delete mode 100644 generated/gtkd/gio/ApplicationCommandLine.d delete mode 100644 generated/gtkd/gio/AsyncInitableIF.d delete mode 100644 generated/gtkd/gio/AsyncInitableT.d delete mode 100644 generated/gtkd/gio/AsyncResultIF.d delete mode 100644 generated/gtkd/gio/AsyncResultT.d delete mode 100644 generated/gtkd/gio/BufferedInputStream.d delete mode 100644 generated/gtkd/gio/BufferedOutputStream.d delete mode 100644 generated/gtkd/gio/BytesIcon.d delete mode 100644 generated/gtkd/gio/Cancellable.d delete mode 100644 generated/gtkd/gio/CharsetConverter.d delete mode 100644 generated/gtkd/gio/ContentType.d delete mode 100644 generated/gtkd/gio/ConverterIF.d delete mode 100644 generated/gtkd/gio/ConverterInputStream.d delete mode 100644 generated/gtkd/gio/ConverterOutputStream.d delete mode 100644 generated/gtkd/gio/ConverterT.d delete mode 100644 generated/gtkd/gio/Credentials.d delete mode 100644 generated/gtkd/gio/DBusActionGroup.d delete mode 100644 generated/gtkd/gio/DBusAnnotationInfo.d delete mode 100644 generated/gtkd/gio/DBusArgInfo.d delete mode 100644 generated/gtkd/gio/DBusAuthObserver.d delete mode 100644 generated/gtkd/gio/DBusConnection.d delete mode 100644 generated/gtkd/gio/DBusError.d delete mode 100644 generated/gtkd/gio/DBusInterfaceIF.d delete mode 100644 generated/gtkd/gio/DBusInterfaceInfo.d delete mode 100644 generated/gtkd/gio/DBusInterfaceSkeleton.d delete mode 100644 generated/gtkd/gio/DBusInterfaceT.d delete mode 100644 generated/gtkd/gio/DBusMenuModel.d delete mode 100644 generated/gtkd/gio/DBusMessage.d delete mode 100644 generated/gtkd/gio/DBusMethodInfo.d delete mode 100644 generated/gtkd/gio/DBusMethodInvocation.d delete mode 100644 generated/gtkd/gio/DBusNames.d delete mode 100644 generated/gtkd/gio/DBusNodeInfo.d delete mode 100644 generated/gtkd/gio/DBusObjectIF.d delete mode 100644 generated/gtkd/gio/DBusObjectManagerClient.d delete mode 100644 generated/gtkd/gio/DBusObjectManagerIF.d delete mode 100644 generated/gtkd/gio/DBusObjectManagerServer.d delete mode 100644 generated/gtkd/gio/DBusObjectManagerT.d delete mode 100644 generated/gtkd/gio/DBusObjectProxy.d delete mode 100644 generated/gtkd/gio/DBusObjectSkeleton.d delete mode 100644 generated/gtkd/gio/DBusObjectT.d delete mode 100644 generated/gtkd/gio/DBusPropertyInfo.d delete mode 100644 generated/gtkd/gio/DBusProxy.d delete mode 100644 generated/gtkd/gio/DBusServer.d delete mode 100644 generated/gtkd/gio/DBusSignalInfo.d delete mode 100644 generated/gtkd/gio/DBusUtilities.d delete mode 100644 generated/gtkd/gio/DataInputStream.d delete mode 100644 generated/gtkd/gio/DataOutputStream.d delete mode 100644 generated/gtkd/gio/DatagramBasedIF.d delete mode 100644 generated/gtkd/gio/DatagramBasedT.d delete mode 100644 generated/gtkd/gio/DesktopAppInfo.d delete mode 100644 generated/gtkd/gio/DesktopAppInfoLookupIF.d delete mode 100644 generated/gtkd/gio/DesktopAppInfoLookupT.d delete mode 100644 generated/gtkd/gio/DriveIF.d delete mode 100644 generated/gtkd/gio/DriveT.d delete mode 100644 generated/gtkd/gio/DtlsClientConnectionIF.d delete mode 100644 generated/gtkd/gio/DtlsClientConnectionT.d delete mode 100644 generated/gtkd/gio/DtlsConnectionIF.d delete mode 100644 generated/gtkd/gio/DtlsConnectionT.d delete mode 100644 generated/gtkd/gio/DtlsServerConnectionIF.d delete mode 100644 generated/gtkd/gio/DtlsServerConnectionT.d delete mode 100644 generated/gtkd/gio/Emblem.d delete mode 100644 generated/gtkd/gio/EmblemedIcon.d delete mode 100644 generated/gtkd/gio/ErrorGIO.d delete mode 100644 generated/gtkd/gio/FileAttributeInfoList.d delete mode 100644 generated/gtkd/gio/FileAttributeMatcher.d delete mode 100644 generated/gtkd/gio/FileDescriptorBasedIF.d delete mode 100644 generated/gtkd/gio/FileDescriptorBasedT.d delete mode 100644 generated/gtkd/gio/FileEnumerator.d delete mode 100644 generated/gtkd/gio/FileIF.d delete mode 100644 generated/gtkd/gio/FileIOStream.d delete mode 100644 generated/gtkd/gio/FileIcon.d delete mode 100644 generated/gtkd/gio/FileInfo.d delete mode 100644 generated/gtkd/gio/FileInputStream.d delete mode 100644 generated/gtkd/gio/FileMonitor.d delete mode 100644 generated/gtkd/gio/FileOutputStream.d delete mode 100644 generated/gtkd/gio/FileT.d delete mode 100644 generated/gtkd/gio/FilenameCompleter.d delete mode 100644 generated/gtkd/gio/FilterInputStream.d delete mode 100644 generated/gtkd/gio/FilterOutputStream.d delete mode 100644 generated/gtkd/gio/IOExtension.d delete mode 100644 generated/gtkd/gio/IOExtensionPoint.d delete mode 100644 generated/gtkd/gio/IOModule.d delete mode 100644 generated/gtkd/gio/IOModuleScope.d delete mode 100644 generated/gtkd/gio/IOSchedulerJob.d delete mode 100644 generated/gtkd/gio/IOStream.d delete mode 100644 generated/gtkd/gio/IconIF.d delete mode 100644 generated/gtkd/gio/IconT.d delete mode 100644 generated/gtkd/gio/InetAddress.d delete mode 100644 generated/gtkd/gio/InetAddressMask.d delete mode 100644 generated/gtkd/gio/InetSocketAddress.d delete mode 100644 generated/gtkd/gio/InitableIF.d delete mode 100644 generated/gtkd/gio/InitableT.d delete mode 100644 generated/gtkd/gio/InputStream.d delete mode 100644 generated/gtkd/gio/ListModelIF.d delete mode 100644 generated/gtkd/gio/ListModelT.d delete mode 100644 generated/gtkd/gio/ListStore.d delete mode 100644 generated/gtkd/gio/LoadableIconIF.d delete mode 100644 generated/gtkd/gio/LoadableIconT.d delete mode 100644 generated/gtkd/gio/MemoryInputStream.d delete mode 100644 generated/gtkd/gio/MemoryMonitorIF.d delete mode 100644 generated/gtkd/gio/MemoryMonitorT.d delete mode 100644 generated/gtkd/gio/MemoryOutputStream.d delete mode 100644 generated/gtkd/gio/Menu.d delete mode 100644 generated/gtkd/gio/MenuAttributeIter.d delete mode 100644 generated/gtkd/gio/MenuItem.d delete mode 100644 generated/gtkd/gio/MenuLinkIter.d delete mode 100644 generated/gtkd/gio/MenuModel.d delete mode 100644 generated/gtkd/gio/MountIF.d delete mode 100644 generated/gtkd/gio/MountOperation.d delete mode 100644 generated/gtkd/gio/MountT.d delete mode 100644 generated/gtkd/gio/NativeSocketAddress.d delete mode 100644 generated/gtkd/gio/NativeVolumeMonitor.d delete mode 100644 generated/gtkd/gio/NetworkAddress.d delete mode 100644 generated/gtkd/gio/NetworkMonitorIF.d delete mode 100644 generated/gtkd/gio/NetworkMonitorT.d delete mode 100644 generated/gtkd/gio/NetworkService.d delete mode 100644 generated/gtkd/gio/Notification.d delete mode 100644 generated/gtkd/gio/OutputStream.d delete mode 100644 generated/gtkd/gio/Permission.d delete mode 100644 generated/gtkd/gio/PollableInputStreamIF.d delete mode 100644 generated/gtkd/gio/PollableInputStreamT.d delete mode 100644 generated/gtkd/gio/PollableOutputStreamIF.d delete mode 100644 generated/gtkd/gio/PollableOutputStreamT.d delete mode 100644 generated/gtkd/gio/PollableUtils.d delete mode 100644 generated/gtkd/gio/PropertyAction.d delete mode 100644 generated/gtkd/gio/ProxyAddress.d delete mode 100644 generated/gtkd/gio/ProxyAddressEnumerator.d delete mode 100644 generated/gtkd/gio/ProxyIF.d delete mode 100644 generated/gtkd/gio/ProxyResolverIF.d delete mode 100644 generated/gtkd/gio/ProxyResolverT.d delete mode 100644 generated/gtkd/gio/ProxyT.d delete mode 100644 generated/gtkd/gio/RemoteActionGroupIF.d delete mode 100644 generated/gtkd/gio/RemoteActionGroupT.d delete mode 100644 generated/gtkd/gio/Resolver.d delete mode 100644 generated/gtkd/gio/Resource.d delete mode 100644 generated/gtkd/gio/SeekableIF.d delete mode 100644 generated/gtkd/gio/SeekableT.d delete mode 100644 generated/gtkd/gio/Settings.d delete mode 100644 generated/gtkd/gio/SettingsBackend.d delete mode 100644 generated/gtkd/gio/SettingsSchema.d delete mode 100644 generated/gtkd/gio/SettingsSchemaKey.d delete mode 100644 generated/gtkd/gio/SettingsSchemaSource.d delete mode 100644 generated/gtkd/gio/SimpleAction.d delete mode 100644 generated/gtkd/gio/SimpleActionGroup.d delete mode 100644 generated/gtkd/gio/SimpleAsyncResult.d delete mode 100644 generated/gtkd/gio/SimpleIOStream.d delete mode 100644 generated/gtkd/gio/SimplePermission.d delete mode 100644 generated/gtkd/gio/SimpleProxyResolver.d delete mode 100644 generated/gtkd/gio/Socket.d delete mode 100644 generated/gtkd/gio/SocketAddress.d delete mode 100644 generated/gtkd/gio/SocketAddressEnumerator.d delete mode 100644 generated/gtkd/gio/SocketClient.d delete mode 100644 generated/gtkd/gio/SocketConnectableIF.d delete mode 100644 generated/gtkd/gio/SocketConnectableT.d delete mode 100644 generated/gtkd/gio/SocketConnection.d delete mode 100644 generated/gtkd/gio/SocketControlMessage.d delete mode 100644 generated/gtkd/gio/SocketListener.d delete mode 100644 generated/gtkd/gio/SocketService.d delete mode 100644 generated/gtkd/gio/SrvTarget.d delete mode 100644 generated/gtkd/gio/StaticResource.d delete mode 100644 generated/gtkd/gio/Subprocess.d delete mode 100644 generated/gtkd/gio/SubprocessLauncher.d delete mode 100644 generated/gtkd/gio/Task.d delete mode 100644 generated/gtkd/gio/TcpConnection.d delete mode 100644 generated/gtkd/gio/TcpWrapperConnection.d delete mode 100644 generated/gtkd/gio/TestDBus.d delete mode 100644 generated/gtkd/gio/ThemedIcon.d delete mode 100644 generated/gtkd/gio/ThreadedSocketService.d delete mode 100644 generated/gtkd/gio/TlsBackendIF.d delete mode 100644 generated/gtkd/gio/TlsBackendT.d delete mode 100644 generated/gtkd/gio/TlsCertificate.d delete mode 100644 generated/gtkd/gio/TlsClientConnectionIF.d delete mode 100644 generated/gtkd/gio/TlsClientConnectionT.d delete mode 100644 generated/gtkd/gio/TlsConnection.d delete mode 100644 generated/gtkd/gio/TlsDatabase.d delete mode 100644 generated/gtkd/gio/TlsFileDatabaseIF.d delete mode 100644 generated/gtkd/gio/TlsFileDatabaseT.d delete mode 100644 generated/gtkd/gio/TlsInteraction.d delete mode 100644 generated/gtkd/gio/TlsPassword.d delete mode 100644 generated/gtkd/gio/TlsServerConnectionIF.d delete mode 100644 generated/gtkd/gio/TlsServerConnectionT.d delete mode 100644 generated/gtkd/gio/UnixConnection.d delete mode 100644 generated/gtkd/gio/UnixCredentialsMessage.d delete mode 100644 generated/gtkd/gio/UnixFDList.d delete mode 100644 generated/gtkd/gio/UnixFDMessage.d delete mode 100644 generated/gtkd/gio/UnixInputStream.d delete mode 100644 generated/gtkd/gio/UnixMountEntry.d delete mode 100644 generated/gtkd/gio/UnixMountMonitor.d delete mode 100644 generated/gtkd/gio/UnixMountPoint.d delete mode 100644 generated/gtkd/gio/UnixOutputStream.d delete mode 100644 generated/gtkd/gio/UnixSocketAddress.d delete mode 100644 generated/gtkd/gio/Vfs.d delete mode 100644 generated/gtkd/gio/VolumeIF.d delete mode 100644 generated/gtkd/gio/VolumeMonitor.d delete mode 100644 generated/gtkd/gio/VolumeT.d delete mode 100644 generated/gtkd/gio/ZlibCompressor.d delete mode 100644 generated/gtkd/gio/ZlibDecompressor.d delete mode 100644 generated/gtkd/gio/c/functions.d delete mode 100644 generated/gtkd/gio/c/types.d delete mode 100644 generated/gtkd/glib/ArrayG.d delete mode 100644 generated/gtkd/glib/AsyncQueue.d delete mode 100644 generated/gtkd/glib/Atomic.d delete mode 100644 generated/gtkd/glib/BBTree.d delete mode 100644 generated/gtkd/glib/Base64.d delete mode 100644 generated/gtkd/glib/BookmarkFile.d delete mode 100644 generated/gtkd/glib/ByteArray.d delete mode 100644 generated/gtkd/glib/Bytes.d delete mode 100644 generated/gtkd/glib/CharacterSet.d delete mode 100644 generated/gtkd/glib/Checksum.d delete mode 100644 generated/gtkd/glib/Child.d delete mode 100644 generated/gtkd/glib/Cond.d delete mode 100644 generated/gtkd/glib/ConstructionException.d delete mode 100644 generated/gtkd/glib/DataList.d delete mode 100644 generated/gtkd/glib/DataSet.d delete mode 100644 generated/gtkd/glib/Date.d delete mode 100644 generated/gtkd/glib/DateTime.d delete mode 100644 generated/gtkd/glib/Directory.d delete mode 100644 generated/gtkd/glib/ErrorG.d delete mode 100644 generated/gtkd/glib/FileUtils.d delete mode 100644 generated/gtkd/glib/GException.d delete mode 100644 generated/gtkd/glib/GLib.d delete mode 100644 generated/gtkd/glib/HashTable.d delete mode 100644 generated/gtkd/glib/HashTableIter.d delete mode 100644 generated/gtkd/glib/Hmac.d delete mode 100644 generated/gtkd/glib/Hook.d delete mode 100644 generated/gtkd/glib/HookList.d delete mode 100644 generated/gtkd/glib/Hostname.d delete mode 100644 generated/gtkd/glib/IConv.d delete mode 100644 generated/gtkd/glib/IOChannel.d delete mode 100644 generated/gtkd/glib/Idle.d delete mode 100644 generated/gtkd/glib/Internationalization.d delete mode 100644 generated/gtkd/glib/KeyFile.d delete mode 100644 generated/gtkd/glib/ListG.d delete mode 100644 generated/gtkd/glib/ListSG.d delete mode 100644 generated/gtkd/glib/MainContext.d delete mode 100644 generated/gtkd/glib/MainLoop.d delete mode 100644 generated/gtkd/glib/MappedFile.d delete mode 100644 generated/gtkd/glib/MatchInfo.d delete mode 100644 generated/gtkd/glib/Memory.d delete mode 100644 generated/gtkd/glib/MemorySlice.d delete mode 100644 generated/gtkd/glib/MessageLog.d delete mode 100644 generated/gtkd/glib/Messages.d delete mode 100644 generated/gtkd/glib/Module.d delete mode 100644 generated/gtkd/glib/Mutex.d delete mode 100644 generated/gtkd/glib/Node.d delete mode 100644 generated/gtkd/glib/Once.d delete mode 100644 generated/gtkd/glib/OptionContext.d delete mode 100644 generated/gtkd/glib/OptionGroup.d delete mode 100644 generated/gtkd/glib/Pattern.d delete mode 100644 generated/gtkd/glib/Private.d delete mode 100644 generated/gtkd/glib/PtrArray.d delete mode 100644 generated/gtkd/glib/Quark.d delete mode 100644 generated/gtkd/glib/QueueG.d delete mode 100644 generated/gtkd/glib/RWLock.d delete mode 100644 generated/gtkd/glib/RandG.d delete mode 100644 generated/gtkd/glib/RecMutex.d delete mode 100644 generated/gtkd/glib/Regex.d delete mode 100644 generated/gtkd/glib/ScannerG.d delete mode 100644 generated/gtkd/glib/Sequence.d delete mode 100644 generated/gtkd/glib/SequenceIter.d delete mode 100644 generated/gtkd/glib/ShellUtils.d delete mode 100644 generated/gtkd/glib/SimpleXML.d delete mode 100644 generated/gtkd/glib/Source.d delete mode 100644 generated/gtkd/glib/Spawn.d delete mode 100644 generated/gtkd/glib/Str.d delete mode 100644 generated/gtkd/glib/StringChunk.d delete mode 100644 generated/gtkd/glib/StringG.d delete mode 100644 generated/gtkd/glib/StrvBuilder.d delete mode 100644 generated/gtkd/glib/TestLogBuffer.d delete mode 100644 generated/gtkd/glib/TestLogMsg.d delete mode 100644 generated/gtkd/glib/TestSuite.d delete mode 100644 generated/gtkd/glib/Thread.d delete mode 100644 generated/gtkd/glib/ThreadPool.d delete mode 100644 generated/gtkd/glib/TimeVal.d delete mode 100644 generated/gtkd/glib/TimeZone.d delete mode 100644 generated/gtkd/glib/Timeout.d delete mode 100644 generated/gtkd/glib/Timer.d delete mode 100644 generated/gtkd/glib/TrashStack.d delete mode 100644 generated/gtkd/glib/TreeNode.d delete mode 100644 generated/gtkd/glib/URI.d delete mode 100644 generated/gtkd/glib/Unicode.d delete mode 100644 generated/gtkd/glib/UnixUtils.d delete mode 100644 generated/gtkd/glib/UriParamsIter.d delete mode 100644 generated/gtkd/glib/Util.d delete mode 100644 generated/gtkd/glib/Uuid.d delete mode 100644 generated/gtkd/glib/Variant.d delete mode 100644 generated/gtkd/glib/VariantBuilder.d delete mode 100644 generated/gtkd/glib/VariantDict.d delete mode 100644 generated/gtkd/glib/VariantIter.d delete mode 100644 generated/gtkd/glib/VariantType.d delete mode 100644 generated/gtkd/glib/Version.d delete mode 100644 generated/gtkd/glib/c/functions.d delete mode 100644 generated/gtkd/glib/c/types.d delete mode 100644 generated/gtkd/gobject/Binding.d delete mode 100644 generated/gtkd/gobject/Boxed.d delete mode 100644 generated/gtkd/gobject/CClosure.d delete mode 100644 generated/gtkd/gobject/Closure.d delete mode 100644 generated/gtkd/gobject/DClosure.d delete mode 100644 generated/gtkd/gobject/Enums.d delete mode 100644 generated/gtkd/gobject/Flags.d delete mode 100644 generated/gtkd/gobject/ObjectClass.d delete mode 100644 generated/gtkd/gobject/ObjectG.d delete mode 100644 generated/gtkd/gobject/ParamSpec.d delete mode 100644 generated/gtkd/gobject/ParamSpecPool.d delete mode 100644 generated/gtkd/gobject/Signals.d delete mode 100644 generated/gtkd/gobject/Type.d delete mode 100644 generated/gtkd/gobject/TypeClass.d delete mode 100644 generated/gtkd/gobject/TypeInstance.d delete mode 100644 generated/gtkd/gobject/TypeInterface.d delete mode 100644 generated/gtkd/gobject/TypeModule.d delete mode 100644 generated/gtkd/gobject/TypePluginIF.d delete mode 100644 generated/gtkd/gobject/TypePluginT.d delete mode 100644 generated/gtkd/gobject/TypeValueTable.d delete mode 100644 generated/gtkd/gobject/Value.d delete mode 100644 generated/gtkd/gobject/ValueArray.d delete mode 100644 generated/gtkd/gobject/WeakRef.d delete mode 100644 generated/gtkd/gobject/c/functions.d delete mode 100644 generated/gtkd/gobject/c/types.d delete mode 100644 generated/gtkd/graphene/Box.d delete mode 100644 generated/gtkd/graphene/Euler.d delete mode 100644 generated/gtkd/graphene/Frustum.d delete mode 100644 generated/gtkd/graphene/Matrix.d delete mode 100644 generated/gtkd/graphene/Plane.d delete mode 100644 generated/gtkd/graphene/Point.d delete mode 100644 generated/gtkd/graphene/Point3D.d delete mode 100644 generated/gtkd/graphene/Quad.d delete mode 100644 generated/gtkd/graphene/Quaternion.d delete mode 100644 generated/gtkd/graphene/Ray.d delete mode 100644 generated/gtkd/graphene/Rect.d delete mode 100644 generated/gtkd/graphene/Size.d delete mode 100644 generated/gtkd/graphene/Sphere.d delete mode 100644 generated/gtkd/graphene/Triangle.d delete mode 100644 generated/gtkd/graphene/Vec2.d delete mode 100644 generated/gtkd/graphene/Vec3.d delete mode 100644 generated/gtkd/graphene/Vec4.d delete mode 100644 generated/gtkd/graphene/c/functions.d delete mode 100644 generated/gtkd/graphene/c/types.d delete mode 100644 generated/gtkd/gsk/BlendNode.d delete mode 100644 generated/gtkd/gsk/BlurNode.d delete mode 100644 generated/gtkd/gsk/BorderNode.d delete mode 100644 generated/gtkd/gsk/BroadwayRenderer.d delete mode 100644 generated/gtkd/gsk/CairoNode.d delete mode 100644 generated/gtkd/gsk/CairoRenderer.d delete mode 100644 generated/gtkd/gsk/ClipNode.d delete mode 100644 generated/gtkd/gsk/ColorMatrixNode.d delete mode 100644 generated/gtkd/gsk/ColorNode.d delete mode 100644 generated/gtkd/gsk/ConicGradientNode.d delete mode 100644 generated/gtkd/gsk/ContainerNode.d delete mode 100644 generated/gtkd/gsk/CrossFadeNode.d delete mode 100644 generated/gtkd/gsk/DebugNode.d delete mode 100644 generated/gtkd/gsk/GLRenderer.d delete mode 100644 generated/gtkd/gsk/GLShader.d delete mode 100644 generated/gtkd/gsk/GLShaderNode.d delete mode 100644 generated/gtkd/gsk/InsetShadowNode.d delete mode 100644 generated/gtkd/gsk/LinearGradientNode.d delete mode 100644 generated/gtkd/gsk/NglRenderer.d delete mode 100644 generated/gtkd/gsk/OpacityNode.d delete mode 100644 generated/gtkd/gsk/OutsetShadowNode.d delete mode 100644 generated/gtkd/gsk/RadialGradientNode.d delete mode 100644 generated/gtkd/gsk/RenderNode.d delete mode 100644 generated/gtkd/gsk/Renderer.d delete mode 100644 generated/gtkd/gsk/RepeatNode.d delete mode 100644 generated/gtkd/gsk/RepeatingLinearGradientNode.d delete mode 100644 generated/gtkd/gsk/RepeatingRadialGradientNode.d delete mode 100644 generated/gtkd/gsk/RoundedClipNode.d delete mode 100644 generated/gtkd/gsk/RoundedRect.d delete mode 100644 generated/gtkd/gsk/ShaderArgsBuilder.d delete mode 100644 generated/gtkd/gsk/ShadowNode.d delete mode 100644 generated/gtkd/gsk/TextNode.d delete mode 100644 generated/gtkd/gsk/TextureNode.d delete mode 100644 generated/gtkd/gsk/Transform.d delete mode 100644 generated/gtkd/gsk/TransformNode.d delete mode 100644 generated/gtkd/gsk/VulkanRenderer.d delete mode 100644 generated/gtkd/gsk/c/functions.d delete mode 100644 generated/gtkd/gsk/c/types.d delete mode 100644 generated/gtkd/gthread/Cond.d delete mode 100644 generated/gtkd/gthread/Mutex.d delete mode 100644 generated/gtkd/gthread/Once.d delete mode 100644 generated/gtkd/gthread/Private.d delete mode 100644 generated/gtkd/gthread/RWLock.d delete mode 100644 generated/gtkd/gthread/RecMutex.d delete mode 100644 generated/gtkd/gthread/Thread.d delete mode 100644 generated/gtkd/gthread/c/functions.d delete mode 100644 generated/gtkd/gthread/c/types.d delete mode 100644 generated/gtkd/gtk/ATContext.d delete mode 100644 generated/gtkd/gtk/AboutDialog.d delete mode 100644 generated/gtkd/gtk/AccessibleIF.d delete mode 100644 generated/gtkd/gtk/AccessibleT.d delete mode 100644 generated/gtkd/gtk/ActionBar.d delete mode 100644 generated/gtkd/gtk/ActionableIF.d delete mode 100644 generated/gtkd/gtk/ActionableT.d delete mode 100644 generated/gtkd/gtk/ActivateAction.d delete mode 100644 generated/gtkd/gtk/Adjustment.d delete mode 100644 generated/gtkd/gtk/AlternativeTrigger.d delete mode 100644 generated/gtkd/gtk/AnyFilter.d delete mode 100644 generated/gtkd/gtk/AppChooserButton.d delete mode 100644 generated/gtkd/gtk/AppChooserDialog.d delete mode 100644 generated/gtkd/gtk/AppChooserIF.d delete mode 100644 generated/gtkd/gtk/AppChooserT.d delete mode 100644 generated/gtkd/gtk/AppChooserWidget.d delete mode 100644 generated/gtkd/gtk/Application.d delete mode 100644 generated/gtkd/gtk/ApplicationWindow.d delete mode 100644 generated/gtkd/gtk/AspectFrame.d delete mode 100644 generated/gtkd/gtk/Assistant.d delete mode 100644 generated/gtkd/gtk/AssistantPage.d delete mode 100644 generated/gtkd/gtk/BinLayout.d delete mode 100644 generated/gtkd/gtk/Bitset.d delete mode 100644 generated/gtkd/gtk/BitsetIter.d delete mode 100644 generated/gtkd/gtk/BookmarkList.d delete mode 100644 generated/gtkd/gtk/BoolFilter.d delete mode 100644 generated/gtkd/gtk/Border.d delete mode 100644 generated/gtkd/gtk/Box.d delete mode 100644 generated/gtkd/gtk/BoxLayout.d delete mode 100644 generated/gtkd/gtk/BuildableIF.d delete mode 100644 generated/gtkd/gtk/BuildableParseContext.d delete mode 100644 generated/gtkd/gtk/BuildableT.d delete mode 100644 generated/gtkd/gtk/Builder.d delete mode 100644 generated/gtkd/gtk/BuilderCScope.d delete mode 100644 generated/gtkd/gtk/BuilderListItemFactory.d delete mode 100644 generated/gtkd/gtk/BuilderScopeIF.d delete mode 100644 generated/gtkd/gtk/BuilderScopeT.d delete mode 100644 generated/gtkd/gtk/Button.d delete mode 100644 generated/gtkd/gtk/CClosureExpression.d delete mode 100644 generated/gtkd/gtk/Calendar.d delete mode 100644 generated/gtkd/gtk/CallbackAction.d delete mode 100644 generated/gtkd/gtk/CellArea.d delete mode 100644 generated/gtkd/gtk/CellAreaBox.d delete mode 100644 generated/gtkd/gtk/CellAreaClass.d delete mode 100644 generated/gtkd/gtk/CellAreaContext.d delete mode 100644 generated/gtkd/gtk/CellEditableIF.d delete mode 100644 generated/gtkd/gtk/CellEditableT.d delete mode 100644 generated/gtkd/gtk/CellLayoutIF.d delete mode 100644 generated/gtkd/gtk/CellLayoutT.d delete mode 100644 generated/gtkd/gtk/CellRenderer.d delete mode 100644 generated/gtkd/gtk/CellRendererAccel.d delete mode 100644 generated/gtkd/gtk/CellRendererCombo.d delete mode 100644 generated/gtkd/gtk/CellRendererPixbuf.d delete mode 100644 generated/gtkd/gtk/CellRendererProgress.d delete mode 100644 generated/gtkd/gtk/CellRendererSpin.d delete mode 100644 generated/gtkd/gtk/CellRendererSpinner.d delete mode 100644 generated/gtkd/gtk/CellRendererText.d delete mode 100644 generated/gtkd/gtk/CellRendererToggle.d delete mode 100644 generated/gtkd/gtk/CellView.d delete mode 100644 generated/gtkd/gtk/CenterBox.d delete mode 100644 generated/gtkd/gtk/CenterLayout.d delete mode 100644 generated/gtkd/gtk/CheckButton.d delete mode 100644 generated/gtkd/gtk/ClosureExpression.d delete mode 100644 generated/gtkd/gtk/ColorButton.d delete mode 100644 generated/gtkd/gtk/ColorChooserDialog.d delete mode 100644 generated/gtkd/gtk/ColorChooserIF.d delete mode 100644 generated/gtkd/gtk/ColorChooserT.d delete mode 100644 generated/gtkd/gtk/ColorChooserWidget.d delete mode 100644 generated/gtkd/gtk/ColumnView.d delete mode 100644 generated/gtkd/gtk/ColumnViewColumn.d delete mode 100644 generated/gtkd/gtk/ComboBox.d delete mode 100644 generated/gtkd/gtk/ComboBoxText.d delete mode 100644 generated/gtkd/gtk/ConstantExpression.d delete mode 100644 generated/gtkd/gtk/Constraint.d delete mode 100644 generated/gtkd/gtk/ConstraintGuide.d delete mode 100644 generated/gtkd/gtk/ConstraintLayout.d delete mode 100644 generated/gtkd/gtk/ConstraintLayoutChild.d delete mode 100644 generated/gtkd/gtk/ConstraintTargetIF.d delete mode 100644 generated/gtkd/gtk/ConstraintTargetT.d delete mode 100644 generated/gtkd/gtk/CssProvider.d delete mode 100644 generated/gtkd/gtk/CssSection.d delete mode 100644 generated/gtkd/gtk/CustomFilter.d delete mode 100644 generated/gtkd/gtk/CustomLayout.d delete mode 100644 generated/gtkd/gtk/CustomSorter.d delete mode 100644 generated/gtkd/gtk/Dialog.d delete mode 100644 generated/gtkd/gtk/DirectoryList.d delete mode 100644 generated/gtkd/gtk/DragIcon.d delete mode 100644 generated/gtkd/gtk/DragSource.d delete mode 100644 generated/gtkd/gtk/DrawingArea.d delete mode 100644 generated/gtkd/gtk/DropControllerMotion.d delete mode 100644 generated/gtkd/gtk/DropDown.d delete mode 100644 generated/gtkd/gtk/DropTarget.d delete mode 100644 generated/gtkd/gtk/DropTargetAsync.d delete mode 100644 generated/gtkd/gtk/EditableIF.d delete mode 100644 generated/gtkd/gtk/EditableLabel.d delete mode 100644 generated/gtkd/gtk/EditableT.d delete mode 100644 generated/gtkd/gtk/EmojiChooser.d delete mode 100644 generated/gtkd/gtk/Entry.d delete mode 100644 generated/gtkd/gtk/EntryBuffer.d delete mode 100644 generated/gtkd/gtk/EntryCompletion.d delete mode 100644 generated/gtkd/gtk/EventController.d delete mode 100644 generated/gtkd/gtk/EventControllerFocus.d delete mode 100644 generated/gtkd/gtk/EventControllerKey.d delete mode 100644 generated/gtkd/gtk/EventControllerLegacy.d delete mode 100644 generated/gtkd/gtk/EventControllerMotion.d delete mode 100644 generated/gtkd/gtk/EventControllerScroll.d delete mode 100644 generated/gtkd/gtk/EveryFilter.d delete mode 100644 generated/gtkd/gtk/Expander.d delete mode 100644 generated/gtkd/gtk/Expression.d delete mode 100644 generated/gtkd/gtk/ExpressionWatch.d delete mode 100644 generated/gtkd/gtk/FileChooserDialog.d delete mode 100644 generated/gtkd/gtk/FileChooserIF.d delete mode 100644 generated/gtkd/gtk/FileChooserNative.d delete mode 100644 generated/gtkd/gtk/FileChooserT.d delete mode 100644 generated/gtkd/gtk/FileChooserWidget.d delete mode 100644 generated/gtkd/gtk/FileFilter.d delete mode 100644 generated/gtkd/gtk/Filter.d delete mode 100644 generated/gtkd/gtk/FilterListModel.d delete mode 100644 generated/gtkd/gtk/Fixed.d delete mode 100644 generated/gtkd/gtk/FixedLayout.d delete mode 100644 generated/gtkd/gtk/FixedLayoutChild.d delete mode 100644 generated/gtkd/gtk/FlattenListModel.d delete mode 100644 generated/gtkd/gtk/FlowBox.d delete mode 100644 generated/gtkd/gtk/FlowBoxChild.d delete mode 100644 generated/gtkd/gtk/FontButton.d delete mode 100644 generated/gtkd/gtk/FontChooserDialog.d delete mode 100644 generated/gtkd/gtk/FontChooserIF.d delete mode 100644 generated/gtkd/gtk/FontChooserT.d delete mode 100644 generated/gtkd/gtk/FontChooserWidget.d delete mode 100644 generated/gtkd/gtk/Frame.d delete mode 100644 generated/gtkd/gtk/GLArea.d delete mode 100644 generated/gtkd/gtk/Gesture.d delete mode 100644 generated/gtkd/gtk/GestureClick.d delete mode 100644 generated/gtkd/gtk/GestureDrag.d delete mode 100644 generated/gtkd/gtk/GestureLongPress.d delete mode 100644 generated/gtkd/gtk/GesturePan.d delete mode 100644 generated/gtkd/gtk/GestureRotate.d delete mode 100644 generated/gtkd/gtk/GestureSingle.d delete mode 100644 generated/gtkd/gtk/GestureStylus.d delete mode 100644 generated/gtkd/gtk/GestureSwipe.d delete mode 100644 generated/gtkd/gtk/GestureZoom.d delete mode 100644 generated/gtkd/gtk/Grid.d delete mode 100644 generated/gtkd/gtk/GridLayout.d delete mode 100644 generated/gtkd/gtk/GridLayoutChild.d delete mode 100644 generated/gtkd/gtk/GridView.d delete mode 100644 generated/gtkd/gtk/HeaderBar.d delete mode 100644 generated/gtkd/gtk/IMContext.d delete mode 100644 generated/gtkd/gtk/IMContextSimple.d delete mode 100644 generated/gtkd/gtk/IMMulticontext.d delete mode 100644 generated/gtkd/gtk/IconPaintable.d delete mode 100644 generated/gtkd/gtk/IconTheme.d delete mode 100644 generated/gtkd/gtk/IconView.d delete mode 100644 generated/gtkd/gtk/Image.d delete mode 100644 generated/gtkd/gtk/InfoBar.d delete mode 100644 generated/gtkd/gtk/KeyvalTrigger.d delete mode 100644 generated/gtkd/gtk/Label.d delete mode 100644 generated/gtkd/gtk/LayoutChild.d delete mode 100644 generated/gtkd/gtk/LayoutManager.d delete mode 100644 generated/gtkd/gtk/LevelBar.d delete mode 100644 generated/gtkd/gtk/LinkButton.d delete mode 100644 generated/gtkd/gtk/ListBase.d delete mode 100644 generated/gtkd/gtk/ListBox.d delete mode 100644 generated/gtkd/gtk/ListBoxRow.d delete mode 100644 generated/gtkd/gtk/ListItem.d delete mode 100644 generated/gtkd/gtk/ListItemFactory.d delete mode 100644 generated/gtkd/gtk/ListStore.d delete mode 100644 generated/gtkd/gtk/ListView.d delete mode 100644 generated/gtkd/gtk/LockButton.d delete mode 100644 generated/gtkd/gtk/MapListModel.d delete mode 100644 generated/gtkd/gtk/MediaControls.d delete mode 100644 generated/gtkd/gtk/MediaFile.d delete mode 100644 generated/gtkd/gtk/MediaStream.d delete mode 100644 generated/gtkd/gtk/MenuButton.d delete mode 100644 generated/gtkd/gtk/MessageDialog.d delete mode 100644 generated/gtkd/gtk/MnemonicAction.d delete mode 100644 generated/gtkd/gtk/MnemonicTrigger.d delete mode 100644 generated/gtkd/gtk/MountOperation.d delete mode 100644 generated/gtkd/gtk/MultiFilter.d delete mode 100644 generated/gtkd/gtk/MultiSelection.d delete mode 100644 generated/gtkd/gtk/MultiSorter.d delete mode 100644 generated/gtkd/gtk/NamedAction.d delete mode 100644 generated/gtkd/gtk/NativeDialog.d delete mode 100644 generated/gtkd/gtk/NativeIF.d delete mode 100644 generated/gtkd/gtk/NativeT.d delete mode 100644 generated/gtkd/gtk/NeverTrigger.d delete mode 100644 generated/gtkd/gtk/NoSelection.d delete mode 100644 generated/gtkd/gtk/Notebook.d delete mode 100644 generated/gtkd/gtk/NotebookPage.d delete mode 100644 generated/gtkd/gtk/NothingAction.d delete mode 100644 generated/gtkd/gtk/NumericSorter.d delete mode 100644 generated/gtkd/gtk/ObjectExpression.d delete mode 100644 generated/gtkd/gtk/OrientableIF.d delete mode 100644 generated/gtkd/gtk/OrientableT.d delete mode 100644 generated/gtkd/gtk/Overlay.d delete mode 100644 generated/gtkd/gtk/OverlayLayout.d delete mode 100644 generated/gtkd/gtk/OverlayLayoutChild.d delete mode 100644 generated/gtkd/gtk/PadController.d delete mode 100644 generated/gtkd/gtk/PageSetup.d delete mode 100644 generated/gtkd/gtk/PageSetupUnixDialog.d delete mode 100644 generated/gtkd/gtk/Paned.d delete mode 100644 generated/gtkd/gtk/PaperSize.d delete mode 100644 generated/gtkd/gtk/ParamSpecExpression.d delete mode 100644 generated/gtkd/gtk/PasswordEntry.d delete mode 100644 generated/gtkd/gtk/Picture.d delete mode 100644 generated/gtkd/gtk/Popover.d delete mode 100644 generated/gtkd/gtk/PopoverMenu.d delete mode 100644 generated/gtkd/gtk/PopoverMenuBar.d delete mode 100644 generated/gtkd/gtk/PrintContext.d delete mode 100644 generated/gtkd/gtk/PrintJob.d delete mode 100644 generated/gtkd/gtk/PrintOperation.d delete mode 100644 generated/gtkd/gtk/PrintOperationPreviewIF.d delete mode 100644 generated/gtkd/gtk/PrintOperationPreviewT.d delete mode 100644 generated/gtkd/gtk/PrintSettings.d delete mode 100644 generated/gtkd/gtk/PrintUnixDialog.d delete mode 100644 generated/gtkd/gtk/Printer.d delete mode 100644 generated/gtkd/gtk/ProgressBar.d delete mode 100644 generated/gtkd/gtk/PropertyExpression.d delete mode 100644 generated/gtkd/gtk/Range.d delete mode 100644 generated/gtkd/gtk/RecentInfo.d delete mode 100644 generated/gtkd/gtk/RecentManager.d delete mode 100644 generated/gtkd/gtk/Requisition.d delete mode 100644 generated/gtkd/gtk/Revealer.d delete mode 100644 generated/gtkd/gtk/RootIF.d delete mode 100644 generated/gtkd/gtk/RootT.d delete mode 100644 generated/gtkd/gtk/Scale.d delete mode 100644 generated/gtkd/gtk/ScaleButton.d delete mode 100644 generated/gtkd/gtk/ScrollableIF.d delete mode 100644 generated/gtkd/gtk/ScrollableT.d delete mode 100644 generated/gtkd/gtk/Scrollbar.d delete mode 100644 generated/gtkd/gtk/ScrolledWindow.d delete mode 100644 generated/gtkd/gtk/SearchBar.d delete mode 100644 generated/gtkd/gtk/SearchEntry.d delete mode 100644 generated/gtkd/gtk/SelectionFilterModel.d delete mode 100644 generated/gtkd/gtk/SelectionModelIF.d delete mode 100644 generated/gtkd/gtk/SelectionModelT.d delete mode 100644 generated/gtkd/gtk/Separator.d delete mode 100644 generated/gtkd/gtk/Settings.d delete mode 100644 generated/gtkd/gtk/Shortcut.d delete mode 100644 generated/gtkd/gtk/ShortcutAction.d delete mode 100644 generated/gtkd/gtk/ShortcutController.d delete mode 100644 generated/gtkd/gtk/ShortcutLabel.d delete mode 100644 generated/gtkd/gtk/ShortcutManagerIF.d delete mode 100644 generated/gtkd/gtk/ShortcutManagerT.d delete mode 100644 generated/gtkd/gtk/ShortcutTrigger.d delete mode 100644 generated/gtkd/gtk/ShortcutsGroup.d delete mode 100644 generated/gtkd/gtk/ShortcutsSection.d delete mode 100644 generated/gtkd/gtk/ShortcutsShortcut.d delete mode 100644 generated/gtkd/gtk/ShortcutsWindow.d delete mode 100644 generated/gtkd/gtk/SignalAction.d delete mode 100644 generated/gtkd/gtk/SignalListItemFactory.d delete mode 100644 generated/gtkd/gtk/SingleSelection.d delete mode 100644 generated/gtkd/gtk/SizeGroup.d delete mode 100644 generated/gtkd/gtk/SliceListModel.d delete mode 100644 generated/gtkd/gtk/Snapshot.d delete mode 100644 generated/gtkd/gtk/SortListModel.d delete mode 100644 generated/gtkd/gtk/Sorter.d delete mode 100644 generated/gtkd/gtk/SpinButton.d delete mode 100644 generated/gtkd/gtk/Spinner.d delete mode 100644 generated/gtkd/gtk/Stack.d delete mode 100644 generated/gtkd/gtk/StackPage.d delete mode 100644 generated/gtkd/gtk/StackSidebar.d delete mode 100644 generated/gtkd/gtk/StackSwitcher.d delete mode 100644 generated/gtkd/gtk/Statusbar.d delete mode 100644 generated/gtkd/gtk/StringFilter.d delete mode 100644 generated/gtkd/gtk/StringList.d delete mode 100644 generated/gtkd/gtk/StringObject.d delete mode 100644 generated/gtkd/gtk/StringSorter.d delete mode 100644 generated/gtkd/gtk/StyleContext.d delete mode 100644 generated/gtkd/gtk/StyleProviderIF.d delete mode 100644 generated/gtkd/gtk/StyleProviderT.d delete mode 100644 generated/gtkd/gtk/Switch.d delete mode 100644 generated/gtkd/gtk/Text.d delete mode 100644 generated/gtkd/gtk/TextBuffer.d delete mode 100644 generated/gtkd/gtk/TextChildAnchor.d delete mode 100644 generated/gtkd/gtk/TextIter.d delete mode 100644 generated/gtkd/gtk/TextMark.d delete mode 100644 generated/gtkd/gtk/TextTag.d delete mode 100644 generated/gtkd/gtk/TextTagTable.d delete mode 100644 generated/gtkd/gtk/TextView.d delete mode 100644 generated/gtkd/gtk/ToggleButton.d delete mode 100644 generated/gtkd/gtk/Tooltip.d delete mode 100644 generated/gtkd/gtk/TreeDragDestIF.d delete mode 100644 generated/gtkd/gtk/TreeDragDestT.d delete mode 100644 generated/gtkd/gtk/TreeDragSourceIF.d delete mode 100644 generated/gtkd/gtk/TreeDragSourceT.d delete mode 100644 generated/gtkd/gtk/TreeExpander.d delete mode 100644 generated/gtkd/gtk/TreeIter.d delete mode 100644 generated/gtkd/gtk/TreeListModel.d delete mode 100644 generated/gtkd/gtk/TreeListRow.d delete mode 100644 generated/gtkd/gtk/TreeListRowSorter.d delete mode 100644 generated/gtkd/gtk/TreeModelFilter.d delete mode 100644 generated/gtkd/gtk/TreeModelIF.d delete mode 100644 generated/gtkd/gtk/TreeModelSort.d delete mode 100644 generated/gtkd/gtk/TreeModelT.d delete mode 100644 generated/gtkd/gtk/TreePath.d delete mode 100644 generated/gtkd/gtk/TreeRowReference.d delete mode 100644 generated/gtkd/gtk/TreeSelection.d delete mode 100644 generated/gtkd/gtk/TreeSortableIF.d delete mode 100644 generated/gtkd/gtk/TreeSortableT.d delete mode 100644 generated/gtkd/gtk/TreeStore.d delete mode 100644 generated/gtkd/gtk/TreeView.d delete mode 100644 generated/gtkd/gtk/TreeViewColumn.d delete mode 100644 generated/gtkd/gtk/Video.d delete mode 100644 generated/gtkd/gtk/Viewport.d delete mode 100644 generated/gtkd/gtk/VolumeButton.d delete mode 100644 generated/gtkd/gtk/Widget.d delete mode 100644 generated/gtkd/gtk/WidgetClass.d delete mode 100644 generated/gtkd/gtk/WidgetPaintable.d delete mode 100644 generated/gtkd/gtk/Window.d delete mode 100644 generated/gtkd/gtk/WindowControls.d delete mode 100644 generated/gtkd/gtk/WindowGroup.d delete mode 100644 generated/gtkd/gtk/WindowHandle.d delete mode 100644 generated/gtkd/gtk/c/functions.d delete mode 100644 generated/gtkd/gtk/c/types.d delete mode 100644 generated/gtkd/gtkd/Loader.d delete mode 100644 generated/gtkd/gtkd/paths.d delete mode 100644 generated/gtkd/harfbuzz/blob_t.d delete mode 100644 generated/gtkd/harfbuzz/buffer_t.d delete mode 100644 generated/gtkd/harfbuzz/c/functions.d delete mode 100644 generated/gtkd/harfbuzz/c/types.d delete mode 100644 generated/gtkd/harfbuzz/face_t.d delete mode 100644 generated/gtkd/harfbuzz/feature_t.d delete mode 100644 generated/gtkd/harfbuzz/font_funcs_t.d delete mode 100644 generated/gtkd/harfbuzz/font_t.d delete mode 100644 generated/gtkd/harfbuzz/glyph_info_t.d delete mode 100644 generated/gtkd/harfbuzz/glyph_position_t.d delete mode 100644 generated/gtkd/harfbuzz/language_t.d delete mode 100644 generated/gtkd/harfbuzz/map_t.d delete mode 100644 generated/gtkd/harfbuzz/ot_math_glyph_part_t.d delete mode 100644 generated/gtkd/harfbuzz/ot_math_glyph_variant_t.d delete mode 100644 generated/gtkd/harfbuzz/segment_properties_t.d delete mode 100644 generated/gtkd/harfbuzz/set_t.d delete mode 100644 generated/gtkd/harfbuzz/shape_plan_t.d delete mode 100644 generated/gtkd/harfbuzz/unicode_funcs_t.d delete mode 100644 generated/gtkd/harfbuzz/user_data_key_t.d delete mode 100644 generated/gtkd/harfbuzz/variation_t.d delete mode 100644 generated/gtkd/pango/PgAttribute.d delete mode 100644 generated/gtkd/pango/PgAttributeFontDesc.d delete mode 100644 generated/gtkd/pango/PgAttributeIterator.d delete mode 100644 generated/gtkd/pango/PgAttributeLanguage.d delete mode 100644 generated/gtkd/pango/PgAttributeList.d delete mode 100644 generated/gtkd/pango/PgAttributeShape.d delete mode 100644 generated/gtkd/pango/PgAttributeSize.d delete mode 100644 generated/gtkd/pango/PgCairo.d delete mode 100644 generated/gtkd/pango/PgCairoFontMap.d delete mode 100644 generated/gtkd/pango/PgColor.d delete mode 100644 generated/gtkd/pango/PgContext.d delete mode 100644 generated/gtkd/pango/PgCoverage.d delete mode 100644 generated/gtkd/pango/PgFont.d delete mode 100644 generated/gtkd/pango/PgFontDescription.d delete mode 100644 generated/gtkd/pango/PgFontFace.d delete mode 100644 generated/gtkd/pango/PgFontFamily.d delete mode 100644 generated/gtkd/pango/PgFontMap.d delete mode 100644 generated/gtkd/pango/PgFontMetrics.d delete mode 100644 generated/gtkd/pango/PgFontset.d delete mode 100644 generated/gtkd/pango/PgFontsetSimple.d delete mode 100644 generated/gtkd/pango/PgGlyphItem.d delete mode 100644 generated/gtkd/pango/PgGlyphItemIter.d delete mode 100644 generated/gtkd/pango/PgGlyphString.d delete mode 100644 generated/gtkd/pango/PgItem.d delete mode 100644 generated/gtkd/pango/PgLanguage.d delete mode 100644 generated/gtkd/pango/PgLayout.d delete mode 100644 generated/gtkd/pango/PgLayoutIter.d delete mode 100644 generated/gtkd/pango/PgLayoutLine.d delete mode 100644 generated/gtkd/pango/PgMatrix.d delete mode 100644 generated/gtkd/pango/PgMiscellaneous.d delete mode 100644 generated/gtkd/pango/PgRenderer.d delete mode 100644 generated/gtkd/pango/PgScript.d delete mode 100644 generated/gtkd/pango/PgScriptIter.d delete mode 100644 generated/gtkd/pango/PgTabArray.d delete mode 100644 generated/gtkd/pango/PgVersion.d delete mode 100644 generated/gtkd/pango/PgVertical.d delete mode 100644 generated/gtkd/pango/c/functions.d delete mode 100644 generated/gtkd/pango/c/types.d delete mode 100644 generated/gtkd/rsvg/Handle.d delete mode 100644 generated/gtkd/rsvg/c/functions.d delete mode 100644 generated/gtkd/rsvg/c/types.d rename {generated/gtkd => source}/cairo/Context.d (100%) rename {generated/gtkd => source}/cairo/Device.d (100%) rename {generated/gtkd => source}/cairo/FontFace.d (100%) rename {generated/gtkd => source}/cairo/FontOption.d (100%) rename {generated/gtkd => source}/cairo/ImageSurface.d (100%) rename {generated/gtkd => source}/cairo/Matrix.d (100%) rename {generated/gtkd => source}/cairo/MeshPattern.d (100%) rename {generated/gtkd => source}/cairo/Pattern.d (100%) rename {generated/gtkd => source}/cairo/PdfSurface.d (100%) rename {generated/gtkd => source}/cairo/PostScriptSurface.d (100%) rename {generated/gtkd => source}/cairo/RasterSource.d (100%) rename {generated/gtkd => source}/cairo/RecordingSurface.d (100%) rename {generated/gtkd => source}/cairo/Region.d (100%) rename {generated/gtkd => source}/cairo/ScaledFont.d (100%) rename {generated/gtkd => source}/cairo/Script.d (100%) rename {generated/gtkd => source}/cairo/ScriptSurface.d (100%) rename {generated/gtkd => source}/cairo/Status.d (100%) rename {generated/gtkd => source}/cairo/Surface.d (100%) rename {generated/gtkd => source}/cairo/SvgSurface.d (100%) rename {generated/gtkd => source}/cairo/Types.d (100%) rename {generated/gtkd => source}/cairo/UserFontFace.d (100%) rename {generated/gtkd => source}/cairo/Version.d (100%) rename {src => source}/cairo/c/functions-compiletime.d (100%) rename {src => source}/cairo/c/functions-runtime.d (100%) rename {generated/gtkd => source}/cairo/c/types.d (100%) rename {generated/gtkd/gtkd => source/gtk}/Implement.d (100%) rename {src => source}/linker/Exception.d (100%) rename {src => source}/linker/Loader.d (100%) delete mode 100644 src/APILookup.txt delete mode 100644 src/APILookupAdw.txt delete mode 100644 src/APILookupAtk.txt delete mode 100644 src/APILookupCairo.txt delete mode 100644 src/APILookupGLd.txt delete mode 100644 src/APILookupGLib.txt delete mode 100644 src/APILookupGLt.txt delete mode 100644 src/APILookupGObject.txt delete mode 100644 src/APILookupGStreamer.txt delete mode 100644 src/APILookupGThread.txt delete mode 100644 src/APILookupGdk.txt delete mode 100644 src/APILookupGdkPixbuf.txt delete mode 100644 src/APILookupGio.txt delete mode 100644 src/APILookupGraphene.txt delete mode 100644 src/APILookupGsk.txt delete mode 100644 src/APILookupGstApp.txt delete mode 100644 src/APILookupGstBase.txt delete mode 100644 src/APILookupGstInterfaces.txt delete mode 100644 src/APILookupGstMpegts.txt delete mode 100644 src/APILookupGtk.txt delete mode 100644 src/APILookupHarfBuzz.txt delete mode 100644 src/APILookupPango.txt delete mode 100644 src/APILookupRsvg.txt delete mode 100644 src/APILookupShumate.txt delete mode 100644 src/APILookupSoup.txt delete mode 100644 src/APILookupSourceView.txt delete mode 100644 src/cairo/Context.d delete mode 100644 src/cairo/Device.d delete mode 100644 src/cairo/FontFace.d delete mode 100644 src/cairo/FontOption.d delete mode 100644 src/cairo/ImageSurface.d delete mode 100644 src/cairo/Matrix.d delete mode 100644 src/cairo/MeshPattern.d delete mode 100644 src/cairo/Pattern.d delete mode 100644 src/cairo/PdfSurface.d delete mode 100644 src/cairo/PostScriptSurface.d delete mode 100644 src/cairo/RasterSource.d delete mode 100644 src/cairo/RecordingSurface.d delete mode 100644 src/cairo/Region.d delete mode 100644 src/cairo/ScaledFont.d delete mode 100644 src/cairo/Script.d delete mode 100644 src/cairo/ScriptSurface.d delete mode 100644 src/cairo/Status.d delete mode 100644 src/cairo/Surface.d delete mode 100644 src/cairo/SvgSurface.d delete mode 100644 src/cairo/Types.d delete mode 100644 src/cairo/UserFontFace.d delete mode 100644 src/cairo/Version.d delete mode 100644 src/cairo/c/types.d delete mode 100644 src/gtkd/Implement.d diff --git a/generated/gstreamer/gst/app/AppSink.d b/generated/gstreamer/gst/app/AppSink.d deleted file mode 100644 index b584517e4..000000000 --- a/generated/gstreamer/gst/app/AppSink.d +++ /dev/null @@ -1,597 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.app.AppSink; - -private import gobject.ObjectG; -private import gobject.Signals; -private import gst.app.c.functions; -public import gst.app.c.types; -private import gst.base.BaseSink; -private import gstreamer.Caps; -private import gstreamer.Sample; -private import gstreamer.URIHandlerIF; -private import gstreamer.URIHandlerT; -private import std.algorithm; - - -/** - * Appsink is a sink plugin that supports many different methods for making - * the application get a handle on the GStreamer data in a pipeline. Unlike - * most GStreamer elements, Appsink provides external API functions. - * - * appsink can be used by linking to the gstappsink.h header file to access the - * methods or by using the appsink action signals and properties. - * - * The normal way of retrieving samples from appsink is by using the - * gst_app_sink_pull_sample() and gst_app_sink_pull_preroll() methods. - * These methods block until a sample becomes available in the sink or when the - * sink is shut down or reaches EOS. There are also timed variants of these - * methods, gst_app_sink_try_pull_sample() and gst_app_sink_try_pull_preroll(), - * which accept a timeout parameter to limit the amount of time to wait. - * - * Appsink will internally use a queue to collect buffers from the streaming - * thread. If the application is not pulling samples fast enough, this queue - * will consume a lot of memory over time. The "max-buffers" property can be - * used to limit the queue size. The "drop" property controls whether the - * streaming thread blocks or if older buffers are dropped when the maximum - * queue size is reached. Note that blocking the streaming thread can negatively - * affect real-time performance and should be avoided. - * - * If a blocking behaviour is not desirable, setting the "emit-signals" property - * to %TRUE will make appsink emit the "new-sample" and "new-preroll" signals - * when a sample can be pulled without blocking. - * - * The "caps" property on appsink can be used to control the formats that - * appsink can receive. This property can contain non-fixed caps, the format of - * the pulled samples can be obtained by getting the sample caps. - * - * If one of the pull-preroll or pull-sample methods return %NULL, the appsink - * is stopped or in the EOS state. You can check for the EOS state with the - * "eos" property or with the gst_app_sink_is_eos() method. - * - * The eos signal can also be used to be informed when the EOS state is reached - * to avoid polling. - */ -public class AppSink : BaseSink, URIHandlerIF -{ - /** the main Gtk struct */ - protected GstAppSink* gstAppSink; - - /** Get the main Gtk struct */ - public GstAppSink* getAppSinkStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAppSink; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstAppSink; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAppSink* gstAppSink, bool ownedRef = false) - { - this.gstAppSink = gstAppSink; - super(cast(GstBaseSink*)gstAppSink, ownedRef); - } - - // add the URIHandler capabilities - mixin URIHandlerT!(GstAppSink); - - - /** */ - public static GType getType() - { - return gst_app_sink_get_type(); - } - - /** - * Check if @appsink supports buffer lists. - * - * Returns: %TRUE if @appsink supports buffer lists. - * - * Since: 1.12 - */ - public bool getBufferListSupport() - { - return gst_app_sink_get_buffer_list_support(gstAppSink) != 0; - } - - /** - * Get the configured caps on @appsink. - * - * Returns: the #GstCaps accepted by the sink. gst_caps_unref() after usage. - */ - public Caps getCaps() - { - auto __p = gst_app_sink_get_caps(gstAppSink); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Check if @appsink will drop old buffers when the maximum amount of queued - * buffers is reached. - * - * Returns: %TRUE if @appsink is dropping old buffers when the queue is - * filled. - */ - public bool getDrop() - { - return gst_app_sink_get_drop(gstAppSink) != 0; - } - - /** - * Check if appsink will emit the "new-preroll" and "new-sample" signals. - * - * Returns: %TRUE if @appsink is emitting the "new-preroll" and "new-sample" - * signals. - */ - public bool getEmitSignals() - { - return gst_app_sink_get_emit_signals(gstAppSink) != 0; - } - - /** - * Get the maximum amount of buffers that can be queued in @appsink. - * - * Returns: The maximum amount of buffers that can be queued. - */ - public uint getMaxBuffers() - { - return gst_app_sink_get_max_buffers(gstAppSink); - } - - /** - * Check if @appsink will wait for all buffers to be consumed when an EOS is - * received. - * - * Returns: %TRUE if @appsink will wait for all buffers to be consumed when an - * EOS is received. - */ - public bool getWaitOnEos() - { - return gst_app_sink_get_wait_on_eos(gstAppSink) != 0; - } - - /** - * Check if @appsink is EOS, which is when no more samples can be pulled because - * an EOS event was received. - * - * This function also returns %TRUE when the appsink is not in the PAUSED or - * PLAYING state. - * - * Returns: %TRUE if no more samples can be pulled and the appsink is EOS. - */ - public bool isEos() - { - return gst_app_sink_is_eos(gstAppSink) != 0; - } - - /** - * Get the last preroll sample in @appsink. This was the sample that caused the - * appsink to preroll in the PAUSED state. - * - * This function is typically used when dealing with a pipeline in the PAUSED - * state. Calling this function after doing a seek will give the sample right - * after the seek position. - * - * Calling this function will clear the internal reference to the preroll - * buffer. - * - * Note that the preroll sample will also be returned as the first sample - * when calling gst_app_sink_pull_sample(). - * - * If an EOS event was received before any buffers, this function returns - * %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. - * - * This function blocks until a preroll sample or EOS is received or the appsink - * element is set to the READY/NULL state. - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS. - * Call gst_sample_unref() after usage. - */ - public Sample pullPreroll() - { - auto __p = gst_app_sink_pull_preroll(gstAppSink); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true); - } - - /** - * This function blocks until a sample or EOS becomes available or the appsink - * element is set to the READY/NULL state. - * - * This function will only return samples when the appsink is in the PLAYING - * state. All rendered buffers will be put in a queue so that the application - * can pull samples at its own rate. Note that when the application does not - * pull samples fast enough, the queued buffers could consume a lot of memory, - * especially when dealing with raw video frames. - * - * If an EOS event was received before any buffers, this function returns - * %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS. - * Call gst_sample_unref() after usage. - */ - public Sample pullSample() - { - auto __p = gst_app_sink_pull_sample(gstAppSink); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true); - } - - /** - * Instruct @appsink to enable or disable buffer list support. - * - * For backwards-compatibility reasons applications need to opt in - * to indicate that they will be able to handle buffer lists. - * - * Params: - * enableLists = enable or disable buffer list support - * - * Since: 1.12 - */ - public void setBufferListSupport(bool enableLists) - { - gst_app_sink_set_buffer_list_support(gstAppSink, enableLists); - } - - /** - * Set callbacks which will be executed for each new preroll, new sample and eos. - * This is an alternative to using the signals, it has lower overhead and is thus - * less expensive, but also less flexible. - * - * If callbacks are installed, no signals will be emitted for performance - * reasons. - * - * Before 1.16.3 it was not possible to change the callbacks in a thread-safe - * way. - * - * Params: - * callbacks = the callbacks - * userData = a user_data argument for the callbacks - * notify = a destroy notify function - */ - public void setCallbacks(GstAppSinkCallbacks* callbacks, void* userData, GDestroyNotify notify) - { - gst_app_sink_set_callbacks(gstAppSink, callbacks, userData, notify); - } - - /** - * Set the capabilities on the appsink element. This function takes - * a copy of the caps structure. After calling this method, the sink will only - * accept caps that match @caps. If @caps is non-fixed, or incomplete, - * you must check the caps on the samples to get the actual used caps. - * - * Params: - * caps = caps to set - */ - public void setCaps(Caps caps) - { - gst_app_sink_set_caps(gstAppSink, (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * Instruct @appsink to drop old buffers when the maximum amount of queued - * buffers is reached. - * - * Params: - * drop = the new state - */ - public void setDrop(bool drop) - { - gst_app_sink_set_drop(gstAppSink, drop); - } - - /** - * Make appsink emit the "new-preroll" and "new-sample" signals. This option is - * by default disabled because signal emission is expensive and unneeded when - * the application prefers to operate in pull mode. - * - * Params: - * emit = the new state - */ - public void setEmitSignals(bool emit) - { - gst_app_sink_set_emit_signals(gstAppSink, emit); - } - - /** - * Set the maximum amount of buffers that can be queued in @appsink. After this - * amount of buffers are queued in appsink, any more buffers will block upstream - * elements until a sample is pulled from @appsink. - * - * Params: - * max = the maximum number of buffers to queue - */ - public void setMaxBuffers(uint max) - { - gst_app_sink_set_max_buffers(gstAppSink, max); - } - - /** - * Instruct @appsink to wait for all buffers to be consumed when an EOS is received. - * - * Params: - * wait = the new state - */ - public void setWaitOnEos(bool wait) - { - gst_app_sink_set_wait_on_eos(gstAppSink, wait); - } - - /** - * Get the last preroll sample in @appsink. This was the sample that caused the - * appsink to preroll in the PAUSED state. - * - * This function is typically used when dealing with a pipeline in the PAUSED - * state. Calling this function after doing a seek will give the sample right - * after the seek position. - * - * Calling this function will clear the internal reference to the preroll - * buffer. - * - * Note that the preroll sample will also be returned as the first sample - * when calling gst_app_sink_pull_sample(). - * - * If an EOS event was received before any buffers or the timeout expires, - * this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS - * condition. - * - * This function blocks until a preroll sample or EOS is received, the appsink - * element is set to the READY/NULL state, or the timeout expires. - * - * Params: - * timeout = the maximum amount of time to wait for the preroll sample - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. - * Call gst_sample_unref() after usage. - * - * Since: 1.10 - */ - public Sample tryPullPreroll(GstClockTime timeout) - { - auto __p = gst_app_sink_try_pull_preroll(gstAppSink, timeout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true); - } - - /** - * This function blocks until a sample or EOS becomes available or the appsink - * element is set to the READY/NULL state or the timeout expires. - * - * This function will only return samples when the appsink is in the PLAYING - * state. All rendered buffers will be put in a queue so that the application - * can pull samples at its own rate. Note that when the application does not - * pull samples fast enough, the queued buffers could consume a lot of memory, - * especially when dealing with raw video frames. - * - * If an EOS event was received before any buffers or the timeout expires, - * this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS - * condition. - * - * Params: - * timeout = the maximum amount of time to wait for a sample - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. - * Call gst_sample_unref() after usage. - * - * Since: 1.10 - */ - public Sample tryPullSample(GstClockTime timeout) - { - auto __p = gst_app_sink_try_pull_sample(gstAppSink, timeout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true); - } - - /** - * Signal that the end-of-stream has been reached. This signal is emitted from - * the streaming thread. - */ - gulong addOnEos(void delegate(AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "eos", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signal that a new preroll sample is available. - * - * This signal is emitted from the streaming thread and only when the - * "emit-signals" property is %TRUE. - * - * The new preroll sample can be retrieved with the "pull-preroll" action - * signal or gst_app_sink_pull_preroll() either from this signal callback - * or from any other thread. - * - * Note that this signal is only emitted when the "emit-signals" property is - * set to %TRUE, which it is not by default for performance reasons. - */ - gulong addOnNewPreroll(GstFlowReturn delegate(AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "new-preroll", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signal that a new sample is available. - * - * This signal is emitted from the streaming thread and only when the - * "emit-signals" property is %TRUE. - * - * The new sample can be retrieved with the "pull-sample" action - * signal or gst_app_sink_pull_sample() either from this signal callback - * or from any other thread. - * - * Note that this signal is only emitted when the "emit-signals" property is - * set to %TRUE, which it is not by default for performance reasons. - */ - gulong addOnNewSample(GstFlowReturn delegate(AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "new-sample", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Get the last preroll sample in @appsink. This was the sample that caused the - * appsink to preroll in the PAUSED state. - * - * This function is typically used when dealing with a pipeline in the PAUSED - * state. Calling this function after doing a seek will give the sample right - * after the seek position. - * - * Calling this function will clear the internal reference to the preroll - * buffer. - * - * Note that the preroll sample will also be returned as the first sample - * when calling gst_app_sink_pull_sample() or the "pull-sample" action signal. - * - * If an EOS event was received before any buffers, this function returns - * %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. - * - * This function blocks until a preroll sample or EOS is received or the appsink - * element is set to the READY/NULL state. - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS. - */ - gulong addOnPullPreroll(Sample delegate(AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "pull-preroll", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This function blocks until a sample or EOS becomes available or the appsink - * element is set to the READY/NULL state. - * - * This function will only return samples when the appsink is in the PLAYING - * state. All rendered samples will be put in a queue so that the application - * can pull samples at its own rate. - * - * Note that when the application does not pull samples fast enough, the - * queued samples could consume a lot of memory, especially when dealing with - * raw video frames. It's possible to control the behaviour of the queue with - * the "drop" and "max-buffers" properties. - * - * If an EOS event was received before any buffers, this function returns - * %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS. - */ - gulong addOnPullSample(Sample delegate(AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "pull-sample", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Get the last preroll sample in @appsink. This was the sample that caused the - * appsink to preroll in the PAUSED state. - * - * This function is typically used when dealing with a pipeline in the PAUSED - * state. Calling this function after doing a seek will give the sample right - * after the seek position. - * - * Calling this function will clear the internal reference to the preroll - * buffer. - * - * Note that the preroll sample will also be returned as the first sample - * when calling gst_app_sink_pull_sample() or the "pull-sample" action signal. - * - * If an EOS event was received before any buffers or the timeout expires, - * this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS - * condition. - * - * This function blocks until a preroll sample or EOS is received, the appsink - * element is set to the READY/NULL state, or the timeout expires. - * - * Params: - * timeout = the maximum amount of time to wait for the preroll sample - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. - * - * Since: 1.10 - */ - gulong addOnTryPullPreroll(Sample delegate(ulong, AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "try-pull-preroll", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This function blocks until a sample or EOS becomes available or the appsink - * element is set to the READY/NULL state or the timeout expires. - * - * This function will only return samples when the appsink is in the PLAYING - * state. All rendered samples will be put in a queue so that the application - * can pull samples at its own rate. - * - * Note that when the application does not pull samples fast enough, the - * queued samples could consume a lot of memory, especially when dealing with - * raw video frames. It's possible to control the behaviour of the queue with - * the "drop" and "max-buffers" properties. - * - * If an EOS event was received before any buffers or the timeout expires, - * this function returns %NULL. Use gst_app_sink_is_eos () to check - * for the EOS condition. - * - * Params: - * timeout = the maximum amount of time to wait for a sample - * - * Returns: a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. - * - * Since: 1.10 - */ - gulong addOnTryPullSample(Sample delegate(ulong, AppSink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "try-pull-sample", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gst/app/AppSrc.d b/generated/gstreamer/gst/app/AppSrc.d deleted file mode 100644 index 207281446..000000000 --- a/generated/gstreamer/gst/app/AppSrc.d +++ /dev/null @@ -1,545 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.app.AppSrc; - -private import gobject.ObjectG; -private import gobject.Signals; -private import gst.app.c.functions; -public import gst.app.c.types; -private import gst.base.BaseSrc; -private import gstreamer.Buffer; -private import gstreamer.BufferList; -private import gstreamer.Caps; -private import gstreamer.Sample; -private import gstreamer.URIHandlerIF; -private import gstreamer.URIHandlerT; -private import std.algorithm; - - -/** - * The appsrc element can be used by applications to insert data into a - * GStreamer pipeline. Unlike most GStreamer elements, appsrc provides - * external API functions. - * - * appsrc can be used by linking with the libgstapp library to access the - * methods directly or by using the appsrc action signals. - * - * Before operating appsrc, the caps property must be set to fixed caps - * describing the format of the data that will be pushed with appsrc. An - * exception to this is when pushing buffers with unknown caps, in which case no - * caps should be set. This is typically true of file-like sources that push raw - * byte buffers. If you don't want to explicitly set the caps, you can use - * gst_app_src_push_sample. This method gets the caps associated with the - * sample and sets them on the appsrc replacing any previously set caps (if - * different from sample's caps). - * - * The main way of handing data to the appsrc element is by calling the - * gst_app_src_push_buffer() method or by emitting the push-buffer action signal. - * This will put the buffer onto a queue from which appsrc will read from in its - * streaming thread. It is important to note that data transport will not happen - * from the thread that performed the push-buffer call. - * - * The "max-bytes" property controls how much data can be queued in appsrc - * before appsrc considers the queue full. A filled internal queue will always - * signal the "enough-data" signal, which signals the application that it should - * stop pushing data into appsrc. The "block" property will cause appsrc to - * block the push-buffer method until free data becomes available again. - * - * When the internal queue is running out of data, the "need-data" signal is - * emitted, which signals the application that it should start pushing more data - * into appsrc. - * - * In addition to the "need-data" and "enough-data" signals, appsrc can emit the - * "seek-data" signal when the "stream-mode" property is set to "seekable" or - * "random-access". The signal argument will contain the new desired position in - * the stream expressed in the unit set with the "format" property. After - * receiving the seek-data signal, the application should push-buffers from the - * new position. - * - * These signals allow the application to operate the appsrc in two different - * ways: - * - * The push mode, in which the application repeatedly calls the push-buffer/push-sample - * method with a new buffer/sample. Optionally, the queue size in the appsrc - * can be controlled with the enough-data and need-data signals by respectively - * stopping/starting the push-buffer/push-sample calls. This is a typical - * mode of operation for the stream-type "stream" and "seekable". Use this - * mode when implementing various network protocols or hardware devices. - * - * The pull mode, in which the need-data signal triggers the next push-buffer call. - * This mode is typically used in the "random-access" stream-type. Use this - * mode for file access or other randomly accessible sources. In this mode, a - * buffer of exactly the amount of bytes given by the need-data signal should be - * pushed into appsrc. - * - * In all modes, the size property on appsrc should contain the total stream - * size in bytes. Setting this property is mandatory in the random-access mode. - * For the stream and seekable modes, setting this property is optional but - * recommended. - * - * When the application has finished pushing data into appsrc, it should call - * gst_app_src_end_of_stream() or emit the end-of-stream action signal. After - * this call, no more buffers can be pushed into appsrc until a flushing seek - * occurs or the state of the appsrc has gone through READY. - */ -public class AppSrc : BaseSrc, URIHandlerIF -{ - /** the main Gtk struct */ - protected GstAppSrc* gstAppSrc; - - /** Get the main Gtk struct */ - public GstAppSrc* getAppSrcStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAppSrc; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstAppSrc; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAppSrc* gstAppSrc, bool ownedRef = false) - { - this.gstAppSrc = gstAppSrc; - super(cast(GstBaseSrc*)gstAppSrc, ownedRef); - } - - // add the URIHandler capabilities - mixin URIHandlerT!(GstAppSrc); - - - /** */ - public static GType getType() - { - return gst_app_src_get_type(); - } - - /** - * Indicates to the appsrc element that the last buffer queued in the - * element is the last buffer of the stream. - * - * Returns: #GST_FLOW_OK when the EOS was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - */ - public GstFlowReturn endOfStream() - { - return gst_app_src_end_of_stream(gstAppSrc); - } - - /** - * Get the configured caps on @appsrc. - * - * Returns: the #GstCaps produced by the source. gst_caps_unref() after usage. - */ - public Caps getCaps() - { - auto __p = gst_app_src_get_caps(gstAppSrc); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Get the number of currently queued bytes inside @appsrc. - * - * Returns: The number of currently queued bytes. - * - * Since: 1.2 - */ - public ulong getCurrentLevelBytes() - { - return gst_app_src_get_current_level_bytes(gstAppSrc); - } - - /** - * Get the duration of the stream in nanoseconds. A value of GST_CLOCK_TIME_NONE means that the duration is - * not known. - * - * Returns: the duration of the stream previously set with gst_app_src_set_duration(); - * - * Since: 1.10 - */ - public GstClockTime getDuration() - { - return gst_app_src_get_duration(gstAppSrc); - } - - /** - * Check if appsrc will emit the "new-preroll" and "new-buffer" signals. - * - * Returns: %TRUE if @appsrc is emitting the "new-preroll" and "new-buffer" - * signals. - */ - public bool getEmitSignals() - { - return gst_app_src_get_emit_signals(gstAppSrc) != 0; - } - - /** - * Retrieve the min and max latencies in @min and @max respectively. - * - * Params: - * min = the min latency - * max = the max latency - */ - public void getLatency(out ulong min, out ulong max) - { - gst_app_src_get_latency(gstAppSrc, &min, &max); - } - - /** - * Get the maximum amount of bytes that can be queued in @appsrc. - * - * Returns: The maximum amount of bytes that can be queued. - */ - public ulong getMaxBytes() - { - return gst_app_src_get_max_bytes(gstAppSrc); - } - - /** - * Get the size of the stream in bytes. A value of -1 means that the size is - * not known. - * - * Returns: the size of the stream previously set with gst_app_src_set_size(); - */ - public long getSize() - { - return gst_app_src_get_size(gstAppSrc); - } - - /** - * Get the stream type. Control the stream type of @appsrc - * with gst_app_src_set_stream_type(). - * - * Returns: the stream type. - */ - public GstAppStreamType getStreamType() - { - return gst_app_src_get_stream_type(gstAppSrc); - } - - /** - * Adds a buffer to the queue of buffers that the appsrc element will - * push to its source pad. This function takes ownership of the buffer. - * - * When the block property is TRUE, this function can block until free - * space becomes available in the queue. - * - * Params: - * buffer = a #GstBuffer to push - * - * Returns: #GST_FLOW_OK when the buffer was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - * #GST_FLOW_EOS when EOS occurred. - */ - public GstFlowReturn pushBuffer(Buffer buffer) - { - return gst_app_src_push_buffer(gstAppSrc, (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * Adds a buffer list to the queue of buffers and buffer lists that the - * appsrc element will push to its source pad. This function takes ownership - * of @buffer_list. - * - * When the block property is TRUE, this function can block until free - * space becomes available in the queue. - * - * Params: - * bufferList = a #GstBufferList to push - * - * Returns: #GST_FLOW_OK when the buffer list was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - * #GST_FLOW_EOS when EOS occurred. - * - * Since: 1.14 - */ - public GstFlowReturn pushBufferList(BufferList bufferList) - { - return gst_app_src_push_buffer_list(gstAppSrc, (bufferList is null) ? null : bufferList.getBufferListStruct()); - } - - /** - * Extract a buffer from the provided sample and adds it to the queue of - * buffers that the appsrc element will push to its source pad. Any - * previous caps that were set on appsrc will be replaced by the caps - * associated with the sample if not equal. - * - * This function does not take ownership of the - * sample so the sample needs to be unreffed after calling this function. - * - * When the block property is TRUE, this function can block until free - * space becomes available in the queue. - * - * Params: - * sample = a #GstSample from which buffer and caps may be - * extracted - * - * Returns: #GST_FLOW_OK when the buffer was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - * #GST_FLOW_EOS when EOS occurred. - * - * Since: 1.6 - */ - public GstFlowReturn pushSample(Sample sample) - { - return gst_app_src_push_sample(gstAppSrc, (sample is null) ? null : sample.getSampleStruct()); - } - - /** - * Set callbacks which will be executed when data is needed, enough data has - * been collected or when a seek should be performed. - * This is an alternative to using the signals, it has lower overhead and is thus - * less expensive, but also less flexible. - * - * If callbacks are installed, no signals will be emitted for performance - * reasons. - * - * Before 1.16.3 it was not possible to change the callbacks in a thread-safe - * way. - * - * Params: - * callbacks = the callbacks - * userData = a user_data argument for the callbacks - * notify = a destroy notify function - */ - public void setCallbacks(GstAppSrcCallbacks* callbacks, void* userData, GDestroyNotify notify) - { - gst_app_src_set_callbacks(gstAppSrc, callbacks, userData, notify); - } - - /** - * Set the duration of the stream in nanoseconds. A value of GST_CLOCK_TIME_NONE means that the duration is - * not known. - * - * Params: - * duration = the duration to set - * - * Since: 1.10 - */ - public void setDuration(GstClockTime duration) - { - gst_app_src_set_duration(gstAppSrc, duration); - } - - /** - * Make appsrc emit the "new-preroll" and "new-buffer" signals. This option is - * by default disabled because signal emission is expensive and unneeded when - * the application prefers to operate in pull mode. - * - * Params: - * emit = the new state - */ - public void setEmitSignals(bool emit) - { - gst_app_src_set_emit_signals(gstAppSrc, emit); - } - - /** - * Configure the @min and @max latency in @src. If @min is set to -1, the - * default latency calculations for pseudo-live sources will be used. - * - * Params: - * min = the min latency - * max = the max latency - */ - public void setLatency(ulong min, ulong max) - { - gst_app_src_set_latency(gstAppSrc, min, max); - } - - /** - * Set the maximum amount of bytes that can be queued in @appsrc. - * After the maximum amount of bytes are queued, @appsrc will emit the - * "enough-data" signal. - * - * Params: - * max = the maximum number of bytes to queue - */ - public void setMaxBytes(ulong max) - { - gst_app_src_set_max_bytes(gstAppSrc, max); - } - - /** - * Set the size of the stream in bytes. A value of -1 means that the size is - * not known. - * - * Params: - * size = the size to set - */ - public void setSize(long size) - { - gst_app_src_set_size(gstAppSrc, size); - } - - /** - * Set the stream type on @appsrc. For seekable streams, the "seek" signal must - * be connected to. - * - * A stream_type stream - * - * Params: - * type = the new state - */ - public void setStreamType(GstAppStreamType type) - { - gst_app_src_set_stream_type(gstAppSrc, type); - } - - /** - * Notify @appsrc that no more buffer are available. - */ - gulong addOnEndOfStream(GstFlowReturn delegate(AppSrc) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "end-of-stream", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signal that the source has enough data. It is recommended that the - * application stops calling push-buffer until the need-data signal is - * emitted again to avoid excessive buffer queueing. - */ - gulong addOnEnoughData(void delegate(AppSrc) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "enough-data", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signal that the source needs more data. In the callback or from another - * thread you should call push-buffer or end-of-stream. - * - * @length is just a hint and when it is set to -1, any number of bytes can be - * pushed into @appsrc. - * - * You can call push-buffer multiple times until the enough-data signal is - * fired. - * - * Params: - * length = the amount of bytes needed. - */ - gulong addOnNeedData(void delegate(uint, AppSrc) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "need-data", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Adds a buffer to the queue of buffers that the appsrc element will - * push to its source pad. This function does not take ownership of the - * buffer so the buffer needs to be unreffed after calling this function. - * - * When the block property is TRUE, this function can block until free space - * becomes available in the queue. - * - * Params: - * buffer = a buffer to push - */ - gulong addOnPushBuffer(GstFlowReturn delegate(Buffer, AppSrc) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "push-buffer", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Adds a buffer list to the queue of buffers and buffer lists that the - * appsrc element will push to its source pad. This function does not take - * ownership of the buffer list so the buffer list needs to be unreffed - * after calling this function. - * - * When the block property is TRUE, this function can block until free space - * becomes available in the queue. - * - * Params: - * bufferList = a buffer list to push - * - * Since: 1.14 - */ - gulong addOnPushBufferList(GstFlowReturn delegate(BufferList, AppSrc) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "push-buffer-list", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Extract a buffer from the provided sample and adds the extracted buffer - * to the queue of buffers that the appsrc element will - * push to its source pad. This function set the appsrc caps based on the caps - * in the sample and reset the caps if they change. - * Only the caps and the buffer of the provided sample are used and not - * for example the segment in the sample. - * This function does not take ownership of the - * sample so the sample needs to be unreffed after calling this function. - * - * When the block property is TRUE, this function can block until free space - * becomes available in the queue. - * - * Params: - * sample = a sample from which extract buffer to push - * - * Since: 1.6 - */ - gulong addOnPushSample(GstFlowReturn delegate(Sample, AppSrc) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "push-sample", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Seek to the given offset. The next push-buffer should produce buffers from - * the new @offset. - * This callback is only called for seekable stream types. - * - * Params: - * offset = the offset to seek to - * - * Returns: %TRUE if the seek succeeded. - */ - gulong addOnSeekData(bool delegate(ulong, AppSrc) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "seek-data", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Set the capabilities on the appsrc element. This function takes - * a copy of the caps structure. After calling this method, the source will - * only produce caps that match @caps. @caps must be fixed and the caps on the - * buffers must match the caps or left NULL. - * - * Params: - * caps = caps to set - */ - public void appSrcSetCaps(Caps caps) - { - gst_app_src_set_caps(gstAppSrc, (caps is null) ? null : caps.getCapsStruct()); - } -} diff --git a/generated/gstreamer/gst/app/c/functions.d b/generated/gstreamer/gst/app/c/functions.d deleted file mode 100644 index 8c4f21497..000000000 --- a/generated/gstreamer/gst/app/c/functions.d +++ /dev/null @@ -1,182 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.app.c.functions; - -import std.stdio; -import gst.app.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GSTAPP = ["libgstapp-1.0-0.dll;gstapp-1.0-0.dll;gstapp-1.dll"]; -else version (OSX) - static immutable LIBRARY_GSTAPP = ["libgstapp-1.0.0.dylib"]; -else - static immutable LIBRARY_GSTAPP = ["libgstapp-1.0.so.0"]; - -shared static this() -{ - // gst.app.AppSink - - Linker.link(gst_app_sink_get_type, "gst_app_sink_get_type", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_get_buffer_list_support, "gst_app_sink_get_buffer_list_support", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_get_caps, "gst_app_sink_get_caps", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_get_drop, "gst_app_sink_get_drop", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_get_emit_signals, "gst_app_sink_get_emit_signals", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_get_max_buffers, "gst_app_sink_get_max_buffers", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_get_wait_on_eos, "gst_app_sink_get_wait_on_eos", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_is_eos, "gst_app_sink_is_eos", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_pull_preroll, "gst_app_sink_pull_preroll", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_pull_sample, "gst_app_sink_pull_sample", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_set_buffer_list_support, "gst_app_sink_set_buffer_list_support", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_set_callbacks, "gst_app_sink_set_callbacks", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_set_caps, "gst_app_sink_set_caps", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_set_drop, "gst_app_sink_set_drop", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_set_emit_signals, "gst_app_sink_set_emit_signals", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_set_max_buffers, "gst_app_sink_set_max_buffers", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_set_wait_on_eos, "gst_app_sink_set_wait_on_eos", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_try_pull_preroll, "gst_app_sink_try_pull_preroll", LIBRARY_GSTAPP); - Linker.link(gst_app_sink_try_pull_sample, "gst_app_sink_try_pull_sample", LIBRARY_GSTAPP); - - // gst.app.AppSrc - - Linker.link(gst_app_src_get_type, "gst_app_src_get_type", LIBRARY_GSTAPP); - Linker.link(gst_app_src_end_of_stream, "gst_app_src_end_of_stream", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_caps, "gst_app_src_get_caps", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_current_level_bytes, "gst_app_src_get_current_level_bytes", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_duration, "gst_app_src_get_duration", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_emit_signals, "gst_app_src_get_emit_signals", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_latency, "gst_app_src_get_latency", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_max_bytes, "gst_app_src_get_max_bytes", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_size, "gst_app_src_get_size", LIBRARY_GSTAPP); - Linker.link(gst_app_src_get_stream_type, "gst_app_src_get_stream_type", LIBRARY_GSTAPP); - Linker.link(gst_app_src_push_buffer, "gst_app_src_push_buffer", LIBRARY_GSTAPP); - Linker.link(gst_app_src_push_buffer_list, "gst_app_src_push_buffer_list", LIBRARY_GSTAPP); - Linker.link(gst_app_src_push_sample, "gst_app_src_push_sample", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_callbacks, "gst_app_src_set_callbacks", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_duration, "gst_app_src_set_duration", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_emit_signals, "gst_app_src_set_emit_signals", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_latency, "gst_app_src_set_latency", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_max_bytes, "gst_app_src_set_max_bytes", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_size, "gst_app_src_set_size", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_stream_type, "gst_app_src_set_stream_type", LIBRARY_GSTAPP); - Linker.link(gst_app_src_set_caps, "gst_app_src_set_caps", LIBRARY_GSTAPP); -} - -__gshared extern(C) -{ - - // gst.app.AppSink - - GType function() c_gst_app_sink_get_type; - int function(GstAppSink* appsink) c_gst_app_sink_get_buffer_list_support; - GstCaps* function(GstAppSink* appsink) c_gst_app_sink_get_caps; - int function(GstAppSink* appsink) c_gst_app_sink_get_drop; - int function(GstAppSink* appsink) c_gst_app_sink_get_emit_signals; - uint function(GstAppSink* appsink) c_gst_app_sink_get_max_buffers; - int function(GstAppSink* appsink) c_gst_app_sink_get_wait_on_eos; - int function(GstAppSink* appsink) c_gst_app_sink_is_eos; - GstSample* function(GstAppSink* appsink) c_gst_app_sink_pull_preroll; - GstSample* function(GstAppSink* appsink) c_gst_app_sink_pull_sample; - void function(GstAppSink* appsink, int enableLists) c_gst_app_sink_set_buffer_list_support; - void function(GstAppSink* appsink, GstAppSinkCallbacks* callbacks, void* userData, GDestroyNotify notify) c_gst_app_sink_set_callbacks; - void function(GstAppSink* appsink, GstCaps* caps) c_gst_app_sink_set_caps; - void function(GstAppSink* appsink, int drop) c_gst_app_sink_set_drop; - void function(GstAppSink* appsink, int emit) c_gst_app_sink_set_emit_signals; - void function(GstAppSink* appsink, uint max) c_gst_app_sink_set_max_buffers; - void function(GstAppSink* appsink, int wait) c_gst_app_sink_set_wait_on_eos; - GstSample* function(GstAppSink* appsink, GstClockTime timeout) c_gst_app_sink_try_pull_preroll; - GstSample* function(GstAppSink* appsink, GstClockTime timeout) c_gst_app_sink_try_pull_sample; - - // gst.app.AppSrc - - GType function() c_gst_app_src_get_type; - GstFlowReturn function(GstAppSrc* appsrc) c_gst_app_src_end_of_stream; - GstCaps* function(GstAppSrc* appsrc) c_gst_app_src_get_caps; - ulong function(GstAppSrc* appsrc) c_gst_app_src_get_current_level_bytes; - GstClockTime function(GstAppSrc* appsrc) c_gst_app_src_get_duration; - int function(GstAppSrc* appsrc) c_gst_app_src_get_emit_signals; - void function(GstAppSrc* appsrc, ulong* min, ulong* max) c_gst_app_src_get_latency; - ulong function(GstAppSrc* appsrc) c_gst_app_src_get_max_bytes; - long function(GstAppSrc* appsrc) c_gst_app_src_get_size; - GstAppStreamType function(GstAppSrc* appsrc) c_gst_app_src_get_stream_type; - GstFlowReturn function(GstAppSrc* appsrc, GstBuffer* buffer) c_gst_app_src_push_buffer; - GstFlowReturn function(GstAppSrc* appsrc, GstBufferList* bufferList) c_gst_app_src_push_buffer_list; - GstFlowReturn function(GstAppSrc* appsrc, GstSample* sample) c_gst_app_src_push_sample; - void function(GstAppSrc* appsrc, GstAppSrcCallbacks* callbacks, void* userData, GDestroyNotify notify) c_gst_app_src_set_callbacks; - void function(GstAppSrc* appsrc, GstClockTime duration) c_gst_app_src_set_duration; - void function(GstAppSrc* appsrc, int emit) c_gst_app_src_set_emit_signals; - void function(GstAppSrc* appsrc, ulong min, ulong max) c_gst_app_src_set_latency; - void function(GstAppSrc* appsrc, ulong max) c_gst_app_src_set_max_bytes; - void function(GstAppSrc* appsrc, long size) c_gst_app_src_set_size; - void function(GstAppSrc* appsrc, GstAppStreamType type) c_gst_app_src_set_stream_type; - void function(GstAppSrc* appsrc, GstCaps* caps) c_gst_app_src_set_caps; -} - - -// gst.app.AppSink - -alias c_gst_app_sink_get_type gst_app_sink_get_type; -alias c_gst_app_sink_get_buffer_list_support gst_app_sink_get_buffer_list_support; -alias c_gst_app_sink_get_caps gst_app_sink_get_caps; -alias c_gst_app_sink_get_drop gst_app_sink_get_drop; -alias c_gst_app_sink_get_emit_signals gst_app_sink_get_emit_signals; -alias c_gst_app_sink_get_max_buffers gst_app_sink_get_max_buffers; -alias c_gst_app_sink_get_wait_on_eos gst_app_sink_get_wait_on_eos; -alias c_gst_app_sink_is_eos gst_app_sink_is_eos; -alias c_gst_app_sink_pull_preroll gst_app_sink_pull_preroll; -alias c_gst_app_sink_pull_sample gst_app_sink_pull_sample; -alias c_gst_app_sink_set_buffer_list_support gst_app_sink_set_buffer_list_support; -alias c_gst_app_sink_set_callbacks gst_app_sink_set_callbacks; -alias c_gst_app_sink_set_caps gst_app_sink_set_caps; -alias c_gst_app_sink_set_drop gst_app_sink_set_drop; -alias c_gst_app_sink_set_emit_signals gst_app_sink_set_emit_signals; -alias c_gst_app_sink_set_max_buffers gst_app_sink_set_max_buffers; -alias c_gst_app_sink_set_wait_on_eos gst_app_sink_set_wait_on_eos; -alias c_gst_app_sink_try_pull_preroll gst_app_sink_try_pull_preroll; -alias c_gst_app_sink_try_pull_sample gst_app_sink_try_pull_sample; - -// gst.app.AppSrc - -alias c_gst_app_src_get_type gst_app_src_get_type; -alias c_gst_app_src_end_of_stream gst_app_src_end_of_stream; -alias c_gst_app_src_get_caps gst_app_src_get_caps; -alias c_gst_app_src_get_current_level_bytes gst_app_src_get_current_level_bytes; -alias c_gst_app_src_get_duration gst_app_src_get_duration; -alias c_gst_app_src_get_emit_signals gst_app_src_get_emit_signals; -alias c_gst_app_src_get_latency gst_app_src_get_latency; -alias c_gst_app_src_get_max_bytes gst_app_src_get_max_bytes; -alias c_gst_app_src_get_size gst_app_src_get_size; -alias c_gst_app_src_get_stream_type gst_app_src_get_stream_type; -alias c_gst_app_src_push_buffer gst_app_src_push_buffer; -alias c_gst_app_src_push_buffer_list gst_app_src_push_buffer_list; -alias c_gst_app_src_push_sample gst_app_src_push_sample; -alias c_gst_app_src_set_callbacks gst_app_src_set_callbacks; -alias c_gst_app_src_set_duration gst_app_src_set_duration; -alias c_gst_app_src_set_emit_signals gst_app_src_set_emit_signals; -alias c_gst_app_src_set_latency gst_app_src_set_latency; -alias c_gst_app_src_set_max_bytes gst_app_src_set_max_bytes; -alias c_gst_app_src_set_size gst_app_src_set_size; -alias c_gst_app_src_set_stream_type gst_app_src_set_stream_type; -alias c_gst_app_src_set_caps gst_app_src_set_caps; diff --git a/generated/gstreamer/gst/app/c/types.d b/generated/gstreamer/gst/app/c/types.d deleted file mode 100644 index cdf6da4cd..000000000 --- a/generated/gstreamer/gst/app/c/types.d +++ /dev/null @@ -1,199 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.app.c.types; - -public import glib.c.types; -public import gobject.c.types; -public import gst.base.c.types; -public import gstreamer.c.types; - - -/** - * The stream type. - */ -public enum GstAppStreamType -{ - /** - * No seeking is supported in the stream, such as a - * live stream. - */ - STREAM = 0, - /** - * The stream is seekable but seeking might not - * be very fast, such as data from a webserver. - */ - SEEKABLE = 1, - /** - * The stream is seekable and seeking is fast, - * such as in a local file. - */ - RANDOM_ACCESS = 2, -} -alias GstAppStreamType AppStreamType; - -struct GstAppSink -{ - GstBaseSink basesink; - GstAppSinkPrivate* priv; - void*[4] GstReserved; -} - -/** - * A set of callbacks that can be installed on the appsink with - * gst_app_sink_set_callbacks(). - */ -struct GstAppSinkCallbacks -{ - /** */ - extern(C) void function(GstAppSink* appsink, void* userData) eos; - /** */ - extern(C) GstFlowReturn function(GstAppSink* appsink, void* userData) newPreroll; - /** */ - extern(C) GstFlowReturn function(GstAppSink* appsink, void* userData) newSample; - void*[4] GstReserved; -} - -struct GstAppSinkClass -{ - GstBaseSinkClass basesinkClass; - /** */ - extern(C) void function(GstAppSink* appsink) eos; - /** */ - extern(C) GstFlowReturn function(GstAppSink* appsink) newPreroll; - /** */ - extern(C) GstFlowReturn function(GstAppSink* appsink) newSample; - /** - * - * Params: - * appsink = a #GstAppSink - * Returns: a #GstSample or NULL when the appsink is stopped or EOS. - * Call gst_sample_unref() after usage. - */ - extern(C) GstSample* function(GstAppSink* appsink) pullPreroll; - /** - * - * Params: - * appsink = a #GstAppSink - * Returns: a #GstSample or NULL when the appsink is stopped or EOS. - * Call gst_sample_unref() after usage. - */ - extern(C) GstSample* function(GstAppSink* appsink) pullSample; - /** - * - * Params: - * appsink = a #GstAppSink - * timeout = the maximum amount of time to wait for the preroll sample - * Returns: a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. - * Call gst_sample_unref() after usage. - */ - extern(C) GstSample* function(GstAppSink* appsink, GstClockTime timeout) tryPullPreroll; - /** - * - * Params: - * appsink = a #GstAppSink - * timeout = the maximum amount of time to wait for a sample - * Returns: a #GstSample or NULL when the appsink is stopped or EOS or the timeout expires. - * Call gst_sample_unref() after usage. - */ - extern(C) GstSample* function(GstAppSink* appsink, GstClockTime timeout) tryPullSample; - void*[2] GstReserved; -} - -struct GstAppSinkPrivate; - -struct GstAppSrc -{ - GstBaseSrc basesrc; - GstAppSrcPrivate* priv; - void*[4] GstReserved; -} - -/** - * A set of callbacks that can be installed on the appsrc with - * gst_app_src_set_callbacks(). - */ -struct GstAppSrcCallbacks -{ - /** */ - extern(C) void function(GstAppSrc* src, uint length, void* userData) needData; - /** */ - extern(C) void function(GstAppSrc* src, void* userData) enoughData; - /** */ - extern(C) int function(GstAppSrc* src, ulong offset, void* userData) seekData; - void*[4] GstReserved; -} - -struct GstAppSrcClass -{ - GstBaseSrcClass basesrcClass; - /** */ - extern(C) void function(GstAppSrc* appsrc, uint length) needData; - /** */ - extern(C) void function(GstAppSrc* appsrc) enoughData; - /** */ - extern(C) int function(GstAppSrc* appsrc, ulong offset) seekData; - /** - * - * Params: - * appsrc = a #GstAppSrc - * buffer = a #GstBuffer to push - * Returns: #GST_FLOW_OK when the buffer was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - * #GST_FLOW_EOS when EOS occurred. - */ - extern(C) GstFlowReturn function(GstAppSrc* appsrc, GstBuffer* buffer) pushBuffer; - /** - * - * Params: - * appsrc = a #GstAppSrc - * Returns: #GST_FLOW_OK when the EOS was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - */ - extern(C) GstFlowReturn function(GstAppSrc* appsrc) endOfStream; - /** - * - * Params: - * appsrc = a #GstAppSrc - * sample = a #GstSample from which buffer and caps may be - * extracted - * Returns: #GST_FLOW_OK when the buffer was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - * #GST_FLOW_EOS when EOS occurred. - */ - extern(C) GstFlowReturn function(GstAppSrc* appsrc, GstSample* sample) pushSample; - /** - * - * Params: - * appsrc = a #GstAppSrc - * bufferList = a #GstBufferList to push - * Returns: #GST_FLOW_OK when the buffer list was successfully queued. - * #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. - * #GST_FLOW_EOS when EOS occurred. - */ - extern(C) GstFlowReturn function(GstAppSrc* appsrc, GstBufferList* bufferList) pushBufferList; - void*[2] GstReserved; -} - -struct GstAppSrcPrivate; diff --git a/generated/gstreamer/gst/base/Adapter.d b/generated/gstreamer/gst/base/Adapter.d deleted file mode 100644 index 4f43330e6..000000000 --- a/generated/gstreamer/gst/base/Adapter.d +++ /dev/null @@ -1,851 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.Adapter; - -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.ListG; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Buffer; -private import gstreamer.BufferList; - - -/** - * This class is for elements that receive buffers in an undesired size. - * While for example raw video contains one image per buffer, the same is not - * true for a lot of other formats, especially those that come directly from - * a file. So if you have undefined buffer sizes and require a specific size, - * this object is for you. - * - * An adapter is created with gst_adapter_new(). It can be freed again with - * g_object_unref(). - * - * The theory of operation is like this: All buffers received are put - * into the adapter using gst_adapter_push() and the data is then read back - * in chunks of the desired size using gst_adapter_map()/gst_adapter_unmap() - * and/or gst_adapter_copy(). After the data has been processed, it is freed - * using gst_adapter_unmap(). - * - * Other methods such as gst_adapter_take() and gst_adapter_take_buffer() - * combine gst_adapter_map() and gst_adapter_unmap() in one method and are - * potentially more convenient for some use cases. - * - * For example, a sink pad's chain function that needs to pass data to a library - * in 512-byte chunks could be implemented like this: - * |[ - * static GstFlowReturn - * sink_pad_chain (GstPad *pad, GstObject *parent, GstBuffer *buffer) - * { - * MyElement *this; - * GstAdapter *adapter; - * GstFlowReturn ret = GST_FLOW_OK; - * - * this = MY_ELEMENT (parent); - * - * adapter = this->adapter; - * - * // put buffer into adapter - * gst_adapter_push (adapter, buffer); - * - * // while we can read out 512 bytes, process them - * while (gst_adapter_available (adapter) >= 512 && ret == GST_FLOW_OK) { - * const guint8 *data = gst_adapter_map (adapter, 512); - * // use flowreturn as an error value - * ret = my_library_foo (data); - * gst_adapter_unmap (adapter); - * gst_adapter_flush (adapter, 512); - * } - * return ret; - * } - * ]| - * - * For another example, a simple element inside GStreamer that uses #GstAdapter - * is the libvisual element. - * - * An element using #GstAdapter in its sink pad chain function should ensure that - * when the FLUSH_STOP event is received, that any queued data is cleared using - * gst_adapter_clear(). Data should also be cleared or processed on EOS and - * when changing state from %GST_STATE_PAUSED to %GST_STATE_READY. - * - * Also check the GST_BUFFER_FLAG_DISCONT flag on the buffer. Some elements might - * need to clear the adapter after a discontinuity. - * - * The adapter will keep track of the timestamps of the buffers - * that were pushed. The last seen timestamp before the current position - * can be queried with gst_adapter_prev_pts(). This function can - * optionally return the number of bytes between the start of the buffer that - * carried the timestamp and the current adapter position. The distance is - * useful when dealing with, for example, raw audio samples because it allows - * you to calculate the timestamp of the current adapter position by using the - * last seen timestamp and the amount of bytes since. Additionally, the - * gst_adapter_prev_pts_at_offset() can be used to determine the last - * seen timestamp at a particular offset in the adapter. - * - * The adapter will also keep track of the offset of the buffers - * (#GST_BUFFER_OFFSET) that were pushed. The last seen offset before the - * current position can be queried with gst_adapter_prev_offset(). This function - * can optionally return the number of bytes between the start of the buffer - * that carried the offset and the current adapter position. - * - * Additionally the adapter also keeps track of the PTS, DTS and buffer offset - * at the last discontinuity, which can be retrieved with - * gst_adapter_pts_at_discont(), gst_adapter_dts_at_discont() and - * gst_adapter_offset_at_discont(). The number of bytes that were consumed - * since then can be queried with gst_adapter_distance_from_discont(). - * - * A last thing to note is that while #GstAdapter is pretty optimized, - * merging buffers still might be an operation that requires a `malloc()` and - * `memcpy()` operation, and these operations are not the fastest. Because of - * this, some functions like gst_adapter_available_fast() are provided to help - * speed up such cases should you want to. To avoid repeated memory allocations, - * gst_adapter_copy() can be used to copy data into a (statically allocated) - * user provided buffer. - * - * #GstAdapter is not MT safe. All operations on an adapter must be serialized by - * the caller. This is not normally a problem, however, as the normal use case - * of #GstAdapter is inside one pad's chain function, in which case access is - * serialized via the pad's STREAM_LOCK. - * - * Note that gst_adapter_push() takes ownership of the buffer passed. Use - * gst_buffer_ref() before pushing it into the adapter if you still want to - * access the buffer later. The adapter will never modify the data in the - * buffer pushed in it. - */ -public class Adapter : ObjectG -{ - /** the main Gtk struct */ - protected GstAdapter* gstAdapter; - - /** Get the main Gtk struct */ - public GstAdapter* getAdapterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAdapter; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstAdapter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAdapter* gstAdapter, bool ownedRef = false) - { - this.gstAdapter = gstAdapter; - super(cast(GObject*)gstAdapter, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_adapter_get_type(); - } - - /** - * Creates a new #GstAdapter. Free with g_object_unref(). - * - * Returns: a new #GstAdapter - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_adapter_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstAdapter*) __p, true); - } - - /** - * Gets the maximum amount of bytes available, that is it returns the maximum - * value that can be supplied to gst_adapter_map() without that function - * returning %NULL. - * - * Returns: number of bytes available in @adapter - */ - public size_t available() - { - return gst_adapter_available(gstAdapter); - } - - /** - * Gets the maximum number of bytes that are immediately available without - * requiring any expensive operations (like copying the data into a - * temporary buffer). - * - * Returns: number of bytes that are available in @adapter without expensive - * operations - */ - public size_t availableFast() - { - return gst_adapter_available_fast(gstAdapter); - } - - /** - * Removes all buffers from @adapter. - */ - public void clear() - { - gst_adapter_clear(gstAdapter); - } - - /** - * Copies @size bytes of data starting at @offset out of the buffers - * contained in #GstAdapter into an array @dest provided by the caller. - * - * The array @dest should be large enough to contain @size bytes. - * The user should check that the adapter has (@offset + @size) bytes - * available before calling this function. - * - * Params: - * dest = the memory to copy into - * offset = the bytes offset in the adapter to start from - */ - public void copy(ubyte[] dest, size_t offset) - { - gst_adapter_copy(gstAdapter, dest.ptr, offset, cast(size_t)dest.length); - } - - /** - * Similar to gst_adapter_copy, but more suitable for language bindings. @size - * bytes of data starting at @offset will be copied out of the buffers contained - * in @adapter and into a new #GBytes structure which is returned. Depending on - * the value of the @size argument an empty #GBytes structure may be returned. - * - * Params: - * offset = the bytes offset in the adapter to start from - * size = the number of bytes to copy - * - * Returns: A new #GBytes structure containing the copied data. - * - * Since: 1.4 - */ - public Bytes copyBytes(size_t offset, size_t size) - { - auto __p = gst_adapter_copy_bytes(gstAdapter, offset, size); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Get the distance in bytes since the last buffer with the - * %GST_BUFFER_FLAG_DISCONT flag. - * - * The distance will be reset to 0 for all buffers with - * %GST_BUFFER_FLAG_DISCONT on them, and then calculated for all other - * following buffers based on their size. - * - * Returns: The offset. Can be %GST_BUFFER_OFFSET_NONE. - * - * Since: 1.10 - */ - public ulong distanceFromDiscont() - { - return gst_adapter_distance_from_discont(gstAdapter); - } - - /** - * Get the DTS that was on the last buffer with the GST_BUFFER_FLAG_DISCONT - * flag, or GST_CLOCK_TIME_NONE. - * - * Returns: The DTS at the last discont or GST_CLOCK_TIME_NONE. - * - * Since: 1.10 - */ - public GstClockTime dtsAtDiscont() - { - return gst_adapter_dts_at_discont(gstAdapter); - } - - /** - * Flushes the first @flush bytes in the @adapter. The caller must ensure that - * at least this many bytes are available. - * - * See also: gst_adapter_map(), gst_adapter_unmap() - * - * Params: - * flush = the number of bytes to flush - */ - public void flush(size_t flush) - { - gst_adapter_flush(gstAdapter, flush); - } - - /** - * Returns a #GstBuffer containing the first @nbytes of the @adapter, but - * does not flush them from the adapter. See gst_adapter_take_buffer() - * for details. - * - * Caller owns a reference to the returned buffer. gst_buffer_unref() after - * usage. - * - * Free-function: gst_buffer_unref - * - * Params: - * nbytes = the number of bytes to get - * - * Returns: a #GstBuffer containing the first - * @nbytes of the adapter, or %NULL if @nbytes bytes are not available. - * gst_buffer_unref() when no longer needed. - * - * Since: 1.6 - */ - public Buffer getBuffer(size_t nbytes) - { - auto __p = gst_adapter_get_buffer(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Returns a #GstBuffer containing the first @nbytes of the @adapter, but - * does not flush them from the adapter. See gst_adapter_take_buffer_fast() - * for details. - * - * Caller owns a reference to the returned buffer. gst_buffer_unref() after - * usage. - * - * Free-function: gst_buffer_unref - * - * Params: - * nbytes = the number of bytes to get - * - * Returns: a #GstBuffer containing the first - * @nbytes of the adapter, or %NULL if @nbytes bytes are not available. - * gst_buffer_unref() when no longer needed. - * - * Since: 1.6 - */ - public Buffer getBufferFast(size_t nbytes) - { - auto __p = gst_adapter_get_buffer_fast(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Returns a #GstBufferList of buffers containing the first @nbytes bytes of - * the @adapter but does not flush them from the adapter. See - * gst_adapter_take_buffer_list() for details. - * - * Caller owns the returned list. Call gst_buffer_list_unref() to free - * the list after usage. - * - * Params: - * nbytes = the number of bytes to get - * - * Returns: a #GstBufferList of buffers containing - * the first @nbytes of the adapter, or %NULL if @nbytes bytes are not - * available - * - * Since: 1.6 - */ - public BufferList getBufferList(size_t nbytes) - { - auto __p = gst_adapter_get_buffer_list(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferList)(cast(GstBufferList*) __p, true); - } - - /** - * Returns a #GList of buffers containing the first @nbytes bytes of the - * @adapter, but does not flush them from the adapter. See - * gst_adapter_take_list() for details. - * - * Caller owns returned list and contained buffers. gst_buffer_unref() each - * buffer in the list before freeing the list after usage. - * - * Params: - * nbytes = the number of bytes to get - * - * Returns: a #GList of - * buffers containing the first @nbytes of the adapter, or %NULL if @nbytes - * bytes are not available - * - * Since: 1.6 - */ - public ListG getList(size_t nbytes) - { - auto __p = gst_adapter_get_list(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets the first @size bytes stored in the @adapter. The returned pointer is - * valid until the next function is called on the adapter. - * - * Note that setting the returned pointer as the data of a #GstBuffer is - * incorrect for general-purpose plugins. The reason is that if a downstream - * element stores the buffer so that it has access to it outside of the bounds - * of its chain function, the buffer will have an invalid data pointer after - * your element flushes the bytes. In that case you should use - * gst_adapter_take(), which returns a freshly-allocated buffer that you can set - * as #GstBuffer memory or the potentially more performant - * gst_adapter_take_buffer(). - * - * Returns %NULL if @size bytes are not available. - * - * Params: - * size = the number of bytes to map/peek - * - * Returns: a pointer to the first @size bytes of data, or %NULL - */ - public ubyte[] map(size_t size) - { - auto __p = gst_adapter_map(gstAdapter, size); - - return cast(ubyte[])__p[0 .. size]; - } - - /** - * Scan for pattern @pattern with applied mask @mask in the adapter data, - * starting from offset @offset. - * - * The bytes in @pattern and @mask are interpreted left-to-right, regardless - * of endianness. All four bytes of the pattern must be present in the - * adapter for it to match, even if the first or last bytes are masked out. - * - * It is an error to call this function without making sure that there is - * enough data (offset+size bytes) in the adapter. - * - * This function calls gst_adapter_masked_scan_uint32_peek() passing %NULL - * for value. - * - * Params: - * mask = mask to apply to data before matching against @pattern - * pattern = pattern to match (after mask is applied) - * offset = offset into the adapter data from which to start scanning, returns - * the last scanned position. - * size = number of bytes to scan from offset - * - * Returns: offset of the first match, or -1 if no match was found. - * - * Example: - * |[ - * // Assume the adapter contains 0x00 0x01 0x02 ... 0xfe 0xff - * - * gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x00010203, 0, 256); - * // -> returns 0 - * gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x00010203, 1, 255); - * // -> returns -1 - * gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x01020304, 1, 255); - * // -> returns 1 - * gst_adapter_masked_scan_uint32 (adapter, 0xffff, 0x0001, 0, 256); - * // -> returns -1 - * gst_adapter_masked_scan_uint32 (adapter, 0xffff, 0x0203, 0, 256); - * // -> returns 0 - * gst_adapter_masked_scan_uint32 (adapter, 0xffff0000, 0x02030000, 0, 256); - * // -> returns 2 - * gst_adapter_masked_scan_uint32 (adapter, 0xffff0000, 0x02030000, 0, 4); - * // -> returns -1 - * ]| - */ - public ptrdiff_t maskedScanUint32(uint mask, uint pattern, size_t offset, size_t size) - { - return gst_adapter_masked_scan_uint32(gstAdapter, mask, pattern, offset, size); - } - - /** - * Scan for pattern @pattern with applied mask @mask in the adapter data, - * starting from offset @offset. If a match is found, the value that matched - * is returned through @value, otherwise @value is left untouched. - * - * The bytes in @pattern and @mask are interpreted left-to-right, regardless - * of endianness. All four bytes of the pattern must be present in the - * adapter for it to match, even if the first or last bytes are masked out. - * - * It is an error to call this function without making sure that there is - * enough data (offset+size bytes) in the adapter. - * - * Params: - * mask = mask to apply to data before matching against @pattern - * pattern = pattern to match (after mask is applied) - * offset = offset into the adapter data from which to start scanning, returns - * the last scanned position. - * size = number of bytes to scan from offset - * value = pointer to uint32 to return matching data - * - * Returns: offset of the first match, or -1 if no match was found. - */ - public ptrdiff_t maskedScanUint32Peek(uint mask, uint pattern, size_t offset, size_t size, out uint value) - { - return gst_adapter_masked_scan_uint32_peek(gstAdapter, mask, pattern, offset, size, &value); - } - - /** - * Get the offset that was on the last buffer with the GST_BUFFER_FLAG_DISCONT - * flag, or GST_BUFFER_OFFSET_NONE. - * - * Returns: The offset at the last discont or GST_BUFFER_OFFSET_NONE. - * - * Since: 1.10 - */ - public ulong offsetAtDiscont() - { - return gst_adapter_offset_at_discont(gstAdapter); - } - - /** - * Get the dts that was before the current byte in the adapter. When - * @distance is given, the amount of bytes between the dts and the current - * position is returned. - * - * The dts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when - * the adapter is first created or when it is cleared. This also means that before - * the first byte with a dts is removed from the adapter, the dts - * and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. - * - * Params: - * distance = pointer to location for distance, or %NULL - * - * Returns: The previously seen dts. - */ - public GstClockTime prevDts(out ulong distance) - { - return gst_adapter_prev_dts(gstAdapter, &distance); - } - - /** - * Get the dts that was before the byte at offset @offset in the adapter. When - * @distance is given, the amount of bytes between the dts and the current - * position is returned. - * - * The dts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when - * the adapter is first created or when it is cleared. This also means that before - * the first byte with a dts is removed from the adapter, the dts - * and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. - * - * Params: - * offset = the offset in the adapter at which to get timestamp - * distance = pointer to location for distance, or %NULL - * - * Returns: The previously seen dts at given offset. - * - * Since: 1.2 - */ - public GstClockTime prevDtsAtOffset(size_t offset, out ulong distance) - { - return gst_adapter_prev_dts_at_offset(gstAdapter, offset, &distance); - } - - /** - * Get the offset that was before the current byte in the adapter. When - * @distance is given, the amount of bytes between the offset and the current - * position is returned. - * - * The offset is reset to GST_BUFFER_OFFSET_NONE and the distance is set to 0 - * when the adapter is first created or when it is cleared. This also means that - * before the first byte with an offset is removed from the adapter, the offset - * and distance returned are GST_BUFFER_OFFSET_NONE and 0 respectively. - * - * Params: - * distance = pointer to a location for distance, or %NULL - * - * Returns: The previous seen offset. - * - * Since: 1.10 - */ - public ulong prevOffset(out ulong distance) - { - return gst_adapter_prev_offset(gstAdapter, &distance); - } - - /** - * Get the pts that was before the current byte in the adapter. When - * @distance is given, the amount of bytes between the pts and the current - * position is returned. - * - * The pts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when - * the adapter is first created or when it is cleared. This also means that before - * the first byte with a pts is removed from the adapter, the pts - * and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. - * - * Params: - * distance = pointer to location for distance, or %NULL - * - * Returns: The previously seen pts. - */ - public GstClockTime prevPts(out ulong distance) - { - return gst_adapter_prev_pts(gstAdapter, &distance); - } - - /** - * Get the pts that was before the byte at offset @offset in the adapter. When - * @distance is given, the amount of bytes between the pts and the current - * position is returned. - * - * The pts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when - * the adapter is first created or when it is cleared. This also means that before - * the first byte with a pts is removed from the adapter, the pts - * and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. - * - * Params: - * offset = the offset in the adapter at which to get timestamp - * distance = pointer to location for distance, or %NULL - * - * Returns: The previously seen pts at given offset. - * - * Since: 1.2 - */ - public GstClockTime prevPtsAtOffset(size_t offset, out ulong distance) - { - return gst_adapter_prev_pts_at_offset(gstAdapter, offset, &distance); - } - - /** - * Get the PTS that was on the last buffer with the GST_BUFFER_FLAG_DISCONT - * flag, or GST_CLOCK_TIME_NONE. - * - * Returns: The PTS at the last discont or GST_CLOCK_TIME_NONE. - * - * Since: 1.10 - */ - public GstClockTime ptsAtDiscont() - { - return gst_adapter_pts_at_discont(gstAdapter); - } - - /** - * Adds the data from @buf to the data stored inside @adapter and takes - * ownership of the buffer. - * - * Params: - * buf = a #GstBuffer to add to queue in the adapter - */ - public void push(Buffer buf) - { - gst_adapter_push(gstAdapter, (buf is null) ? null : buf.getBufferStruct()); - } - - /** - * Returns a freshly allocated buffer containing the first @nbytes bytes of the - * @adapter. The returned bytes will be flushed from the adapter. - * - * Caller owns returned value. g_free after usage. - * - * Free-function: g_free - * - * Params: - * nbytes = the number of bytes to take - * - * Returns: oven-fresh hot data, or %NULL if @nbytes bytes are not available - */ - public ubyte[] take(size_t nbytes) - { - auto __p = gst_adapter_take(gstAdapter, nbytes); - - return cast(ubyte[])__p[0 .. nbytes]; - } - - /** - * Returns a #GstBuffer containing the first @nbytes bytes of the - * @adapter. The returned bytes will be flushed from the adapter. - * This function is potentially more performant than - * gst_adapter_take() since it can reuse the memory in pushed buffers - * by subbuffering or merging. This function will always return a - * buffer with a single memory region. - * - * Note that no assumptions should be made as to whether certain buffer - * flags such as the DISCONT flag are set on the returned buffer, or not. - * The caller needs to explicitly set or unset flags that should be set or - * unset. - * - * Since 1.6 this will also copy over all GstMeta of the input buffers except - * for meta with the %GST_META_FLAG_POOLED flag or with the "memory" tag. - * - * Caller owns a reference to the returned buffer. gst_buffer_unref() after - * usage. - * - * Free-function: gst_buffer_unref - * - * Params: - * nbytes = the number of bytes to take - * - * Returns: a #GstBuffer containing the first - * @nbytes of the adapter, or %NULL if @nbytes bytes are not available. - * gst_buffer_unref() when no longer needed. - */ - public Buffer takeBuffer(size_t nbytes) - { - auto __p = gst_adapter_take_buffer(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Returns a #GstBuffer containing the first @nbytes of the @adapter. - * The returned bytes will be flushed from the adapter. This function - * is potentially more performant than gst_adapter_take_buffer() since - * it can reuse the memory in pushed buffers by subbuffering or - * merging. Unlike gst_adapter_take_buffer(), the returned buffer may - * be composed of multiple non-contiguous #GstMemory objects, no - * copies are made. - * - * Note that no assumptions should be made as to whether certain buffer - * flags such as the DISCONT flag are set on the returned buffer, or not. - * The caller needs to explicitly set or unset flags that should be set or - * unset. - * - * This will also copy over all GstMeta of the input buffers except - * for meta with the %GST_META_FLAG_POOLED flag or with the "memory" tag. - * - * This function can return buffer up to the return value of - * gst_adapter_available() without making copies if possible. - * - * Caller owns a reference to the returned buffer. gst_buffer_unref() after - * usage. - * - * Free-function: gst_buffer_unref - * - * Params: - * nbytes = the number of bytes to take - * - * Returns: a #GstBuffer containing the first - * @nbytes of the adapter, or %NULL if @nbytes bytes are not available. - * gst_buffer_unref() when no longer needed. - * - * Since: 1.2 - */ - public Buffer takeBufferFast(size_t nbytes) - { - auto __p = gst_adapter_take_buffer_fast(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Returns a #GstBufferList of buffers containing the first @nbytes bytes of - * the @adapter. The returned bytes will be flushed from the adapter. - * When the caller can deal with individual buffers, this function is more - * performant because no memory should be copied. - * - * Caller owns the returned list. Call gst_buffer_list_unref() to free - * the list after usage. - * - * Params: - * nbytes = the number of bytes to take - * - * Returns: a #GstBufferList of buffers containing - * the first @nbytes of the adapter, or %NULL if @nbytes bytes are not - * available - * - * Since: 1.6 - */ - public BufferList takeBufferList(size_t nbytes) - { - auto __p = gst_adapter_take_buffer_list(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferList)(cast(GstBufferList*) __p, true); - } - - /** - * Returns a #GList of buffers containing the first @nbytes bytes of the - * @adapter. The returned bytes will be flushed from the adapter. - * When the caller can deal with individual buffers, this function is more - * performant because no memory should be copied. - * - * Caller owns returned list and contained buffers. gst_buffer_unref() each - * buffer in the list before freeing the list after usage. - * - * Params: - * nbytes = the number of bytes to take - * - * Returns: a #GList of - * buffers containing the first @nbytes of the adapter, or %NULL if @nbytes - * bytes are not available - */ - public ListG takeList(size_t nbytes) - { - auto __p = gst_adapter_take_list(gstAdapter, nbytes); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Releases the memory obtained with the last gst_adapter_map(). - */ - public void unmap() - { - gst_adapter_unmap(gstAdapter); - } -} diff --git a/generated/gstreamer/gst/base/Aggregator.d b/generated/gstreamer/gst/base/Aggregator.d deleted file mode 100644 index 95753ed39..000000000 --- a/generated/gstreamer/gst/base/Aggregator.d +++ /dev/null @@ -1,365 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.Aggregator; - -private import glib.MemorySlice; -private import gobject.ObjectG; -private import gobject.Signals; -private import gst.base.AggregatorPad; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.AllocationParams; -private import gstreamer.Allocator; -private import gstreamer.Buffer; -private import gstreamer.BufferList; -private import gstreamer.BufferPool; -private import gstreamer.Caps; -private import gstreamer.Element; -private import gstreamer.Sample; -private import gstreamer.Segment; -private import gstreamer.Structure; -private import std.algorithm; - - -/** - * Manages a set of pads with the purpose of aggregating their buffers. - * Control is given to the subclass when all pads have data. - * - * * Base class for mixers and muxers. Subclasses should at least implement - * the #GstAggregatorClass.aggregate() virtual method. - * - * * Installs a #GstPadChainFunction, a #GstPadEventFullFunction and a - * #GstPadQueryFunction to queue all serialized data packets per sink pad. - * Subclasses should not overwrite those, but instead implement - * #GstAggregatorClass.sink_event() and #GstAggregatorClass.sink_query() as - * needed. - * - * * When data is queued on all pads, the aggregate vmethod is called. - * - * * One can peek at the data on any given GstAggregatorPad with the - * gst_aggregator_pad_peek_buffer() method, and remove it from the pad - * with the gst_aggregator_pad_pop_buffer () method. When a buffer - * has been taken with pop_buffer (), a new buffer can be queued - * on that pad. - * - * * When gst_aggregator_pad_peek_buffer() or gst_aggregator_pad_has_buffer() - * are called, a reference is taken to the returned buffer, which stays - * valid until either: - * - * - gst_aggregator_pad_pop_buffer() is called, in which case the caller - * is guaranteed that the buffer they receive is the same as the peeked - * buffer. - * - gst_aggregator_pad_drop_buffer() is called, in which case the caller - * is guaranteed that the dropped buffer is the one that was peeked. - * - the subclass implementation of #GstAggregatorClass.aggregate returns. - * - * Subsequent calls to gst_aggregator_pad_peek_buffer() or - * gst_aggregator_pad_has_buffer() return / check the same buffer that was - * returned / checked, until one of the conditions listed above is met. - * - * Subclasses are only allowed to call these methods from the aggregate - * thread. - * - * * If the subclass wishes to push a buffer downstream in its aggregate - * implementation, it should do so through the - * gst_aggregator_finish_buffer() method. This method will take care - * of sending and ordering mandatory events such as stream start, caps - * and segment. Buffer lists can also be pushed out with - * gst_aggregator_finish_buffer_list(). - * - * * Same goes for EOS events, which should not be pushed directly by the - * subclass, it should instead return GST_FLOW_EOS in its aggregate - * implementation. - * - * * Note that the aggregator logic regarding gap event handling is to turn - * these into gap buffers with matching PTS and duration. It will also - * flag these buffers with GST_BUFFER_FLAG_GAP and GST_BUFFER_FLAG_DROPPABLE - * to ease their identification and subsequent processing. - * - * * Subclasses must use (a subclass of) #GstAggregatorPad for both their - * sink and source pads. - * See gst_element_class_add_static_pad_template_with_gtype(). - * - * This class used to live in gst-plugins-bad and was moved to core. - * - * Since: 1.14 - */ -public class Aggregator : Element -{ - /** the main Gtk struct */ - protected GstAggregator* gstAggregator; - - /** Get the main Gtk struct */ - public GstAggregator* getAggregatorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAggregator; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstAggregator; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAggregator* gstAggregator, bool ownedRef = false) - { - this.gstAggregator = gstAggregator; - super(cast(GstElement*)gstAggregator, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_aggregator_get_type(); - } - - /** - * This method will push the provided output buffer downstream. If needed, - * mandatory events such as stream-start, caps, and segment events will be - * sent before pushing the buffer. - * - * Params: - * buffer = the #GstBuffer to push. - */ - public GstFlowReturn finishBuffer(Buffer buffer) - { - return gst_aggregator_finish_buffer(gstAggregator, (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * This method will push the provided output buffer list downstream. If needed, - * mandatory events such as stream-start, caps, and segment events will be - * sent before pushing the buffer. - * - * Params: - * bufferlist = the #GstBufferList to push. - * - * Since: 1.18 - */ - public GstFlowReturn finishBufferList(BufferList bufferlist) - { - return gst_aggregator_finish_buffer_list(gstAggregator, (bufferlist is null) ? null : bufferlist.getBufferListStruct()); - } - - /** - * Lets #GstAggregator sub-classes get the memory @allocator - * acquired by the base class and its @params. - * - * Unref the @allocator after use it. - * - * Params: - * allocator = the #GstAllocator - * used - * params = the - * #GstAllocationParams of @allocator - */ - public void getAllocator(out Allocator allocator, out AllocationParams params) - { - GstAllocator* outallocator = null; - GstAllocationParams* outparams = sliceNew!GstAllocationParams(); - - gst_aggregator_get_allocator(gstAggregator, &outallocator, outparams); - - allocator = ObjectG.getDObject!(Allocator)(outallocator); - params = ObjectG.getDObject!(AllocationParams)(outparams, true); - } - - /** - * Returns: the instance of the #GstBufferPool used - * by @trans; free it after use it - */ - public BufferPool getBufferPool() - { - auto __p = gst_aggregator_get_buffer_pool(gstAggregator); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferPool)(cast(GstBufferPool*) __p, true); - } - - /** - * Retrieves the latency values reported by @self in response to the latency - * query, or %GST_CLOCK_TIME_NONE if there is not live source connected and the element - * will not wait for the clock. - * - * Typically only called by subclasses. - * - * Returns: The latency or %GST_CLOCK_TIME_NONE if the element does not sync - */ - public GstClockTime getLatency() - { - return gst_aggregator_get_latency(gstAggregator); - } - - /** - * Negotiates src pad caps with downstream elements. - * Unmarks GST_PAD_FLAG_NEED_RECONFIGURE in any case. But marks it again - * if #GstAggregatorClass.negotiate() fails. - * - * Returns: %TRUE if the negotiation succeeded, else %FALSE. - * - * Since: 1.18 - */ - public bool negotiate() - { - return gst_aggregator_negotiate(gstAggregator) != 0; - } - - /** - * Use this function to determine what input buffers will be aggregated - * to produce the next output buffer. This should only be called from - * a #GstAggregator::samples-selected handler, and can be used to precisely - * control aggregating parameters for a given set of input samples. - * - * Returns: The sample that is about to be aggregated. It may hold a #GstBuffer - * or a #GstBufferList. The contents of its info structure is subclass-dependent, - * and documented on a subclass basis. The buffers held by the sample are - * not writable. - * - * Since: 1.18 - */ - public Sample peekNextSample(AggregatorPad pad) - { - auto __p = gst_aggregator_peek_next_sample(gstAggregator, (pad is null) ? null : pad.getAggregatorPadStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true); - } - - /** - * Subclasses should call this when they have prepared the - * buffers they will aggregate for each of their sink pads, but - * before using any of the properties of the pads that govern - * *how* aggregation should be performed, for example z-index - * for video aggregators. - * - * If gst_aggregator_update_segment() is used by the subclass, - * it MUST be called before gst_aggregator_selected_samples(). - * - * This function MUST only be called from the #GstAggregatorClass::aggregate() - * function. - * - * Params: - * pts = The presentation timestamp of the next output buffer - * dts = The decoding timestamp of the next output buffer - * duration = The duration of the next output buffer - * info = a #GstStructure containing additional information - * - * Since: 1.18 - */ - public void selectedSamples(GstClockTime pts, GstClockTime dts, GstClockTime duration, Structure info) - { - gst_aggregator_selected_samples(gstAggregator, pts, dts, duration, (info is null) ? null : info.getStructureStruct()); - } - - /** - * Lets #GstAggregator sub-classes tell the baseclass what their internal - * latency is. Will also post a LATENCY message on the bus so the pipeline - * can reconfigure its global latency. - * - * Params: - * minLatency = minimum latency - * maxLatency = maximum latency - */ - public void setLatency(GstClockTime minLatency, GstClockTime maxLatency) - { - gst_aggregator_set_latency(gstAggregator, minLatency, maxLatency); - } - - /** - * Sets the caps to be used on the src pad. - * - * Params: - * caps = The #GstCaps to set on the src pad. - */ - public void setSrcCaps(Caps caps) - { - gst_aggregator_set_src_caps(gstAggregator, (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * This is a simple #GstAggregatorClass.get_next_time() implementation that - * just looks at the #GstSegment on the srcpad of the aggregator and bases - * the next time on the running time there. - * - * This is the desired behaviour in most cases where you have a live source - * and you have a dead line based aggregator subclass. - * - * Returns: The running time based on the position - * - * Since: 1.16 - */ - public GstClockTime simpleGetNextTime() - { - return gst_aggregator_simple_get_next_time(gstAggregator); - } - - /** - * Subclasses should use this to update the segment on their - * source pad, instead of directly pushing new segment events - * downstream. - * - * Subclasses MUST call this before gst_aggregator_selected_samples(), - * if it is used at all. - * - * Since: 1.18 - */ - public void updateSegment(Segment segment) - { - gst_aggregator_update_segment(gstAggregator, (segment is null) ? null : segment.getSegmentStruct()); - } - - /** - * Signals that the #GstAggregator subclass has selected the next set - * of input samples it will aggregate. Handlers may call - * gst_aggregator_peek_next_sample() at that point. - * - * Params: - * segment = The #GstSegment the next output buffer is part of - * pts = The presentation timestamp of the next output buffer - * dts = The decoding timestamp of the next output buffer - * duration = The duration of the next output buffer - * info = a #GstStructure containing additional information - * - * Since: 1.18 - */ - gulong addOnSamplesSelected(void delegate(Segment, ulong, ulong, ulong, Structure, Aggregator) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "samples-selected", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gst/base/AggregatorPad.d b/generated/gstreamer/gst/base/AggregatorPad.d deleted file mode 100644 index bed354b31..000000000 --- a/generated/gstreamer/gst/base/AggregatorPad.d +++ /dev/null @@ -1,150 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.AggregatorPad; - -private import gobject.ObjectG; -private import gobject.Signals; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Buffer; -private import gstreamer.Pad; -private import std.algorithm; - - -/** - * Pads managed by a #GstAggregator subclass. - * - * This class used to live in gst-plugins-bad and was moved to core. - * - * Since: 1.14 - */ -public class AggregatorPad : Pad -{ - /** the main Gtk struct */ - protected GstAggregatorPad* gstAggregatorPad; - - /** Get the main Gtk struct */ - public GstAggregatorPad* getAggregatorPadStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAggregatorPad; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstAggregatorPad; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAggregatorPad* gstAggregatorPad, bool ownedRef = false) - { - this.gstAggregatorPad = gstAggregatorPad; - super(cast(GstPad*)gstAggregatorPad, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_aggregator_pad_get_type(); - } - - /** - * Drop the buffer currently queued in @pad. - * - * Returns: TRUE if there was a buffer queued in @pad, or FALSE if not. - */ - public bool dropBuffer() - { - return gst_aggregator_pad_drop_buffer(gstAggregatorPad) != 0; - } - - /** - * This checks if a pad has a buffer available that will be returned by - * a call to gst_aggregator_pad_peek_buffer() or - * gst_aggregator_pad_pop_buffer(). - * - * Returns: %TRUE if the pad has a buffer available as the next thing. - * - * Since: 1.14.1 - */ - public bool hasBuffer() - { - return gst_aggregator_pad_has_buffer(gstAggregatorPad) != 0; - } - - /** - * Returns: %TRUE if the pad is EOS, otherwise %FALSE. - */ - public bool isEos() - { - return gst_aggregator_pad_is_eos(gstAggregatorPad) != 0; - } - - /** - * Returns: A reference to the buffer in @pad or - * NULL if no buffer was queued. You should unref the buffer after - * usage. - */ - public Buffer peekBuffer() - { - auto __p = gst_aggregator_pad_peek_buffer(gstAggregatorPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Steal the ref to the buffer currently queued in @pad. - * - * Returns: The buffer in @pad or NULL if no buffer was - * queued. You should unref the buffer after usage. - */ - public Buffer popBuffer() - { - auto __p = gst_aggregator_pad_pop_buffer(gstAggregatorPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** */ - gulong addOnBufferConsumed(void delegate(Buffer, AggregatorPad) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "buffer-consumed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gst/base/Base.d b/generated/gstreamer/gst/base/Base.d deleted file mode 100644 index 26e4c9ea5..000000000 --- a/generated/gstreamer/gst/base/Base.d +++ /dev/null @@ -1,333 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.Base; - -private import glib.Str; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Buffer; -private import gstreamer.Caps; -private import gstreamer.ObjectGst; -private import gstreamer.Pad; - - -/** */ -public struct Base -{ - - /** - * Tries to find what type of data is flowing from the given source #GstPad. - * - * Free-function: gst_caps_unref - * - * Params: - * src = A source #GstPad - * size = The length in bytes - * - * Returns: the #GstCaps corresponding to the data - * stream. Returns %NULL if no #GstCaps matches the data stream. - */ - public static Caps typeFindHelper(Pad src, ulong size) - { - auto __p = gst_type_find_helper((src is null) ? null : src.getPadStruct(), size); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Tries to find what type of data is contained in the given #GstBuffer, the - * assumption being that the buffer represents the beginning of the stream or - * file. - * - * All available typefinders will be called on the data in order of rank. If - * a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, - * typefinding is stopped immediately and the found caps will be returned - * right away. Otherwise, all available typefind functions will the tried, - * and the caps with the highest probability will be returned, or %NULL if - * the content of the buffer could not be identified. - * - * Free-function: gst_caps_unref - * - * Params: - * obj = object doing the typefinding, or %NULL (used for logging) - * buf = a #GstBuffer with data to typefind - * prob = location to store the probability of the found - * caps, or %NULL - * - * Returns: the #GstCaps corresponding to the data, - * or %NULL if no type could be found. The caller should free the caps - * returned with gst_caps_unref(). - */ - public static Caps typeFindHelperForBuffer(ObjectGst obj, Buffer buf, out GstTypeFindProbability prob) - { - auto __p = gst_type_find_helper_for_buffer((obj is null) ? null : obj.getObjectGstStruct(), (buf is null) ? null : buf.getBufferStruct(), &prob); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Tries to find what type of data is contained in the given @data, the - * assumption being that the data represents the beginning of the stream or - * file. - * - * All available typefinders will be called on the data in order of rank. If - * a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, - * typefinding is stopped immediately and the found caps will be returned - * right away. Otherwise, all available typefind functions will the tried, - * and the caps with the highest probability will be returned, or %NULL if - * the content of @data could not be identified. - * - * Free-function: gst_caps_unref - * - * Params: - * obj = object doing the typefinding, or %NULL (used for logging) - * data = * a pointer with data to typefind - * prob = location to store the probability of the found - * caps, or %NULL - * - * Returns: the #GstCaps corresponding to the data, - * or %NULL if no type could be found. The caller should free the caps - * returned with gst_caps_unref(). - */ - public static Caps typeFindHelperForData(ObjectGst obj, ubyte[] data, out GstTypeFindProbability prob) - { - auto __p = gst_type_find_helper_for_data((obj is null) ? null : obj.getObjectGstStruct(), data.ptr, cast(size_t)data.length, &prob); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Tries to find the best #GstCaps associated with @extension. - * - * All available typefinders will be checked against the extension in order - * of rank. The caps of the first typefinder that can handle @extension will be - * returned. - * - * Free-function: gst_caps_unref - * - * Params: - * obj = object doing the typefinding, or %NULL (used for logging) - * extension = an extension - * - * Returns: the #GstCaps corresponding to - * @extension, or %NULL if no type could be found. The caller should free - * the caps returned with gst_caps_unref(). - */ - public static Caps typeFindHelperForExtension(ObjectGst obj, string extension) - { - auto __p = gst_type_find_helper_for_extension((obj is null) ? null : obj.getObjectGstStruct(), Str.toStringz(extension)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Utility function to do pull-based typefinding. Unlike gst_type_find_helper() - * however, this function will use the specified function @func to obtain the - * data needed by the typefind functions, rather than operating on a given - * source pad. This is useful mostly for elements like tag demuxers which - * strip off data at the beginning and/or end of a file and want to typefind - * the stripped data stream before adding their own source pad (the specified - * callback can then call the upstream peer pad with offsets adjusted for the - * tag size, for example). - * - * When @extension is not %NULL, this function will first try the typefind - * functions for the given extension, which might speed up the typefinding - * in many cases. - * - * Free-function: gst_caps_unref - * - * Params: - * obj = A #GstObject that will be passed as first argument to @func - * parent = the parent of @obj or %NULL - * func = A generic #GstTypeFindHelperGetRangeFunction that will - * be used to access data at random offsets when doing the typefinding - * size = The length in bytes - * extension = extension of the media, or %NULL - * prob = location to store the probability of the found - * caps, or %NULL - * - * Returns: the #GstCaps corresponding to the data - * stream. Returns %NULL if no #GstCaps matches the data stream. - */ - public static Caps typeFindHelperGetRange(ObjectGst obj, ObjectGst parent, GstTypeFindHelperGetRangeFunction func, ulong size, string extension, out GstTypeFindProbability prob) - { - auto __p = gst_type_find_helper_get_range((obj is null) ? null : obj.getObjectGstStruct(), (parent is null) ? null : parent.getObjectGstStruct(), func, size, Str.toStringz(extension), &prob); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Tries to find what type of data is contained in the given #GstBuffer, the - * assumption being that the buffer represents the beginning of the stream or - * file. - * - * All available typefinders will be called on the data in order of rank. If - * a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, - * typefinding is stopped immediately and the found caps will be returned - * right away. Otherwise, all available typefind functions will the tried, - * and the caps with the highest probability will be returned, or %NULL if - * the content of the buffer could not be identified. - * - * When @extension is not %NULL, this function will first try the typefind - * functions for the given extension, which might speed up the typefinding - * in many cases. - * - * Free-function: gst_caps_unref - * - * Params: - * obj = object doing the typefinding, or %NULL (used for logging) - * buf = a #GstBuffer with data to typefind - * extension = extension of the media, or %NULL - * prob = location to store the probability of the found - * caps, or %NULL - * - * Returns: the #GstCaps corresponding to the data, - * or %NULL if no type could be found. The caller should free the caps - * returned with gst_caps_unref(). - * - * Since: 1.16 - */ - public static Caps typeFindHelperForBufferWithExtension(ObjectGst obj, Buffer buf, string extension, out GstTypeFindProbability prob) - { - auto __p = gst_type_find_helper_for_buffer_with_extension((obj is null) ? null : obj.getObjectGstStruct(), (buf is null) ? null : buf.getBufferStruct(), Str.toStringz(extension), &prob); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Tries to find what type of data is contained in the given @data, the - * assumption being that the data represents the beginning of the stream or - * file. - * - * All available typefinders will be called on the data in order of rank. If - * a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, - * typefinding is stopped immediately and the found caps will be returned - * right away. Otherwise, all available typefind functions will the tried, - * and the caps with the highest probability will be returned, or %NULL if - * the content of @data could not be identified. - * - * When @extension is not %NULL, this function will first try the typefind - * functions for the given extension, which might speed up the typefinding - * in many cases. - * - * Free-function: gst_caps_unref - * - * Params: - * obj = object doing the typefinding, or %NULL (used for logging) - * data = * a pointer with data to typefind - * extension = extension of the media, or %NULL - * prob = location to store the probability of the found - * caps, or %NULL - * - * Returns: the #GstCaps corresponding to the data, - * or %NULL if no type could be found. The caller should free the caps - * returned with gst_caps_unref(). - * - * Since: 1.16 - */ - public static Caps typeFindHelperForDataWithExtension(ObjectGst obj, ubyte[] data, string extension, out GstTypeFindProbability prob) - { - auto __p = gst_type_find_helper_for_data_with_extension((obj is null) ? null : obj.getObjectGstStruct(), data.ptr, cast(size_t)data.length, Str.toStringz(extension), &prob); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Utility function to do pull-based typefinding. Unlike gst_type_find_helper() - * however, this function will use the specified function @func to obtain the - * data needed by the typefind functions, rather than operating on a given - * source pad. This is useful mostly for elements like tag demuxers which - * strip off data at the beginning and/or end of a file and want to typefind - * the stripped data stream before adding their own source pad (the specified - * callback can then call the upstream peer pad with offsets adjusted for the - * tag size, for example). - * - * When @extension is not %NULL, this function will first try the typefind - * functions for the given extension, which might speed up the typefinding - * in many cases. - * - * Params: - * obj = A #GstObject that will be passed as first argument to @func - * parent = the parent of @obj or %NULL - * func = A generic #GstTypeFindHelperGetRangeFunction that will - * be used to access data at random offsets when doing the typefinding - * size = The length in bytes - * extension = extension of the media, or %NULL - * caps = returned caps - * prob = location to store the probability of the found - * caps, or %NULL - * - * Returns: the last %GstFlowReturn from pulling a buffer or %GST_FLOW_OK if - * typefinding was successful. - * - * Since: 1.14.3 - */ - public static GstFlowReturn typeFindHelperGetRangeFull(ObjectGst obj, ObjectGst parent, GstTypeFindHelperGetRangeFunction func, ulong size, string extension, out Caps caps, out GstTypeFindProbability prob) - { - GstCaps* outcaps = null; - - auto __p = gst_type_find_helper_get_range_full((obj is null) ? null : obj.getObjectGstStruct(), (parent is null) ? null : parent.getObjectGstStruct(), func, size, Str.toStringz(extension), &outcaps, &prob); - - caps = ObjectG.getDObject!(Caps)(outcaps); - - return __p; - } -} diff --git a/generated/gstreamer/gst/base/BaseParse.d b/generated/gstreamer/gst/base/BaseParse.d deleted file mode 100644 index be29160be..000000000 --- a/generated/gstreamer/gst/base/BaseParse.d +++ /dev/null @@ -1,483 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.BaseParse; - -private import gst.base.BaseParseFrame; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Element; -private import gstreamer.TagList; - - -/** - * This base class is for parser elements that process data and splits it - * into separate audio/video/whatever frames. - * - * It provides for: - * - * * provides one sink pad and one source pad - * * handles state changes - * * can operate in pull mode or push mode - * * handles seeking in both modes - * * handles events (SEGMENT/EOS/FLUSH) - * * handles queries (POSITION/DURATION/SEEKING/FORMAT/CONVERT) - * * handles flushing - * - * The purpose of this base class is to provide the basic functionality of - * a parser and share a lot of rather complex code. - * - * # Description of the parsing mechanism: - * - * ## Set-up phase - * - * * #GstBaseParse calls #GstBaseParseClass.start() to inform subclass - * that data processing is about to start now. - * - * * #GstBaseParse class calls #GstBaseParseClass.set_sink_caps() to - * inform the subclass about incoming sinkpad caps. Subclass could - * already set the srcpad caps accordingly, but this might be delayed - * until calling gst_base_parse_finish_frame() with a non-queued frame. - * - * * At least at this point subclass needs to tell the #GstBaseParse class - * how big data chunks it wants to receive (minimum frame size ). It can - * do this with gst_base_parse_set_min_frame_size(). - * - * * #GstBaseParse class sets up appropriate data passing mode (pull/push) - * and starts to process the data. - * - * ## Parsing phase - * - * * #GstBaseParse gathers at least min_frame_size bytes of data either - * by pulling it from upstream or collecting buffers in an internal - * #GstAdapter. - * - * * A buffer of (at least) min_frame_size bytes is passed to subclass - * with #GstBaseParseClass.handle_frame(). Subclass checks the contents - * and can optionally return #GST_FLOW_OK along with an amount of data - * to be skipped to find a valid frame (which will result in a - * subsequent DISCONT). If, otherwise, the buffer does not hold a - * complete frame, #GstBaseParseClass.handle_frame() can merely return - * and will be called again when additional data is available. In push - * mode this amounts to an additional input buffer (thus minimal - * additional latency), in pull mode this amounts to some arbitrary - * reasonable buffer size increase. - * - * Of course, gst_base_parse_set_min_frame_size() could also be used if - * a very specific known amount of additional data is required. If, - * however, the buffer holds a complete valid frame, it can pass the - * size of this frame to gst_base_parse_finish_frame(). - * - * If acting as a converter, it can also merely indicate consumed input - * data while simultaneously providing custom output data. Note that - * baseclass performs some processing (such as tracking overall consumed - * data rate versus duration) for each finished frame, but other state - * is only updated upon each call to #GstBaseParseClass.handle_frame() - * (such as tracking upstream input timestamp). - * - * Subclass is also responsible for setting the buffer metadata - * (e.g. buffer timestamp and duration, or keyframe if applicable). - * (although the latter can also be done by #GstBaseParse if it is - * appropriately configured, see below). Frame is provided with - * timestamp derived from upstream (as much as generally possible), - * duration obtained from configuration (see below), and offset - * if meaningful (in pull mode). - * - * Note that #GstBaseParseClass.handle_frame() might receive any small - * amount of input data when leftover data is being drained (e.g. at - * EOS). - * - * * As part of finish frame processing, just prior to actually pushing - * the buffer in question, it is passed to - * #GstBaseParseClass.pre_push_frame() which gives subclass yet one last - * chance to examine buffer metadata, or to send some custom (tag) - * events, or to perform custom (segment) filtering. - * - * * During the parsing process #GstBaseParseClass will handle both srcpad - * and sinkpad events. They will be passed to subclass if - * #GstBaseParseClass.sink_event() or #GstBaseParseClass.src_event() - * implementations have been provided. - * - * ## Shutdown phase - * - * * #GstBaseParse class calls #GstBaseParseClass.stop() to inform the - * subclass that data parsing will be stopped. - * - * Subclass is responsible for providing pad template caps for source and - * sink pads. The pads need to be named "sink" and "src". It also needs to - * set the fixed caps on srcpad, when the format is ensured (e.g. when - * base class calls subclass' #GstBaseParseClass.set_sink_caps() function). - * - * This base class uses %GST_FORMAT_DEFAULT as a meaning of frames. So, - * subclass conversion routine needs to know that conversion from - * %GST_FORMAT_TIME to %GST_FORMAT_DEFAULT must return the - * frame number that can be found from the given byte position. - * - * #GstBaseParse uses subclasses conversion methods also for seeking (or - * otherwise uses its own default one, see also below). - * - * Subclass @start and @stop functions will be called to inform the beginning - * and end of data processing. - * - * Things that subclass need to take care of: - * - * * Provide pad templates - * * Fixate the source pad caps when appropriate - * * Inform base class how big data chunks should be retrieved. This is - * done with gst_base_parse_set_min_frame_size() function. - * * Examine data chunks passed to subclass with - * #GstBaseParseClass.handle_frame() and pass proper frame(s) to - * gst_base_parse_finish_frame(), and setting src pad caps and timestamps - * on frame. - * * Provide conversion functions - * * Update the duration information with gst_base_parse_set_duration() - * * Optionally passthrough using gst_base_parse_set_passthrough() - * * Configure various baseparse parameters using - * gst_base_parse_set_average_bitrate(), gst_base_parse_set_syncable() - * and gst_base_parse_set_frame_rate(). - * - * * In particular, if subclass is unable to determine a duration, but - * parsing (or specs) yields a frames per seconds rate, then this can be - * provided to #GstBaseParse to enable it to cater for buffer time - * metadata (which will be taken from upstream as much as - * possible). Internally keeping track of frame durations and respective - * sizes that have been pushed provides #GstBaseParse with an estimated - * bitrate. A default #GstBaseParseClass.convert() (used if not - * overridden) will then use these rates to perform obvious conversions. - * These rates are also used to update (estimated) duration at regular - * frame intervals. - */ -public class BaseParse : Element -{ - /** the main Gtk struct */ - protected GstBaseParse* gstBaseParse; - - /** Get the main Gtk struct */ - public GstBaseParse* getBaseParseStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBaseParse; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstBaseParse; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBaseParse* gstBaseParse, bool ownedRef = false) - { - this.gstBaseParse = gstBaseParse; - super(cast(GstElement*)gstBaseParse, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_base_parse_get_type(); - } - - /** - * Adds an entry to the index associating @offset to @ts. It is recommended - * to only add keyframe entries. @force allows to bypass checks, such as - * whether the stream is (upstream) seekable, another entry is already "close" - * to the new entry, etc. - * - * Params: - * offset = offset of entry - * ts = timestamp associated with offset - * key = whether entry refers to keyframe - * force = add entry disregarding sanity checks - * - * Returns: #gboolean indicating whether entry was added - */ - public bool addIndexEntry(ulong offset, GstClockTime ts, bool key, bool force) - { - return gst_base_parse_add_index_entry(gstBaseParse, offset, ts, key, force) != 0; - } - - /** - * Default implementation of #GstBaseParseClass.convert(). - * - * Params: - * srcFormat = #GstFormat describing the source format. - * srcValue = Source value to be converted. - * destFormat = #GstFormat defining the converted format. - * destValue = Pointer where the conversion result will be put. - * - * Returns: %TRUE if conversion was successful. - */ - public bool convertDefault(GstFormat srcFormat, long srcValue, GstFormat destFormat, out long destValue) - { - return gst_base_parse_convert_default(gstBaseParse, srcFormat, srcValue, destFormat, &destValue) != 0; - } - - /** - * Drains the adapter until it is empty. It decreases the min_frame_size to - * match the current adapter size and calls chain method until the adapter - * is emptied or chain returns with error. - * - * Since: 1.12 - */ - public void drain() - { - gst_base_parse_drain(gstBaseParse); - } - - /** - * Collects parsed data and pushes this downstream. - * Source pad caps must be set when this is called. - * - * If @frame's out_buffer is set, that will be used as subsequent frame data. - * Otherwise, @size samples will be taken from the input and used for output, - * and the output's metadata (timestamps etc) will be taken as (optionally) - * set by the subclass on @frame's (input) buffer (which is otherwise - * ignored for any but the above purpose/information). - * - * Note that the latter buffer is invalidated by this call, whereas the - * caller retains ownership of @frame. - * - * Params: - * frame = a #GstBaseParseFrame - * size = consumed input data represented by frame - * - * Returns: a #GstFlowReturn that should be escalated to caller (of caller) - */ - public GstFlowReturn finishFrame(BaseParseFrame frame, int size) - { - return gst_base_parse_finish_frame(gstBaseParse, (frame is null) ? null : frame.getBaseParseFrameStruct(), size); - } - - /** - * Sets the parser subclass's tags and how they should be merged with any - * upstream stream tags. This will override any tags previously-set - * with gst_base_parse_merge_tags(). - * - * Note that this is provided for convenience, and the subclass is - * not required to use this and can still do tag handling on its own. - * - * Params: - * tags = a #GstTagList to merge, or NULL to unset - * previously-set tags - * mode = the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE - * - * Since: 1.6 - */ - public void mergeTags(TagList tags, GstTagMergeMode mode) - { - gst_base_parse_merge_tags(gstBaseParse, (tags is null) ? null : tags.getTagListStruct(), mode); - } - - /** - * Pushes the frame's buffer downstream, sends any pending events and - * does some timestamp and segment handling. Takes ownership of - * frame's buffer, though caller retains ownership of @frame. - * - * This must be called with sinkpad STREAM_LOCK held. - * - * Params: - * frame = a #GstBaseParseFrame - * - * Returns: #GstFlowReturn - */ - public GstFlowReturn pushFrame(BaseParseFrame frame) - { - return gst_base_parse_push_frame(gstBaseParse, (frame is null) ? null : frame.getBaseParseFrameStruct()); - } - - /** - * Optionally sets the average bitrate detected in media (if non-zero), - * e.g. based on metadata, as it will be posted to the application. - * - * By default, announced average bitrate is estimated. The average bitrate - * is used to estimate the total duration of the stream and to estimate - * a seek position, if there's no index and the format is syncable - * (see gst_base_parse_set_syncable()). - * - * Params: - * bitrate = average bitrate in bits/second - */ - public void setAverageBitrate(uint bitrate) - { - gst_base_parse_set_average_bitrate(gstBaseParse, bitrate); - } - - /** - * Sets the duration of the currently playing media. Subclass can use this - * when it is able to determine duration and/or notices a change in the media - * duration. Alternatively, if @interval is non-zero (default), then stream - * duration is determined based on estimated bitrate, and updated every @interval - * frames. - * - * Params: - * fmt = #GstFormat. - * duration = duration value. - * interval = how often to update the duration estimate based on bitrate, or 0. - */ - public void setDuration(GstFormat fmt, long duration, int interval) - { - gst_base_parse_set_duration(gstBaseParse, fmt, duration, interval); - } - - /** - * If frames per second is configured, parser can take care of buffer duration - * and timestamping. When performing segment clipping, or seeking to a specific - * location, a corresponding decoder might need an initial @lead_in and a - * following @lead_out number of frames to ensure the desired segment is - * entirely filled upon decoding. - * - * Params: - * fpsNum = frames per second (numerator). - * fpsDen = frames per second (denominator). - * leadIn = frames needed before a segment for subsequent decode - * leadOut = frames needed after a segment - */ - public void setFrameRate(uint fpsNum, uint fpsDen, uint leadIn, uint leadOut) - { - gst_base_parse_set_frame_rate(gstBaseParse, fpsNum, fpsDen, leadIn, leadOut); - } - - /** - * Set if frames carry timing information which the subclass can (generally) - * parse and provide. In particular, intrinsic (rather than estimated) time - * can be obtained following a seek. - * - * Params: - * hasTiming = whether frames carry timing information - */ - public void setHasTimingInfo(bool hasTiming) - { - gst_base_parse_set_has_timing_info(gstBaseParse, hasTiming); - } - - /** - * By default, the base class might try to infer PTS from DTS and vice - * versa. While this is generally correct for audio data, it may not - * be otherwise. Sub-classes implementing such formats should disable - * timestamp inferring. - * - * Params: - * inferTs = %TRUE if parser should infer DTS/PTS from each other - */ - public void setInferTs(bool inferTs) - { - gst_base_parse_set_infer_ts(gstBaseParse, inferTs); - } - - /** - * Sets the minimum and maximum (which may likely be equal) latency introduced - * by the parsing process. If there is such a latency, which depends on the - * particular parsing of the format, it typically corresponds to 1 frame duration. - * - * Params: - * minLatency = minimum parse latency - * maxLatency = maximum parse latency - */ - public void setLatency(GstClockTime minLatency, GstClockTime maxLatency) - { - gst_base_parse_set_latency(gstBaseParse, minLatency, maxLatency); - } - - /** - * Subclass can use this function to tell the base class that it needs to - * be given buffers of at least @min_size bytes. - * - * Params: - * minSize = Minimum size in bytes of the data that this base class should - * give to subclass. - */ - public void setMinFrameSize(uint minSize) - { - gst_base_parse_set_min_frame_size(gstBaseParse, minSize); - } - - /** - * Set if the nature of the format or configuration does not allow (much) - * parsing, and the parser should operate in passthrough mode (which only - * applies when operating in push mode). That is, incoming buffers are - * pushed through unmodified, i.e. no #GstBaseParseClass.handle_frame() - * will be invoked, but #GstBaseParseClass.pre_push_frame() will still be - * invoked, so subclass can perform as much or as little is appropriate for - * passthrough semantics in #GstBaseParseClass.pre_push_frame(). - * - * Params: - * passthrough = %TRUE if parser should run in passthrough mode - */ - public void setPassthrough(bool passthrough) - { - gst_base_parse_set_passthrough(gstBaseParse, passthrough); - } - - /** - * By default, the base class will guess PTS timestamps using a simple - * interpolation (previous timestamp + duration), which is incorrect for - * data streams with reordering, where PTS can go backward. Sub-classes - * implementing such formats should disable PTS interpolation. - * - * Params: - * ptsInterpolate = %TRUE if parser should interpolate PTS timestamps - */ - public void setPtsInterpolation(bool ptsInterpolate) - { - gst_base_parse_set_pts_interpolation(gstBaseParse, ptsInterpolate); - } - - /** - * Set if frame starts can be identified. This is set by default and - * determines whether seeking based on bitrate averages - * is possible for a format/stream. - * - * Params: - * syncable = set if frame starts can be identified - */ - public void setSyncable(bool syncable) - { - gst_base_parse_set_syncable(gstBaseParse, syncable); - } - - /** - * This function should only be called from a @handle_frame implementation. - * - * #GstBaseParse creates initial timestamps for frames by using the last - * timestamp seen in the stream before the frame starts. In certain - * cases, the correct timestamps will occur in the stream after the - * start of the frame, but before the start of the actual picture data. - * This function can be used to set the timestamps based on the offset - * into the frame data that the picture starts. - * - * Params: - * offset = offset into current buffer - * - * Since: 1.2 - */ - public void setTsAtOffset(size_t offset) - { - gst_base_parse_set_ts_at_offset(gstBaseParse, offset); - } -} diff --git a/generated/gstreamer/gst/base/BaseParseFrame.d b/generated/gstreamer/gst/base/BaseParseFrame.d deleted file mode 100644 index baab6c241..000000000 --- a/generated/gstreamer/gst/base/BaseParseFrame.d +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.BaseParseFrame; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Buffer; -private import gtkd.Loader; - - -/** - * Frame (context) data passed to each frame parsing virtual methods. In - * addition to providing the data to be checked for a valid frame or an already - * identified frame, it conveys additional metadata or control information - * from and to the subclass w.r.t. the particular frame in question (rather - * than global parameters). Some of these may apply to each parsing stage, others - * only to some a particular one. These parameters are effectively zeroed at start - * of each frame's processing, i.e. parsing virtual method invocation sequence. - */ -public class BaseParseFrame -{ - /** the main Gtk struct */ - protected GstBaseParseFrame* gstBaseParseFrame; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstBaseParseFrame* getBaseParseFrameStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBaseParseFrame; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstBaseParseFrame; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBaseParseFrame* gstBaseParseFrame, bool ownedRef = false) - { - this.gstBaseParseFrame = gstBaseParseFrame; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTBASE) && ownedRef ) - gst_base_parse_frame_free(gstBaseParseFrame); - } - - - /** */ - public static GType getType() - { - return gst_base_parse_frame_get_type(); - } - - /** - * Allocates a new #GstBaseParseFrame. This function is mainly for bindings, - * elements written in C should usually allocate the frame on the stack and - * then use gst_base_parse_frame_init() to initialise it. - * - * Params: - * buffer = a #GstBuffer - * flags = the flags - * overhead = number of bytes in this frame which should be counted as - * metadata overhead, ie. not used to calculate the average bitrate. - * Set to -1 to mark the entire frame as metadata. If in doubt, set to 0. - * - * Returns: a newly-allocated #GstBaseParseFrame. Free with - * gst_base_parse_frame_free() when no longer needed. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Buffer buffer, GstBaseParseFrameFlags flags, int overhead) - { - auto __p = gst_base_parse_frame_new((buffer is null) ? null : buffer.getBufferStruct(), flags, overhead); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBaseParseFrame*) __p); - } - - /** - * Copies a #GstBaseParseFrame. - * - * Returns: A copy of @frame - * - * Since: 1.12.1 - */ - public BaseParseFrame copy() - { - auto __p = gst_base_parse_frame_copy(gstBaseParseFrame); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BaseParseFrame)(cast(GstBaseParseFrame*) __p, true); - } - - /** - * Frees the provided @frame. - */ - public void free() - { - gst_base_parse_frame_free(gstBaseParseFrame); - ownedRef = false; - } - - /** - * Sets a #GstBaseParseFrame to initial state. Currently this means - * all public fields are zero-ed and a private flag is set to make - * sure gst_base_parse_frame_free() only frees the contents but not - * the actual frame. Use this function to initialise a #GstBaseParseFrame - * allocated on the stack. - */ - public void init() - { - gst_base_parse_frame_init(gstBaseParseFrame); - } -} diff --git a/generated/gstreamer/gst/base/BaseSink.d b/generated/gstreamer/gst/base/BaseSink.d deleted file mode 100644 index af6022aad..000000000 --- a/generated/gstreamer/gst/base/BaseSink.d +++ /dev/null @@ -1,683 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.BaseSink; - -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Element; -private import gstreamer.MiniObject; -private import gstreamer.Sample; -private import gstreamer.Structure; - - -/** - * #GstBaseSink is the base class for sink elements in GStreamer, such as - * xvimagesink or filesink. It is a layer on top of #GstElement that provides a - * simplified interface to plugin writers. #GstBaseSink handles many details - * for you, for example: preroll, clock synchronization, state changes, - * activation in push or pull mode, and queries. - * - * In most cases, when writing sink elements, there is no need to implement - * class methods from #GstElement or to set functions on pads, because the - * #GstBaseSink infrastructure should be sufficient. - * - * #GstBaseSink provides support for exactly one sink pad, which should be - * named "sink". A sink implementation (subclass of #GstBaseSink) should - * install a pad template in its class_init function, like so: - * |[ - * static void - * my_element_class_init (GstMyElementClass *klass) - * { - * GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass); - * - * // sinktemplate should be a #GstStaticPadTemplate with direction - * // %GST_PAD_SINK and name "sink" - * gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate); - * - * gst_element_class_set_static_metadata (gstelement_class, - * "Sink name", - * "Sink", - * "My Sink element", - * "The author "); - * } - * ]| - * - * #GstBaseSink will handle the prerolling correctly. This means that it will - * return %GST_STATE_CHANGE_ASYNC from a state change to PAUSED until the first - * buffer arrives in this element. The base class will call the - * #GstBaseSinkClass.preroll() vmethod with this preroll buffer and will then - * commit the state change to the next asynchronously pending state. - * - * When the element is set to PLAYING, #GstBaseSink will synchronise on the - * clock using the times returned from #GstBaseSinkClass.get_times(). If this - * function returns %GST_CLOCK_TIME_NONE for the start time, no synchronisation - * will be done. Synchronisation can be disabled entirely by setting the object - * #GstBaseSink:sync property to %FALSE. - * - * After synchronisation the virtual method #GstBaseSinkClass.render() will be - * called. Subclasses should minimally implement this method. - * - * Subclasses that synchronise on the clock in the #GstBaseSinkClass.render() - * method are supported as well. These classes typically receive a buffer in - * the render method and can then potentially block on the clock while - * rendering. A typical example is an audiosink. - * These subclasses can use gst_base_sink_wait_preroll() to perform the - * blocking wait. - * - * Upon receiving the EOS event in the PLAYING state, #GstBaseSink will wait - * for the clock to reach the time indicated by the stop time of the last - * #GstBaseSinkClass.get_times() call before posting an EOS message. When the - * element receives EOS in PAUSED, preroll completes, the event is queued and an - * EOS message is posted when going to PLAYING. - * - * #GstBaseSink will internally use the %GST_EVENT_SEGMENT events to schedule - * synchronisation and clipping of buffers. Buffers that fall completely outside - * of the current segment are dropped. Buffers that fall partially in the - * segment are rendered (and prerolled). Subclasses should do any subbuffer - * clipping themselves when needed. - * - * #GstBaseSink will by default report the current playback position in - * %GST_FORMAT_TIME based on the current clock time and segment information. - * If no clock has been set on the element, the query will be forwarded - * upstream. - * - * The #GstBaseSinkClass.set_caps() function will be called when the subclass - * should configure itself to process a specific media type. - * - * The #GstBaseSinkClass.start() and #GstBaseSinkClass.stop() virtual methods - * will be called when resources should be allocated. Any - * #GstBaseSinkClass.preroll(), #GstBaseSinkClass.render() and - * #GstBaseSinkClass.set_caps() function will be called between the - * #GstBaseSinkClass.start() and #GstBaseSinkClass.stop() calls. - * - * The #GstBaseSinkClass.event() virtual method will be called when an event is - * received by #GstBaseSink. Normally this method should only be overridden by - * very specific elements (such as file sinks) which need to handle the - * newsegment event specially. - * - * The #GstBaseSinkClass.unlock() method is called when the elements should - * unblock any blocking operations they perform in the - * #GstBaseSinkClass.render() method. This is mostly useful when the - * #GstBaseSinkClass.render() method performs a blocking write on a file - * descriptor, for example. - * - * The #GstBaseSink:max-lateness property affects how the sink deals with - * buffers that arrive too late in the sink. A buffer arrives too late in the - * sink when the presentation time (as a combination of the last segment, buffer - * timestamp and element base_time) plus the duration is before the current - * time of the clock. - * If the frame is later than max-lateness, the sink will drop the buffer - * without calling the render method. - * This feature is disabled if sync is disabled, the - * #GstBaseSinkClass.get_times() method does not return a valid start time or - * max-lateness is set to -1 (the default). - * Subclasses can use gst_base_sink_set_max_lateness() to configure the - * max-lateness value. - * - * The #GstBaseSink:qos property will enable the quality-of-service features of - * the basesink which gather statistics about the real-time performance of the - * clock synchronisation. For each buffer received in the sink, statistics are - * gathered and a QOS event is sent upstream with these numbers. This - * information can then be used by upstream elements to reduce their processing - * rate, for example. - * - * The #GstBaseSink:async property can be used to instruct the sink to never - * perform an ASYNC state change. This feature is mostly usable when dealing - * with non-synchronized streams or sparse streams. - */ -public class BaseSink : Element -{ - /** the main Gtk struct */ - protected GstBaseSink* gstBaseSink; - - /** Get the main Gtk struct */ - public GstBaseSink* getBaseSinkStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBaseSink; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstBaseSink; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBaseSink* gstBaseSink, bool ownedRef = false) - { - this.gstBaseSink = gstBaseSink; - super(cast(GstElement*)gstBaseSink, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_base_sink_get_type(); - } - - /** - * If the @sink spawns its own thread for pulling buffers from upstream it - * should call this method after it has pulled a buffer. If the element needed - * to preroll, this function will perform the preroll and will then block - * until the element state is changed. - * - * This function should be called with the PREROLL_LOCK held. - * - * Params: - * obj = the mini object that caused the preroll - * - * Returns: %GST_FLOW_OK if the preroll completed and processing can - * continue. Any other return value should be returned from the render vmethod. - */ - public GstFlowReturn doPreroll(MiniObject obj) - { - return gst_base_sink_do_preroll(gstBaseSink, (obj is null) ? null : obj.getMiniObjectStruct()); - } - - /** - * Get the number of bytes that the sink will pull when it is operating in pull - * mode. - * - * Returns: the number of bytes @sink will pull in pull mode. - */ - public uint getBlocksize() - { - return gst_base_sink_get_blocksize(gstBaseSink); - } - - /** - * Checks if @sink is currently configured to drop buffers which are outside - * the current segment - * - * Returns: %TRUE if the sink is configured to drop buffers outside the - * current segment. - * - * Since: 1.12 - */ - public bool getDropOutOfSegment() - { - return gst_base_sink_get_drop_out_of_segment(gstBaseSink) != 0; - } - - /** - * Get the last sample that arrived in the sink and was used for preroll or for - * rendering. This property can be used to generate thumbnails. - * - * The #GstCaps on the sample can be used to determine the type of the buffer. - * - * Free-function: gst_sample_unref - * - * Returns: a #GstSample. gst_sample_unref() after - * usage. This function returns %NULL when no buffer has arrived in the - * sink yet or when the sink is not in PAUSED or PLAYING. - */ - public Sample getLastSample() - { - auto __p = gst_base_sink_get_last_sample(gstBaseSink); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Sample)(cast(GstSample*) __p, true); - } - - /** - * Get the currently configured latency. - * - * Returns: The configured latency. - */ - public GstClockTime getLatency() - { - return gst_base_sink_get_latency(gstBaseSink); - } - - /** - * Get the maximum amount of bits per second that the sink will render. - * - * Returns: the maximum number of bits per second @sink will render. - * - * Since: 1.2 - */ - public ulong getMaxBitrate() - { - return gst_base_sink_get_max_bitrate(gstBaseSink); - } - - /** - * Gets the max lateness value. See gst_base_sink_set_max_lateness() for - * more details. - * - * Returns: The maximum time in nanoseconds that a buffer can be late - * before it is dropped and not rendered. A value of -1 means an - * unlimited time. - */ - public long getMaxLateness() - { - return gst_base_sink_get_max_lateness(gstBaseSink); - } - - /** - * Get the processing deadline of @sink. see - * gst_base_sink_set_processing_deadline() for more information about - * the processing deadline. - * - * Returns: the processing deadline - * - * Since: 1.16 - */ - public GstClockTime getProcessingDeadline() - { - return gst_base_sink_get_processing_deadline(gstBaseSink); - } - - /** - * Get the render delay of @sink. see gst_base_sink_set_render_delay() for more - * information about the render delay. - * - * Returns: the render delay of @sink. - */ - public GstClockTime getRenderDelay() - { - return gst_base_sink_get_render_delay(gstBaseSink); - } - - /** - * Return various #GstBaseSink statistics. This function returns a #GstStructure - * with name `application/x-gst-base-sink-stats` with the following fields: - * - * - "average-rate" G_TYPE_DOUBLE average frame rate - * - "dropped" G_TYPE_UINT64 Number of dropped frames - * - "rendered" G_TYPE_UINT64 Number of rendered frames - * - * Returns: pointer to #GstStructure - * - * Since: 1.18 - */ - public Structure getStats() - { - auto __p = gst_base_sink_get_stats(gstBaseSink); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p, true); - } - - /** - * Checks if @sink is currently configured to synchronize against the - * clock. - * - * Returns: %TRUE if the sink is configured to synchronize against the clock. - */ - public bool getSync() - { - return gst_base_sink_get_sync(gstBaseSink) != 0; - } - - /** - * Get the time that will be inserted between frames to control the - * maximum buffers per second. - * - * Returns: the number of nanoseconds @sink will put between frames. - */ - public ulong getThrottleTime() - { - return gst_base_sink_get_throttle_time(gstBaseSink); - } - - /** - * Get the synchronisation offset of @sink. - * - * Returns: The synchronisation offset. - */ - public GstClockTimeDiff getTsOffset() - { - return gst_base_sink_get_ts_offset(gstBaseSink); - } - - /** - * Checks if @sink is currently configured to perform asynchronous state - * changes to PAUSED. - * - * Returns: %TRUE if the sink is configured to perform asynchronous state - * changes. - */ - public bool isAsyncEnabled() - { - return gst_base_sink_is_async_enabled(gstBaseSink) != 0; - } - - /** - * Checks if @sink is currently configured to store the last received sample in - * the last-sample property. - * - * Returns: %TRUE if the sink is configured to store the last received sample. - */ - public bool isLastSampleEnabled() - { - return gst_base_sink_is_last_sample_enabled(gstBaseSink) != 0; - } - - /** - * Checks if @sink is currently configured to send Quality-of-Service events - * upstream. - * - * Returns: %TRUE if the sink is configured to perform Quality-of-Service. - */ - public bool isQosEnabled() - { - return gst_base_sink_is_qos_enabled(gstBaseSink) != 0; - } - - /** - * Query the sink for the latency parameters. The latency will be queried from - * the upstream elements. @live will be %TRUE if @sink is configured to - * synchronize against the clock. @upstream_live will be %TRUE if an upstream - * element is live. - * - * If both @live and @upstream_live are %TRUE, the sink will want to compensate - * for the latency introduced by the upstream elements by setting the - * @min_latency to a strictly positive value. - * - * This function is mostly used by subclasses. - * - * Params: - * live = if the sink is live - * upstreamLive = if an upstream element is live - * minLatency = the min latency of the upstream elements - * maxLatency = the max latency of the upstream elements - * - * Returns: %TRUE if the query succeeded. - */ - public bool queryLatency(out bool live, out bool upstreamLive, out GstClockTime minLatency, out GstClockTime maxLatency) - { - int outlive; - int outupstreamLive; - - auto __p = gst_base_sink_query_latency(gstBaseSink, &outlive, &outupstreamLive, &minLatency, &maxLatency) != 0; - - live = (outlive == 1); - upstreamLive = (outupstreamLive == 1); - - return __p; - } - - /** - * Configures @sink to perform all state changes asynchronously. When async is - * disabled, the sink will immediately go to PAUSED instead of waiting for a - * preroll buffer. This feature is useful if the sink does not synchronize - * against the clock or when it is dealing with sparse streams. - * - * Params: - * enabled = the new async value. - */ - public void setAsyncEnabled(bool enabled) - { - gst_base_sink_set_async_enabled(gstBaseSink, enabled); - } - - /** - * Set the number of bytes that the sink will pull when it is operating in pull - * mode. - * - * Params: - * blocksize = the blocksize in bytes - */ - public void setBlocksize(uint blocksize) - { - gst_base_sink_set_blocksize(gstBaseSink, blocksize); - } - - /** - * Configure @sink to drop buffers which are outside the current segment - * - * Params: - * dropOutOfSegment = drop buffers outside the segment - * - * Since: 1.12 - */ - public void setDropOutOfSegment(bool dropOutOfSegment) - { - gst_base_sink_set_drop_out_of_segment(gstBaseSink, dropOutOfSegment); - } - - /** - * Configures @sink to store the last received sample in the last-sample - * property. - * - * Params: - * enabled = the new enable-last-sample value. - */ - public void setLastSampleEnabled(bool enabled) - { - gst_base_sink_set_last_sample_enabled(gstBaseSink, enabled); - } - - /** - * Set the maximum amount of bits per second that the sink will render. - * - * Params: - * maxBitrate = the max_bitrate in bits per second - * - * Since: 1.2 - */ - public void setMaxBitrate(ulong maxBitrate) - { - gst_base_sink_set_max_bitrate(gstBaseSink, maxBitrate); - } - - /** - * Sets the new max lateness value to @max_lateness. This value is - * used to decide if a buffer should be dropped or not based on the - * buffer timestamp and the current clock time. A value of -1 means - * an unlimited time. - * - * Params: - * maxLateness = the new max lateness value. - */ - public void setMaxLateness(long maxLateness) - { - gst_base_sink_set_max_lateness(gstBaseSink, maxLateness); - } - - /** - * Maximum amount of time (in nanoseconds) that the pipeline can take - * for processing the buffer. This is added to the latency of live - * pipelines. - * - * This function is usually called by subclasses. - * - * Params: - * processingDeadline = the new processing deadline in nanoseconds. - * - * Since: 1.16 - */ - public void setProcessingDeadline(GstClockTime processingDeadline) - { - gst_base_sink_set_processing_deadline(gstBaseSink, processingDeadline); - } - - /** - * Configures @sink to send Quality-of-Service events upstream. - * - * Params: - * enabled = the new qos value. - */ - public void setQosEnabled(bool enabled) - { - gst_base_sink_set_qos_enabled(gstBaseSink, enabled); - } - - /** - * Set the render delay in @sink to @delay. The render delay is the time - * between actual rendering of a buffer and its synchronisation time. Some - * devices might delay media rendering which can be compensated for with this - * function. - * - * After calling this function, this sink will report additional latency and - * other sinks will adjust their latency to delay the rendering of their media. - * - * This function is usually called by subclasses. - * - * Params: - * delay = the new delay - */ - public void setRenderDelay(GstClockTime delay) - { - gst_base_sink_set_render_delay(gstBaseSink, delay); - } - - /** - * Configures @sink to synchronize on the clock or not. When - * @sync is %FALSE, incoming samples will be played as fast as - * possible. If @sync is %TRUE, the timestamps of the incoming - * buffers will be used to schedule the exact render time of its - * contents. - * - * Params: - * sync = the new sync value. - */ - public void setSync(bool sync) - { - gst_base_sink_set_sync(gstBaseSink, sync); - } - - /** - * Set the time that will be inserted between rendered buffers. This - * can be used to control the maximum buffers per second that the sink - * will render. - * - * Params: - * throttle = the throttle time in nanoseconds - */ - public void setThrottleTime(ulong throttle) - { - gst_base_sink_set_throttle_time(gstBaseSink, throttle); - } - - /** - * Adjust the synchronisation of @sink with @offset. A negative value will - * render buffers earlier than their timestamp. A positive value will delay - * rendering. This function can be used to fix playback of badly timestamped - * buffers. - * - * Params: - * offset = the new offset - */ - public void setTsOffset(GstClockTimeDiff offset) - { - gst_base_sink_set_ts_offset(gstBaseSink, offset); - } - - /** - * This function will wait for preroll to complete and will then block until @time - * is reached. It is usually called by subclasses that use their own internal - * synchronisation but want to let some synchronization (like EOS) be handled - * by the base class. - * - * This function should only be called with the PREROLL_LOCK held (like when - * receiving an EOS event in the ::event vmethod or when handling buffers in - * ::render). - * - * The @time argument should be the running_time of when the timeout should happen - * and will be adjusted with any latency and offset configured in the sink. - * - * Params: - * time = the running_time to be reached - * jitter = the jitter to be filled with time diff, or %NULL - * - * Returns: #GstFlowReturn - */ - public GstFlowReturn wait(GstClockTime time, out GstClockTimeDiff jitter) - { - return gst_base_sink_wait(gstBaseSink, time, &jitter); - } - - /** - * This function will block until @time is reached. It is usually called by - * subclasses that use their own internal synchronisation. - * - * If @time is not valid, no synchronisation is done and %GST_CLOCK_BADTIME is - * returned. Likewise, if synchronisation is disabled in the element or there - * is no clock, no synchronisation is done and %GST_CLOCK_BADTIME is returned. - * - * This function should only be called with the PREROLL_LOCK held, like when - * receiving an EOS event in the #GstBaseSinkClass.event() vmethod or when - * receiving a buffer in - * the #GstBaseSinkClass.render() vmethod. - * - * The @time argument should be the running_time of when this method should - * return and is not adjusted with any latency or offset configured in the - * sink. - * - * Params: - * time = the running_time to be reached - * jitter = the jitter to be filled with time diff, or %NULL - * - * Returns: #GstClockReturn - */ - public GstClockReturn waitClock(GstClockTime time, out GstClockTimeDiff jitter) - { - return gst_base_sink_wait_clock(gstBaseSink, time, &jitter); - } - - /** - * If the #GstBaseSinkClass.render() method performs its own synchronisation - * against the clock it must unblock when going from PLAYING to the PAUSED state - * and call this method before continuing to render the remaining data. - * - * If the #GstBaseSinkClass.render() method can block on something else than - * the clock, it must also be ready to unblock immediately on - * the #GstBaseSinkClass.unlock() method and cause the - * #GstBaseSinkClass.render() method to immediately call this function. - * In this case, the subclass must be prepared to continue rendering where it - * left off if this function returns %GST_FLOW_OK. - * - * This function will block until a state change to PLAYING happens (in which - * case this function returns %GST_FLOW_OK) or the processing must be stopped due - * to a state change to READY or a FLUSH event (in which case this function - * returns %GST_FLOW_FLUSHING). - * - * This function should only be called with the PREROLL_LOCK held, like in the - * render function. - * - * Returns: %GST_FLOW_OK if the preroll completed and processing can - * continue. Any other return value should be returned from the render vmethod. - */ - public GstFlowReturn waitPreroll() - { - return gst_base_sink_wait_preroll(gstBaseSink); - } -} diff --git a/generated/gstreamer/gst/base/BaseSrc.d b/generated/gstreamer/gst/base/BaseSrc.d deleted file mode 100644 index d254c7b1b..000000000 --- a/generated/gstreamer/gst/base/BaseSrc.d +++ /dev/null @@ -1,547 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.BaseSrc; - -private import glib.MemorySlice; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.AllocationParams; -private import gstreamer.Allocator; -private import gstreamer.BufferList; -private import gstreamer.BufferPool; -private import gstreamer.Caps; -private import gstreamer.Element; -private import gstreamer.Segment; - - -/** - * This is a generic base class for source elements. The following - * types of sources are supported: - * - * * random access sources like files - * * seekable sources - * * live sources - * - * The source can be configured to operate in any #GstFormat with the - * gst_base_src_set_format() method. The currently set format determines - * the format of the internal #GstSegment and any %GST_EVENT_SEGMENT - * events. The default format for #GstBaseSrc is %GST_FORMAT_BYTES. - * - * #GstBaseSrc always supports push mode scheduling. If the following - * conditions are met, it also supports pull mode scheduling: - * - * * The format is set to %GST_FORMAT_BYTES (default). - * * #GstBaseSrcClass.is_seekable() returns %TRUE. - * - * If all the conditions are met for operating in pull mode, #GstBaseSrc is - * automatically seekable in push mode as well. The following conditions must - * be met to make the element seekable in push mode when the format is not - * %GST_FORMAT_BYTES: - * - * * #GstBaseSrcClass.is_seekable() returns %TRUE. - * * #GstBaseSrcClass.query() can convert all supported seek formats to the - * internal format as set with gst_base_src_set_format(). - * * #GstBaseSrcClass.do_seek() is implemented, performs the seek and returns - * %TRUE. - * - * When the element does not meet the requirements to operate in pull mode, the - * offset and length in the #GstBaseSrcClass.create() method should be ignored. - * It is recommended to subclass #GstPushSrc instead, in this situation. If the - * element can operate in pull mode but only with specific offsets and - * lengths, it is allowed to generate an error when the wrong values are passed - * to the #GstBaseSrcClass.create() function. - * - * #GstBaseSrc has support for live sources. Live sources are sources that when - * paused discard data, such as audio or video capture devices. A typical live - * source also produces data at a fixed rate and thus provides a clock to publish - * this rate. - * Use gst_base_src_set_live() to activate the live source mode. - * - * A live source does not produce data in the PAUSED state. This means that the - * #GstBaseSrcClass.create() method will not be called in PAUSED but only in - * PLAYING. To signal the pipeline that the element will not produce data, the - * return value from the READY to PAUSED state will be - * %GST_STATE_CHANGE_NO_PREROLL. - * - * A typical live source will timestamp the buffers it creates with the - * current running time of the pipeline. This is one reason why a live source - * can only produce data in the PLAYING state, when the clock is actually - * distributed and running. - * - * Live sources that synchronize and block on the clock (an audio source, for - * example) can use gst_base_src_wait_playing() when the - * #GstBaseSrcClass.create() function was interrupted by a state change to - * PAUSED. - * - * The #GstBaseSrcClass.get_times() method can be used to implement pseudo-live - * sources. It only makes sense to implement the #GstBaseSrcClass.get_times() - * function if the source is a live source. The #GstBaseSrcClass.get_times() - * function should return timestamps starting from 0, as if it were a non-live - * source. The base class will make sure that the timestamps are transformed - * into the current running_time. The base source will then wait for the - * calculated running_time before pushing out the buffer. - * - * For live sources, the base class will by default report a latency of 0. - * For pseudo live sources, the base class will by default measure the difference - * between the first buffer timestamp and the start time of get_times and will - * report this value as the latency. - * Subclasses should override the query function when this behaviour is not - * acceptable. - * - * There is only support in #GstBaseSrc for exactly one source pad, which - * should be named "src". A source implementation (subclass of #GstBaseSrc) - * should install a pad template in its class_init function, like so: - * |[ - * static void - * my_element_class_init (GstMyElementClass *klass) - * { - * GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass); - * // srctemplate should be a #GstStaticPadTemplate with direction - * // %GST_PAD_SRC and name "src" - * gst_element_class_add_static_pad_template (gstelement_class, &srctemplate); - * - * gst_element_class_set_static_metadata (gstelement_class, - * "Source name", - * "Source", - * "My Source element", - * "The author "); - * } - * ]| - * - * ## Controlled shutdown of live sources in applications - * - * Applications that record from a live source may want to stop recording - * in a controlled way, so that the recording is stopped, but the data - * already in the pipeline is processed to the end (remember that many live - * sources would go on recording forever otherwise). For that to happen the - * application needs to make the source stop recording and send an EOS - * event down the pipeline. The application would then wait for an - * EOS message posted on the pipeline's bus to know when all data has - * been processed and the pipeline can safely be stopped. - * - * An application may send an EOS event to a source element to make it - * perform the EOS logic (send EOS event downstream or post a - * %GST_MESSAGE_SEGMENT_DONE on the bus). This can typically be done - * with the gst_element_send_event() function on the element or its parent bin. - * - * After the EOS has been sent to the element, the application should wait for - * an EOS message to be posted on the pipeline's bus. Once this EOS message is - * received, it may safely shut down the entire pipeline. - */ -public class BaseSrc : Element -{ - /** the main Gtk struct */ - protected GstBaseSrc* gstBaseSrc; - - /** Get the main Gtk struct */ - public GstBaseSrc* getBaseSrcStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBaseSrc; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstBaseSrc; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBaseSrc* gstBaseSrc, bool ownedRef = false) - { - this.gstBaseSrc = gstBaseSrc; - super(cast(GstElement*)gstBaseSrc, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_base_src_get_type(); - } - - /** - * Lets #GstBaseSrc sub-classes to know the memory @allocator - * used by the base class and its @params. - * - * Unref the @allocator after usage. - * - * Params: - * allocator = the #GstAllocator - * used - * params = the #GstAllocationParams of @allocator - */ - public void getAllocator(out Allocator allocator, out AllocationParams params) - { - GstAllocator* outallocator = null; - GstAllocationParams* outparams = sliceNew!GstAllocationParams(); - - gst_base_src_get_allocator(gstBaseSrc, &outallocator, outparams); - - allocator = ObjectG.getDObject!(Allocator)(outallocator); - params = ObjectG.getDObject!(AllocationParams)(outparams, true); - } - - /** - * Get the number of bytes that @src will push out with each buffer. - * - * Returns: the number of bytes pushed with each buffer. - */ - public uint getBlocksize() - { - return gst_base_src_get_blocksize(gstBaseSrc); - } - - /** - * Returns: the instance of the #GstBufferPool used - * by the src; unref it after usage. - */ - public BufferPool getBufferPool() - { - auto __p = gst_base_src_get_buffer_pool(gstBaseSrc); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferPool)(cast(GstBufferPool*) __p, true); - } - - /** - * Query if @src timestamps outgoing buffers based on the current running_time. - * - * Returns: %TRUE if the base class will automatically timestamp outgoing buffers. - */ - public bool getDoTimestamp() - { - return gst_base_src_get_do_timestamp(gstBaseSrc) != 0; - } - - /** - * Get the current async behaviour of @src. See also gst_base_src_set_async(). - * - * Returns: %TRUE if @src is operating in async mode. - */ - public bool isAsync() - { - return gst_base_src_is_async(gstBaseSrc) != 0; - } - - /** - * Check if an element is in live mode. - * - * Returns: %TRUE if element is in live mode. - */ - public bool isLive() - { - return gst_base_src_is_live(gstBaseSrc) != 0; - } - - /** - * Negotiates src pad caps with downstream elements. - * Unmarks GST_PAD_FLAG_NEED_RECONFIGURE in any case. But marks it again - * if #GstBaseSrcClass.negotiate() fails. - * - * Do not call this in the #GstBaseSrcClass.fill() vmethod. Call this in - * #GstBaseSrcClass.create() or in #GstBaseSrcClass.alloc(), _before_ any - * buffer is allocated. - * - * Returns: %TRUE if the negotiation succeeded, else %FALSE. - * - * Since: 1.18 - */ - public bool negotiate() - { - return gst_base_src_negotiate(gstBaseSrc) != 0; - } - - /** - * Prepare a new seamless segment for emission downstream. This function must - * only be called by derived sub-classes, and only from the #GstBaseSrcClass::create function, - * as the stream-lock needs to be held. - * - * The format for the new segment will be the current format of the source, as - * configured with gst_base_src_set_format() - * - * Deprecated: Use gst_base_src_new_segment() - * - * Params: - * start = The new start value for the segment - * stop = Stop value for the new segment - * time = The new time value for the start of the new segment - * - * Returns: %TRUE if preparation of the seamless segment succeeded. - */ - public bool newSeamlessSegment(long start, long stop, long time) - { - return gst_base_src_new_seamless_segment(gstBaseSrc, start, stop, time) != 0; - } - - /** - * Prepare a new segment for emission downstream. This function must - * only be called by derived sub-classes, and only from the #GstBaseSrcClass::create function, - * as the stream-lock needs to be held. - * - * The format for the @segment must be identical with the current format - * of the source, as configured with gst_base_src_set_format(). - * - * The format of @src must not be %GST_FORMAT_UNDEFINED and the format - * should be configured via gst_base_src_set_format() before calling this method. - * - * Params: - * segment = a pointer to a #GstSegment - * - * Returns: %TRUE if preparation of new segment succeeded. - * - * Since: 1.18 - */ - public bool newSegment(Segment segment) - { - return gst_base_src_new_segment(gstBaseSrc, (segment is null) ? null : segment.getSegmentStruct()) != 0; - } - - /** - * Query the source for the latency parameters. @live will be %TRUE when @src is - * configured as a live source. @min_latency and @max_latency will be set - * to the difference between the running time and the timestamp of the first - * buffer. - * - * This function is mostly used by subclasses. - * - * Params: - * live = if the source is live - * minLatency = the min latency of the source - * maxLatency = the max latency of the source - * - * Returns: %TRUE if the query succeeded. - */ - public bool queryLatency(out bool live, out GstClockTime minLatency, out GstClockTime maxLatency) - { - int outlive; - - auto __p = gst_base_src_query_latency(gstBaseSrc, &outlive, &minLatency, &maxLatency) != 0; - - live = (outlive == 1); - - return __p; - } - - /** - * Configure async behaviour in @src, no state change will block. The open, - * close, start, stop, play and pause virtual methods will be executed in a - * different thread and are thus allowed to perform blocking operations. Any - * blocking operation should be unblocked with the unlock vmethod. - * - * Params: - * async = new async mode - */ - public void setAsync(bool async) - { - gst_base_src_set_async(gstBaseSrc, async); - } - - /** - * If @automatic_eos is %TRUE, @src will automatically go EOS if a buffer - * after the total size is returned. By default this is %TRUE but sources - * that can't return an authoritative size and only know that they're EOS - * when trying to read more should set this to %FALSE. - * - * When @src operates in %GST_FORMAT_TIME, #GstBaseSrc will send an EOS - * when a buffer outside of the currently configured segment is pushed if - * @automatic_eos is %TRUE. Since 1.16, if @automatic_eos is %FALSE an - * EOS will be pushed only when the #GstBaseSrcClass.create() implementation - * returns %GST_FLOW_EOS. - * - * Params: - * automaticEos = automatic eos - * - * Since: 1.4 - */ - public void setAutomaticEos(bool automaticEos) - { - gst_base_src_set_automatic_eos(gstBaseSrc, automaticEos); - } - - /** - * Set the number of bytes that @src will push out with each buffer. When - * @blocksize is set to -1, a default length will be used. - * - * Params: - * blocksize = the new blocksize in bytes - */ - public void setBlocksize(uint blocksize) - { - gst_base_src_set_blocksize(gstBaseSrc, blocksize); - } - - /** - * Set new caps on the basesrc source pad. - * - * Params: - * caps = a #GstCaps - * - * Returns: %TRUE if the caps could be set - */ - public bool setCaps(Caps caps) - { - return gst_base_src_set_caps(gstBaseSrc, (caps is null) ? null : caps.getCapsStruct()) != 0; - } - - /** - * Configure @src to automatically timestamp outgoing buffers based on the - * current running_time of the pipeline. This property is mostly useful for live - * sources. - * - * Params: - * timestamp = enable or disable timestamping - */ - public void setDoTimestamp(bool timestamp) - { - gst_base_src_set_do_timestamp(gstBaseSrc, timestamp); - } - - /** - * If not @dynamic, size is only updated when needed, such as when trying to - * read past current tracked size. Otherwise, size is checked for upon each - * read. - * - * Params: - * dynamic = new dynamic size mode - */ - public void setDynamicSize(bool dynamic) - { - gst_base_src_set_dynamic_size(gstBaseSrc, dynamic); - } - - /** - * Sets the default format of the source. This will be the format used - * for sending SEGMENT events and for performing seeks. - * - * If a format of GST_FORMAT_BYTES is set, the element will be able to - * operate in pull mode if the #GstBaseSrcClass.is_seekable() returns %TRUE. - * - * This function must only be called in states < %GST_STATE_PAUSED. - * - * Params: - * format = the format to use - */ - public void setFormat(GstFormat format) - { - gst_base_src_set_format(gstBaseSrc, format); - } - - /** - * If the element listens to a live source, @live should - * be set to %TRUE. - * - * A live source will not produce data in the PAUSED state and - * will therefore not be able to participate in the PREROLL phase - * of a pipeline. To signal this fact to the application and the - * pipeline, the state change return value of the live source will - * be GST_STATE_CHANGE_NO_PREROLL. - * - * Params: - * live = new live-mode - */ - public void setLive(bool live) - { - gst_base_src_set_live(gstBaseSrc, live); - } - - /** - * Complete an asynchronous start operation. When the subclass overrides the - * start method, it should call gst_base_src_start_complete() when the start - * operation completes either from the same thread or from an asynchronous - * helper thread. - * - * Params: - * ret = a #GstFlowReturn - */ - public void startComplete(GstFlowReturn ret) - { - gst_base_src_start_complete(gstBaseSrc, ret); - } - - /** - * Wait until the start operation completes. - * - * Returns: a #GstFlowReturn. - */ - public GstFlowReturn startWait() - { - return gst_base_src_start_wait(gstBaseSrc); - } - - /** - * Subclasses can call this from their create virtual method implementation - * to submit a buffer list to be pushed out later. This is useful in - * cases where the create function wants to produce multiple buffers to be - * pushed out in one go in form of a #GstBufferList, which can reduce overhead - * drastically, especially for packetised inputs (for data streams where - * the packetisation/chunking is not important it is usually more efficient - * to return larger buffers instead). - * - * Subclasses that use this function from their create function must return - * %GST_FLOW_OK and no buffer from their create virtual method implementation. - * If a buffer is returned after a buffer list has also been submitted via this - * function the behaviour is undefined. - * - * Subclasses must only call this function once per create function call and - * subclasses must only call this function when the source operates in push - * mode. - * - * Params: - * bufferList = a #GstBufferList - * - * Since: 1.14 - */ - public void submitBufferList(BufferList bufferList) - { - gst_base_src_submit_buffer_list(gstBaseSrc, (bufferList is null) ? null : bufferList.getBufferListStruct()); - } - - /** - * If the #GstBaseSrcClass.create() method performs its own synchronisation - * against the clock it must unblock when going from PLAYING to the PAUSED state - * and call this method before continuing to produce the remaining data. - * - * This function will block until a state change to PLAYING happens (in which - * case this function returns %GST_FLOW_OK) or the processing must be stopped due - * to a state change to READY or a FLUSH event (in which case this function - * returns %GST_FLOW_FLUSHING). - * - * Returns: %GST_FLOW_OK if @src is PLAYING and processing can - * continue. Any other return value should be returned from the create vmethod. - */ - public GstFlowReturn waitPlaying() - { - return gst_base_src_wait_playing(gstBaseSrc); - } -} diff --git a/generated/gstreamer/gst/base/BaseTransform.d b/generated/gstreamer/gst/base/BaseTransform.d deleted file mode 100644 index aac6e6955..000000000 --- a/generated/gstreamer/gst/base/BaseTransform.d +++ /dev/null @@ -1,424 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.BaseTransform; - -private import glib.MemorySlice; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.AllocationParams; -private import gstreamer.Allocator; -private import gstreamer.BufferPool; -private import gstreamer.Caps; -private import gstreamer.Element; - - -/** - * This base class is for filter elements that process data. Elements - * that are suitable for implementation using #GstBaseTransform are ones - * where the size and caps of the output is known entirely from the input - * caps and buffer sizes. These include elements that directly transform - * one buffer into another, modify the contents of a buffer in-place, as - * well as elements that collate multiple input buffers into one output buffer, - * or that expand one input buffer into multiple output buffers. See below - * for more concrete use cases. - * - * It provides for: - * - * * one sinkpad and one srcpad - * * Possible formats on sink and source pad implemented - * with custom transform_caps function. By default uses - * same format on sink and source. - * - * * Handles state changes - * * Does flushing - * * Push mode - * * Pull mode if the sub-class transform can operate on arbitrary data - * - * # Use Cases - * - * ## Passthrough mode - * - * * Element has no interest in modifying the buffer. It may want to inspect it, - * in which case the element should have a transform_ip function. If there - * is no transform_ip function in passthrough mode, the buffer is pushed - * intact. - * - * * The #GstBaseTransformClass.passthrough_on_same_caps variable - * will automatically set/unset passthrough based on whether the - * element negotiates the same caps on both pads. - * - * * #GstBaseTransformClass.passthrough_on_same_caps on an element that - * doesn't implement a transform_caps function is useful for elements that - * only inspect data (such as level) - * - * * Example elements - * - * * Level - * * Videoscale, audioconvert, videoconvert, audioresample in certain modes. - * - * ## Modifications in-place - input buffer and output buffer are the same thing. - * - * * The element must implement a transform_ip function. - * * Output buffer size must <= input buffer size - * * If the always_in_place flag is set, non-writable buffers will be copied - * and passed to the transform_ip function, otherwise a new buffer will be - * created and the transform function called. - * - * * Incoming writable buffers will be passed to the transform_ip function - * immediately. - * * only implementing transform_ip and not transform implies always_in_place = %TRUE - * - * * Example elements: - * * Volume - * * Audioconvert in certain modes (signed/unsigned conversion) - * * videoconvert in certain modes (endianness swapping) - * - * ## Modifications only to the caps/metadata of a buffer - * - * * The element does not require writable data, but non-writable buffers - * should be subbuffered so that the meta-information can be replaced. - * - * * Elements wishing to operate in this mode should replace the - * prepare_output_buffer method to create subbuffers of the input buffer - * and set always_in_place to %TRUE - * - * * Example elements - * * Capsfilter when setting caps on outgoing buffers that have - * none. - * * identity when it is going to re-timestamp buffers by - * datarate. - * - * ## Normal mode - * * always_in_place flag is not set, or there is no transform_ip function - * * Element will receive an input buffer and output buffer to operate on. - * * Output buffer is allocated by calling the prepare_output_buffer function. - * * Example elements: - * * Videoscale, videoconvert, audioconvert when doing - * scaling/conversions - * - * ## Special output buffer allocations - * * Elements which need to do special allocation of their output buffers - * beyond allocating output buffers via the negotiated allocator or - * buffer pool should implement the prepare_output_buffer method. - * - * * Example elements: - * * efence - * - * # Sub-class settable flags on GstBaseTransform - * - * * passthrough - * - * * Implies that in the current configuration, the sub-class is not interested in modifying the buffers. - * * Elements which are always in passthrough mode whenever the same caps has been negotiated on both pads can set the class variable passthrough_on_same_caps to have this behaviour automatically. - * - * * always_in_place - * * Determines whether a non-writable buffer will be copied before passing - * to the transform_ip function. - * - * * Implied %TRUE if no transform function is implemented. - * * Implied %FALSE if ONLY transform function is implemented. - */ -public class BaseTransform : Element -{ - /** the main Gtk struct */ - protected GstBaseTransform* gstBaseTransform; - - /** Get the main Gtk struct */ - public GstBaseTransform* getBaseTransformStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBaseTransform; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstBaseTransform; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBaseTransform* gstBaseTransform, bool ownedRef = false) - { - this.gstBaseTransform = gstBaseTransform; - super(cast(GstElement*)gstBaseTransform, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_base_transform_get_type(); - } - - /** - * Lets #GstBaseTransform sub-classes know the memory @allocator - * used by the base class and its @params. - * - * Unref the @allocator after use. - * - * Params: - * allocator = the #GstAllocator - * used - * params = the #GstAllocationParams of @allocator - */ - public void getAllocator(out Allocator allocator, out AllocationParams params) - { - GstAllocator* outallocator = null; - GstAllocationParams* outparams = sliceNew!GstAllocationParams(); - - gst_base_transform_get_allocator(gstBaseTransform, &outallocator, outparams); - - allocator = ObjectG.getDObject!(Allocator)(outallocator); - params = ObjectG.getDObject!(AllocationParams)(outparams, true); - } - - /** - * Returns: the instance of the #GstBufferPool used - * by @trans; free it after use - */ - public BufferPool getBufferPool() - { - auto __p = gst_base_transform_get_buffer_pool(gstBaseTransform); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferPool)(cast(GstBufferPool*) __p, true); - } - - /** - * See if @trans is configured as a in_place transform. - * - * Returns: %TRUE if the transform is configured in in_place mode. - * - * MT safe. - */ - public bool isInPlace() - { - return gst_base_transform_is_in_place(gstBaseTransform) != 0; - } - - /** - * See if @trans is configured as a passthrough transform. - * - * Returns: %TRUE if the transform is configured in passthrough mode. - * - * MT safe. - */ - public bool isPassthrough() - { - return gst_base_transform_is_passthrough(gstBaseTransform) != 0; - } - - /** - * Queries if the transform will handle QoS. - * - * Returns: %TRUE if QoS is enabled. - * - * MT safe. - */ - public bool isQosEnabled() - { - return gst_base_transform_is_qos_enabled(gstBaseTransform) != 0; - } - - /** - * Negotiates src pad caps with downstream elements if the source pad is - * marked as needing reconfiguring. Unmarks GST_PAD_FLAG_NEED_RECONFIGURE in - * any case. But marks it again if negotiation fails. - * - * Do not call this in the #GstBaseTransformClass.transform() or - * #GstBaseTransformClass.transform_ip() vmethod. Call this in - * #GstBaseTransformClass.submit_input_buffer(), - * #GstBaseTransformClass.prepare_output_buffer() or in - * #GstBaseTransformClass.generate_output() _before_ any output buffer is - * allocated. - * - * It will be default be called when handling an ALLOCATION query or at the - * very beginning of the default #GstBaseTransformClass.submit_input_buffer() - * implementation. - * - * Returns: %TRUE if the negotiation succeeded, else %FALSE. - * - * Since: 1.18 - */ - public bool reconfigure() - { - return gst_base_transform_reconfigure(gstBaseTransform) != 0; - } - - /** - * Instructs @trans to request renegotiation upstream. This function is - * typically called after properties on the transform were set that - * influence the input format. - */ - public void reconfigureSink() - { - gst_base_transform_reconfigure_sink(gstBaseTransform); - } - - /** - * Instructs @trans to renegotiate a new downstream transform on the next - * buffer. This function is typically called after properties on the transform - * were set that influence the output format. - */ - public void reconfigureSrc() - { - gst_base_transform_reconfigure_src(gstBaseTransform); - } - - /** - * If @gap_aware is %FALSE (the default), output buffers will have the - * %GST_BUFFER_FLAG_GAP flag unset. - * - * If set to %TRUE, the element must handle output buffers with this flag set - * correctly, i.e. it can assume that the buffer contains neutral data but must - * unset the flag if the output is no neutral data. - * - * MT safe. - * - * Params: - * gapAware = New state - */ - public void setGapAware(bool gapAware) - { - gst_base_transform_set_gap_aware(gstBaseTransform, gapAware); - } - - /** - * Determines whether a non-writable buffer will be copied before passing - * to the transform_ip function. - * - * * Always %TRUE if no transform function is implemented. - * * Always %FALSE if ONLY transform function is implemented. - * - * MT safe. - * - * Params: - * inPlace = Boolean value indicating that we would like to operate - * on in_place buffers. - */ - public void setInPlace(bool inPlace) - { - gst_base_transform_set_in_place(gstBaseTransform, inPlace); - } - - /** - * Set passthrough mode for this filter by default. This is mostly - * useful for filters that do not care about negotiation. - * - * Always %TRUE for filters which don't implement either a transform - * or transform_ip or generate_output method. - * - * MT safe. - * - * Params: - * passthrough = boolean indicating passthrough mode. - */ - public void setPassthrough(bool passthrough) - { - gst_base_transform_set_passthrough(gstBaseTransform, passthrough); - } - - /** - * If @prefer_passthrough is %TRUE (the default), @trans will check and - * prefer passthrough caps from the list of caps returned by the - * transform_caps vmethod. - * - * If set to %FALSE, the element must order the caps returned from the - * transform_caps function in such a way that the preferred format is - * first in the list. This can be interesting for transforms that can do - * passthrough transforms but prefer to do something else, like a - * capsfilter. - * - * MT safe. - * - * Params: - * preferPassthrough = New state - * - * Since: 1.0.1 - */ - public void setPreferPassthrough(bool preferPassthrough) - { - gst_base_transform_set_prefer_passthrough(gstBaseTransform, preferPassthrough); - } - - /** - * Enable or disable QoS handling in the transform. - * - * MT safe. - * - * Params: - * enabled = new state - */ - public void setQosEnabled(bool enabled) - { - gst_base_transform_set_qos_enabled(gstBaseTransform, enabled); - } - - /** - * Set the QoS parameters in the transform. This function is called internally - * when a QOS event is received but subclasses can provide custom information - * when needed. - * - * MT safe. - * - * Params: - * proportion = the proportion - * diff = the diff against the clock - * timestamp = the timestamp of the buffer generating the QoS expressed in - * running_time. - */ - public void updateQos(double proportion, GstClockTimeDiff diff, GstClockTime timestamp) - { - gst_base_transform_update_qos(gstBaseTransform, proportion, diff, timestamp); - } - - /** - * Updates the srcpad caps and sends the caps downstream. This function - * can be used by subclasses when they have already negotiated their caps - * but found a change in them (or computed new information). This way, - * they can notify downstream about that change without losing any - * buffer. - * - * Params: - * updatedCaps = An updated version of the srcpad caps to be pushed - * downstream - * - * Returns: %TRUE if the caps could be sent downstream %FALSE otherwise - * - * Since: 1.6 - */ - public bool updateSrcCaps(Caps updatedCaps) - { - return gst_base_transform_update_src_caps(gstBaseTransform, (updatedCaps is null) ? null : updatedCaps.getCapsStruct()) != 0; - } -} diff --git a/generated/gstreamer/gst/base/BitReader.d b/generated/gstreamer/gst/base/BitReader.d deleted file mode 100644 index 659790b1e..000000000 --- a/generated/gstreamer/gst/base/BitReader.d +++ /dev/null @@ -1,300 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.BitReader; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gtkd.Loader; - - -/** - * #GstBitReader provides a bit reader that can read any number of bits - * from a memory buffer. It provides functions for reading any number of bits - * into 8, 16, 32 and 64 bit variables. - */ -public class BitReader -{ - /** the main Gtk struct */ - protected GstBitReader* gstBitReader; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstBitReader* getBitReaderStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBitReader; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstBitReader; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBitReader* gstBitReader, bool ownedRef = false) - { - this.gstBitReader = gstBitReader; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTBASE) && ownedRef ) - gst_bit_reader_free(gstBitReader); - } - - - /** - * Frees a #GstBitReader instance, which was previously allocated by - * gst_bit_reader_new(). - */ - public void free() - { - gst_bit_reader_free(gstBitReader); - ownedRef = false; - } - - /** - * Read @nbits bits into @val and update the current position. - * - * Params: - * val = Pointer to a #guint16 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getBitsUint16(out ushort val, uint nbits) - { - return gst_bit_reader_get_bits_uint16(gstBitReader, &val, nbits) != 0; - } - - /** - * Read @nbits bits into @val and update the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getBitsUint32(out uint val, uint nbits) - { - return gst_bit_reader_get_bits_uint32(gstBitReader, &val, nbits) != 0; - } - - /** - * Read @nbits bits into @val and update the current position. - * - * Params: - * val = Pointer to a #guint64 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getBitsUint64(out ulong val, uint nbits) - { - return gst_bit_reader_get_bits_uint64(gstBitReader, &val, nbits) != 0; - } - - /** - * Read @nbits bits into @val and update the current position. - * - * Params: - * val = Pointer to a #guint8 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getBitsUint8(out ubyte val, uint nbits) - { - return gst_bit_reader_get_bits_uint8(gstBitReader, &val, nbits) != 0; - } - - /** - * Returns the current position of a #GstBitReader instance in bits. - * - * Returns: The current position of @reader in bits. - */ - public uint getPos() - { - return gst_bit_reader_get_pos(gstBitReader); - } - - /** - * Returns the remaining number of bits of a #GstBitReader instance. - * - * Returns: The remaining number of bits of @reader instance. - */ - public uint getRemaining() - { - return gst_bit_reader_get_remaining(gstBitReader); - } - - /** - * Returns the total number of bits of a #GstBitReader instance. - * - * Returns: The total number of bits of @reader instance. - */ - public uint getSize() - { - return gst_bit_reader_get_size(gstBitReader); - } - - /** - * Initializes a #GstBitReader instance to read from @data. This function - * can be called on already initialized instances. - * - * Params: - * data = data from which the bit reader should read - */ - public void init(ubyte[] data) - { - gst_bit_reader_init(gstBitReader, data.ptr, cast(uint)data.length); - } - - /** - * Read @nbits bits into @val but keep the current position. - * - * Params: - * val = Pointer to a #guint16 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekBitsUint16(out ushort val, uint nbits) - { - return gst_bit_reader_peek_bits_uint16(gstBitReader, &val, nbits) != 0; - } - - /** - * Read @nbits bits into @val but keep the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekBitsUint32(out uint val, uint nbits) - { - return gst_bit_reader_peek_bits_uint32(gstBitReader, &val, nbits) != 0; - } - - /** - * Read @nbits bits into @val but keep the current position. - * - * Params: - * val = Pointer to a #guint64 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekBitsUint64(out ulong val, uint nbits) - { - return gst_bit_reader_peek_bits_uint64(gstBitReader, &val, nbits) != 0; - } - - /** - * Read @nbits bits into @val but keep the current position. - * - * Params: - * val = Pointer to a #guint8 to store the result - * nbits = number of bits to read - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekBitsUint8(out ubyte val, uint nbits) - { - return gst_bit_reader_peek_bits_uint8(gstBitReader, &val, nbits) != 0; - } - - /** - * Sets the new position of a #GstBitReader instance to @pos in bits. - * - * Params: - * pos = The new position in bits - * - * Returns: %TRUE if the position could be set successfully, %FALSE - * otherwise. - */ - public bool setPos(uint pos) - { - return gst_bit_reader_set_pos(gstBitReader, pos) != 0; - } - - /** - * Skips @nbits bits of the #GstBitReader instance. - * - * Params: - * nbits = the number of bits to skip - * - * Returns: %TRUE if @nbits bits could be skipped, %FALSE otherwise. - */ - public bool skip(uint nbits) - { - return gst_bit_reader_skip(gstBitReader, nbits) != 0; - } - - /** - * Skips until the next byte. - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool skipToByte() - { - return gst_bit_reader_skip_to_byte(gstBitReader) != 0; - } - - /** - * Create a new #GstBitReader instance, which will read from @data. - * - * Free-function: gst_bit_reader_free - * - * Params: - * data = Data from which the #GstBitReader - * should read - * - * Returns: a new #GstBitReader instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data) - { - auto __p = gst_bit_reader_new(data.ptr, cast(uint)data.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBitReader*) __p); - } -} diff --git a/generated/gstreamer/gst/base/BitWriter.d b/generated/gstreamer/gst/base/BitWriter.d deleted file mode 100644 index 30a65faef..000000000 --- a/generated/gstreamer/gst/base/BitWriter.d +++ /dev/null @@ -1,391 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.BitWriter; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Buffer; -private import gtkd.Loader; - - -/** - * #GstBitWriter provides a bit writer that can write any number of - * bits into a memory buffer. It provides functions for writing any - * number of bits into 8, 16, 32 and 64 bit variables. - * - * Since: 1.16 - */ -public class BitWriter -{ - /** the main Gtk struct */ - protected GstBitWriter* gstBitWriter; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstBitWriter* getBitWriterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBitWriter; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstBitWriter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBitWriter* gstBitWriter, bool ownedRef = false) - { - this.gstBitWriter = gstBitWriter; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTBASE) && ownedRef ) - gst_bit_writer_free(gstBitWriter); - } - - - /** - * Write trailing bit to align last byte of @data. @trailing_bit can - * only be 1 or 0. - * - * Params: - * trailingBit = trailing bits of last byte, 0 or 1 - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool alignBytes(ubyte trailingBit) - { - return gst_bit_writer_align_bytes(gstBitWriter, trailingBit) != 0; - } - - /** - * Frees @bitwriter and the allocated data inside. - */ - public void free() - { - gst_bit_writer_free(gstBitWriter); - ownedRef = false; - } - - /** - * Frees @bitwriter without destroying the internal data, which is - * returned as #GstBuffer. - * - * Free-function: gst_buffer_unref - * - * Returns: a new allocated #GstBuffer wrapping the - * data inside. gst_buffer_unref() after usage. - */ - public Buffer freeAndGetBuffer() - { - auto __p = gst_bit_writer_free_and_get_buffer(gstBitWriter); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Frees @bitwriter without destroying the internal data, which is - * returned. - * - * Free-function: g_free - * - * Returns: the current data. g_free() after - * usage. - */ - public ubyte[] freeAndGetData() - { - auto __p = gst_bit_writer_free_and_get_data(gstBitWriter); - - return __p[0 .. getArrayLength(__p)]; - } - - /** - * Get written data pointer - * - * Returns: data pointer - */ - public ubyte* getData() - { - return gst_bit_writer_get_data(gstBitWriter); - } - - /** */ - public uint getRemaining() - { - return gst_bit_writer_get_remaining(gstBitWriter); - } - - /** - * Get size of written @data - * - * Returns: size of bits written in @data - */ - public uint getSize() - { - return gst_bit_writer_get_size(gstBitWriter); - } - - /** - * Initializes @bitwriter to an empty instance. - */ - public void init() - { - gst_bit_writer_init(gstBitWriter); - } - - /** - * Initializes @bitwriter with the given memory area @data. IF - * @initialized is %TRUE it is possible to read @size bits from the - * #GstBitWriter from the beginning. - * - * Params: - * data = Memory area for writing - * initialized = If %TRUE the complete data can be read from the beginning - */ - public void initWithData(ubyte[] data, bool initialized) - { - gst_bit_writer_init_with_data(gstBitWriter, data.ptr, cast(uint)data.length, initialized); - } - - /** - * Initializes a #GstBitWriter instance and allocates the given data - * @size. - * - * Params: - * size = the size on bytes to allocate for data - * fixed = If %TRUE the data can't be reallocated - */ - public void initWithSize(uint size, bool fixed) - { - gst_bit_writer_init_with_size(gstBitWriter, size, fixed); - } - - /** - * Write @nbits bits of @value to #GstBitWriter. - * - * Params: - * value = value of #guint16 to write - * nbits = number of bits to write - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool putBitsUint16(ushort value, uint nbits) - { - return gst_bit_writer_put_bits_uint16(gstBitWriter, value, nbits) != 0; - } - - /** - * Write @nbits bits of @value to #GstBitWriter. - * - * Params: - * value = value of #guint32 to write - * nbits = number of bits to write - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool putBitsUint32(uint value, uint nbits) - { - return gst_bit_writer_put_bits_uint32(gstBitWriter, value, nbits) != 0; - } - - /** - * Write @nbits bits of @value to #GstBitWriter. - * - * Params: - * value = value of #guint64 to write - * nbits = number of bits to write - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool putBitsUint64(ulong value, uint nbits) - { - return gst_bit_writer_put_bits_uint64(gstBitWriter, value, nbits) != 0; - } - - /** - * Write @nbits bits of @value to #GstBitWriter. - * - * Params: - * value = value of #guint8 to write - * nbits = number of bits to write - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool putBitsUint8(ubyte value, uint nbits) - { - return gst_bit_writer_put_bits_uint8(gstBitWriter, value, nbits) != 0; - } - - /** - * Write @nbytes bytes of @data to #GstBitWriter. - * - * Params: - * data = pointer of data to write - * nbytes = number of bytes to write - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool putBytes(ubyte* data, uint nbytes) - { - return gst_bit_writer_put_bytes(gstBitWriter, data, nbytes) != 0; - } - - /** - * Resets @bitwriter and frees the data if it's owned by @bitwriter. - */ - public void reset() - { - gst_bit_writer_reset(gstBitWriter); - } - - /** - * Resets @bitwriter and returns the current data as #GstBuffer. - * - * Free-function: gst_buffer_unref - * - * Returns: a new allocated #GstBuffer wrapping the - * current data. gst_buffer_unref() after usage. - */ - public Buffer resetAndGetBuffer() - { - auto __p = gst_bit_writer_reset_and_get_buffer(gstBitWriter); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Resets @bitwriter and returns the current data. - * - * Free-function: g_free - * - * Returns: the current data. g_free() after - * usage. - */ - public ubyte[] resetAndGetData() - { - auto __p = gst_bit_writer_reset_and_get_data(gstBitWriter); - - return __p[0 .. getArrayLength(__p)]; - } - - /** */ - public bool setPos(uint pos) - { - return gst_bit_writer_set_pos(gstBitWriter, pos) != 0; - } - - /** - * Creates a new, empty #GstBitWriter instance. - * - * Free-function: gst_bit_writer_free - * - * Returns: a new, empty #GstByteWriter instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_bit_writer_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBitWriter*) __p); - } - - /** - * Creates a new #GstBitWriter instance with the given memory area. If - * @initialized is %TRUE it is possible to read @size bits from the - * #GstBitWriter from the beginning. - * - * Free-function: gst_bit_writer_free - * - * Params: - * data = Memory area for writing - * size = Size of @data in bytes - * initialized = if %TRUE the complete data can be read from the beginning - * - * Returns: a new #GstBitWriter instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte* data, uint size, bool initialized) - { - auto __p = gst_bit_writer_new_with_data(data, size, initialized); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_data"); - } - - this(cast(GstBitWriter*) __p); - } - - /** - * Creates a #GstBitWriter instance with the given initial data size. - * - * Free-function: gst_bit_writer_free - * - * Params: - * size = Initial size of data in bytes - * fixed = If %TRUE the data can't be reallocated - * - * Returns: a new #GstBitWriter instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint size, bool fixed) - { - auto __p = gst_bit_writer_new_with_size(size, fixed); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_size"); - } - - this(cast(GstBitWriter*) __p); - } -} diff --git a/generated/gstreamer/gst/base/ByteReader.d b/generated/gstreamer/gst/base/ByteReader.d deleted file mode 100644 index ab9b9e970..000000000 --- a/generated/gstreamer/gst/base/ByteReader.d +++ /dev/null @@ -1,1179 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.ByteReader; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gtkd.Loader; - - -/** - * #GstByteReader provides a byte reader that can read different integer and - * floating point types from a memory buffer. It provides functions for reading - * signed/unsigned, little/big endian integers of 8, 16, 24, 32 and 64 bits - * and functions for reading little/big endian floating points numbers of - * 32 and 64 bits. It also provides functions to read NUL-terminated strings - * in various character encodings. - */ -public class ByteReader -{ - /** the main Gtk struct */ - protected GstByteReader* gstByteReader; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstByteReader* getByteReaderStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstByteReader; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstByteReader; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstByteReader* gstByteReader, bool ownedRef = false) - { - this.gstByteReader = gstByteReader; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTBASE) && ownedRef ) - gst_byte_reader_free(gstByteReader); - } - - - /** - * Free-function: g_free - * - * Returns a newly-allocated copy of the current data - * position if at least @size bytes are left and - * updates the current position. Free with g_free() when no longer needed. - * - * Params: - * val = address of a - * #guint8 pointer variable in which to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool dupData(out ubyte[] val) - { - ubyte* outval; - - auto __p = gst_byte_reader_dup_data(gstByteReader, cast(uint)val.length, &outval) != 0; - - val = outval[0 .. cast(uint)val.length]; - - return __p; - } - - /** - * Free-function: g_free - * - * Returns a newly-allocated copy of the current data position if there is - * a NUL-terminated UTF-16 string in the data (this could be an empty string - * as well), and advances the current position. - * - * No input checking for valid UTF-16 is done. This function is endianness - * agnostic - you should not assume the UTF-16 characters are in host - * endianness. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Note: there is no peek or get variant of this function to ensure correct - * byte alignment of the UTF-16 string. - * - * Params: - * str = address of a - * #guint16 pointer variable in which to store the result - * - * Returns: %TRUE if a string could be read, %FALSE otherwise. The - * string put into @str must be freed with g_free() when no longer needed. - */ - public bool dupStringUtf16(out ushort[] str) - { - ushort* outstr; - - auto __p = gst_byte_reader_dup_string_utf16(gstByteReader, &outstr) != 0; - - str = outstr[0 .. getArrayLength(outstr)]; - - return __p; - } - - /** - * Free-function: g_free - * - * Returns a newly-allocated copy of the current data position if there is - * a NUL-terminated UTF-32 string in the data (this could be an empty string - * as well), and advances the current position. - * - * No input checking for valid UTF-32 is done. This function is endianness - * agnostic - you should not assume the UTF-32 characters are in host - * endianness. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Note: there is no peek or get variant of this function to ensure correct - * byte alignment of the UTF-32 string. - * - * Params: - * str = address of a - * #guint32 pointer variable in which to store the result - * - * Returns: %TRUE if a string could be read, %FALSE otherwise. The - * string put into @str must be freed with g_free() when no longer needed. - */ - public bool dupStringUtf32(out uint[] str) - { - uint* outstr; - - auto __p = gst_byte_reader_dup_string_utf32(gstByteReader, &outstr) != 0; - - str = outstr[0 .. getArrayLength(outstr)]; - - return __p; - } - - /** - * Free-function: g_free - * - * FIXME:Reads (copies) a NUL-terminated string in the #GstByteReader instance, - * advancing the current position to the byte after the string. This will work - * for any NUL-terminated string with a character width of 8 bits, so ASCII, - * UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Params: - * str = address of a - * #gchar pointer variable in which to store the result - * - * Returns: %TRUE if a string could be read into @str, %FALSE otherwise. The - * string put into @str must be freed with g_free() when no longer needed. - */ - public bool dupStringUtf8(out string str) - { - char* outstr = null; - - auto __p = gst_byte_reader_dup_string_utf8(gstByteReader, &outstr) != 0; - - str = Str.toString(outstr); - - return __p; - } - - /** - * Frees a #GstByteReader instance, which was previously allocated by - * gst_byte_reader_new(). - */ - public void free() - { - gst_byte_reader_free(gstByteReader); - ownedRef = false; - } - - /** - * Returns a constant pointer to the current data - * position if at least @size bytes are left and - * updates the current position. - * - * Params: - * val = address of a - * #guint8 pointer variable in which to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getData(out ubyte[] val) - { - ubyte* outval; - - auto __p = gst_byte_reader_get_data(gstByteReader, cast(uint)val.length, &outval) != 0; - - val = outval[0 .. cast(uint)val.length]; - - return __p; - } - - /** - * Read a 32 bit big endian floating point value into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gfloat to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getFloat32Be(out float val) - { - return gst_byte_reader_get_float32_be(gstByteReader, &val) != 0; - } - - /** - * Read a 32 bit little endian floating point value into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gfloat to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getFloat32Le(out float val) - { - return gst_byte_reader_get_float32_le(gstByteReader, &val) != 0; - } - - /** - * Read a 64 bit big endian floating point value into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gdouble to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getFloat64Be(out double val) - { - return gst_byte_reader_get_float64_be(gstByteReader, &val) != 0; - } - - /** - * Read a 64 bit little endian floating point value into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gdouble to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getFloat64Le(out double val) - { - return gst_byte_reader_get_float64_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 16 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt16Be(out short val) - { - return gst_byte_reader_get_int16_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 16 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt16Le(out short val) - { - return gst_byte_reader_get_int16_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 24 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt24Be(out int val) - { - return gst_byte_reader_get_int24_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 24 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt24Le(out int val) - { - return gst_byte_reader_get_int24_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 32 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt32Be(out int val) - { - return gst_byte_reader_get_int32_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 32 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt32Le(out int val) - { - return gst_byte_reader_get_int32_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 64 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt64Be(out long val) - { - return gst_byte_reader_get_int64_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 64 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #gint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt64Le(out long val) - { - return gst_byte_reader_get_int64_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 8 bit integer into @val and update the current position. - * - * Params: - * val = Pointer to a #gint8 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getInt8(out byte val) - { - return gst_byte_reader_get_int8(gstByteReader, &val) != 0; - } - - /** - * Returns the current position of a #GstByteReader instance in bytes. - * - * Returns: The current position of @reader in bytes. - */ - public uint getPos() - { - return gst_byte_reader_get_pos(gstByteReader); - } - - /** - * Returns the remaining number of bytes of a #GstByteReader instance. - * - * Returns: The remaining number of bytes of @reader instance. - */ - public uint getRemaining() - { - return gst_byte_reader_get_remaining(gstByteReader); - } - - /** - * Returns the total number of bytes of a #GstByteReader instance. - * - * Returns: The total number of bytes of @reader instance. - */ - public uint getSize() - { - return gst_byte_reader_get_size(gstByteReader); - } - - /** - * Returns a constant pointer to the current data position if there is - * a NUL-terminated string in the data (this could be just a NUL terminator), - * advancing the current position to the byte after the string. This will work - * for any NUL-terminated string with a character width of 8 bits, so ASCII, - * UTF-8, ISO-8859-N etc. - * - * No input checking for valid UTF-8 is done. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Params: - * str = address of a - * #gchar pointer variable in which to store the result - * - * Returns: %TRUE if a string could be found, %FALSE otherwise. - */ - public bool getStringUtf8(out string str) - { - char* outstr = null; - - auto __p = gst_byte_reader_get_string_utf8(gstByteReader, &outstr) != 0; - - str = Str.toString(outstr); - - return __p; - } - - /** - * Initializes a #GstByteReader sub-reader instance to contain @size bytes of - * data from the current position of @reader. This is useful to read chunked - * formats and make sure that one doesn't read beyond the size of the sub-chunk. - * - * Unlike gst_byte_reader_peek_sub_reader(), this function also modifies the - * position of @reader and moves it forward by @size bytes. - * - * Params: - * subReader = a #GstByteReader instance to initialize as sub-reader - * size = size of @sub_reader in bytes - * - * Returns: FALSE on error or if @reader does not contain @size more bytes from - * the current position, and otherwise TRUE - * - * Since: 1.6 - */ - public bool getSubReader(ByteReader subReader, uint size) - { - return gst_byte_reader_get_sub_reader(gstByteReader, (subReader is null) ? null : subReader.getByteReaderStruct(), size) != 0; - } - - /** - * Read an unsigned 16 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint16Be(out ushort val) - { - return gst_byte_reader_get_uint16_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 16 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint16Le(out ushort val) - { - return gst_byte_reader_get_uint16_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 24 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint24Be(out uint val) - { - return gst_byte_reader_get_uint24_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 24 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint24Le(out uint val) - { - return gst_byte_reader_get_uint24_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 32 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint32Be(out uint val) - { - return gst_byte_reader_get_uint32_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 32 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint32Le(out uint val) - { - return gst_byte_reader_get_uint32_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 64 bit big endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint64Be(out ulong val) - { - return gst_byte_reader_get_uint64_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 64 bit little endian integer into @val - * and update the current position. - * - * Params: - * val = Pointer to a #guint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint64Le(out ulong val) - { - return gst_byte_reader_get_uint64_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 8 bit integer into @val and update the current position. - * - * Params: - * val = Pointer to a #guint8 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool getUint8(out ubyte val) - { - return gst_byte_reader_get_uint8(gstByteReader, &val) != 0; - } - - /** - * Initializes a #GstByteReader instance to read from @data. This function - * can be called on already initialized instances. - * - * Params: - * data = data from which - * the #GstByteReader should read - */ - public void init(ubyte[] data) - { - gst_byte_reader_init(gstByteReader, data.ptr, cast(uint)data.length); - } - - /** - * Scan for pattern @pattern with applied mask @mask in the byte reader data, - * starting from offset @offset relative to the current position. - * - * The bytes in @pattern and @mask are interpreted left-to-right, regardless - * of endianness. All four bytes of the pattern must be present in the - * byte reader data for it to match, even if the first or last bytes are masked - * out. - * - * It is an error to call this function without making sure that there is - * enough data (offset+size bytes) in the byte reader. - * - * Params: - * mask = mask to apply to data before matching against @pattern - * pattern = pattern to match (after mask is applied) - * offset = offset from which to start scanning, relative to the current - * position - * size = number of bytes to scan from offset - * - * Returns: offset of the first match, or -1 if no match was found. - * - * Example: - * |[ - * // Assume the reader contains 0x00 0x01 0x02 ... 0xfe 0xff - * - * gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x00010203, 0, 256); - * // -> returns 0 - * gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x00010203, 1, 255); - * // -> returns -1 - * gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x01020304, 1, 255); - * // -> returns 1 - * gst_byte_reader_masked_scan_uint32 (reader, 0xffff, 0x0001, 0, 256); - * // -> returns -1 - * gst_byte_reader_masked_scan_uint32 (reader, 0xffff, 0x0203, 0, 256); - * // -> returns 0 - * gst_byte_reader_masked_scan_uint32 (reader, 0xffff0000, 0x02030000, 0, 256); - * // -> returns 2 - * gst_byte_reader_masked_scan_uint32 (reader, 0xffff0000, 0x02030000, 0, 4); - * // -> returns -1 - * ]| - */ - public uint maskedScanUint32(uint mask, uint pattern, uint offset, uint size) - { - return gst_byte_reader_masked_scan_uint32(gstByteReader, mask, pattern, offset, size); - } - - /** - * Scan for pattern @pattern with applied mask @mask in the byte reader data, - * starting from offset @offset relative to the current position. - * - * The bytes in @pattern and @mask are interpreted left-to-right, regardless - * of endianness. All four bytes of the pattern must be present in the - * byte reader data for it to match, even if the first or last bytes are masked - * out. - * - * It is an error to call this function without making sure that there is - * enough data (offset+size bytes) in the byte reader. - * - * Params: - * mask = mask to apply to data before matching against @pattern - * pattern = pattern to match (after mask is applied) - * offset = offset from which to start scanning, relative to the current - * position - * size = number of bytes to scan from offset - * value = pointer to uint32 to return matching data - * - * Returns: offset of the first match, or -1 if no match was found. - * - * Since: 1.6 - */ - public uint maskedScanUint32Peek(uint mask, uint pattern, uint offset, uint size, out uint value) - { - return gst_byte_reader_masked_scan_uint32_peek(gstByteReader, mask, pattern, offset, size, &value); - } - - /** - * Returns a constant pointer to the current data - * position if at least @size bytes are left and - * keeps the current position. - * - * Params: - * val = address of a - * #guint8 pointer variable in which to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekData(out ubyte[] val) - { - ubyte* outval; - - auto __p = gst_byte_reader_peek_data(gstByteReader, cast(uint)val.length, &outval) != 0; - - val = outval[0 .. cast(uint)val.length]; - - return __p; - } - - /** - * Read a 32 bit big endian floating point value into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gfloat to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekFloat32Be(out float val) - { - return gst_byte_reader_peek_float32_be(gstByteReader, &val) != 0; - } - - /** - * Read a 32 bit little endian floating point value into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gfloat to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekFloat32Le(out float val) - { - return gst_byte_reader_peek_float32_le(gstByteReader, &val) != 0; - } - - /** - * Read a 64 bit big endian floating point value into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gdouble to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekFloat64Be(out double val) - { - return gst_byte_reader_peek_float64_be(gstByteReader, &val) != 0; - } - - /** - * Read a 64 bit little endian floating point value into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gdouble to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekFloat64Le(out double val) - { - return gst_byte_reader_peek_float64_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 16 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt16Be(out short val) - { - return gst_byte_reader_peek_int16_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 16 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt16Le(out short val) - { - return gst_byte_reader_peek_int16_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 24 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt24Be(out int val) - { - return gst_byte_reader_peek_int24_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 24 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt24Le(out int val) - { - return gst_byte_reader_peek_int24_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 32 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt32Be(out int val) - { - return gst_byte_reader_peek_int32_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 32 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt32Le(out int val) - { - return gst_byte_reader_peek_int32_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 64 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt64Be(out long val) - { - return gst_byte_reader_peek_int64_be(gstByteReader, &val) != 0; - } - - /** - * Read a signed 64 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #gint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt64Le(out long val) - { - return gst_byte_reader_peek_int64_le(gstByteReader, &val) != 0; - } - - /** - * Read a signed 8 bit integer into @val but keep the current position. - * - * Params: - * val = Pointer to a #gint8 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekInt8(out byte val) - { - return gst_byte_reader_peek_int8(gstByteReader, &val) != 0; - } - - /** - * Returns a constant pointer to the current data position if there is - * a NUL-terminated string in the data (this could be just a NUL terminator). - * The current position will be maintained. This will work for any - * NUL-terminated string with a character width of 8 bits, so ASCII, - * UTF-8, ISO-8859-N etc. - * - * No input checking for valid UTF-8 is done. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Params: - * str = address of a - * #gchar pointer variable in which to store the result - * - * Returns: %TRUE if a string could be skipped, %FALSE otherwise. - */ - public bool peekStringUtf8(out string str) - { - char* outstr = null; - - auto __p = gst_byte_reader_peek_string_utf8(gstByteReader, &outstr) != 0; - - str = Str.toString(outstr); - - return __p; - } - - /** - * Initializes a #GstByteReader sub-reader instance to contain @size bytes of - * data from the current position of @reader. This is useful to read chunked - * formats and make sure that one doesn't read beyond the size of the sub-chunk. - * - * Unlike gst_byte_reader_get_sub_reader(), this function does not modify the - * current position of @reader. - * - * Params: - * subReader = a #GstByteReader instance to initialize as sub-reader - * size = size of @sub_reader in bytes - * - * Returns: FALSE on error or if @reader does not contain @size more bytes from - * the current position, and otherwise TRUE - * - * Since: 1.6 - */ - public bool peekSubReader(ByteReader subReader, uint size) - { - return gst_byte_reader_peek_sub_reader(gstByteReader, (subReader is null) ? null : subReader.getByteReaderStruct(), size) != 0; - } - - /** - * Read an unsigned 16 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint16Be(out ushort val) - { - return gst_byte_reader_peek_uint16_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 16 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint16 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint16Le(out ushort val) - { - return gst_byte_reader_peek_uint16_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 24 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint24Be(out uint val) - { - return gst_byte_reader_peek_uint24_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 24 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint24Le(out uint val) - { - return gst_byte_reader_peek_uint24_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 32 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint32Be(out uint val) - { - return gst_byte_reader_peek_uint32_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 32 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint32 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint32Le(out uint val) - { - return gst_byte_reader_peek_uint32_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 64 bit big endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint64Be(out ulong val) - { - return gst_byte_reader_peek_uint64_be(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 64 bit little endian integer into @val - * but keep the current position. - * - * Params: - * val = Pointer to a #guint64 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint64Le(out ulong val) - { - return gst_byte_reader_peek_uint64_le(gstByteReader, &val) != 0; - } - - /** - * Read an unsigned 8 bit integer into @val but keep the current position. - * - * Params: - * val = Pointer to a #guint8 to store the result - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool peekUint8(out ubyte val) - { - return gst_byte_reader_peek_uint8(gstByteReader, &val) != 0; - } - - /** - * Sets the new position of a #GstByteReader instance to @pos in bytes. - * - * Params: - * pos = The new position in bytes - * - * Returns: %TRUE if the position could be set successfully, %FALSE - * otherwise. - */ - public bool setPos(uint pos) - { - return gst_byte_reader_set_pos(gstByteReader, pos) != 0; - } - - /** - * Skips @nbytes bytes of the #GstByteReader instance. - * - * Params: - * nbytes = the number of bytes to skip - * - * Returns: %TRUE if @nbytes bytes could be skipped, %FALSE otherwise. - */ - public bool skip(uint nbytes) - { - return gst_byte_reader_skip(gstByteReader, nbytes) != 0; - } - - /** - * Skips a NUL-terminated UTF-16 string in the #GstByteReader instance, - * advancing the current position to the byte after the string. - * - * No input checking for valid UTF-16 is done. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Returns: %TRUE if a string could be skipped, %FALSE otherwise. - */ - public bool skipStringUtf16() - { - return gst_byte_reader_skip_string_utf16(gstByteReader) != 0; - } - - /** - * Skips a NUL-terminated UTF-32 string in the #GstByteReader instance, - * advancing the current position to the byte after the string. - * - * No input checking for valid UTF-32 is done. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Returns: %TRUE if a string could be skipped, %FALSE otherwise. - */ - public bool skipStringUtf32() - { - return gst_byte_reader_skip_string_utf32(gstByteReader) != 0; - } - - /** - * Skips a NUL-terminated string in the #GstByteReader instance, advancing - * the current position to the byte after the string. This will work for - * any NUL-terminated string with a character width of 8 bits, so ASCII, - * UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. - * - * This function will fail if no NUL-terminator was found in in the data. - * - * Returns: %TRUE if a string could be skipped, %FALSE otherwise. - */ - public bool skipStringUtf8() - { - return gst_byte_reader_skip_string_utf8(gstByteReader) != 0; - } - - /** - * Create a new #GstByteReader instance, which will read from @data. - * - * Free-function: gst_byte_reader_free - * - * Params: - * data = data from which the - * #GstByteReader should read - * - * Returns: a new #GstByteReader instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data) - { - auto __p = gst_byte_reader_new(data.ptr, cast(uint)data.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstByteReader*) __p); - } -} diff --git a/generated/gstreamer/gst/base/ByteWriter.d b/generated/gstreamer/gst/base/ByteWriter.d deleted file mode 100644 index e53782312..000000000 --- a/generated/gstreamer/gst/base/ByteWriter.d +++ /dev/null @@ -1,670 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.ByteWriter; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Buffer; -private import gtkd.Loader; - - -/** - * #GstByteWriter provides a byte writer and reader that can write/read different - * integer and floating point types to/from a memory buffer. It provides functions - * for writing/reading signed/unsigned, little/big endian integers of 8, 16, 24, - * 32 and 64 bits and functions for reading little/big endian floating points numbers of - * 32 and 64 bits. It also provides functions to write/read NUL-terminated strings - * in various character encodings. - */ -public class ByteWriter -{ - /** the main Gtk struct */ - protected GstByteWriter* gstByteWriter; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstByteWriter* getByteWriterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstByteWriter; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstByteWriter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstByteWriter* gstByteWriter, bool ownedRef = false) - { - this.gstByteWriter = gstByteWriter; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTBASE) && ownedRef ) - gst_byte_writer_free(gstByteWriter); - } - - /** - * Frees @writer and all memory allocated by it except - * the current data, which is returned. - * - * Free-function: g_free - * - * Returns: the current data. g_free() after usage. - */ - public ubyte[] freeAndGetData() - { - ubyte* p = gst_byte_writer_free_and_get_data(gstByteWriter); - ownedRef = false; - return p[0 .. gstByteWriter.parent.size]; - } - - /** - * Resets @writer and returns the current data. - * - * Free-function: g_free - * - * Returns: the current data. g_free() after - * usage. - */ - public ubyte[] resetAndGetData() - { - auto p = gst_byte_writer_reset_and_get_data(gstByteWriter); - - return p[0 .. gstByteWriter.parent.size]; - } - - /** - */ - - /** - * Checks if enough free space from the current write cursor is - * available and reallocates if necessary. - * - * Params: - * size = Number of bytes that should be available - * - * Returns: %TRUE if at least @size bytes are still available - */ - public bool ensureFreeSpace(uint size) - { - return gst_byte_writer_ensure_free_space(gstByteWriter, size) != 0; - } - - /** - * Writes @size bytes containing @value to @writer. - * - * Params: - * value = Value to be written - * size = Number of bytes to be written - * - * Returns: %TRUE if the value could be written - */ - public bool fill(ubyte value, uint size) - { - return gst_byte_writer_fill(gstByteWriter, value, size) != 0; - } - - /** - * Frees @writer and all memory allocated by it. - */ - public void free() - { - gst_byte_writer_free(gstByteWriter); - ownedRef = false; - } - - /** - * Frees @writer and all memory allocated by it except - * the current data, which is returned as #GstBuffer. - * - * Free-function: gst_buffer_unref - * - * Returns: the current data as buffer. gst_buffer_unref() - * after usage. - */ - public Buffer freeAndGetBuffer() - { - auto __p = gst_byte_writer_free_and_get_buffer(gstByteWriter); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Returns the remaining size of data that can still be written. If - * -1 is returned the remaining size is only limited by system resources. - * - * Returns: the remaining size of data that can still be written - */ - public uint getRemaining() - { - return gst_byte_writer_get_remaining(gstByteWriter); - } - - /** - * Initializes @writer to an empty instance - */ - public void init() - { - gst_byte_writer_init(gstByteWriter); - } - - /** - * Initializes @writer with the given - * memory area. If @initialized is %TRUE it is possible to - * read @size bytes from the #GstByteWriter from the beginning. - * - * Params: - * data = Memory area for writing - * initialized = If %TRUE the complete data can be read from the beginning - */ - public void initWithData(ubyte[] data, bool initialized) - { - gst_byte_writer_init_with_data(gstByteWriter, data.ptr, cast(uint)data.length, initialized); - } - - /** - * Initializes @writer with the given initial data size. - * - * Params: - * size = Initial size of data - * fixed = If %TRUE the data can't be reallocated - */ - public void initWithSize(uint size, bool fixed) - { - gst_byte_writer_init_with_size(gstByteWriter, size, fixed); - } - - /** - * Writes @size bytes of @data to @writer. - * - * Params: - * buffer = source #GstBuffer - * offset = offset to copy from - * size = total size to copy. If -1, all data is copied - * - * Returns: %TRUE if the data could be written - */ - public bool putBuffer(Buffer buffer, size_t offset, ptrdiff_t size) - { - return gst_byte_writer_put_buffer(gstByteWriter, (buffer is null) ? null : buffer.getBufferStruct(), offset, size) != 0; - } - - /** - * Writes @size bytes of @data to @writer. - * - * Params: - * data = Data to write - * - * Returns: %TRUE if the value could be written - */ - public bool putData(ubyte[] data) - { - return gst_byte_writer_put_data(gstByteWriter, data.ptr, cast(uint)data.length) != 0; - } - - /** - * Writes a big endian 32 bit float to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putFloat32Be(float val) - { - return gst_byte_writer_put_float32_be(gstByteWriter, val) != 0; - } - - /** - * Writes a little endian 32 bit float to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putFloat32Le(float val) - { - return gst_byte_writer_put_float32_le(gstByteWriter, val) != 0; - } - - /** - * Writes a big endian 64 bit float to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putFloat64Be(double val) - { - return gst_byte_writer_put_float64_be(gstByteWriter, val) != 0; - } - - /** - * Writes a little endian 64 bit float to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putFloat64Le(double val) - { - return gst_byte_writer_put_float64_le(gstByteWriter, val) != 0; - } - - /** - * Writes a signed big endian 16 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt16Be(short val) - { - return gst_byte_writer_put_int16_be(gstByteWriter, val) != 0; - } - - /** - * Writes a signed little endian 16 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt16Le(short val) - { - return gst_byte_writer_put_int16_le(gstByteWriter, val) != 0; - } - - /** - * Writes a signed big endian 24 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt24Be(int val) - { - return gst_byte_writer_put_int24_be(gstByteWriter, val) != 0; - } - - /** - * Writes a signed little endian 24 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt24Le(int val) - { - return gst_byte_writer_put_int24_le(gstByteWriter, val) != 0; - } - - /** - * Writes a signed big endian 32 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt32Be(int val) - { - return gst_byte_writer_put_int32_be(gstByteWriter, val) != 0; - } - - /** - * Writes a signed little endian 32 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt32Le(int val) - { - return gst_byte_writer_put_int32_le(gstByteWriter, val) != 0; - } - - /** - * Writes a signed big endian 64 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt64Be(long val) - { - return gst_byte_writer_put_int64_be(gstByteWriter, val) != 0; - } - - /** - * Writes a signed little endian 64 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt64Le(long val) - { - return gst_byte_writer_put_int64_le(gstByteWriter, val) != 0; - } - - /** - * Writes a signed 8 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putInt8(byte val) - { - return gst_byte_writer_put_int8(gstByteWriter, val) != 0; - } - - /** - * Writes a NUL-terminated UTF16 string to @writer (including the terminator). - * - * Params: - * data = UTF16 string to write - * - * Returns: %TRUE if the value could be written - */ - public bool putStringUtf16(ushort[] data) - { - return gst_byte_writer_put_string_utf16(gstByteWriter, data.ptr) != 0; - } - - /** - * Writes a NUL-terminated UTF32 string to @writer (including the terminator). - * - * Params: - * data = UTF32 string to write - * - * Returns: %TRUE if the value could be written - */ - public bool putStringUtf32(uint[] data) - { - return gst_byte_writer_put_string_utf32(gstByteWriter, data.ptr) != 0; - } - - /** - * Writes a NUL-terminated UTF8 string to @writer (including the terminator). - * - * Params: - * data = UTF8 string to write - * - * Returns: %TRUE if the value could be written - */ - public bool putStringUtf8(string data) - { - return gst_byte_writer_put_string_utf8(gstByteWriter, Str.toStringz(data)) != 0; - } - - /** - * Writes a unsigned big endian 16 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint16Be(ushort val) - { - return gst_byte_writer_put_uint16_be(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned little endian 16 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint16Le(ushort val) - { - return gst_byte_writer_put_uint16_le(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned big endian 24 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint24Be(uint val) - { - return gst_byte_writer_put_uint24_be(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned little endian 24 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint24Le(uint val) - { - return gst_byte_writer_put_uint24_le(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned big endian 32 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint32Be(uint val) - { - return gst_byte_writer_put_uint32_be(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned little endian 32 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint32Le(uint val) - { - return gst_byte_writer_put_uint32_le(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned big endian 64 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint64Be(ulong val) - { - return gst_byte_writer_put_uint64_be(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned little endian 64 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint64Le(ulong val) - { - return gst_byte_writer_put_uint64_le(gstByteWriter, val) != 0; - } - - /** - * Writes a unsigned 8 bit integer to @writer. - * - * Params: - * val = Value to write - * - * Returns: %TRUE if the value could be written - */ - public bool putUint8(ubyte val) - { - return gst_byte_writer_put_uint8(gstByteWriter, val) != 0; - } - - /** - * Resets @writer and frees the data if it's - * owned by @writer. - */ - public void reset() - { - gst_byte_writer_reset(gstByteWriter); - } - - /** - * Resets @writer and returns the current data as buffer. - * - * Free-function: gst_buffer_unref - * - * Returns: the current data as buffer. gst_buffer_unref() - * after usage. - */ - public Buffer resetAndGetBuffer() - { - auto __p = gst_byte_writer_reset_and_get_buffer(gstByteWriter); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Creates a new, empty #GstByteWriter instance - * - * Free-function: gst_byte_writer_free - * - * Returns: a new, empty #GstByteWriter instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_byte_writer_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstByteWriter*) __p); - } - - /** - * Creates a new #GstByteWriter instance with the given - * memory area. If @initialized is %TRUE it is possible to - * read @size bytes from the #GstByteWriter from the beginning. - * - * Free-function: gst_byte_writer_free - * - * Params: - * data = Memory area for writing - * initialized = If %TRUE the complete data can be read from the beginning - * - * Returns: a new #GstByteWriter instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data, bool initialized) - { - auto __p = gst_byte_writer_new_with_data(data.ptr, cast(uint)data.length, initialized); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_data"); - } - - this(cast(GstByteWriter*) __p); - } - - /** - * Creates a new #GstByteWriter instance with the given - * initial data size. - * - * Free-function: gst_byte_writer_free - * - * Params: - * size = Initial size of data - * fixed = If %TRUE the data can't be reallocated - * - * Returns: a new #GstByteWriter instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint size, bool fixed) - { - auto __p = gst_byte_writer_new_with_size(size, fixed); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_size"); - } - - this(cast(GstByteWriter*) __p); - } -} diff --git a/generated/gstreamer/gst/base/CollectPads.d b/generated/gstreamer/gst/base/CollectPads.d deleted file mode 100644 index 4855212b3..000000000 --- a/generated/gstreamer/gst/base/CollectPads.d +++ /dev/null @@ -1,586 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.CollectPads; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Buffer; -private import gstreamer.Event; -private import gstreamer.ObjectGst; -private import gstreamer.Pad; -private import gstreamer.Query; - - -/** - * Manages a set of pads that operate in collect mode. This means that control - * is given to the manager of this object when all pads have data. - * - * * Collectpads are created with gst_collect_pads_new(). A callback should then - * be installed with gst_collect_pads_set_function (). - * - * * Pads are added to the collection with gst_collect_pads_add_pad()/ - * gst_collect_pads_remove_pad(). The pad has to be a sinkpad. When added, - * the chain, event and query functions of the pad are overridden. The - * element_private of the pad is used to store private information for the - * collectpads. - * - * * For each pad, data is queued in the _chain function or by - * performing a pull_range. - * - * * When data is queued on all pads in waiting mode, the callback function is called. - * - * * Data can be dequeued from the pad with the gst_collect_pads_pop() method. - * One can peek at the data with the gst_collect_pads_peek() function. - * These functions will return %NULL if the pad received an EOS event. When all - * pads return %NULL from a gst_collect_pads_peek(), the element can emit an EOS - * event itself. - * - * * Data can also be dequeued in byte units using the gst_collect_pads_available(), - * gst_collect_pads_read_buffer() and gst_collect_pads_flush() calls. - * - * * Elements should call gst_collect_pads_start() and gst_collect_pads_stop() in - * their state change functions to start and stop the processing of the collectpads. - * The gst_collect_pads_stop() call should be called before calling the parent - * element state change function in the PAUSED_TO_READY state change to ensure - * no pad is blocked and the element can finish streaming. - * - * * gst_collect_pads_set_waiting() sets a pad to waiting or non-waiting mode. - * CollectPads element is not waiting for data to be collected on non-waiting pads. - * Thus these pads may but need not have data when the callback is called. - * All pads are in waiting mode by default. - */ -public class CollectPads : ObjectGst -{ - /** the main Gtk struct */ - protected GstCollectPads* gstCollectPads; - - /** Get the main Gtk struct */ - public GstCollectPads* getCollectPadsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstCollectPads; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstCollectPads; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstCollectPads* gstCollectPads, bool ownedRef = false) - { - this.gstCollectPads = gstCollectPads; - super(cast(GstObject*)gstCollectPads, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_collect_pads_get_type(); - } - - /** - * Create a new instance of #GstCollectPads. - * - * MT safe. - * - * Returns: a new #GstCollectPads, or %NULL in case of an error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_collect_pads_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstCollectPads*) __p, true); - } - - /** - * Add a pad to the collection of collect pads. The pad has to be - * a sinkpad. The refcount of the pad is incremented. Use - * gst_collect_pads_remove_pad() to remove the pad from the collection - * again. - * - * You specify a size for the returned #GstCollectData structure - * so that you can use it to store additional information. - * - * You can also specify a #GstCollectDataDestroyNotify that will be called - * just before the #GstCollectData structure is freed. It is passed the - * pointer to the structure and should free any custom memory and resources - * allocated for it. - * - * Keeping a pad locked in waiting state is only relevant when using - * the default collection algorithm (providing the oldest buffer). - * It ensures a buffer must be available on this pad for a collection - * to take place. This is of typical use to a muxer element where - * non-subtitle streams should always be in waiting state, - * e.g. to assure that caps information is available on all these streams - * when initial headers have to be written. - * - * The pad will be automatically activated in push mode when @pads is - * started. - * - * MT safe. - * - * Params: - * pad = the pad to add - * size = the size of the returned #GstCollectData structure - * destroyNotify = function to be called before the returned - * #GstCollectData structure is freed - * lock = whether to lock this pad in usual waiting state - * - * Returns: a new #GstCollectData to identify the - * new pad. Or %NULL if wrong parameters are supplied. - */ - public GstCollectData* addPad(Pad pad, uint size, GstCollectDataDestroyNotify destroyNotify, bool lock) - { - return gst_collect_pads_add_pad(gstCollectPads, (pad is null) ? null : pad.getPadStruct(), size, destroyNotify, lock); - } - - /** - * Query how much bytes can be read from each queued buffer. This means - * that the result of this call is the maximum number of bytes that can - * be read from each of the pads. - * - * This function should be called with @pads STREAM_LOCK held, such as - * in the callback. - * - * MT safe. - * - * Returns: The maximum number of bytes queued on all pads. This function - * returns 0 if a pad has no queued buffer. - */ - public uint available() - { - return gst_collect_pads_available(gstCollectPads); - } - - /** - * Convenience clipping function that converts incoming buffer's timestamp - * to running time, or clips the buffer if outside configured segment. - * - * Since 1.6, this clipping function also sets the DTS parameter of the - * GstCollectData structure. This version of the running time DTS can be - * negative. G_MININT64 is used to indicate invalid value. - * - * Params: - * cdata = collect data of corresponding pad - * buf = buffer being clipped - * outbuf = output buffer with running time, or NULL if clipped - * userData = user data (unused) - */ - public GstFlowReturn clipRunningTime(GstCollectData* cdata, Buffer buf, out Buffer outbuf, void* userData) - { - GstBuffer* outoutbuf = null; - - auto __p = gst_collect_pads_clip_running_time(gstCollectPads, cdata, (buf is null) ? null : buf.getBufferStruct(), &outoutbuf, userData); - - outbuf = ObjectG.getDObject!(Buffer)(outoutbuf); - - return __p; - } - - /** - * Default #GstCollectPads event handling that elements should always - * chain up to to ensure proper operation. Element might however indicate - * event should not be forwarded downstream. - * - * Params: - * data = collect data of corresponding pad - * event = event being processed - * discard = process but do not send event downstream - */ - public bool eventDefault(GstCollectData* data, Event event, bool discard) - { - return gst_collect_pads_event_default(gstCollectPads, data, (event is null) ? null : event.getEventStruct(), discard) != 0; - } - - /** - * Flush @size bytes from the pad @data. - * - * This function should be called with @pads STREAM_LOCK held, such as - * in the callback. - * - * MT safe. - * - * Params: - * data = the data to use - * size = the number of bytes to flush - * - * Returns: The number of bytes flushed This can be less than @size and - * is 0 if the pad was end-of-stream. - */ - public uint flush(GstCollectData* data, uint size) - { - return gst_collect_pads_flush(gstCollectPads, data, size); - } - - /** - * Peek at the buffer currently queued in @data. This function - * should be called with the @pads STREAM_LOCK held, such as in the callback - * handler. - * - * MT safe. - * - * Params: - * data = the data to use - * - * Returns: The buffer in @data or %NULL if no - * buffer is queued. should unref the buffer after usage. - */ - public Buffer peek(GstCollectData* data) - { - auto __p = gst_collect_pads_peek(gstCollectPads, data); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Pop the buffer currently queued in @data. This function - * should be called with the @pads STREAM_LOCK held, such as in the callback - * handler. - * - * MT safe. - * - * Params: - * data = the data to use - * - * Returns: The buffer in @data or %NULL if no - * buffer was queued. You should unref the buffer after usage. - */ - public Buffer pop(GstCollectData* data) - { - auto __p = gst_collect_pads_pop(gstCollectPads, data); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Default #GstCollectPads query handling that elements should always - * chain up to to ensure proper operation. Element might however indicate - * query should not be forwarded downstream. - * - * Params: - * data = collect data of corresponding pad - * query = query being processed - * discard = process but do not send event downstream - */ - public bool queryDefault(GstCollectData* data, Query query, bool discard) - { - return gst_collect_pads_query_default(gstCollectPads, data, (query is null) ? null : query.getQueryStruct(), discard) != 0; - } - - /** - * Get a subbuffer of @size bytes from the given pad @data. - * - * This function should be called with @pads STREAM_LOCK held, such as in the - * callback. - * - * MT safe. - * - * Params: - * data = the data to use - * size = the number of bytes to read - * - * Returns: A sub buffer. The size of the buffer can - * be less that requested. A return of %NULL signals that the pad is - * end-of-stream. Unref the buffer after use. - */ - public Buffer readBuffer(GstCollectData* data, uint size) - { - auto __p = gst_collect_pads_read_buffer(gstCollectPads, data, size); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Remove a pad from the collection of collect pads. This function will also - * free the #GstCollectData and all the resources that were allocated with - * gst_collect_pads_add_pad(). - * - * The pad will be deactivated automatically when @pads is stopped. - * - * MT safe. - * - * Params: - * pad = the pad to remove - * - * Returns: %TRUE if the pad could be removed. - */ - public bool removePad(Pad pad) - { - return gst_collect_pads_remove_pad(gstCollectPads, (pad is null) ? null : pad.getPadStruct()) != 0; - } - - /** - * Set the callback function and user data that will be called with - * the oldest buffer when all pads have been collected, or %NULL on EOS. - * If a buffer is passed, the callback owns a reference and must unref - * it. - * - * MT safe. - * - * Params: - * func = the function to set - * userData = user data passed to the function - */ - public void setBufferFunction(GstCollectPadsBufferFunction func, void* userData) - { - gst_collect_pads_set_buffer_function(gstCollectPads, func, userData); - } - - /** - * Install a clipping function that is called right after a buffer is received - * on a pad managed by @pads. See #GstCollectPadsClipFunction for more info. - * - * Params: - * clipfunc = clip function to install - * userData = user data to pass to @clip_func - */ - public void setClipFunction(GstCollectPadsClipFunction clipfunc, void* userData) - { - gst_collect_pads_set_clip_function(gstCollectPads, clipfunc, userData); - } - - /** - * Set the timestamp comparison function. - * - * MT safe. - * - * Params: - * func = the function to set - * userData = user data passed to the function - */ - public void setCompareFunction(GstCollectPadsCompareFunction func, void* userData) - { - gst_collect_pads_set_compare_function(gstCollectPads, func, userData); - } - - /** - * Set the event callback function and user data that will be called when - * collectpads has received an event originating from one of the collected - * pads. If the event being processed is a serialized one, this callback is - * called with @pads STREAM_LOCK held, otherwise not. As this lock should be - * held when calling a number of CollectPads functions, it should be acquired - * if so (unusually) needed. - * - * MT safe. - * - * Params: - * func = the function to set - * userData = user data passed to the function - */ - public void setEventFunction(GstCollectPadsEventFunction func, void* userData) - { - gst_collect_pads_set_event_function(gstCollectPads, func, userData); - } - - /** - * Install a flush function that is called when the internal - * state of all pads should be flushed as part of flushing seek - * handling. See #GstCollectPadsFlushFunction for more info. - * - * Params: - * func = flush function to install - * userData = user data to pass to @func - * - * Since: 1.4 - */ - public void setFlushFunction(GstCollectPadsFlushFunction func, void* userData) - { - gst_collect_pads_set_flush_function(gstCollectPads, func, userData); - } - - /** - * Change the flushing state of all the pads in the collection. No pad - * is able to accept anymore data when @flushing is %TRUE. Calling this - * function with @flushing %FALSE makes @pads accept data again. - * Caller must ensure that downstream streaming (thread) is not blocked, - * e.g. by sending a FLUSH_START downstream. - * - * MT safe. - * - * Params: - * flushing = desired state of the pads - */ - public void setFlushing(bool flushing) - { - gst_collect_pads_set_flushing(gstCollectPads, flushing); - } - - /** - * CollectPads provides a default collection algorithm that will determine - * the oldest buffer available on all of its pads, and then delegate - * to a configured callback. - * However, if circumstances are more complicated and/or more control - * is desired, this sets a callback that will be invoked instead when - * all the pads added to the collection have buffers queued. - * Evidently, this callback is not compatible with - * gst_collect_pads_set_buffer_function() callback. - * If this callback is set, the former will be unset. - * - * MT safe. - * - * Params: - * func = the function to set - * userData = user data passed to the function - */ - public void setFunction(GstCollectPadsFunction func, void* userData) - { - gst_collect_pads_set_function(gstCollectPads, func, userData); - } - - /** - * Set the query callback function and user data that will be called after - * collectpads has received a query originating from one of the collected - * pads. If the query being processed is a serialized one, this callback is - * called with @pads STREAM_LOCK held, otherwise not. As this lock should be - * held when calling a number of CollectPads functions, it should be acquired - * if so (unusually) needed. - * - * MT safe. - * - * Params: - * func = the function to set - * userData = user data passed to the function - */ - public void setQueryFunction(GstCollectPadsQueryFunction func, void* userData) - { - gst_collect_pads_set_query_function(gstCollectPads, func, userData); - } - - /** - * Sets a pad to waiting or non-waiting mode, if at least this pad - * has not been created with locked waiting state, - * in which case nothing happens. - * - * This function should be called with @pads STREAM_LOCK held, such as - * in the callback. - * - * MT safe. - * - * Params: - * data = the data to use - * waiting = boolean indicating whether this pad should operate - * in waiting or non-waiting mode - */ - public void setWaiting(GstCollectData* data, bool waiting) - { - gst_collect_pads_set_waiting(gstCollectPads, data, waiting); - } - - /** - * Default #GstCollectPads event handling for the src pad of elements. - * Elements can chain up to this to let flushing seek event handling - * be done by #GstCollectPads. - * - * Params: - * pad = src #GstPad that received the event - * event = event being processed - * - * Since: 1.4 - */ - public bool srcEventDefault(Pad pad, Event event) - { - return gst_collect_pads_src_event_default(gstCollectPads, (pad is null) ? null : pad.getPadStruct(), (event is null) ? null : event.getEventStruct()) != 0; - } - - /** - * Starts the processing of data in the collect_pads. - * - * MT safe. - */ - public void start() - { - gst_collect_pads_start(gstCollectPads); - } - - /** - * Stops the processing of data in the collect_pads. this function - * will also unblock any blocking operations. - * - * MT safe. - */ - public void stop() - { - gst_collect_pads_stop(gstCollectPads); - } - - /** - * Get a subbuffer of @size bytes from the given pad @data. Flushes the amount - * of read bytes. - * - * This function should be called with @pads STREAM_LOCK held, such as in the - * callback. - * - * MT safe. - * - * Params: - * data = the data to use - * size = the number of bytes to read - * - * Returns: A sub buffer. The size of the buffer can - * be less that requested. A return of %NULL signals that the pad is - * end-of-stream. Unref the buffer after use. - */ - public Buffer takeBuffer(GstCollectData* data, uint size) - { - auto __p = gst_collect_pads_take_buffer(gstCollectPads, data, size); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } -} diff --git a/generated/gstreamer/gst/base/DataQueue.d b/generated/gstreamer/gst/base/DataQueue.d deleted file mode 100644 index 8730bd02a..000000000 --- a/generated/gstreamer/gst/base/DataQueue.d +++ /dev/null @@ -1,307 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.DataQueue; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gobject.Signals; -private import gst.base.c.functions; -public import gst.base.c.types; -private import std.algorithm; - - -/** - * #GstDataQueue is an object that handles threadsafe queueing of objects. It - * also provides size-related functionality. This object should be used for - * any #GstElement that wishes to provide some sort of queueing functionality. - */ -public class DataQueue : ObjectG -{ - /** the main Gtk struct */ - protected GstDataQueue* gstDataQueue; - - /** Get the main Gtk struct */ - public GstDataQueue* getDataQueueStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDataQueue; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstDataQueue; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDataQueue* gstDataQueue, bool ownedRef = false) - { - this.gstDataQueue = gstDataQueue; - super(cast(GObject*)gstDataQueue, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_data_queue_get_type(); - } - - /** - * Creates a new #GstDataQueue. If @fullcallback or @emptycallback are supplied, then - * the #GstDataQueue will call the respective callback to signal full or empty condition. - * If the callbacks are NULL the #GstDataQueue will instead emit 'full' and 'empty' - * signals. - * - * Params: - * checkfull = the callback used to tell if the element considers the queue full - * or not. - * fullcallback = the callback which will be called when the queue is considered full. - * emptycallback = the callback which will be called when the queue is considered empty. - * checkdata = a #gpointer that will be passed to the @checkfull, @fullcallback, - * and @emptycallback callbacks. - * - * Returns: a new #GstDataQueue. - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstDataQueueCheckFullFunction checkfull, GstDataQueueFullCallback fullcallback, GstDataQueueEmptyCallback emptycallback, void* checkdata) - { - auto __p = gst_data_queue_new(checkfull, fullcallback, emptycallback, checkdata); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstDataQueue*) __p, true); - } - - /** - * Pop and unref the head-most #GstMiniObject with the given #GType. - * - * Params: - * type = The #GType of the item to drop. - * - * Returns: %TRUE if an element was removed. - * - * Since: 1.2 - */ - public bool dropHead(GType type) - { - return gst_data_queue_drop_head(gstDataQueue, type) != 0; - } - - /** - * Flushes all the contents of the @queue. Any call to #gst_data_queue_push and - * #gst_data_queue_pop will be released. - * MT safe. - * - * Since: 1.2 - */ - public void flush() - { - gst_data_queue_flush(gstDataQueue); - } - - /** - * Get the current level of the queue. - * - * Params: - * level = the location to store the result - * - * Since: 1.2 - */ - public void getLevel(out GstDataQueueSize level) - { - gst_data_queue_get_level(gstDataQueue, &level); - } - - /** - * Queries if there are any items in the @queue. - * MT safe. - * - * Returns: %TRUE if @queue is empty. - * - * Since: 1.2 - */ - public bool isEmpty() - { - return gst_data_queue_is_empty(gstDataQueue) != 0; - } - - /** - * Queries if @queue is full. This check will be done using the - * #GstDataQueueCheckFullFunction registered with @queue. - * MT safe. - * - * Returns: %TRUE if @queue is full. - * - * Since: 1.2 - */ - public bool isFull() - { - return gst_data_queue_is_full(gstDataQueue) != 0; - } - - /** - * Inform the queue that the limits for the fullness check have changed and that - * any blocking gst_data_queue_push() should be unblocked to recheck the limits. - * - * Since: 1.2 - */ - public void limitsChanged() - { - gst_data_queue_limits_changed(gstDataQueue); - } - - /** - * Retrieves the first @item available on the @queue without removing it. - * If the queue is currently empty, the call will block until at least - * one item is available, OR the @queue is set to the flushing state. - * MT safe. - * - * Params: - * item = pointer to store the returned #GstDataQueueItem. - * - * Returns: %TRUE if an @item was successfully retrieved from the @queue. - * - * Since: 1.2 - */ - public bool peek(out GstDataQueueItem* item) - { - return gst_data_queue_peek(gstDataQueue, &item) != 0; - } - - /** - * Retrieves the first @item available on the @queue. If the queue is currently - * empty, the call will block until at least one item is available, OR the - * @queue is set to the flushing state. - * MT safe. - * - * Params: - * item = pointer to store the returned #GstDataQueueItem. - * - * Returns: %TRUE if an @item was successfully retrieved from the @queue. - * - * Since: 1.2 - */ - public bool pop(out GstDataQueueItem* item) - { - return gst_data_queue_pop(gstDataQueue, &item) != 0; - } - - /** - * Pushes a #GstDataQueueItem (or a structure that begins with the same fields) - * on the @queue. If the @queue is full, the call will block until space is - * available, OR the @queue is set to flushing state. - * MT safe. - * - * Note that this function has slightly different semantics than gst_pad_push() - * and gst_pad_push_event(): this function only takes ownership of @item and - * the #GstMiniObject contained in @item if the push was successful. If %FALSE - * is returned, the caller is responsible for freeing @item and its contents. - * - * Params: - * item = a #GstDataQueueItem. - * - * Returns: %TRUE if the @item was successfully pushed on the @queue. - * - * Since: 1.2 - */ - public bool push(GstDataQueueItem* item) - { - return gst_data_queue_push(gstDataQueue, item) != 0; - } - - /** - * Pushes a #GstDataQueueItem (or a structure that begins with the same fields) - * on the @queue. It ignores if the @queue is full or not and forces the @item - * to be pushed anyway. - * MT safe. - * - * Note that this function has slightly different semantics than gst_pad_push() - * and gst_pad_push_event(): this function only takes ownership of @item and - * the #GstMiniObject contained in @item if the push was successful. If %FALSE - * is returned, the caller is responsible for freeing @item and its contents. - * - * Params: - * item = a #GstDataQueueItem. - * - * Returns: %TRUE if the @item was successfully pushed on the @queue. - * - * Since: 1.2 - */ - public bool pushForce(GstDataQueueItem* item) - { - return gst_data_queue_push_force(gstDataQueue, item) != 0; - } - - /** - * Sets the queue to flushing state if @flushing is %TRUE. If set to flushing - * state, any incoming data on the @queue will be discarded. Any call currently - * blocking on #gst_data_queue_push or #gst_data_queue_pop will return straight - * away with a return value of %FALSE. While the @queue is in flushing state, - * all calls to those two functions will return %FALSE. - * - * MT Safe. - * - * Params: - * flushing = a #gboolean stating if the queue will be flushing or not. - * - * Since: 1.2 - */ - public void setFlushing(bool flushing) - { - gst_data_queue_set_flushing(gstDataQueue, flushing); - } - - /** - * Reports that the queue became empty (empty). - * A queue is empty if the total amount of visible items inside it (num-visible, time, - * size) is lower than the boundary values which can be set through the GObject - * properties. - */ - gulong addOnEmpty(void delegate(DataQueue) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "empty", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Reports that the queue became full (full). - * A queue is full if the total amount of data inside it (num-visible, time, - * size) is higher than the boundary values which can be set through the GObject - * properties. - */ - gulong addOnFull(void delegate(DataQueue) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "full", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gst/base/FlowCombiner.d b/generated/gstreamer/gst/base/FlowCombiner.d deleted file mode 100644 index 181b05d15..000000000 --- a/generated/gstreamer/gst/base/FlowCombiner.d +++ /dev/null @@ -1,261 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.FlowCombiner; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gstreamer.Pad; -private import gtkd.Loader; - - -/** - * Utility struct to help handling #GstFlowReturn combination. Useful for - * #GstElements that have multiple source pads and need to combine - * the different #GstFlowReturn for those pads. - * - * #GstFlowCombiner works by using the last #GstFlowReturn for all #GstPad - * it has in its list and computes the combined return value and provides - * it to the caller. - * - * To add a new pad to the #GstFlowCombiner use gst_flow_combiner_add_pad(). - * The new #GstPad is stored with a default value of %GST_FLOW_OK. - * - * In case you want a #GstPad to be removed, use gst_flow_combiner_remove_pad(). - * - * Please be aware that this struct isn't thread safe as its designed to be - * used by demuxers, those usually will have a single thread operating it. - * - * These functions will take refs on the passed #GstPads. - * - * Aside from reducing the user's code size, the main advantage of using this - * helper struct is to follow the standard rules for #GstFlowReturn combination. - * These rules are: - * - * * %GST_FLOW_EOS: only if all returns are EOS too - * * %GST_FLOW_NOT_LINKED: only if all returns are NOT_LINKED too - * * %GST_FLOW_ERROR or below: if at least one returns an error return - * * %GST_FLOW_NOT_NEGOTIATED: if at least one returns a not-negotiated return - * * %GST_FLOW_FLUSHING: if at least one returns flushing - * * %GST_FLOW_OK: otherwise - * - * %GST_FLOW_ERROR or below, GST_FLOW_NOT_NEGOTIATED and GST_FLOW_FLUSHING are - * returned immediately from the gst_flow_combiner_update_flow() function. - * - * Since: 1.4 - */ -public class FlowCombiner -{ - /** the main Gtk struct */ - protected GstFlowCombiner* gstFlowCombiner; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstFlowCombiner* getFlowCombinerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstFlowCombiner; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstFlowCombiner; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstFlowCombiner* gstFlowCombiner, bool ownedRef = false) - { - this.gstFlowCombiner = gstFlowCombiner; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTBASE) && ownedRef ) - gst_flow_combiner_unref(gstFlowCombiner); - } - - - /** */ - public static GType getType() - { - return gst_flow_combiner_get_type(); - } - - /** - * Creates a new #GstFlowCombiner, use gst_flow_combiner_free() to free it. - * - * Returns: A new #GstFlowCombiner - * - * Since: 1.4 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_flow_combiner_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstFlowCombiner*) __p); - } - - /** - * Adds a new #GstPad to the #GstFlowCombiner. - * - * Params: - * pad = the #GstPad that is being added - * - * Since: 1.4 - */ - public void addPad(Pad pad) - { - gst_flow_combiner_add_pad(gstFlowCombiner, (pad is null) ? null : pad.getPadStruct()); - } - - /** - * Removes all pads from a #GstFlowCombiner and resets it to its initial state. - * - * Since: 1.6 - */ - public void clear() - { - gst_flow_combiner_clear(gstFlowCombiner); - } - - /** - * Frees a #GstFlowCombiner struct and all its internal data. - * - * Since: 1.4 - */ - public void free() - { - gst_flow_combiner_free(gstFlowCombiner); - ownedRef = false; - } - - alias doref = ref_; - /** - * Increments the reference count on the #GstFlowCombiner. - * - * Returns: the #GstFlowCombiner. - * - * Since: 1.12.1 - */ - public FlowCombiner ref_() - { - auto __p = gst_flow_combiner_ref(gstFlowCombiner); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FlowCombiner)(cast(GstFlowCombiner*) __p, true); - } - - /** - * Removes a #GstPad from the #GstFlowCombiner. - * - * Params: - * pad = the #GstPad to remove - * - * Since: 1.4 - */ - public void removePad(Pad pad) - { - gst_flow_combiner_remove_pad(gstFlowCombiner, (pad is null) ? null : pad.getPadStruct()); - } - - /** - * Reset flow combiner and all pads to their initial state without removing pads. - * - * Since: 1.6 - */ - public void reset() - { - gst_flow_combiner_reset(gstFlowCombiner); - } - - /** - * Decrements the reference count on the #GstFlowCombiner. - * - * Since: 1.12.1 - */ - public void unref() - { - gst_flow_combiner_unref(gstFlowCombiner); - } - - /** - * Computes the combined flow return for the pads in it. - * - * The #GstFlowReturn parameter should be the last flow return update for a pad - * in this #GstFlowCombiner. It will use this value to be able to shortcut some - * combinations and avoid looking over all pads again. e.g. The last combined - * return is the same as the latest obtained #GstFlowReturn. - * - * Params: - * fret = the latest #GstFlowReturn received for a pad in this #GstFlowCombiner - * - * Returns: The combined #GstFlowReturn - * - * Since: 1.4 - */ - public GstFlowReturn updateFlow(GstFlowReturn fret) - { - return gst_flow_combiner_update_flow(gstFlowCombiner, fret); - } - - /** - * Sets the provided pad's last flow return to provided value and computes - * the combined flow return for the pads in it. - * - * The #GstFlowReturn parameter should be the last flow return update for a pad - * in this #GstFlowCombiner. It will use this value to be able to shortcut some - * combinations and avoid looking over all pads again. e.g. The last combined - * return is the same as the latest obtained #GstFlowReturn. - * - * Params: - * pad = the #GstPad whose #GstFlowReturn to update - * fret = the latest #GstFlowReturn received for a pad in this #GstFlowCombiner - * - * Returns: The combined #GstFlowReturn - * - * Since: 1.6 - */ - public GstFlowReturn updatePadFlow(Pad pad, GstFlowReturn fret) - { - return gst_flow_combiner_update_pad_flow(gstFlowCombiner, (pad is null) ? null : pad.getPadStruct(), fret); - } -} diff --git a/generated/gstreamer/gst/base/PushSrc.d b/generated/gstreamer/gst/base/PushSrc.d deleted file mode 100644 index 33bb395f1..000000000 --- a/generated/gstreamer/gst/base/PushSrc.d +++ /dev/null @@ -1,87 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.PushSrc; - -private import gst.base.BaseSrc; -private import gst.base.c.functions; -public import gst.base.c.types; - - -/** - * This class is mostly useful for elements that cannot do - * random access, or at least very slowly. The source usually - * prefers to push out a fixed size buffer. - * - * Subclasses usually operate in a format that is different from the - * default GST_FORMAT_BYTES format of #GstBaseSrc. - * - * Classes extending this base class will usually be scheduled - * in a push based mode. If the peer accepts to operate without - * offsets and within the limits of the allowed block size, this - * class can operate in getrange based mode automatically. To make - * this possible, the subclass should implement and override the - * SCHEDULING query. - * - * The subclass should extend the methods from the baseclass in - * addition to the ::create method. - * - * Seeking, flushing, scheduling and sync is all handled by this - * base class. - */ -public class PushSrc : BaseSrc -{ - /** the main Gtk struct */ - protected GstPushSrc* gstPushSrc; - - /** Get the main Gtk struct */ - public GstPushSrc* getPushSrcStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPushSrc; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstPushSrc; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPushSrc* gstPushSrc, bool ownedRef = false) - { - this.gstPushSrc = gstPushSrc; - super(cast(GstBaseSrc*)gstPushSrc, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_push_src_get_type(); - } -} diff --git a/generated/gstreamer/gst/base/QueueArray.d b/generated/gstreamer/gst/base/QueueArray.d deleted file mode 100644 index d781a3132..000000000 --- a/generated/gstreamer/gst/base/QueueArray.d +++ /dev/null @@ -1,390 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.QueueArray; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gst.base.c.functions; -public import gst.base.c.types; -private import gtkd.Loader; - - -/** - * #GstQueueArray is an object that provides standard queue functionality - * based on an array instead of linked lists. This reduces the overhead - * caused by memory management by a large factor. - */ -public class QueueArray -{ - /** the main Gtk struct */ - protected GstQueueArray* gstQueueArray; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstQueueArray* getQueueArrayStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstQueueArray; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstQueueArray; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstQueueArray* gstQueueArray, bool ownedRef = false) - { - this.gstQueueArray = gstQueueArray; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTBASE) && ownedRef ) - gst_queue_array_free(gstQueueArray); - } - - - /** - * Clears queue @array and frees all memory associated to it. - * - * Since: 1.16 - */ - public void clear() - { - gst_queue_array_clear(gstQueueArray); - } - - /** - * Drops the queue element at position @idx from queue @array. - * - * Params: - * idx = index to drop - * - * Returns: the dropped element - * - * Since: 1.2 - */ - public void* dropElement(uint idx) - { - return gst_queue_array_drop_element(gstQueueArray, idx); - } - - /** - * Drops the queue element at position @idx from queue @array and copies the - * data of the element or structure that was removed into @p_struct if - * @p_struct is set (not NULL). - * - * Params: - * idx = index to drop - * pStruct = address into which to store the data of the dropped structure, or NULL - * - * Returns: TRUE on success, or FALSE on error - * - * Since: 1.6 - */ - public bool dropStruct(uint idx, void* pStruct) - { - return gst_queue_array_drop_struct(gstQueueArray, idx, pStruct) != 0; - } - - /** - * Finds an element in the queue @array, either by comparing every element - * with @func or by looking up @data if no compare function @func is provided, - * and returning the index of the found element. - * - * Params: - * func = comparison function, or %NULL to find @data by value - * data = data for comparison function - * - * Returns: Index of the found element or -1 if nothing was found. - * - * Since: 1.2 - */ - public uint find(GCompareFunc func, void* data) - { - return gst_queue_array_find(gstQueueArray, func, data); - } - - /** - * Frees queue @array and all memory associated to it. - * - * Since: 1.2 - */ - public void free() - { - gst_queue_array_free(gstQueueArray); - ownedRef = false; - } - - /** - * Returns the length of the queue @array - * - * Returns: the length of the queue @array. - * - * Since: 1.2 - */ - public uint getLength() - { - return gst_queue_array_get_length(gstQueueArray); - } - - /** - * Checks if the queue @array is empty. - * - * Returns: %TRUE if the queue @array is empty - * - * Since: 1.2 - */ - public bool isEmpty() - { - return gst_queue_array_is_empty(gstQueueArray) != 0; - } - - /** - * Returns the head of the queue @array and does not - * remove it from the queue. - * - * Returns: The head of the queue - * - * Since: 1.2 - */ - public void* peekHead() - { - return gst_queue_array_peek_head(gstQueueArray); - } - - /** - * Returns the head of the queue @array without removing it from the queue. - * - * Returns: pointer to element or struct, or NULL if @array was empty. The - * data pointed to by the returned pointer stays valid only as long as - * the queue array is not modified further! - * - * Since: 1.6 - */ - public void* peekHeadStruct() - { - return gst_queue_array_peek_head_struct(gstQueueArray); - } - - /** - * Returns the item at @idx in @array, but does not remove it from the queue. - * - * Returns: The item, or %NULL if @idx was out of bounds - * - * Since: 1.16 - */ - public void* peekNth(uint idx) - { - return gst_queue_array_peek_nth(gstQueueArray, idx); - } - - /** - * Returns the item at @idx in @array, but does not remove it from the queue. - * - * Returns: The item, or %NULL if @idx was out of bounds - * - * Since: 1.16 - */ - public void* peekNthStruct(uint idx) - { - return gst_queue_array_peek_nth_struct(gstQueueArray, idx); - } - - /** - * Returns the tail of the queue @array, but does not remove it from the queue. - * - * Returns: The tail of the queue - * - * Since: 1.14 - */ - public void* peekTail() - { - return gst_queue_array_peek_tail(gstQueueArray); - } - - /** - * Returns the tail of the queue @array, but does not remove it from the queue. - * - * Returns: The tail of the queue - * - * Since: 1.14 - */ - public void* peekTailStruct() - { - return gst_queue_array_peek_tail_struct(gstQueueArray); - } - - /** - * Returns and head of the queue @array and removes - * it from the queue. - * - * Returns: The head of the queue - * - * Since: 1.2 - */ - public void* popHead() - { - return gst_queue_array_pop_head(gstQueueArray); - } - - /** - * Returns the head of the queue @array and removes it from the queue. - * - * Returns: pointer to element or struct, or NULL if @array was empty. The - * data pointed to by the returned pointer stays valid only as long as - * the queue array is not modified further! - * - * Since: 1.6 - */ - public void* popHeadStruct() - { - return gst_queue_array_pop_head_struct(gstQueueArray); - } - - /** - * Returns the tail of the queue @array and removes - * it from the queue. - * - * Returns: The tail of the queue - * - * Since: 1.14 - */ - public void* popTail() - { - return gst_queue_array_pop_tail(gstQueueArray); - } - - /** - * Returns the tail of the queue @array and removes - * it from the queue. - * - * Returns: The tail of the queue - * - * Since: 1.14 - */ - public void* popTailStruct() - { - return gst_queue_array_pop_tail_struct(gstQueueArray); - } - - /** - * Pushes @data to the tail of the queue @array. - * - * Params: - * data = object to push - * - * Since: 1.2 - */ - public void pushTail(void* data) - { - gst_queue_array_push_tail(gstQueueArray, data); - } - - /** */ - public void pushTailStruct(void* pStruct) - { - gst_queue_array_push_tail_struct(gstQueueArray, pStruct); - } - - /** - * Sets a function to clear an element of @array. - * - * The @clear_func will be called when an element in the array - * data segment is removed and when the array is freed and data - * segment is deallocated as well. @clear_func will be passed a - * pointer to the element to clear, rather than the element itself. - * - * Note that in contrast with other uses of #GDestroyNotify - * functions, @clear_func is expected to clear the contents of - * the array element it is given, but not free the element itself. - * - * Params: - * clearFunc = a function to clear an element of @array - * - * Since: 1.16 - */ - public void setClearFunc(GDestroyNotify clearFunc) - { - gst_queue_array_set_clear_func(gstQueueArray, clearFunc); - } - - /** - * Allocates a new #GstQueueArray object with an initial - * queue size of @initial_size. - * - * Params: - * initialSize = Initial size of the new queue - * - * Returns: a new #GstQueueArray object - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint initialSize) - { - auto __p = gst_queue_array_new(initialSize); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstQueueArray*) __p); - } - - /** - * Allocates a new #GstQueueArray object for elements (e.g. structures) - * of size @struct_size, with an initial queue size of @initial_size. - * - * Params: - * structSize = Size of each element (e.g. structure) in the array - * initialSize = Initial size of the new queue - * - * Returns: a new #GstQueueArray object - * - * Since: 1.6 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(size_t structSize, uint initialSize) - { - auto __p = gst_queue_array_new_for_struct(structSize, initialSize); - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_struct"); - } - - this(cast(GstQueueArray*) __p); - } -} diff --git a/generated/gstreamer/gst/base/c/functions.d b/generated/gstreamer/gst/base/c/functions.d deleted file mode 100644 index 2932a8f39..000000000 --- a/generated/gstreamer/gst/base/c/functions.d +++ /dev/null @@ -1,1325 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.c.functions; - -import std.stdio; -import gst.base.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GSTBASE = ["libgstbase-1.0-0.dll;gstbase-1.0-0.dll;gstbase-1.dll"]; -else version (OSX) - static immutable LIBRARY_GSTBASE = ["libgstbase-1.0.0.dylib"]; -else - static immutable LIBRARY_GSTBASE = ["libgstbase-1.0.so.0"]; - -shared static this() -{ - // gst.base.Adapter - - Linker.link(gst_adapter_get_type, "gst_adapter_get_type", LIBRARY_GSTBASE); - Linker.link(gst_adapter_new, "gst_adapter_new", LIBRARY_GSTBASE); - Linker.link(gst_adapter_available, "gst_adapter_available", LIBRARY_GSTBASE); - Linker.link(gst_adapter_available_fast, "gst_adapter_available_fast", LIBRARY_GSTBASE); - Linker.link(gst_adapter_clear, "gst_adapter_clear", LIBRARY_GSTBASE); - Linker.link(gst_adapter_copy, "gst_adapter_copy", LIBRARY_GSTBASE); - Linker.link(gst_adapter_copy_bytes, "gst_adapter_copy_bytes", LIBRARY_GSTBASE); - Linker.link(gst_adapter_distance_from_discont, "gst_adapter_distance_from_discont", LIBRARY_GSTBASE); - Linker.link(gst_adapter_dts_at_discont, "gst_adapter_dts_at_discont", LIBRARY_GSTBASE); - Linker.link(gst_adapter_flush, "gst_adapter_flush", LIBRARY_GSTBASE); - Linker.link(gst_adapter_get_buffer, "gst_adapter_get_buffer", LIBRARY_GSTBASE); - Linker.link(gst_adapter_get_buffer_fast, "gst_adapter_get_buffer_fast", LIBRARY_GSTBASE); - Linker.link(gst_adapter_get_buffer_list, "gst_adapter_get_buffer_list", LIBRARY_GSTBASE); - Linker.link(gst_adapter_get_list, "gst_adapter_get_list", LIBRARY_GSTBASE); - Linker.link(gst_adapter_map, "gst_adapter_map", LIBRARY_GSTBASE); - Linker.link(gst_adapter_masked_scan_uint32, "gst_adapter_masked_scan_uint32", LIBRARY_GSTBASE); - Linker.link(gst_adapter_masked_scan_uint32_peek, "gst_adapter_masked_scan_uint32_peek", LIBRARY_GSTBASE); - Linker.link(gst_adapter_offset_at_discont, "gst_adapter_offset_at_discont", LIBRARY_GSTBASE); - Linker.link(gst_adapter_prev_dts, "gst_adapter_prev_dts", LIBRARY_GSTBASE); - Linker.link(gst_adapter_prev_dts_at_offset, "gst_adapter_prev_dts_at_offset", LIBRARY_GSTBASE); - Linker.link(gst_adapter_prev_offset, "gst_adapter_prev_offset", LIBRARY_GSTBASE); - Linker.link(gst_adapter_prev_pts, "gst_adapter_prev_pts", LIBRARY_GSTBASE); - Linker.link(gst_adapter_prev_pts_at_offset, "gst_adapter_prev_pts_at_offset", LIBRARY_GSTBASE); - Linker.link(gst_adapter_pts_at_discont, "gst_adapter_pts_at_discont", LIBRARY_GSTBASE); - Linker.link(gst_adapter_push, "gst_adapter_push", LIBRARY_GSTBASE); - Linker.link(gst_adapter_take, "gst_adapter_take", LIBRARY_GSTBASE); - Linker.link(gst_adapter_take_buffer, "gst_adapter_take_buffer", LIBRARY_GSTBASE); - Linker.link(gst_adapter_take_buffer_fast, "gst_adapter_take_buffer_fast", LIBRARY_GSTBASE); - Linker.link(gst_adapter_take_buffer_list, "gst_adapter_take_buffer_list", LIBRARY_GSTBASE); - Linker.link(gst_adapter_take_list, "gst_adapter_take_list", LIBRARY_GSTBASE); - Linker.link(gst_adapter_unmap, "gst_adapter_unmap", LIBRARY_GSTBASE); - - // gst.base.Aggregator - - Linker.link(gst_aggregator_get_type, "gst_aggregator_get_type", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_finish_buffer, "gst_aggregator_finish_buffer", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_finish_buffer_list, "gst_aggregator_finish_buffer_list", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_get_allocator, "gst_aggregator_get_allocator", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_get_buffer_pool, "gst_aggregator_get_buffer_pool", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_get_latency, "gst_aggregator_get_latency", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_negotiate, "gst_aggregator_negotiate", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_peek_next_sample, "gst_aggregator_peek_next_sample", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_selected_samples, "gst_aggregator_selected_samples", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_set_latency, "gst_aggregator_set_latency", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_set_src_caps, "gst_aggregator_set_src_caps", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_simple_get_next_time, "gst_aggregator_simple_get_next_time", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_update_segment, "gst_aggregator_update_segment", LIBRARY_GSTBASE); - - // gst.base.AggregatorPad - - Linker.link(gst_aggregator_pad_get_type, "gst_aggregator_pad_get_type", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_pad_drop_buffer, "gst_aggregator_pad_drop_buffer", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_pad_has_buffer, "gst_aggregator_pad_has_buffer", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_pad_is_eos, "gst_aggregator_pad_is_eos", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_pad_peek_buffer, "gst_aggregator_pad_peek_buffer", LIBRARY_GSTBASE); - Linker.link(gst_aggregator_pad_pop_buffer, "gst_aggregator_pad_pop_buffer", LIBRARY_GSTBASE); - - // gst.base.BaseParse - - Linker.link(gst_base_parse_get_type, "gst_base_parse_get_type", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_add_index_entry, "gst_base_parse_add_index_entry", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_convert_default, "gst_base_parse_convert_default", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_drain, "gst_base_parse_drain", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_finish_frame, "gst_base_parse_finish_frame", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_merge_tags, "gst_base_parse_merge_tags", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_push_frame, "gst_base_parse_push_frame", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_average_bitrate, "gst_base_parse_set_average_bitrate", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_duration, "gst_base_parse_set_duration", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_frame_rate, "gst_base_parse_set_frame_rate", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_has_timing_info, "gst_base_parse_set_has_timing_info", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_infer_ts, "gst_base_parse_set_infer_ts", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_latency, "gst_base_parse_set_latency", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_min_frame_size, "gst_base_parse_set_min_frame_size", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_passthrough, "gst_base_parse_set_passthrough", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_pts_interpolation, "gst_base_parse_set_pts_interpolation", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_syncable, "gst_base_parse_set_syncable", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_set_ts_at_offset, "gst_base_parse_set_ts_at_offset", LIBRARY_GSTBASE); - - // gst.base.BaseParseFrame - - Linker.link(gst_base_parse_frame_get_type, "gst_base_parse_frame_get_type", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_frame_new, "gst_base_parse_frame_new", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_frame_copy, "gst_base_parse_frame_copy", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_frame_free, "gst_base_parse_frame_free", LIBRARY_GSTBASE); - Linker.link(gst_base_parse_frame_init, "gst_base_parse_frame_init", LIBRARY_GSTBASE); - - // gst.base.BaseSink - - Linker.link(gst_base_sink_get_type, "gst_base_sink_get_type", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_do_preroll, "gst_base_sink_do_preroll", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_blocksize, "gst_base_sink_get_blocksize", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_drop_out_of_segment, "gst_base_sink_get_drop_out_of_segment", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_last_sample, "gst_base_sink_get_last_sample", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_latency, "gst_base_sink_get_latency", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_max_bitrate, "gst_base_sink_get_max_bitrate", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_max_lateness, "gst_base_sink_get_max_lateness", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_processing_deadline, "gst_base_sink_get_processing_deadline", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_render_delay, "gst_base_sink_get_render_delay", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_stats, "gst_base_sink_get_stats", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_sync, "gst_base_sink_get_sync", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_throttle_time, "gst_base_sink_get_throttle_time", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_get_ts_offset, "gst_base_sink_get_ts_offset", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_is_async_enabled, "gst_base_sink_is_async_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_is_last_sample_enabled, "gst_base_sink_is_last_sample_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_is_qos_enabled, "gst_base_sink_is_qos_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_query_latency, "gst_base_sink_query_latency", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_async_enabled, "gst_base_sink_set_async_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_blocksize, "gst_base_sink_set_blocksize", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_drop_out_of_segment, "gst_base_sink_set_drop_out_of_segment", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_last_sample_enabled, "gst_base_sink_set_last_sample_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_max_bitrate, "gst_base_sink_set_max_bitrate", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_max_lateness, "gst_base_sink_set_max_lateness", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_processing_deadline, "gst_base_sink_set_processing_deadline", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_qos_enabled, "gst_base_sink_set_qos_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_render_delay, "gst_base_sink_set_render_delay", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_sync, "gst_base_sink_set_sync", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_throttle_time, "gst_base_sink_set_throttle_time", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_set_ts_offset, "gst_base_sink_set_ts_offset", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_wait, "gst_base_sink_wait", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_wait_clock, "gst_base_sink_wait_clock", LIBRARY_GSTBASE); - Linker.link(gst_base_sink_wait_preroll, "gst_base_sink_wait_preroll", LIBRARY_GSTBASE); - - // gst.base.BaseSrc - - Linker.link(gst_base_src_get_type, "gst_base_src_get_type", LIBRARY_GSTBASE); - Linker.link(gst_base_src_get_allocator, "gst_base_src_get_allocator", LIBRARY_GSTBASE); - Linker.link(gst_base_src_get_blocksize, "gst_base_src_get_blocksize", LIBRARY_GSTBASE); - Linker.link(gst_base_src_get_buffer_pool, "gst_base_src_get_buffer_pool", LIBRARY_GSTBASE); - Linker.link(gst_base_src_get_do_timestamp, "gst_base_src_get_do_timestamp", LIBRARY_GSTBASE); - Linker.link(gst_base_src_is_async, "gst_base_src_is_async", LIBRARY_GSTBASE); - Linker.link(gst_base_src_is_live, "gst_base_src_is_live", LIBRARY_GSTBASE); - Linker.link(gst_base_src_negotiate, "gst_base_src_negotiate", LIBRARY_GSTBASE); - Linker.link(gst_base_src_new_seamless_segment, "gst_base_src_new_seamless_segment", LIBRARY_GSTBASE); - Linker.link(gst_base_src_new_segment, "gst_base_src_new_segment", LIBRARY_GSTBASE); - Linker.link(gst_base_src_query_latency, "gst_base_src_query_latency", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_async, "gst_base_src_set_async", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_automatic_eos, "gst_base_src_set_automatic_eos", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_blocksize, "gst_base_src_set_blocksize", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_caps, "gst_base_src_set_caps", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_do_timestamp, "gst_base_src_set_do_timestamp", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_dynamic_size, "gst_base_src_set_dynamic_size", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_format, "gst_base_src_set_format", LIBRARY_GSTBASE); - Linker.link(gst_base_src_set_live, "gst_base_src_set_live", LIBRARY_GSTBASE); - Linker.link(gst_base_src_start_complete, "gst_base_src_start_complete", LIBRARY_GSTBASE); - Linker.link(gst_base_src_start_wait, "gst_base_src_start_wait", LIBRARY_GSTBASE); - Linker.link(gst_base_src_submit_buffer_list, "gst_base_src_submit_buffer_list", LIBRARY_GSTBASE); - Linker.link(gst_base_src_wait_playing, "gst_base_src_wait_playing", LIBRARY_GSTBASE); - - // gst.base.BaseTransform - - Linker.link(gst_base_transform_get_type, "gst_base_transform_get_type", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_get_allocator, "gst_base_transform_get_allocator", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_get_buffer_pool, "gst_base_transform_get_buffer_pool", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_is_in_place, "gst_base_transform_is_in_place", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_is_passthrough, "gst_base_transform_is_passthrough", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_is_qos_enabled, "gst_base_transform_is_qos_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_reconfigure, "gst_base_transform_reconfigure", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_reconfigure_sink, "gst_base_transform_reconfigure_sink", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_reconfigure_src, "gst_base_transform_reconfigure_src", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_set_gap_aware, "gst_base_transform_set_gap_aware", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_set_in_place, "gst_base_transform_set_in_place", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_set_passthrough, "gst_base_transform_set_passthrough", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_set_prefer_passthrough, "gst_base_transform_set_prefer_passthrough", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_set_qos_enabled, "gst_base_transform_set_qos_enabled", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_update_qos, "gst_base_transform_update_qos", LIBRARY_GSTBASE); - Linker.link(gst_base_transform_update_src_caps, "gst_base_transform_update_src_caps", LIBRARY_GSTBASE); - - // gst.base.BitReader - - Linker.link(gst_bit_reader_free, "gst_bit_reader_free", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_get_bits_uint16, "gst_bit_reader_get_bits_uint16", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_get_bits_uint32, "gst_bit_reader_get_bits_uint32", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_get_bits_uint64, "gst_bit_reader_get_bits_uint64", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_get_bits_uint8, "gst_bit_reader_get_bits_uint8", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_get_pos, "gst_bit_reader_get_pos", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_get_remaining, "gst_bit_reader_get_remaining", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_get_size, "gst_bit_reader_get_size", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_init, "gst_bit_reader_init", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_peek_bits_uint16, "gst_bit_reader_peek_bits_uint16", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_peek_bits_uint32, "gst_bit_reader_peek_bits_uint32", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_peek_bits_uint64, "gst_bit_reader_peek_bits_uint64", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_peek_bits_uint8, "gst_bit_reader_peek_bits_uint8", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_set_pos, "gst_bit_reader_set_pos", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_skip, "gst_bit_reader_skip", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_skip_to_byte, "gst_bit_reader_skip_to_byte", LIBRARY_GSTBASE); - Linker.link(gst_bit_reader_new, "gst_bit_reader_new", LIBRARY_GSTBASE); - - // gst.base.BitWriter - - Linker.link(gst_bit_writer_align_bytes, "gst_bit_writer_align_bytes", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_free, "gst_bit_writer_free", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_free_and_get_buffer, "gst_bit_writer_free_and_get_buffer", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_free_and_get_data, "gst_bit_writer_free_and_get_data", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_get_data, "gst_bit_writer_get_data", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_get_remaining, "gst_bit_writer_get_remaining", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_get_size, "gst_bit_writer_get_size", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_init, "gst_bit_writer_init", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_init_with_data, "gst_bit_writer_init_with_data", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_init_with_size, "gst_bit_writer_init_with_size", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_put_bits_uint16, "gst_bit_writer_put_bits_uint16", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_put_bits_uint32, "gst_bit_writer_put_bits_uint32", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_put_bits_uint64, "gst_bit_writer_put_bits_uint64", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_put_bits_uint8, "gst_bit_writer_put_bits_uint8", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_put_bytes, "gst_bit_writer_put_bytes", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_reset, "gst_bit_writer_reset", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_reset_and_get_buffer, "gst_bit_writer_reset_and_get_buffer", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_reset_and_get_data, "gst_bit_writer_reset_and_get_data", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_set_pos, "gst_bit_writer_set_pos", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_new, "gst_bit_writer_new", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_new_with_data, "gst_bit_writer_new_with_data", LIBRARY_GSTBASE); - Linker.link(gst_bit_writer_new_with_size, "gst_bit_writer_new_with_size", LIBRARY_GSTBASE); - - // gst.base.ByteReader - - Linker.link(gst_byte_reader_dup_data, "gst_byte_reader_dup_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_dup_string_utf16, "gst_byte_reader_dup_string_utf16", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_dup_string_utf32, "gst_byte_reader_dup_string_utf32", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_dup_string_utf8, "gst_byte_reader_dup_string_utf8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_free, "gst_byte_reader_free", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_data, "gst_byte_reader_get_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_float32_be, "gst_byte_reader_get_float32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_float32_le, "gst_byte_reader_get_float32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_float64_be, "gst_byte_reader_get_float64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_float64_le, "gst_byte_reader_get_float64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int16_be, "gst_byte_reader_get_int16_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int16_le, "gst_byte_reader_get_int16_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int24_be, "gst_byte_reader_get_int24_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int24_le, "gst_byte_reader_get_int24_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int32_be, "gst_byte_reader_get_int32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int32_le, "gst_byte_reader_get_int32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int64_be, "gst_byte_reader_get_int64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int64_le, "gst_byte_reader_get_int64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_int8, "gst_byte_reader_get_int8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_pos, "gst_byte_reader_get_pos", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_remaining, "gst_byte_reader_get_remaining", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_size, "gst_byte_reader_get_size", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_string_utf8, "gst_byte_reader_get_string_utf8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_sub_reader, "gst_byte_reader_get_sub_reader", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint16_be, "gst_byte_reader_get_uint16_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint16_le, "gst_byte_reader_get_uint16_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint24_be, "gst_byte_reader_get_uint24_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint24_le, "gst_byte_reader_get_uint24_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint32_be, "gst_byte_reader_get_uint32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint32_le, "gst_byte_reader_get_uint32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint64_be, "gst_byte_reader_get_uint64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint64_le, "gst_byte_reader_get_uint64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_get_uint8, "gst_byte_reader_get_uint8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_init, "gst_byte_reader_init", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_masked_scan_uint32, "gst_byte_reader_masked_scan_uint32", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_masked_scan_uint32_peek, "gst_byte_reader_masked_scan_uint32_peek", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_data, "gst_byte_reader_peek_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_float32_be, "gst_byte_reader_peek_float32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_float32_le, "gst_byte_reader_peek_float32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_float64_be, "gst_byte_reader_peek_float64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_float64_le, "gst_byte_reader_peek_float64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int16_be, "gst_byte_reader_peek_int16_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int16_le, "gst_byte_reader_peek_int16_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int24_be, "gst_byte_reader_peek_int24_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int24_le, "gst_byte_reader_peek_int24_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int32_be, "gst_byte_reader_peek_int32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int32_le, "gst_byte_reader_peek_int32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int64_be, "gst_byte_reader_peek_int64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int64_le, "gst_byte_reader_peek_int64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_int8, "gst_byte_reader_peek_int8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_string_utf8, "gst_byte_reader_peek_string_utf8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_sub_reader, "gst_byte_reader_peek_sub_reader", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint16_be, "gst_byte_reader_peek_uint16_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint16_le, "gst_byte_reader_peek_uint16_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint24_be, "gst_byte_reader_peek_uint24_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint24_le, "gst_byte_reader_peek_uint24_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint32_be, "gst_byte_reader_peek_uint32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint32_le, "gst_byte_reader_peek_uint32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint64_be, "gst_byte_reader_peek_uint64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint64_le, "gst_byte_reader_peek_uint64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_peek_uint8, "gst_byte_reader_peek_uint8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_set_pos, "gst_byte_reader_set_pos", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_skip, "gst_byte_reader_skip", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_skip_string_utf16, "gst_byte_reader_skip_string_utf16", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_skip_string_utf32, "gst_byte_reader_skip_string_utf32", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_skip_string_utf8, "gst_byte_reader_skip_string_utf8", LIBRARY_GSTBASE); - Linker.link(gst_byte_reader_new, "gst_byte_reader_new", LIBRARY_GSTBASE); - - // gst.base.ByteWriter - - Linker.link(gst_byte_writer_ensure_free_space, "gst_byte_writer_ensure_free_space", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_fill, "gst_byte_writer_fill", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_free, "gst_byte_writer_free", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_free_and_get_buffer, "gst_byte_writer_free_and_get_buffer", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_free_and_get_data, "gst_byte_writer_free_and_get_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_get_remaining, "gst_byte_writer_get_remaining", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_init, "gst_byte_writer_init", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_init_with_data, "gst_byte_writer_init_with_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_init_with_size, "gst_byte_writer_init_with_size", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_buffer, "gst_byte_writer_put_buffer", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_data, "gst_byte_writer_put_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_float32_be, "gst_byte_writer_put_float32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_float32_le, "gst_byte_writer_put_float32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_float64_be, "gst_byte_writer_put_float64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_float64_le, "gst_byte_writer_put_float64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int16_be, "gst_byte_writer_put_int16_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int16_le, "gst_byte_writer_put_int16_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int24_be, "gst_byte_writer_put_int24_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int24_le, "gst_byte_writer_put_int24_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int32_be, "gst_byte_writer_put_int32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int32_le, "gst_byte_writer_put_int32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int64_be, "gst_byte_writer_put_int64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int64_le, "gst_byte_writer_put_int64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_int8, "gst_byte_writer_put_int8", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_string_utf16, "gst_byte_writer_put_string_utf16", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_string_utf32, "gst_byte_writer_put_string_utf32", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_string_utf8, "gst_byte_writer_put_string_utf8", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint16_be, "gst_byte_writer_put_uint16_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint16_le, "gst_byte_writer_put_uint16_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint24_be, "gst_byte_writer_put_uint24_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint24_le, "gst_byte_writer_put_uint24_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint32_be, "gst_byte_writer_put_uint32_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint32_le, "gst_byte_writer_put_uint32_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint64_be, "gst_byte_writer_put_uint64_be", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint64_le, "gst_byte_writer_put_uint64_le", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_put_uint8, "gst_byte_writer_put_uint8", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_reset, "gst_byte_writer_reset", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_reset_and_get_buffer, "gst_byte_writer_reset_and_get_buffer", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_reset_and_get_data, "gst_byte_writer_reset_and_get_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_new, "gst_byte_writer_new", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_new_with_data, "gst_byte_writer_new_with_data", LIBRARY_GSTBASE); - Linker.link(gst_byte_writer_new_with_size, "gst_byte_writer_new_with_size", LIBRARY_GSTBASE); - - // gst.base.CollectPads - - Linker.link(gst_collect_pads_get_type, "gst_collect_pads_get_type", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_new, "gst_collect_pads_new", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_add_pad, "gst_collect_pads_add_pad", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_available, "gst_collect_pads_available", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_clip_running_time, "gst_collect_pads_clip_running_time", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_event_default, "gst_collect_pads_event_default", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_flush, "gst_collect_pads_flush", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_peek, "gst_collect_pads_peek", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_pop, "gst_collect_pads_pop", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_query_default, "gst_collect_pads_query_default", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_read_buffer, "gst_collect_pads_read_buffer", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_remove_pad, "gst_collect_pads_remove_pad", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_buffer_function, "gst_collect_pads_set_buffer_function", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_clip_function, "gst_collect_pads_set_clip_function", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_compare_function, "gst_collect_pads_set_compare_function", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_event_function, "gst_collect_pads_set_event_function", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_flush_function, "gst_collect_pads_set_flush_function", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_flushing, "gst_collect_pads_set_flushing", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_function, "gst_collect_pads_set_function", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_query_function, "gst_collect_pads_set_query_function", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_set_waiting, "gst_collect_pads_set_waiting", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_src_event_default, "gst_collect_pads_src_event_default", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_start, "gst_collect_pads_start", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_stop, "gst_collect_pads_stop", LIBRARY_GSTBASE); - Linker.link(gst_collect_pads_take_buffer, "gst_collect_pads_take_buffer", LIBRARY_GSTBASE); - - // gst.base.DataQueue - - Linker.link(gst_data_queue_get_type, "gst_data_queue_get_type", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_new, "gst_data_queue_new", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_drop_head, "gst_data_queue_drop_head", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_flush, "gst_data_queue_flush", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_get_level, "gst_data_queue_get_level", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_is_empty, "gst_data_queue_is_empty", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_is_full, "gst_data_queue_is_full", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_limits_changed, "gst_data_queue_limits_changed", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_peek, "gst_data_queue_peek", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_pop, "gst_data_queue_pop", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_push, "gst_data_queue_push", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_push_force, "gst_data_queue_push_force", LIBRARY_GSTBASE); - Linker.link(gst_data_queue_set_flushing, "gst_data_queue_set_flushing", LIBRARY_GSTBASE); - - // gst.base.FlowCombiner - - Linker.link(gst_flow_combiner_get_type, "gst_flow_combiner_get_type", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_new, "gst_flow_combiner_new", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_add_pad, "gst_flow_combiner_add_pad", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_clear, "gst_flow_combiner_clear", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_free, "gst_flow_combiner_free", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_ref, "gst_flow_combiner_ref", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_remove_pad, "gst_flow_combiner_remove_pad", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_reset, "gst_flow_combiner_reset", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_unref, "gst_flow_combiner_unref", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_update_flow, "gst_flow_combiner_update_flow", LIBRARY_GSTBASE); - Linker.link(gst_flow_combiner_update_pad_flow, "gst_flow_combiner_update_pad_flow", LIBRARY_GSTBASE); - - // gst.base.PushSrc - - Linker.link(gst_push_src_get_type, "gst_push_src_get_type", LIBRARY_GSTBASE); - - // gst.base.QueueArray - - Linker.link(gst_queue_array_clear, "gst_queue_array_clear", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_drop_element, "gst_queue_array_drop_element", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_drop_struct, "gst_queue_array_drop_struct", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_find, "gst_queue_array_find", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_free, "gst_queue_array_free", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_get_length, "gst_queue_array_get_length", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_is_empty, "gst_queue_array_is_empty", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_peek_head, "gst_queue_array_peek_head", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_peek_head_struct, "gst_queue_array_peek_head_struct", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_peek_nth, "gst_queue_array_peek_nth", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_peek_nth_struct, "gst_queue_array_peek_nth_struct", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_peek_tail, "gst_queue_array_peek_tail", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_peek_tail_struct, "gst_queue_array_peek_tail_struct", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_pop_head, "gst_queue_array_pop_head", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_pop_head_struct, "gst_queue_array_pop_head_struct", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_pop_tail, "gst_queue_array_pop_tail", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_pop_tail_struct, "gst_queue_array_pop_tail_struct", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_push_tail, "gst_queue_array_push_tail", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_push_tail_struct, "gst_queue_array_push_tail_struct", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_set_clear_func, "gst_queue_array_set_clear_func", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_new, "gst_queue_array_new", LIBRARY_GSTBASE); - Linker.link(gst_queue_array_new_for_struct, "gst_queue_array_new_for_struct", LIBRARY_GSTBASE); - - // gst.base.Base - - Linker.link(gst_type_find_helper, "gst_type_find_helper", LIBRARY_GSTBASE); - Linker.link(gst_type_find_helper_for_buffer, "gst_type_find_helper_for_buffer", LIBRARY_GSTBASE); - Linker.link(gst_type_find_helper_for_data, "gst_type_find_helper_for_data", LIBRARY_GSTBASE); - Linker.link(gst_type_find_helper_for_extension, "gst_type_find_helper_for_extension", LIBRARY_GSTBASE); - Linker.link(gst_type_find_helper_get_range, "gst_type_find_helper_get_range", LIBRARY_GSTBASE); - Linker.link(gst_type_find_helper_for_buffer_with_extension, "gst_type_find_helper_for_buffer_with_extension", LIBRARY_GSTBASE); - Linker.link(gst_type_find_helper_for_data_with_extension, "gst_type_find_helper_for_data_with_extension", LIBRARY_GSTBASE); - Linker.link(gst_type_find_helper_get_range_full, "gst_type_find_helper_get_range_full", LIBRARY_GSTBASE); -} - -__gshared extern(C) -{ - - // gst.base.Adapter - - GType function() c_gst_adapter_get_type; - GstAdapter* function() c_gst_adapter_new; - size_t function(GstAdapter* adapter) c_gst_adapter_available; - size_t function(GstAdapter* adapter) c_gst_adapter_available_fast; - void function(GstAdapter* adapter) c_gst_adapter_clear; - void function(GstAdapter* adapter, void* dest, size_t offset, size_t size) c_gst_adapter_copy; - GBytes* function(GstAdapter* adapter, size_t offset, size_t size) c_gst_adapter_copy_bytes; - ulong function(GstAdapter* adapter) c_gst_adapter_distance_from_discont; - GstClockTime function(GstAdapter* adapter) c_gst_adapter_dts_at_discont; - void function(GstAdapter* adapter, size_t flush) c_gst_adapter_flush; - GstBuffer* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_get_buffer; - GstBuffer* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_get_buffer_fast; - GstBufferList* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_get_buffer_list; - GList* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_get_list; - void* function(GstAdapter* adapter, size_t size) c_gst_adapter_map; - ptrdiff_t function(GstAdapter* adapter, uint mask, uint pattern, size_t offset, size_t size) c_gst_adapter_masked_scan_uint32; - ptrdiff_t function(GstAdapter* adapter, uint mask, uint pattern, size_t offset, size_t size, uint* value) c_gst_adapter_masked_scan_uint32_peek; - ulong function(GstAdapter* adapter) c_gst_adapter_offset_at_discont; - GstClockTime function(GstAdapter* adapter, ulong* distance) c_gst_adapter_prev_dts; - GstClockTime function(GstAdapter* adapter, size_t offset, ulong* distance) c_gst_adapter_prev_dts_at_offset; - ulong function(GstAdapter* adapter, ulong* distance) c_gst_adapter_prev_offset; - GstClockTime function(GstAdapter* adapter, ulong* distance) c_gst_adapter_prev_pts; - GstClockTime function(GstAdapter* adapter, size_t offset, ulong* distance) c_gst_adapter_prev_pts_at_offset; - GstClockTime function(GstAdapter* adapter) c_gst_adapter_pts_at_discont; - void function(GstAdapter* adapter, GstBuffer* buf) c_gst_adapter_push; - void* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_take; - GstBuffer* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_take_buffer; - GstBuffer* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_take_buffer_fast; - GstBufferList* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_take_buffer_list; - GList* function(GstAdapter* adapter, size_t nbytes) c_gst_adapter_take_list; - void function(GstAdapter* adapter) c_gst_adapter_unmap; - - // gst.base.Aggregator - - GType function() c_gst_aggregator_get_type; - GstFlowReturn function(GstAggregator* aggregator, GstBuffer* buffer) c_gst_aggregator_finish_buffer; - GstFlowReturn function(GstAggregator* aggregator, GstBufferList* bufferlist) c_gst_aggregator_finish_buffer_list; - void function(GstAggregator* self, GstAllocator** allocator, GstAllocationParams* params) c_gst_aggregator_get_allocator; - GstBufferPool* function(GstAggregator* self) c_gst_aggregator_get_buffer_pool; - GstClockTime function(GstAggregator* self) c_gst_aggregator_get_latency; - int function(GstAggregator* self) c_gst_aggregator_negotiate; - GstSample* function(GstAggregator* self, GstAggregatorPad* pad) c_gst_aggregator_peek_next_sample; - void function(GstAggregator* self, GstClockTime pts, GstClockTime dts, GstClockTime duration, GstStructure* info) c_gst_aggregator_selected_samples; - void function(GstAggregator* self, GstClockTime minLatency, GstClockTime maxLatency) c_gst_aggregator_set_latency; - void function(GstAggregator* self, GstCaps* caps) c_gst_aggregator_set_src_caps; - GstClockTime function(GstAggregator* self) c_gst_aggregator_simple_get_next_time; - void function(GstAggregator* self, GstSegment* segment) c_gst_aggregator_update_segment; - - // gst.base.AggregatorPad - - GType function() c_gst_aggregator_pad_get_type; - int function(GstAggregatorPad* pad) c_gst_aggregator_pad_drop_buffer; - int function(GstAggregatorPad* pad) c_gst_aggregator_pad_has_buffer; - int function(GstAggregatorPad* pad) c_gst_aggregator_pad_is_eos; - GstBuffer* function(GstAggregatorPad* pad) c_gst_aggregator_pad_peek_buffer; - GstBuffer* function(GstAggregatorPad* pad) c_gst_aggregator_pad_pop_buffer; - - // gst.base.BaseParse - - GType function() c_gst_base_parse_get_type; - int function(GstBaseParse* parse, ulong offset, GstClockTime ts, int key, int force) c_gst_base_parse_add_index_entry; - int function(GstBaseParse* parse, GstFormat srcFormat, long srcValue, GstFormat destFormat, long* destValue) c_gst_base_parse_convert_default; - void function(GstBaseParse* parse) c_gst_base_parse_drain; - GstFlowReturn function(GstBaseParse* parse, GstBaseParseFrame* frame, int size) c_gst_base_parse_finish_frame; - void function(GstBaseParse* parse, GstTagList* tags, GstTagMergeMode mode) c_gst_base_parse_merge_tags; - GstFlowReturn function(GstBaseParse* parse, GstBaseParseFrame* frame) c_gst_base_parse_push_frame; - void function(GstBaseParse* parse, uint bitrate) c_gst_base_parse_set_average_bitrate; - void function(GstBaseParse* parse, GstFormat fmt, long duration, int interval) c_gst_base_parse_set_duration; - void function(GstBaseParse* parse, uint fpsNum, uint fpsDen, uint leadIn, uint leadOut) c_gst_base_parse_set_frame_rate; - void function(GstBaseParse* parse, int hasTiming) c_gst_base_parse_set_has_timing_info; - void function(GstBaseParse* parse, int inferTs) c_gst_base_parse_set_infer_ts; - void function(GstBaseParse* parse, GstClockTime minLatency, GstClockTime maxLatency) c_gst_base_parse_set_latency; - void function(GstBaseParse* parse, uint minSize) c_gst_base_parse_set_min_frame_size; - void function(GstBaseParse* parse, int passthrough) c_gst_base_parse_set_passthrough; - void function(GstBaseParse* parse, int ptsInterpolate) c_gst_base_parse_set_pts_interpolation; - void function(GstBaseParse* parse, int syncable) c_gst_base_parse_set_syncable; - void function(GstBaseParse* parse, size_t offset) c_gst_base_parse_set_ts_at_offset; - - // gst.base.BaseParseFrame - - GType function() c_gst_base_parse_frame_get_type; - GstBaseParseFrame* function(GstBuffer* buffer, GstBaseParseFrameFlags flags, int overhead) c_gst_base_parse_frame_new; - GstBaseParseFrame* function(GstBaseParseFrame* frame) c_gst_base_parse_frame_copy; - void function(GstBaseParseFrame* frame) c_gst_base_parse_frame_free; - void function(GstBaseParseFrame* frame) c_gst_base_parse_frame_init; - - // gst.base.BaseSink - - GType function() c_gst_base_sink_get_type; - GstFlowReturn function(GstBaseSink* sink, GstMiniObject* obj) c_gst_base_sink_do_preroll; - uint function(GstBaseSink* sink) c_gst_base_sink_get_blocksize; - int function(GstBaseSink* sink) c_gst_base_sink_get_drop_out_of_segment; - GstSample* function(GstBaseSink* sink) c_gst_base_sink_get_last_sample; - GstClockTime function(GstBaseSink* sink) c_gst_base_sink_get_latency; - ulong function(GstBaseSink* sink) c_gst_base_sink_get_max_bitrate; - long function(GstBaseSink* sink) c_gst_base_sink_get_max_lateness; - GstClockTime function(GstBaseSink* sink) c_gst_base_sink_get_processing_deadline; - GstClockTime function(GstBaseSink* sink) c_gst_base_sink_get_render_delay; - GstStructure* function(GstBaseSink* sink) c_gst_base_sink_get_stats; - int function(GstBaseSink* sink) c_gst_base_sink_get_sync; - ulong function(GstBaseSink* sink) c_gst_base_sink_get_throttle_time; - GstClockTimeDiff function(GstBaseSink* sink) c_gst_base_sink_get_ts_offset; - int function(GstBaseSink* sink) c_gst_base_sink_is_async_enabled; - int function(GstBaseSink* sink) c_gst_base_sink_is_last_sample_enabled; - int function(GstBaseSink* sink) c_gst_base_sink_is_qos_enabled; - int function(GstBaseSink* sink, int* live, int* upstreamLive, GstClockTime* minLatency, GstClockTime* maxLatency) c_gst_base_sink_query_latency; - void function(GstBaseSink* sink, int enabled) c_gst_base_sink_set_async_enabled; - void function(GstBaseSink* sink, uint blocksize) c_gst_base_sink_set_blocksize; - void function(GstBaseSink* sink, int dropOutOfSegment) c_gst_base_sink_set_drop_out_of_segment; - void function(GstBaseSink* sink, int enabled) c_gst_base_sink_set_last_sample_enabled; - void function(GstBaseSink* sink, ulong maxBitrate) c_gst_base_sink_set_max_bitrate; - void function(GstBaseSink* sink, long maxLateness) c_gst_base_sink_set_max_lateness; - void function(GstBaseSink* sink, GstClockTime processingDeadline) c_gst_base_sink_set_processing_deadline; - void function(GstBaseSink* sink, int enabled) c_gst_base_sink_set_qos_enabled; - void function(GstBaseSink* sink, GstClockTime delay) c_gst_base_sink_set_render_delay; - void function(GstBaseSink* sink, int sync) c_gst_base_sink_set_sync; - void function(GstBaseSink* sink, ulong throttle) c_gst_base_sink_set_throttle_time; - void function(GstBaseSink* sink, GstClockTimeDiff offset) c_gst_base_sink_set_ts_offset; - GstFlowReturn function(GstBaseSink* sink, GstClockTime time, GstClockTimeDiff* jitter) c_gst_base_sink_wait; - GstClockReturn function(GstBaseSink* sink, GstClockTime time, GstClockTimeDiff* jitter) c_gst_base_sink_wait_clock; - GstFlowReturn function(GstBaseSink* sink) c_gst_base_sink_wait_preroll; - - // gst.base.BaseSrc - - GType function() c_gst_base_src_get_type; - void function(GstBaseSrc* src, GstAllocator** allocator, GstAllocationParams* params) c_gst_base_src_get_allocator; - uint function(GstBaseSrc* src) c_gst_base_src_get_blocksize; - GstBufferPool* function(GstBaseSrc* src) c_gst_base_src_get_buffer_pool; - int function(GstBaseSrc* src) c_gst_base_src_get_do_timestamp; - int function(GstBaseSrc* src) c_gst_base_src_is_async; - int function(GstBaseSrc* src) c_gst_base_src_is_live; - int function(GstBaseSrc* src) c_gst_base_src_negotiate; - int function(GstBaseSrc* src, long start, long stop, long time) c_gst_base_src_new_seamless_segment; - int function(GstBaseSrc* src, GstSegment* segment) c_gst_base_src_new_segment; - int function(GstBaseSrc* src, int* live, GstClockTime* minLatency, GstClockTime* maxLatency) c_gst_base_src_query_latency; - void function(GstBaseSrc* src, int async) c_gst_base_src_set_async; - void function(GstBaseSrc* src, int automaticEos) c_gst_base_src_set_automatic_eos; - void function(GstBaseSrc* src, uint blocksize) c_gst_base_src_set_blocksize; - int function(GstBaseSrc* src, GstCaps* caps) c_gst_base_src_set_caps; - void function(GstBaseSrc* src, int timestamp) c_gst_base_src_set_do_timestamp; - void function(GstBaseSrc* src, int dynamic) c_gst_base_src_set_dynamic_size; - void function(GstBaseSrc* src, GstFormat format) c_gst_base_src_set_format; - void function(GstBaseSrc* src, int live) c_gst_base_src_set_live; - void function(GstBaseSrc* basesrc, GstFlowReturn ret) c_gst_base_src_start_complete; - GstFlowReturn function(GstBaseSrc* basesrc) c_gst_base_src_start_wait; - void function(GstBaseSrc* src, GstBufferList* bufferList) c_gst_base_src_submit_buffer_list; - GstFlowReturn function(GstBaseSrc* src) c_gst_base_src_wait_playing; - - // gst.base.BaseTransform - - GType function() c_gst_base_transform_get_type; - void function(GstBaseTransform* trans, GstAllocator** allocator, GstAllocationParams* params) c_gst_base_transform_get_allocator; - GstBufferPool* function(GstBaseTransform* trans) c_gst_base_transform_get_buffer_pool; - int function(GstBaseTransform* trans) c_gst_base_transform_is_in_place; - int function(GstBaseTransform* trans) c_gst_base_transform_is_passthrough; - int function(GstBaseTransform* trans) c_gst_base_transform_is_qos_enabled; - int function(GstBaseTransform* trans) c_gst_base_transform_reconfigure; - void function(GstBaseTransform* trans) c_gst_base_transform_reconfigure_sink; - void function(GstBaseTransform* trans) c_gst_base_transform_reconfigure_src; - void function(GstBaseTransform* trans, int gapAware) c_gst_base_transform_set_gap_aware; - void function(GstBaseTransform* trans, int inPlace) c_gst_base_transform_set_in_place; - void function(GstBaseTransform* trans, int passthrough) c_gst_base_transform_set_passthrough; - void function(GstBaseTransform* trans, int preferPassthrough) c_gst_base_transform_set_prefer_passthrough; - void function(GstBaseTransform* trans, int enabled) c_gst_base_transform_set_qos_enabled; - void function(GstBaseTransform* trans, double proportion, GstClockTimeDiff diff, GstClockTime timestamp) c_gst_base_transform_update_qos; - int function(GstBaseTransform* trans, GstCaps* updatedCaps) c_gst_base_transform_update_src_caps; - - // gst.base.BitReader - - void function(GstBitReader* reader) c_gst_bit_reader_free; - int function(GstBitReader* reader, ushort* val, uint nbits) c_gst_bit_reader_get_bits_uint16; - int function(GstBitReader* reader, uint* val, uint nbits) c_gst_bit_reader_get_bits_uint32; - int function(GstBitReader* reader, ulong* val, uint nbits) c_gst_bit_reader_get_bits_uint64; - int function(GstBitReader* reader, ubyte* val, uint nbits) c_gst_bit_reader_get_bits_uint8; - uint function(GstBitReader* reader) c_gst_bit_reader_get_pos; - uint function(GstBitReader* reader) c_gst_bit_reader_get_remaining; - uint function(GstBitReader* reader) c_gst_bit_reader_get_size; - void function(GstBitReader* reader, ubyte* data, uint size) c_gst_bit_reader_init; - int function(GstBitReader* reader, ushort* val, uint nbits) c_gst_bit_reader_peek_bits_uint16; - int function(GstBitReader* reader, uint* val, uint nbits) c_gst_bit_reader_peek_bits_uint32; - int function(GstBitReader* reader, ulong* val, uint nbits) c_gst_bit_reader_peek_bits_uint64; - int function(GstBitReader* reader, ubyte* val, uint nbits) c_gst_bit_reader_peek_bits_uint8; - int function(GstBitReader* reader, uint pos) c_gst_bit_reader_set_pos; - int function(GstBitReader* reader, uint nbits) c_gst_bit_reader_skip; - int function(GstBitReader* reader) c_gst_bit_reader_skip_to_byte; - GstBitReader* function(ubyte* data, uint size) c_gst_bit_reader_new; - - // gst.base.BitWriter - - int function(GstBitWriter* bitwriter, ubyte trailingBit) c_gst_bit_writer_align_bytes; - void function(GstBitWriter* bitwriter) c_gst_bit_writer_free; - GstBuffer* function(GstBitWriter* bitwriter) c_gst_bit_writer_free_and_get_buffer; - ubyte* function(GstBitWriter* bitwriter) c_gst_bit_writer_free_and_get_data; - ubyte* function(GstBitWriter* bitwriter) c_gst_bit_writer_get_data; - uint function(GstBitWriter* bitwriter) c_gst_bit_writer_get_remaining; - uint function(GstBitWriter* bitwriter) c_gst_bit_writer_get_size; - void function(GstBitWriter* bitwriter) c_gst_bit_writer_init; - void function(GstBitWriter* bitwriter, ubyte* data, uint size, int initialized) c_gst_bit_writer_init_with_data; - void function(GstBitWriter* bitwriter, uint size, int fixed) c_gst_bit_writer_init_with_size; - int function(GstBitWriter* bitwriter, ushort value, uint nbits) c_gst_bit_writer_put_bits_uint16; - int function(GstBitWriter* bitwriter, uint value, uint nbits) c_gst_bit_writer_put_bits_uint32; - int function(GstBitWriter* bitwriter, ulong value, uint nbits) c_gst_bit_writer_put_bits_uint64; - int function(GstBitWriter* bitwriter, ubyte value, uint nbits) c_gst_bit_writer_put_bits_uint8; - int function(GstBitWriter* bitwriter, ubyte* data, uint nbytes) c_gst_bit_writer_put_bytes; - void function(GstBitWriter* bitwriter) c_gst_bit_writer_reset; - GstBuffer* function(GstBitWriter* bitwriter) c_gst_bit_writer_reset_and_get_buffer; - ubyte* function(GstBitWriter* bitwriter) c_gst_bit_writer_reset_and_get_data; - int function(GstBitWriter* bitwriter, uint pos) c_gst_bit_writer_set_pos; - GstBitWriter* function() c_gst_bit_writer_new; - GstBitWriter* function(ubyte* data, uint size, int initialized) c_gst_bit_writer_new_with_data; - GstBitWriter* function(uint size, int fixed) c_gst_bit_writer_new_with_size; - - // gst.base.ByteReader - - int function(GstByteReader* reader, uint size, ubyte** val) c_gst_byte_reader_dup_data; - int function(GstByteReader* reader, ushort** str) c_gst_byte_reader_dup_string_utf16; - int function(GstByteReader* reader, uint** str) c_gst_byte_reader_dup_string_utf32; - int function(GstByteReader* reader, char** str) c_gst_byte_reader_dup_string_utf8; - void function(GstByteReader* reader) c_gst_byte_reader_free; - int function(GstByteReader* reader, uint size, ubyte** val) c_gst_byte_reader_get_data; - int function(GstByteReader* reader, float* val) c_gst_byte_reader_get_float32_be; - int function(GstByteReader* reader, float* val) c_gst_byte_reader_get_float32_le; - int function(GstByteReader* reader, double* val) c_gst_byte_reader_get_float64_be; - int function(GstByteReader* reader, double* val) c_gst_byte_reader_get_float64_le; - int function(GstByteReader* reader, short* val) c_gst_byte_reader_get_int16_be; - int function(GstByteReader* reader, short* val) c_gst_byte_reader_get_int16_le; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_get_int24_be; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_get_int24_le; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_get_int32_be; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_get_int32_le; - int function(GstByteReader* reader, long* val) c_gst_byte_reader_get_int64_be; - int function(GstByteReader* reader, long* val) c_gst_byte_reader_get_int64_le; - int function(GstByteReader* reader, byte* val) c_gst_byte_reader_get_int8; - uint function(GstByteReader* reader) c_gst_byte_reader_get_pos; - uint function(GstByteReader* reader) c_gst_byte_reader_get_remaining; - uint function(GstByteReader* reader) c_gst_byte_reader_get_size; - int function(GstByteReader* reader, char** str) c_gst_byte_reader_get_string_utf8; - int function(GstByteReader* reader, GstByteReader* subReader, uint size) c_gst_byte_reader_get_sub_reader; - int function(GstByteReader* reader, ushort* val) c_gst_byte_reader_get_uint16_be; - int function(GstByteReader* reader, ushort* val) c_gst_byte_reader_get_uint16_le; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_get_uint24_be; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_get_uint24_le; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_get_uint32_be; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_get_uint32_le; - int function(GstByteReader* reader, ulong* val) c_gst_byte_reader_get_uint64_be; - int function(GstByteReader* reader, ulong* val) c_gst_byte_reader_get_uint64_le; - int function(GstByteReader* reader, ubyte* val) c_gst_byte_reader_get_uint8; - void function(GstByteReader* reader, ubyte* data, uint size) c_gst_byte_reader_init; - uint function(GstByteReader* reader, uint mask, uint pattern, uint offset, uint size) c_gst_byte_reader_masked_scan_uint32; - uint function(GstByteReader* reader, uint mask, uint pattern, uint offset, uint size, uint* value) c_gst_byte_reader_masked_scan_uint32_peek; - int function(GstByteReader* reader, uint size, ubyte** val) c_gst_byte_reader_peek_data; - int function(GstByteReader* reader, float* val) c_gst_byte_reader_peek_float32_be; - int function(GstByteReader* reader, float* val) c_gst_byte_reader_peek_float32_le; - int function(GstByteReader* reader, double* val) c_gst_byte_reader_peek_float64_be; - int function(GstByteReader* reader, double* val) c_gst_byte_reader_peek_float64_le; - int function(GstByteReader* reader, short* val) c_gst_byte_reader_peek_int16_be; - int function(GstByteReader* reader, short* val) c_gst_byte_reader_peek_int16_le; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_peek_int24_be; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_peek_int24_le; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_peek_int32_be; - int function(GstByteReader* reader, int* val) c_gst_byte_reader_peek_int32_le; - int function(GstByteReader* reader, long* val) c_gst_byte_reader_peek_int64_be; - int function(GstByteReader* reader, long* val) c_gst_byte_reader_peek_int64_le; - int function(GstByteReader* reader, byte* val) c_gst_byte_reader_peek_int8; - int function(GstByteReader* reader, char** str) c_gst_byte_reader_peek_string_utf8; - int function(GstByteReader* reader, GstByteReader* subReader, uint size) c_gst_byte_reader_peek_sub_reader; - int function(GstByteReader* reader, ushort* val) c_gst_byte_reader_peek_uint16_be; - int function(GstByteReader* reader, ushort* val) c_gst_byte_reader_peek_uint16_le; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_peek_uint24_be; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_peek_uint24_le; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_peek_uint32_be; - int function(GstByteReader* reader, uint* val) c_gst_byte_reader_peek_uint32_le; - int function(GstByteReader* reader, ulong* val) c_gst_byte_reader_peek_uint64_be; - int function(GstByteReader* reader, ulong* val) c_gst_byte_reader_peek_uint64_le; - int function(GstByteReader* reader, ubyte* val) c_gst_byte_reader_peek_uint8; - int function(GstByteReader* reader, uint pos) c_gst_byte_reader_set_pos; - int function(GstByteReader* reader, uint nbytes) c_gst_byte_reader_skip; - int function(GstByteReader* reader) c_gst_byte_reader_skip_string_utf16; - int function(GstByteReader* reader) c_gst_byte_reader_skip_string_utf32; - int function(GstByteReader* reader) c_gst_byte_reader_skip_string_utf8; - GstByteReader* function(ubyte* data, uint size) c_gst_byte_reader_new; - - // gst.base.ByteWriter - - int function(GstByteWriter* writer, uint size) c_gst_byte_writer_ensure_free_space; - int function(GstByteWriter* writer, ubyte value, uint size) c_gst_byte_writer_fill; - void function(GstByteWriter* writer) c_gst_byte_writer_free; - GstBuffer* function(GstByteWriter* writer) c_gst_byte_writer_free_and_get_buffer; - ubyte* function(GstByteWriter* writer) c_gst_byte_writer_free_and_get_data; - uint function(GstByteWriter* writer) c_gst_byte_writer_get_remaining; - void function(GstByteWriter* writer) c_gst_byte_writer_init; - void function(GstByteWriter* writer, ubyte* data, uint size, int initialized) c_gst_byte_writer_init_with_data; - void function(GstByteWriter* writer, uint size, int fixed) c_gst_byte_writer_init_with_size; - int function(GstByteWriter* writer, GstBuffer* buffer, size_t offset, ptrdiff_t size) c_gst_byte_writer_put_buffer; - int function(GstByteWriter* writer, ubyte* data, uint size) c_gst_byte_writer_put_data; - int function(GstByteWriter* writer, float val) c_gst_byte_writer_put_float32_be; - int function(GstByteWriter* writer, float val) c_gst_byte_writer_put_float32_le; - int function(GstByteWriter* writer, double val) c_gst_byte_writer_put_float64_be; - int function(GstByteWriter* writer, double val) c_gst_byte_writer_put_float64_le; - int function(GstByteWriter* writer, short val) c_gst_byte_writer_put_int16_be; - int function(GstByteWriter* writer, short val) c_gst_byte_writer_put_int16_le; - int function(GstByteWriter* writer, int val) c_gst_byte_writer_put_int24_be; - int function(GstByteWriter* writer, int val) c_gst_byte_writer_put_int24_le; - int function(GstByteWriter* writer, int val) c_gst_byte_writer_put_int32_be; - int function(GstByteWriter* writer, int val) c_gst_byte_writer_put_int32_le; - int function(GstByteWriter* writer, long val) c_gst_byte_writer_put_int64_be; - int function(GstByteWriter* writer, long val) c_gst_byte_writer_put_int64_le; - int function(GstByteWriter* writer, byte val) c_gst_byte_writer_put_int8; - int function(GstByteWriter* writer, ushort* data) c_gst_byte_writer_put_string_utf16; - int function(GstByteWriter* writer, uint* data) c_gst_byte_writer_put_string_utf32; - int function(GstByteWriter* writer, const(char)* data) c_gst_byte_writer_put_string_utf8; - int function(GstByteWriter* writer, ushort val) c_gst_byte_writer_put_uint16_be; - int function(GstByteWriter* writer, ushort val) c_gst_byte_writer_put_uint16_le; - int function(GstByteWriter* writer, uint val) c_gst_byte_writer_put_uint24_be; - int function(GstByteWriter* writer, uint val) c_gst_byte_writer_put_uint24_le; - int function(GstByteWriter* writer, uint val) c_gst_byte_writer_put_uint32_be; - int function(GstByteWriter* writer, uint val) c_gst_byte_writer_put_uint32_le; - int function(GstByteWriter* writer, ulong val) c_gst_byte_writer_put_uint64_be; - int function(GstByteWriter* writer, ulong val) c_gst_byte_writer_put_uint64_le; - int function(GstByteWriter* writer, ubyte val) c_gst_byte_writer_put_uint8; - void function(GstByteWriter* writer) c_gst_byte_writer_reset; - GstBuffer* function(GstByteWriter* writer) c_gst_byte_writer_reset_and_get_buffer; - ubyte* function(GstByteWriter* writer) c_gst_byte_writer_reset_and_get_data; - GstByteWriter* function() c_gst_byte_writer_new; - GstByteWriter* function(ubyte* data, uint size, int initialized) c_gst_byte_writer_new_with_data; - GstByteWriter* function(uint size, int fixed) c_gst_byte_writer_new_with_size; - - // gst.base.CollectPads - - GType function() c_gst_collect_pads_get_type; - GstCollectPads* function() c_gst_collect_pads_new; - GstCollectData* function(GstCollectPads* pads, GstPad* pad, uint size, GstCollectDataDestroyNotify destroyNotify, int lock) c_gst_collect_pads_add_pad; - uint function(GstCollectPads* pads) c_gst_collect_pads_available; - GstFlowReturn function(GstCollectPads* pads, GstCollectData* cdata, GstBuffer* buf, GstBuffer** outbuf, void* userData) c_gst_collect_pads_clip_running_time; - int function(GstCollectPads* pads, GstCollectData* data, GstEvent* event, int discard) c_gst_collect_pads_event_default; - uint function(GstCollectPads* pads, GstCollectData* data, uint size) c_gst_collect_pads_flush; - GstBuffer* function(GstCollectPads* pads, GstCollectData* data) c_gst_collect_pads_peek; - GstBuffer* function(GstCollectPads* pads, GstCollectData* data) c_gst_collect_pads_pop; - int function(GstCollectPads* pads, GstCollectData* data, GstQuery* query, int discard) c_gst_collect_pads_query_default; - GstBuffer* function(GstCollectPads* pads, GstCollectData* data, uint size) c_gst_collect_pads_read_buffer; - int function(GstCollectPads* pads, GstPad* pad) c_gst_collect_pads_remove_pad; - void function(GstCollectPads* pads, GstCollectPadsBufferFunction func, void* userData) c_gst_collect_pads_set_buffer_function; - void function(GstCollectPads* pads, GstCollectPadsClipFunction clipfunc, void* userData) c_gst_collect_pads_set_clip_function; - void function(GstCollectPads* pads, GstCollectPadsCompareFunction func, void* userData) c_gst_collect_pads_set_compare_function; - void function(GstCollectPads* pads, GstCollectPadsEventFunction func, void* userData) c_gst_collect_pads_set_event_function; - void function(GstCollectPads* pads, GstCollectPadsFlushFunction func, void* userData) c_gst_collect_pads_set_flush_function; - void function(GstCollectPads* pads, int flushing) c_gst_collect_pads_set_flushing; - void function(GstCollectPads* pads, GstCollectPadsFunction func, void* userData) c_gst_collect_pads_set_function; - void function(GstCollectPads* pads, GstCollectPadsQueryFunction func, void* userData) c_gst_collect_pads_set_query_function; - void function(GstCollectPads* pads, GstCollectData* data, int waiting) c_gst_collect_pads_set_waiting; - int function(GstCollectPads* pads, GstPad* pad, GstEvent* event) c_gst_collect_pads_src_event_default; - void function(GstCollectPads* pads) c_gst_collect_pads_start; - void function(GstCollectPads* pads) c_gst_collect_pads_stop; - GstBuffer* function(GstCollectPads* pads, GstCollectData* data, uint size) c_gst_collect_pads_take_buffer; - - // gst.base.DataQueue - - GType function() c_gst_data_queue_get_type; - GstDataQueue* function(GstDataQueueCheckFullFunction checkfull, GstDataQueueFullCallback fullcallback, GstDataQueueEmptyCallback emptycallback, void* checkdata) c_gst_data_queue_new; - int function(GstDataQueue* queue, GType type) c_gst_data_queue_drop_head; - void function(GstDataQueue* queue) c_gst_data_queue_flush; - void function(GstDataQueue* queue, GstDataQueueSize* level) c_gst_data_queue_get_level; - int function(GstDataQueue* queue) c_gst_data_queue_is_empty; - int function(GstDataQueue* queue) c_gst_data_queue_is_full; - void function(GstDataQueue* queue) c_gst_data_queue_limits_changed; - int function(GstDataQueue* queue, GstDataQueueItem** item) c_gst_data_queue_peek; - int function(GstDataQueue* queue, GstDataQueueItem** item) c_gst_data_queue_pop; - int function(GstDataQueue* queue, GstDataQueueItem* item) c_gst_data_queue_push; - int function(GstDataQueue* queue, GstDataQueueItem* item) c_gst_data_queue_push_force; - void function(GstDataQueue* queue, int flushing) c_gst_data_queue_set_flushing; - - // gst.base.FlowCombiner - - GType function() c_gst_flow_combiner_get_type; - GstFlowCombiner* function() c_gst_flow_combiner_new; - void function(GstFlowCombiner* combiner, GstPad* pad) c_gst_flow_combiner_add_pad; - void function(GstFlowCombiner* combiner) c_gst_flow_combiner_clear; - void function(GstFlowCombiner* combiner) c_gst_flow_combiner_free; - GstFlowCombiner* function(GstFlowCombiner* combiner) c_gst_flow_combiner_ref; - void function(GstFlowCombiner* combiner, GstPad* pad) c_gst_flow_combiner_remove_pad; - void function(GstFlowCombiner* combiner) c_gst_flow_combiner_reset; - void function(GstFlowCombiner* combiner) c_gst_flow_combiner_unref; - GstFlowReturn function(GstFlowCombiner* combiner, GstFlowReturn fret) c_gst_flow_combiner_update_flow; - GstFlowReturn function(GstFlowCombiner* combiner, GstPad* pad, GstFlowReturn fret) c_gst_flow_combiner_update_pad_flow; - - // gst.base.PushSrc - - GType function() c_gst_push_src_get_type; - - // gst.base.QueueArray - - void function(GstQueueArray* array) c_gst_queue_array_clear; - void* function(GstQueueArray* array, uint idx) c_gst_queue_array_drop_element; - int function(GstQueueArray* array, uint idx, void* pStruct) c_gst_queue_array_drop_struct; - uint function(GstQueueArray* array, GCompareFunc func, void* data) c_gst_queue_array_find; - void function(GstQueueArray* array) c_gst_queue_array_free; - uint function(GstQueueArray* array) c_gst_queue_array_get_length; - int function(GstQueueArray* array) c_gst_queue_array_is_empty; - void* function(GstQueueArray* array) c_gst_queue_array_peek_head; - void* function(GstQueueArray* array) c_gst_queue_array_peek_head_struct; - void* function(GstQueueArray* array, uint idx) c_gst_queue_array_peek_nth; - void* function(GstQueueArray* array, uint idx) c_gst_queue_array_peek_nth_struct; - void* function(GstQueueArray* array) c_gst_queue_array_peek_tail; - void* function(GstQueueArray* array) c_gst_queue_array_peek_tail_struct; - void* function(GstQueueArray* array) c_gst_queue_array_pop_head; - void* function(GstQueueArray* array) c_gst_queue_array_pop_head_struct; - void* function(GstQueueArray* array) c_gst_queue_array_pop_tail; - void* function(GstQueueArray* array) c_gst_queue_array_pop_tail_struct; - void function(GstQueueArray* array, void* data) c_gst_queue_array_push_tail; - void function(GstQueueArray* array, void* pStruct) c_gst_queue_array_push_tail_struct; - void function(GstQueueArray* array, GDestroyNotify clearFunc) c_gst_queue_array_set_clear_func; - GstQueueArray* function(uint initialSize) c_gst_queue_array_new; - GstQueueArray* function(size_t structSize, uint initialSize) c_gst_queue_array_new_for_struct; - - // gst.base.Base - - GstCaps* function(GstPad* src, ulong size) c_gst_type_find_helper; - GstCaps* function(GstObject* obj, GstBuffer* buf, GstTypeFindProbability* prob) c_gst_type_find_helper_for_buffer; - GstCaps* function(GstObject* obj, ubyte* data, size_t size, GstTypeFindProbability* prob) c_gst_type_find_helper_for_data; - GstCaps* function(GstObject* obj, const(char)* extension) c_gst_type_find_helper_for_extension; - GstCaps* function(GstObject* obj, GstObject* parent, GstTypeFindHelperGetRangeFunction func, ulong size, const(char)* extension, GstTypeFindProbability* prob) c_gst_type_find_helper_get_range; - GstCaps* function(GstObject* obj, GstBuffer* buf, const(char)* extension, GstTypeFindProbability* prob) c_gst_type_find_helper_for_buffer_with_extension; - GstCaps* function(GstObject* obj, ubyte* data, size_t size, const(char)* extension, GstTypeFindProbability* prob) c_gst_type_find_helper_for_data_with_extension; - GstFlowReturn function(GstObject* obj, GstObject* parent, GstTypeFindHelperGetRangeFunction func, ulong size, const(char)* extension, GstCaps** caps, GstTypeFindProbability* prob) c_gst_type_find_helper_get_range_full; -} - - -// gst.base.Adapter - -alias c_gst_adapter_get_type gst_adapter_get_type; -alias c_gst_adapter_new gst_adapter_new; -alias c_gst_adapter_available gst_adapter_available; -alias c_gst_adapter_available_fast gst_adapter_available_fast; -alias c_gst_adapter_clear gst_adapter_clear; -alias c_gst_adapter_copy gst_adapter_copy; -alias c_gst_adapter_copy_bytes gst_adapter_copy_bytes; -alias c_gst_adapter_distance_from_discont gst_adapter_distance_from_discont; -alias c_gst_adapter_dts_at_discont gst_adapter_dts_at_discont; -alias c_gst_adapter_flush gst_adapter_flush; -alias c_gst_adapter_get_buffer gst_adapter_get_buffer; -alias c_gst_adapter_get_buffer_fast gst_adapter_get_buffer_fast; -alias c_gst_adapter_get_buffer_list gst_adapter_get_buffer_list; -alias c_gst_adapter_get_list gst_adapter_get_list; -alias c_gst_adapter_map gst_adapter_map; -alias c_gst_adapter_masked_scan_uint32 gst_adapter_masked_scan_uint32; -alias c_gst_adapter_masked_scan_uint32_peek gst_adapter_masked_scan_uint32_peek; -alias c_gst_adapter_offset_at_discont gst_adapter_offset_at_discont; -alias c_gst_adapter_prev_dts gst_adapter_prev_dts; -alias c_gst_adapter_prev_dts_at_offset gst_adapter_prev_dts_at_offset; -alias c_gst_adapter_prev_offset gst_adapter_prev_offset; -alias c_gst_adapter_prev_pts gst_adapter_prev_pts; -alias c_gst_adapter_prev_pts_at_offset gst_adapter_prev_pts_at_offset; -alias c_gst_adapter_pts_at_discont gst_adapter_pts_at_discont; -alias c_gst_adapter_push gst_adapter_push; -alias c_gst_adapter_take gst_adapter_take; -alias c_gst_adapter_take_buffer gst_adapter_take_buffer; -alias c_gst_adapter_take_buffer_fast gst_adapter_take_buffer_fast; -alias c_gst_adapter_take_buffer_list gst_adapter_take_buffer_list; -alias c_gst_adapter_take_list gst_adapter_take_list; -alias c_gst_adapter_unmap gst_adapter_unmap; - -// gst.base.Aggregator - -alias c_gst_aggregator_get_type gst_aggregator_get_type; -alias c_gst_aggregator_finish_buffer gst_aggregator_finish_buffer; -alias c_gst_aggregator_finish_buffer_list gst_aggregator_finish_buffer_list; -alias c_gst_aggregator_get_allocator gst_aggregator_get_allocator; -alias c_gst_aggregator_get_buffer_pool gst_aggregator_get_buffer_pool; -alias c_gst_aggregator_get_latency gst_aggregator_get_latency; -alias c_gst_aggregator_negotiate gst_aggregator_negotiate; -alias c_gst_aggregator_peek_next_sample gst_aggregator_peek_next_sample; -alias c_gst_aggregator_selected_samples gst_aggregator_selected_samples; -alias c_gst_aggregator_set_latency gst_aggregator_set_latency; -alias c_gst_aggregator_set_src_caps gst_aggregator_set_src_caps; -alias c_gst_aggregator_simple_get_next_time gst_aggregator_simple_get_next_time; -alias c_gst_aggregator_update_segment gst_aggregator_update_segment; - -// gst.base.AggregatorPad - -alias c_gst_aggregator_pad_get_type gst_aggregator_pad_get_type; -alias c_gst_aggregator_pad_drop_buffer gst_aggregator_pad_drop_buffer; -alias c_gst_aggregator_pad_has_buffer gst_aggregator_pad_has_buffer; -alias c_gst_aggregator_pad_is_eos gst_aggregator_pad_is_eos; -alias c_gst_aggregator_pad_peek_buffer gst_aggregator_pad_peek_buffer; -alias c_gst_aggregator_pad_pop_buffer gst_aggregator_pad_pop_buffer; - -// gst.base.BaseParse - -alias c_gst_base_parse_get_type gst_base_parse_get_type; -alias c_gst_base_parse_add_index_entry gst_base_parse_add_index_entry; -alias c_gst_base_parse_convert_default gst_base_parse_convert_default; -alias c_gst_base_parse_drain gst_base_parse_drain; -alias c_gst_base_parse_finish_frame gst_base_parse_finish_frame; -alias c_gst_base_parse_merge_tags gst_base_parse_merge_tags; -alias c_gst_base_parse_push_frame gst_base_parse_push_frame; -alias c_gst_base_parse_set_average_bitrate gst_base_parse_set_average_bitrate; -alias c_gst_base_parse_set_duration gst_base_parse_set_duration; -alias c_gst_base_parse_set_frame_rate gst_base_parse_set_frame_rate; -alias c_gst_base_parse_set_has_timing_info gst_base_parse_set_has_timing_info; -alias c_gst_base_parse_set_infer_ts gst_base_parse_set_infer_ts; -alias c_gst_base_parse_set_latency gst_base_parse_set_latency; -alias c_gst_base_parse_set_min_frame_size gst_base_parse_set_min_frame_size; -alias c_gst_base_parse_set_passthrough gst_base_parse_set_passthrough; -alias c_gst_base_parse_set_pts_interpolation gst_base_parse_set_pts_interpolation; -alias c_gst_base_parse_set_syncable gst_base_parse_set_syncable; -alias c_gst_base_parse_set_ts_at_offset gst_base_parse_set_ts_at_offset; - -// gst.base.BaseParseFrame - -alias c_gst_base_parse_frame_get_type gst_base_parse_frame_get_type; -alias c_gst_base_parse_frame_new gst_base_parse_frame_new; -alias c_gst_base_parse_frame_copy gst_base_parse_frame_copy; -alias c_gst_base_parse_frame_free gst_base_parse_frame_free; -alias c_gst_base_parse_frame_init gst_base_parse_frame_init; - -// gst.base.BaseSink - -alias c_gst_base_sink_get_type gst_base_sink_get_type; -alias c_gst_base_sink_do_preroll gst_base_sink_do_preroll; -alias c_gst_base_sink_get_blocksize gst_base_sink_get_blocksize; -alias c_gst_base_sink_get_drop_out_of_segment gst_base_sink_get_drop_out_of_segment; -alias c_gst_base_sink_get_last_sample gst_base_sink_get_last_sample; -alias c_gst_base_sink_get_latency gst_base_sink_get_latency; -alias c_gst_base_sink_get_max_bitrate gst_base_sink_get_max_bitrate; -alias c_gst_base_sink_get_max_lateness gst_base_sink_get_max_lateness; -alias c_gst_base_sink_get_processing_deadline gst_base_sink_get_processing_deadline; -alias c_gst_base_sink_get_render_delay gst_base_sink_get_render_delay; -alias c_gst_base_sink_get_stats gst_base_sink_get_stats; -alias c_gst_base_sink_get_sync gst_base_sink_get_sync; -alias c_gst_base_sink_get_throttle_time gst_base_sink_get_throttle_time; -alias c_gst_base_sink_get_ts_offset gst_base_sink_get_ts_offset; -alias c_gst_base_sink_is_async_enabled gst_base_sink_is_async_enabled; -alias c_gst_base_sink_is_last_sample_enabled gst_base_sink_is_last_sample_enabled; -alias c_gst_base_sink_is_qos_enabled gst_base_sink_is_qos_enabled; -alias c_gst_base_sink_query_latency gst_base_sink_query_latency; -alias c_gst_base_sink_set_async_enabled gst_base_sink_set_async_enabled; -alias c_gst_base_sink_set_blocksize gst_base_sink_set_blocksize; -alias c_gst_base_sink_set_drop_out_of_segment gst_base_sink_set_drop_out_of_segment; -alias c_gst_base_sink_set_last_sample_enabled gst_base_sink_set_last_sample_enabled; -alias c_gst_base_sink_set_max_bitrate gst_base_sink_set_max_bitrate; -alias c_gst_base_sink_set_max_lateness gst_base_sink_set_max_lateness; -alias c_gst_base_sink_set_processing_deadline gst_base_sink_set_processing_deadline; -alias c_gst_base_sink_set_qos_enabled gst_base_sink_set_qos_enabled; -alias c_gst_base_sink_set_render_delay gst_base_sink_set_render_delay; -alias c_gst_base_sink_set_sync gst_base_sink_set_sync; -alias c_gst_base_sink_set_throttle_time gst_base_sink_set_throttle_time; -alias c_gst_base_sink_set_ts_offset gst_base_sink_set_ts_offset; -alias c_gst_base_sink_wait gst_base_sink_wait; -alias c_gst_base_sink_wait_clock gst_base_sink_wait_clock; -alias c_gst_base_sink_wait_preroll gst_base_sink_wait_preroll; - -// gst.base.BaseSrc - -alias c_gst_base_src_get_type gst_base_src_get_type; -alias c_gst_base_src_get_allocator gst_base_src_get_allocator; -alias c_gst_base_src_get_blocksize gst_base_src_get_blocksize; -alias c_gst_base_src_get_buffer_pool gst_base_src_get_buffer_pool; -alias c_gst_base_src_get_do_timestamp gst_base_src_get_do_timestamp; -alias c_gst_base_src_is_async gst_base_src_is_async; -alias c_gst_base_src_is_live gst_base_src_is_live; -alias c_gst_base_src_negotiate gst_base_src_negotiate; -alias c_gst_base_src_new_seamless_segment gst_base_src_new_seamless_segment; -alias c_gst_base_src_new_segment gst_base_src_new_segment; -alias c_gst_base_src_query_latency gst_base_src_query_latency; -alias c_gst_base_src_set_async gst_base_src_set_async; -alias c_gst_base_src_set_automatic_eos gst_base_src_set_automatic_eos; -alias c_gst_base_src_set_blocksize gst_base_src_set_blocksize; -alias c_gst_base_src_set_caps gst_base_src_set_caps; -alias c_gst_base_src_set_do_timestamp gst_base_src_set_do_timestamp; -alias c_gst_base_src_set_dynamic_size gst_base_src_set_dynamic_size; -alias c_gst_base_src_set_format gst_base_src_set_format; -alias c_gst_base_src_set_live gst_base_src_set_live; -alias c_gst_base_src_start_complete gst_base_src_start_complete; -alias c_gst_base_src_start_wait gst_base_src_start_wait; -alias c_gst_base_src_submit_buffer_list gst_base_src_submit_buffer_list; -alias c_gst_base_src_wait_playing gst_base_src_wait_playing; - -// gst.base.BaseTransform - -alias c_gst_base_transform_get_type gst_base_transform_get_type; -alias c_gst_base_transform_get_allocator gst_base_transform_get_allocator; -alias c_gst_base_transform_get_buffer_pool gst_base_transform_get_buffer_pool; -alias c_gst_base_transform_is_in_place gst_base_transform_is_in_place; -alias c_gst_base_transform_is_passthrough gst_base_transform_is_passthrough; -alias c_gst_base_transform_is_qos_enabled gst_base_transform_is_qos_enabled; -alias c_gst_base_transform_reconfigure gst_base_transform_reconfigure; -alias c_gst_base_transform_reconfigure_sink gst_base_transform_reconfigure_sink; -alias c_gst_base_transform_reconfigure_src gst_base_transform_reconfigure_src; -alias c_gst_base_transform_set_gap_aware gst_base_transform_set_gap_aware; -alias c_gst_base_transform_set_in_place gst_base_transform_set_in_place; -alias c_gst_base_transform_set_passthrough gst_base_transform_set_passthrough; -alias c_gst_base_transform_set_prefer_passthrough gst_base_transform_set_prefer_passthrough; -alias c_gst_base_transform_set_qos_enabled gst_base_transform_set_qos_enabled; -alias c_gst_base_transform_update_qos gst_base_transform_update_qos; -alias c_gst_base_transform_update_src_caps gst_base_transform_update_src_caps; - -// gst.base.BitReader - -alias c_gst_bit_reader_free gst_bit_reader_free; -alias c_gst_bit_reader_get_bits_uint16 gst_bit_reader_get_bits_uint16; -alias c_gst_bit_reader_get_bits_uint32 gst_bit_reader_get_bits_uint32; -alias c_gst_bit_reader_get_bits_uint64 gst_bit_reader_get_bits_uint64; -alias c_gst_bit_reader_get_bits_uint8 gst_bit_reader_get_bits_uint8; -alias c_gst_bit_reader_get_pos gst_bit_reader_get_pos; -alias c_gst_bit_reader_get_remaining gst_bit_reader_get_remaining; -alias c_gst_bit_reader_get_size gst_bit_reader_get_size; -alias c_gst_bit_reader_init gst_bit_reader_init; -alias c_gst_bit_reader_peek_bits_uint16 gst_bit_reader_peek_bits_uint16; -alias c_gst_bit_reader_peek_bits_uint32 gst_bit_reader_peek_bits_uint32; -alias c_gst_bit_reader_peek_bits_uint64 gst_bit_reader_peek_bits_uint64; -alias c_gst_bit_reader_peek_bits_uint8 gst_bit_reader_peek_bits_uint8; -alias c_gst_bit_reader_set_pos gst_bit_reader_set_pos; -alias c_gst_bit_reader_skip gst_bit_reader_skip; -alias c_gst_bit_reader_skip_to_byte gst_bit_reader_skip_to_byte; -alias c_gst_bit_reader_new gst_bit_reader_new; - -// gst.base.BitWriter - -alias c_gst_bit_writer_align_bytes gst_bit_writer_align_bytes; -alias c_gst_bit_writer_free gst_bit_writer_free; -alias c_gst_bit_writer_free_and_get_buffer gst_bit_writer_free_and_get_buffer; -alias c_gst_bit_writer_free_and_get_data gst_bit_writer_free_and_get_data; -alias c_gst_bit_writer_get_data gst_bit_writer_get_data; -alias c_gst_bit_writer_get_remaining gst_bit_writer_get_remaining; -alias c_gst_bit_writer_get_size gst_bit_writer_get_size; -alias c_gst_bit_writer_init gst_bit_writer_init; -alias c_gst_bit_writer_init_with_data gst_bit_writer_init_with_data; -alias c_gst_bit_writer_init_with_size gst_bit_writer_init_with_size; -alias c_gst_bit_writer_put_bits_uint16 gst_bit_writer_put_bits_uint16; -alias c_gst_bit_writer_put_bits_uint32 gst_bit_writer_put_bits_uint32; -alias c_gst_bit_writer_put_bits_uint64 gst_bit_writer_put_bits_uint64; -alias c_gst_bit_writer_put_bits_uint8 gst_bit_writer_put_bits_uint8; -alias c_gst_bit_writer_put_bytes gst_bit_writer_put_bytes; -alias c_gst_bit_writer_reset gst_bit_writer_reset; -alias c_gst_bit_writer_reset_and_get_buffer gst_bit_writer_reset_and_get_buffer; -alias c_gst_bit_writer_reset_and_get_data gst_bit_writer_reset_and_get_data; -alias c_gst_bit_writer_set_pos gst_bit_writer_set_pos; -alias c_gst_bit_writer_new gst_bit_writer_new; -alias c_gst_bit_writer_new_with_data gst_bit_writer_new_with_data; -alias c_gst_bit_writer_new_with_size gst_bit_writer_new_with_size; - -// gst.base.ByteReader - -alias c_gst_byte_reader_dup_data gst_byte_reader_dup_data; -alias c_gst_byte_reader_dup_string_utf16 gst_byte_reader_dup_string_utf16; -alias c_gst_byte_reader_dup_string_utf32 gst_byte_reader_dup_string_utf32; -alias c_gst_byte_reader_dup_string_utf8 gst_byte_reader_dup_string_utf8; -alias c_gst_byte_reader_free gst_byte_reader_free; -alias c_gst_byte_reader_get_data gst_byte_reader_get_data; -alias c_gst_byte_reader_get_float32_be gst_byte_reader_get_float32_be; -alias c_gst_byte_reader_get_float32_le gst_byte_reader_get_float32_le; -alias c_gst_byte_reader_get_float64_be gst_byte_reader_get_float64_be; -alias c_gst_byte_reader_get_float64_le gst_byte_reader_get_float64_le; -alias c_gst_byte_reader_get_int16_be gst_byte_reader_get_int16_be; -alias c_gst_byte_reader_get_int16_le gst_byte_reader_get_int16_le; -alias c_gst_byte_reader_get_int24_be gst_byte_reader_get_int24_be; -alias c_gst_byte_reader_get_int24_le gst_byte_reader_get_int24_le; -alias c_gst_byte_reader_get_int32_be gst_byte_reader_get_int32_be; -alias c_gst_byte_reader_get_int32_le gst_byte_reader_get_int32_le; -alias c_gst_byte_reader_get_int64_be gst_byte_reader_get_int64_be; -alias c_gst_byte_reader_get_int64_le gst_byte_reader_get_int64_le; -alias c_gst_byte_reader_get_int8 gst_byte_reader_get_int8; -alias c_gst_byte_reader_get_pos gst_byte_reader_get_pos; -alias c_gst_byte_reader_get_remaining gst_byte_reader_get_remaining; -alias c_gst_byte_reader_get_size gst_byte_reader_get_size; -alias c_gst_byte_reader_get_string_utf8 gst_byte_reader_get_string_utf8; -alias c_gst_byte_reader_get_sub_reader gst_byte_reader_get_sub_reader; -alias c_gst_byte_reader_get_uint16_be gst_byte_reader_get_uint16_be; -alias c_gst_byte_reader_get_uint16_le gst_byte_reader_get_uint16_le; -alias c_gst_byte_reader_get_uint24_be gst_byte_reader_get_uint24_be; -alias c_gst_byte_reader_get_uint24_le gst_byte_reader_get_uint24_le; -alias c_gst_byte_reader_get_uint32_be gst_byte_reader_get_uint32_be; -alias c_gst_byte_reader_get_uint32_le gst_byte_reader_get_uint32_le; -alias c_gst_byte_reader_get_uint64_be gst_byte_reader_get_uint64_be; -alias c_gst_byte_reader_get_uint64_le gst_byte_reader_get_uint64_le; -alias c_gst_byte_reader_get_uint8 gst_byte_reader_get_uint8; -alias c_gst_byte_reader_init gst_byte_reader_init; -alias c_gst_byte_reader_masked_scan_uint32 gst_byte_reader_masked_scan_uint32; -alias c_gst_byte_reader_masked_scan_uint32_peek gst_byte_reader_masked_scan_uint32_peek; -alias c_gst_byte_reader_peek_data gst_byte_reader_peek_data; -alias c_gst_byte_reader_peek_float32_be gst_byte_reader_peek_float32_be; -alias c_gst_byte_reader_peek_float32_le gst_byte_reader_peek_float32_le; -alias c_gst_byte_reader_peek_float64_be gst_byte_reader_peek_float64_be; -alias c_gst_byte_reader_peek_float64_le gst_byte_reader_peek_float64_le; -alias c_gst_byte_reader_peek_int16_be gst_byte_reader_peek_int16_be; -alias c_gst_byte_reader_peek_int16_le gst_byte_reader_peek_int16_le; -alias c_gst_byte_reader_peek_int24_be gst_byte_reader_peek_int24_be; -alias c_gst_byte_reader_peek_int24_le gst_byte_reader_peek_int24_le; -alias c_gst_byte_reader_peek_int32_be gst_byte_reader_peek_int32_be; -alias c_gst_byte_reader_peek_int32_le gst_byte_reader_peek_int32_le; -alias c_gst_byte_reader_peek_int64_be gst_byte_reader_peek_int64_be; -alias c_gst_byte_reader_peek_int64_le gst_byte_reader_peek_int64_le; -alias c_gst_byte_reader_peek_int8 gst_byte_reader_peek_int8; -alias c_gst_byte_reader_peek_string_utf8 gst_byte_reader_peek_string_utf8; -alias c_gst_byte_reader_peek_sub_reader gst_byte_reader_peek_sub_reader; -alias c_gst_byte_reader_peek_uint16_be gst_byte_reader_peek_uint16_be; -alias c_gst_byte_reader_peek_uint16_le gst_byte_reader_peek_uint16_le; -alias c_gst_byte_reader_peek_uint24_be gst_byte_reader_peek_uint24_be; -alias c_gst_byte_reader_peek_uint24_le gst_byte_reader_peek_uint24_le; -alias c_gst_byte_reader_peek_uint32_be gst_byte_reader_peek_uint32_be; -alias c_gst_byte_reader_peek_uint32_le gst_byte_reader_peek_uint32_le; -alias c_gst_byte_reader_peek_uint64_be gst_byte_reader_peek_uint64_be; -alias c_gst_byte_reader_peek_uint64_le gst_byte_reader_peek_uint64_le; -alias c_gst_byte_reader_peek_uint8 gst_byte_reader_peek_uint8; -alias c_gst_byte_reader_set_pos gst_byte_reader_set_pos; -alias c_gst_byte_reader_skip gst_byte_reader_skip; -alias c_gst_byte_reader_skip_string_utf16 gst_byte_reader_skip_string_utf16; -alias c_gst_byte_reader_skip_string_utf32 gst_byte_reader_skip_string_utf32; -alias c_gst_byte_reader_skip_string_utf8 gst_byte_reader_skip_string_utf8; -alias c_gst_byte_reader_new gst_byte_reader_new; - -// gst.base.ByteWriter - -alias c_gst_byte_writer_ensure_free_space gst_byte_writer_ensure_free_space; -alias c_gst_byte_writer_fill gst_byte_writer_fill; -alias c_gst_byte_writer_free gst_byte_writer_free; -alias c_gst_byte_writer_free_and_get_buffer gst_byte_writer_free_and_get_buffer; -alias c_gst_byte_writer_free_and_get_data gst_byte_writer_free_and_get_data; -alias c_gst_byte_writer_get_remaining gst_byte_writer_get_remaining; -alias c_gst_byte_writer_init gst_byte_writer_init; -alias c_gst_byte_writer_init_with_data gst_byte_writer_init_with_data; -alias c_gst_byte_writer_init_with_size gst_byte_writer_init_with_size; -alias c_gst_byte_writer_put_buffer gst_byte_writer_put_buffer; -alias c_gst_byte_writer_put_data gst_byte_writer_put_data; -alias c_gst_byte_writer_put_float32_be gst_byte_writer_put_float32_be; -alias c_gst_byte_writer_put_float32_le gst_byte_writer_put_float32_le; -alias c_gst_byte_writer_put_float64_be gst_byte_writer_put_float64_be; -alias c_gst_byte_writer_put_float64_le gst_byte_writer_put_float64_le; -alias c_gst_byte_writer_put_int16_be gst_byte_writer_put_int16_be; -alias c_gst_byte_writer_put_int16_le gst_byte_writer_put_int16_le; -alias c_gst_byte_writer_put_int24_be gst_byte_writer_put_int24_be; -alias c_gst_byte_writer_put_int24_le gst_byte_writer_put_int24_le; -alias c_gst_byte_writer_put_int32_be gst_byte_writer_put_int32_be; -alias c_gst_byte_writer_put_int32_le gst_byte_writer_put_int32_le; -alias c_gst_byte_writer_put_int64_be gst_byte_writer_put_int64_be; -alias c_gst_byte_writer_put_int64_le gst_byte_writer_put_int64_le; -alias c_gst_byte_writer_put_int8 gst_byte_writer_put_int8; -alias c_gst_byte_writer_put_string_utf16 gst_byte_writer_put_string_utf16; -alias c_gst_byte_writer_put_string_utf32 gst_byte_writer_put_string_utf32; -alias c_gst_byte_writer_put_string_utf8 gst_byte_writer_put_string_utf8; -alias c_gst_byte_writer_put_uint16_be gst_byte_writer_put_uint16_be; -alias c_gst_byte_writer_put_uint16_le gst_byte_writer_put_uint16_le; -alias c_gst_byte_writer_put_uint24_be gst_byte_writer_put_uint24_be; -alias c_gst_byte_writer_put_uint24_le gst_byte_writer_put_uint24_le; -alias c_gst_byte_writer_put_uint32_be gst_byte_writer_put_uint32_be; -alias c_gst_byte_writer_put_uint32_le gst_byte_writer_put_uint32_le; -alias c_gst_byte_writer_put_uint64_be gst_byte_writer_put_uint64_be; -alias c_gst_byte_writer_put_uint64_le gst_byte_writer_put_uint64_le; -alias c_gst_byte_writer_put_uint8 gst_byte_writer_put_uint8; -alias c_gst_byte_writer_reset gst_byte_writer_reset; -alias c_gst_byte_writer_reset_and_get_buffer gst_byte_writer_reset_and_get_buffer; -alias c_gst_byte_writer_reset_and_get_data gst_byte_writer_reset_and_get_data; -alias c_gst_byte_writer_new gst_byte_writer_new; -alias c_gst_byte_writer_new_with_data gst_byte_writer_new_with_data; -alias c_gst_byte_writer_new_with_size gst_byte_writer_new_with_size; - -// gst.base.CollectPads - -alias c_gst_collect_pads_get_type gst_collect_pads_get_type; -alias c_gst_collect_pads_new gst_collect_pads_new; -alias c_gst_collect_pads_add_pad gst_collect_pads_add_pad; -alias c_gst_collect_pads_available gst_collect_pads_available; -alias c_gst_collect_pads_clip_running_time gst_collect_pads_clip_running_time; -alias c_gst_collect_pads_event_default gst_collect_pads_event_default; -alias c_gst_collect_pads_flush gst_collect_pads_flush; -alias c_gst_collect_pads_peek gst_collect_pads_peek; -alias c_gst_collect_pads_pop gst_collect_pads_pop; -alias c_gst_collect_pads_query_default gst_collect_pads_query_default; -alias c_gst_collect_pads_read_buffer gst_collect_pads_read_buffer; -alias c_gst_collect_pads_remove_pad gst_collect_pads_remove_pad; -alias c_gst_collect_pads_set_buffer_function gst_collect_pads_set_buffer_function; -alias c_gst_collect_pads_set_clip_function gst_collect_pads_set_clip_function; -alias c_gst_collect_pads_set_compare_function gst_collect_pads_set_compare_function; -alias c_gst_collect_pads_set_event_function gst_collect_pads_set_event_function; -alias c_gst_collect_pads_set_flush_function gst_collect_pads_set_flush_function; -alias c_gst_collect_pads_set_flushing gst_collect_pads_set_flushing; -alias c_gst_collect_pads_set_function gst_collect_pads_set_function; -alias c_gst_collect_pads_set_query_function gst_collect_pads_set_query_function; -alias c_gst_collect_pads_set_waiting gst_collect_pads_set_waiting; -alias c_gst_collect_pads_src_event_default gst_collect_pads_src_event_default; -alias c_gst_collect_pads_start gst_collect_pads_start; -alias c_gst_collect_pads_stop gst_collect_pads_stop; -alias c_gst_collect_pads_take_buffer gst_collect_pads_take_buffer; - -// gst.base.DataQueue - -alias c_gst_data_queue_get_type gst_data_queue_get_type; -alias c_gst_data_queue_new gst_data_queue_new; -alias c_gst_data_queue_drop_head gst_data_queue_drop_head; -alias c_gst_data_queue_flush gst_data_queue_flush; -alias c_gst_data_queue_get_level gst_data_queue_get_level; -alias c_gst_data_queue_is_empty gst_data_queue_is_empty; -alias c_gst_data_queue_is_full gst_data_queue_is_full; -alias c_gst_data_queue_limits_changed gst_data_queue_limits_changed; -alias c_gst_data_queue_peek gst_data_queue_peek; -alias c_gst_data_queue_pop gst_data_queue_pop; -alias c_gst_data_queue_push gst_data_queue_push; -alias c_gst_data_queue_push_force gst_data_queue_push_force; -alias c_gst_data_queue_set_flushing gst_data_queue_set_flushing; - -// gst.base.FlowCombiner - -alias c_gst_flow_combiner_get_type gst_flow_combiner_get_type; -alias c_gst_flow_combiner_new gst_flow_combiner_new; -alias c_gst_flow_combiner_add_pad gst_flow_combiner_add_pad; -alias c_gst_flow_combiner_clear gst_flow_combiner_clear; -alias c_gst_flow_combiner_free gst_flow_combiner_free; -alias c_gst_flow_combiner_ref gst_flow_combiner_ref; -alias c_gst_flow_combiner_remove_pad gst_flow_combiner_remove_pad; -alias c_gst_flow_combiner_reset gst_flow_combiner_reset; -alias c_gst_flow_combiner_unref gst_flow_combiner_unref; -alias c_gst_flow_combiner_update_flow gst_flow_combiner_update_flow; -alias c_gst_flow_combiner_update_pad_flow gst_flow_combiner_update_pad_flow; - -// gst.base.PushSrc - -alias c_gst_push_src_get_type gst_push_src_get_type; - -// gst.base.QueueArray - -alias c_gst_queue_array_clear gst_queue_array_clear; -alias c_gst_queue_array_drop_element gst_queue_array_drop_element; -alias c_gst_queue_array_drop_struct gst_queue_array_drop_struct; -alias c_gst_queue_array_find gst_queue_array_find; -alias c_gst_queue_array_free gst_queue_array_free; -alias c_gst_queue_array_get_length gst_queue_array_get_length; -alias c_gst_queue_array_is_empty gst_queue_array_is_empty; -alias c_gst_queue_array_peek_head gst_queue_array_peek_head; -alias c_gst_queue_array_peek_head_struct gst_queue_array_peek_head_struct; -alias c_gst_queue_array_peek_nth gst_queue_array_peek_nth; -alias c_gst_queue_array_peek_nth_struct gst_queue_array_peek_nth_struct; -alias c_gst_queue_array_peek_tail gst_queue_array_peek_tail; -alias c_gst_queue_array_peek_tail_struct gst_queue_array_peek_tail_struct; -alias c_gst_queue_array_pop_head gst_queue_array_pop_head; -alias c_gst_queue_array_pop_head_struct gst_queue_array_pop_head_struct; -alias c_gst_queue_array_pop_tail gst_queue_array_pop_tail; -alias c_gst_queue_array_pop_tail_struct gst_queue_array_pop_tail_struct; -alias c_gst_queue_array_push_tail gst_queue_array_push_tail; -alias c_gst_queue_array_push_tail_struct gst_queue_array_push_tail_struct; -alias c_gst_queue_array_set_clear_func gst_queue_array_set_clear_func; -alias c_gst_queue_array_new gst_queue_array_new; -alias c_gst_queue_array_new_for_struct gst_queue_array_new_for_struct; - -// gst.base.Base - -alias c_gst_type_find_helper gst_type_find_helper; -alias c_gst_type_find_helper_for_buffer gst_type_find_helper_for_buffer; -alias c_gst_type_find_helper_for_data gst_type_find_helper_for_data; -alias c_gst_type_find_helper_for_extension gst_type_find_helper_for_extension; -alias c_gst_type_find_helper_get_range gst_type_find_helper_get_range; -alias c_gst_type_find_helper_for_buffer_with_extension gst_type_find_helper_for_buffer_with_extension; -alias c_gst_type_find_helper_for_data_with_extension gst_type_find_helper_for_data_with_extension; -alias c_gst_type_find_helper_get_range_full gst_type_find_helper_get_range_full; diff --git a/generated/gstreamer/gst/base/c/types.d b/generated/gstreamer/gst/base/c/types.d deleted file mode 100644 index ab91a194f..000000000 --- a/generated/gstreamer/gst/base/c/types.d +++ /dev/null @@ -1,1016 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.base.c.types; - -public import glib.c.types; -public import gobject.c.types; -public import gstreamer.c.types; - - -public enum GstAggregatorStartTimeSelection -{ - /** - * Start at running time 0. - */ - ZERO = 0, - /** - * Start at the running time of - * the first buffer that is received. - */ - FIRST = 1, - /** - * Start at the running time - * selected by the `start-time` property. - */ - SET = 2, -} -alias GstAggregatorStartTimeSelection AggregatorStartTimeSelection; - -/** - * Flags to be used in a #GstBaseParseFrame. - */ -public enum GstBaseParseFrameFlags -{ - /** - * no flag - */ - NONE = 0, - /** - * set by baseclass if current frame - * is passed for processing to the subclass for the first time - * (and not set on subsequent calls with same data). - */ - NEW_FRAME = 1, - /** - * set to indicate this buffer should not be - * counted as frame, e.g. if this frame is dependent on a previous one. - * As it is not counted as a frame, bitrate increases but frame to time - * conversions are maintained. - */ - NO_FRAME = 2, - /** - * @pre_push_frame can set this to indicate - * that regular segment clipping can still be performed (as opposed to - * any custom one having been done). - */ - CLIP = 4, - /** - * indicates to @finish_frame that the - * the frame should be dropped (and might be handled internally by subclass) - */ - DROP = 8, - /** - * indicates to @finish_frame that the - * the frame should be queued for now and processed fully later - * when the first non-queued frame is finished - */ - QUEUE = 16, -} -alias GstBaseParseFrameFlags BaseParseFrameFlags; - -/** - * The #GstElement flags that a basesrc element may have. - */ -public enum GstBaseSrcFlags -{ - /** - * has source is starting - */ - STARTING = 16384, - /** - * has source been started - */ - STARTED = 32768, - /** - * offset to define more flags - */ - LAST = 1048576, -} -alias GstBaseSrcFlags BaseSrcFlags; - -public enum GstCollectPadsStateFlags -{ - /** - * Set if collectdata's pad is EOS. - */ - EOS = 1, - /** - * Set if collectdata's pad is flushing. - */ - FLUSHING = 2, - /** - * Set if collectdata's pad received a - * new_segment event. - */ - NEW_SEGMENT = 4, - /** - * Set if collectdata's pad must be waited - * for when collecting. - */ - WAITING = 8, - /** - * Set collectdata's pad WAITING state must - * not be changed. - * #GstCollectPadsStateFlags indicate private state of a collectdata('s pad). - */ - LOCKED = 16, -} -alias GstCollectPadsStateFlags CollectPadsStateFlags; - -struct GstAdapter; - -struct GstAdapterClass; - -struct GstAggregator -{ - GstElement parent; - /** - * the aggregator's source pad - */ - GstPad* srcpad; - GstAggregatorPrivate* priv; - void*[20] GstReserved; -} - -/** - * The aggregator base class will handle in a thread-safe way all manners of - * concurrent flushes, seeks, pad additions and removals, leaving to the - * subclass the responsibility of clipping buffers, and aggregating buffers in - * the way the implementor sees fit. - * - * It will also take care of event ordering (stream-start, segment, eos). - * - * Basically, a simple implementation will override @aggregate, and call - * _finish_buffer from inside that function. - * - * Since: 1.14 - */ -struct GstAggregatorClass -{ - GstElementClass parentClass; - /** */ - extern(C) GstFlowReturn function(GstAggregator* aggregator) flush; - /** */ - extern(C) GstBuffer* function(GstAggregator* aggregator, GstAggregatorPad* aggregatorPad, GstBuffer* buf) clip; - /** */ - extern(C) GstFlowReturn function(GstAggregator* aggregator, GstBuffer* buffer) finishBuffer; - /** */ - extern(C) int function(GstAggregator* aggregator, GstAggregatorPad* aggregatorPad, GstEvent* event) sinkEvent; - /** */ - extern(C) int function(GstAggregator* aggregator, GstAggregatorPad* aggregatorPad, GstQuery* query) sinkQuery; - /** */ - extern(C) int function(GstAggregator* aggregator, GstEvent* event) srcEvent; - /** */ - extern(C) int function(GstAggregator* aggregator, GstQuery* query) srcQuery; - /** */ - extern(C) int function(GstAggregator* aggregator, GstPadMode mode, int active) srcActivate; - /** */ - extern(C) GstFlowReturn function(GstAggregator* aggregator, int timeout) aggregate; - /** */ - extern(C) int function(GstAggregator* aggregator) stop; - /** */ - extern(C) int function(GstAggregator* aggregator) start; - /** */ - extern(C) GstClockTime function(GstAggregator* aggregator) getNextTime; - /** */ - extern(C) GstAggregatorPad* function(GstAggregator* self, GstPadTemplate* templ, const(char)* reqName, GstCaps* caps) createNewPad; - /** */ - extern(C) GstFlowReturn function(GstAggregator* self, GstCaps* caps, GstCaps** ret) updateSrcCaps; - /** */ - extern(C) GstCaps* function(GstAggregator* self, GstCaps* caps) fixateSrcCaps; - /** */ - extern(C) int function(GstAggregator* self, GstCaps* caps) negotiatedSrcCaps; - /** */ - extern(C) int function(GstAggregator* self, GstQuery* query) decideAllocation; - /** */ - extern(C) int function(GstAggregator* self, GstAggregatorPad* pad, GstQuery* decideQuery, GstQuery* query) proposeAllocation; - /** - * - * Params: - * self = a #GstAggregator - * Returns: %TRUE if the negotiation succeeded, else %FALSE. - */ - extern(C) int function(GstAggregator* self) negotiate; - /** */ - extern(C) GstFlowReturn function(GstAggregator* aggregator, GstAggregatorPad* aggregatorPad, GstEvent* event) sinkEventPreQueue; - /** */ - extern(C) int function(GstAggregator* aggregator, GstAggregatorPad* aggregatorPad, GstQuery* query) sinkQueryPreQueue; - /** */ - extern(C) GstFlowReturn function(GstAggregator* aggregator, GstBufferList* bufferlist) finishBufferList; - /** - * Returns: The sample that is about to be aggregated. It may hold a #GstBuffer - * or a #GstBufferList. The contents of its info structure is subclass-dependent, - * and documented on a subclass basis. The buffers held by the sample are - * not writable. - */ - extern(C) GstSample* function(GstAggregator* aggregator, GstAggregatorPad* aggregatorPad) peekNextSample; - void*[15] GstReserved; -} - -struct GstAggregatorPad -{ - GstPad parent; - /** - * last segment received. - */ - GstSegment segment; - GstAggregatorPadPrivate* priv; - void*[4] GstReserved; -} - -struct GstAggregatorPadClass -{ - GstPadClass parentClass; - /** */ - extern(C) GstFlowReturn function(GstAggregatorPad* aggpad, GstAggregator* aggregator) flush; - /** */ - extern(C) int function(GstAggregatorPad* aggpad, GstAggregator* aggregator, GstBuffer* buffer) skipBuffer; - void*[20] GstReserved; -} - -struct GstAggregatorPadPrivate; - -struct GstAggregatorPrivate; - -struct GstBaseParse -{ - /** - * the parent element. - */ - GstElement element; - GstPad* sinkpad; - GstPad* srcpad; - uint flags; - GstSegment segment; - void*[20] GstReserved; - GstBaseParsePrivate* priv; -} - -/** - * Subclasses can override any of the available virtual methods or not, as - * needed. At minimum @handle_frame needs to be overridden. - */ -struct GstBaseParseClass -{ - /** - * the parent class - */ - GstElementClass parentClass; - /** */ - extern(C) int function(GstBaseParse* parse) start; - /** */ - extern(C) int function(GstBaseParse* parse) stop; - /** */ - extern(C) int function(GstBaseParse* parse, GstCaps* caps) setSinkCaps; - /** */ - extern(C) GstFlowReturn function(GstBaseParse* parse, GstBaseParseFrame* frame, int* skipsize) handleFrame; - /** */ - extern(C) GstFlowReturn function(GstBaseParse* parse, GstBaseParseFrame* frame) prePushFrame; - /** */ - extern(C) int function(GstBaseParse* parse, GstFormat srcFormat, long srcValue, GstFormat destFormat, long* destValue) convert; - /** */ - extern(C) int function(GstBaseParse* parse, GstEvent* event) sinkEvent; - /** */ - extern(C) int function(GstBaseParse* parse, GstEvent* event) srcEvent; - /** */ - extern(C) GstCaps* function(GstBaseParse* parse, GstCaps* filter) getSinkCaps; - /** */ - extern(C) GstFlowReturn function(GstBaseParse* parse, GstBuffer* buffer) detect; - /** */ - extern(C) int function(GstBaseParse* parse, GstQuery* query) sinkQuery; - /** */ - extern(C) int function(GstBaseParse* parse, GstQuery* query) srcQuery; - void*[18] GstReserved; -} - -struct GstBaseParseFrame -{ - /** - * input data to be parsed for frames. - */ - GstBuffer* buffer; - /** - * output data. - */ - GstBuffer* outBuffer; - /** - * a combination of input and output #GstBaseParseFrameFlags that - * convey additional context to subclass or allow subclass to tune - * subsequent #GstBaseParse actions. - */ - uint flags; - /** - * media specific offset of input frame - * Note that a converter may have a different one on the frame's buffer. - */ - ulong offset; - /** - * subclass can set this to indicates the metadata overhead - * for the given frame, which is then used to enable more accurate bitrate - * computations. If this is -1, it is assumed that this frame should be - * skipped in bitrate calculation. - */ - int overhead; - int size; - uint[2] GstReservedI; - void*[2] GstReservedP; - uint PrivateFlags; -} - -struct GstBaseParsePrivate; - -struct GstBaseSink -{ - GstElement element; - GstPad* sinkpad; - GstPadMode padMode; - ulong offset; - bool canActivatePull; - bool canActivatePush; - GMutex prerollLock; - GCond prerollCond; - bool eos; - bool needPreroll; - bool havePreroll; - bool playingAsync; - bool haveNewsegment; - GstSegment segment; - GstClockID clockId; - bool sync; - bool flushing; - bool running; - long maxLateness; - GstBaseSinkPrivate* priv; - void*[20] GstReserved; -} - -/** - * Subclasses can override any of the available virtual methods or not, as - * needed. At the minimum, the @render method should be overridden to - * output/present buffers. - */ -struct GstBaseSinkClass -{ - /** - * Element parent class - */ - GstElementClass parentClass; - /** */ - extern(C) GstCaps* function(GstBaseSink* sink, GstCaps* filter) getCaps; - /** */ - extern(C) int function(GstBaseSink* sink, GstCaps* caps) setCaps; - /** */ - extern(C) GstCaps* function(GstBaseSink* sink, GstCaps* caps) fixate; - /** */ - extern(C) int function(GstBaseSink* sink, int active) activatePull; - /** */ - extern(C) void function(GstBaseSink* sink, GstBuffer* buffer, GstClockTime* start, GstClockTime* end) getTimes; - /** */ - extern(C) int function(GstBaseSink* sink, GstQuery* query) proposeAllocation; - /** */ - extern(C) int function(GstBaseSink* sink) start; - /** */ - extern(C) int function(GstBaseSink* sink) stop; - /** */ - extern(C) int function(GstBaseSink* sink) unlock; - /** */ - extern(C) int function(GstBaseSink* sink) unlockStop; - /** */ - extern(C) int function(GstBaseSink* sink, GstQuery* query) query; - /** */ - extern(C) int function(GstBaseSink* sink, GstEvent* event) event; - /** */ - extern(C) GstFlowReturn function(GstBaseSink* sink, GstEvent* event) waitEvent; - /** */ - extern(C) GstFlowReturn function(GstBaseSink* sink, GstBuffer* buffer) prepare; - /** */ - extern(C) GstFlowReturn function(GstBaseSink* sink, GstBufferList* bufferList) prepareList; - /** */ - extern(C) GstFlowReturn function(GstBaseSink* sink, GstBuffer* buffer) preroll; - /** */ - extern(C) GstFlowReturn function(GstBaseSink* sink, GstBuffer* buffer) render; - /** */ - extern(C) GstFlowReturn function(GstBaseSink* sink, GstBufferList* bufferList) renderList; - void*[20] GstReserved; -} - -struct GstBaseSinkPrivate; - -struct GstBaseSrc -{ - GstElement element; - GstPad* srcpad; - GMutex liveLock; - GCond liveCond; - bool isLive; - bool liveRunning; - uint blocksize; - bool canActivatePush; - bool randomAccess; - GstClockID clockId; - GstSegment segment; - bool needNewsegment; - int numBuffers; - int numBuffersLeft; - bool typefind; - bool running; - GstEvent* pendingSeek; - GstBaseSrcPrivate* priv; - void*[20] GstReserved; -} - -/** - * Subclasses can override any of the available virtual methods or not, as - * needed. At the minimum, the @create method should be overridden to produce - * buffers. - */ -struct GstBaseSrcClass -{ - /** - * Element parent class - */ - GstElementClass parentClass; - /** */ - extern(C) GstCaps* function(GstBaseSrc* src, GstCaps* filter) getCaps; - /** - * - * Params: - * src = base source instance - * Returns: %TRUE if the negotiation succeeded, else %FALSE. - */ - extern(C) int function(GstBaseSrc* src) negotiate; - /** */ - extern(C) GstCaps* function(GstBaseSrc* src, GstCaps* caps) fixate; - /** - * - * Params: - * src = a #GstBaseSrc - * caps = a #GstCaps - * Returns: %TRUE if the caps could be set - */ - extern(C) int function(GstBaseSrc* src, GstCaps* caps) setCaps; - /** */ - extern(C) int function(GstBaseSrc* src, GstQuery* query) decideAllocation; - /** */ - extern(C) int function(GstBaseSrc* src) start; - /** */ - extern(C) int function(GstBaseSrc* src) stop; - /** */ - extern(C) void function(GstBaseSrc* src, GstBuffer* buffer, GstClockTime* start, GstClockTime* end) getTimes; - /** */ - extern(C) int function(GstBaseSrc* src, ulong* size) getSize; - /** */ - extern(C) int function(GstBaseSrc* src) isSeekable; - /** */ - extern(C) int function(GstBaseSrc* src, GstEvent* seek, GstSegment* segment) prepareSeekSegment; - /** */ - extern(C) int function(GstBaseSrc* src, GstSegment* segment) doSeek; - /** */ - extern(C) int function(GstBaseSrc* src) unlock; - /** */ - extern(C) int function(GstBaseSrc* src) unlockStop; - /** */ - extern(C) int function(GstBaseSrc* src, GstQuery* query) query; - /** */ - extern(C) int function(GstBaseSrc* src, GstEvent* event) event; - /** */ - extern(C) GstFlowReturn function(GstBaseSrc* src, ulong offset, uint size, GstBuffer** buf) create; - /** */ - extern(C) GstFlowReturn function(GstBaseSrc* src, ulong offset, uint size, GstBuffer** buf) alloc; - /** */ - extern(C) GstFlowReturn function(GstBaseSrc* src, ulong offset, uint size, GstBuffer* buf) fill; - void*[20] GstReserved; -} - -struct GstBaseSrcPrivate; - -struct GstBaseTransform -{ - GstElement element; - GstPad* sinkpad; - GstPad* srcpad; - bool haveSegment; - GstSegment segment; - GstBuffer* queuedBuf; - GstBaseTransformPrivate* priv; - void*[19] GstReserved; -} - -/** - * Subclasses can override any of the available virtual methods or not, as - * needed. At minimum either @transform or @transform_ip need to be overridden. - * If the element can overwrite the input data with the results (data is of the - * same type and quantity) it should provide @transform_ip. - */ -struct GstBaseTransformClass -{ - /** - * Element parent class - */ - GstElementClass parentClass; - /** - * If set to %TRUE, passthrough mode will be - * automatically enabled if the caps are the same. - * Set to %FALSE by default. - */ - bool passthroughOnSameCaps; - /** - * If set to %TRUE, @transform_ip will be called in - * passthrough mode. The passed buffer might not be - * writable. When %FALSE, neither @transform nor - * @transform_ip will be called in passthrough mode. - * Set to %TRUE by default. - */ - bool transformIpOnPassthrough; - /** */ - extern(C) GstCaps* function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps, GstCaps* filter) transformCaps; - /** */ - extern(C) GstCaps* function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps, GstCaps* othercaps) fixateCaps; - /** */ - extern(C) int function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps) acceptCaps; - /** */ - extern(C) int function(GstBaseTransform* trans, GstCaps* incaps, GstCaps* outcaps) setCaps; - /** */ - extern(C) int function(GstBaseTransform* trans, GstPadDirection direction, GstQuery* query) query; - /** */ - extern(C) int function(GstBaseTransform* trans, GstQuery* query) decideAllocation; - /** */ - extern(C) int function(GstBaseTransform* trans, GstQuery* query, GType api, GstStructure* params) filterMeta; - /** */ - extern(C) int function(GstBaseTransform* trans, GstQuery* decideQuery, GstQuery* query) proposeAllocation; - /** */ - extern(C) int function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps, size_t size, GstCaps* othercaps, size_t* othersize) transformSize; - /** */ - extern(C) int function(GstBaseTransform* trans, GstCaps* caps, size_t* size) getUnitSize; - /** */ - extern(C) int function(GstBaseTransform* trans) start; - /** */ - extern(C) int function(GstBaseTransform* trans) stop; - /** */ - extern(C) int function(GstBaseTransform* trans, GstEvent* event) sinkEvent; - /** */ - extern(C) int function(GstBaseTransform* trans, GstEvent* event) srcEvent; - /** */ - extern(C) GstFlowReturn function(GstBaseTransform* trans, GstBuffer* input, GstBuffer** outbuf) prepareOutputBuffer; - /** */ - extern(C) int function(GstBaseTransform* trans, GstBuffer* input, GstBuffer* outbuf) copyMetadata; - /** */ - extern(C) int function(GstBaseTransform* trans, GstBuffer* outbuf, GstMeta* meta, GstBuffer* inbuf) transformMeta; - /** */ - extern(C) void function(GstBaseTransform* trans, GstBuffer* buffer) beforeTransform; - /** */ - extern(C) GstFlowReturn function(GstBaseTransform* trans, GstBuffer* inbuf, GstBuffer* outbuf) transform; - /** */ - extern(C) GstFlowReturn function(GstBaseTransform* trans, GstBuffer* buf) transformIp; - /** */ - extern(C) GstFlowReturn function(GstBaseTransform* trans, int isDiscont, GstBuffer* input) submitInputBuffer; - /** */ - extern(C) GstFlowReturn function(GstBaseTransform* trans, GstBuffer** outbuf) generateOutput; - void*[18] GstReserved; -} - -struct GstBaseTransformPrivate; - -struct GstBitReader -{ - /** - * Data from which the bit reader will - * read - */ - ubyte* data; - /** - * Size of @data in bytes - */ - uint size; - /** - * Current byte position - */ - uint byte_; - /** - * Bit position in the current byte - */ - uint bit; - void*[4] GstReserved; -} - -struct GstBitWriter -{ - /** - * Allocated @data for bit writer to write - */ - ubyte* data; - /** - * Size of written @data in bits - */ - uint bitSize; - uint bitCapacity; - bool autoGrow; - bool owned; - void*[4] GstReserved; -} - -struct GstByteReader -{ - /** - * Data from which the bit reader will - * read - */ - ubyte* data; - /** - * Size of @data in bytes - */ - uint size; - /** - * Current byte position - */ - uint byte_; - void*[4] GstReserved; -} - -struct GstByteWriter -{ - /** - * #GstByteReader parent - */ - GstByteReader parent; - /** - * Allocation size of the data - */ - uint allocSize; - /** - * If %TRUE no reallocations are allowed - */ - bool fixed; - /** - * If %FALSE no reallocations are allowed and copies of data are returned - */ - bool owned; - void*[4] GstReserved; -} - -/** - * Structure used by the collect_pads. - */ -struct GstCollectData -{ - /** - * owner #GstCollectPads - */ - GstCollectPads* collect; - /** - * #GstPad managed by this data - */ - GstPad* pad; - /** - * currently queued buffer. - */ - GstBuffer* buffer; - /** - * position in the buffer - */ - uint pos; - /** - * last segment received. - */ - GstSegment segment; - GstCollectPadsStateFlags state; - GstCollectDataPrivate* priv; - union ABI - { - struct Abi - { - long dts; - } - Abi abi; - void*[4] GstReserved; - } - ABI abi; -} - -struct GstCollectDataPrivate; - -struct GstCollectPads -{ - GstObject object; - /** - * #GList of #GstCollectData managed - * by this #GstCollectPads. - */ - GSList* data; - GRecMutex streamLock; - GstCollectPadsPrivate* priv; - void*[4] GstReserved; -} - -struct GstCollectPadsClass -{ - GstObjectClass parentClass; - void*[4] GstReserved; -} - -struct GstCollectPadsPrivate; - -struct GstDataQueue -{ - /** - * the parent structure - */ - GObject object; - GstDataQueuePrivate* priv; - void*[4] GstReserved; -} - -struct GstDataQueueClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GstDataQueue* queue) empty; - /** */ - extern(C) void function(GstDataQueue* queue) full; - void*[4] GstReserved; -} - -/** - * Structure used by #GstDataQueue. You can supply a different structure, as - * long as the top of the structure is identical to this structure. - */ -struct GstDataQueueItem -{ - /** - * the #GstMiniObject to queue. - */ - GstMiniObject* object; - /** - * the size in bytes of the miniobject. - */ - uint size; - /** - * the duration in #GstClockTime of the miniobject. Can not be - * %GST_CLOCK_TIME_NONE. - */ - ulong duration; - /** - * %TRUE if @object should be considered as a visible object. - */ - bool visible; - /** - * The #GDestroyNotify function to use to free the #GstDataQueueItem. - * This function should also drop the reference to @object the owner of the - * #GstDataQueueItem is assumed to hold. - */ - GDestroyNotify destroy; - void*[4] GstReserved; -} - -struct GstDataQueuePrivate; - -/** - * Structure describing the size of a queue. - */ -struct GstDataQueueSize -{ - /** - * number of buffers - */ - uint visible; - /** - * number of bytes - */ - uint bytes; - /** - * amount of time - */ - ulong time; -} - -struct GstFlowCombiner; - -struct GstPushSrc -{ - GstBaseSrc parent; - void*[4] GstReserved; -} - -/** - * Subclasses can override any of the available virtual methods or not, as - * needed. At the minimum, the @fill method should be overridden to produce - * buffers. - */ -struct GstPushSrcClass -{ - /** - * Element parent class - */ - GstBaseSrcClass parentClass; - /** */ - extern(C) GstFlowReturn function(GstPushSrc* src, GstBuffer** buf) create; - /** */ - extern(C) GstFlowReturn function(GstPushSrc* src, GstBuffer** buf) alloc; - /** */ - extern(C) GstFlowReturn function(GstPushSrc* src, GstBuffer* buf) fill; - void*[4] GstReserved; -} - -struct GstQueueArray; - -/** - * A function that will be called when the #GstCollectData will be freed. - * It is passed the pointer to the structure and should free any custom - * memory and resources allocated for it. - * - * Params: - * data = the #GstCollectData that will be freed - */ -public alias extern(C) void function(GstCollectData* data) GstCollectDataDestroyNotify; - -/** - * A function that will be called when a (considered oldest) buffer can be muxed. - * If all pads have reached EOS, this function is called with %NULL @buffer - * and %NULL @data. - * - * Params: - * pads = the #GstCollectPads that triggered the callback - * data = the #GstCollectData of pad that has received the buffer - * buffer = the #GstBuffer - * userData = user data passed to gst_collect_pads_set_buffer_function() - * - * Returns: %GST_FLOW_OK for success - */ -public alias extern(C) GstFlowReturn function(GstCollectPads* pads, GstCollectData* data, GstBuffer* buffer, void* userData) GstCollectPadsBufferFunction; - -/** - * A function that will be called when @inbuffer is received on the pad managed - * by @data in the collectpad object @pads. - * - * The function should use the segment of @data and the negotiated media type on - * the pad to perform clipping of @inbuffer. - * - * This function takes ownership of @inbuffer and should output a buffer in - * @outbuffer or return %NULL in @outbuffer if the buffer should be dropped. - * - * Params: - * pads = a #GstCollectPads - * data = a #GstCollectData - * inbuffer = the input #GstBuffer - * outbuffer = the output #GstBuffer - * userData = user data - * - * Returns: a #GstFlowReturn that corresponds to the result of clipping. - */ -public alias extern(C) GstFlowReturn function(GstCollectPads* pads, GstCollectData* data, GstBuffer* inbuffer, GstBuffer** outbuffer, void* userData) GstCollectPadsClipFunction; - -/** - * A function for comparing two timestamps of buffers or newsegments collected on one pad. - * - * Params: - * pads = the #GstCollectPads that is comparing the timestamps - * data1 = the first #GstCollectData - * timestamp1 = the first timestamp - * data2 = the second #GstCollectData - * timestamp2 = the second timestamp - * userData = user data passed to gst_collect_pads_set_compare_function() - * - * Returns: Integer less than zero when first timestamp is deemed older than the second one. - * Zero if the timestamps are deemed equally old. - * Integer greater than zero when second timestamp is deemed older than the first one. - */ -public alias extern(C) int function(GstCollectPads* pads, GstCollectData* data1, GstClockTime timestamp1, GstCollectData* data2, GstClockTime timestamp2, void* userData) GstCollectPadsCompareFunction; - -/** - * A function that will be called while processing an event. It takes - * ownership of the event and is responsible for chaining up (to - * gst_collect_pads_event_default()) or dropping events (such typical cases - * being handled by the default handler). - * - * Params: - * pads = the #GstCollectPads that triggered the callback - * pad = the #GstPad that received an event - * event = the #GstEvent received - * userData = user data passed to gst_collect_pads_set_event_function() - * - * Returns: %TRUE if the pad could handle the event - */ -public alias extern(C) int function(GstCollectPads* pads, GstCollectData* pad, GstEvent* event, void* userData) GstCollectPadsEventFunction; - -/** - * A function that will be called while processing a flushing seek event. - * - * The function should flush any internal state of the element and the state of - * all the pads. It should clear only the state not directly managed by the - * @pads object. It is therefore not necessary to call - * gst_collect_pads_set_flushing nor gst_collect_pads_clear from this function. - * - * Params: - * pads = a #GstCollectPads - * userData = user data - * - * Since: 1.4 - */ -public alias extern(C) void function(GstCollectPads* pads, void* userData) GstCollectPadsFlushFunction; - -/** - * A function that will be called when all pads have received data. - * - * Params: - * pads = the #GstCollectPads that triggered the callback - * userData = user data passed to gst_collect_pads_set_function() - * - * Returns: %GST_FLOW_OK for success - */ -public alias extern(C) GstFlowReturn function(GstCollectPads* pads, void* userData) GstCollectPadsFunction; - -/** - * A function that will be called while processing a query. It takes - * ownership of the query and is responsible for chaining up (to - * events downstream (with gst_pad_event_default()). - * - * Params: - * pads = the #GstCollectPads that triggered the callback - * pad = the #GstPad that received an event - * query = the #GstEvent received - * userData = user data passed to gst_collect_pads_set_query_function() - * - * Returns: %TRUE if the pad could handle the event - */ -public alias extern(C) int function(GstCollectPads* pads, GstCollectData* pad, GstQuery* query, void* userData) GstCollectPadsQueryFunction; - -/** - * The prototype of the function used to inform the queue that it should be - * considered as full. - * - * Params: - * queue = a #GstDataQueue. - * visible = The number of visible items currently in the queue. - * bytes = The amount of bytes currently in the queue. - * time = The accumulated duration of the items currently in the queue. - * checkdata = The #gpointer registered when the #GstDataQueue was created. - * - * Returns: %TRUE if the queue should be considered full. - */ -public alias extern(C) int function(GstDataQueue* queue, uint visible, uint bytes, ulong time, void* checkdata) GstDataQueueCheckFullFunction; - -/** */ -public alias extern(C) void function(GstDataQueue* queue, void* checkdata) GstDataQueueEmptyCallback; - -/** */ -public alias extern(C) void function(GstDataQueue* queue, void* checkdata) GstDataQueueFullCallback; - -/** - * This function will be called by gst_type_find_helper_get_range() when - * typefinding functions request to peek at the data of a stream at certain - * offsets. If this function returns GST_FLOW_OK, the result buffer will be - * stored in @buffer. The contents of @buffer is invalid for any other - * return value. - * - * This function is supposed to behave exactly like a #GstPadGetRangeFunction. - * - * Params: - * obj = a #GstObject that will handle the getrange request - * parent = the parent of @obj or %NULL - * offset = the offset of the range - * length = the length of the range - * buffer = a memory location to hold the result buffer - * - * Returns: GST_FLOW_OK for success - */ -public alias extern(C) GstFlowReturn function(GstObject* obj, GstObject* parent, ulong offset, uint length, GstBuffer** buffer) GstTypeFindHelperGetRangeFunction; - -enum BASE_PARSE_FLAG_DRAINING = 2; -alias GST_BASE_PARSE_FLAG_DRAINING = BASE_PARSE_FLAG_DRAINING; - -enum BASE_PARSE_FLAG_LOST_SYNC = 1; -alias GST_BASE_PARSE_FLAG_LOST_SYNC = BASE_PARSE_FLAG_LOST_SYNC; - -/** - * The name of the templates for the sink pad. - */ -enum BASE_TRANSFORM_SINK_NAME = "sink"; -alias GST_BASE_TRANSFORM_SINK_NAME = BASE_TRANSFORM_SINK_NAME; - -/** - * The name of the templates for the source pad. - */ -enum BASE_TRANSFORM_SRC_NAME = "src"; -alias GST_BASE_TRANSFORM_SRC_NAME = BASE_TRANSFORM_SRC_NAME; diff --git a/generated/gstreamer/gst/mpegts/AtscEIT.d b/generated/gstreamer/gst/mpegts/AtscEIT.d deleted file mode 100644 index 6203fad93..000000000 --- a/generated/gstreamer/gst/mpegts/AtscEIT.d +++ /dev/null @@ -1,120 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscEIT; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Event Information Table (ATSC) - */ -public final class AtscEIT -{ - /** the main Gtk struct */ - protected GstMpegtsAtscEIT* gstMpegtsAtscEIT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscEIT* getAtscEITStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscEIT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscEIT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscEIT* gstMpegtsAtscEIT, bool ownedRef = false) - { - this.gstMpegtsAtscEIT = gstMpegtsAtscEIT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscEIT); - } - - - /** - * The source id - */ - public @property ushort sourceId() - { - return gstMpegtsAtscEIT.sourceId; - } - - /** Ditto */ - public @property void sourceId(ushort value) - { - gstMpegtsAtscEIT.sourceId = value; - } - - /** - * The protocol version - */ - public @property ubyte protocolVersion() - { - return gstMpegtsAtscEIT.protocolVersion; - } - - /** Ditto */ - public @property void protocolVersion(ubyte value) - { - gstMpegtsAtscEIT.protocolVersion = value; - } - - /** - * Events - */ - public @property PtrArray events() - { - return new PtrArray(gstMpegtsAtscEIT.events, false); - } - - /** Ditto */ - public @property void events(PtrArray value) - { - gstMpegtsAtscEIT.events = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_eit_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscEITEvent.d b/generated/gstreamer/gst/mpegts/AtscEITEvent.d deleted file mode 100644 index cb93fa014..000000000 --- a/generated/gstreamer/gst/mpegts/AtscEITEvent.d +++ /dev/null @@ -1,162 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscEITEvent; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * An ATSC EIT Event - */ -public final class AtscEITEvent -{ - /** the main Gtk struct */ - protected GstMpegtsAtscEITEvent* gstMpegtsAtscEITEvent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscEITEvent* getAtscEITEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscEITEvent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscEITEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscEITEvent* gstMpegtsAtscEITEvent, bool ownedRef = false) - { - this.gstMpegtsAtscEITEvent = gstMpegtsAtscEITEvent; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscEITEvent); - } - - - /** - * The event id - */ - public @property ushort eventId() - { - return gstMpegtsAtscEITEvent.eventId; - } - - /** Ditto */ - public @property void eventId(ushort value) - { - gstMpegtsAtscEITEvent.eventId = value; - } - - /** - * The start time - */ - public @property uint startTime() - { - return gstMpegtsAtscEITEvent.startTime; - } - - /** Ditto */ - public @property void startTime(uint value) - { - gstMpegtsAtscEITEvent.startTime = value; - } - - /** - * The etm location - */ - public @property ubyte etmLocation() - { - return gstMpegtsAtscEITEvent.etmLocation; - } - - /** Ditto */ - public @property void etmLocation(ubyte value) - { - gstMpegtsAtscEITEvent.etmLocation = value; - } - - /** - * The length in seconds - */ - public @property uint lengthInSeconds() - { - return gstMpegtsAtscEITEvent.lengthInSeconds; - } - - /** Ditto */ - public @property void lengthInSeconds(uint value) - { - gstMpegtsAtscEITEvent.lengthInSeconds = value; - } - - /** - * the titles - */ - public @property PtrArray titles() - { - return new PtrArray(gstMpegtsAtscEITEvent.titles, false); - } - - /** Ditto */ - public @property void titles(PtrArray value) - { - gstMpegtsAtscEITEvent.titles = value.getPtrArrayStruct(); - } - - /** - * descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsAtscEITEvent.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsAtscEITEvent.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_eit_event_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscETT.d b/generated/gstreamer/gst/mpegts/AtscETT.d deleted file mode 100644 index 4c0d58739..000000000 --- a/generated/gstreamer/gst/mpegts/AtscETT.d +++ /dev/null @@ -1,132 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscETT; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Extended Text Table (ATSC) - */ -public final class AtscETT -{ - /** the main Gtk struct */ - protected GstMpegtsAtscETT* gstMpegtsAtscETT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscETT* getAtscETTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscETT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscETT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscETT* gstMpegtsAtscETT, bool ownedRef = false) - { - this.gstMpegtsAtscETT = gstMpegtsAtscETT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscETT); - } - - - /** */ - public @property ushort ettTableIdExtension() - { - return gstMpegtsAtscETT.ettTableIdExtension; - } - - /** Ditto */ - public @property void ettTableIdExtension(ushort value) - { - gstMpegtsAtscETT.ettTableIdExtension = value; - } - - /** - * The protocol version - */ - public @property ushort protocolVersion() - { - return gstMpegtsAtscETT.protocolVersion; - } - - /** Ditto */ - public @property void protocolVersion(ushort value) - { - gstMpegtsAtscETT.protocolVersion = value; - } - - /** - * The etm id - */ - public @property uint etmId() - { - return gstMpegtsAtscETT.etmId; - } - - /** Ditto */ - public @property void etmId(uint value) - { - gstMpegtsAtscETT.etmId = value; - } - - /** - * List of texts - */ - public @property PtrArray messages() - { - return new PtrArray(gstMpegtsAtscETT.messages, false); - } - - /** Ditto */ - public @property void messages(PtrArray value) - { - gstMpegtsAtscETT.messages = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_ett_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscMGT.d b/generated/gstreamer/gst/mpegts/AtscMGT.d deleted file mode 100644 index f9bdb3ae0..000000000 --- a/generated/gstreamer/gst/mpegts/AtscMGT.d +++ /dev/null @@ -1,149 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscMGT; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Master Guide Table (A65) - */ -public final class AtscMGT -{ - /** the main Gtk struct */ - protected GstMpegtsAtscMGT* gstMpegtsAtscMGT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscMGT* getAtscMGTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscMGT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscMGT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscMGT* gstMpegtsAtscMGT, bool ownedRef = false) - { - this.gstMpegtsAtscMGT = gstMpegtsAtscMGT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscMGT); - } - - - /** - * The protocol version - */ - public @property ubyte protocolVersion() - { - return gstMpegtsAtscMGT.protocolVersion; - } - - /** Ditto */ - public @property void protocolVersion(ubyte value) - { - gstMpegtsAtscMGT.protocolVersion = value; - } - - /** - * The numbers of subtables - */ - public @property ushort tablesDefined() - { - return gstMpegtsAtscMGT.tablesDefined; - } - - /** Ditto */ - public @property void tablesDefined(ushort value) - { - gstMpegtsAtscMGT.tablesDefined = value; - } - - /** - * the tables - */ - public @property PtrArray tables() - { - return new PtrArray(gstMpegtsAtscMGT.tables, false); - } - - /** Ditto */ - public @property void tables(PtrArray value) - { - gstMpegtsAtscMGT.tables = value.getPtrArrayStruct(); - } - - /** - * descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsAtscMGT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsAtscMGT.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_mgt_get_type(); - } - - /** */ - public this() - { - auto __p = gst_mpegts_atsc_mgt_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsAtscMGT*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscMGTTable.d b/generated/gstreamer/gst/mpegts/AtscMGTTable.d deleted file mode 100644 index bd0839818..000000000 --- a/generated/gstreamer/gst/mpegts/AtscMGTTable.d +++ /dev/null @@ -1,146 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscMGTTable; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Source from a @GstMpegtsAtscMGT - */ -public final class AtscMGTTable -{ - /** the main Gtk struct */ - protected GstMpegtsAtscMGTTable* gstMpegtsAtscMGTTable; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscMGTTable* getAtscMGTTableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscMGTTable; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscMGTTable; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscMGTTable* gstMpegtsAtscMGTTable, bool ownedRef = false) - { - this.gstMpegtsAtscMGTTable = gstMpegtsAtscMGTTable; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscMGTTable); - } - - - /** - * #GstMpegtsAtscMGTTableType - */ - public @property ushort tableType() - { - return gstMpegtsAtscMGTTable.tableType; - } - - /** Ditto */ - public @property void tableType(ushort value) - { - gstMpegtsAtscMGTTable.tableType = value; - } - - /** - * The packet ID - */ - public @property ushort pid() - { - return gstMpegtsAtscMGTTable.pid; - } - - /** Ditto */ - public @property void pid(ushort value) - { - gstMpegtsAtscMGTTable.pid = value; - } - - /** - * The version number - */ - public @property ubyte versionNumber() - { - return gstMpegtsAtscMGTTable.versionNumber; - } - - /** Ditto */ - public @property void versionNumber(ubyte value) - { - gstMpegtsAtscMGTTable.versionNumber = value; - } - - /** */ - public @property uint numberBytes() - { - return gstMpegtsAtscMGTTable.numberBytes; - } - - /** Ditto */ - public @property void numberBytes(uint value) - { - gstMpegtsAtscMGTTable.numberBytes = value; - } - - /** - * descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsAtscMGTTable.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsAtscMGTTable.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_mgt_table_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscMultString.d b/generated/gstreamer/gst/mpegts/AtscMultString.d deleted file mode 100644 index b10dcf9fe..000000000 --- a/generated/gstreamer/gst/mpegts/AtscMultString.d +++ /dev/null @@ -1,104 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscMultString; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class AtscMultString -{ - /** the main Gtk struct */ - protected GstMpegtsAtscMultString* gstMpegtsAtscMultString; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscMultString* getAtscMultStringStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscMultString; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscMultString; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscMultString* gstMpegtsAtscMultString, bool ownedRef = false) - { - this.gstMpegtsAtscMultString = gstMpegtsAtscMultString; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscMultString); - } - - - /** - * The ISO639 language code - */ - public @property char[4] iso639Langcode() - { - return gstMpegtsAtscMultString.iso639Langcode; - } - - /** Ditto */ - public @property void iso639Langcode(char[4] value) - { - gstMpegtsAtscMultString.iso639Langcode = value; - } - - /** */ - public @property PtrArray segments() - { - return new PtrArray(gstMpegtsAtscMultString.segments, false); - } - - /** Ditto */ - public @property void segments(PtrArray value) - { - gstMpegtsAtscMultString.segments = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_mult_string_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscRRT.d b/generated/gstreamer/gst/mpegts/AtscRRT.d deleted file mode 100644 index 239f926e7..000000000 --- a/generated/gstreamer/gst/mpegts/AtscRRT.d +++ /dev/null @@ -1,165 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscRRT; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Region Rating Table (A65) - * - * Since: 1.18 - */ -public final class AtscRRT -{ - /** the main Gtk struct */ - protected GstMpegtsAtscRRT* gstMpegtsAtscRRT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscRRT* getAtscRRTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscRRT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscRRT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscRRT* gstMpegtsAtscRRT, bool ownedRef = false) - { - this.gstMpegtsAtscRRT = gstMpegtsAtscRRT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscRRT); - } - - - /** - * The protocol version - */ - public @property ubyte protocolVersion() - { - return gstMpegtsAtscRRT.protocolVersion; - } - - /** Ditto */ - public @property void protocolVersion(ubyte value) - { - gstMpegtsAtscRRT.protocolVersion = value; - } - - /** - * the names - */ - public @property PtrArray names() - { - return new PtrArray(gstMpegtsAtscRRT.names, false); - } - - /** Ditto */ - public @property void names(PtrArray value) - { - gstMpegtsAtscRRT.names = value.getPtrArrayStruct(); - } - - /** - * the number of dimensions defined for this rating table - */ - public @property ubyte dimensionsDefined() - { - return gstMpegtsAtscRRT.dimensionsDefined; - } - - /** Ditto */ - public @property void dimensionsDefined(ubyte value) - { - gstMpegtsAtscRRT.dimensionsDefined = value; - } - - /** - * A set of dimensions - */ - public @property PtrArray dimensions() - { - return new PtrArray(gstMpegtsAtscRRT.dimensions, false); - } - - /** Ditto */ - public @property void dimensions(PtrArray value) - { - gstMpegtsAtscRRT.dimensions = value.getPtrArrayStruct(); - } - - /** - * descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsAtscRRT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsAtscRRT.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_rrt_get_type(); - } - - /** */ - public this() - { - auto __p = gst_mpegts_atsc_rrt_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsAtscRRT*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscRRTDimension.d b/generated/gstreamer/gst/mpegts/AtscRRTDimension.d deleted file mode 100644 index 789734ff6..000000000 --- a/generated/gstreamer/gst/mpegts/AtscRRTDimension.d +++ /dev/null @@ -1,139 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscRRTDimension; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class AtscRRTDimension -{ - /** the main Gtk struct */ - protected GstMpegtsAtscRRTDimension* gstMpegtsAtscRRTDimension; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscRRTDimension* getAtscRRTDimensionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscRRTDimension; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscRRTDimension; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscRRTDimension* gstMpegtsAtscRRTDimension, bool ownedRef = false) - { - this.gstMpegtsAtscRRTDimension = gstMpegtsAtscRRTDimension; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscRRTDimension); - } - - - /** */ - public @property PtrArray names() - { - return new PtrArray(gstMpegtsAtscRRTDimension.names, false); - } - - /** Ditto */ - public @property void names(PtrArray value) - { - gstMpegtsAtscRRTDimension.names = value.getPtrArrayStruct(); - } - - /** */ - public @property bool graduatedScale() - { - return gstMpegtsAtscRRTDimension.graduatedScale != 0; - } - - /** Ditto */ - public @property void graduatedScale(bool value) - { - gstMpegtsAtscRRTDimension.graduatedScale = value; - } - - /** */ - public @property ubyte valuesDefined() - { - return gstMpegtsAtscRRTDimension.valuesDefined; - } - - /** Ditto */ - public @property void valuesDefined(ubyte value) - { - gstMpegtsAtscRRTDimension.valuesDefined = value; - } - - /** */ - public @property PtrArray values() - { - return new PtrArray(gstMpegtsAtscRRTDimension.values, false); - } - - /** Ditto */ - public @property void values(PtrArray value) - { - gstMpegtsAtscRRTDimension.values = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_rrt_dimension_get_type(); - } - - /** */ - public this() - { - auto __p = gst_mpegts_atsc_rrt_dimension_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsAtscRRTDimension*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscRRTDimensionValue.d b/generated/gstreamer/gst/mpegts/AtscRRTDimensionValue.d deleted file mode 100644 index de108a8a7..000000000 --- a/generated/gstreamer/gst/mpegts/AtscRRTDimensionValue.d +++ /dev/null @@ -1,119 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscRRTDimensionValue; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class AtscRRTDimensionValue -{ - /** the main Gtk struct */ - protected GstMpegtsAtscRRTDimensionValue* gstMpegtsAtscRRTDimensionValue; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscRRTDimensionValue* getAtscRRTDimensionValueStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscRRTDimensionValue; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscRRTDimensionValue; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscRRTDimensionValue* gstMpegtsAtscRRTDimensionValue, bool ownedRef = false) - { - this.gstMpegtsAtscRRTDimensionValue = gstMpegtsAtscRRTDimensionValue; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscRRTDimensionValue); - } - - - /** - * the abbreviated ratings - */ - public @property PtrArray abbrevRatings() - { - return new PtrArray(gstMpegtsAtscRRTDimensionValue.abbrevRatings, false); - } - - /** Ditto */ - public @property void abbrevRatings(PtrArray value) - { - gstMpegtsAtscRRTDimensionValue.abbrevRatings = value.getPtrArrayStruct(); - } - - /** - * the ratings - */ - public @property PtrArray ratings() - { - return new PtrArray(gstMpegtsAtscRRTDimensionValue.ratings, false); - } - - /** Ditto */ - public @property void ratings(PtrArray value) - { - gstMpegtsAtscRRTDimensionValue.ratings = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_rrt_dimension_value_get_type(); - } - - /** */ - public this() - { - auto __p = gst_mpegts_atsc_rrt_dimension_value_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsAtscRRTDimensionValue*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscSTT.d b/generated/gstreamer/gst/mpegts/AtscSTT.d deleted file mode 100644 index 748e00bdb..000000000 --- a/generated/gstreamer/gst/mpegts/AtscSTT.d +++ /dev/null @@ -1,217 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscSTT; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gstreamer.DateTime; -private import gtkd.Loader; - - -/** - * System Time Table (A65) - */ -public final class AtscSTT -{ - /** the main Gtk struct */ - protected GstMpegtsAtscSTT* gstMpegtsAtscSTT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscSTT* getAtscSTTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscSTT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscSTT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscSTT* gstMpegtsAtscSTT, bool ownedRef = false) - { - this.gstMpegtsAtscSTT = gstMpegtsAtscSTT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscSTT); - } - - - /** - * The protocol version - */ - public @property ubyte protocolVersion() - { - return gstMpegtsAtscSTT.protocolVersion; - } - - /** Ditto */ - public @property void protocolVersion(ubyte value) - { - gstMpegtsAtscSTT.protocolVersion = value; - } - - /** - * The system time - */ - public @property uint systemTime() - { - return gstMpegtsAtscSTT.systemTime; - } - - /** Ditto */ - public @property void systemTime(uint value) - { - gstMpegtsAtscSTT.systemTime = value; - } - - /** - * The GPS to UTC offset - */ - public @property ubyte gpsUtcOffset() - { - return gstMpegtsAtscSTT.gpsUtcOffset; - } - - /** Ditto */ - public @property void gpsUtcOffset(ubyte value) - { - gstMpegtsAtscSTT.gpsUtcOffset = value; - } - - /** */ - public @property bool dsStatus() - { - return gstMpegtsAtscSTT.dsStatus != 0; - } - - /** Ditto */ - public @property void dsStatus(bool value) - { - gstMpegtsAtscSTT.dsStatus = value; - } - - /** - * The day of month - */ - public @property ubyte dsDayofmonth() - { - return gstMpegtsAtscSTT.dsDayofmonth; - } - - /** Ditto */ - public @property void dsDayofmonth(ubyte value) - { - gstMpegtsAtscSTT.dsDayofmonth = value; - } - - /** - * The hour - */ - public @property ubyte dsHour() - { - return gstMpegtsAtscSTT.dsHour; - } - - /** Ditto */ - public @property void dsHour(ubyte value) - { - gstMpegtsAtscSTT.dsHour = value; - } - - /** - * descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsAtscSTT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsAtscSTT.descriptors = value.getPtrArrayStruct(); - } - - /** - * The UTC date and time - */ - public @property DateTime utcDatetime() - { - return ObjectG.getDObject!(DateTime)(gstMpegtsAtscSTT.utcDatetime, false); - } - - /** Ditto */ - public @property void utcDatetime(DateTime value) - { - gstMpegtsAtscSTT.utcDatetime = value.getDateTimeStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_stt_get_type(); - } - - /** */ - public this() - { - auto __p = gst_mpegts_atsc_stt_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsAtscSTT*) __p); - } - - /** */ - public DateTime getDatetimeUtc() - { - auto __p = gst_mpegts_atsc_stt_get_datetime_utc(gstMpegtsAtscSTT); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DateTime)(cast(GstDateTime*) __p, true); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscStringSegment.d b/generated/gstreamer/gst/mpegts/AtscStringSegment.d deleted file mode 100644 index f045f4101..000000000 --- a/generated/gstreamer/gst/mpegts/AtscStringSegment.d +++ /dev/null @@ -1,147 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscStringSegment; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * A string segment - */ -public final class AtscStringSegment -{ - /** the main Gtk struct */ - protected GstMpegtsAtscStringSegment* gstMpegtsAtscStringSegment; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscStringSegment* getAtscStringSegmentStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscStringSegment; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscStringSegment; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscStringSegment* gstMpegtsAtscStringSegment, bool ownedRef = false) - { - this.gstMpegtsAtscStringSegment = gstMpegtsAtscStringSegment; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscStringSegment); - } - - - /** - * The compression type - */ - public @property ubyte compressionType() - { - return gstMpegtsAtscStringSegment.compressionType; - } - - /** Ditto */ - public @property void compressionType(ubyte value) - { - gstMpegtsAtscStringSegment.compressionType = value; - } - - /** - * The mode - */ - public @property ubyte mode() - { - return gstMpegtsAtscStringSegment.mode; - } - - /** Ditto */ - public @property void mode(ubyte value) - { - gstMpegtsAtscStringSegment.mode = value; - } - - - /** - * The compressed data - */ - public @property ubyte[] compressedData() - { - return gstMpegtsAtscStringSegment.compressedData[0..gstMpegtsAtscStringSegment.compressedDataSize]; - } - - /** Ditto */ - public @property void compressedData(ubyte[] value) - { - gstMpegtsAtscStringSegment.compressedData = value.ptr; - gstMpegtsAtscStringSegment.compressedDataSize = cast(ubyte)value.length; - } - - /** */ - public @property string cachedString() - { - return Str.toString(gstMpegtsAtscStringSegment.cachedString); - } - - /** Ditto */ - public @property void cachedString(string value) - { - gstMpegtsAtscStringSegment.cachedString = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_string_segment_get_type(); - } - - /** */ - public string getString() - { - return Str.toString(gst_mpegts_atsc_string_segment_get_string(gstMpegtsAtscStringSegment)); - } - - /** */ - public bool setString(string string_, ubyte compressionType, ubyte mode) - { - return gst_mpegts_atsc_string_segment_set_string(gstMpegtsAtscStringSegment, Str.toStringz(string_), compressionType, mode) != 0; - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscVCT.d b/generated/gstreamer/gst/mpegts/AtscVCT.d deleted file mode 100644 index c77d4a6f1..000000000 --- a/generated/gstreamer/gst/mpegts/AtscVCT.d +++ /dev/null @@ -1,136 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscVCT; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Represents both: - * Terrestrial Virtual Channel Table (A65) - * Cable Virtual Channel Table (A65) - */ -public final class AtscVCT -{ - /** the main Gtk struct */ - protected GstMpegtsAtscVCT* gstMpegtsAtscVCT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscVCT* getAtscVCTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscVCT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscVCT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscVCT* gstMpegtsAtscVCT, bool ownedRef = false) - { - this.gstMpegtsAtscVCT = gstMpegtsAtscVCT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscVCT); - } - - - /** - * The transport stream - */ - public @property ushort transportStreamId() - { - return gstMpegtsAtscVCT.transportStreamId; - } - - /** Ditto */ - public @property void transportStreamId(ushort value) - { - gstMpegtsAtscVCT.transportStreamId = value; - } - - /** - * The protocol version - */ - public @property ubyte protocolVersion() - { - return gstMpegtsAtscVCT.protocolVersion; - } - - /** Ditto */ - public @property void protocolVersion(ubyte value) - { - gstMpegtsAtscVCT.protocolVersion = value; - } - - /** - * sources - */ - public @property PtrArray sources() - { - return new PtrArray(gstMpegtsAtscVCT.sources, false); - } - - /** Ditto */ - public @property void sources(PtrArray value) - { - gstMpegtsAtscVCT.sources = value.getPtrArrayStruct(); - } - - /** - * descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsAtscVCT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsAtscVCT.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_vct_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/AtscVCTSource.d b/generated/gstreamer/gst/mpegts/AtscVCTSource.d deleted file mode 100644 index 001809c34..000000000 --- a/generated/gstreamer/gst/mpegts/AtscVCTSource.d +++ /dev/null @@ -1,304 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.AtscVCTSource; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Source from a @GstMpegtsAtscVCT, can be used both for TVCT and CVCT tables - */ -public final class AtscVCTSource -{ - /** the main Gtk struct */ - protected GstMpegtsAtscVCTSource* gstMpegtsAtscVCTSource; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsAtscVCTSource* getAtscVCTSourceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsAtscVCTSource; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsAtscVCTSource; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsAtscVCTSource* gstMpegtsAtscVCTSource, bool ownedRef = false) - { - this.gstMpegtsAtscVCTSource = gstMpegtsAtscVCTSource; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsAtscVCTSource); - } - - - /** - * The short name of a source - */ - public @property string shortName() - { - return Str.toString(gstMpegtsAtscVCTSource.shortName); - } - - /** Ditto */ - public @property void shortName(string value) - { - gstMpegtsAtscVCTSource.shortName = Str.toStringz(value); - } - - /** - * The major channel number - */ - public @property ushort majorChannelNumber() - { - return gstMpegtsAtscVCTSource.majorChannelNumber; - } - - /** Ditto */ - public @property void majorChannelNumber(ushort value) - { - gstMpegtsAtscVCTSource.majorChannelNumber = value; - } - - /** - * The minor channel number - */ - public @property ushort minorChannelNumber() - { - return gstMpegtsAtscVCTSource.minorChannelNumber; - } - - /** Ditto */ - public @property void minorChannelNumber(ushort value) - { - gstMpegtsAtscVCTSource.minorChannelNumber = value; - } - - /** - * The modulation mode - */ - public @property ubyte modulationMode() - { - return gstMpegtsAtscVCTSource.modulationMode; - } - - /** Ditto */ - public @property void modulationMode(ubyte value) - { - gstMpegtsAtscVCTSource.modulationMode = value; - } - - /** - * The carrier frequency - */ - public @property uint carrierFrequency() - { - return gstMpegtsAtscVCTSource.carrierFrequency; - } - - /** Ditto */ - public @property void carrierFrequency(uint value) - { - gstMpegtsAtscVCTSource.carrierFrequency = value; - } - - /** - * The transport stream ID - */ - public @property ushort channelTSID() - { - return gstMpegtsAtscVCTSource.channelTSID; - } - - /** Ditto */ - public @property void channelTSID(ushort value) - { - gstMpegtsAtscVCTSource.channelTSID = value; - } - - /** - * The program number (see #GstMpegtsPatProgram) - */ - public @property ushort programNumber() - { - return gstMpegtsAtscVCTSource.programNumber; - } - - /** Ditto */ - public @property void programNumber(ushort value) - { - gstMpegtsAtscVCTSource.programNumber = value; - } - - /** - * The ETM location - */ - public @property ubyte ETMLocation() - { - return gstMpegtsAtscVCTSource.ETMLocation; - } - - /** Ditto */ - public @property void ETMLocation(ubyte value) - { - gstMpegtsAtscVCTSource.ETMLocation = value; - } - - /** - * is access controlled - */ - public @property bool accessControlled() - { - return gstMpegtsAtscVCTSource.accessControlled != 0; - } - - /** Ditto */ - public @property void accessControlled(bool value) - { - gstMpegtsAtscVCTSource.accessControlled = value; - } - - /** - * is hidden - */ - public @property bool hidden() - { - return gstMpegtsAtscVCTSource.hidden != 0; - } - - /** Ditto */ - public @property void hidden(bool value) - { - gstMpegtsAtscVCTSource.hidden = value; - } - - /** - * is path select, CVCT only - */ - public @property bool pathSelect() - { - return gstMpegtsAtscVCTSource.pathSelect != 0; - } - - /** Ditto */ - public @property void pathSelect(bool value) - { - gstMpegtsAtscVCTSource.pathSelect = value; - } - - /** - * is out of band, CVCT only - */ - public @property bool outOfBand() - { - return gstMpegtsAtscVCTSource.outOfBand != 0; - } - - /** Ditto */ - public @property void outOfBand(bool value) - { - gstMpegtsAtscVCTSource.outOfBand = value; - } - - /** - * is hide guide - */ - public @property bool hideGuide() - { - return gstMpegtsAtscVCTSource.hideGuide != 0; - } - - /** Ditto */ - public @property void hideGuide(bool value) - { - gstMpegtsAtscVCTSource.hideGuide = value; - } - - /** - * The service type - */ - public @property ubyte serviceType() - { - return gstMpegtsAtscVCTSource.serviceType; - } - - /** Ditto */ - public @property void serviceType(ubyte value) - { - gstMpegtsAtscVCTSource.serviceType = value; - } - - /** - * The source id - */ - public @property ushort sourceId() - { - return gstMpegtsAtscVCTSource.sourceId; - } - - /** Ditto */ - public @property void sourceId(ushort value) - { - gstMpegtsAtscVCTSource.sourceId = value; - } - - /** - * an array of #GstMpegtsDescriptor - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsAtscVCTSource.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsAtscVCTSource.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_atsc_vct_source_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/BAT.d b/generated/gstreamer/gst/mpegts/BAT.d deleted file mode 100644 index 11eb0f803..000000000 --- a/generated/gstreamer/gst/mpegts/BAT.d +++ /dev/null @@ -1,102 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.BAT; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * DVB Bouquet Association Table (EN 300 468) - */ -public final class BAT -{ - /** the main Gtk struct */ - protected GstMpegtsBAT* gstMpegtsBAT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsBAT* getBATStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsBAT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsBAT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsBAT* gstMpegtsBAT, bool ownedRef = false) - { - this.gstMpegtsBAT = gstMpegtsBAT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsBAT); - } - - - /** */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsBAT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsBAT.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public @property PtrArray streams() - { - return new PtrArray(gstMpegtsBAT.streams, false); - } - - /** Ditto */ - public @property void streams(PtrArray value) - { - gstMpegtsBAT.streams = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_bat_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/BATStream.d b/generated/gstreamer/gst/mpegts/BATStream.d deleted file mode 100644 index 5f9e16c47..000000000 --- a/generated/gstreamer/gst/mpegts/BATStream.d +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.BATStream; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class BATStream -{ - /** the main Gtk struct */ - protected GstMpegtsBATStream* gstMpegtsBATStream; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsBATStream* getBATStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsBATStream; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsBATStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsBATStream* gstMpegtsBATStream, bool ownedRef = false) - { - this.gstMpegtsBATStream = gstMpegtsBATStream; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsBATStream); - } - - - /** */ - public @property ushort transportStreamId() - { - return gstMpegtsBATStream.transportStreamId; - } - - /** Ditto */ - public @property void transportStreamId(ushort value) - { - gstMpegtsBATStream.transportStreamId = value; - } - - /** */ - public @property ushort originalNetworkId() - { - return gstMpegtsBATStream.originalNetworkId; - } - - /** Ditto */ - public @property void originalNetworkId(ushort value) - { - gstMpegtsBATStream.originalNetworkId = value; - } - - /** */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsBATStream.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsBATStream.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_bat_stream_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/CableDeliverySystemDescriptor.d b/generated/gstreamer/gst/mpegts/CableDeliverySystemDescriptor.d deleted file mode 100644 index b941b2c28..000000000 --- a/generated/gstreamer/gst/mpegts/CableDeliverySystemDescriptor.d +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.CableDeliverySystemDescriptor; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Cable Delivery System Descriptor (EN 300 468 v.1.13.1) - */ -public final class CableDeliverySystemDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsCableDeliverySystemDescriptor* gstMpegtsCableDeliverySystemDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsCableDeliverySystemDescriptor* getCableDeliverySystemDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsCableDeliverySystemDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsCableDeliverySystemDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsCableDeliverySystemDescriptor* gstMpegtsCableDeliverySystemDescriptor, bool ownedRef = false) - { - this.gstMpegtsCableDeliverySystemDescriptor = gstMpegtsCableDeliverySystemDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - gst_mpegts_dvb_cable_delivery_system_descriptor_free(gstMpegtsCableDeliverySystemDescriptor); - } - - - /** - * the frequency in Hz (Hertz) - */ - public @property uint frequency() - { - return gstMpegtsCableDeliverySystemDescriptor.frequency; - } - - /** Ditto */ - public @property void frequency(uint value) - { - gstMpegtsCableDeliverySystemDescriptor.frequency = value; - } - - /** - * the outer FEC scheme used - */ - public @property GstMpegtsCableOuterFECScheme outerFec() - { - return gstMpegtsCableDeliverySystemDescriptor.outerFec; - } - - /** Ditto */ - public @property void outerFec(GstMpegtsCableOuterFECScheme value) - { - gstMpegtsCableDeliverySystemDescriptor.outerFec = value; - } - - /** - * Modulation scheme used - */ - public @property GstMpegtsModulationType modulation() - { - return gstMpegtsCableDeliverySystemDescriptor.modulation; - } - - /** Ditto */ - public @property void modulation(GstMpegtsModulationType value) - { - gstMpegtsCableDeliverySystemDescriptor.modulation = value; - } - - /** - * Symbol rate (in symbols per second) - */ - public @property uint symbolRate() - { - return gstMpegtsCableDeliverySystemDescriptor.symbolRate; - } - - /** Ditto */ - public @property void symbolRate(uint value) - { - gstMpegtsCableDeliverySystemDescriptor.symbolRate = value; - } - - /** - * inner FEC scheme used - */ - public @property GstMpegtsDVBCodeRate fecInner() - { - return gstMpegtsCableDeliverySystemDescriptor.fecInner; - } - - /** Ditto */ - public @property void fecInner(GstMpegtsDVBCodeRate value) - { - gstMpegtsCableDeliverySystemDescriptor.fecInner = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_cable_delivery_system_descriptor_get_type(); - } - - /** */ - public void free() - { - gst_mpegts_dvb_cable_delivery_system_descriptor_free(gstMpegtsCableDeliverySystemDescriptor); - ownedRef = false; - } -} diff --git a/generated/gstreamer/gst/mpegts/ComponentDescriptor.d b/generated/gstreamer/gst/mpegts/ComponentDescriptor.d deleted file mode 100644 index b64b9621e..000000000 --- a/generated/gstreamer/gst/mpegts/ComponentDescriptor.d +++ /dev/null @@ -1,143 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.ComponentDescriptor; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class ComponentDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsComponentDescriptor* gstMpegtsComponentDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsComponentDescriptor* getComponentDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsComponentDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsComponentDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsComponentDescriptor* gstMpegtsComponentDescriptor, bool ownedRef = false) - { - this.gstMpegtsComponentDescriptor = gstMpegtsComponentDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsComponentDescriptor); - } - - - /** */ - public @property ubyte streamContent() - { - return gstMpegtsComponentDescriptor.streamContent; - } - - /** Ditto */ - public @property void streamContent(ubyte value) - { - gstMpegtsComponentDescriptor.streamContent = value; - } - - /** */ - public @property ubyte componentType() - { - return gstMpegtsComponentDescriptor.componentType; - } - - /** Ditto */ - public @property void componentType(ubyte value) - { - gstMpegtsComponentDescriptor.componentType = value; - } - - /** */ - public @property ubyte componentTag() - { - return gstMpegtsComponentDescriptor.componentTag; - } - - /** Ditto */ - public @property void componentTag(ubyte value) - { - gstMpegtsComponentDescriptor.componentTag = value; - } - - /** */ - public @property string languageCode() - { - return Str.toString(gstMpegtsComponentDescriptor.languageCode); - } - - /** Ditto */ - public @property void languageCode(string value) - { - gstMpegtsComponentDescriptor.languageCode = Str.toStringz(value); - } - - /** */ - public @property string text() - { - return Str.toString(gstMpegtsComponentDescriptor.text); - } - - /** Ditto */ - public @property void text(string value) - { - gstMpegtsComponentDescriptor.text = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_component_descriptor_get_type(); - } - - /** */ - public static void free(ComponentDescriptor source) - { - gst_mpegts_dvb_component_descriptor_free((source is null) ? null : source.getComponentDescriptorStruct()); - } -} diff --git a/generated/gstreamer/gst/mpegts/Content.d b/generated/gstreamer/gst/mpegts/Content.d deleted file mode 100644 index 0d82ccc63..000000000 --- a/generated/gstreamer/gst/mpegts/Content.d +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.Content; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class Content -{ - /** the main Gtk struct */ - protected GstMpegtsContent* gstMpegtsContent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsContent* getContentStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsContent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsContent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsContent* gstMpegtsContent, bool ownedRef = false) - { - this.gstMpegtsContent = gstMpegtsContent; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsContent); - } - - - /** */ - public @property GstMpegtsContentNibbleHi contentNibble1() - { - return gstMpegtsContent.contentNibble1; - } - - /** Ditto */ - public @property void contentNibble1(GstMpegtsContentNibbleHi value) - { - gstMpegtsContent.contentNibble1 = value; - } - - /** */ - public @property ubyte contentNibble2() - { - return gstMpegtsContent.contentNibble2; - } - - /** Ditto */ - public @property void contentNibble2(ubyte value) - { - gstMpegtsContent.contentNibble2 = value; - } - - /** */ - public @property ubyte userByte() - { - return gstMpegtsContent.userByte; - } - - /** Ditto */ - public @property void userByte(ubyte value) - { - gstMpegtsContent.userByte = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_content_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DVBLinkageDescriptor.d b/generated/gstreamer/gst/mpegts/DVBLinkageDescriptor.d deleted file mode 100644 index 70ef750f4..000000000 --- a/generated/gstreamer/gst/mpegts/DVBLinkageDescriptor.d +++ /dev/null @@ -1,130 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DVBLinkageDescriptor; - -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.DVBLinkageEvent; -private import gst.mpegts.DVBLinkageMobileHandOver; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public class DVBLinkageDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsDVBLinkageDescriptor* gstMpegtsDVBLinkageDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDVBLinkageDescriptor* getDVBLinkageDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDVBLinkageDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDVBLinkageDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDVBLinkageDescriptor* gstMpegtsDVBLinkageDescriptor, bool ownedRef = false) - { - this.gstMpegtsDVBLinkageDescriptor = gstMpegtsDVBLinkageDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - gst_mpegts_dvb_linkage_descriptor_free(gstMpegtsDVBLinkageDescriptor); - } - - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_linkage_descriptor_get_type(); - } - - /** */ - public void free() - { - gst_mpegts_dvb_linkage_descriptor_free(gstMpegtsDVBLinkageDescriptor); - ownedRef = false; - } - - /** - * Returns: The #GstMpegtsDVBLinkageEvent or %NULL if an error happened - */ - public DVBLinkageEvent getEvent() - { - auto __p = gst_mpegts_dvb_linkage_descriptor_get_event(gstMpegtsDVBLinkageDescriptor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DVBLinkageEvent)(cast(GstMpegtsDVBLinkageEvent*) __p); - } - - /** - * Returns: an #GstMpegtsDVBLinkageExtendedEvent array or %NULL if an error happened - */ - public PtrArray getExtendedEvent() - { - auto __p = gst_mpegts_dvb_linkage_descriptor_get_extended_event(gstMpegtsDVBLinkageDescriptor); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p); - } - - /** - * Returns: The #GstMpegtsDVBLinkageMobileHandOver or %NULL if an error happened - */ - public DVBLinkageMobileHandOver getMobileHandOver() - { - auto __p = gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over(gstMpegtsDVBLinkageDescriptor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DVBLinkageMobileHandOver)(cast(GstMpegtsDVBLinkageMobileHandOver*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/DVBLinkageEvent.d b/generated/gstreamer/gst/mpegts/DVBLinkageEvent.d deleted file mode 100644 index 325ab778e..000000000 --- a/generated/gstreamer/gst/mpegts/DVBLinkageEvent.d +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DVBLinkageEvent; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class DVBLinkageEvent -{ - /** the main Gtk struct */ - protected GstMpegtsDVBLinkageEvent* gstMpegtsDVBLinkageEvent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDVBLinkageEvent* getDVBLinkageEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDVBLinkageEvent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDVBLinkageEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDVBLinkageEvent* gstMpegtsDVBLinkageEvent, bool ownedRef = false) - { - this.gstMpegtsDVBLinkageEvent = gstMpegtsDVBLinkageEvent; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDVBLinkageEvent); - } - - - /** */ - public @property ushort targetEventId() - { - return gstMpegtsDVBLinkageEvent.targetEventId; - } - - /** Ditto */ - public @property void targetEventId(ushort value) - { - gstMpegtsDVBLinkageEvent.targetEventId = value; - } - - /** */ - public @property bool targetListed() - { - return gstMpegtsDVBLinkageEvent.targetListed != 0; - } - - /** Ditto */ - public @property void targetListed(bool value) - { - gstMpegtsDVBLinkageEvent.targetListed = value; - } - - /** */ - public @property bool eventSimulcast() - { - return gstMpegtsDVBLinkageEvent.eventSimulcast != 0; - } - - /** Ditto */ - public @property void eventSimulcast(bool value) - { - gstMpegtsDVBLinkageEvent.eventSimulcast = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_linkage_event_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DVBLinkageExtendedEvent.d b/generated/gstreamer/gst/mpegts/DVBLinkageExtendedEvent.d deleted file mode 100644 index 764c32a48..000000000 --- a/generated/gstreamer/gst/mpegts/DVBLinkageExtendedEvent.d +++ /dev/null @@ -1,207 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DVBLinkageExtendedEvent; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class DVBLinkageExtendedEvent -{ - /** the main Gtk struct */ - protected GstMpegtsDVBLinkageExtendedEvent* gstMpegtsDVBLinkageExtendedEvent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDVBLinkageExtendedEvent* getDVBLinkageExtendedEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDVBLinkageExtendedEvent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDVBLinkageExtendedEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDVBLinkageExtendedEvent* gstMpegtsDVBLinkageExtendedEvent, bool ownedRef = false) - { - this.gstMpegtsDVBLinkageExtendedEvent = gstMpegtsDVBLinkageExtendedEvent; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDVBLinkageExtendedEvent); - } - - - /** */ - public @property ushort targetEventId() - { - return gstMpegtsDVBLinkageExtendedEvent.targetEventId; - } - - /** Ditto */ - public @property void targetEventId(ushort value) - { - gstMpegtsDVBLinkageExtendedEvent.targetEventId = value; - } - - /** */ - public @property bool targetListed() - { - return gstMpegtsDVBLinkageExtendedEvent.targetListed != 0; - } - - /** Ditto */ - public @property void targetListed(bool value) - { - gstMpegtsDVBLinkageExtendedEvent.targetListed = value; - } - - /** */ - public @property bool eventSimulcast() - { - return gstMpegtsDVBLinkageExtendedEvent.eventSimulcast != 0; - } - - /** Ditto */ - public @property void eventSimulcast(bool value) - { - gstMpegtsDVBLinkageExtendedEvent.eventSimulcast = value; - } - - /** */ - public @property ubyte linkType() - { - return gstMpegtsDVBLinkageExtendedEvent.linkType; - } - - /** Ditto */ - public @property void linkType(ubyte value) - { - gstMpegtsDVBLinkageExtendedEvent.linkType = value; - } - - /** */ - public @property ubyte targetIdType() - { - return gstMpegtsDVBLinkageExtendedEvent.targetIdType; - } - - /** Ditto */ - public @property void targetIdType(ubyte value) - { - gstMpegtsDVBLinkageExtendedEvent.targetIdType = value; - } - - /** */ - public @property bool originalNetworkIdFlag() - { - return gstMpegtsDVBLinkageExtendedEvent.originalNetworkIdFlag != 0; - } - - /** Ditto */ - public @property void originalNetworkIdFlag(bool value) - { - gstMpegtsDVBLinkageExtendedEvent.originalNetworkIdFlag = value; - } - - /** */ - public @property bool serviceIdFlag() - { - return gstMpegtsDVBLinkageExtendedEvent.serviceIdFlag != 0; - } - - /** Ditto */ - public @property void serviceIdFlag(bool value) - { - gstMpegtsDVBLinkageExtendedEvent.serviceIdFlag = value; - } - - /** */ - public @property ushort userDefinedId() - { - return gstMpegtsDVBLinkageExtendedEvent.userDefinedId; - } - - /** Ditto */ - public @property void userDefinedId(ushort value) - { - gstMpegtsDVBLinkageExtendedEvent.userDefinedId = value; - } - - /** */ - public @property ushort targetTransportStreamId() - { - return gstMpegtsDVBLinkageExtendedEvent.targetTransportStreamId; - } - - /** Ditto */ - public @property void targetTransportStreamId(ushort value) - { - gstMpegtsDVBLinkageExtendedEvent.targetTransportStreamId = value; - } - - /** */ - public @property ushort targetOriginalNetworkId() - { - return gstMpegtsDVBLinkageExtendedEvent.targetOriginalNetworkId; - } - - /** Ditto */ - public @property void targetOriginalNetworkId(ushort value) - { - gstMpegtsDVBLinkageExtendedEvent.targetOriginalNetworkId = value; - } - - /** */ - public @property ushort targetServiceId() - { - return gstMpegtsDVBLinkageExtendedEvent.targetServiceId; - } - - /** Ditto */ - public @property void targetServiceId(ushort value) - { - gstMpegtsDVBLinkageExtendedEvent.targetServiceId = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_linkage_extended_event_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DVBLinkageMobileHandOver.d b/generated/gstreamer/gst/mpegts/DVBLinkageMobileHandOver.d deleted file mode 100644 index 2dae3494d..000000000 --- a/generated/gstreamer/gst/mpegts/DVBLinkageMobileHandOver.d +++ /dev/null @@ -1,123 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DVBLinkageMobileHandOver; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class DVBLinkageMobileHandOver -{ - /** the main Gtk struct */ - protected GstMpegtsDVBLinkageMobileHandOver* gstMpegtsDVBLinkageMobileHandOver; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDVBLinkageMobileHandOver* getDVBLinkageMobileHandOverStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDVBLinkageMobileHandOver; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDVBLinkageMobileHandOver; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDVBLinkageMobileHandOver* gstMpegtsDVBLinkageMobileHandOver, bool ownedRef = false) - { - this.gstMpegtsDVBLinkageMobileHandOver = gstMpegtsDVBLinkageMobileHandOver; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDVBLinkageMobileHandOver); - } - - - /** */ - public @property GstMpegtsDVBLinkageHandOverType handOverType() - { - return gstMpegtsDVBLinkageMobileHandOver.handOverType; - } - - /** Ditto */ - public @property void handOverType(GstMpegtsDVBLinkageHandOverType value) - { - gstMpegtsDVBLinkageMobileHandOver.handOverType = value; - } - - /** */ - public @property bool originType() - { - return gstMpegtsDVBLinkageMobileHandOver.originType != 0; - } - - /** Ditto */ - public @property void originType(bool value) - { - gstMpegtsDVBLinkageMobileHandOver.originType = value; - } - - /** */ - public @property ushort networkId() - { - return gstMpegtsDVBLinkageMobileHandOver.networkId; - } - - /** Ditto */ - public @property void networkId(ushort value) - { - gstMpegtsDVBLinkageMobileHandOver.networkId = value; - } - - /** */ - public @property ushort initialServiceId() - { - return gstMpegtsDVBLinkageMobileHandOver.initialServiceId; - } - - /** Ditto */ - public @property void initialServiceId(ushort value) - { - gstMpegtsDVBLinkageMobileHandOver.initialServiceId = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_linkage_mobile_hand_over_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DVBParentalRatingItem.d b/generated/gstreamer/gst/mpegts/DVBParentalRatingItem.d deleted file mode 100644 index 61207184f..000000000 --- a/generated/gstreamer/gst/mpegts/DVBParentalRatingItem.d +++ /dev/null @@ -1,101 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DVBParentalRatingItem; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class DVBParentalRatingItem -{ - /** the main Gtk struct */ - protected GstMpegtsDVBParentalRatingItem* gstMpegtsDVBParentalRatingItem; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDVBParentalRatingItem* getDVBParentalRatingItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDVBParentalRatingItem; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDVBParentalRatingItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDVBParentalRatingItem* gstMpegtsDVBParentalRatingItem, bool ownedRef = false) - { - this.gstMpegtsDVBParentalRatingItem = gstMpegtsDVBParentalRatingItem; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDVBParentalRatingItem); - } - - - /** */ - public @property string countryCode() - { - return Str.toString(gstMpegtsDVBParentalRatingItem.countryCode); - } - - /** Ditto */ - public @property void countryCode(string value) - { - gstMpegtsDVBParentalRatingItem.countryCode = Str.toStringz(value); - } - - /** */ - public @property ubyte rating() - { - return gstMpegtsDVBParentalRatingItem.rating; - } - - /** Ditto */ - public @property void rating(ubyte value) - { - gstMpegtsDVBParentalRatingItem.rating = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_parental_rating_item_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DVBServiceListItem.d b/generated/gstreamer/gst/mpegts/DVBServiceListItem.d deleted file mode 100644 index 958abf6ca..000000000 --- a/generated/gstreamer/gst/mpegts/DVBServiceListItem.d +++ /dev/null @@ -1,103 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DVBServiceListItem; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class DVBServiceListItem -{ - /** the main Gtk struct */ - protected GstMpegtsDVBServiceListItem* gstMpegtsDVBServiceListItem; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDVBServiceListItem* getDVBServiceListItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDVBServiceListItem; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDVBServiceListItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDVBServiceListItem* gstMpegtsDVBServiceListItem, bool ownedRef = false) - { - this.gstMpegtsDVBServiceListItem = gstMpegtsDVBServiceListItem; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDVBServiceListItem); - } - - - /** - * the id of a service - */ - public @property ushort serviceId() - { - return gstMpegtsDVBServiceListItem.serviceId; - } - - /** Ditto */ - public @property void serviceId(ushort value) - { - gstMpegtsDVBServiceListItem.serviceId = value; - } - - /** - * the type of a service - */ - public @property GstMpegtsDVBServiceType type() - { - return gstMpegtsDVBServiceListItem.type; - } - - /** Ditto */ - public @property void type(GstMpegtsDVBServiceType value) - { - gstMpegtsDVBServiceListItem.type = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_service_list_item_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DataBroadcastDescriptor.d b/generated/gstreamer/gst/mpegts/DataBroadcastDescriptor.d deleted file mode 100644 index 0d4422302..000000000 --- a/generated/gstreamer/gst/mpegts/DataBroadcastDescriptor.d +++ /dev/null @@ -1,156 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DataBroadcastDescriptor; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class DataBroadcastDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsDataBroadcastDescriptor* gstMpegtsDataBroadcastDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDataBroadcastDescriptor* getDataBroadcastDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDataBroadcastDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDataBroadcastDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDataBroadcastDescriptor* gstMpegtsDataBroadcastDescriptor, bool ownedRef = false) - { - this.gstMpegtsDataBroadcastDescriptor = gstMpegtsDataBroadcastDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - gst_mpegts_dvb_data_broadcast_descriptor_free(gstMpegtsDataBroadcastDescriptor); - } - - - /** - * the data broadcast id - */ - public @property ushort dataBroadcastId() - { - return gstMpegtsDataBroadcastDescriptor.dataBroadcastId; - } - - /** Ditto */ - public @property void dataBroadcastId(ushort value) - { - gstMpegtsDataBroadcastDescriptor.dataBroadcastId = value; - } - - /** - * the component tag - */ - public @property ubyte componentTag() - { - return gstMpegtsDataBroadcastDescriptor.componentTag; - } - - /** Ditto */ - public @property void componentTag(ubyte value) - { - gstMpegtsDataBroadcastDescriptor.componentTag = value; - } - - - /** - * the selector byte field - */ - public @property ubyte[] selectorBytes() - { - return gstMpegtsDataBroadcastDescriptor.selectorBytes[0..gstMpegtsDataBroadcastDescriptor.length]; - } - - /** Ditto */ - public @property void selectorBytes(ubyte[] value) - { - gstMpegtsDataBroadcastDescriptor.selectorBytes = value.ptr; - gstMpegtsDataBroadcastDescriptor.length = cast(ubyte)value.length; - } - - /** - * language of @text - */ - public @property string languageCode() - { - return Str.toString(gstMpegtsDataBroadcastDescriptor.languageCode); - } - - /** Ditto */ - public @property void languageCode(string value) - { - gstMpegtsDataBroadcastDescriptor.languageCode = Str.toStringz(value); - } - - /** - * description of data broadcast - */ - public @property string text() - { - return Str.toString(gstMpegtsDataBroadcastDescriptor.text); - } - - /** Ditto */ - public @property void text(string value) - { - gstMpegtsDataBroadcastDescriptor.text = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_data_broadcast_descriptor_get_type(); - } - - /** */ - public void free() - { - gst_mpegts_dvb_data_broadcast_descriptor_free(gstMpegtsDataBroadcastDescriptor); - ownedRef = false; - } -} diff --git a/generated/gstreamer/gst/mpegts/Descriptor.d b/generated/gstreamer/gst/mpegts/Descriptor.d deleted file mode 100644 index 1f096de3f..000000000 --- a/generated/gstreamer/gst/mpegts/Descriptor.d +++ /dev/null @@ -1,976 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.Descriptor; - -private import glib.ArrayG; -private import glib.MemorySlice; -private import glib.PtrArray; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gst.mpegts.CableDeliverySystemDescriptor; -private import gst.mpegts.ComponentDescriptor; -private import gst.mpegts.Content; -private import gst.mpegts.DVBLinkageDescriptor; -private import gst.mpegts.DVBParentalRatingItem; -private import gst.mpegts.DVBServiceListItem; -private import gst.mpegts.DataBroadcastDescriptor; -private import gst.mpegts.DvbMultilingualBouquetNameItem; -private import gst.mpegts.DvbMultilingualComponentItem; -private import gst.mpegts.DvbMultilingualNetworkNameItem; -private import gst.mpegts.DvbMultilingualServiceNameItem; -private import gst.mpegts.ExtendedEventDescriptor; -private import gst.mpegts.ISO639LanguageDescriptor; -private import gst.mpegts.LogicalChannelDescriptor; -private import gst.mpegts.SatelliteDeliverySystemDescriptor; -private import gst.mpegts.T2DeliverySystemDescriptor; -private import gst.mpegts.TerrestrialDeliverySystemDescriptor; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * These are the base descriptor types and methods. - * - * For more details, refer to the ITU H.222.0 or ISO/IEC 13818-1 specifications - * and other specifications mentioned in the documentation. - */ -public class Descriptor -{ - /** the main Gtk struct */ - protected GstMpegtsDescriptor* gstMpegtsDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDescriptor* getDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDescriptor* gstMpegtsDescriptor, bool ownedRef = false) - { - this.gstMpegtsDescriptor = gstMpegtsDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - gst_mpegts_descriptor_free(gstMpegtsDescriptor); - } - - /** - * Parses out the stuffing bytes from the @descriptor. - * - * Params: - * stuffingBytes = the stuffing bytes - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbStuffing(out ubyte[] stuffingBytes) - { - ubyte* outstuffingBytes = null; - - auto p = gst_mpegts_descriptor_parse_dvb_stuffing(gstMpegtsDescriptor, &outstuffingBytes) != 0; - - stuffingBytes = outstuffingBytes[0 .. gstMpegtsDescriptor.length]; - - return p; - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_mpegts_descriptor_get_type(); - } - - /** - * Frees @desc - */ - public void free() - { - gst_mpegts_descriptor_free(gstMpegtsDescriptor); - ownedRef = false; - } - - /** - * Extracts the Conditional Access information from @descriptor. - * - * Params: - * caSystemId = the type of CA system used - * caPid = The PID containing ECM or EMM data - * privateData = The private data - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseCa(out ushort caSystemId, out ushort caPid, out ubyte[] privateData) - { - ubyte* outprivateData; - size_t privateDataSize; - - auto __p = gst_mpegts_descriptor_parse_ca(gstMpegtsDescriptor, &caSystemId, &caPid, &outprivateData, &privateDataSize) != 0; - - privateData = outprivateData[0 .. privateDataSize]; - - return __p; - } - - /** - * Extracts the cable delivery system information from @descriptor. - * - * Params: - * res = the #GstMpegtsCableDeliverySystemDescriptor to fill - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseCableDeliverySystem(out CableDeliverySystemDescriptor res) - { - GstMpegtsCableDeliverySystemDescriptor* outres = sliceNew!GstMpegtsCableDeliverySystemDescriptor(); - - auto __p = gst_mpegts_descriptor_parse_cable_delivery_system(gstMpegtsDescriptor, outres) != 0; - - res = ObjectG.getDObject!(CableDeliverySystemDescriptor)(outres, true); - - return __p; - } - - /** - * Extracts the bouquet name from @descriptor. - * - * Params: - * bouquetName = the bouquet name - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseDvbBouquetName(out string bouquetName) - { - char* outbouquetName = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_bouquet_name(gstMpegtsDescriptor, &outbouquetName) != 0; - - bouquetName = Str.toString(outbouquetName); - - return __p; - } - - /** - * Extracts ca id's from @descriptor. - * - * Params: - * list = a list of ca identifier. - * Edge entry identifies the CA system. Allocations of the value of this field - * are found in http://www.dvbservices.com - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbCaIdentifier(out ArrayG list) - { - GArray* outlist = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_ca_identifier(gstMpegtsDescriptor, &outlist) != 0; - - list = new ArrayG(outlist); - - return __p; - } - - /** - * Extracts the DVB component information from @descriptor. - * - * Params: - * res = the #GstMpegtsComponentDescriptor to fill - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseDvbComponent(out ComponentDescriptor res) - { - GstMpegtsComponentDescriptor* outres = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_component(gstMpegtsDescriptor, &outres) != 0; - - res = ObjectG.getDObject!(ComponentDescriptor)(outres); - - return __p; - } - - /** - * Extracts the DVB content information from @descriptor. - * - * Params: - * content = #GstMpegtsContent - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbContent(out PtrArray content) - { - GPtrArray* outcontent = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_content(gstMpegtsDescriptor, &outcontent) != 0; - - content = new PtrArray(outcontent); - - return __p; - } - - /** - * Parses out the data broadcast from the @descriptor. - * - * Params: - * res = #GstMpegtsDataBroadcastDescriptor - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbDataBroadcast(out DataBroadcastDescriptor res) - { - GstMpegtsDataBroadcastDescriptor* outres = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_data_broadcast(gstMpegtsDescriptor, &outres) != 0; - - res = ObjectG.getDObject!(DataBroadcastDescriptor)(outres); - - return __p; - } - - /** - * Parses out the data broadcast id from the @descriptor. - * - * Params: - * dataBroadcastId = the data broadcast id - * idSelectorBytes = the selector bytes, if present - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbDataBroadcastId(out ushort dataBroadcastId, out ubyte[] idSelectorBytes) - { - ubyte* outidSelectorBytes; - ubyte len; - - auto __p = gst_mpegts_descriptor_parse_dvb_data_broadcast_id(gstMpegtsDescriptor, &dataBroadcastId, &outidSelectorBytes, &len) != 0; - - idSelectorBytes = outidSelectorBytes[0 .. len]; - - return __p; - } - - /** - * Extracts the DVB extended event information from @descriptor. - * - * Params: - * res = the #GstMpegtsExtendedEventDescriptor to fill - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseDvbExtendedEvent(out ExtendedEventDescriptor res) - { - GstMpegtsExtendedEventDescriptor* outres = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_extended_event(gstMpegtsDescriptor, &outres) != 0; - - res = ObjectG.getDObject!(ExtendedEventDescriptor)(outres); - - return __p; - } - - /** - * Parses out a list of frequencies from the @descriptor. - * - * Params: - * offset = %FALSE in Hz, %TRUE in kHz - * list = a list of all frequencies in Hz/kHz - * depending on @offset - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbFrequencyList(out bool offset, out ArrayG list) - { - int outoffset; - GArray* outlist = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_frequency_list(gstMpegtsDescriptor, &outoffset, &outlist) != 0; - - offset = (outoffset == 1); - list = new ArrayG(outlist); - - return __p; - } - - /** - * Extracts the DVB linkage information from @descriptor. - * - * Params: - * res = the #GstMpegtsDVBLinkageDescriptor to fill - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseDvbLinkage(out DVBLinkageDescriptor res) - { - GstMpegtsDVBLinkageDescriptor* outres = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_linkage(gstMpegtsDescriptor, &outres) != 0; - - res = ObjectG.getDObject!(DVBLinkageDescriptor)(outres); - - return __p; - } - - /** - * Parses out the multilingual bouquet name from the @descriptor. - * - * Params: - * bouquetNameItems = a #GstMpegtsDvbMultilingualBouquetNameItem - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbMultilingualBouquetName(out PtrArray bouquetNameItems) - { - GPtrArray* outbouquetNameItems = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name(gstMpegtsDescriptor, &outbouquetNameItems) != 0; - - bouquetNameItems = new PtrArray(outbouquetNameItems); - - return __p; - } - - /** - * Parses out the multilingual component from the @descriptor. - * - * Params: - * componentTag = the component tag - * componentDescriptionItems = a #GstMpegtsDvbMultilingualComponentItem - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbMultilingualComponent(out ubyte componentTag, out PtrArray componentDescriptionItems) - { - GPtrArray* outcomponentDescriptionItems = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_multilingual_component(gstMpegtsDescriptor, &componentTag, &outcomponentDescriptionItems) != 0; - - componentDescriptionItems = new PtrArray(outcomponentDescriptionItems); - - return __p; - } - - /** - * Parses out the multilingual network name from the @descriptor. - * - * Params: - * networkNameItems = a #GstMpegtsDvbMultilingualNetworkNameItem - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbMultilingualNetworkName(out PtrArray networkNameItems) - { - GPtrArray* outnetworkNameItems = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_multilingual_network_name(gstMpegtsDescriptor, &outnetworkNameItems) != 0; - - networkNameItems = new PtrArray(outnetworkNameItems); - - return __p; - } - - /** - * Parses out the multilingual service name from the @descriptor. - * - * Params: - * serviceNameItems = a #GstMpegtsDvbMultilingualServiceNameItem - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbMultilingualServiceName(out PtrArray serviceNameItems) - { - GPtrArray* outserviceNameItems = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_multilingual_service_name(gstMpegtsDescriptor, &outserviceNameItems) != 0; - - serviceNameItems = new PtrArray(outserviceNameItems); - - return __p; - } - - /** - * Parses out the dvb network name from the @descriptor: - * - * Params: - * name = the extracted name - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbNetworkName(out string name) - { - char* outname = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_network_name(gstMpegtsDescriptor, &outname) != 0; - - name = Str.toString(outname); - - return __p; - } - - /** - * Extracts the DVB parental rating information from @descriptor. - * - * Params: - * rating = #GstMpegtsDVBParentalRatingItem - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbParentalRating(out PtrArray rating) - { - GPtrArray* outrating = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_parental_rating(gstMpegtsDescriptor, &outrating) != 0; - - rating = new PtrArray(outrating); - - return __p; - } - - /** - * Parses out the private data specifier from the @descriptor. - * - * Params: - * privateDataSpecifier = the private data specifier id - * registered by http://www.dvbservices.com/ - * privateData = additional data or NULL - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbPrivateDataSpecifier(out uint privateDataSpecifier, out ubyte[] privateData) - { - ubyte* outprivateData; - ubyte length; - - auto __p = gst_mpegts_descriptor_parse_dvb_private_data_specifier(gstMpegtsDescriptor, &privateDataSpecifier, &outprivateData, &length) != 0; - - privateData = outprivateData[0 .. length]; - - return __p; - } - - /** - * Parses out the scrambling mode from the @descriptor. - * - * Params: - * scramblingMode = This 8-bit field identifies the selected - * mode of the scrambling algorithm (#GstMpegtsDVBScramblingModeType). - * The technical details of the scrambling algorithm are available only - * to bona-fide users upon signature of a Non Disclosure Agreement (NDA) - * administered by the DVB Common Scrambling Algorithm Custodian. - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbScrambling(out GstMpegtsDVBScramblingModeType scramblingMode) - { - return gst_mpegts_descriptor_parse_dvb_scrambling(gstMpegtsDescriptor, &scramblingMode) != 0; - } - - /** - * Extracts the dvb service information from @descriptor. - * - * Params: - * serviceType = the service type - * serviceName = the service name - * providerName = the provider name - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseDvbService(out GstMpegtsDVBServiceType serviceType, out string serviceName, out string providerName) - { - char* outserviceName = null; - char* outproviderName = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_service(gstMpegtsDescriptor, &serviceType, &outserviceName, &outproviderName) != 0; - - serviceName = Str.toString(outserviceName); - providerName = Str.toString(outproviderName); - - return __p; - } - - /** - * Parses out a list of services from the @descriptor: - * - * Params: - * list = the list of services - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbServiceList(out PtrArray list) - { - GPtrArray* outlist = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_service_list(gstMpegtsDescriptor, &outlist) != 0; - - list = new PtrArray(outlist); - - return __p; - } - - /** - * Extracts the DVB short event information from @descriptor. - * - * Params: - * languageCode = the language code - * eventName = the event name - * text = the event text - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseDvbShortEvent(out string languageCode, out string eventName, out string text) - { - char* outlanguageCode = null; - char* outeventName = null; - char* outtext = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_short_event(gstMpegtsDescriptor, &outlanguageCode, &outeventName, &outtext) != 0; - - languageCode = Str.toString(outlanguageCode); - eventName = Str.toString(outeventName); - text = Str.toString(outtext); - - return __p; - } - - /** - * Extracts the component tag from @descriptor. - * - * Params: - * componentTag = the component tag - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbStreamIdentifier(out ubyte componentTag) - { - return gst_mpegts_descriptor_parse_dvb_stream_identifier(gstMpegtsDescriptor, &componentTag) != 0; - } - - /** - * Extracts the DVB subtitling informatio from specific table id in @descriptor. - * - * Note: Use #gst_tag_get_language_code if you want to get the the - * ISO 639-1 language code from the returned ISO 639-2 one. - * - * Params: - * idx = Table id of the entry to parse - * lang = the language code - * type = the type of subtitling - * compositionPageId = the composition page id - * ancillaryPageId = the ancillary page id - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseDvbSubtitlingIdx(uint idx, out string lang, out ubyte type, out ushort compositionPageId, out ushort ancillaryPageId) - { - char* outlang = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_subtitling_idx(gstMpegtsDescriptor, idx, &outlang, &type, &compositionPageId, &ancillaryPageId) != 0; - - lang = Str.toString(outlang); - - return __p; - } - - /** - * Returns: The number of entries in @descriptor - */ - public uint parseDvbSubtitlingNb() - { - return gst_mpegts_descriptor_parse_dvb_subtitling_nb(gstMpegtsDescriptor); - } - - /** - * Parses out the DVB-T2 delivery system from the @descriptor. - * - * Params: - * res = #GstMpegtsT2DeliverySystemDescriptor - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseDvbT2DeliverySystem(out T2DeliverySystemDescriptor res) - { - GstMpegtsT2DeliverySystemDescriptor* outres = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_t2_delivery_system(gstMpegtsDescriptor, &outres) != 0; - - res = ObjectG.getDObject!(T2DeliverySystemDescriptor)(outres); - - return __p; - } - - /** - * Parses teletext number @idx in the @descriptor. The language is in ISO639 format. - * - * Params: - * idx = The id of the teletext to get - * languageCode = a null-terminated string - * teletextType = #GstMpegtsDVBTeletextType - * - * Returns: FALSE on out-of-bounds and errors - */ - public bool parseDvbTeletextIdx(uint idx, out string languageCode, out GstMpegtsDVBTeletextType teletextType, out ubyte magazineNumber, out ubyte pageNumber) - { - char* outlanguageCode = null; - - auto __p = gst_mpegts_descriptor_parse_dvb_teletext_idx(gstMpegtsDescriptor, idx, &outlanguageCode, &teletextType, &magazineNumber, &pageNumber) != 0; - - languageCode = Str.toString(outlanguageCode); - - return __p; - } - - /** - * Find the number of teletext entries in @descriptor - * - * Returns: Number of teletext entries - */ - public uint parseDvbTeletextNb() - { - return gst_mpegts_descriptor_parse_dvb_teletext_nb(gstMpegtsDescriptor); - } - - /** - * Extracts the iso 639-2 language information from @descriptor. - * - * Note: Use #gst_tag_get_language_code if you want to get the the - * ISO 639-1 language code from the returned ISO 639-2 one. - * - * Params: - * res = the #GstMpegtsISO639LanguageDescriptor to fill - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseIso639Language(out ISO639LanguageDescriptor res) - { - GstMpegtsISO639LanguageDescriptor* outres = null; - - auto __p = gst_mpegts_descriptor_parse_iso_639_language(gstMpegtsDescriptor, &outres) != 0; - - res = ObjectG.getDObject!(ISO639LanguageDescriptor)(outres); - - return __p; - } - - /** - * Extracts the iso 639-2 language information from specific table id in @descriptor. - * - * Note: Use #gst_tag_get_language_code if you want to get the the - * ISO 639-1 language code from the returned ISO 639-2 one. - * - * Params: - * idx = Table id of the language to parse - * lang = 4-byte gchar array to hold the language code - * audioType = the #GstMpegtsIso639AudioType to set - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseIso639LanguageIdx(uint idx, out string lang, out GstMpegtsIso639AudioType audioType) - { - char* outlang = null; - - auto __p = gst_mpegts_descriptor_parse_iso_639_language_idx(gstMpegtsDescriptor, idx, &outlang, &audioType) != 0; - - lang = Str.toString(outlang); - - return __p; - } - - /** - * Returns: The number of languages in @descriptor - */ - public uint parseIso639LanguageNb() - { - return gst_mpegts_descriptor_parse_iso_639_language_nb(gstMpegtsDescriptor); - } - - /** - * Extracts the logical channels from @descriptor. - * - * Params: - * res = the #GstMpegtsLogicalChannelDescriptor to fill - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseLogicalChannel(out LogicalChannelDescriptor res) - { - GstMpegtsLogicalChannelDescriptor* outres = sliceNew!GstMpegtsLogicalChannelDescriptor(); - - auto __p = gst_mpegts_descriptor_parse_logical_channel(gstMpegtsDescriptor, outres) != 0; - - res = ObjectG.getDObject!(LogicalChannelDescriptor)(outres, true); - - return __p; - } - - /** - * Extracts the satellite delivery system information from @descriptor. - * - * Params: - * res = the #GstMpegtsSatelliteDeliverySystemDescriptor to fill - * - * Returns: %TRUE if parsing succeeded, else %FALSE. - */ - public bool parseSatelliteDeliverySystem(out SatelliteDeliverySystemDescriptor res) - { - GstMpegtsSatelliteDeliverySystemDescriptor* outres = sliceNew!GstMpegtsSatelliteDeliverySystemDescriptor(); - - auto __p = gst_mpegts_descriptor_parse_satellite_delivery_system(gstMpegtsDescriptor, outres) != 0; - - res = ObjectG.getDObject!(SatelliteDeliverySystemDescriptor)(outres, true); - - return __p; - } - - /** - * Parses out the terrestrial delivery system from the @descriptor. - * - * Params: - * res = #GstMpegtsTerrestrialDeliverySystemDescriptor - * - * Returns: %TRUE if the parsing happened correctly, else %FALSE. - */ - public bool parseTerrestrialDeliverySystem(out TerrestrialDeliverySystemDescriptor res) - { - GstMpegtsTerrestrialDeliverySystemDescriptor* outres = sliceNew!GstMpegtsTerrestrialDeliverySystemDescriptor(); - - auto __p = gst_mpegts_descriptor_parse_terrestrial_delivery_system(gstMpegtsDescriptor, outres) != 0; - - res = ObjectG.getDObject!(TerrestrialDeliverySystemDescriptor)(outres, true); - - return __p; - } - - /** - * Creates a #GstMpegtsDescriptor with custom @tag and @data - * - * Params: - * tag = descriptor tag - * data = descriptor data (after tag and length field) - * - * Returns: #GstMpegtsDescriptor - */ - public static Descriptor fromCustom(ubyte tag, ubyte[] data) - { - auto __p = gst_mpegts_descriptor_from_custom(tag, data.ptr, cast(size_t)data.length); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p, true); - } - - /** - * Creates a #GstMpegtsDescriptor with custom @tag, @tag_extension and @data - * - * Params: - * tag = descriptor tag - * tagExtension = descriptor tag extension - * data = descriptor data (after tag and length field) - * - * Returns: #GstMpegtsDescriptor - */ - public static Descriptor fromCustomWithExtension(ubyte tag, ubyte tagExtension, ubyte[] data) - { - auto __p = gst_mpegts_descriptor_from_custom_with_extension(tag, tagExtension, data.ptr, cast(size_t)data.length); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p, true); - } - - /** - * Creates a #GstMpegtsDescriptor to be a %GST_MTS_DESC_DVB_NETWORK_NAME, - * with the network name @name. The data field of the #GstMpegtsDescriptor - * will be allocated, and transferred to the caller. - * - * Params: - * name = the network name to set - * - * Returns: the #GstMpegtsDescriptor or %NULL on fail - */ - public static Descriptor fromDvbNetworkName(string name) - { - auto __p = gst_mpegts_descriptor_from_dvb_network_name(Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p, true); - } - - /** - * Fills a #GstMpegtsDescriptor to be a %GST_MTS_DESC_DVB_SERVICE. - * The data field of the #GstMpegtsDescriptor will be allocated, - * and transferred to the caller. - * - * Params: - * serviceType = Service type defined as a #GstMpegtsDVBServiceType - * serviceName = Name of the service - * serviceProvider = Name of the service provider - * - * Returns: the #GstMpegtsDescriptor or %NULL on fail - */ - public static Descriptor fromDvbService(GstMpegtsDVBServiceType serviceType, string serviceName, string serviceProvider) - { - auto __p = gst_mpegts_descriptor_from_dvb_service(serviceType, Str.toStringz(serviceName), Str.toStringz(serviceProvider)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p, true); - } - - /** */ - public static Descriptor fromDvbSubtitling(string lang, ubyte type, ushort composition, ushort ancillary) - { - auto __p = gst_mpegts_descriptor_from_dvb_subtitling(Str.toStringz(lang), type, composition, ancillary); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p, true); - } - - /** - * Creates a %GST_MTS_DESC_ISO_639_LANGUAGE #GstMpegtsDescriptor with - * a single language - * - * Params: - * language = ISO-639-2 language 3-char code - * - * Returns: #GstMpegtsDescriptor, %NULL on failure - */ - public static Descriptor fromIso639Language(string language) - { - auto __p = gst_mpegts_descriptor_from_iso_639_language(Str.toStringz(language)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p, true); - } - - /** - * Creates a %GST_MTS_DESC_REGISTRATION #GstMpegtsDescriptor - * - * Params: - * formatIdentifier = a 4 character format identifier string - * additionalInfo = pointer to optional additional info - * - * Returns: #GstMpegtsDescriptor, %NULL on failure - */ - public static Descriptor fromRegistration(string formatIdentifier, ubyte[] additionalInfo) - { - auto __p = gst_mpegts_descriptor_from_registration(Str.toStringz(formatIdentifier), additionalInfo.ptr, cast(size_t)additionalInfo.length); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p, true); - } - - /** - * Finds the first descriptor of type @tag in the array. - * - * Note: To look for descriptors that can be present more than once in an - * array of descriptors, iterate the #GArray manually. - * - * Params: - * descriptors = an array - * of #GstMpegtsDescriptor - * tag = the tag to look for - * - * Returns: the first descriptor matching @tag, else %NULL. - */ - public static Descriptor findDescriptor(PtrArray descriptors, ubyte tag) - { - auto __p = gst_mpegts_find_descriptor((descriptors is null) ? null : descriptors.getPtrArrayStruct(), tag); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Descriptor)(cast(GstMpegtsDescriptor*) __p); - } - - /** - * Parses the descriptors present in @buffer and returns them as an - * array. - * - * Note: The data provided in @buffer will not be copied. - * - * Params: - * buffer = descriptors to parse - * bufLen = Size of @buffer - * - * Returns: an - * array of the parsed descriptors or %NULL if there was an error. - * Release with #g_array_unref when done with it. - */ - public static PtrArray parseDescriptors(ubyte* buffer, size_t bufLen) - { - auto __p = gst_mpegts_parse_descriptors(buffer, bufLen); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p, true); - } -} diff --git a/generated/gstreamer/gst/mpegts/DvbMultilingualBouquetNameItem.d b/generated/gstreamer/gst/mpegts/DvbMultilingualBouquetNameItem.d deleted file mode 100644 index 93d75fbdf..000000000 --- a/generated/gstreamer/gst/mpegts/DvbMultilingualBouquetNameItem.d +++ /dev/null @@ -1,107 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DvbMultilingualBouquetNameItem; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * a multilingual bouquet name entry - */ -public final class DvbMultilingualBouquetNameItem -{ - /** the main Gtk struct */ - protected GstMpegtsDvbMultilingualBouquetNameItem* gstMpegtsDvbMultilingualBouquetNameItem; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDvbMultilingualBouquetNameItem* getDvbMultilingualBouquetNameItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDvbMultilingualBouquetNameItem; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDvbMultilingualBouquetNameItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDvbMultilingualBouquetNameItem* gstMpegtsDvbMultilingualBouquetNameItem, bool ownedRef = false) - { - this.gstMpegtsDvbMultilingualBouquetNameItem = gstMpegtsDvbMultilingualBouquetNameItem; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDvbMultilingualBouquetNameItem); - } - - - /** - * the ISO 639 language code - */ - public @property string languageCode() - { - return Str.toString(gstMpegtsDvbMultilingualBouquetNameItem.languageCode); - } - - /** Ditto */ - public @property void languageCode(string value) - { - gstMpegtsDvbMultilingualBouquetNameItem.languageCode = Str.toStringz(value); - } - - /** - * the bouquet name - */ - public @property string bouquetName() - { - return Str.toString(gstMpegtsDvbMultilingualBouquetNameItem.bouquetName); - } - - /** Ditto */ - public @property void bouquetName(string value) - { - gstMpegtsDvbMultilingualBouquetNameItem.bouquetName = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_multilingual_bouquet_name_item_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DvbMultilingualComponentItem.d b/generated/gstreamer/gst/mpegts/DvbMultilingualComponentItem.d deleted file mode 100644 index 802c29872..000000000 --- a/generated/gstreamer/gst/mpegts/DvbMultilingualComponentItem.d +++ /dev/null @@ -1,105 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DvbMultilingualComponentItem; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class DvbMultilingualComponentItem -{ - /** the main Gtk struct */ - protected GstMpegtsDvbMultilingualComponentItem* gstMpegtsDvbMultilingualComponentItem; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDvbMultilingualComponentItem* getDvbMultilingualComponentItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDvbMultilingualComponentItem; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDvbMultilingualComponentItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDvbMultilingualComponentItem* gstMpegtsDvbMultilingualComponentItem, bool ownedRef = false) - { - this.gstMpegtsDvbMultilingualComponentItem = gstMpegtsDvbMultilingualComponentItem; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDvbMultilingualComponentItem); - } - - - /** - * the ISO 639 language code - */ - public @property string languageCode() - { - return Str.toString(gstMpegtsDvbMultilingualComponentItem.languageCode); - } - - /** Ditto */ - public @property void languageCode(string value) - { - gstMpegtsDvbMultilingualComponentItem.languageCode = Str.toStringz(value); - } - - /** - * the component description - */ - public @property string description() - { - return Str.toString(gstMpegtsDvbMultilingualComponentItem.description); - } - - /** Ditto */ - public @property void description(string value) - { - gstMpegtsDvbMultilingualComponentItem.description = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_multilingual_component_item_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DvbMultilingualNetworkNameItem.d b/generated/gstreamer/gst/mpegts/DvbMultilingualNetworkNameItem.d deleted file mode 100644 index 51823ef7a..000000000 --- a/generated/gstreamer/gst/mpegts/DvbMultilingualNetworkNameItem.d +++ /dev/null @@ -1,107 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DvbMultilingualNetworkNameItem; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * a multilingual network name entry - */ -public final class DvbMultilingualNetworkNameItem -{ - /** the main Gtk struct */ - protected GstMpegtsDvbMultilingualNetworkNameItem* gstMpegtsDvbMultilingualNetworkNameItem; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDvbMultilingualNetworkNameItem* getDvbMultilingualNetworkNameItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDvbMultilingualNetworkNameItem; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDvbMultilingualNetworkNameItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDvbMultilingualNetworkNameItem* gstMpegtsDvbMultilingualNetworkNameItem, bool ownedRef = false) - { - this.gstMpegtsDvbMultilingualNetworkNameItem = gstMpegtsDvbMultilingualNetworkNameItem; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDvbMultilingualNetworkNameItem); - } - - - /** - * the ISO 639 language code - */ - public @property string languageCode() - { - return Str.toString(gstMpegtsDvbMultilingualNetworkNameItem.languageCode); - } - - /** Ditto */ - public @property void languageCode(string value) - { - gstMpegtsDvbMultilingualNetworkNameItem.languageCode = Str.toStringz(value); - } - - /** - * the network name - */ - public @property string networkName() - { - return Str.toString(gstMpegtsDvbMultilingualNetworkNameItem.networkName); - } - - /** Ditto */ - public @property void networkName(string value) - { - gstMpegtsDvbMultilingualNetworkNameItem.networkName = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_multilingual_network_name_item_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/DvbMultilingualServiceNameItem.d b/generated/gstreamer/gst/mpegts/DvbMultilingualServiceNameItem.d deleted file mode 100644 index 9631e2704..000000000 --- a/generated/gstreamer/gst/mpegts/DvbMultilingualServiceNameItem.d +++ /dev/null @@ -1,121 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.DvbMultilingualServiceNameItem; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * a multilingual service name entry - */ -public final class DvbMultilingualServiceNameItem -{ - /** the main Gtk struct */ - protected GstMpegtsDvbMultilingualServiceNameItem* gstMpegtsDvbMultilingualServiceNameItem; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsDvbMultilingualServiceNameItem* getDvbMultilingualServiceNameItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsDvbMultilingualServiceNameItem; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsDvbMultilingualServiceNameItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsDvbMultilingualServiceNameItem* gstMpegtsDvbMultilingualServiceNameItem, bool ownedRef = false) - { - this.gstMpegtsDvbMultilingualServiceNameItem = gstMpegtsDvbMultilingualServiceNameItem; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsDvbMultilingualServiceNameItem); - } - - - /** - * the ISO 639 language code - */ - public @property string languageCode() - { - return Str.toString(gstMpegtsDvbMultilingualServiceNameItem.languageCode); - } - - /** Ditto */ - public @property void languageCode(string value) - { - gstMpegtsDvbMultilingualServiceNameItem.languageCode = Str.toStringz(value); - } - - /** - * the provider name - */ - public @property string providerName() - { - return Str.toString(gstMpegtsDvbMultilingualServiceNameItem.providerName); - } - - /** Ditto */ - public @property void providerName(string value) - { - gstMpegtsDvbMultilingualServiceNameItem.providerName = Str.toStringz(value); - } - - /** - * the service name - */ - public @property string serviceName() - { - return Str.toString(gstMpegtsDvbMultilingualServiceNameItem.serviceName); - } - - /** Ditto */ - public @property void serviceName(string value) - { - gstMpegtsDvbMultilingualServiceNameItem.serviceName = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_dvb_multilingual_service_name_item_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/EIT.d b/generated/gstreamer/gst/mpegts/EIT.d deleted file mode 100644 index 9c5e5bbbc..000000000 --- a/generated/gstreamer/gst/mpegts/EIT.d +++ /dev/null @@ -1,164 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.EIT; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Event Information Table (EN 300 468) - */ -public final class EIT -{ - /** the main Gtk struct */ - protected GstMpegtsEIT* gstMpegtsEIT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsEIT* getEITStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsEIT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsEIT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsEIT* gstMpegtsEIT, bool ownedRef = false) - { - this.gstMpegtsEIT = gstMpegtsEIT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsEIT); - } - - - /** */ - public @property ushort transportStreamId() - { - return gstMpegtsEIT.transportStreamId; - } - - /** Ditto */ - public @property void transportStreamId(ushort value) - { - gstMpegtsEIT.transportStreamId = value; - } - - /** */ - public @property ushort originalNetworkId() - { - return gstMpegtsEIT.originalNetworkId; - } - - /** Ditto */ - public @property void originalNetworkId(ushort value) - { - gstMpegtsEIT.originalNetworkId = value; - } - - /** */ - public @property ubyte segmentLastSectionNumber() - { - return gstMpegtsEIT.segmentLastSectionNumber; - } - - /** Ditto */ - public @property void segmentLastSectionNumber(ubyte value) - { - gstMpegtsEIT.segmentLastSectionNumber = value; - } - - /** */ - public @property ubyte lastTableId() - { - return gstMpegtsEIT.lastTableId; - } - - /** Ditto */ - public @property void lastTableId(ubyte value) - { - gstMpegtsEIT.lastTableId = value; - } - - /** */ - public @property bool actualStream() - { - return gstMpegtsEIT.actualStream != 0; - } - - /** Ditto */ - public @property void actualStream(bool value) - { - gstMpegtsEIT.actualStream = value; - } - - /** */ - public @property bool presentFollowing() - { - return gstMpegtsEIT.presentFollowing != 0; - } - - /** Ditto */ - public @property void presentFollowing(bool value) - { - gstMpegtsEIT.presentFollowing = value; - } - - /** - * List of events - */ - public @property PtrArray events() - { - return new PtrArray(gstMpegtsEIT.events, false); - } - - /** Ditto */ - public @property void events(PtrArray value) - { - gstMpegtsEIT.events = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_eit_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/EITEvent.d b/generated/gstreamer/gst/mpegts/EITEvent.d deleted file mode 100644 index 16decd5fa..000000000 --- a/generated/gstreamer/gst/mpegts/EITEvent.d +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.EITEvent; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gstreamer.DateTime; -private import gtkd.Loader; - - -/** - * Event from a @GstMpegtsEIT - */ -public final class EITEvent -{ - /** the main Gtk struct */ - protected GstMpegtsEITEvent* gstMpegtsEITEvent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsEITEvent* getEITEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsEITEvent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsEITEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsEITEvent* gstMpegtsEITEvent, bool ownedRef = false) - { - this.gstMpegtsEITEvent = gstMpegtsEITEvent; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsEITEvent); - } - - - /** */ - public @property ushort eventId() - { - return gstMpegtsEITEvent.eventId; - } - - /** Ditto */ - public @property void eventId(ushort value) - { - gstMpegtsEITEvent.eventId = value; - } - - /** */ - public @property DateTime startTime() - { - return ObjectG.getDObject!(DateTime)(gstMpegtsEITEvent.startTime, false); - } - - /** Ditto */ - public @property void startTime(DateTime value) - { - gstMpegtsEITEvent.startTime = value.getDateTimeStruct(); - } - - /** */ - public @property uint duration() - { - return gstMpegtsEITEvent.duration; - } - - /** Ditto */ - public @property void duration(uint value) - { - gstMpegtsEITEvent.duration = value; - } - - /** */ - public @property GstMpegtsRunningStatus runningStatus() - { - return gstMpegtsEITEvent.runningStatus; - } - - /** Ditto */ - public @property void runningStatus(GstMpegtsRunningStatus value) - { - gstMpegtsEITEvent.runningStatus = value; - } - - /** */ - public @property bool freeCAMode() - { - return gstMpegtsEITEvent.freeCAMode != 0; - } - - /** Ditto */ - public @property void freeCAMode(bool value) - { - gstMpegtsEITEvent.freeCAMode = value; - } - - /** - * List of descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsEITEvent.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsEITEvent.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_eit_event_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/ExtendedEventDescriptor.d b/generated/gstreamer/gst/mpegts/ExtendedEventDescriptor.d deleted file mode 100644 index a972839a2..000000000 --- a/generated/gstreamer/gst/mpegts/ExtendedEventDescriptor.d +++ /dev/null @@ -1,151 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.ExtendedEventDescriptor; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Extended Event Descriptor (EN 300 468 v.1.13.1) - */ -public final class ExtendedEventDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsExtendedEventDescriptor* gstMpegtsExtendedEventDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsExtendedEventDescriptor* getExtendedEventDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsExtendedEventDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsExtendedEventDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsExtendedEventDescriptor* gstMpegtsExtendedEventDescriptor, bool ownedRef = false) - { - this.gstMpegtsExtendedEventDescriptor = gstMpegtsExtendedEventDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - gst_mpegts_extended_event_descriptor_free(gstMpegtsExtendedEventDescriptor); - } - - - /** */ - public @property ubyte descriptorNumber() - { - return gstMpegtsExtendedEventDescriptor.descriptorNumber; - } - - /** Ditto */ - public @property void descriptorNumber(ubyte value) - { - gstMpegtsExtendedEventDescriptor.descriptorNumber = value; - } - - /** */ - public @property ubyte lastDescriptorNumber() - { - return gstMpegtsExtendedEventDescriptor.lastDescriptorNumber; - } - - /** Ditto */ - public @property void lastDescriptorNumber(ubyte value) - { - gstMpegtsExtendedEventDescriptor.lastDescriptorNumber = value; - } - - /** - * NULL terminated language code. - */ - public @property string languageCode() - { - return Str.toString(gstMpegtsExtendedEventDescriptor.languageCode); - } - - /** Ditto */ - public @property void languageCode(string value) - { - gstMpegtsExtendedEventDescriptor.languageCode = Str.toStringz(value); - } - - /** - * the #GstMpegtsExtendedEventItem - */ - public @property PtrArray items() - { - return new PtrArray(gstMpegtsExtendedEventDescriptor.items, false); - } - - /** Ditto */ - public @property void items(PtrArray value) - { - gstMpegtsExtendedEventDescriptor.items = value.getPtrArrayStruct(); - } - - /** */ - public @property string text() - { - return Str.toString(gstMpegtsExtendedEventDescriptor.text); - } - - /** Ditto */ - public @property void text(string value) - { - gstMpegtsExtendedEventDescriptor.text = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_extended_event_descriptor_get_type(); - } - - /** */ - public void free() - { - gst_mpegts_extended_event_descriptor_free(gstMpegtsExtendedEventDescriptor); - ownedRef = false; - } -} diff --git a/generated/gstreamer/gst/mpegts/ExtendedEventItem.d b/generated/gstreamer/gst/mpegts/ExtendedEventItem.d deleted file mode 100644 index 1b03d8bea..000000000 --- a/generated/gstreamer/gst/mpegts/ExtendedEventItem.d +++ /dev/null @@ -1,101 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.ExtendedEventItem; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class ExtendedEventItem -{ - /** the main Gtk struct */ - protected GstMpegtsExtendedEventItem* gstMpegtsExtendedEventItem; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsExtendedEventItem* getExtendedEventItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsExtendedEventItem; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsExtendedEventItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsExtendedEventItem* gstMpegtsExtendedEventItem, bool ownedRef = false) - { - this.gstMpegtsExtendedEventItem = gstMpegtsExtendedEventItem; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsExtendedEventItem); - } - - - /** */ - public @property string itemDescription() - { - return Str.toString(gstMpegtsExtendedEventItem.itemDescription); - } - - /** Ditto */ - public @property void itemDescription(string value) - { - gstMpegtsExtendedEventItem.itemDescription = Str.toStringz(value); - } - - /** */ - public @property string item() - { - return Str.toString(gstMpegtsExtendedEventItem.item); - } - - /** Ditto */ - public @property void item(string value) - { - gstMpegtsExtendedEventItem.item = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gst_mpegts_extended_event_item_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/ISO639LanguageDescriptor.d b/generated/gstreamer/gst/mpegts/ISO639LanguageDescriptor.d deleted file mode 100644 index 5f893ffbb..000000000 --- a/generated/gstreamer/gst/mpegts/ISO639LanguageDescriptor.d +++ /dev/null @@ -1,129 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.ISO639LanguageDescriptor; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class ISO639LanguageDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsISO639LanguageDescriptor* gstMpegtsISO639LanguageDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsISO639LanguageDescriptor* getISO639LanguageDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsISO639LanguageDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsISO639LanguageDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsISO639LanguageDescriptor* gstMpegtsISO639LanguageDescriptor, bool ownedRef = false) - { - this.gstMpegtsISO639LanguageDescriptor = gstMpegtsISO639LanguageDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsISO639LanguageDescriptor); - } - - - /** */ - public @property uint nbLanguage() - { - return gstMpegtsISO639LanguageDescriptor.nbLanguage; - } - - /** Ditto */ - public @property void nbLanguage(uint value) - { - gstMpegtsISO639LanguageDescriptor.nbLanguage = value; - } - - /** */ - public @property string[64] language() - { - string[64] arr; - foreach( i, str; gstMpegtsISO639LanguageDescriptor.language ) - { - arr[i] = Str.toString(str); - } - return arr; - } - - /** Ditto */ - public @property void language(string[64] value) - { - char*[64] arr; - foreach( i, str; value ) - { - arr[i] = Str.toStringz(str); - } - gstMpegtsISO639LanguageDescriptor.language = arr; - } - - /** */ - public @property GstMpegtsIso639AudioType[64] audioType() - { - return gstMpegtsISO639LanguageDescriptor.audioType; - } - - /** Ditto */ - public @property void audioType(GstMpegtsIso639AudioType[64] value) - { - gstMpegtsISO639LanguageDescriptor.audioType = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_iso_639_language_get_type(); - } - - /** */ - public void descriptorFree() - { - gst_mpegts_iso_639_language_descriptor_free(gstMpegtsISO639LanguageDescriptor); - } -} diff --git a/generated/gstreamer/gst/mpegts/LogicalChannel.d b/generated/gstreamer/gst/mpegts/LogicalChannel.d deleted file mode 100644 index 2b7b405d2..000000000 --- a/generated/gstreamer/gst/mpegts/LogicalChannel.d +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.LogicalChannel; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class LogicalChannel -{ - /** the main Gtk struct */ - protected GstMpegtsLogicalChannel* gstMpegtsLogicalChannel; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsLogicalChannel* getLogicalChannelStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsLogicalChannel; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsLogicalChannel; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsLogicalChannel* gstMpegtsLogicalChannel, bool ownedRef = false) - { - this.gstMpegtsLogicalChannel = gstMpegtsLogicalChannel; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsLogicalChannel); - } - - - /** */ - public @property ushort serviceId() - { - return gstMpegtsLogicalChannel.serviceId; - } - - /** Ditto */ - public @property void serviceId(ushort value) - { - gstMpegtsLogicalChannel.serviceId = value; - } - - /** */ - public @property bool visibleService() - { - return gstMpegtsLogicalChannel.visibleService != 0; - } - - /** Ditto */ - public @property void visibleService(bool value) - { - gstMpegtsLogicalChannel.visibleService = value; - } - - /** */ - public @property ushort logicalChannelNumber() - { - return gstMpegtsLogicalChannel.logicalChannelNumber; - } - - /** Ditto */ - public @property void logicalChannelNumber(ushort value) - { - gstMpegtsLogicalChannel.logicalChannelNumber = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_logical_channel_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/LogicalChannelDescriptor.d b/generated/gstreamer/gst/mpegts/LogicalChannelDescriptor.d deleted file mode 100644 index 25cc62b76..000000000 --- a/generated/gstreamer/gst/mpegts/LogicalChannelDescriptor.d +++ /dev/null @@ -1,110 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.LogicalChannelDescriptor; - -private import glib.MemorySlice; -private import gobject.ObjectG; -private import gst.mpegts.LogicalChannel; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class LogicalChannelDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsLogicalChannelDescriptor* gstMpegtsLogicalChannelDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsLogicalChannelDescriptor* getLogicalChannelDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsLogicalChannelDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsLogicalChannelDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsLogicalChannelDescriptor* gstMpegtsLogicalChannelDescriptor, bool ownedRef = false) - { - this.gstMpegtsLogicalChannelDescriptor = gstMpegtsLogicalChannelDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsLogicalChannelDescriptor); - } - - - /** */ - public @property uint nbChannels() - { - return gstMpegtsLogicalChannelDescriptor.nbChannels; - } - - /** Ditto */ - public @property void nbChannels(uint value) - { - gstMpegtsLogicalChannelDescriptor.nbChannels = value; - } - - /** */ - public @property LogicalChannel[64] channels() - { - LogicalChannel[64] arr; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(LogicalChannel)(&(gstMpegtsLogicalChannelDescriptor.channels[i]), false); - } - - return arr; - } - - /** Ditto */ - public @property void channels(LogicalChannel[64] value) - { - for ( int i = 0; i < value.length; i++ ) - { - gstMpegtsLogicalChannelDescriptor.channels[i] = *(value[i].getLogicalChannelStruct()); - } - } - - /** */ - public static GType getType() - { - return gst_mpegts_logical_channel_descriptor_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/Mpegts.d b/generated/gstreamer/gst/mpegts/Mpegts.d deleted file mode 100644 index 9173d383c..000000000 --- a/generated/gstreamer/gst/mpegts/Mpegts.d +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.Mpegts; - -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; - - -/** */ -public struct Mpegts -{ - - /** - * Initializes the MPEG-TS helper library. Must be called before any - * usage. - */ - public static void initialize() - { - gst_mpegts_initialize(); - } -} diff --git a/generated/gstreamer/gst/mpegts/NIT.d b/generated/gstreamer/gst/mpegts/NIT.d deleted file mode 100644 index 4c8e0fe9c..000000000 --- a/generated/gstreamer/gst/mpegts/NIT.d +++ /dev/null @@ -1,155 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.NIT; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Network Information Table (ISO/IEC 13818-1 / EN 300 468) - */ -public final class NIT -{ - /** the main Gtk struct */ - protected GstMpegtsNIT* gstMpegtsNIT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsNIT* getNITStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsNIT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsNIT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsNIT* gstMpegtsNIT, bool ownedRef = false) - { - this.gstMpegtsNIT = gstMpegtsNIT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsNIT); - } - - - /** - * Whether this NIT corresponds to the actual stream - */ - public @property bool actualNetwork() - { - return gstMpegtsNIT.actualNetwork != 0; - } - - /** Ditto */ - public @property void actualNetwork(bool value) - { - gstMpegtsNIT.actualNetwork = value; - } - - /** - * ID of the network that this NIT describes - */ - public @property ushort networkId() - { - return gstMpegtsNIT.networkId; - } - - /** Ditto */ - public @property void networkId(ushort value) - { - gstMpegtsNIT.networkId = value; - } - - /** - * the global descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsNIT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsNIT.descriptors = value.getPtrArrayStruct(); - } - - /** - * the streams - */ - public @property PtrArray streams() - { - return new PtrArray(gstMpegtsNIT.streams, false); - } - - /** Ditto */ - public @property void streams(PtrArray value) - { - gstMpegtsNIT.streams = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_nit_get_type(); - } - - /** - * Allocates and initializes a #GstMpegtsNIT. - * - * Returns: A newly allocated #GstMpegtsNIT - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_nit_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsNIT*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/NITStream.d b/generated/gstreamer/gst/mpegts/NITStream.d deleted file mode 100644 index a4387cdfa..000000000 --- a/generated/gstreamer/gst/mpegts/NITStream.d +++ /dev/null @@ -1,133 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.NITStream; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class NITStream -{ - /** the main Gtk struct */ - protected GstMpegtsNITStream* gstMpegtsNITStream; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsNITStream* getNITStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsNITStream; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsNITStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsNITStream* gstMpegtsNITStream, bool ownedRef = false) - { - this.gstMpegtsNITStream = gstMpegtsNITStream; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsNITStream); - } - - - /** */ - public @property ushort transportStreamId() - { - return gstMpegtsNITStream.transportStreamId; - } - - /** Ditto */ - public @property void transportStreamId(ushort value) - { - gstMpegtsNITStream.transportStreamId = value; - } - - /** */ - public @property ushort originalNetworkId() - { - return gstMpegtsNITStream.originalNetworkId; - } - - /** Ditto */ - public @property void originalNetworkId(ushort value) - { - gstMpegtsNITStream.originalNetworkId = value; - } - - /** */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsNITStream.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsNITStream.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_nit_stream_get_type(); - } - - /** - * Allocates and initializes a #GstMpegtsNITStream - * - * Returns: A newly allocated #GstMpegtsNITStream - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_nit_stream_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsNITStream*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/PMT.d b/generated/gstreamer/gst/mpegts/PMT.d deleted file mode 100644 index c8962ada3..000000000 --- a/generated/gstreamer/gst/mpegts/PMT.d +++ /dev/null @@ -1,156 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.PMT; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Program Map Table (ISO/IEC 13818-1). - * - * The program_number is contained in the subtable_extension field of the - * container #GstMpegtsSection. - */ -public final class PMT -{ - /** the main Gtk struct */ - protected GstMpegtsPMT* gstMpegtsPMT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsPMT* getPMTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsPMT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsPMT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsPMT* gstMpegtsPMT, bool ownedRef = false) - { - this.gstMpegtsPMT = gstMpegtsPMT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsPMT); - } - - - /** - * PID of the stream containing PCR - */ - public @property ushort pcrPid() - { - return gstMpegtsPMT.pcrPid; - } - - /** Ditto */ - public @property void pcrPid(ushort value) - { - gstMpegtsPMT.pcrPid = value; - } - - /** */ - public @property ushort programNumber() - { - return gstMpegtsPMT.programNumber; - } - - /** Ditto */ - public @property void programNumber(ushort value) - { - gstMpegtsPMT.programNumber = value; - } - - /** - * array of #GstMpegtsDescriptor - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsPMT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsPMT.descriptors = value.getPtrArrayStruct(); - } - - /** - * Array of #GstMpegtsPMTStream - */ - public @property PtrArray streams() - { - return new PtrArray(gstMpegtsPMT.streams, false); - } - - /** Ditto */ - public @property void streams(PtrArray value) - { - gstMpegtsPMT.streams = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_pmt_get_type(); - } - - /** - * Allocates and initializes a new #GstMpegtsPMT. - * - * Returns: #GstMpegtsPMT - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_pmt_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsPMT*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/PMTStream.d b/generated/gstreamer/gst/mpegts/PMTStream.d deleted file mode 100644 index 595d64e8a..000000000 --- a/generated/gstreamer/gst/mpegts/PMTStream.d +++ /dev/null @@ -1,142 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.PMTStream; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * An individual stream definition. - */ -public final class PMTStream -{ - /** the main Gtk struct */ - protected GstMpegtsPMTStream* gstMpegtsPMTStream; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsPMTStream* getPMTStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsPMTStream; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsPMTStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsPMTStream* gstMpegtsPMTStream, bool ownedRef = false) - { - this.gstMpegtsPMTStream = gstMpegtsPMTStream; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsPMTStream); - } - - - /** - * the type of stream. See #GstMpegtsStreamType - */ - public @property ubyte streamType() - { - return gstMpegtsPMTStream.streamType; - } - - /** Ditto */ - public @property void streamType(ubyte value) - { - gstMpegtsPMTStream.streamType = value; - } - - /** - * the PID of the stream - */ - public @property ushort pid() - { - return gstMpegtsPMTStream.pid; - } - - /** Ditto */ - public @property void pid(ushort value) - { - gstMpegtsPMTStream.pid = value; - } - - /** - * the descriptors of the - * stream - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsPMTStream.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsPMTStream.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_pmt_stream_get_type(); - } - - /** - * Allocates and initializes a new #GstMpegtsPMTStream. - * - * Returns: #GstMpegtsPMTStream - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_pmt_stream_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsPMTStream*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/PatProgram.d b/generated/gstreamer/gst/mpegts/PatProgram.d deleted file mode 100644 index c679b2edd..000000000 --- a/generated/gstreamer/gst/mpegts/PatProgram.d +++ /dev/null @@ -1,144 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.PatProgram; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * A program entry from a Program Association Table (ITU H.222.0, ISO/IEC 13818-1). - */ -public final class PatProgram -{ - /** the main Gtk struct */ - protected GstMpegtsPatProgram* gstMpegtsPatProgram; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsPatProgram* getPatProgramStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsPatProgram; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsPatProgram; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsPatProgram* gstMpegtsPatProgram, bool ownedRef = false) - { - this.gstMpegtsPatProgram = gstMpegtsPatProgram; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsPatProgram); - } - - - /** - * the program number - */ - public @property ushort programNumber() - { - return gstMpegtsPatProgram.programNumber; - } - - /** Ditto */ - public @property void programNumber(ushort value) - { - gstMpegtsPatProgram.programNumber = value; - } - - /** - * the network of program map PID - */ - public @property ushort networkOrProgramMapPID() - { - return gstMpegtsPatProgram.networkOrProgramMapPID; - } - - /** Ditto */ - public @property void networkOrProgramMapPID(ushort value) - { - gstMpegtsPatProgram.networkOrProgramMapPID = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_pat_program_get_type(); - } - - /** - * Allocates a new #GstMpegtsPatProgram. - * - * Returns: A newly allocated #GstMpegtsPatProgram - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_pat_program_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsPatProgram*) __p); - } - - /** - * Allocates a new #GPtrArray for #GstMpegtsPatProgram - * - * Returns: A newly allocated #GPtrArray - */ - public static PtrArray patNew() - { - auto __p = gst_mpegts_pat_new(); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p, true); - } -} diff --git a/generated/gstreamer/gst/mpegts/SCTESIT.d b/generated/gstreamer/gst/mpegts/SCTESIT.d deleted file mode 100644 index 1478940f4..000000000 --- a/generated/gstreamer/gst/mpegts/SCTESIT.d +++ /dev/null @@ -1,229 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.SCTESIT; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class SCTESIT -{ - /** the main Gtk struct */ - protected GstMpegtsSCTESIT* gstMpegtsSCTESIT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsSCTESIT* getSCTESITStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsSCTESIT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsSCTESIT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsSCTESIT* gstMpegtsSCTESIT, bool ownedRef = false) - { - this.gstMpegtsSCTESIT = gstMpegtsSCTESIT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsSCTESIT); - } - - - /** */ - public @property bool encryptedPacket() - { - return gstMpegtsSCTESIT.encryptedPacket != 0; - } - - /** Ditto */ - public @property void encryptedPacket(bool value) - { - gstMpegtsSCTESIT.encryptedPacket = value; - } - - /** */ - public @property ubyte encryptionAlgorithm() - { - return gstMpegtsSCTESIT.encryptionAlgorithm; - } - - /** Ditto */ - public @property void encryptionAlgorithm(ubyte value) - { - gstMpegtsSCTESIT.encryptionAlgorithm = value; - } - - /** */ - public @property ulong ptsAdjustment() - { - return gstMpegtsSCTESIT.ptsAdjustment; - } - - /** Ditto */ - public @property void ptsAdjustment(ulong value) - { - gstMpegtsSCTESIT.ptsAdjustment = value; - } - - /** */ - public @property ubyte cwIndex() - { - return gstMpegtsSCTESIT.cwIndex; - } - - /** Ditto */ - public @property void cwIndex(ubyte value) - { - gstMpegtsSCTESIT.cwIndex = value; - } - - /** */ - public @property ushort tier() - { - return gstMpegtsSCTESIT.tier; - } - - /** Ditto */ - public @property void tier(ushort value) - { - gstMpegtsSCTESIT.tier = value; - } - - /** */ - public @property ushort spliceCommandLength() - { - return gstMpegtsSCTESIT.spliceCommandLength; - } - - /** Ditto */ - public @property void spliceCommandLength(ushort value) - { - gstMpegtsSCTESIT.spliceCommandLength = value; - } - - /** */ - public @property GstMpegtsSCTESpliceCommandType spliceCommandType() - { - return gstMpegtsSCTESIT.spliceCommandType; - } - - /** Ditto */ - public @property void spliceCommandType(GstMpegtsSCTESpliceCommandType value) - { - gstMpegtsSCTESIT.spliceCommandType = value; - } - - /** */ - public @property bool spliceTimeSpecified() - { - return gstMpegtsSCTESIT.spliceTimeSpecified != 0; - } - - /** Ditto */ - public @property void spliceTimeSpecified(bool value) - { - gstMpegtsSCTESIT.spliceTimeSpecified = value; - } - - /** */ - public @property ulong spliceTime() - { - return gstMpegtsSCTESIT.spliceTime; - } - - /** Ditto */ - public @property void spliceTime(ulong value) - { - gstMpegtsSCTESIT.spliceTime = value; - } - - /** */ - public @property PtrArray splices() - { - return new PtrArray(gstMpegtsSCTESIT.splices, false); - } - - /** Ditto */ - public @property void splices(PtrArray value) - { - gstMpegtsSCTESIT.splices = value.getPtrArrayStruct(); - } - - /** */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsSCTESIT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsSCTESIT.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_scte_sit_get_type(); - } - - /** - * Allocates and initializes a #GstMpegtsSCTESIT. - * - * Returns: A newly allocated #GstMpegtsSCTESIT - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_scte_sit_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsSCTESIT*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/SCTESpliceEvent.d b/generated/gstreamer/gst/mpegts/SCTESpliceEvent.d deleted file mode 100644 index 20bd4dd66..000000000 --- a/generated/gstreamer/gst/mpegts/SCTESpliceEvent.d +++ /dev/null @@ -1,264 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.SCTESpliceEvent; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class SCTESpliceEvent -{ - /** the main Gtk struct */ - protected GstMpegtsSCTESpliceEvent* gstMpegtsSCTESpliceEvent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsSCTESpliceEvent* getSCTESpliceEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsSCTESpliceEvent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsSCTESpliceEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsSCTESpliceEvent* gstMpegtsSCTESpliceEvent, bool ownedRef = false) - { - this.gstMpegtsSCTESpliceEvent = gstMpegtsSCTESpliceEvent; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsSCTESpliceEvent); - } - - - /** */ - public @property bool insertEvent() - { - return gstMpegtsSCTESpliceEvent.insertEvent != 0; - } - - /** Ditto */ - public @property void insertEvent(bool value) - { - gstMpegtsSCTESpliceEvent.insertEvent = value; - } - - /** */ - public @property uint spliceEventId() - { - return gstMpegtsSCTESpliceEvent.spliceEventId; - } - - /** Ditto */ - public @property void spliceEventId(uint value) - { - gstMpegtsSCTESpliceEvent.spliceEventId = value; - } - - /** */ - public @property bool spliceEventCancelIndicator() - { - return gstMpegtsSCTESpliceEvent.spliceEventCancelIndicator != 0; - } - - /** Ditto */ - public @property void spliceEventCancelIndicator(bool value) - { - gstMpegtsSCTESpliceEvent.spliceEventCancelIndicator = value; - } - - /** */ - public @property bool outOfNetworkIndicator() - { - return gstMpegtsSCTESpliceEvent.outOfNetworkIndicator != 0; - } - - /** Ditto */ - public @property void outOfNetworkIndicator(bool value) - { - gstMpegtsSCTESpliceEvent.outOfNetworkIndicator = value; - } - - /** */ - public @property bool programSpliceFlag() - { - return gstMpegtsSCTESpliceEvent.programSpliceFlag != 0; - } - - /** Ditto */ - public @property void programSpliceFlag(bool value) - { - gstMpegtsSCTESpliceEvent.programSpliceFlag = value; - } - - /** */ - public @property bool durationFlag() - { - return gstMpegtsSCTESpliceEvent.durationFlag != 0; - } - - /** Ditto */ - public @property void durationFlag(bool value) - { - gstMpegtsSCTESpliceEvent.durationFlag = value; - } - - /** */ - public @property bool spliceImmediateFlag() - { - return gstMpegtsSCTESpliceEvent.spliceImmediateFlag != 0; - } - - /** Ditto */ - public @property void spliceImmediateFlag(bool value) - { - gstMpegtsSCTESpliceEvent.spliceImmediateFlag = value; - } - - /** */ - public @property bool programSpliceTimeSpecified() - { - return gstMpegtsSCTESpliceEvent.programSpliceTimeSpecified != 0; - } - - /** Ditto */ - public @property void programSpliceTimeSpecified(bool value) - { - gstMpegtsSCTESpliceEvent.programSpliceTimeSpecified = value; - } - - /** */ - public @property ulong programSpliceTime() - { - return gstMpegtsSCTESpliceEvent.programSpliceTime; - } - - /** Ditto */ - public @property void programSpliceTime(ulong value) - { - gstMpegtsSCTESpliceEvent.programSpliceTime = value; - } - - /** */ - public @property bool breakDurationAutoReturn() - { - return gstMpegtsSCTESpliceEvent.breakDurationAutoReturn != 0; - } - - /** Ditto */ - public @property void breakDurationAutoReturn(bool value) - { - gstMpegtsSCTESpliceEvent.breakDurationAutoReturn = value; - } - - /** */ - public @property ulong breakDuration() - { - return gstMpegtsSCTESpliceEvent.breakDuration; - } - - /** Ditto */ - public @property void breakDuration(ulong value) - { - gstMpegtsSCTESpliceEvent.breakDuration = value; - } - - /** */ - public @property ushort uniqueProgramId() - { - return gstMpegtsSCTESpliceEvent.uniqueProgramId; - } - - /** Ditto */ - public @property void uniqueProgramId(ushort value) - { - gstMpegtsSCTESpliceEvent.uniqueProgramId = value; - } - - /** */ - public @property ubyte availNum() - { - return gstMpegtsSCTESpliceEvent.availNum; - } - - /** Ditto */ - public @property void availNum(ubyte value) - { - gstMpegtsSCTESpliceEvent.availNum = value; - } - - /** */ - public @property ubyte availsExpected() - { - return gstMpegtsSCTESpliceEvent.availsExpected; - } - - /** Ditto */ - public @property void availsExpected(ubyte value) - { - gstMpegtsSCTESpliceEvent.availsExpected = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_scte_splice_event_get_type(); - } - - /** - * Allocates and initializes a #GstMpegtsSCTESpliceEvent. - * - * Returns: A newly allocated #GstMpegtsSCTESpliceEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_scte_splice_event_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsSCTESpliceEvent*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/SDT.d b/generated/gstreamer/gst/mpegts/SDT.d deleted file mode 100644 index 72c68b238..000000000 --- a/generated/gstreamer/gst/mpegts/SDT.d +++ /dev/null @@ -1,155 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.SDT; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Service Description Table (EN 300 468) - */ -public final class SDT -{ - /** the main Gtk struct */ - protected GstMpegtsSDT* gstMpegtsSDT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsSDT* getSDTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsSDT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsSDT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsSDT* gstMpegtsSDT, bool ownedRef = false) - { - this.gstMpegtsSDT = gstMpegtsSDT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsSDT); - } - - - /** - * Network ID of the originating delivery system - */ - public @property ushort originalNetworkId() - { - return gstMpegtsSDT.originalNetworkId; - } - - /** Ditto */ - public @property void originalNetworkId(ushort value) - { - gstMpegtsSDT.originalNetworkId = value; - } - - /** - * True if the table describes this transport stream - */ - public @property bool actualTs() - { - return gstMpegtsSDT.actualTs != 0; - } - - /** Ditto */ - public @property void actualTs(bool value) - { - gstMpegtsSDT.actualTs = value; - } - - /** - * ID of this transport stream - */ - public @property ushort transportStreamId() - { - return gstMpegtsSDT.transportStreamId; - } - - /** Ditto */ - public @property void transportStreamId(ushort value) - { - gstMpegtsSDT.transportStreamId = value; - } - - /** - * List of services - */ - public @property PtrArray services() - { - return new PtrArray(gstMpegtsSDT.services, false); - } - - /** Ditto */ - public @property void services(PtrArray value) - { - gstMpegtsSDT.services = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_sdt_get_type(); - } - - /** - * Allocates and initializes a #GstMpegtsSDT. - * - * Returns: A newly allocated #GstMpegtsSDT - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_sdt_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsSDT*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/SDTService.d b/generated/gstreamer/gst/mpegts/SDTService.d deleted file mode 100644 index e8b06599c..000000000 --- a/generated/gstreamer/gst/mpegts/SDTService.d +++ /dev/null @@ -1,181 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.SDTService; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class SDTService -{ - /** the main Gtk struct */ - protected GstMpegtsSDTService* gstMpegtsSDTService; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsSDTService* getSDTServiceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsSDTService; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsSDTService; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsSDTService* gstMpegtsSDTService, bool ownedRef = false) - { - this.gstMpegtsSDTService = gstMpegtsSDTService; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsSDTService); - } - - - /** - * The program number this table belongs to - */ - public @property ushort serviceId() - { - return gstMpegtsSDTService.serviceId; - } - - /** Ditto */ - public @property void serviceId(ushort value) - { - gstMpegtsSDTService.serviceId = value; - } - - /** - * EIT schedule information is present in this transport stream - */ - public @property bool EITScheduleFlag() - { - return gstMpegtsSDTService.EITScheduleFlag != 0; - } - - /** Ditto */ - public @property void EITScheduleFlag(bool value) - { - gstMpegtsSDTService.EITScheduleFlag = value; - } - - /** - * EIT present/following information is present in this transport stream - */ - public @property bool EITPresentFollowingFlag() - { - return gstMpegtsSDTService.EITPresentFollowingFlag != 0; - } - - /** Ditto */ - public @property void EITPresentFollowingFlag(bool value) - { - gstMpegtsSDTService.EITPresentFollowingFlag = value; - } - - /** - * Status of this service - */ - public @property GstMpegtsRunningStatus runningStatus() - { - return gstMpegtsSDTService.runningStatus; - } - - /** Ditto */ - public @property void runningStatus(GstMpegtsRunningStatus value) - { - gstMpegtsSDTService.runningStatus = value; - } - - /** - * True if one or more streams is controlled by a CA system - */ - public @property bool freeCAMode() - { - return gstMpegtsSDTService.freeCAMode != 0; - } - - /** Ditto */ - public @property void freeCAMode(bool value) - { - gstMpegtsSDTService.freeCAMode = value; - } - - /** - * List of descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsSDTService.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsSDTService.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_sdt_service_get_type(); - } - - /** - * Allocates and initializes a #GstMpegtsSDTService. - * - * Returns: A newly allocated #GstMpegtsSDTService - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_mpegts_sdt_service_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsSDTService*) __p); - } -} diff --git a/generated/gstreamer/gst/mpegts/SatelliteDeliverySystemDescriptor.d b/generated/gstreamer/gst/mpegts/SatelliteDeliverySystemDescriptor.d deleted file mode 100644 index b0e0f018c..000000000 --- a/generated/gstreamer/gst/mpegts/SatelliteDeliverySystemDescriptor.d +++ /dev/null @@ -1,204 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.SatelliteDeliverySystemDescriptor; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Satellite Delivery System Descriptor (EN 300 468 v.1.13.1) - */ -public final class SatelliteDeliverySystemDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsSatelliteDeliverySystemDescriptor* gstMpegtsSatelliteDeliverySystemDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsSatelliteDeliverySystemDescriptor* getSatelliteDeliverySystemDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsSatelliteDeliverySystemDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsSatelliteDeliverySystemDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsSatelliteDeliverySystemDescriptor* gstMpegtsSatelliteDeliverySystemDescriptor, bool ownedRef = false) - { - this.gstMpegtsSatelliteDeliverySystemDescriptor = gstMpegtsSatelliteDeliverySystemDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsSatelliteDeliverySystemDescriptor); - } - - - /** - * the frequency in kHz (kiloHertz) - */ - public @property uint frequency() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.frequency; - } - - /** Ditto */ - public @property void frequency(uint value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.frequency = value; - } - - /** - * the orbital position in degrees - */ - public @property float orbitalPosition() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.orbitalPosition; - } - - /** Ditto */ - public @property void orbitalPosition(float value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.orbitalPosition = value; - } - - /** - * If %TRUE, the satellite is in the eastern part of the orbit, - * else in the western part. - */ - public @property bool westEast() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.westEast != 0; - } - - /** Ditto */ - public @property void westEast(bool value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.westEast = value; - } - - /** - * The polarization of the transmitted signal - */ - public @property GstMpegtsSatellitePolarizationType polarization() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.polarization; - } - - /** Ditto */ - public @property void polarization(GstMpegtsSatellitePolarizationType value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.polarization = value; - } - - /** - * Roll-off factor used in DVB-S2 - */ - public @property GstMpegtsSatelliteRolloff rollOff() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.rollOff; - } - - /** Ditto */ - public @property void rollOff(GstMpegtsSatelliteRolloff value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.rollOff = value; - } - - /** - * modulation system, %TRUE if DVB-S2, else DVB-S - */ - public @property bool modulationSystem() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.modulationSystem != 0; - } - - /** Ditto */ - public @property void modulationSystem(bool value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.modulationSystem = value; - } - - /** - * Modulation scheme used - */ - public @property GstMpegtsModulationType modulationType() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.modulationType; - } - - /** Ditto */ - public @property void modulationType(GstMpegtsModulationType value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.modulationType = value; - } - - /** - * Symbol rate (in symbols per second) - */ - public @property uint symbolRate() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.symbolRate; - } - - /** Ditto */ - public @property void symbolRate(uint value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.symbolRate = value; - } - - /** - * inner FEC scheme used - */ - public @property GstMpegtsDVBCodeRate fecInner() - { - return gstMpegtsSatelliteDeliverySystemDescriptor.fecInner; - } - - /** Ditto */ - public @property void fecInner(GstMpegtsDVBCodeRate value) - { - gstMpegtsSatelliteDeliverySystemDescriptor.fecInner = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_satellite_delivery_system_descriptor_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/Section.d b/generated/gstreamer/gst/mpegts/Section.d deleted file mode 100644 index cbdc82865..000000000 --- a/generated/gstreamer/gst/mpegts/Section.d +++ /dev/null @@ -1,716 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.Section; - -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.AtscEIT; -private import gst.mpegts.AtscETT; -private import gst.mpegts.AtscMGT; -private import gst.mpegts.AtscRRT; -private import gst.mpegts.AtscSTT; -private import gst.mpegts.AtscVCT; -private import gst.mpegts.BAT; -private import gst.mpegts.EIT; -private import gst.mpegts.NIT; -private import gst.mpegts.PMT; -private import gst.mpegts.PatProgram; -private import gst.mpegts.SCTESIT; -private import gst.mpegts.SDT; -private import gst.mpegts.TOT; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gstreamer.DateTime; -private import gstreamer.Element; -private import gstreamer.Event; -private import gstreamer.Message; -private import gstreamer.ObjectGst; - - -/** - * For more details, refer to the ITU H.222.0 or ISO/IEC 13818-1 specifications - * and other specifications mentioned in the documentation. - */ -public class Section -{ - /** the main Gtk struct */ - protected GstMpegtsSection* gstMpegtsSection; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsSection* getSectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsSection; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsSection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsSection* gstMpegtsSection, bool ownedRef = false) - { - this.gstMpegtsSection = gstMpegtsSection; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_mpegts_section_get_type(); - } - - /** - * Creates a new #GstMpegtsSection from the provided @data. - * - * Note: Ensuring @data is big enough to contain the full section is the - * responsibility of the caller. If it is not big enough, %NULL will be - * returned. - * - * Note: it is the responsibility of the caller to ensure @data does point - * to the beginning of the section. - * - * Params: - * pid = the PID to which this section belongs - * data = a pointer to the beginning of the section (i.e. the first byte - * should contain the table_id field). - * - * Returns: A new #GstMpegtsSection if the data was valid, - * else %NULL - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ushort pid, ubyte[] data) - { - auto __p = gst_mpegts_section_new(pid, data.ptr, cast(size_t)data.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstMpegtsSection*) __p); - } - - /** - * Returns the #GstMpegtsAtscVCT contained in the @section - * - * Returns: The #GstMpegtsAtscVCT contained in the section, or %NULL if an error - * happened. - */ - public AtscVCT getAtscCvct() - { - auto __p = gst_mpegts_section_get_atsc_cvct(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AtscVCT)(cast(GstMpegtsAtscVCT*) __p); - } - - /** - * Returns the #GstMpegtsAtscEIT contained in the @section. - * - * Returns: The #GstMpegtsAtscEIT contained in the section, or %NULL if an error - * happened. - */ - public AtscEIT getAtscEit() - { - auto __p = gst_mpegts_section_get_atsc_eit(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AtscEIT)(cast(GstMpegtsAtscEIT*) __p); - } - - /** - * Returns the #GstMpegtsAtscETT contained in the @section. - * - * Returns: The #GstMpegtsAtscETT contained in the section, or %NULL if an error - * happened. - */ - public AtscETT getAtscEtt() - { - auto __p = gst_mpegts_section_get_atsc_ett(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AtscETT)(cast(GstMpegtsAtscETT*) __p); - } - - /** - * Returns the #GstMpegtsAtscMGT contained in the @section. - * - * Returns: The #GstMpegtsAtscMGT contained in the section, or %NULL if an error - * happened. - */ - public AtscMGT getAtscMgt() - { - auto __p = gst_mpegts_section_get_atsc_mgt(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AtscMGT)(cast(GstMpegtsAtscMGT*) __p); - } - - /** - * Returns the #GstMpegtsAtscRRT contained in the @section. - * - * Returns: The #GstMpegtsAtscRRT contained in the section, or %NULL if an error - * happened. - * - * Since: 1.18 - */ - public AtscRRT getAtscRrt() - { - auto __p = gst_mpegts_section_get_atsc_rrt(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AtscRRT)(cast(GstMpegtsAtscRRT*) __p); - } - - /** - * Returns the #GstMpegtsAtscSTT contained in the @section. - * - * Returns: The #GstMpegtsAtscSTT contained in the section, or %NULL if an error - * happened. - */ - public AtscSTT getAtscStt() - { - auto __p = gst_mpegts_section_get_atsc_stt(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AtscSTT)(cast(GstMpegtsAtscSTT*) __p); - } - - /** - * Returns the #GstMpegtsAtscVCT contained in the @section - * - * Returns: The #GstMpegtsAtscVCT contained in the section, or %NULL if an error - * happened. - */ - public AtscVCT getAtscTvct() - { - auto __p = gst_mpegts_section_get_atsc_tvct(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AtscVCT)(cast(GstMpegtsAtscVCT*) __p); - } - - /** - * Returns the #GstMpegtsBAT contained in the @section. - * - * Returns: The #GstMpegtsBAT contained in the section, or %NULL if an error - * happened. - */ - public BAT getBat() - { - auto __p = gst_mpegts_section_get_bat(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BAT)(cast(GstMpegtsBAT*) __p); - } - - /** - * Returns the array of #GstMpegtsDescriptor contained in the Conditional - * Access Table. - * - * Returns: The - * #GstMpegtsDescriptor contained in the section, or %NULL if an error - * happened. Release with #g_array_unref when done. - */ - public PtrArray getCat() - { - auto __p = gst_mpegts_section_get_cat(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p); - } - - /** - * Gets the original unparsed section data. - * - * Returns: The original unparsed section data. - */ - public Bytes getData() - { - auto __p = gst_mpegts_section_get_data(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Returns the #GstMpegtsEIT contained in the @section. - * - * Returns: The #GstMpegtsEIT contained in the section, or %NULL if an error - * happened. - */ - public EIT getEit() - { - auto __p = gst_mpegts_section_get_eit(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(EIT)(cast(GstMpegtsEIT*) __p); - } - - /** - * Returns the #GstMpegtsNIT contained in the @section. - * - * Returns: The #GstMpegtsNIT contained in the section, or %NULL if an error - * happened. - */ - public NIT getNit() - { - auto __p = gst_mpegts_section_get_nit(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(NIT)(cast(GstMpegtsNIT*) __p); - } - - /** - * Parses a Program Association Table (ITU H.222.0, ISO/IEC 13818-1). - * - * Returns the array of #GstMpegtsPatProgram contained in the section. - * - * Note: The PAT "transport_id" field corresponds to the "subtable_extension" - * field of the provided @section. - * - * Returns: The - * #GstMpegtsPatProgram contained in the section, or %NULL if an error - * happened. Release with #g_ptr_array_unref when done. - */ - public PtrArray getPat() - { - auto __p = gst_mpegts_section_get_pat(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p); - } - - /** - * Returns the #GstMpegtsPMT contained in the @section. - * - * Returns: The #GstMpegtsPMT contained in the section, or %NULL if an error - * happened. - */ - public PMT getPmt() - { - auto __p = gst_mpegts_section_get_pmt(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PMT)(cast(GstMpegtsPMT*) __p); - } - - /** - * Returns the #GstMpegtsSCTESIT contained in the @section. - * - * Returns: The #GstMpegtsSCTESIT contained in the section, or %NULL if an error - * happened. - */ - public SCTESIT getScteSit() - { - auto __p = gst_mpegts_section_get_scte_sit(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SCTESIT)(cast(GstMpegtsSCTESIT*) __p); - } - - /** - * Returns the #GstMpegtsSDT contained in the @section. - * - * Returns: The #GstMpegtsSDT contained in the section, or %NULL if an error - * happened. - */ - public SDT getSdt() - { - auto __p = gst_mpegts_section_get_sdt(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SDT)(cast(GstMpegtsSDT*) __p); - } - - /** - * Returns the #GstDateTime of the TDT - * - * Returns: The #GstDateTime contained in the section, or %NULL - * if an error happened. Release with #gst_date_time_unref when done. - */ - public DateTime getTdt() - { - auto __p = gst_mpegts_section_get_tdt(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DateTime)(cast(GstDateTime*) __p, true); - } - - /** - * Returns the #GstMpegtsTOT contained in the @section. - * - * Returns: The #GstMpegtsTOT contained in the section, or %NULL if an error - * happened. - */ - public TOT getTot() - { - auto __p = gst_mpegts_section_get_tot(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TOT)(cast(GstMpegtsTOT*) __p); - } - - /** - * Returns the array of #GstMpegtsDescriptor contained in the section - * - * Returns: The - * #GstMpegtsDescriptor contained in the section, or %NULL if an error - * happened. Release with #g_array_unref when done. - */ - public PtrArray getTsdt() - { - auto __p = gst_mpegts_section_get_tsdt(gstMpegtsSection); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p); - } - - /** - * If the data in @section has already been packetized, the data pointer is returned - * immediately. Otherwise, the data field is allocated and populated. - * - * Returns: pointer to section data, or %NULL on fail - */ - public ubyte[] packetize() - { - size_t outputSize; - - auto __p = gst_mpegts_section_packetize(gstMpegtsSection, &outputSize); - - return __p[0 .. outputSize]; - } - - /** - * Creates a custom #GstEvent with a @GstMpegtsSection. - * The #GstEvent is sent to the @element #GstElement. - * - * Params: - * element = The #GstElement to send to section event to - * - * Returns: %TRUE if the event is sent - */ - public bool sendEvent(Element element) - { - return gst_mpegts_section_send_event(gstMpegtsSection, (element is null) ? null : element.getElementStruct()) != 0; - } - - /** - * - * Params: - * mgt = a #GstMpegtsAtscMGT to create the #GstMpegtsSection from - * Returns: the #GstMpegtsSection - * - * Since: 1.18 - */ - public static Section fromAtscMgt(AtscMGT mgt) - { - auto __p = gst_mpegts_section_from_atsc_mgt((mgt is null) ? null : mgt.getAtscMGTStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** */ - public static Section fromAtscRrt(AtscRRT rrt) - { - auto __p = gst_mpegts_section_from_atsc_rrt((rrt is null) ? null : rrt.getAtscRRTStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** */ - public static Section fromAtscStt(AtscSTT stt) - { - auto __p = gst_mpegts_section_from_atsc_stt((stt is null) ? null : stt.getAtscSTTStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** - * Ownership of @nit is taken. The data in @nit is managed by the #GstMpegtsSection - * - * Params: - * nit = a #GstMpegtsNIT to create the #GstMpegtsSection from - * - * Returns: the #GstMpegtsSection - */ - public static Section fromNit(NIT nit) - { - auto __p = gst_mpegts_section_from_nit((nit is null) ? null : nit.getNITStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** - * Creates a PAT #GstMpegtsSection from the @programs array of #GstMpegtsPatPrograms - * - * Params: - * programs = an array of #GstMpegtsPatProgram - * tsId = Transport stream ID of the PAT - * - * Returns: a #GstMpegtsSection - */ - public static Section fromPat(PtrArray programs, ushort tsId) - { - auto __p = gst_mpegts_section_from_pat((programs is null) ? null : programs.getPtrArrayStruct(), tsId); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** - * Creates a #GstMpegtsSection from @pmt that is bound to @pid - * - * Params: - * pmt = a #GstMpegtsPMT to create a #GstMpegtsSection from - * pid = The PID that the #GstMpegtsPMT belongs to - * - * Returns: #GstMpegtsSection - */ - public static Section fromPmt(PMT pmt, ushort pid) - { - auto __p = gst_mpegts_section_from_pmt((pmt is null) ? null : pmt.getPMTStruct(), pid); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** - * Ownership of @sit is taken. The data in @sit is managed by the #GstMpegtsSection - * - * Params: - * sit = a #GstMpegtsSCTESIT to create the #GstMpegtsSection from - * - * Returns: the #GstMpegtsSection - */ - public static Section fromScteSit(SCTESIT sit, ushort pid) - { - auto __p = gst_mpegts_section_from_scte_sit((sit is null) ? null : sit.getSCTESITStruct(), pid); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** - * Ownership of @sdt is taken. The data in @sdt is managed by the #GstMpegtsSection - * - * Params: - * sdt = a #GstMpegtsSDT to create the #GstMpegtsSection from - * - * Returns: the #GstMpegtsSection - */ - public static Section fromSdt(SDT sdt) - { - auto __p = gst_mpegts_section_from_sdt((sdt is null) ? null : sdt.getSDTStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** - * Extracts the #GstMpegtsSection contained in the @event #GstEvent - * - * Params: - * event = #GstEvent containing a #GstMpegtsSection - * - * Returns: The extracted #GstMpegtsSection - */ - public static Section eventParseMpegtsSection(Event event) - { - auto __p = gst_event_parse_mpegts_section((event is null) ? null : event.getEventStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } - - /** - * Creates a new #GstMessage for a @GstMpegtsSection. - * - * Params: - * parent = The creator of the message - * section = The #GstMpegtsSection to put in a message - * - * Returns: The new #GstMessage to be posted, or %NULL if the - * section is not valid. - */ - public static Message messageNewMpegtsSection(ObjectGst parent, Section section) - { - auto __p = gst_message_new_mpegts_section((parent is null) ? null : parent.getObjectGstStruct(), (section is null) ? null : section.getSectionStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * Returns the #GstMpegtsSection contained in a message. - * - * Params: - * message = a #GstMessage - * - * Returns: the contained #GstMpegtsSection, or %NULL. - */ - public static Section messageParseMpegtsSection(Message message) - { - auto __p = gst_message_parse_mpegts_section((message is null) ? null : message.getMessageStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Section)(cast(GstMpegtsSection*) __p, true); - } -} diff --git a/generated/gstreamer/gst/mpegts/T2DeliverySystemCell.d b/generated/gstreamer/gst/mpegts/T2DeliverySystemCell.d deleted file mode 100644 index ff45a6f22..000000000 --- a/generated/gstreamer/gst/mpegts/T2DeliverySystemCell.d +++ /dev/null @@ -1,117 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.T2DeliverySystemCell; - -private import glib.ArrayG; -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class T2DeliverySystemCell -{ - /** the main Gtk struct */ - protected GstMpegtsT2DeliverySystemCell* gstMpegtsT2DeliverySystemCell; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsT2DeliverySystemCell* getT2DeliverySystemCellStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsT2DeliverySystemCell; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsT2DeliverySystemCell; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsT2DeliverySystemCell* gstMpegtsT2DeliverySystemCell, bool ownedRef = false) - { - this.gstMpegtsT2DeliverySystemCell = gstMpegtsT2DeliverySystemCell; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsT2DeliverySystemCell); - } - - - /** - * id of the cell - */ - public @property ushort cellId() - { - return gstMpegtsT2DeliverySystemCell.cellId; - } - - /** Ditto */ - public @property void cellId(ushort value) - { - gstMpegtsT2DeliverySystemCell.cellId = value; - } - - /** - * centre frequencies in Hz - */ - public @property ArrayG centreFrequencies() - { - return new ArrayG(gstMpegtsT2DeliverySystemCell.centreFrequencies, false); - } - - /** Ditto */ - public @property void centreFrequencies(ArrayG value) - { - gstMpegtsT2DeliverySystemCell.centreFrequencies = value.getArrayGStruct(); - } - - /** */ - public @property PtrArray subCells() - { - return new PtrArray(gstMpegtsT2DeliverySystemCell.subCells, false); - } - - /** Ditto */ - public @property void subCells(PtrArray value) - { - gstMpegtsT2DeliverySystemCell.subCells = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_t2_delivery_system_cell_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/T2DeliverySystemCellExtension.d b/generated/gstreamer/gst/mpegts/T2DeliverySystemCellExtension.d deleted file mode 100644 index eee8e826f..000000000 --- a/generated/gstreamer/gst/mpegts/T2DeliverySystemCellExtension.d +++ /dev/null @@ -1,103 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.T2DeliverySystemCellExtension; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** */ -public final class T2DeliverySystemCellExtension -{ - /** the main Gtk struct */ - protected GstMpegtsT2DeliverySystemCellExtension* gstMpegtsT2DeliverySystemCellExtension; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsT2DeliverySystemCellExtension* getT2DeliverySystemCellExtensionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsT2DeliverySystemCellExtension; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsT2DeliverySystemCellExtension; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsT2DeliverySystemCellExtension* gstMpegtsT2DeliverySystemCellExtension, bool ownedRef = false) - { - this.gstMpegtsT2DeliverySystemCellExtension = gstMpegtsT2DeliverySystemCellExtension; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsT2DeliverySystemCellExtension); - } - - - /** - * id of the sub cell - */ - public @property ubyte cellIdExtension() - { - return gstMpegtsT2DeliverySystemCellExtension.cellIdExtension; - } - - /** Ditto */ - public @property void cellIdExtension(ubyte value) - { - gstMpegtsT2DeliverySystemCellExtension.cellIdExtension = value; - } - - /** - * centre frequency of the sub cell in Hz - */ - public @property uint transposerFrequency() - { - return gstMpegtsT2DeliverySystemCellExtension.transposerFrequency; - } - - /** Ditto */ - public @property void transposerFrequency(uint value) - { - gstMpegtsT2DeliverySystemCellExtension.transposerFrequency = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_t2_delivery_system_cell_extension_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/T2DeliverySystemDescriptor.d b/generated/gstreamer/gst/mpegts/T2DeliverySystemDescriptor.d deleted file mode 100644 index 9272c5824..000000000 --- a/generated/gstreamer/gst/mpegts/T2DeliverySystemDescriptor.d +++ /dev/null @@ -1,193 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.T2DeliverySystemDescriptor; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * describe DVB-T2 transmissions according to EN 302 755 - */ -public final class T2DeliverySystemDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsT2DeliverySystemDescriptor* gstMpegtsT2DeliverySystemDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsT2DeliverySystemDescriptor* getT2DeliverySystemDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsT2DeliverySystemDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsT2DeliverySystemDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsT2DeliverySystemDescriptor* gstMpegtsT2DeliverySystemDescriptor, bool ownedRef = false) - { - this.gstMpegtsT2DeliverySystemDescriptor = gstMpegtsT2DeliverySystemDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - gst_mpegts_t2_delivery_system_descriptor_free(gstMpegtsT2DeliverySystemDescriptor); - } - - - /** */ - public @property ubyte plpId() - { - return gstMpegtsT2DeliverySystemDescriptor.plpId; - } - - /** Ditto */ - public @property void plpId(ubyte value) - { - gstMpegtsT2DeliverySystemDescriptor.plpId = value; - } - - /** */ - public @property ushort t2SystemId() - { - return gstMpegtsT2DeliverySystemDescriptor.t2SystemId; - } - - /** Ditto */ - public @property void t2SystemId(ushort value) - { - gstMpegtsT2DeliverySystemDescriptor.t2SystemId = value; - } - - /** */ - public @property ubyte sisoMiso() - { - return gstMpegtsT2DeliverySystemDescriptor.sisoMiso; - } - - /** Ditto */ - public @property void sisoMiso(ubyte value) - { - gstMpegtsT2DeliverySystemDescriptor.sisoMiso = value; - } - - /** */ - public @property uint bandwidth() - { - return gstMpegtsT2DeliverySystemDescriptor.bandwidth; - } - - /** Ditto */ - public @property void bandwidth(uint value) - { - gstMpegtsT2DeliverySystemDescriptor.bandwidth = value; - } - - /** */ - public @property GstMpegtsTerrestrialGuardInterval guardInterval() - { - return gstMpegtsT2DeliverySystemDescriptor.guardInterval; - } - - /** Ditto */ - public @property void guardInterval(GstMpegtsTerrestrialGuardInterval value) - { - gstMpegtsT2DeliverySystemDescriptor.guardInterval = value; - } - - /** */ - public @property GstMpegtsTerrestrialTransmissionMode transmissionMode() - { - return gstMpegtsT2DeliverySystemDescriptor.transmissionMode; - } - - /** Ditto */ - public @property void transmissionMode(GstMpegtsTerrestrialTransmissionMode value) - { - gstMpegtsT2DeliverySystemDescriptor.transmissionMode = value; - } - - /** */ - public @property bool otherFrequency() - { - return gstMpegtsT2DeliverySystemDescriptor.otherFrequency != 0; - } - - /** Ditto */ - public @property void otherFrequency(bool value) - { - gstMpegtsT2DeliverySystemDescriptor.otherFrequency = value; - } - - /** */ - public @property bool tfs() - { - return gstMpegtsT2DeliverySystemDescriptor.tfs != 0; - } - - /** Ditto */ - public @property void tfs(bool value) - { - gstMpegtsT2DeliverySystemDescriptor.tfs = value; - } - - /** */ - public @property PtrArray cells() - { - return new PtrArray(gstMpegtsT2DeliverySystemDescriptor.cells, false); - } - - /** Ditto */ - public @property void cells(PtrArray value) - { - gstMpegtsT2DeliverySystemDescriptor.cells = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_t2_delivery_system_descriptor_get_type(); - } - - /** */ - public void free() - { - gst_mpegts_t2_delivery_system_descriptor_free(gstMpegtsT2DeliverySystemDescriptor); - ownedRef = false; - } -} diff --git a/generated/gstreamer/gst/mpegts/TOT.d b/generated/gstreamer/gst/mpegts/TOT.d deleted file mode 100644 index 6785e907e..000000000 --- a/generated/gstreamer/gst/mpegts/TOT.d +++ /dev/null @@ -1,106 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.TOT; - -private import glib.MemorySlice; -private import glib.PtrArray; -private import gobject.ObjectG; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gstreamer.DateTime; -private import gtkd.Loader; - - -/** - * Time Offset Table (EN 300 468) - */ -public final class TOT -{ - /** the main Gtk struct */ - protected GstMpegtsTOT* gstMpegtsTOT; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsTOT* getTOTStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsTOT; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsTOT; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsTOT* gstMpegtsTOT, bool ownedRef = false) - { - this.gstMpegtsTOT = gstMpegtsTOT; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsTOT); - } - - - /** */ - public @property DateTime utcTime() - { - return ObjectG.getDObject!(DateTime)(gstMpegtsTOT.utcTime, false); - } - - /** Ditto */ - public @property void utcTime(DateTime value) - { - gstMpegtsTOT.utcTime = value.getDateTimeStruct(); - } - - /** - * List of descriptors - */ - public @property PtrArray descriptors() - { - return new PtrArray(gstMpegtsTOT.descriptors, false); - } - - /** Ditto */ - public @property void descriptors(PtrArray value) - { - gstMpegtsTOT.descriptors = value.getPtrArrayStruct(); - } - - /** */ - public static GType getType() - { - return gst_mpegts_tot_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/TerrestrialDeliverySystemDescriptor.d b/generated/gstreamer/gst/mpegts/TerrestrialDeliverySystemDescriptor.d deleted file mode 100644 index dcf749d16..000000000 --- a/generated/gstreamer/gst/mpegts/TerrestrialDeliverySystemDescriptor.d +++ /dev/null @@ -1,237 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.TerrestrialDeliverySystemDescriptor; - -private import glib.MemorySlice; -private import gst.mpegts.c.functions; -public import gst.mpegts.c.types; -private import gtkd.Loader; - - -/** - * Terrestrial Delivery System Descriptor (EN 300 468 v.1.13.1) - */ -public final class TerrestrialDeliverySystemDescriptor -{ - /** the main Gtk struct */ - protected GstMpegtsTerrestrialDeliverySystemDescriptor* gstMpegtsTerrestrialDeliverySystemDescriptor; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMpegtsTerrestrialDeliverySystemDescriptor* getTerrestrialDeliverySystemDescriptorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMpegtsTerrestrialDeliverySystemDescriptor; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMpegtsTerrestrialDeliverySystemDescriptor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMpegtsTerrestrialDeliverySystemDescriptor* gstMpegtsTerrestrialDeliverySystemDescriptor, bool ownedRef = false) - { - this.gstMpegtsTerrestrialDeliverySystemDescriptor = gstMpegtsTerrestrialDeliverySystemDescriptor; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) - sliceFree(gstMpegtsTerrestrialDeliverySystemDescriptor); - } - - - /** - * the frequency in Hz (Hertz) - */ - public @property uint frequency() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.frequency; - } - - /** Ditto */ - public @property void frequency(uint value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.frequency = value; - } - - /** - * the bandwidth in Hz (Hertz) - */ - public @property uint bandwidth() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.bandwidth; - } - - /** Ditto */ - public @property void bandwidth(uint value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.bandwidth = value; - } - - /** - * %TRUE High Priority %FALSE Low Priority - */ - public @property bool priority() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.priority != 0; - } - - /** Ditto */ - public @property void priority(bool value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.priority = value; - } - - /** - * %TRUE no time slicing %FALSE time slicing - */ - public @property bool timeSlicing() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.timeSlicing != 0; - } - - /** Ditto */ - public @property void timeSlicing(bool value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.timeSlicing = value; - } - - /** - * %TRUE no mpe-fec is used %FALSE mpe-fec is use - */ - public @property bool mpeFec() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.mpeFec != 0; - } - - /** Ditto */ - public @property void mpeFec(bool value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.mpeFec = value; - } - - /** - * the constellation - */ - public @property GstMpegtsModulationType constellation() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.constellation; - } - - /** Ditto */ - public @property void constellation(GstMpegtsModulationType value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.constellation = value; - } - - /** - * the hierarchy - */ - public @property GstMpegtsTerrestrialHierarchy hierarchy() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.hierarchy; - } - - /** Ditto */ - public @property void hierarchy(GstMpegtsTerrestrialHierarchy value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.hierarchy = value; - } - - /** */ - public @property GstMpegtsDVBCodeRate codeRateHp() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateHp; - } - - /** Ditto */ - public @property void codeRateHp(GstMpegtsDVBCodeRate value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateHp = value; - } - - /** */ - public @property GstMpegtsDVBCodeRate codeRateLp() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateLp; - } - - /** Ditto */ - public @property void codeRateLp(GstMpegtsDVBCodeRate value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateLp = value; - } - - /** */ - public @property GstMpegtsTerrestrialGuardInterval guardInterval() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.guardInterval; - } - - /** Ditto */ - public @property void guardInterval(GstMpegtsTerrestrialGuardInterval value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.guardInterval = value; - } - - /** */ - public @property GstMpegtsTerrestrialTransmissionMode transmissionMode() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.transmissionMode; - } - - /** Ditto */ - public @property void transmissionMode(GstMpegtsTerrestrialTransmissionMode value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.transmissionMode = value; - } - - /** - * %TRUE more frequency are use, else not - */ - public @property bool otherFrequency() - { - return gstMpegtsTerrestrialDeliverySystemDescriptor.otherFrequency != 0; - } - - /** Ditto */ - public @property void otherFrequency(bool value) - { - gstMpegtsTerrestrialDeliverySystemDescriptor.otherFrequency = value; - } - - /** */ - public static GType getType() - { - return gst_mpegts_terrestrial_delivery_system_descriptor_get_type(); - } -} diff --git a/generated/gstreamer/gst/mpegts/c/functions.d b/generated/gstreamer/gst/mpegts/c/functions.d deleted file mode 100644 index 41146df50..000000000 --- a/generated/gstreamer/gst/mpegts/c/functions.d +++ /dev/null @@ -1,1010 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.c.functions; - -import std.stdio; -import gst.mpegts.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GSTMPEGTS = ["libgstmpegts-1.0-0.dll;gstmpegts-1.0-0.dll;gstmpegts-1.dll"]; -else version (OSX) - static immutable LIBRARY_GSTMPEGTS = ["libgstmpegts-1.0.0.dylib"]; -else - static immutable LIBRARY_GSTMPEGTS = ["libgstmpegts-1.0.so.0"]; - -shared static this() -{ - // gst.mpegts.AtscEIT - - Linker.link(gst_mpegts_atsc_eit_get_type, "gst_mpegts_atsc_eit_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscEITEvent - - Linker.link(gst_mpegts_atsc_eit_event_get_type, "gst_mpegts_atsc_eit_event_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscETT - - Linker.link(gst_mpegts_atsc_ett_get_type, "gst_mpegts_atsc_ett_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscMGT - - Linker.link(gst_mpegts_atsc_mgt_get_type, "gst_mpegts_atsc_mgt_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_mgt_new, "gst_mpegts_atsc_mgt_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscMGTTable - - Linker.link(gst_mpegts_atsc_mgt_table_get_type, "gst_mpegts_atsc_mgt_table_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscMultString - - Linker.link(gst_mpegts_atsc_mult_string_get_type, "gst_mpegts_atsc_mult_string_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscRRT - - Linker.link(gst_mpegts_atsc_rrt_get_type, "gst_mpegts_atsc_rrt_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_rrt_new, "gst_mpegts_atsc_rrt_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscRRTDimension - - Linker.link(gst_mpegts_atsc_rrt_dimension_get_type, "gst_mpegts_atsc_rrt_dimension_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_rrt_dimension_new, "gst_mpegts_atsc_rrt_dimension_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscRRTDimensionValue - - Linker.link(gst_mpegts_atsc_rrt_dimension_value_get_type, "gst_mpegts_atsc_rrt_dimension_value_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_rrt_dimension_value_new, "gst_mpegts_atsc_rrt_dimension_value_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscSTT - - Linker.link(gst_mpegts_atsc_stt_get_type, "gst_mpegts_atsc_stt_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_stt_new, "gst_mpegts_atsc_stt_new", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_stt_get_datetime_utc, "gst_mpegts_atsc_stt_get_datetime_utc", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscStringSegment - - Linker.link(gst_mpegts_atsc_string_segment_get_type, "gst_mpegts_atsc_string_segment_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_string_segment_get_string, "gst_mpegts_atsc_string_segment_get_string", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_atsc_string_segment_set_string, "gst_mpegts_atsc_string_segment_set_string", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscVCT - - Linker.link(gst_mpegts_atsc_vct_get_type, "gst_mpegts_atsc_vct_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.AtscVCTSource - - Linker.link(gst_mpegts_atsc_vct_source_get_type, "gst_mpegts_atsc_vct_source_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.BAT - - Linker.link(gst_mpegts_bat_get_type, "gst_mpegts_bat_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.BATStream - - Linker.link(gst_mpegts_bat_stream_get_type, "gst_mpegts_bat_stream_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.CableDeliverySystemDescriptor - - Linker.link(gst_mpegts_dvb_cable_delivery_system_descriptor_get_type, "gst_mpegts_dvb_cable_delivery_system_descriptor_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_dvb_cable_delivery_system_descriptor_free, "gst_mpegts_dvb_cable_delivery_system_descriptor_free", LIBRARY_GSTMPEGTS); - - // gst.mpegts.ComponentDescriptor - - Linker.link(gst_mpegts_component_descriptor_get_type, "gst_mpegts_component_descriptor_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_dvb_component_descriptor_free, "gst_mpegts_dvb_component_descriptor_free", LIBRARY_GSTMPEGTS); - - // gst.mpegts.Content - - Linker.link(gst_mpegts_content_get_type, "gst_mpegts_content_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DVBLinkageDescriptor - - Linker.link(gst_mpegts_dvb_linkage_descriptor_get_type, "gst_mpegts_dvb_linkage_descriptor_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_dvb_linkage_descriptor_free, "gst_mpegts_dvb_linkage_descriptor_free", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_dvb_linkage_descriptor_get_event, "gst_mpegts_dvb_linkage_descriptor_get_event", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_dvb_linkage_descriptor_get_extended_event, "gst_mpegts_dvb_linkage_descriptor_get_extended_event", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over, "gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DVBLinkageEvent - - Linker.link(gst_mpegts_dvb_linkage_event_get_type, "gst_mpegts_dvb_linkage_event_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DVBLinkageExtendedEvent - - Linker.link(gst_mpegts_dvb_linkage_extended_event_get_type, "gst_mpegts_dvb_linkage_extended_event_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DVBLinkageMobileHandOver - - Linker.link(gst_mpegts_dvb_linkage_mobile_hand_over_get_type, "gst_mpegts_dvb_linkage_mobile_hand_over_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DVBParentalRatingItem - - Linker.link(gst_mpegts_dvb_parental_rating_item_get_type, "gst_mpegts_dvb_parental_rating_item_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DVBServiceListItem - - Linker.link(gst_mpegts_dvb_service_list_item_get_type, "gst_mpegts_dvb_service_list_item_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DataBroadcastDescriptor - - Linker.link(gst_mpegts_dvb_data_broadcast_descriptor_get_type, "gst_mpegts_dvb_data_broadcast_descriptor_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_dvb_data_broadcast_descriptor_free, "gst_mpegts_dvb_data_broadcast_descriptor_free", LIBRARY_GSTMPEGTS); - - // gst.mpegts.Descriptor - - Linker.link(gst_mpegts_descriptor_get_type, "gst_mpegts_descriptor_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_free, "gst_mpegts_descriptor_free", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_ca, "gst_mpegts_descriptor_parse_ca", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_cable_delivery_system, "gst_mpegts_descriptor_parse_cable_delivery_system", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_bouquet_name, "gst_mpegts_descriptor_parse_dvb_bouquet_name", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_ca_identifier, "gst_mpegts_descriptor_parse_dvb_ca_identifier", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_component, "gst_mpegts_descriptor_parse_dvb_component", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_content, "gst_mpegts_descriptor_parse_dvb_content", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_data_broadcast, "gst_mpegts_descriptor_parse_dvb_data_broadcast", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_data_broadcast_id, "gst_mpegts_descriptor_parse_dvb_data_broadcast_id", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_extended_event, "gst_mpegts_descriptor_parse_dvb_extended_event", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_frequency_list, "gst_mpegts_descriptor_parse_dvb_frequency_list", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_linkage, "gst_mpegts_descriptor_parse_dvb_linkage", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name, "gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_multilingual_component, "gst_mpegts_descriptor_parse_dvb_multilingual_component", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_multilingual_network_name, "gst_mpegts_descriptor_parse_dvb_multilingual_network_name", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_multilingual_service_name, "gst_mpegts_descriptor_parse_dvb_multilingual_service_name", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_network_name, "gst_mpegts_descriptor_parse_dvb_network_name", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_parental_rating, "gst_mpegts_descriptor_parse_dvb_parental_rating", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_private_data_specifier, "gst_mpegts_descriptor_parse_dvb_private_data_specifier", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_scrambling, "gst_mpegts_descriptor_parse_dvb_scrambling", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_service, "gst_mpegts_descriptor_parse_dvb_service", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_service_list, "gst_mpegts_descriptor_parse_dvb_service_list", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_short_event, "gst_mpegts_descriptor_parse_dvb_short_event", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_stream_identifier, "gst_mpegts_descriptor_parse_dvb_stream_identifier", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_stuffing, "gst_mpegts_descriptor_parse_dvb_stuffing", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_subtitling_idx, "gst_mpegts_descriptor_parse_dvb_subtitling_idx", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_subtitling_nb, "gst_mpegts_descriptor_parse_dvb_subtitling_nb", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_t2_delivery_system, "gst_mpegts_descriptor_parse_dvb_t2_delivery_system", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_teletext_idx, "gst_mpegts_descriptor_parse_dvb_teletext_idx", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_dvb_teletext_nb, "gst_mpegts_descriptor_parse_dvb_teletext_nb", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_iso_639_language, "gst_mpegts_descriptor_parse_iso_639_language", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_iso_639_language_idx, "gst_mpegts_descriptor_parse_iso_639_language_idx", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_iso_639_language_nb, "gst_mpegts_descriptor_parse_iso_639_language_nb", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_logical_channel, "gst_mpegts_descriptor_parse_logical_channel", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_satellite_delivery_system, "gst_mpegts_descriptor_parse_satellite_delivery_system", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_parse_terrestrial_delivery_system, "gst_mpegts_descriptor_parse_terrestrial_delivery_system", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_from_custom, "gst_mpegts_descriptor_from_custom", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_from_custom_with_extension, "gst_mpegts_descriptor_from_custom_with_extension", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_from_dvb_network_name, "gst_mpegts_descriptor_from_dvb_network_name", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_from_dvb_service, "gst_mpegts_descriptor_from_dvb_service", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_from_dvb_subtitling, "gst_mpegts_descriptor_from_dvb_subtitling", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_from_iso_639_language, "gst_mpegts_descriptor_from_iso_639_language", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_descriptor_from_registration, "gst_mpegts_descriptor_from_registration", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_find_descriptor, "gst_mpegts_find_descriptor", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_parse_descriptors, "gst_mpegts_parse_descriptors", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DvbMultilingualBouquetNameItem - - Linker.link(gst_mpegts_dvb_multilingual_bouquet_name_item_get_type, "gst_mpegts_dvb_multilingual_bouquet_name_item_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DvbMultilingualComponentItem - - Linker.link(gst_mpegts_dvb_multilingual_component_item_get_type, "gst_mpegts_dvb_multilingual_component_item_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DvbMultilingualNetworkNameItem - - Linker.link(gst_mpegts_dvb_multilingual_network_name_item_get_type, "gst_mpegts_dvb_multilingual_network_name_item_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.DvbMultilingualServiceNameItem - - Linker.link(gst_mpegts_dvb_multilingual_service_name_item_get_type, "gst_mpegts_dvb_multilingual_service_name_item_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.EIT - - Linker.link(gst_mpegts_eit_get_type, "gst_mpegts_eit_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.EITEvent - - Linker.link(gst_mpegts_eit_event_get_type, "gst_mpegts_eit_event_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.ExtendedEventDescriptor - - Linker.link(gst_mpegts_extended_event_descriptor_get_type, "gst_mpegts_extended_event_descriptor_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_extended_event_descriptor_free, "gst_mpegts_extended_event_descriptor_free", LIBRARY_GSTMPEGTS); - - // gst.mpegts.ExtendedEventItem - - Linker.link(gst_mpegts_extended_event_item_get_type, "gst_mpegts_extended_event_item_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.ISO639LanguageDescriptor - - Linker.link(gst_mpegts_iso_639_language_get_type, "gst_mpegts_iso_639_language_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_iso_639_language_descriptor_free, "gst_mpegts_iso_639_language_descriptor_free", LIBRARY_GSTMPEGTS); - - // gst.mpegts.LogicalChannel - - Linker.link(gst_mpegts_logical_channel_get_type, "gst_mpegts_logical_channel_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.LogicalChannelDescriptor - - Linker.link(gst_mpegts_logical_channel_descriptor_get_type, "gst_mpegts_logical_channel_descriptor_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.NIT - - Linker.link(gst_mpegts_nit_get_type, "gst_mpegts_nit_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_nit_new, "gst_mpegts_nit_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.NITStream - - Linker.link(gst_mpegts_nit_stream_get_type, "gst_mpegts_nit_stream_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_nit_stream_new, "gst_mpegts_nit_stream_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.PMT - - Linker.link(gst_mpegts_pmt_get_type, "gst_mpegts_pmt_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_pmt_new, "gst_mpegts_pmt_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.PMTStream - - Linker.link(gst_mpegts_pmt_stream_get_type, "gst_mpegts_pmt_stream_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_pmt_stream_new, "gst_mpegts_pmt_stream_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.PatProgram - - Linker.link(gst_mpegts_pat_program_get_type, "gst_mpegts_pat_program_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_pat_program_new, "gst_mpegts_pat_program_new", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_pat_new, "gst_mpegts_pat_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.SCTESIT - - Linker.link(gst_mpegts_scte_sit_get_type, "gst_mpegts_scte_sit_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_scte_sit_new, "gst_mpegts_scte_sit_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.SCTESpliceEvent - - Linker.link(gst_mpegts_scte_splice_event_get_type, "gst_mpegts_scte_splice_event_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_scte_splice_event_new, "gst_mpegts_scte_splice_event_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.SDT - - Linker.link(gst_mpegts_sdt_get_type, "gst_mpegts_sdt_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_sdt_new, "gst_mpegts_sdt_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.SDTService - - Linker.link(gst_mpegts_sdt_service_get_type, "gst_mpegts_sdt_service_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_sdt_service_new, "gst_mpegts_sdt_service_new", LIBRARY_GSTMPEGTS); - - // gst.mpegts.SatelliteDeliverySystemDescriptor - - Linker.link(gst_mpegts_satellite_delivery_system_descriptor_get_type, "gst_mpegts_satellite_delivery_system_descriptor_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.Section - - Linker.link(gst_mpegts_section_get_type, "gst_mpegts_section_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_new, "gst_mpegts_section_new", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_atsc_cvct, "gst_mpegts_section_get_atsc_cvct", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_atsc_eit, "gst_mpegts_section_get_atsc_eit", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_atsc_ett, "gst_mpegts_section_get_atsc_ett", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_atsc_mgt, "gst_mpegts_section_get_atsc_mgt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_atsc_rrt, "gst_mpegts_section_get_atsc_rrt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_atsc_stt, "gst_mpegts_section_get_atsc_stt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_atsc_tvct, "gst_mpegts_section_get_atsc_tvct", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_bat, "gst_mpegts_section_get_bat", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_cat, "gst_mpegts_section_get_cat", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_data, "gst_mpegts_section_get_data", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_eit, "gst_mpegts_section_get_eit", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_nit, "gst_mpegts_section_get_nit", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_pat, "gst_mpegts_section_get_pat", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_pmt, "gst_mpegts_section_get_pmt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_scte_sit, "gst_mpegts_section_get_scte_sit", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_sdt, "gst_mpegts_section_get_sdt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_tdt, "gst_mpegts_section_get_tdt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_tot, "gst_mpegts_section_get_tot", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_get_tsdt, "gst_mpegts_section_get_tsdt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_packetize, "gst_mpegts_section_packetize", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_send_event, "gst_mpegts_section_send_event", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_atsc_mgt, "gst_mpegts_section_from_atsc_mgt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_atsc_rrt, "gst_mpegts_section_from_atsc_rrt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_atsc_stt, "gst_mpegts_section_from_atsc_stt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_nit, "gst_mpegts_section_from_nit", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_pat, "gst_mpegts_section_from_pat", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_pmt, "gst_mpegts_section_from_pmt", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_scte_sit, "gst_mpegts_section_from_scte_sit", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_section_from_sdt, "gst_mpegts_section_from_sdt", LIBRARY_GSTMPEGTS); - Linker.link(gst_event_parse_mpegts_section, "gst_event_parse_mpegts_section", LIBRARY_GSTMPEGTS); - Linker.link(gst_message_new_mpegts_section, "gst_message_new_mpegts_section", LIBRARY_GSTMPEGTS); - Linker.link(gst_message_parse_mpegts_section, "gst_message_parse_mpegts_section", LIBRARY_GSTMPEGTS); - - // gst.mpegts.T2DeliverySystemCell - - Linker.link(gst_mpegts_t2_delivery_system_cell_get_type, "gst_mpegts_t2_delivery_system_cell_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.T2DeliverySystemCellExtension - - Linker.link(gst_mpegts_t2_delivery_system_cell_extension_get_type, "gst_mpegts_t2_delivery_system_cell_extension_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.T2DeliverySystemDescriptor - - Linker.link(gst_mpegts_t2_delivery_system_descriptor_get_type, "gst_mpegts_t2_delivery_system_descriptor_get_type", LIBRARY_GSTMPEGTS); - Linker.link(gst_mpegts_t2_delivery_system_descriptor_free, "gst_mpegts_t2_delivery_system_descriptor_free", LIBRARY_GSTMPEGTS); - - // gst.mpegts.TOT - - Linker.link(gst_mpegts_tot_get_type, "gst_mpegts_tot_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.TerrestrialDeliverySystemDescriptor - - Linker.link(gst_mpegts_terrestrial_delivery_system_descriptor_get_type, "gst_mpegts_terrestrial_delivery_system_descriptor_get_type", LIBRARY_GSTMPEGTS); - - // gst.mpegts.Mpegts - - Linker.link(gst_mpegts_initialize, "gst_mpegts_initialize", LIBRARY_GSTMPEGTS); -} - -__gshared extern(C) -{ - - // gst.mpegts.AtscEIT - - GType function() c_gst_mpegts_atsc_eit_get_type; - - // gst.mpegts.AtscEITEvent - - GType function() c_gst_mpegts_atsc_eit_event_get_type; - - // gst.mpegts.AtscETT - - GType function() c_gst_mpegts_atsc_ett_get_type; - - // gst.mpegts.AtscMGT - - GType function() c_gst_mpegts_atsc_mgt_get_type; - GstMpegtsAtscMGT* function() c_gst_mpegts_atsc_mgt_new; - - // gst.mpegts.AtscMGTTable - - GType function() c_gst_mpegts_atsc_mgt_table_get_type; - - // gst.mpegts.AtscMultString - - GType function() c_gst_mpegts_atsc_mult_string_get_type; - - // gst.mpegts.AtscRRT - - GType function() c_gst_mpegts_atsc_rrt_get_type; - GstMpegtsAtscRRT* function() c_gst_mpegts_atsc_rrt_new; - - // gst.mpegts.AtscRRTDimension - - GType function() c_gst_mpegts_atsc_rrt_dimension_get_type; - GstMpegtsAtscRRTDimension* function() c_gst_mpegts_atsc_rrt_dimension_new; - - // gst.mpegts.AtscRRTDimensionValue - - GType function() c_gst_mpegts_atsc_rrt_dimension_value_get_type; - GstMpegtsAtscRRTDimensionValue* function() c_gst_mpegts_atsc_rrt_dimension_value_new; - - // gst.mpegts.AtscSTT - - GType function() c_gst_mpegts_atsc_stt_get_type; - GstMpegtsAtscSTT* function() c_gst_mpegts_atsc_stt_new; - GstDateTime* function(GstMpegtsAtscSTT* stt) c_gst_mpegts_atsc_stt_get_datetime_utc; - - // gst.mpegts.AtscStringSegment - - GType function() c_gst_mpegts_atsc_string_segment_get_type; - const(char)* function(GstMpegtsAtscStringSegment* seg) c_gst_mpegts_atsc_string_segment_get_string; - int function(GstMpegtsAtscStringSegment* seg, char* string_, ubyte compressionType, ubyte mode) c_gst_mpegts_atsc_string_segment_set_string; - - // gst.mpegts.AtscVCT - - GType function() c_gst_mpegts_atsc_vct_get_type; - - // gst.mpegts.AtscVCTSource - - GType function() c_gst_mpegts_atsc_vct_source_get_type; - - // gst.mpegts.BAT - - GType function() c_gst_mpegts_bat_get_type; - - // gst.mpegts.BATStream - - GType function() c_gst_mpegts_bat_stream_get_type; - - // gst.mpegts.CableDeliverySystemDescriptor - - GType function() c_gst_mpegts_dvb_cable_delivery_system_descriptor_get_type; - void function(GstMpegtsCableDeliverySystemDescriptor* source) c_gst_mpegts_dvb_cable_delivery_system_descriptor_free; - - // gst.mpegts.ComponentDescriptor - - GType function() c_gst_mpegts_component_descriptor_get_type; - void function(GstMpegtsComponentDescriptor* source) c_gst_mpegts_dvb_component_descriptor_free; - - // gst.mpegts.Content - - GType function() c_gst_mpegts_content_get_type; - - // gst.mpegts.DVBLinkageDescriptor - - GType function() c_gst_mpegts_dvb_linkage_descriptor_get_type; - void function(GstMpegtsDVBLinkageDescriptor* source) c_gst_mpegts_dvb_linkage_descriptor_free; - GstMpegtsDVBLinkageEvent* function(GstMpegtsDVBLinkageDescriptor* desc) c_gst_mpegts_dvb_linkage_descriptor_get_event; - GPtrArray* function(GstMpegtsDVBLinkageDescriptor* desc) c_gst_mpegts_dvb_linkage_descriptor_get_extended_event; - GstMpegtsDVBLinkageMobileHandOver* function(GstMpegtsDVBLinkageDescriptor* desc) c_gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over; - - // gst.mpegts.DVBLinkageEvent - - GType function() c_gst_mpegts_dvb_linkage_event_get_type; - - // gst.mpegts.DVBLinkageExtendedEvent - - GType function() c_gst_mpegts_dvb_linkage_extended_event_get_type; - - // gst.mpegts.DVBLinkageMobileHandOver - - GType function() c_gst_mpegts_dvb_linkage_mobile_hand_over_get_type; - - // gst.mpegts.DVBParentalRatingItem - - GType function() c_gst_mpegts_dvb_parental_rating_item_get_type; - - // gst.mpegts.DVBServiceListItem - - GType function() c_gst_mpegts_dvb_service_list_item_get_type; - - // gst.mpegts.DataBroadcastDescriptor - - GType function() c_gst_mpegts_dvb_data_broadcast_descriptor_get_type; - void function(GstMpegtsDataBroadcastDescriptor* source) c_gst_mpegts_dvb_data_broadcast_descriptor_free; - - // gst.mpegts.Descriptor - - GType function() c_gst_mpegts_descriptor_get_type; - void function(GstMpegtsDescriptor* desc) c_gst_mpegts_descriptor_free; - int function(GstMpegtsDescriptor* descriptor, ushort* caSystemId, ushort* caPid, ubyte** privateData, size_t* privateDataSize) c_gst_mpegts_descriptor_parse_ca; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsCableDeliverySystemDescriptor* res) c_gst_mpegts_descriptor_parse_cable_delivery_system; - int function(GstMpegtsDescriptor* descriptor, char** bouquetName) c_gst_mpegts_descriptor_parse_dvb_bouquet_name; - int function(GstMpegtsDescriptor* descriptor, GArray** list) c_gst_mpegts_descriptor_parse_dvb_ca_identifier; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsComponentDescriptor** res) c_gst_mpegts_descriptor_parse_dvb_component; - int function(GstMpegtsDescriptor* descriptor, GPtrArray** content) c_gst_mpegts_descriptor_parse_dvb_content; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsDataBroadcastDescriptor** res) c_gst_mpegts_descriptor_parse_dvb_data_broadcast; - int function(GstMpegtsDescriptor* descriptor, ushort* dataBroadcastId, ubyte** idSelectorBytes, ubyte* len) c_gst_mpegts_descriptor_parse_dvb_data_broadcast_id; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsExtendedEventDescriptor** res) c_gst_mpegts_descriptor_parse_dvb_extended_event; - int function(GstMpegtsDescriptor* descriptor, int* offset, GArray** list) c_gst_mpegts_descriptor_parse_dvb_frequency_list; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsDVBLinkageDescriptor** res) c_gst_mpegts_descriptor_parse_dvb_linkage; - int function(GstMpegtsDescriptor* descriptor, GPtrArray** bouquetNameItems) c_gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name; - int function(GstMpegtsDescriptor* descriptor, ubyte* componentTag, GPtrArray** componentDescriptionItems) c_gst_mpegts_descriptor_parse_dvb_multilingual_component; - int function(GstMpegtsDescriptor* descriptor, GPtrArray** networkNameItems) c_gst_mpegts_descriptor_parse_dvb_multilingual_network_name; - int function(GstMpegtsDescriptor* descriptor, GPtrArray** serviceNameItems) c_gst_mpegts_descriptor_parse_dvb_multilingual_service_name; - int function(GstMpegtsDescriptor* descriptor, char** name) c_gst_mpegts_descriptor_parse_dvb_network_name; - int function(GstMpegtsDescriptor* descriptor, GPtrArray** rating) c_gst_mpegts_descriptor_parse_dvb_parental_rating; - int function(GstMpegtsDescriptor* descriptor, uint* privateDataSpecifier, ubyte** privateData, ubyte* length) c_gst_mpegts_descriptor_parse_dvb_private_data_specifier; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsDVBScramblingModeType* scramblingMode) c_gst_mpegts_descriptor_parse_dvb_scrambling; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsDVBServiceType* serviceType, char** serviceName, char** providerName) c_gst_mpegts_descriptor_parse_dvb_service; - int function(GstMpegtsDescriptor* descriptor, GPtrArray** list) c_gst_mpegts_descriptor_parse_dvb_service_list; - int function(GstMpegtsDescriptor* descriptor, char** languageCode, char** eventName, char** text) c_gst_mpegts_descriptor_parse_dvb_short_event; - int function(GstMpegtsDescriptor* descriptor, ubyte* componentTag) c_gst_mpegts_descriptor_parse_dvb_stream_identifier; - int function(GstMpegtsDescriptor* descriptor, ubyte** stuffingBytes) c_gst_mpegts_descriptor_parse_dvb_stuffing; - int function(GstMpegtsDescriptor* descriptor, uint idx, char** lang, ubyte* type, ushort* compositionPageId, ushort* ancillaryPageId) c_gst_mpegts_descriptor_parse_dvb_subtitling_idx; - uint function(GstMpegtsDescriptor* descriptor) c_gst_mpegts_descriptor_parse_dvb_subtitling_nb; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsT2DeliverySystemDescriptor** res) c_gst_mpegts_descriptor_parse_dvb_t2_delivery_system; - int function(GstMpegtsDescriptor* descriptor, uint idx, char** languageCode, GstMpegtsDVBTeletextType* teletextType, ubyte* magazineNumber, ubyte* pageNumber) c_gst_mpegts_descriptor_parse_dvb_teletext_idx; - uint function(GstMpegtsDescriptor* descriptor) c_gst_mpegts_descriptor_parse_dvb_teletext_nb; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsISO639LanguageDescriptor** res) c_gst_mpegts_descriptor_parse_iso_639_language; - int function(GstMpegtsDescriptor* descriptor, uint idx, char** lang, GstMpegtsIso639AudioType* audioType) c_gst_mpegts_descriptor_parse_iso_639_language_idx; - uint function(GstMpegtsDescriptor* descriptor) c_gst_mpegts_descriptor_parse_iso_639_language_nb; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsLogicalChannelDescriptor* res) c_gst_mpegts_descriptor_parse_logical_channel; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsSatelliteDeliverySystemDescriptor* res) c_gst_mpegts_descriptor_parse_satellite_delivery_system; - int function(GstMpegtsDescriptor* descriptor, GstMpegtsTerrestrialDeliverySystemDescriptor* res) c_gst_mpegts_descriptor_parse_terrestrial_delivery_system; - GstMpegtsDescriptor* function(ubyte tag, ubyte* data, size_t length) c_gst_mpegts_descriptor_from_custom; - GstMpegtsDescriptor* function(ubyte tag, ubyte tagExtension, ubyte* data, size_t length) c_gst_mpegts_descriptor_from_custom_with_extension; - GstMpegtsDescriptor* function(const(char)* name) c_gst_mpegts_descriptor_from_dvb_network_name; - GstMpegtsDescriptor* function(GstMpegtsDVBServiceType serviceType, const(char)* serviceName, const(char)* serviceProvider) c_gst_mpegts_descriptor_from_dvb_service; - GstMpegtsDescriptor* function(const(char)* lang, ubyte type, ushort composition, ushort ancillary) c_gst_mpegts_descriptor_from_dvb_subtitling; - GstMpegtsDescriptor* function(const(char)* language) c_gst_mpegts_descriptor_from_iso_639_language; - GstMpegtsDescriptor* function(const(char)* formatIdentifier, ubyte* additionalInfo, size_t additionalInfoLength) c_gst_mpegts_descriptor_from_registration; - GstMpegtsDescriptor* function(GPtrArray* descriptors, ubyte tag) c_gst_mpegts_find_descriptor; - GPtrArray* function(ubyte* buffer, size_t bufLen) c_gst_mpegts_parse_descriptors; - - // gst.mpegts.DvbMultilingualBouquetNameItem - - GType function() c_gst_mpegts_dvb_multilingual_bouquet_name_item_get_type; - - // gst.mpegts.DvbMultilingualComponentItem - - GType function() c_gst_mpegts_dvb_multilingual_component_item_get_type; - - // gst.mpegts.DvbMultilingualNetworkNameItem - - GType function() c_gst_mpegts_dvb_multilingual_network_name_item_get_type; - - // gst.mpegts.DvbMultilingualServiceNameItem - - GType function() c_gst_mpegts_dvb_multilingual_service_name_item_get_type; - - // gst.mpegts.EIT - - GType function() c_gst_mpegts_eit_get_type; - - // gst.mpegts.EITEvent - - GType function() c_gst_mpegts_eit_event_get_type; - - // gst.mpegts.ExtendedEventDescriptor - - GType function() c_gst_mpegts_extended_event_descriptor_get_type; - void function(GstMpegtsExtendedEventDescriptor* source) c_gst_mpegts_extended_event_descriptor_free; - - // gst.mpegts.ExtendedEventItem - - GType function() c_gst_mpegts_extended_event_item_get_type; - - // gst.mpegts.ISO639LanguageDescriptor - - GType function() c_gst_mpegts_iso_639_language_get_type; - void function(GstMpegtsISO639LanguageDescriptor* desc) c_gst_mpegts_iso_639_language_descriptor_free; - - // gst.mpegts.LogicalChannel - - GType function() c_gst_mpegts_logical_channel_get_type; - - // gst.mpegts.LogicalChannelDescriptor - - GType function() c_gst_mpegts_logical_channel_descriptor_get_type; - - // gst.mpegts.NIT - - GType function() c_gst_mpegts_nit_get_type; - GstMpegtsNIT* function() c_gst_mpegts_nit_new; - - // gst.mpegts.NITStream - - GType function() c_gst_mpegts_nit_stream_get_type; - GstMpegtsNITStream* function() c_gst_mpegts_nit_stream_new; - - // gst.mpegts.PMT - - GType function() c_gst_mpegts_pmt_get_type; - GstMpegtsPMT* function() c_gst_mpegts_pmt_new; - - // gst.mpegts.PMTStream - - GType function() c_gst_mpegts_pmt_stream_get_type; - GstMpegtsPMTStream* function() c_gst_mpegts_pmt_stream_new; - - // gst.mpegts.PatProgram - - GType function() c_gst_mpegts_pat_program_get_type; - GstMpegtsPatProgram* function() c_gst_mpegts_pat_program_new; - GPtrArray* function() c_gst_mpegts_pat_new; - - // gst.mpegts.SCTESIT - - GType function() c_gst_mpegts_scte_sit_get_type; - GstMpegtsSCTESIT* function() c_gst_mpegts_scte_sit_new; - - // gst.mpegts.SCTESpliceEvent - - GType function() c_gst_mpegts_scte_splice_event_get_type; - GstMpegtsSCTESpliceEvent* function() c_gst_mpegts_scte_splice_event_new; - - // gst.mpegts.SDT - - GType function() c_gst_mpegts_sdt_get_type; - GstMpegtsSDT* function() c_gst_mpegts_sdt_new; - - // gst.mpegts.SDTService - - GType function() c_gst_mpegts_sdt_service_get_type; - GstMpegtsSDTService* function() c_gst_mpegts_sdt_service_new; - - // gst.mpegts.SatelliteDeliverySystemDescriptor - - GType function() c_gst_mpegts_satellite_delivery_system_descriptor_get_type; - - // gst.mpegts.Section - - GType function() c_gst_mpegts_section_get_type; - GstMpegtsSection* function(ushort pid, ubyte* data, size_t dataSize) c_gst_mpegts_section_new; - GstMpegtsAtscVCT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_atsc_cvct; - GstMpegtsAtscEIT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_atsc_eit; - GstMpegtsAtscETT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_atsc_ett; - GstMpegtsAtscMGT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_atsc_mgt; - GstMpegtsAtscRRT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_atsc_rrt; - GstMpegtsAtscSTT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_atsc_stt; - GstMpegtsAtscVCT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_atsc_tvct; - GstMpegtsBAT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_bat; - GPtrArray* function(GstMpegtsSection* section) c_gst_mpegts_section_get_cat; - GBytes* function(GstMpegtsSection* section) c_gst_mpegts_section_get_data; - GstMpegtsEIT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_eit; - GstMpegtsNIT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_nit; - GPtrArray* function(GstMpegtsSection* section) c_gst_mpegts_section_get_pat; - GstMpegtsPMT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_pmt; - GstMpegtsSCTESIT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_scte_sit; - GstMpegtsSDT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_sdt; - GstDateTime* function(GstMpegtsSection* section) c_gst_mpegts_section_get_tdt; - GstMpegtsTOT* function(GstMpegtsSection* section) c_gst_mpegts_section_get_tot; - GPtrArray* function(GstMpegtsSection* section) c_gst_mpegts_section_get_tsdt; - ubyte* function(GstMpegtsSection* section, size_t* outputSize) c_gst_mpegts_section_packetize; - int function(GstMpegtsSection* section, GstElement* element) c_gst_mpegts_section_send_event; - GstMpegtsSection* function(GstMpegtsAtscMGT* mgt) c_gst_mpegts_section_from_atsc_mgt; - GstMpegtsSection* function(GstMpegtsAtscRRT* rrt) c_gst_mpegts_section_from_atsc_rrt; - GstMpegtsSection* function(GstMpegtsAtscSTT* stt) c_gst_mpegts_section_from_atsc_stt; - GstMpegtsSection* function(GstMpegtsNIT* nit) c_gst_mpegts_section_from_nit; - GstMpegtsSection* function(GPtrArray* programs, ushort tsId) c_gst_mpegts_section_from_pat; - GstMpegtsSection* function(GstMpegtsPMT* pmt, ushort pid) c_gst_mpegts_section_from_pmt; - GstMpegtsSection* function(GstMpegtsSCTESIT* sit, ushort pid) c_gst_mpegts_section_from_scte_sit; - GstMpegtsSection* function(GstMpegtsSDT* sdt) c_gst_mpegts_section_from_sdt; - GstMpegtsSection* function(GstEvent* event) c_gst_event_parse_mpegts_section; - GstMessage* function(GstObject* parent, GstMpegtsSection* section) c_gst_message_new_mpegts_section; - GstMpegtsSection* function(GstMessage* message) c_gst_message_parse_mpegts_section; - - // gst.mpegts.T2DeliverySystemCell - - GType function() c_gst_mpegts_t2_delivery_system_cell_get_type; - - // gst.mpegts.T2DeliverySystemCellExtension - - GType function() c_gst_mpegts_t2_delivery_system_cell_extension_get_type; - - // gst.mpegts.T2DeliverySystemDescriptor - - GType function() c_gst_mpegts_t2_delivery_system_descriptor_get_type; - void function(GstMpegtsT2DeliverySystemDescriptor* source) c_gst_mpegts_t2_delivery_system_descriptor_free; - - // gst.mpegts.TOT - - GType function() c_gst_mpegts_tot_get_type; - - // gst.mpegts.TerrestrialDeliverySystemDescriptor - - GType function() c_gst_mpegts_terrestrial_delivery_system_descriptor_get_type; - - // gst.mpegts.Mpegts - - void function() c_gst_mpegts_initialize; -} - - -// gst.mpegts.AtscEIT - -alias c_gst_mpegts_atsc_eit_get_type gst_mpegts_atsc_eit_get_type; - -// gst.mpegts.AtscEITEvent - -alias c_gst_mpegts_atsc_eit_event_get_type gst_mpegts_atsc_eit_event_get_type; - -// gst.mpegts.AtscETT - -alias c_gst_mpegts_atsc_ett_get_type gst_mpegts_atsc_ett_get_type; - -// gst.mpegts.AtscMGT - -alias c_gst_mpegts_atsc_mgt_get_type gst_mpegts_atsc_mgt_get_type; -alias c_gst_mpegts_atsc_mgt_new gst_mpegts_atsc_mgt_new; - -// gst.mpegts.AtscMGTTable - -alias c_gst_mpegts_atsc_mgt_table_get_type gst_mpegts_atsc_mgt_table_get_type; - -// gst.mpegts.AtscMultString - -alias c_gst_mpegts_atsc_mult_string_get_type gst_mpegts_atsc_mult_string_get_type; - -// gst.mpegts.AtscRRT - -alias c_gst_mpegts_atsc_rrt_get_type gst_mpegts_atsc_rrt_get_type; -alias c_gst_mpegts_atsc_rrt_new gst_mpegts_atsc_rrt_new; - -// gst.mpegts.AtscRRTDimension - -alias c_gst_mpegts_atsc_rrt_dimension_get_type gst_mpegts_atsc_rrt_dimension_get_type; -alias c_gst_mpegts_atsc_rrt_dimension_new gst_mpegts_atsc_rrt_dimension_new; - -// gst.mpegts.AtscRRTDimensionValue - -alias c_gst_mpegts_atsc_rrt_dimension_value_get_type gst_mpegts_atsc_rrt_dimension_value_get_type; -alias c_gst_mpegts_atsc_rrt_dimension_value_new gst_mpegts_atsc_rrt_dimension_value_new; - -// gst.mpegts.AtscSTT - -alias c_gst_mpegts_atsc_stt_get_type gst_mpegts_atsc_stt_get_type; -alias c_gst_mpegts_atsc_stt_new gst_mpegts_atsc_stt_new; -alias c_gst_mpegts_atsc_stt_get_datetime_utc gst_mpegts_atsc_stt_get_datetime_utc; - -// gst.mpegts.AtscStringSegment - -alias c_gst_mpegts_atsc_string_segment_get_type gst_mpegts_atsc_string_segment_get_type; -alias c_gst_mpegts_atsc_string_segment_get_string gst_mpegts_atsc_string_segment_get_string; -alias c_gst_mpegts_atsc_string_segment_set_string gst_mpegts_atsc_string_segment_set_string; - -// gst.mpegts.AtscVCT - -alias c_gst_mpegts_atsc_vct_get_type gst_mpegts_atsc_vct_get_type; - -// gst.mpegts.AtscVCTSource - -alias c_gst_mpegts_atsc_vct_source_get_type gst_mpegts_atsc_vct_source_get_type; - -// gst.mpegts.BAT - -alias c_gst_mpegts_bat_get_type gst_mpegts_bat_get_type; - -// gst.mpegts.BATStream - -alias c_gst_mpegts_bat_stream_get_type gst_mpegts_bat_stream_get_type; - -// gst.mpegts.CableDeliverySystemDescriptor - -alias c_gst_mpegts_dvb_cable_delivery_system_descriptor_get_type gst_mpegts_dvb_cable_delivery_system_descriptor_get_type; -alias c_gst_mpegts_dvb_cable_delivery_system_descriptor_free gst_mpegts_dvb_cable_delivery_system_descriptor_free; - -// gst.mpegts.ComponentDescriptor - -alias c_gst_mpegts_component_descriptor_get_type gst_mpegts_component_descriptor_get_type; -alias c_gst_mpegts_dvb_component_descriptor_free gst_mpegts_dvb_component_descriptor_free; - -// gst.mpegts.Content - -alias c_gst_mpegts_content_get_type gst_mpegts_content_get_type; - -// gst.mpegts.DVBLinkageDescriptor - -alias c_gst_mpegts_dvb_linkage_descriptor_get_type gst_mpegts_dvb_linkage_descriptor_get_type; -alias c_gst_mpegts_dvb_linkage_descriptor_free gst_mpegts_dvb_linkage_descriptor_free; -alias c_gst_mpegts_dvb_linkage_descriptor_get_event gst_mpegts_dvb_linkage_descriptor_get_event; -alias c_gst_mpegts_dvb_linkage_descriptor_get_extended_event gst_mpegts_dvb_linkage_descriptor_get_extended_event; -alias c_gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over gst_mpegts_dvb_linkage_descriptor_get_mobile_hand_over; - -// gst.mpegts.DVBLinkageEvent - -alias c_gst_mpegts_dvb_linkage_event_get_type gst_mpegts_dvb_linkage_event_get_type; - -// gst.mpegts.DVBLinkageExtendedEvent - -alias c_gst_mpegts_dvb_linkage_extended_event_get_type gst_mpegts_dvb_linkage_extended_event_get_type; - -// gst.mpegts.DVBLinkageMobileHandOver - -alias c_gst_mpegts_dvb_linkage_mobile_hand_over_get_type gst_mpegts_dvb_linkage_mobile_hand_over_get_type; - -// gst.mpegts.DVBParentalRatingItem - -alias c_gst_mpegts_dvb_parental_rating_item_get_type gst_mpegts_dvb_parental_rating_item_get_type; - -// gst.mpegts.DVBServiceListItem - -alias c_gst_mpegts_dvb_service_list_item_get_type gst_mpegts_dvb_service_list_item_get_type; - -// gst.mpegts.DataBroadcastDescriptor - -alias c_gst_mpegts_dvb_data_broadcast_descriptor_get_type gst_mpegts_dvb_data_broadcast_descriptor_get_type; -alias c_gst_mpegts_dvb_data_broadcast_descriptor_free gst_mpegts_dvb_data_broadcast_descriptor_free; - -// gst.mpegts.Descriptor - -alias c_gst_mpegts_descriptor_get_type gst_mpegts_descriptor_get_type; -alias c_gst_mpegts_descriptor_free gst_mpegts_descriptor_free; -alias c_gst_mpegts_descriptor_parse_ca gst_mpegts_descriptor_parse_ca; -alias c_gst_mpegts_descriptor_parse_cable_delivery_system gst_mpegts_descriptor_parse_cable_delivery_system; -alias c_gst_mpegts_descriptor_parse_dvb_bouquet_name gst_mpegts_descriptor_parse_dvb_bouquet_name; -alias c_gst_mpegts_descriptor_parse_dvb_ca_identifier gst_mpegts_descriptor_parse_dvb_ca_identifier; -alias c_gst_mpegts_descriptor_parse_dvb_component gst_mpegts_descriptor_parse_dvb_component; -alias c_gst_mpegts_descriptor_parse_dvb_content gst_mpegts_descriptor_parse_dvb_content; -alias c_gst_mpegts_descriptor_parse_dvb_data_broadcast gst_mpegts_descriptor_parse_dvb_data_broadcast; -alias c_gst_mpegts_descriptor_parse_dvb_data_broadcast_id gst_mpegts_descriptor_parse_dvb_data_broadcast_id; -alias c_gst_mpegts_descriptor_parse_dvb_extended_event gst_mpegts_descriptor_parse_dvb_extended_event; -alias c_gst_mpegts_descriptor_parse_dvb_frequency_list gst_mpegts_descriptor_parse_dvb_frequency_list; -alias c_gst_mpegts_descriptor_parse_dvb_linkage gst_mpegts_descriptor_parse_dvb_linkage; -alias c_gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name gst_mpegts_descriptor_parse_dvb_multilingual_bouquet_name; -alias c_gst_mpegts_descriptor_parse_dvb_multilingual_component gst_mpegts_descriptor_parse_dvb_multilingual_component; -alias c_gst_mpegts_descriptor_parse_dvb_multilingual_network_name gst_mpegts_descriptor_parse_dvb_multilingual_network_name; -alias c_gst_mpegts_descriptor_parse_dvb_multilingual_service_name gst_mpegts_descriptor_parse_dvb_multilingual_service_name; -alias c_gst_mpegts_descriptor_parse_dvb_network_name gst_mpegts_descriptor_parse_dvb_network_name; -alias c_gst_mpegts_descriptor_parse_dvb_parental_rating gst_mpegts_descriptor_parse_dvb_parental_rating; -alias c_gst_mpegts_descriptor_parse_dvb_private_data_specifier gst_mpegts_descriptor_parse_dvb_private_data_specifier; -alias c_gst_mpegts_descriptor_parse_dvb_scrambling gst_mpegts_descriptor_parse_dvb_scrambling; -alias c_gst_mpegts_descriptor_parse_dvb_service gst_mpegts_descriptor_parse_dvb_service; -alias c_gst_mpegts_descriptor_parse_dvb_service_list gst_mpegts_descriptor_parse_dvb_service_list; -alias c_gst_mpegts_descriptor_parse_dvb_short_event gst_mpegts_descriptor_parse_dvb_short_event; -alias c_gst_mpegts_descriptor_parse_dvb_stream_identifier gst_mpegts_descriptor_parse_dvb_stream_identifier; -alias c_gst_mpegts_descriptor_parse_dvb_stuffing gst_mpegts_descriptor_parse_dvb_stuffing; -alias c_gst_mpegts_descriptor_parse_dvb_subtitling_idx gst_mpegts_descriptor_parse_dvb_subtitling_idx; -alias c_gst_mpegts_descriptor_parse_dvb_subtitling_nb gst_mpegts_descriptor_parse_dvb_subtitling_nb; -alias c_gst_mpegts_descriptor_parse_dvb_t2_delivery_system gst_mpegts_descriptor_parse_dvb_t2_delivery_system; -alias c_gst_mpegts_descriptor_parse_dvb_teletext_idx gst_mpegts_descriptor_parse_dvb_teletext_idx; -alias c_gst_mpegts_descriptor_parse_dvb_teletext_nb gst_mpegts_descriptor_parse_dvb_teletext_nb; -alias c_gst_mpegts_descriptor_parse_iso_639_language gst_mpegts_descriptor_parse_iso_639_language; -alias c_gst_mpegts_descriptor_parse_iso_639_language_idx gst_mpegts_descriptor_parse_iso_639_language_idx; -alias c_gst_mpegts_descriptor_parse_iso_639_language_nb gst_mpegts_descriptor_parse_iso_639_language_nb; -alias c_gst_mpegts_descriptor_parse_logical_channel gst_mpegts_descriptor_parse_logical_channel; -alias c_gst_mpegts_descriptor_parse_satellite_delivery_system gst_mpegts_descriptor_parse_satellite_delivery_system; -alias c_gst_mpegts_descriptor_parse_terrestrial_delivery_system gst_mpegts_descriptor_parse_terrestrial_delivery_system; -alias c_gst_mpegts_descriptor_from_custom gst_mpegts_descriptor_from_custom; -alias c_gst_mpegts_descriptor_from_custom_with_extension gst_mpegts_descriptor_from_custom_with_extension; -alias c_gst_mpegts_descriptor_from_dvb_network_name gst_mpegts_descriptor_from_dvb_network_name; -alias c_gst_mpegts_descriptor_from_dvb_service gst_mpegts_descriptor_from_dvb_service; -alias c_gst_mpegts_descriptor_from_dvb_subtitling gst_mpegts_descriptor_from_dvb_subtitling; -alias c_gst_mpegts_descriptor_from_iso_639_language gst_mpegts_descriptor_from_iso_639_language; -alias c_gst_mpegts_descriptor_from_registration gst_mpegts_descriptor_from_registration; -alias c_gst_mpegts_find_descriptor gst_mpegts_find_descriptor; -alias c_gst_mpegts_parse_descriptors gst_mpegts_parse_descriptors; - -// gst.mpegts.DvbMultilingualBouquetNameItem - -alias c_gst_mpegts_dvb_multilingual_bouquet_name_item_get_type gst_mpegts_dvb_multilingual_bouquet_name_item_get_type; - -// gst.mpegts.DvbMultilingualComponentItem - -alias c_gst_mpegts_dvb_multilingual_component_item_get_type gst_mpegts_dvb_multilingual_component_item_get_type; - -// gst.mpegts.DvbMultilingualNetworkNameItem - -alias c_gst_mpegts_dvb_multilingual_network_name_item_get_type gst_mpegts_dvb_multilingual_network_name_item_get_type; - -// gst.mpegts.DvbMultilingualServiceNameItem - -alias c_gst_mpegts_dvb_multilingual_service_name_item_get_type gst_mpegts_dvb_multilingual_service_name_item_get_type; - -// gst.mpegts.EIT - -alias c_gst_mpegts_eit_get_type gst_mpegts_eit_get_type; - -// gst.mpegts.EITEvent - -alias c_gst_mpegts_eit_event_get_type gst_mpegts_eit_event_get_type; - -// gst.mpegts.ExtendedEventDescriptor - -alias c_gst_mpegts_extended_event_descriptor_get_type gst_mpegts_extended_event_descriptor_get_type; -alias c_gst_mpegts_extended_event_descriptor_free gst_mpegts_extended_event_descriptor_free; - -// gst.mpegts.ExtendedEventItem - -alias c_gst_mpegts_extended_event_item_get_type gst_mpegts_extended_event_item_get_type; - -// gst.mpegts.ISO639LanguageDescriptor - -alias c_gst_mpegts_iso_639_language_get_type gst_mpegts_iso_639_language_get_type; -alias c_gst_mpegts_iso_639_language_descriptor_free gst_mpegts_iso_639_language_descriptor_free; - -// gst.mpegts.LogicalChannel - -alias c_gst_mpegts_logical_channel_get_type gst_mpegts_logical_channel_get_type; - -// gst.mpegts.LogicalChannelDescriptor - -alias c_gst_mpegts_logical_channel_descriptor_get_type gst_mpegts_logical_channel_descriptor_get_type; - -// gst.mpegts.NIT - -alias c_gst_mpegts_nit_get_type gst_mpegts_nit_get_type; -alias c_gst_mpegts_nit_new gst_mpegts_nit_new; - -// gst.mpegts.NITStream - -alias c_gst_mpegts_nit_stream_get_type gst_mpegts_nit_stream_get_type; -alias c_gst_mpegts_nit_stream_new gst_mpegts_nit_stream_new; - -// gst.mpegts.PMT - -alias c_gst_mpegts_pmt_get_type gst_mpegts_pmt_get_type; -alias c_gst_mpegts_pmt_new gst_mpegts_pmt_new; - -// gst.mpegts.PMTStream - -alias c_gst_mpegts_pmt_stream_get_type gst_mpegts_pmt_stream_get_type; -alias c_gst_mpegts_pmt_stream_new gst_mpegts_pmt_stream_new; - -// gst.mpegts.PatProgram - -alias c_gst_mpegts_pat_program_get_type gst_mpegts_pat_program_get_type; -alias c_gst_mpegts_pat_program_new gst_mpegts_pat_program_new; -alias c_gst_mpegts_pat_new gst_mpegts_pat_new; - -// gst.mpegts.SCTESIT - -alias c_gst_mpegts_scte_sit_get_type gst_mpegts_scte_sit_get_type; -alias c_gst_mpegts_scte_sit_new gst_mpegts_scte_sit_new; - -// gst.mpegts.SCTESpliceEvent - -alias c_gst_mpegts_scte_splice_event_get_type gst_mpegts_scte_splice_event_get_type; -alias c_gst_mpegts_scte_splice_event_new gst_mpegts_scte_splice_event_new; - -// gst.mpegts.SDT - -alias c_gst_mpegts_sdt_get_type gst_mpegts_sdt_get_type; -alias c_gst_mpegts_sdt_new gst_mpegts_sdt_new; - -// gst.mpegts.SDTService - -alias c_gst_mpegts_sdt_service_get_type gst_mpegts_sdt_service_get_type; -alias c_gst_mpegts_sdt_service_new gst_mpegts_sdt_service_new; - -// gst.mpegts.SatelliteDeliverySystemDescriptor - -alias c_gst_mpegts_satellite_delivery_system_descriptor_get_type gst_mpegts_satellite_delivery_system_descriptor_get_type; - -// gst.mpegts.Section - -alias c_gst_mpegts_section_get_type gst_mpegts_section_get_type; -alias c_gst_mpegts_section_new gst_mpegts_section_new; -alias c_gst_mpegts_section_get_atsc_cvct gst_mpegts_section_get_atsc_cvct; -alias c_gst_mpegts_section_get_atsc_eit gst_mpegts_section_get_atsc_eit; -alias c_gst_mpegts_section_get_atsc_ett gst_mpegts_section_get_atsc_ett; -alias c_gst_mpegts_section_get_atsc_mgt gst_mpegts_section_get_atsc_mgt; -alias c_gst_mpegts_section_get_atsc_rrt gst_mpegts_section_get_atsc_rrt; -alias c_gst_mpegts_section_get_atsc_stt gst_mpegts_section_get_atsc_stt; -alias c_gst_mpegts_section_get_atsc_tvct gst_mpegts_section_get_atsc_tvct; -alias c_gst_mpegts_section_get_bat gst_mpegts_section_get_bat; -alias c_gst_mpegts_section_get_cat gst_mpegts_section_get_cat; -alias c_gst_mpegts_section_get_data gst_mpegts_section_get_data; -alias c_gst_mpegts_section_get_eit gst_mpegts_section_get_eit; -alias c_gst_mpegts_section_get_nit gst_mpegts_section_get_nit; -alias c_gst_mpegts_section_get_pat gst_mpegts_section_get_pat; -alias c_gst_mpegts_section_get_pmt gst_mpegts_section_get_pmt; -alias c_gst_mpegts_section_get_scte_sit gst_mpegts_section_get_scte_sit; -alias c_gst_mpegts_section_get_sdt gst_mpegts_section_get_sdt; -alias c_gst_mpegts_section_get_tdt gst_mpegts_section_get_tdt; -alias c_gst_mpegts_section_get_tot gst_mpegts_section_get_tot; -alias c_gst_mpegts_section_get_tsdt gst_mpegts_section_get_tsdt; -alias c_gst_mpegts_section_packetize gst_mpegts_section_packetize; -alias c_gst_mpegts_section_send_event gst_mpegts_section_send_event; -alias c_gst_mpegts_section_from_atsc_mgt gst_mpegts_section_from_atsc_mgt; -alias c_gst_mpegts_section_from_atsc_rrt gst_mpegts_section_from_atsc_rrt; -alias c_gst_mpegts_section_from_atsc_stt gst_mpegts_section_from_atsc_stt; -alias c_gst_mpegts_section_from_nit gst_mpegts_section_from_nit; -alias c_gst_mpegts_section_from_pat gst_mpegts_section_from_pat; -alias c_gst_mpegts_section_from_pmt gst_mpegts_section_from_pmt; -alias c_gst_mpegts_section_from_scte_sit gst_mpegts_section_from_scte_sit; -alias c_gst_mpegts_section_from_sdt gst_mpegts_section_from_sdt; -alias c_gst_event_parse_mpegts_section gst_event_parse_mpegts_section; -alias c_gst_message_new_mpegts_section gst_message_new_mpegts_section; -alias c_gst_message_parse_mpegts_section gst_message_parse_mpegts_section; - -// gst.mpegts.T2DeliverySystemCell - -alias c_gst_mpegts_t2_delivery_system_cell_get_type gst_mpegts_t2_delivery_system_cell_get_type; - -// gst.mpegts.T2DeliverySystemCellExtension - -alias c_gst_mpegts_t2_delivery_system_cell_extension_get_type gst_mpegts_t2_delivery_system_cell_extension_get_type; - -// gst.mpegts.T2DeliverySystemDescriptor - -alias c_gst_mpegts_t2_delivery_system_descriptor_get_type gst_mpegts_t2_delivery_system_descriptor_get_type; -alias c_gst_mpegts_t2_delivery_system_descriptor_free gst_mpegts_t2_delivery_system_descriptor_free; - -// gst.mpegts.TOT - -alias c_gst_mpegts_tot_get_type gst_mpegts_tot_get_type; - -// gst.mpegts.TerrestrialDeliverySystemDescriptor - -alias c_gst_mpegts_terrestrial_delivery_system_descriptor_get_type gst_mpegts_terrestrial_delivery_system_descriptor_get_type; - -// gst.mpegts.Mpegts - -alias c_gst_mpegts_initialize gst_mpegts_initialize; diff --git a/generated/gstreamer/gst/mpegts/c/types.d b/generated/gstreamer/gst/mpegts/c/types.d deleted file mode 100644 index fabc7ad51..000000000 --- a/generated/gstreamer/gst/mpegts/c/types.d +++ /dev/null @@ -1,2019 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gst.mpegts.c.types; - -public import glib.c.types; -public import gobject.c.types; -public import gstreamer.c.types; - - -/** - * These values correspond to the registered descriptor type from - * the various ATSC specifications. - * - * Consult the relevant specifications for more details. - */ -public enum GstMpegtsATSCDescriptorType -{ - STUFFING = 128, - AC3 = 131, - CAPTION_SERVICE = 134, - CONTENT_ADVISORY = 135, - EXTENDED_CHANNEL_NAME = 160, - SERVICE_LOCATION = 161, - TIME_SHIFTED_SERVICE = 162, - COMPONENT_NAME = 163, - DCC_DEPARTING_REQUEST = 168, - DCC_ARRIVING_REQUEST = 169, - REDISTRIBUTION_CONTROL = 170, - GENRE = 171, - PRIVATE_INFORMATION = 173, - EAC3 = 204, - ENHANCED_SIGNALING = 178, - DATA_SERVICE = 164, - PID_COUNT = 165, - DOWNLOAD_DESCRIPTOR = 166, - MULTIPROTOCOL_ENCAPSULATION = 167, - MODULE_LINK = 180, - CRC32 = 181, - GROUP_LINK = 184, -} -alias GstMpegtsATSCDescriptorType ATSCDescriptorType; - -public enum GstMpegtsAtscMGTTableType -{ - EIT0 = 256, - EIT127 = 383, - ETT0 = 512, - ETT127 = 639, -} -alias GstMpegtsAtscMGTTableType AtscMGTTableType; - -public enum GstMpegtsCableOuterFECScheme -{ - UNDEFINED = 0, - NONE = 1, - RS_204_188 = 2, -} -alias GstMpegtsCableOuterFECScheme CableOuterFECScheme; - -public enum GstMpegtsComponentStreamContent -{ - MPEG2_VIDEO = 1, - MPEG1_LAYER2_AUDIO = 2, - TELETEXT_OR_SUBTITLE = 3, - AC_3 = 4, - AVC = 5, - AAC = 6, - DTS = 7, - SRM_CPCM = 8, -} -alias GstMpegtsComponentStreamContent ComponentStreamContent; - -public enum GstMpegtsContentNibbleHi -{ - MOVIE_DRAMA = 1, - NEWS_CURRENT_AFFAIRS = 2, - SHOW_GAME_SHOW = 3, - SPORTS = 4, - CHILDREN_YOUTH_PROGRAM = 5, - MUSIC_BALLET_DANCE = 6, - ARTS_CULTURE = 7, - SOCIAL_POLITICAL_ECONOMICS = 8, - EDUCATION_SCIENCE_FACTUAL = 9, - LEISURE_HOBBIES = 10, - SPECIAL_CHARACTERISTICS = 11, -} -alias GstMpegtsContentNibbleHi ContentNibbleHi; - -public enum GstMpegtsDVBCodeRate -{ - NONE = 0, - _1_2 = 1, - _2_3 = 2, - _3_4 = 3, - _4_5 = 4, - _5_6 = 5, - _6_7 = 6, - _7_8 = 7, - _8_9 = 8, - AUTO = 9, - _3_5 = 10, - _9_10 = 11, - _2_5 = 12, -} -alias GstMpegtsDVBCodeRate DVBCodeRate; - -/** - * The type of #GstMpegtsDescriptor - * - * These values correspond to the registered descriptor type from - * the various DVB specifications. - * - * Consult the relevant specifications for more details. - */ -public enum GstMpegtsDVBDescriptorType -{ - NETWORK_NAME = 64, - SERVICE_LIST = 65, - STUFFING = 66, - SATELLITE_DELIVERY_SYSTEM = 67, - CABLE_DELIVERY_SYSTEM = 68, - VBI_DATA = 69, - VBI_TELETEXT = 70, - BOUQUET_NAME = 71, - SERVICE = 72, - COUNTRY_AVAILABILITY = 73, - LINKAGE = 74, - NVOD_REFERENCE = 75, - TIME_SHIFTED_SERVICE = 76, - SHORT_EVENT = 77, - EXTENDED_EVENT = 78, - TIME_SHIFTED_EVENT = 79, - COMPONENT = 80, - MOSAIC = 81, - STREAM_IDENTIFIER = 82, - CA_IDENTIFIER = 83, - CONTENT = 84, - PARENTAL_RATING = 85, - TELETEXT = 86, - TELEPHONE = 87, - LOCAL_TIME_OFFSET = 88, - SUBTITLING = 89, - TERRESTRIAL_DELIVERY_SYSTEM = 90, - MULTILINGUAL_NETWORK_NAME = 91, - MULTILINGUAL_BOUQUET_NAME = 92, - MULTILINGUAL_SERVICE_NAME = 93, - MULTILINGUAL_COMPONENT = 94, - PRIVATE_DATA_SPECIFIER = 95, - SERVICE_MOVE = 96, - SHORT_SMOOTHING_BUFFER = 97, - FREQUENCY_LIST = 98, - PARTIAL_TRANSPORT_STREAM = 99, - DATA_BROADCAST = 100, - SCRAMBLING = 101, - DATA_BROADCAST_ID = 102, - TRANSPORT_STREAM = 103, - DSNG = 104, - PDC = 105, - AC3 = 106, - ANCILLARY_DATA = 107, - CELL_LIST = 108, - CELL_FREQUENCY_LINK = 109, - ANNOUNCEMENT_SUPPORT = 110, - APPLICATION_SIGNALLING = 111, - ADAPTATION_FIELD_DATA = 112, - SERVICE_IDENTIFIER = 113, - SERVICE_AVAILABILITY = 114, - DEFAULT_AUTHORITY = 115, - RELATED_CONTENT = 116, - TVA_ID = 117, - CONTENT_IDENTIFIER = 118, - TIMESLICE_FEC_IDENTIFIER = 119, - ECM_REPETITION_RATE = 120, - S2_SATELLITE_DELIVERY_SYSTEM = 121, - ENHANCED_AC3 = 122, - DTS = 123, - AAC = 124, - XAIT_LOCATION = 125, - FTA_CONTENT_MANAGEMENT = 126, - EXTENSION = 127, -} -alias GstMpegtsDVBDescriptorType DVBDescriptorType; - -/** - * The type of #GstMpegtsDescriptor - * - * These values correspond to the registered extended descriptor - * type from the various DVB specifications. - * - * Consult the relevant specifications for more details. - */ -public enum GstMpegtsDVBExtendedDescriptorType -{ - IMAGE_ICON = 0, - CPCM_DELIVERY_SIGNALLING = 1, - CP = 2, - CP_IDENTIFIER = 3, - T2_DELIVERY_SYSTEM = 4, - SH_DELIVERY_SYSTEM = 5, - SUPPLEMENTARY_AUDIO = 6, - NETWORK_CHANGE_NOTIFY = 7, - MESSAGE = 8, - TARGET_REGION = 9, - TARGET_REGION_NAME = 10, - SERVICE_RELOCATED = 11, - XAIT_PID = 12, - C2_DELIVERY_SYSTEM = 13, - DTS_HD_AUDIO_STREAM = 14, - DTS_NEUTRAL = 15, - VIDEO_DEPTH_RANGE = 16, - T2MI = 17, - URI_LINKAGE = 19, - AC4 = 21, -} -alias GstMpegtsDVBExtendedDescriptorType DVBExtendedDescriptorType; - -public enum GstMpegtsDVBLinkageHandOverType -{ - RESERVED = 0, - IDENTICAL = 1, - LOCAL_VARIATION = 2, - ASSOCIATED = 3, -} -alias GstMpegtsDVBLinkageHandOverType DVBLinkageHandOverType; - -/** - * Linkage Type (EN 300 468 v.1.13.1) - */ -public enum GstMpegtsDVBLinkageType -{ - RESERVED_00 = 0, - INFORMATION = 1, - EPG = 2, - CA_REPLACEMENT = 3, - TS_CONTAINING_COMPLETE_SI = 4, - SERVICE_REPLACEMENT = 5, - DATA_BROADCAST = 6, - RCS_MAP = 7, - MOBILE_HAND_OVER = 8, - SYSTEM_SOFTWARE_UPDATE = 9, - TS_CONTAINING_SSU = 10, - IP_MAC_NOTIFICATION = 11, - TS_CONTAINING_INT = 12, - EVENT = 13, - EXTENDED_EVENT = 14, -} -alias GstMpegtsDVBLinkageType DVBLinkageType; - -public enum GstMpegtsDVBScramblingModeType -{ - RESERVED = 0, - CSA1 = 1, - CSA2 = 2, - CSA3_STANDARD = 3, - CSA3_MINIMAL_ENHANCED = 4, - CSA3_FULL_ENHANCED = 5, - CISSA = 16, - ATIS_0 = 112, - ATIS_F = 127, -} -alias GstMpegtsDVBScramblingModeType DVBScramblingModeType; - -/** - * The type of service of a channel. - * - * As specified in Table 87 of ETSI EN 300 468 v1.13.1 - */ -public enum GstMpegtsDVBServiceType -{ - RESERVED_00 = 0, - DIGITAL_TELEVISION = 1, - DIGITAL_RADIO_SOUND = 2, - TELETEXT = 3, - NVOD_REFERENCE = 4, - NVOD_TIME_SHIFTED = 5, - MOSAIC = 6, - FM_RADIO = 7, - DVB_SRM = 8, - RESERVED_09 = 9, - ADVANCED_CODEC_DIGITAL_RADIO_SOUND = 10, - ADVANCED_CODEC_MOSAIC = 11, - DATA_BROADCAST = 12, - RESERVED_0D_COMMON_INTERFACE = 13, - RCS_MAP = 14, - RCS_FLS = 15, - DVB_MHP = 16, - MPEG2_HD_DIGITAL_TELEVISION = 17, - ADVANCED_CODEC_SD_DIGITAL_TELEVISION = 22, - ADVANCED_CODEC_SD_NVOD_TIME_SHIFTED = 23, - ADVANCED_CODEC_SD_NVOD_REFERENCE = 24, - ADVANCED_CODEC_HD_DIGITAL_TELEVISION = 25, - ADVANCED_CODEC_HD_NVOD_TIME_SHIFTED = 26, - ADVANCED_CODEC_HD_NVOD_REFERENCE = 27, - ADVANCED_CODEC_STEREO_HD_DIGITAL_TELEVISION = 28, - ADVANCED_CODEC_STEREO_HD_NVOD_TIME_SHIFTED = 29, - ADVANCED_CODEC_STEREO_HD_NVOD_REFERENCE = 30, - RESERVED_FF = 31, -} -alias GstMpegtsDVBServiceType DVBServiceType; - -/** - * The type of teletext page. - * - * As specified in Table 100 of ETSI EN 300 468 v1.13.1 - */ -public enum GstMpegtsDVBTeletextType -{ - NITIAL_PAGE = 1, - UBTITLE_PAGE = 2, - DDITIONAL_INFO_PAGE = 3, - ROGRAMME_SCHEDULE_PAGE = 4, - EARING_IMPAIRED_PAGE = 5, -} -alias GstMpegtsDVBTeletextType DVBTeletextType; - -/** - * The type of #GstMpegtsDescriptor - * - * These values correspond to the registered descriptor type from - * the base MPEG-TS specifications (ITU H.222.0 | ISO/IEC 13818-1). - * - * Consult the relevant specifications for more details. - */ -public enum GstMpegtsDescriptorType -{ - RESERVED_00 = 0, - RESERVED_01 = 1, - VIDEO_STREAM = 2, - AUDIO_STREAM = 3, - HIERARCHY = 4, - REGISTRATION = 5, - DATA_STREAM_ALIGNMENT = 6, - TARGET_BACKGROUND_GRID = 7, - VIDEO_WINDOW = 8, - CA = 9, - ISO_639_LANGUAGE = 10, - SYSTEM_CLOCK = 11, - MULTIPLEX_BUFFER_UTILISATION = 12, - COPYRIGHT = 13, - MAXIMUM_BITRATE = 14, - PRIVATE_DATA_INDICATOR = 15, - SMOOTHING_BUFFER = 16, - STD = 17, - IBP = 18, - DSMCC_CAROUSEL_IDENTIFIER = 19, - DSMCC_ASSOCIATION_TAG = 20, - DSMCC_DEFERRED_ASSOCIATION_TAG = 21, - DSMCC_NPT_REFERENCE = 23, - DSMCC_NPT_ENDPOINT = 24, - DSMCC_STREAM_MODE = 25, - DSMCC_STREAM_EVENT = 26, - MPEG4_VIDEO = 27, - MPEG4_AUDIO = 28, - IOD = 29, - SL = 30, - FMC = 31, - EXTERNAL_ES_ID = 32, - MUX_CODE = 33, - FMX_BUFFER_SIZE = 34, - MULTIPLEX_BUFFER = 35, - CONTENT_LABELING = 36, - METADATA_POINTER = 37, - METADATA = 38, - METADATA_STD = 39, - AVC_VIDEO = 40, - IPMP = 41, - AVC_TIMING_AND_HRD = 42, - MPEG2_AAC_AUDIO = 43, - FLEX_MUX_TIMING = 44, - MPEG4_TEXT = 45, - MPEG4_AUDIO_EXTENSION = 46, - AUXILIARY_VIDEO_STREAM = 47, - SVC_EXTENSION = 48, - MVC_EXTENSION = 49, - J2K_VIDEO = 50, - MVC_OPERATION_POINT = 51, - MPEG2_STEREOSCOPIC_VIDEO_FORMAT = 52, - STEREOSCOPIC_PROGRAM_INFO = 53, - STEREOSCOPIC_VIDEO_INFO = 54, -} -alias GstMpegtsDescriptorType DescriptorType; - -/** - * These values correspond to the registered descriptor type from - * the various ISDB specifications. - * - * Consult the relevant specifications for more details. - */ -public enum GstMpegtsISDBDescriptorType -{ - HIERARCHICAL_TRANSMISSION = 192, - DIGITAL_COPY_CONTROL = 193, - NETWORK_IDENTIFICATION = 194, - PARTIAL_TS_TIME = 195, - AUDIO_COMPONENT = 196, - HYPERLINK = 197, - TARGET_REGION = 198, - DATA_CONTENT = 199, - VIDEO_DECODE_CONTROL = 200, - DOWNLOAD_CONTENT = 201, - CA_EMM_TS = 202, - CA_CONTRACT_INFORMATION = 203, - CA_SERVICE = 204, - TS_INFORMATION = 205, - EXTENDED_BROADCASTER = 206, - LOGO_TRANSMISSION = 207, - BASIC_LOCAL_EVENT = 208, - REFERENCE = 209, - NODE_RELATION = 210, - SHORT_NODE_INFORMATION = 211, - STC_REFERENCE = 212, - SERIES = 213, - EVENT_GROUP = 214, - SI_PARAMETER = 215, - BROADCASTER_NAME = 216, - COMPONENT_GROUP = 217, - SI_PRIME_TS = 218, - BOARD_INFORMATION = 219, - LDT_LINKAGE = 220, - CONNECTED_TRANSMISSION = 221, - CONTENT_AVAILABILITY = 222, - SERVICE_GROUP = 224, -} -alias GstMpegtsISDBDescriptorType ISDBDescriptorType; - -public enum GstMpegtsIso639AudioType -{ - UNDEFINED = 0, - CLEAN_EFFECTS = 1, - HEARING_IMPAIRED = 2, - VISUAL_IMPAIRED_COMMENTARY = 3, -} -alias GstMpegtsIso639AudioType Iso639AudioType; - -/** - * The type of #GstMpegtsDescriptor - * - * These values correspond to miscellaneous descriptor types that are - * not yet identified from known specifications. - */ -public enum GstMpegtsMiscDescriptorType -{ - AC3_AUDIO_STREAM = 129, - DTG_LOGICAL_CHANNEL = 131, -} -alias GstMpegtsMiscDescriptorType MiscDescriptorType; - -public enum GstMpegtsModulationType -{ - QPSK = 0, - QAM_16 = 1, - QAM_32 = 2, - QAM_64 = 3, - QAM_128 = 4, - QAM_256 = 5, - QAM_AUTO = 6, - VSB_8 = 7, - VSB_16 = 8, - PSK_8 = 9, - APSK_16 = 10, - APSK_32 = 11, - DQPSK = 12, - QAM_4_NR_ = 13, - NONE = 14, -} -alias GstMpegtsModulationType ModulationType; - -/** - * Running status of a service. - * - * Corresponds to table 6 of ETSI EN 300 468 (v1.13.0) - */ -public enum GstMpegtsRunningStatus -{ - UNDEFINED = 0, - NOT_RUNNING = 1, - STARTS_IN_FEW_SECONDS = 2, - PAUSING = 3, - RUNNING = 4, - OFF_AIR = 5, -} -alias GstMpegtsRunningStatus RunningStatus; - -public enum GstMpegtsSCTESpliceCommandType -{ - NULL = 0, - SCHEDULE = 4, - INSERT = 5, - TIME = 6, - BANDWIDTH = 7, - PRIVATE = 255, -} -alias GstMpegtsSCTESpliceCommandType SCTESpliceCommandType; - -public enum GstMpegtsSCTESpliceDescriptor -{ - AVAIL = 0, - DTMF = 1, - SEGMENTATION = 2, - TIME = 3, - AUDIO = 4, -} -alias GstMpegtsSCTESpliceDescriptor SCTESpliceDescriptor; - -public enum GstMpegtsSatellitePolarizationType -{ - LINEAR_HORIZONTAL = 0, - LINEAR_VERTICAL = 1, - CIRCULAR_LEFT = 2, - CIRCULAR_RIGHT = 3, -} -alias GstMpegtsSatellitePolarizationType SatellitePolarizationType; - -public enum GstMpegtsSatelliteRolloff -{ - _35 = 0, - _20 = 1, - _25 = 2, - RESERVED = 3, - AUTO = 4, -} -alias GstMpegtsSatelliteRolloff SatelliteRolloff; - -/** - * Type of mpeg-ts streams for SCTE - */ -public enum GstMpegtsScteStreamType -{ - /** - * SCTE-27 Subtitling - */ - SUBTITLING = 130, - /** - * SCTE-19 Isochronous data - */ - ISOCH_DATA = 131, - /** - * SCTE-35 Splice Information Table - */ - SIT = 134, - /** - * SCTE-07 Data Service or - * Network Resource Table - */ - DST_NRT = 149, - /** - * Type B - DSM-CC Data Carousel - * [IEC 13818-6]) - */ - DSMCC_DCB = 176, - /** - * Enhanced Television Application - * Signaling (OC-SP-ETV-AM1.0.1-120614) - */ - SIGNALING = 192, - /** - * SCTE-07 Synchronous data - */ - SYNC_DATA = 194, - /** - * SCTE-53 Asynchronous data - */ - ASYNC_DATA = 195, -} -alias GstMpegtsScteStreamType ScteStreamType; - -/** - * Values for a #GstMpegtsSection table_id. - * - * These are the registered ATSC table_id variants. - * - * see also: #GstMpegtsSectionTableID - */ -public enum GstMpegtsSectionATSCTableID -{ - MASTER_GUIDE = 199, - TERRESTRIAL_VIRTUAL_CHANNEL = 200, - CABLE_VIRTUAL_CHANNEL = 201, - RATING_REGION = 202, - EVENT_INFORMATION = 203, - CHANNEL_OR_EVENT_EXTENDED_TEXT = 204, - SYSTEM_TIME = 205, - DATA_EVENT = 206, - DATA_SERVICE = 207, - NETWORK_RESOURCE = 209, - LONG_TERM_SERVICE = 210, - DIRECTED_CHANNEL_CHANGE = 211, - DIRECTED_CHANNEL_CHANGE_SECTION_CODE = 212, - AGGREGATE_EVENT_INFORMATION = 214, - AGGREGATE_EXTENDED_TEXT = 215, - AGGREGATE_DATA_EVENT = 217, - SATELLITE_VIRTUAL_CHANNEL = 218, -} -alias GstMpegtsSectionATSCTableID SectionATSCTableID; - -/** - * Values for a #GstMpegtsSection table_id. - * - * These are the registered DVB table_id variants. - * - * see also: #GstMpegtsSectionTableID - */ -public enum GstMpegtsSectionDVBTableID -{ - NETWORK_INFORMATION_ACTUAL_NETWORK = 64, - NETWORK_INFORMATION_OTHER_NETWORK = 65, - SERVICE_DESCRIPTION_ACTUAL_TS = 66, - SERVICE_DESCRIPTION_OTHER_TS = 70, - BOUQUET_ASSOCIATION = 74, - EVENT_INFORMATION_ACTUAL_TS_PRESENT = 78, - EVENT_INFORMATION_OTHER_TS_PRESENT = 79, - EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_1 = 80, - EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_N = 95, - EVENT_INFORMATION_OTHER_TS_SCHEDULE_1 = 96, - EVENT_INFORMATION_OTHER_TS_SCHEDULE_N = 111, - TIME_DATE = 112, - RUNNING_STATUS = 113, - STUFFING = 114, - TIME_OFFSET = 115, - APPLICATION_INFORMATION_TABLE = 116, - CONTAINER = 117, - RELATED_CONTENT = 118, - CONTENT_IDENTIFIER = 119, - MPE_FEC = 120, - RESOLUTION_NOTIFICATION = 121, - MPE_IFEC = 122, - DISCONTINUITY_INFORMATION = 126, - SELECTION_INFORMATION = 127, - CA_MESSAGE_ECM_0 = 128, - CA_MESSAGE_ECM_1 = 129, - CA_MESSAGE_SYSTEM_PRIVATE_1 = 130, - CA_MESSAGE_SYSTEM_PRIVATE_N = 143, - SCT = 160, - FCT = 161, - TCT = 162, - SPT = 163, - CMT = 164, - TBTP = 165, - PCR_PACKET_PAYLOAD = 166, - TRANSMISSION_MODE_SUPPORT_PAYLOAD = 170, - TIM = 176, - LL_FEC_PARITY_DATA_TABLE = 177, -} -alias GstMpegtsSectionDVBTableID SectionDVBTableID; - -/** - * Values for a #GstMpegtsSection table_id. - * - * These are the registered SCTE table_id variants. - * - * see also: #GstMpegtsSectionTableID - */ -public enum GstMpegtsSectionSCTETableID -{ - /** - * SCTE-18 Emergency Alert System - */ - EAS = 216, - /** - * CL-SP-ETV-AM 1.0.1 EBIF message - */ - EBIF = 224, - RESERVED = 225, - /** - * CL-SP-ETV-AM 1.0.1 EBIF Int. Signaling Sect. - */ - EISS = 226, - /** - * CL-SP-ETV-AM 1.0.1 DSMCC DII message - */ - DII = 227, - /** - * CL-SP-ETV-AM 1.0.1 DSMCC Data Download Block - */ - DDB = 228, - /** - * SCTE-35 splice information is carried in a - * section stream on a separate PID in the program’s Map Table (PMT) allowing - * Splice Event notifications to remain associated with the program and pass - * through multiplexers. - */ - SPLICE = 252, -} -alias GstMpegtsSectionSCTETableID SectionSCTETableID; - -/** - * Values for a #GstMpegtsSection table_id - * - * These are the registered ITU H.222.0 | ISO/IEC 13818-1 table_id variants. - * - * see also #GstMpegtsSectionATSCTableID, #GstMpegtsSectionDVBTableID, and - * #GstMpegtsSectionSCTETableID - */ -public enum GstMpegtsSectionTableID -{ - PROGRAM_ASSOCIATION = 0, - CONDITIONAL_ACCESS = 1, - TS_PROGRAM_MAP = 2, - TS_DESCRIPTION = 3, - _14496_SCENE_DESCRIPTION = 4, - _14496_OBJET_DESCRIPTOR = 5, - METADATA = 6, - IPMP_CONTROL_INFORMATION = 7, - DSM_CC_MULTIPROTO_ENCAPSULATED_DATA = 58, - DSM_CC_U_N_MESSAGES = 59, - DSM_CC_DOWNLOAD_DATA_MESSAGES = 60, - DSM_CC_STREAM_DESCRIPTORS = 61, - DSM_CC_PRIVATE_DATA = 62, - DSM_CC_ADDRESSABLE_SECTIONS = 63, - UNSET = 255, -} -alias GstMpegtsSectionTableID SectionTableID; - -/** - * Types of #GstMpegtsSection that the library handles. - */ -public enum GstMpegtsSectionType -{ - /** - * Unknown section type - */ - UNKNOWN = 0, - /** - * Program Association Table (ISO/IEC 13818-1) - */ - PAT = 1, - /** - * Program Map Table (ISO/IEC 13818-1) - */ - PMT = 2, - /** - * Conditional Access Table (ISO/IEC 13818-1) - */ - CAT = 3, - /** - * Transport Stream Description Table (ISO/IEC 13818-1) - */ - TSDT = 4, - /** - * Event Information Table (EN 300 468) - */ - EIT = 5, - /** - * Network Information Table (ISO/IEC 13818-1 / EN 300 468) - */ - NIT = 6, - /** - * Bouquet Association Table ((EN 300 468) - */ - BAT = 7, - /** - * Service Description Table (EN 300 468) - */ - SDT = 8, - /** - * Time and Date Table (EN 300 468) - */ - TDT = 9, - /** - * Time Offset Table (EN 300 468) - */ - TOT = 10, - /** - * ATSC Terrestrial Virtual Channel Table (A65) - */ - ATSC_TVCT = 11, - /** - * ATSC Cable Virtual Channel Table (A65) - */ - ATSC_CVCT = 12, - /** - * ATSC Master Guide Table (A65) - */ - ATSC_MGT = 13, - /** - * ATSC Extended Text Table (A65) - */ - ATSC_ETT = 14, - /** - * ATSC Event Information Table (A65) - */ - ATSC_EIT = 15, - /** - * ATSC System Time Table (A65) - */ - ATSC_STT = 16, - ATSC_RRT = 17, - /** - * SCTE Splice Information Table (SCTE-35) - */ - SCTE_SIT = 18, -} -alias GstMpegtsSectionType SectionType; - -/** - * Type of mpeg-ts stream type. - * - * These values correspond to the base standard registered types. Depending - * on the variant of mpeg-ts being used (Bluray, ATSC, DVB, ...), other - * types might also be used, but will not conflict with these. - * - * Corresponds to table 2-34 of ITU H.222.0 | ISO/IEC 13818-1 - */ -public enum GstMpegtsStreamType -{ - /** - * ITU-T | ISO/IEC Reserved - */ - RESERVED_00 = 0, - /** - * ISO/IEC 11172-2 Video - */ - VIDEO_MPEG1 = 1, - /** - * Rec. ITU-T H.262 | ISO/IEC 13818-2 - * Video or ISO/IEC 11172-2 constrained parameter video stream - */ - VIDEO_MPEG2 = 2, - /** - * ISO/IEC 11172-3 Audio - */ - AUDIO_MPEG1 = 3, - /** - * ISO/IEC 13818-3 Audio - */ - AUDIO_MPEG2 = 4, - /** - * private sections - */ - PRIVATE_SECTIONS = 5, - /** - * PES packets containing private data - */ - PRIVATE_PES_PACKETS = 6, - /** - * ISO/IEC 13522 MHEG - */ - MHEG = 7, - /** - * Annex A DSM-CC - */ - DSM_CC = 8, - /** - * Rec. ITU-T H.222.1 - */ - H_222_1 = 9, - /** - * ISO/IEC 13818-6 type A - */ - DSMCC_A = 10, - /** - * ISO/IEC 13818-6 type B - */ - DSMCC_B = 11, - /** - * ISO/IEC 13818-6 type C - */ - DSMCC_C = 12, - /** - * ISO/IEC 13818-6 type D - */ - DSMCC_D = 13, - /** - * auxiliary streams - */ - AUXILIARY = 14, - /** - * ISO/IEC 13818-7 Audio with ADTS - * transport syntax - */ - AUDIO_AAC_ADTS = 15, - /** - * ISO/IEC 14496-2 Visual - */ - VIDEO_MPEG4 = 16, - /** - * ISO/IEC 14496-3 Audio with the LATM - * transport syntax as defined in ISO/IEC 14496-3 - */ - AUDIO_AAC_LATM = 17, - /** - * ISO/IEC 14496-1 - * SL-packetized stream or FlexMux stream carried in PES packets - */ - SL_FLEXMUX_PES_PACKETS = 18, - /** - * ISO/IEC 14496-1 SL-packetized - * stream or FlexMux stream carried in ISO/IEC 14496_sections - */ - SL_FLEXMUX_SECTIONS = 19, - /** - * ISO/IEC 13818-6 Synchronized - * Download Protocol - */ - SYNCHRONIZED_DOWNLOAD = 20, - /** - * Metadata carried in PES packets - */ - METADATA_PES_PACKETS = 21, - /** - * Metadata carried in metadata_sections - */ - METADATA_SECTIONS = 22, - /** - * Metadata carried in ISO/IEC - * 13818-6 Data Carousel - */ - METADATA_DATA_CAROUSEL = 23, - /** - * Metadata carried in - * ISO/IEC 13818-6 Object Carousel - */ - METADATA_OBJECT_CAROUSEL = 24, - /** - * Metadata carried in - * ISO/IEC 13818-6 Synchronized Download Protocol - */ - METADATA_SYNCHRONIZED_DOWNLOAD = 25, - /** - * IPMP stream (defined in ISO/IEC 13818-11, - * MPEG-2 IPMP) - */ - MPEG2_IPMP = 26, - /** - * AVC video stream conforming to one or - * more profiles defined in Annex A of Rec. ITU-T H.264 | ISO/IEC 14496-10 or - * AVC video sub-bitstream of SVC as defined in 2.1.78 or MVC base view - * sub-bitstream, as defined in 2.1.85, or AVC video sub-bitstream of MVC, as - * defined in 2.1.88 - */ - VIDEO_H264 = 27, - /** - * ISO/IEC 14496-3 Audio, without - * using any additional transport syntax, such as DST, ALS and SLS - */ - AUDIO_AAC_CLEAN = 28, - /** - * ISO/IEC 14496-17 Text - */ - MPEG4_TIMED_TEXT = 29, - /** - * Auxiliary video stream as defined in - * ISO/IEC 23002-3 - */ - VIDEO_RVC = 30, - /** - * SVC video sub-bitstream - * of an AVC video stream conforming to one or more profiles defined in Annex G - * of Rec. ITU-T H.264 | ISO/IEC 14496-10 - */ - VIDEO_H264_SVC_SUB_BITSTREAM = 31, - /** - * MVC video sub-bitstream - * of an AVC video stream conforming to one or more profiles defined in Annex H - * of Rec. ITU-T H.264 | ISO/IEC 14496-10 - */ - VIDEO_H264_MVC_SUB_BITSTREAM = 32, - /** - * Video stream conforming to one or more - * profiles as defined in Rec. ITU-T T.800 | ISO/IEC 15444-1 - */ - VIDEO_JP2K = 33, - /** - * Additional view - * Rec. ITU-T H.262 | ISO/IEC 13818-2 video stream for service-compatible - * stereoscopic 3D services - */ - VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW = 34, - /** - * Additional view - * Rec. ITU-T H.264 | ISO/IEC 14496-10 video stream conforming to one or more - * profiles defined in Annex A for service-compatible stereoscopic 3D services - */ - VIDEO_H264_STEREO_ADDITIONAL_VIEW = 35, - VIDEO_HEVC = 36, - /** - * IPMP stream - */ - IPMP_STREAM = 127, -} -alias GstMpegtsStreamType StreamType; - -public enum GstMpegtsTerrestrialGuardInterval -{ - _1_32 = 0, - _1_16 = 1, - _1_8 = 2, - _1_4 = 3, - AUTO = 4, - _1_128 = 5, - _19_128 = 6, - _19_256 = 7, - PN420 = 8, - PN595 = 9, - PN945 = 10, -} -alias GstMpegtsTerrestrialGuardInterval TerrestrialGuardInterval; - -public enum GstMpegtsTerrestrialHierarchy -{ - NONE = 0, - _1 = 1, - _2 = 2, - _4 = 3, - AUTO = 4, -} -alias GstMpegtsTerrestrialHierarchy TerrestrialHierarchy; - -public enum GstMpegtsTerrestrialTransmissionMode -{ - _2K = 0, - _8K = 1, - AUTO = 2, - _4K = 3, - _1K = 4, - _16K = 5, - _32K = 6, - C1 = 7, - C3780 = 8, -} -alias GstMpegtsTerrestrialTransmissionMode TerrestrialTransmissionMode; - -/** - * Event Information Table (ATSC) - */ -struct GstMpegtsAtscEIT -{ - /** - * The source id - */ - ushort sourceId; - /** - * The protocol version - */ - ubyte protocolVersion; - /** - * Events - */ - GPtrArray* events; -} - -/** - * An ATSC EIT Event - */ -struct GstMpegtsAtscEITEvent -{ - /** - * The event id - */ - ushort eventId; - /** - * The start time - */ - uint startTime; - /** - * The etm location - */ - ubyte etmLocation; - /** - * The length in seconds - */ - uint lengthInSeconds; - /** - * the titles - */ - GPtrArray* titles; - /** - * descriptors - */ - GPtrArray* descriptors; -} - -/** - * Extended Text Table (ATSC) - */ -struct GstMpegtsAtscETT -{ - ushort ettTableIdExtension; - /** - * The protocol version - */ - ushort protocolVersion; - /** - * The etm id - */ - uint etmId; - /** - * List of texts - */ - GPtrArray* messages; -} - -struct GstMpegtsAtscMGT -{ - /** - * The protocol version - */ - ubyte protocolVersion; - /** - * The numbers of subtables - */ - ushort tablesDefined; - /** - * the tables - */ - GPtrArray* tables; - /** - * descriptors - */ - GPtrArray* descriptors; -} - -/** - * Source from a @GstMpegtsAtscMGT - */ -struct GstMpegtsAtscMGTTable -{ - /** - * #GstMpegtsAtscMGTTableType - */ - ushort tableType; - /** - * The packet ID - */ - ushort pid; - /** - * The version number - */ - ubyte versionNumber; - uint numberBytes; - /** - * descriptors - */ - GPtrArray* descriptors; -} - -struct GstMpegtsAtscMultString -{ - /** - * The ISO639 language code - */ - char[4] iso639Langcode; - GPtrArray* segments; -} - -struct GstMpegtsAtscRRT -{ - /** - * The protocol version - */ - ubyte protocolVersion; - /** - * the names - */ - GPtrArray* names; - /** - * the number of dimensions defined for this rating table - */ - ubyte dimensionsDefined; - /** - * A set of dimensions - */ - GPtrArray* dimensions; - /** - * descriptors - */ - GPtrArray* descriptors; -} - -struct GstMpegtsAtscRRTDimension -{ - GPtrArray* names; - bool graduatedScale; - ubyte valuesDefined; - GPtrArray* values; -} - -struct GstMpegtsAtscRRTDimensionValue -{ - /** - * the abbreviated ratings - */ - GPtrArray* abbrevRatings; - /** - * the ratings - */ - GPtrArray* ratings; -} - -struct GstMpegtsAtscSTT -{ - /** - * The protocol version - */ - ubyte protocolVersion; - /** - * The system time - */ - uint systemTime; - /** - * The GPS to UTC offset - */ - ubyte gpsUtcOffset; - bool dsStatus; - /** - * The day of month - */ - ubyte dsDayofmonth; - /** - * The hour - */ - ubyte dsHour; - /** - * descriptors - */ - GPtrArray* descriptors; - /** - * The UTC date and time - */ - GstDateTime* utcDatetime; -} - -struct GstMpegtsAtscStringSegment -{ - /** - * The compression type - */ - ubyte compressionType; - /** - * The mode - */ - ubyte mode; - /** - * The size of compressed data - */ - ubyte compressedDataSize; - /** - * The compressed data - */ - ubyte* compressedData; - char* cachedString; -} - -/** - * Represents both: - * Terrestrial Virtual Channel Table (A65) - * Cable Virtual Channel Table (A65) - */ -struct GstMpegtsAtscVCT -{ - /** - * The transport stream - */ - ushort transportStreamId; - /** - * The protocol version - */ - ubyte protocolVersion; - /** - * sources - */ - GPtrArray* sources; - /** - * descriptors - */ - GPtrArray* descriptors; -} - -/** - * Source from a @GstMpegtsAtscVCT, can be used both for TVCT and CVCT tables - */ -struct GstMpegtsAtscVCTSource -{ - /** - * The short name of a source - */ - char* shortName; - /** - * The major channel number - */ - ushort majorChannelNumber; - /** - * The minor channel number - */ - ushort minorChannelNumber; - /** - * The modulation mode - */ - ubyte modulationMode; - /** - * The carrier frequency - */ - uint carrierFrequency; - /** - * The transport stream ID - */ - ushort channelTSID; - /** - * The program number (see #GstMpegtsPatProgram) - */ - ushort programNumber; - /** - * The ETM location - */ - ubyte ETMLocation; - /** - * is access controlled - */ - bool accessControlled; - /** - * is hidden - */ - bool hidden; - /** - * is path select, CVCT only - */ - bool pathSelect; - /** - * is out of band, CVCT only - */ - bool outOfBand; - /** - * is hide guide - */ - bool hideGuide; - /** - * The service type - */ - ubyte serviceType; - /** - * The source id - */ - ushort sourceId; - /** - * an array of #GstMpegtsDescriptor - */ - GPtrArray* descriptors; -} - -/** - * DVB Bouquet Association Table (EN 300 468) - */ -struct GstMpegtsBAT -{ - GPtrArray* descriptors; - GPtrArray* streams; -} - -struct GstMpegtsBATStream -{ - ushort transportStreamId; - ushort originalNetworkId; - GPtrArray* descriptors; -} - -struct GstMpegtsCableDeliverySystemDescriptor -{ - /** - * the frequency in Hz (Hertz) - */ - uint frequency; - /** - * the outer FEC scheme used - */ - GstMpegtsCableOuterFECScheme outerFec; - /** - * Modulation scheme used - */ - GstMpegtsModulationType modulation; - /** - * Symbol rate (in symbols per second) - */ - uint symbolRate; - /** - * inner FEC scheme used - */ - GstMpegtsDVBCodeRate fecInner; -} - -struct GstMpegtsComponentDescriptor -{ - ubyte streamContent; - ubyte componentType; - ubyte componentTag; - char* languageCode; - char* text; -} - -struct GstMpegtsContent -{ - GstMpegtsContentNibbleHi contentNibble1; - ubyte contentNibble2; - ubyte userByte; -} - -struct GstMpegtsDVBLinkageDescriptor -{ - /** - * the transport id - */ - ushort transportStreamId; - /** - * the original network id - */ - ushort originalNetworkId; - /** - * the service id - */ - ushort serviceId; - /** - * the type which @linkage_data has - */ - GstMpegtsDVBLinkageType linkageType; - void* linkageData; - /** - * the length for @private_data_bytes - */ - ubyte privateDataLength; - /** - * additional data bytes - */ - ubyte* privateDataBytes; -} - -struct GstMpegtsDVBLinkageEvent -{ - ushort targetEventId; - bool targetListed; - bool eventSimulcast; -} - -struct GstMpegtsDVBLinkageExtendedEvent -{ - ushort targetEventId; - bool targetListed; - bool eventSimulcast; - ubyte linkType; - ubyte targetIdType; - bool originalNetworkIdFlag; - bool serviceIdFlag; - ushort userDefinedId; - ushort targetTransportStreamId; - ushort targetOriginalNetworkId; - ushort targetServiceId; -} - -struct GstMpegtsDVBLinkageMobileHandOver -{ - GstMpegtsDVBLinkageHandOverType handOverType; - bool originType; - ushort networkId; - ushort initialServiceId; -} - -struct GstMpegtsDVBParentalRatingItem -{ - char* countryCode; - ubyte rating; -} - -struct GstMpegtsDVBServiceListItem -{ - /** - * the id of a service - */ - ushort serviceId; - /** - * the type of a service - */ - GstMpegtsDVBServiceType type; -} - -struct GstMpegtsDataBroadcastDescriptor -{ - /** - * the data broadcast id - */ - ushort dataBroadcastId; - /** - * the component tag - */ - ubyte componentTag; - ubyte length; - /** - * the selector byte field - */ - ubyte* selectorBytes; - /** - * language of @text - */ - char* languageCode; - /** - * description of data broadcast - */ - char* text; -} - -struct GstMpegtsDescriptor -{ - /** - * the type of descriptor - */ - ubyte tag; - /** - * the extended type (if @descriptor_tag is 0x7f) - */ - ubyte tagExtension; - /** - * the length of the descriptor content (excluding tag/length field) - */ - ubyte length; - /** - * the full descriptor data (including tag, extension, length). The first - * two bytes are the @tag and @length. - */ - ubyte* data; - void*[4] GstReserved; -} - -/** - * a multilingual bouquet name entry - */ -struct GstMpegtsDvbMultilingualBouquetNameItem -{ - /** - * the ISO 639 language code - */ - char* languageCode; - /** - * the bouquet name - */ - char* bouquetName; -} - -struct GstMpegtsDvbMultilingualComponentItem -{ - /** - * the ISO 639 language code - */ - char* languageCode; - /** - * the component description - */ - char* description; -} - -/** - * a multilingual network name entry - */ -struct GstMpegtsDvbMultilingualNetworkNameItem -{ - /** - * the ISO 639 language code - */ - char* languageCode; - /** - * the network name - */ - char* networkName; -} - -/** - * a multilingual service name entry - */ -struct GstMpegtsDvbMultilingualServiceNameItem -{ - /** - * the ISO 639 language code - */ - char* languageCode; - /** - * the provider name - */ - char* providerName; - /** - * the service name - */ - char* serviceName; -} - -/** - * Event Information Table (EN 300 468) - */ -struct GstMpegtsEIT -{ - ushort transportStreamId; - ushort originalNetworkId; - ubyte segmentLastSectionNumber; - ubyte lastTableId; - bool actualStream; - bool presentFollowing; - /** - * List of events - */ - GPtrArray* events; -} - -/** - * Event from a @GstMpegtsEIT - */ -struct GstMpegtsEITEvent -{ - ushort eventId; - GstDateTime* startTime; - uint duration; - GstMpegtsRunningStatus runningStatus; - bool freeCAMode; - /** - * List of descriptors - */ - GPtrArray* descriptors; -} - -struct GstMpegtsExtendedEventDescriptor -{ - ubyte descriptorNumber; - ubyte lastDescriptorNumber; - /** - * NULL terminated language code. - */ - char* languageCode; - /** - * the #GstMpegtsExtendedEventItem - */ - GPtrArray* items; - char* text; -} - -struct GstMpegtsExtendedEventItem -{ - char* itemDescription; - char* item; -} - -struct GstMpegtsISO639LanguageDescriptor -{ - uint nbLanguage; - char*[64] language; - GstMpegtsIso639AudioType[64] audioType; -} - -struct GstMpegtsLogicalChannel -{ - ushort serviceId; - bool visibleService; - ushort logicalChannelNumber; -} - -struct GstMpegtsLogicalChannelDescriptor -{ - uint nbChannels; - GstMpegtsLogicalChannel[64] channels; -} - -struct GstMpegtsNIT -{ - /** - * Whether this NIT corresponds to the actual stream - */ - bool actualNetwork; - /** - * ID of the network that this NIT describes - */ - ushort networkId; - /** - * the global descriptors - */ - GPtrArray* descriptors; - /** - * the streams - */ - GPtrArray* streams; -} - -struct GstMpegtsNITStream -{ - ushort transportStreamId; - ushort originalNetworkId; - GPtrArray* descriptors; -} - -struct GstMpegtsPMT -{ - /** - * PID of the stream containing PCR - */ - ushort pcrPid; - ushort programNumber; - /** - * array of #GstMpegtsDescriptor - */ - GPtrArray* descriptors; - /** - * Array of #GstMpegtsPMTStream - */ - GPtrArray* streams; -} - -struct GstMpegtsPMTStream -{ - /** - * the type of stream. See #GstMpegtsStreamType - */ - ubyte streamType; - /** - * the PID of the stream - */ - ushort pid; - /** - * the descriptors of the - * stream - */ - GPtrArray* descriptors; -} - -struct GstMpegtsPatProgram -{ - /** - * the program number - */ - ushort programNumber; - /** - * the network of program map PID - */ - ushort networkOrProgramMapPID; -} - -struct GstMpegtsSCTESIT -{ - bool encryptedPacket; - ubyte encryptionAlgorithm; - ulong ptsAdjustment; - ubyte cwIndex; - ushort tier; - ushort spliceCommandLength; - GstMpegtsSCTESpliceCommandType spliceCommandType; - bool spliceTimeSpecified; - ulong spliceTime; - GPtrArray* splices; - GPtrArray* descriptors; -} - -struct GstMpegtsSCTESpliceEvent -{ - bool insertEvent; - uint spliceEventId; - bool spliceEventCancelIndicator; - bool outOfNetworkIndicator; - bool programSpliceFlag; - bool durationFlag; - bool spliceImmediateFlag; - bool programSpliceTimeSpecified; - ulong programSpliceTime; - bool breakDurationAutoReturn; - ulong breakDuration; - ushort uniqueProgramId; - ubyte availNum; - ubyte availsExpected; -} - -struct GstMpegtsSDT -{ - /** - * Network ID of the originating delivery system - */ - ushort originalNetworkId; - /** - * True if the table describes this transport stream - */ - bool actualTs; - /** - * ID of this transport stream - */ - ushort transportStreamId; - /** - * List of services - */ - GPtrArray* services; -} - -struct GstMpegtsSDTService -{ - /** - * The program number this table belongs to - */ - ushort serviceId; - /** - * EIT schedule information is present in this transport stream - */ - bool EITScheduleFlag; - /** - * EIT present/following information is present in this transport stream - */ - bool EITPresentFollowingFlag; - /** - * Status of this service - */ - GstMpegtsRunningStatus runningStatus; - /** - * True if one or more streams is controlled by a CA system - */ - bool freeCAMode; - /** - * List of descriptors - */ - GPtrArray* descriptors; -} - -/** - * Satellite Delivery System Descriptor (EN 300 468 v.1.13.1) - */ -struct GstMpegtsSatelliteDeliverySystemDescriptor -{ - /** - * the frequency in kHz (kiloHertz) - */ - uint frequency; - /** - * the orbital position in degrees - */ - float orbitalPosition; - /** - * If %TRUE, the satellite is in the eastern part of the orbit, - * else in the western part. - */ - bool westEast; - /** - * The polarization of the transmitted signal - */ - GstMpegtsSatellitePolarizationType polarization; - /** - * Roll-off factor used in DVB-S2 - */ - GstMpegtsSatelliteRolloff rollOff; - /** - * modulation system, %TRUE if DVB-S2, else DVB-S - */ - bool modulationSystem; - /** - * Modulation scheme used - */ - GstMpegtsModulationType modulationType; - /** - * Symbol rate (in symbols per second) - */ - uint symbolRate; - /** - * inner FEC scheme used - */ - GstMpegtsDVBCodeRate fecInner; -} - -struct GstMpegtsSection -{ - GstMiniObject parent; - /** - * The type of section - */ - GstMpegtsSectionType sectionType; - /** - * The pid on which this section was found - */ - ushort pid; - /** - * The table id of this section - */ - ubyte tableId; - /** - * This meaning differs per section. See the documentation - * of the parsed section type for the meaning of this field - */ - ushort subtableExtension; - /** - * Version of the section. - */ - ubyte versionNumber; - /** - * Applies to current/next stream or not - */ - bool currentNextIndicator; - /** - * Number of the section (if multiple) - */ - ubyte sectionNumber; - /** - * Number of the last expected section (if multiple) - */ - ubyte lastSectionNumber; - /** - * CRC - */ - uint crc; - ubyte* data; - uint sectionLength; - void** cachedParsed; - GDestroyNotify destroyParsed; - ulong offset; - bool shortSection; - GstMpegtsPacketizeFunc packetizer; - void*[4] GstReserved; -} - -struct GstMpegtsT2DeliverySystemCell -{ - /** - * id of the cell - */ - ushort cellId; - /** - * centre frequencies in Hz - */ - GArray* centreFrequencies; - GPtrArray* subCells; -} - -struct GstMpegtsT2DeliverySystemCellExtension -{ - /** - * id of the sub cell - */ - ubyte cellIdExtension; - /** - * centre frequency of the sub cell in Hz - */ - uint transposerFrequency; -} - -struct GstMpegtsT2DeliverySystemDescriptor -{ - ubyte plpId; - ushort t2SystemId; - ubyte sisoMiso; - uint bandwidth; - GstMpegtsTerrestrialGuardInterval guardInterval; - GstMpegtsTerrestrialTransmissionMode transmissionMode; - bool otherFrequency; - bool tfs; - GPtrArray* cells; -} - -/** - * Time Offset Table (EN 300 468) - */ -struct GstMpegtsTOT -{ - GstDateTime* utcTime; - /** - * List of descriptors - */ - GPtrArray* descriptors; -} - -/** - * Terrestrial Delivery System Descriptor (EN 300 468 v.1.13.1) - */ -struct GstMpegtsTerrestrialDeliverySystemDescriptor -{ - /** - * the frequency in Hz (Hertz) - */ - uint frequency; - /** - * the bandwidth in Hz (Hertz) - */ - uint bandwidth; - /** - * %TRUE High Priority %FALSE Low Priority - */ - bool priority; - /** - * %TRUE no time slicing %FALSE time slicing - */ - bool timeSlicing; - /** - * %TRUE no mpe-fec is used %FALSE mpe-fec is use - */ - bool mpeFec; - /** - * the constellation - */ - GstMpegtsModulationType constellation; - /** - * the hierarchy - */ - GstMpegtsTerrestrialHierarchy hierarchy; - GstMpegtsDVBCodeRate codeRateHp; - GstMpegtsDVBCodeRate codeRateLp; - GstMpegtsTerrestrialGuardInterval guardInterval; - GstMpegtsTerrestrialTransmissionMode transmissionMode; - /** - * %TRUE more frequency are use, else not - */ - bool otherFrequency; -} - -/** */ -public alias extern(C) int function(GstMpegtsSection* section) GstMpegtsPacketizeFunc; diff --git a/generated/gstreamer/gstinterfaces/VideoOverlay.d b/generated/gstreamer/gstinterfaces/VideoOverlay.d deleted file mode 100644 index 48f534006..000000000 --- a/generated/gstreamer/gstinterfaces/VideoOverlay.d +++ /dev/null @@ -1,469 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstinterfaces.VideoOverlay; - -private import gobject.ObjectClass; -private import gobject.ObjectG; -private import gobject.Value; -private import gstinterfaces.c.functions; -public import gstinterfaces.c.types; -private import gstreamer.Element; - - -/** - * The #GstVideoOverlay interface is used for 2 main purposes : - * - * * To get a grab on the Window where the video sink element is going to render. - * This is achieved by either being informed about the Window identifier that - * the video sink element generated, or by forcing the video sink element to use - * a specific Window identifier for rendering. - * * To force a redrawing of the latest video frame the video sink element - * displayed on the Window. Indeed if the #GstPipeline is in #GST_STATE_PAUSED - * state, moving the Window around will damage its content. Application - * developers will want to handle the Expose events themselves and force the - * video sink element to refresh the Window's content. - * - * Using the Window created by the video sink is probably the simplest scenario, - * in some cases, though, it might not be flexible enough for application - * developers if they need to catch events such as mouse moves and button - * clicks. - * - * Setting a specific Window identifier on the video sink element is the most - * flexible solution but it has some issues. Indeed the application needs to set - * its Window identifier at the right time to avoid internal Window creation - * from the video sink element. To solve this issue a #GstMessage is posted on - * the bus to inform the application that it should set the Window identifier - * immediately. Here is an example on how to do that correctly: - * |[ - * static GstBusSyncReply - * create_window (GstBus * bus, GstMessage * message, GstPipeline * pipeline) - * { - * // ignore anything but 'prepare-window-handle' element messages - * if (!gst_is_video_overlay_prepare_window_handle_message (message)) - * return GST_BUS_PASS; - * - * win = XCreateSimpleWindow (disp, root, 0, 0, 320, 240, 0, 0, 0); - * - * XSetWindowBackgroundPixmap (disp, win, None); - * - * XMapRaised (disp, win); - * - * XSync (disp, FALSE); - * - * gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (message)), - * win); - * - * gst_message_unref (message); - * - * return GST_BUS_DROP; - * } - * ... - * int - * main (int argc, char **argv) - * { - * ... - * bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); - * gst_bus_set_sync_handler (bus, (GstBusSyncHandler) create_window, pipeline, - * NULL); - * ... - * } - * ]| - * - * ## Two basic usage scenarios - * - * There are two basic usage scenarios: in the simplest case, the application - * uses #playbin or #playsink or knows exactly what particular element is used - * for video output, which is usually the case when the application creates - * the videosink to use (e.g. #xvimagesink, #ximagesink, etc.) itself; in this - * case, the application can just create the videosink element, create and - * realize the window to render the video on and then - * call gst_video_overlay_set_window_handle() directly with the XID or native - * window handle, before starting up the pipeline. - * As #playbin and #playsink implement the video overlay interface and proxy - * it transparently to the actual video sink even if it is created later, this - * case also applies when using these elements. - * - * In the other and more common case, the application does not know in advance - * what GStreamer video sink element will be used for video output. This is - * usually the case when an element such as #autovideosink is used. - * In this case, the video sink element itself is created - * asynchronously from a GStreamer streaming thread some time after the - * pipeline has been started up. When that happens, however, the video sink - * will need to know right then whether to render onto an already existing - * application window or whether to create its own window. This is when it - * posts a prepare-window-handle message, and that is also why this message needs - * to be handled in a sync bus handler which will be called from the streaming - * thread directly (because the video sink will need an answer right then). - * - * As response to the prepare-window-handle element message in the bus sync - * handler, the application may use gst_video_overlay_set_window_handle() to tell - * the video sink to render onto an existing window surface. At this point the - * application should already have obtained the window handle / XID, so it - * just needs to set it. It is generally not advisable to call any GUI toolkit - * functions or window system functions from the streaming thread in which the - * prepare-window-handle message is handled, because most GUI toolkits and - * windowing systems are not thread-safe at all and a lot of care would be - * required to co-ordinate the toolkit and window system calls of the - * different threads (Gtk+ users please note: prior to Gtk+ 2.18 - * `GDK_WINDOW_XID` was just a simple structure access, so generally fine to do - * within the bus sync handler; this macro was changed to a function call in - * Gtk+ 2.18 and later, which is likely to cause problems when called from a - * sync handler; see below for a better approach without `GDK_WINDOW_XID` - * used in the callback). - * - * ## GstVideoOverlay and Gtk+ - * - * |[ - * #include <gst/video/videooverlay.h> - * #include <gtk/gtk.h> - * #ifdef GDK_WINDOWING_X11 - * #include <gdk/gdkx.h> // for GDK_WINDOW_XID - * #endif - * #ifdef GDK_WINDOWING_WIN32 - * #include <gdk/gdkwin32.h> // for GDK_WINDOW_HWND - * #endif - * ... - * static guintptr video_window_handle = 0; - * ... - * static GstBusSyncReply - * bus_sync_handler (GstBus * bus, GstMessage * message, gpointer user_data) - * { - * // ignore anything but 'prepare-window-handle' element messages - * if (!gst_is_video_overlay_prepare_window_handle_message (message)) - * return GST_BUS_PASS; - * - * if (video_window_handle != 0) { - * GstVideoOverlay *overlay; - * - * // GST_MESSAGE_SRC (message) will be the video sink element - * overlay = GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (message)); - * gst_video_overlay_set_window_handle (overlay, video_window_handle); - * } else { - * g_warning ("Should have obtained video_window_handle by now!"); - * } - * - * gst_message_unref (message); - * return GST_BUS_DROP; - * } - * ... - * static void - * video_widget_realize_cb (GtkWidget * widget, gpointer data) - * { - * #if GTK_CHECK_VERSION(2,18,0) - * // Tell Gtk+/Gdk to create a native window for this widget instead of - * // drawing onto the parent widget. - * // This is here just for pedagogical purposes, GDK_WINDOW_XID will call - * // it as well in newer Gtk versions - * if (!gdk_window_ensure_native (widget->window)) - * g_error ("Couldn't create native window needed for GstVideoOverlay!"); - * #endif - * - * #ifdef GDK_WINDOWING_X11 - * { - * gulong xid = GDK_WINDOW_XID (gtk_widget_get_window (video_window)); - * video_window_handle = xid; - * } - * #endif - * #ifdef GDK_WINDOWING_WIN32 - * { - * HWND wnd = GDK_WINDOW_HWND (gtk_widget_get_window (video_window)); - * video_window_handle = (guintptr) wnd; - * } - * #endif - * } - * ... - * int - * main (int argc, char **argv) - * { - * GtkWidget *video_window; - * GtkWidget *app_window; - * ... - * app_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - * ... - * video_window = gtk_drawing_area_new (); - * g_signal_connect (video_window, "realize", - * G_CALLBACK (video_widget_realize_cb), NULL); - * gtk_widget_set_double_buffered (video_window, FALSE); - * ... - * // usually the video_window will not be directly embedded into the - * // application window like this, but there will be many other widgets - * // and the video window will be embedded in one of them instead - * gtk_container_add (GTK_CONTAINER (ap_window), video_window); - * ... - * // show the GUI - * gtk_widget_show_all (app_window); - * - * // realize window now so that the video window gets created and we can - * // obtain its XID/HWND before the pipeline is started up and the videosink - * // asks for the XID/HWND of the window to render onto - * gtk_widget_realize (video_window); - * - * // we should have the XID/HWND now - * g_assert (video_window_handle != 0); - * ... - * // set up sync handler for setting the xid once the pipeline is started - * bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); - * gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler, NULL, - * NULL); - * gst_object_unref (bus); - * ... - * gst_element_set_state (pipeline, GST_STATE_PLAYING); - * ... - * } - * ]| - * - * ## GstVideoOverlay and Qt - * - * |[ - * #include ; - * #include ; - * #include ; - * - * #include ; - * #include ; - * #include ; - * - * int main(int argc, char *argv[]) - * { - * if (!g_thread_supported ()) - * g_thread_init (NULL); - * - * gst_init (&argc, &argv); - * QApplication app(argc, argv); - * app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit ())); - * - * // prepare the pipeline - * - * GstElement *pipeline = gst_pipeline_new ("xvoverlay"); - * GstElement *src = gst_element_factory_make ("videotestsrc", NULL); - * GstElement *sink = gst_element_factory_make ("xvimagesink", NULL); - * gst_bin_add_many (GST_BIN (pipeline), src, sink, NULL); - * gst_element_link (src, sink); - * - * // prepare the ui - * - * QWidget window; - * window.resize(320, 240); - * window.show(); - * - * WId xwinid = window.winId(); - * gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (sink), xwinid); - * - * // run the pipeline - * - * GstStateChangeReturn sret = gst_element_set_state (pipeline, - * GST_STATE_PLAYING); - * if (sret == GST_STATE_CHANGE_FAILURE) { - * gst_element_set_state (pipeline, GST_STATE_NULL); - * gst_object_unref (pipeline); - * // Exit application - * QTimer::singleShot(0, QApplication::activeWindow(), SLOT(quit())); - * } - * - * int ret = app.exec(); - * - * window.hide(); - * gst_element_set_state (pipeline, GST_STATE_NULL); - * gst_object_unref (pipeline); - * - * return ret; - * } - * ]| - */ -public class VideoOverlay -{ - /** the main Gtk struct */ - protected GstVideoOverlay* gstVideoOverlay; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstVideoOverlay* getVideoOverlayStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstVideoOverlay; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstVideoOverlay; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstVideoOverlay* gstVideoOverlay, bool ownedRef = false) - { - this.gstVideoOverlay = gstVideoOverlay; - this.ownedRef = ownedRef; - } - - /** - * The Element parameter should usually be - * your videosink that you want to create your - * XOverlay with. - */ - public this(Element elem) - { - this( cast(GstVideoOverlay*)elem.getElementStruct() ); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_video_overlay_get_type(); - } - - /** - * This helper shall be used by classes implementing the #GstVideoOverlay - * interface that want the render rectangle to be controllable using - * properties. This helper will install "render-rectangle" property into the - * class. - * - * Params: - * oclass = The class on which the properties will be installed - * lastPropId = The first free property ID to use - * - * Since: 1.14 - */ - public static void installProperties(ObjectClass oclass, int lastPropId) - { - gst_video_overlay_install_properties((oclass is null) ? null : oclass.getObjectClassStruct(), lastPropId); - } - - /** - * This helper shall be used by classes implementing the #GstVideoOverlay - * interface that want the render rectangle to be controllable using - * properties. This helper will parse and set the render rectangle calling - * gst_video_overlay_set_render_rectangle(). - * - * Params: - * object = The instance on which the property is set - * lastPropId = The highest property ID. - * propertyId = The property ID - * value = The #GValue to be set - * - * Returns: %TRUE if the @property_id matches the GstVideoOverlay property - * - * Since: 1.14 - */ - public static bool setProperty(ObjectG object, int lastPropId, uint propertyId, Value value) - { - return gst_video_overlay_set_property((object is null) ? null : object.getObjectGStruct(), lastPropId, propertyId, (value is null) ? null : value.getValueStruct()) != 0; - } - - /** - * Tell an overlay that it has been exposed. This will redraw the current frame - * in the drawable even if the pipeline is PAUSED. - */ - public void expose() - { - gst_video_overlay_expose(getVideoOverlayStruct()); - } - - /** - * This will post a "have-window-handle" element message on the bus. - * - * This function should only be used by video overlay plugin developers. - * - * Params: - * handle = a platform-specific handle referencing the window - */ - public void gotWindowHandle(size_t handle) - { - gst_video_overlay_got_window_handle(getVideoOverlayStruct(), handle); - } - - /** - * Tell an overlay that it should handle events from the window system. These - * events are forwarded upstream as navigation events. In some window system, - * events are not propagated in the window hierarchy if a client is listening - * for them. This method allows you to disable events handling completely - * from the #GstVideoOverlay. - * - * Params: - * handleEvents = a #gboolean indicating if events should be handled or not. - */ - public void handleEvents(bool handleEvents) - { - gst_video_overlay_handle_events(getVideoOverlayStruct(), handleEvents); - } - - /** - * This will post a "prepare-window-handle" element message on the bus - * to give applications an opportunity to call - * gst_video_overlay_set_window_handle() before a plugin creates its own - * window. - * - * This function should only be used by video overlay plugin developers. - */ - public void prepareWindowHandle() - { - gst_video_overlay_prepare_window_handle(getVideoOverlayStruct()); - } - - /** - * Configure a subregion as a video target within the window set by - * gst_video_overlay_set_window_handle(). If this is not used or not supported - * the video will fill the area of the window set as the overlay to 100%. - * By specifying the rectangle, the video can be overlayed to a specific region - * of that window only. After setting the new rectangle one should call - * gst_video_overlay_expose() to force a redraw. To unset the region pass -1 for - * the @width and @height parameters. - * - * This method is needed for non fullscreen video overlay in UI toolkits that - * do not support subwindows. - * - * Params: - * x = the horizontal offset of the render area inside the window - * y = the vertical offset of the render area inside the window - * width = the width of the render area inside the window - * height = the height of the render area inside the window - * - * Returns: %FALSE if not supported by the sink. - */ - public bool setRenderRectangle(int x, int y, int width, int height) - { - return gst_video_overlay_set_render_rectangle(getVideoOverlayStruct(), x, y, width, height) != 0; - } - - /** - * This will call the video overlay's set_window_handle method. You - * should use this method to tell to an overlay to display video output to a - * specific window (e.g. an XWindow on X11). Passing 0 as the @handle will - * tell the overlay to stop using that window and create an internal one. - * - * Params: - * handle = a handle referencing the window. - */ - public void setWindowHandle(size_t handle) - { - gst_video_overlay_set_window_handle(getVideoOverlayStruct(), handle); - } -} diff --git a/generated/gstreamer/gstinterfaces/c/functions.d b/generated/gstreamer/gstinterfaces/c/functions.d deleted file mode 100644 index d6351f74e..000000000 --- a/generated/gstreamer/gstinterfaces/c/functions.d +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstinterfaces.c.functions; - -import std.stdio; -import gstinterfaces.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GSTINTERFACES = ["libgstvideo-1.0-0.dll;gstvideo-1.0-0.dll;gstvideo-1.dll"]; -else version (OSX) - static immutable LIBRARY_GSTINTERFACES = ["libgstvideo-1.0.0.dylib"]; -else - static immutable LIBRARY_GSTINTERFACES = ["libgstvideo-1.0.so.0"]; - -shared static this() -{ - // gstinterfaces.VideoOverlay - - Linker.link(gst_video_overlay_get_type, "gst_video_overlay_get_type", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_install_properties, "gst_video_overlay_install_properties", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_set_property, "gst_video_overlay_set_property", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_expose, "gst_video_overlay_expose", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_got_window_handle, "gst_video_overlay_got_window_handle", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_handle_events, "gst_video_overlay_handle_events", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_prepare_window_handle, "gst_video_overlay_prepare_window_handle", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_set_render_rectangle, "gst_video_overlay_set_render_rectangle", LIBRARY_GSTINTERFACES); - Linker.link(gst_video_overlay_set_window_handle, "gst_video_overlay_set_window_handle", LIBRARY_GSTINTERFACES); -} - -__gshared extern(C) -{ - - // gstinterfaces.VideoOverlay - - GType function() c_gst_video_overlay_get_type; - void function(GObjectClass* oclass, int lastPropId) c_gst_video_overlay_install_properties; - int function(GObject* object, int lastPropId, uint propertyId, GValue* value) c_gst_video_overlay_set_property; - void function(GstVideoOverlay* overlay) c_gst_video_overlay_expose; - void function(GstVideoOverlay* overlay, size_t handle) c_gst_video_overlay_got_window_handle; - void function(GstVideoOverlay* overlay, int handleEvents) c_gst_video_overlay_handle_events; - void function(GstVideoOverlay* overlay) c_gst_video_overlay_prepare_window_handle; - int function(GstVideoOverlay* overlay, int x, int y, int width, int height) c_gst_video_overlay_set_render_rectangle; - void function(GstVideoOverlay* overlay, size_t handle) c_gst_video_overlay_set_window_handle; -} - - -// gstinterfaces.VideoOverlay - -alias c_gst_video_overlay_get_type gst_video_overlay_get_type; -alias c_gst_video_overlay_install_properties gst_video_overlay_install_properties; -alias c_gst_video_overlay_set_property gst_video_overlay_set_property; -alias c_gst_video_overlay_expose gst_video_overlay_expose; -alias c_gst_video_overlay_got_window_handle gst_video_overlay_got_window_handle; -alias c_gst_video_overlay_handle_events gst_video_overlay_handle_events; -alias c_gst_video_overlay_prepare_window_handle gst_video_overlay_prepare_window_handle; -alias c_gst_video_overlay_set_render_rectangle gst_video_overlay_set_render_rectangle; -alias c_gst_video_overlay_set_window_handle gst_video_overlay_set_window_handle; diff --git a/generated/gstreamer/gstinterfaces/c/types.d b/generated/gstreamer/gstinterfaces/c/types.d deleted file mode 100644 index c013fa6cb..000000000 --- a/generated/gstreamer/gstinterfaces/c/types.d +++ /dev/null @@ -1,741 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstinterfaces.c.types; - -public import gobject.c.types; - - -/** - * Enumeration of the different standards that may apply to AFD data: - * - * 0) ETSI/DVB: - * https://www.etsi.org/deliver/etsi_ts/101100_101199/101154/02.01.01_60/ts_101154v020101p.pdf - * - * 1) ATSC A/53: - * https://www.atsc.org/wp-content/uploads/2015/03/a_53-Part-4-2009.pdf - * - * 2) SMPTE ST2016-1: - * - * Since: 1.18 - */ -public enum GstVideoAFDSpec -{ - /** - * AFD value is from DVB/ETSI standard - */ - DVB_ETSI = 0, - /** - * AFD value is from ATSC A/53 standard - */ - ATSC_A53 = 1, - SMPTE_ST2016_1 = 2, -} -alias GstVideoAFDSpec VideoAFDSpec; - -/** - * Enumeration of the various values for Active Format Description (AFD) - * - * AFD should be included in video user data whenever the rectangular - * picture area containing useful information does not extend to the full height or width of the coded - * frame. AFD data may also be included in user data when the rectangular picture area containing - * useful information extends to the full height and width of the coded frame. - * - * For details, see Table 6.14 Active Format in: - * - * ATSC Digital Television Standard: - * Part 4 – MPEG-2 Video System Characteristics - * - * https://www.atsc.org/wp-content/uploads/2015/03/a_53-Part-4-2009.pdf - * - * and Active Format Description in Complete list of AFD codes - * - * https://en.wikipedia.org/wiki/Active_Format_Description#Complete_list_of_AFD_codes - * - * and SMPTE ST2016-1 - * - * Notes: - * - * 1) AFD 0 is undefined for ATSC and SMPTE ST2016-1, indicating that AFD data is not available: - * If Bar Data is not present, AFD '0000' indicates that exact information - * is not available and the active image should be assumed to be the same as the coded frame. AFD '0000'. - * AFD '0000' accompanied by Bar Data signals that the active image’s aspect ratio is narrower than 16:9, - * but is not 4:3 or 14:9. As the exact aspect ratio cannot be conveyed by AFD alone, wherever possible, - * AFD ‘0000’ should be accompanied by Bar Data to define the exact vertical or horizontal extent - * of the active image. - * 2) AFD 0 is reserved for DVB/ETSI - * 3) values 1, 5, 6, 7, and 12 are reserved for both ATSC and DVB/ETSI - * 4) values 2 and 3 are not recommended for ATSC, but are valid for DVB/ETSI - * - * Since: 1.18 - */ -public enum GstVideoAFDValue -{ - /** - * Unavailable (see note 0 below). - */ - UNAVAILABLE = 0, - /** - * For 4:3 coded frame, letterbox 16:9 image, - * at top of the coded frame. For 16:9 coded frame, full frame 16:9 image, - * the same as the coded frame. - */ - _16_9_TOP_ALIGNED = 2, - /** - * For 4:3 coded frame, letterbox 14:9 image, - * at top of the coded frame. For 16:9 coded frame, pillarbox 14:9 image, - * horizontally centered in the coded frame. - */ - _14_9_TOP_ALIGNED = 3, - /** - * For 4:3 coded frame, letterbox image with an aspect ratio - * greater than 16:9, vertically centered in the coded frame. For 16:9 coded frame, - * letterbox image with an aspect ratio greater than 16:9. - */ - GREATER_THAN_16_9 = 4, - /** - * For 4:3 coded frame, full frame 4:3 image, - * the same as the coded frame. For 16:9 coded frame, full frame 16:9 image, the same as - * the coded frame. - */ - _4_3_FULL_16_9_FULL = 8, - /** - * For 4:3 coded frame, full frame 4:3 image, the same as - * the coded frame. For 16:9 coded frame, pillarbox 4:3 image, horizontally centered in the - * coded frame. - */ - _4_3_FULL_4_3_PILLAR = 9, - /** - * For 4:3 coded frame, letterbox 16:9 image, vertically centered in - * the coded frame with all image areas protected. For 16:9 coded frame, full frame 16:9 image, - * with all image areas protected. - */ - _16_9_LETTER_16_9_FULL = 10, - /** - * For 4:3 coded frame, letterbox 14:9 image, vertically centered in - * the coded frame. For 16:9 coded frame, pillarbox 14:9 image, horizontally centered in the - * coded frame. - */ - _14_9_LETTER_14_9_PILLAR = 11, - /** - * For 4:3 coded frame, full frame 4:3 image, with alternative 14:9 - * center. For 16:9 coded frame, pillarbox 4:3 image, with alternative 14:9 center. - */ - _4_3_FULL_14_9_CENTER = 13, - /** - * For 4:3 coded frame, letterbox 16:9 image, with alternative 14:9 - * center. For 16:9 coded frame, full frame 16:9 image, with alternative 14:9 center. - */ - _16_9_LETTER_14_9_CENTER = 14, - /** - * For 4:3 coded frame, letterbox 16:9 image, with alternative 4:3 - * center. For 16:9 coded frame, full frame 16:9 image, with alternative 4:3 center. - */ - _16_9_LETTER_4_3_CENTER = 15, -} -alias GstVideoAFDValue VideoAFDValue; - -/** - * The different video orientation methods. - * - * Since: 1.10 - */ -public enum GstVideoOrientationMethod -{ - /** - * Identity (no rotation) - */ - IDENTITY = 0, - /** - * Rotate clockwise 90 degrees - */ - _90R = 1, - /** - * Rotate 180 degrees - */ - _180 = 2, - /** - * Rotate counter-clockwise 90 degrees - */ - _90L = 3, - /** - * Flip horizontally - */ - HORIZ = 4, - /** - * Flip vertically - */ - VERT = 5, - /** - * Flip across upper left/lower right diagonal - */ - UL_LR = 6, - /** - * Flip across upper right/lower left diagonal - */ - UR_LL = 7, - /** - * Select flip method based on image-orientation tag - */ - AUTO = 8, - /** - * Current status depends on plugin internal setup - */ - CUSTOM = 9, -} -alias GstVideoOrientationMethod VideoOrientationMethod; - -/** - * Flags related to the time code information. - * For drop frame, only 30000/1001 and 60000/1001 frame rates are supported. - * - * Since: 1.10 - */ -public enum GstVideoTimeCodeFlags -{ - /** - * No flags - */ - NONE = 0, - /** - * Whether we have drop frame rate - */ - DROP_FRAME = 1, - /** - * Whether we have interlaced video - */ - INTERLACED = 2, -} -alias GstVideoTimeCodeFlags VideoTimeCodeFlags; - -/** - * #GstVideoDirectionInterface interface. - * - * Since: 1.10 - */ -struct GstVideoDirectionInterface -{ - /** - * parent interface type. - */ - GTypeInterface iface; -} - -/** - * Used to represent display_primaries and white_point of - * #GstVideoMasteringDisplayInfo struct. See #GstVideoMasteringDisplayInfo - * - * Since: 1.18 - */ -struct GstVideoMasteringDisplayInfoCoordinates -{ - /** - * the x coordinate of CIE 1931 color space in unit of 0.00002. - */ - ushort x; - /** - * the y coordinate of CIE 1931 color space in unit of 0.00002. - */ - ushort y; -} - -struct GstVideoOverlay; - -/** - * #GstVideoOverlay interface - */ -struct GstVideoOverlayInterface -{ - /** - * parent interface type. - */ - GTypeInterface iface; - /** */ - extern(C) void function(GstVideoOverlay* overlay) expose; - /** */ - extern(C) void function(GstVideoOverlay* overlay, int handleEvents) handleEvents; - /** */ - extern(C) void function(GstVideoOverlay* overlay, int x, int y, int width, int height) setRenderRectangle; - /** */ - extern(C) void function(GstVideoOverlay* overlay, size_t handle) setWindowHandle; -} - -/** - * Supported frame rates: 30000/1001, 60000/1001 (both with and without drop - * frame), and integer frame rates e.g. 25/1, 30/1, 50/1, 60/1. - * - * The configuration of the time code. - * - * Since: 1.10 - */ -struct GstVideoTimeCodeConfig -{ - /** - * Numerator of the frame rate - */ - uint fpsN; - /** - * Denominator of the frame rate - */ - uint fpsD; - /** - * the corresponding #GstVideoTimeCodeFlags - */ - GstVideoTimeCodeFlags flags; - /** - * The latest daily jam information, if present, or NULL - */ - GDateTime* latestDailyJam; -} - -enum BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META = "GstBufferPoolOptionVideoAffineTransformation"; -alias GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META = BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META; - -/** - * A bufferpool option to enable extra padding. When a bufferpool supports this - * option, gst_buffer_pool_config_set_video_alignment() can be called. - * - * When this option is enabled on the bufferpool, - * #GST_BUFFER_POOL_OPTION_VIDEO_META should also be enabled. - */ -enum BUFFER_POOL_OPTION_VIDEO_ALIGNMENT = "GstBufferPoolOptionVideoAlignment"; -alias GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT = BUFFER_POOL_OPTION_VIDEO_ALIGNMENT; - -/** - * An option that can be activated on a bufferpool to request gl texture upload - * meta on buffers from the pool. - * - * When this option is enabled on the bufferpool, - * @GST_BUFFER_POOL_OPTION_VIDEO_META should also be enabled. - */ -enum BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META = "GstBufferPoolOptionVideoGLTextureUploadMeta"; -alias GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META = BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META; - -/** - * An option that can be activated on bufferpool to request video metadata - * on buffers from the pool. - */ -enum BUFFER_POOL_OPTION_VIDEO_META = "GstBufferPoolOptionVideoMeta"; -alias GST_BUFFER_POOL_OPTION_VIDEO_META = BUFFER_POOL_OPTION_VIDEO_META; - -/** - * Name of the caps feature indicating that the stream is interlaced. - * - * Currently it is only used for video with 'interlace-mode=alternate' - * to ensure backwards compatibility for this new mode. - * In this mode each buffer carries a single field of interlaced video. - * @GST_VIDEO_BUFFER_FLAG_TOP_FIELD and @GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD - * indicate whether the buffer carries a top or bottom field. The order of - * buffers/fields in the stream and the timestamps on the buffers indicate the - * temporal order of the fields. - * Top and bottom fields are expected to alternate in this mode. - * The frame rate in the caps still signals the frame rate, so the notional field - * rate will be twice the frame rate from the caps - * (see @GST_VIDEO_INFO_FIELD_RATE_N). - */ -enum CAPS_FEATURE_FORMAT_INTERLACED = "format:Interlaced"; -alias GST_CAPS_FEATURE_FORMAT_INTERLACED = CAPS_FEATURE_FORMAT_INTERLACED; - -enum CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META = "meta:GstVideoAffineTransformation"; -alias GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META = CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META; - -enum CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META = "meta:GstVideoGLTextureUploadMeta"; -alias GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META = CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META; - -enum CAPS_FEATURE_META_GST_VIDEO_META = "meta:GstVideoMeta"; -alias GST_CAPS_FEATURE_META_GST_VIDEO_META = CAPS_FEATURE_META_GST_VIDEO_META; - -enum CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION = "meta:GstVideoOverlayComposition"; -alias GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION = CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION; - -/** - * This metadata stays relevant as long as video colorspace is unchanged. - */ -enum META_TAG_VIDEO_COLORSPACE_STR = "colorspace"; -alias GST_META_TAG_VIDEO_COLORSPACE_STR = META_TAG_VIDEO_COLORSPACE_STR; - -/** - * This metadata stays relevant as long as video orientation is unchanged. - */ -enum META_TAG_VIDEO_ORIENTATION_STR = "orientation"; -alias GST_META_TAG_VIDEO_ORIENTATION_STR = META_TAG_VIDEO_ORIENTATION_STR; - -/** - * This metadata stays relevant as long as video size is unchanged. - */ -enum META_TAG_VIDEO_SIZE_STR = "size"; -alias GST_META_TAG_VIDEO_SIZE_STR = META_TAG_VIDEO_SIZE_STR; - -/** - * This metadata is relevant for video streams. - */ -enum META_TAG_VIDEO_STR = "video"; -alias GST_META_TAG_VIDEO_STR = META_TAG_VIDEO_STR; - -enum VIDEO_COLORIMETRY_BT2020 = "bt2020"; -alias GST_VIDEO_COLORIMETRY_BT2020 = VIDEO_COLORIMETRY_BT2020; - -enum VIDEO_COLORIMETRY_BT2020_10 = "bt2020-10"; -alias GST_VIDEO_COLORIMETRY_BT2020_10 = VIDEO_COLORIMETRY_BT2020_10; - -enum VIDEO_COLORIMETRY_BT2100_HLG = "bt2100-hlg"; -alias GST_VIDEO_COLORIMETRY_BT2100_HLG = VIDEO_COLORIMETRY_BT2100_HLG; - -enum VIDEO_COLORIMETRY_BT2100_PQ = "bt2100-pq"; -alias GST_VIDEO_COLORIMETRY_BT2100_PQ = VIDEO_COLORIMETRY_BT2100_PQ; - -enum VIDEO_COLORIMETRY_BT601 = "bt601"; -alias GST_VIDEO_COLORIMETRY_BT601 = VIDEO_COLORIMETRY_BT601; - -enum VIDEO_COLORIMETRY_BT709 = "bt709"; -alias GST_VIDEO_COLORIMETRY_BT709 = VIDEO_COLORIMETRY_BT709; - -enum VIDEO_COLORIMETRY_SMPTE240M = "smpte240m"; -alias GST_VIDEO_COLORIMETRY_SMPTE240M = VIDEO_COLORIMETRY_SMPTE240M; - -enum VIDEO_COLORIMETRY_SRGB = "sRGB"; -alias GST_VIDEO_COLORIMETRY_SRGB = VIDEO_COLORIMETRY_SRGB; - -enum VIDEO_COMP_A = 3; -alias GST_VIDEO_COMP_A = VIDEO_COMP_A; - -enum VIDEO_COMP_B = 2; -alias GST_VIDEO_COMP_B = VIDEO_COMP_B; - -enum VIDEO_COMP_G = 1; -alias GST_VIDEO_COMP_G = VIDEO_COMP_G; - -enum VIDEO_COMP_INDEX = 0; -alias GST_VIDEO_COMP_INDEX = VIDEO_COMP_INDEX; - -enum VIDEO_COMP_PALETTE = 1; -alias GST_VIDEO_COMP_PALETTE = VIDEO_COMP_PALETTE; - -enum VIDEO_COMP_R = 0; -alias GST_VIDEO_COMP_R = VIDEO_COMP_R; - -enum VIDEO_COMP_U = 1; -alias GST_VIDEO_COMP_U = VIDEO_COMP_U; - -enum VIDEO_COMP_V = 2; -alias GST_VIDEO_COMP_V = VIDEO_COMP_V; - -enum VIDEO_COMP_Y = 0; -alias GST_VIDEO_COMP_Y = VIDEO_COMP_Y; - -/** - * #GstVideoAlphaMode, the alpha mode to use. - * Default is #GST_VIDEO_ALPHA_MODE_COPY. - */ -enum VIDEO_CONVERTER_OPT_ALPHA_MODE = "GstVideoConverter.alpha-mode"; -alias GST_VIDEO_CONVERTER_OPT_ALPHA_MODE = VIDEO_CONVERTER_OPT_ALPHA_MODE; - -/** - * #G_TYPE_DOUBLE, the alpha color value to use. - * Default to 1.0 - */ -enum VIDEO_CONVERTER_OPT_ALPHA_VALUE = "GstVideoConverter.alpha-value"; -alias GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE = VIDEO_CONVERTER_OPT_ALPHA_VALUE; - -/** - * #G_TYPE_UINT, the border color to use if #GST_VIDEO_CONVERTER_OPT_FILL_BORDER - * is set to %TRUE. The color is in ARGB format. - * Default 0xff000000 - */ -enum VIDEO_CONVERTER_OPT_BORDER_ARGB = "GstVideoConverter.border-argb"; -alias GST_VIDEO_CONVERTER_OPT_BORDER_ARGB = VIDEO_CONVERTER_OPT_BORDER_ARGB; - -/** - * #GstVideoChromaMode, set the chroma resample mode subsampled - * formats. Default is #GST_VIDEO_CHROMA_MODE_FULL. - */ -enum VIDEO_CONVERTER_OPT_CHROMA_MODE = "GstVideoConverter.chroma-mode"; -alias GST_VIDEO_CONVERTER_OPT_CHROMA_MODE = VIDEO_CONVERTER_OPT_CHROMA_MODE; - -/** - * #GstVideoChromaMethod, The resampler method to use for - * chroma resampling. Other options for the resampler can be used, see - * the #GstVideoResampler. Default is #GST_VIDEO_RESAMPLER_METHOD_LINEAR - */ -enum VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD = "GstVideoConverter.chroma-resampler-method"; -alias GST_VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD = VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD; - -/** - * #G_TYPE_INT, height in the destination frame, default destination height - */ -enum VIDEO_CONVERTER_OPT_DEST_HEIGHT = "GstVideoConverter.dest-height"; -alias GST_VIDEO_CONVERTER_OPT_DEST_HEIGHT = VIDEO_CONVERTER_OPT_DEST_HEIGHT; - -/** - * #G_TYPE_INT, width in the destination frame, default destination width - */ -enum VIDEO_CONVERTER_OPT_DEST_WIDTH = "GstVideoConverter.dest-width"; -alias GST_VIDEO_CONVERTER_OPT_DEST_WIDTH = VIDEO_CONVERTER_OPT_DEST_WIDTH; - -/** - * #G_TYPE_INT, x position in the destination frame, default 0 - */ -enum VIDEO_CONVERTER_OPT_DEST_X = "GstVideoConverter.dest-x"; -alias GST_VIDEO_CONVERTER_OPT_DEST_X = VIDEO_CONVERTER_OPT_DEST_X; - -/** - * #G_TYPE_INT, y position in the destination frame, default 0 - */ -enum VIDEO_CONVERTER_OPT_DEST_Y = "GstVideoConverter.dest-y"; -alias GST_VIDEO_CONVERTER_OPT_DEST_Y = VIDEO_CONVERTER_OPT_DEST_Y; - -/** - * #GstVideoDitherMethod, The dither method to use when - * changing bit depth. - * Default is #GST_VIDEO_DITHER_BAYER. - */ -enum VIDEO_CONVERTER_OPT_DITHER_METHOD = "GstVideoConverter.dither-method"; -alias GST_VIDEO_CONVERTER_OPT_DITHER_METHOD = VIDEO_CONVERTER_OPT_DITHER_METHOD; - -/** - * #G_TYPE_UINT, The quantization amount to dither to. Components will be - * quantized to multiples of this value. - * Default is 1 - */ -enum VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION = "GstVideoConverter.dither-quantization"; -alias GST_VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION = VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION; - -/** - * #G_TYPE_BOOLEAN, if the destination rectangle does not fill the complete - * destination image, render a border with - * #GST_VIDEO_CONVERTER_OPT_BORDER_ARGB. Otherwise the unusded pixels in the - * destination are untouched. Default %TRUE. - */ -enum VIDEO_CONVERTER_OPT_FILL_BORDER = "GstVideoConverter.fill-border"; -alias GST_VIDEO_CONVERTER_OPT_FILL_BORDER = VIDEO_CONVERTER_OPT_FILL_BORDER; - -/** - * #GstVideoGammaMode, set the gamma mode. - * Default is #GST_VIDEO_GAMMA_MODE_NONE. - */ -enum VIDEO_CONVERTER_OPT_GAMMA_MODE = "GstVideoConverter.gamma-mode"; -alias GST_VIDEO_CONVERTER_OPT_GAMMA_MODE = VIDEO_CONVERTER_OPT_GAMMA_MODE; - -/** - * #GstVideoMatrixMode, set the color matrix conversion mode for - * converting between Y'PbPr and non-linear RGB (R'G'B'). - * Default is #GST_VIDEO_MATRIX_MODE_FULL. - */ -enum VIDEO_CONVERTER_OPT_MATRIX_MODE = "GstVideoConverter.matrix-mode"; -alias GST_VIDEO_CONVERTER_OPT_MATRIX_MODE = VIDEO_CONVERTER_OPT_MATRIX_MODE; - -/** - * #GstVideoPrimariesMode, set the primaries conversion mode. - * Default is #GST_VIDEO_PRIMARIES_MODE_NONE. - */ -enum VIDEO_CONVERTER_OPT_PRIMARIES_MODE = "GstVideoConverter.primaries-mode"; -alias GST_VIDEO_CONVERTER_OPT_PRIMARIES_MODE = VIDEO_CONVERTER_OPT_PRIMARIES_MODE; - -/** - * #GstVideoResamplerMethod, The resampler method to use for - * resampling. Other options for the resampler can be used, see - * the #GstVideoResampler. Default is #GST_VIDEO_RESAMPLER_METHOD_CUBIC - */ -enum VIDEO_CONVERTER_OPT_RESAMPLER_METHOD = "GstVideoConverter.resampler-method"; -alias GST_VIDEO_CONVERTER_OPT_RESAMPLER_METHOD = VIDEO_CONVERTER_OPT_RESAMPLER_METHOD; - -/** - * #G_TYPE_UINT, The number of taps for the resampler. - * Default is 0: let the resampler choose a good value. - */ -enum VIDEO_CONVERTER_OPT_RESAMPLER_TAPS = "GstVideoConverter.resampler-taps"; -alias GST_VIDEO_CONVERTER_OPT_RESAMPLER_TAPS = VIDEO_CONVERTER_OPT_RESAMPLER_TAPS; - -/** - * #G_TYPE_INT, source height to convert, default source height - */ -enum VIDEO_CONVERTER_OPT_SRC_HEIGHT = "GstVideoConverter.src-height"; -alias GST_VIDEO_CONVERTER_OPT_SRC_HEIGHT = VIDEO_CONVERTER_OPT_SRC_HEIGHT; - -/** - * #G_TYPE_INT, source width to convert, default source width - */ -enum VIDEO_CONVERTER_OPT_SRC_WIDTH = "GstVideoConverter.src-width"; -alias GST_VIDEO_CONVERTER_OPT_SRC_WIDTH = VIDEO_CONVERTER_OPT_SRC_WIDTH; - -/** - * #G_TYPE_INT, source x position to start conversion, default 0 - */ -enum VIDEO_CONVERTER_OPT_SRC_X = "GstVideoConverter.src-x"; -alias GST_VIDEO_CONVERTER_OPT_SRC_X = VIDEO_CONVERTER_OPT_SRC_X; - -/** - * #G_TYPE_INT, source y position to start conversion, default 0 - */ -enum VIDEO_CONVERTER_OPT_SRC_Y = "GstVideoConverter.src-y"; -alias GST_VIDEO_CONVERTER_OPT_SRC_Y = VIDEO_CONVERTER_OPT_SRC_Y; - -/** - * #G_TYPE_UINT, maximum number of threads to use. Default 1, 0 for the number - * of cores. - */ -enum VIDEO_CONVERTER_OPT_THREADS = "GstVideoConverter.threads"; -alias GST_VIDEO_CONVERTER_OPT_THREADS = VIDEO_CONVERTER_OPT_THREADS; - -/** - * Default maximum number of errors tolerated before signaling error. - */ -enum VIDEO_DECODER_MAX_ERRORS = 10; -alias GST_VIDEO_DECODER_MAX_ERRORS = VIDEO_DECODER_MAX_ERRORS; - -/** - * The name of the templates for the sink pad. - */ -enum VIDEO_DECODER_SINK_NAME = "sink"; -alias GST_VIDEO_DECODER_SINK_NAME = VIDEO_DECODER_SINK_NAME; - -/** - * The name of the templates for the source pad. - */ -enum VIDEO_DECODER_SRC_NAME = "src"; -alias GST_VIDEO_DECODER_SRC_NAME = VIDEO_DECODER_SRC_NAME; - -/** - * The name of the templates for the sink pad. - */ -enum VIDEO_ENCODER_SINK_NAME = "sink"; -alias GST_VIDEO_ENCODER_SINK_NAME = VIDEO_ENCODER_SINK_NAME; - -/** - * The name of the templates for the source pad. - */ -enum VIDEO_ENCODER_SRC_NAME = "src"; -alias GST_VIDEO_ENCODER_SRC_NAME = VIDEO_ENCODER_SRC_NAME; - -/** - * List of all video formats, for use in template caps strings. - * - * Formats are sorted by decreasing "quality", using these criteria by priority: - * - number of components - * - depth - * - subsampling factor of the width - * - subsampling factor of the height - * - number of planes - * - native endianness preferred - * - pixel stride - * - poffset - * - prefer non-complex formats - * - prefer YUV formats over RGB ones - * - prefer I420 over YV12 - * - format name - */ -enum VIDEO_FORMATS_ALL = "{ AYUV64, ARGB64, GBRA_12BE, GBRA_12LE, Y412_BE, Y412_LE, A444_10BE, GBRA_10BE, A444_10LE, GBRA_10LE, A422_10BE, A422_10LE, A420_10BE, A420_10LE, Y410, RGB10A2_LE, BGR10A2_LE, GBRA, ABGR, VUYA, BGRA, AYUV, ARGB, RGBA, A420, Y444_16BE, Y444_16LE, v216, P016_BE, P016_LE, Y444_12BE, GBR_12BE, Y444_12LE, GBR_12LE, I422_12BE, I422_12LE, Y212_BE, Y212_LE, I420_12BE, I420_12LE, P012_BE, P012_LE, Y444_10BE, GBR_10BE, Y444_10LE, GBR_10LE, r210, I422_10BE, I422_10LE, NV16_10LE32, Y210, v210, UYVP, I420_10BE, I420_10LE, P010_10BE, P010_10LE, NV12_10LE32, NV12_10LE40, Y444, GBR, NV24, xBGR, BGRx, xRGB, RGBx, BGR, IYU2, v308, RGB, Y42B, NV61, NV16, VYUY, UYVY, YVYU, YUY2, I420, YV12, NV21, NV12, NV12_64Z32, NV12_4L4, NV12_32L32, Y41B, IYU1, YVU9, YUV9, RGB16, BGR16, RGB15, BGR15, RGB8P, GRAY16_BE, GRAY16_LE, GRAY10_LE32, GRAY8 }"; -alias GST_VIDEO_FORMATS_ALL = VIDEO_FORMATS_ALL; - -enum VIDEO_FPS_RANGE = "(fraction) [ 0, max ]"; -alias GST_VIDEO_FPS_RANGE = VIDEO_FPS_RANGE; - -enum VIDEO_MAX_COMPONENTS = 4; -alias GST_VIDEO_MAX_COMPONENTS = VIDEO_MAX_COMPONENTS; - -enum VIDEO_MAX_PLANES = 4; -alias GST_VIDEO_MAX_PLANES = VIDEO_MAX_PLANES; - -/** - * G_TYPE_DOUBLE, B parameter of the cubic filter. The B - * parameter controls the bluriness. Values between 0.0 and - * 2.0 are accepted. 1/3 is the default. - * - * Below are some values of popular filters: - * B C - * Hermite 0.0 0.0 - * Spline 1.0 0.0 - * Catmull-Rom 0.0 1/2 - * Mitchell 1/3 1/3 - * Robidoux 0.3782 0.3109 - * Robidoux - * Sharp 0.2620 0.3690 - * Robidoux - * Soft 0.6796 0.1602 - */ -enum VIDEO_RESAMPLER_OPT_CUBIC_B = "GstVideoResampler.cubic-b"; -alias GST_VIDEO_RESAMPLER_OPT_CUBIC_B = VIDEO_RESAMPLER_OPT_CUBIC_B; - -/** - * G_TYPE_DOUBLE, C parameter of the cubic filter. The C - * parameter controls the Keys alpha value. Values between 0.0 and - * 2.0 are accepted. 1/3 is the default. - * - * See #GST_VIDEO_RESAMPLER_OPT_CUBIC_B for some more common values - */ -enum VIDEO_RESAMPLER_OPT_CUBIC_C = "GstVideoResampler.cubic-c"; -alias GST_VIDEO_RESAMPLER_OPT_CUBIC_C = VIDEO_RESAMPLER_OPT_CUBIC_C; - -/** - * G_TYPE_DOUBLE, specifies the size of filter envelope for - * @GST_VIDEO_RESAMPLER_METHOD_LANCZOS. values are clamped between - * 1.0 and 5.0. 2.0 is the default. - */ -enum VIDEO_RESAMPLER_OPT_ENVELOPE = "GstVideoResampler.envelope"; -alias GST_VIDEO_RESAMPLER_OPT_ENVELOPE = VIDEO_RESAMPLER_OPT_ENVELOPE; - -/** - * G_TYPE_INT, limits the maximum number of taps to use. - * 16 is the default. - */ -enum VIDEO_RESAMPLER_OPT_MAX_TAPS = "GstVideoResampler.max-taps"; -alias GST_VIDEO_RESAMPLER_OPT_MAX_TAPS = VIDEO_RESAMPLER_OPT_MAX_TAPS; - -/** - * G_TYPE_DOUBLE, specifies sharpening of the filter for - * @GST_VIDEO_RESAMPLER_METHOD_LANCZOS. values are clamped between - * 0.0 and 1.0. 0.0 is the default. - */ -enum VIDEO_RESAMPLER_OPT_SHARPEN = "GstVideoResampler.sharpen"; -alias GST_VIDEO_RESAMPLER_OPT_SHARPEN = VIDEO_RESAMPLER_OPT_SHARPEN; - -/** - * G_TYPE_DOUBLE, specifies sharpness of the filter for - * @GST_VIDEO_RESAMPLER_METHOD_LANCZOS. values are clamped between - * 0.5 and 1.5. 1.0 is the default. - */ -enum VIDEO_RESAMPLER_OPT_SHARPNESS = "GstVideoResampler.sharpness"; -alias GST_VIDEO_RESAMPLER_OPT_SHARPNESS = VIDEO_RESAMPLER_OPT_SHARPNESS; - -/** - * #GstVideoDitherMethod, The dither method to use for propagating - * quatization errors. - */ -enum VIDEO_SCALER_OPT_DITHER_METHOD = "GstVideoScaler.dither-method"; -alias GST_VIDEO_SCALER_OPT_DITHER_METHOD = VIDEO_SCALER_OPT_DITHER_METHOD; - -enum VIDEO_SIZE_RANGE = "(int) [ 1, max ]"; -alias GST_VIDEO_SIZE_RANGE = VIDEO_SIZE_RANGE; - -enum VIDEO_TILE_TYPE_MASK = 65535; -alias GST_VIDEO_TILE_TYPE_MASK = VIDEO_TILE_TYPE_MASK; - -enum VIDEO_TILE_TYPE_SHIFT = 16; -alias GST_VIDEO_TILE_TYPE_SHIFT = VIDEO_TILE_TYPE_SHIFT; - -enum VIDEO_TILE_X_TILES_MASK = 65535; -alias GST_VIDEO_TILE_X_TILES_MASK = VIDEO_TILE_X_TILES_MASK; - -enum VIDEO_TILE_Y_TILES_SHIFT = 16; -alias GST_VIDEO_TILE_Y_TILES_SHIFT = VIDEO_TILE_Y_TILES_SHIFT; diff --git a/generated/gstreamer/gstreamer/AllocationParams.d b/generated/gstreamer/gstreamer/AllocationParams.d deleted file mode 100644 index d63f06f2d..000000000 --- a/generated/gstreamer/gstreamer/AllocationParams.d +++ /dev/null @@ -1,114 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.AllocationParams; - -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * Parameters to control the allocation of memory - */ -public class AllocationParams -{ - /** the main Gtk struct */ - protected GstAllocationParams* gstAllocationParams; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstAllocationParams* getAllocationParamsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAllocationParams; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstAllocationParams; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAllocationParams* gstAllocationParams, bool ownedRef = false) - { - this.gstAllocationParams = gstAllocationParams; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_allocation_params_free(gstAllocationParams); - } - - - /** */ - public static GType getType() - { - return gst_allocation_params_get_type(); - } - - /** - * Create a copy of @params. - * - * Free-function: gst_allocation_params_free - * - * Returns: a new ##GstAllocationParams, free with - * gst_allocation_params_free(). - */ - public AllocationParams copy() - { - auto __p = gst_allocation_params_copy(gstAllocationParams); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AllocationParams)(cast(GstAllocationParams*) __p, true); - } - - /** - * Free @params - */ - public void free() - { - gst_allocation_params_free(gstAllocationParams); - ownedRef = false; - } - - /** - * Initialize @params to its default values - */ - public void init() - { - gst_allocation_params_init(gstAllocationParams); - } -} diff --git a/generated/gstreamer/gstreamer/Allocator.d b/generated/gstreamer/gstreamer/Allocator.d deleted file mode 100644 index d2bb03c30..000000000 --- a/generated/gstreamer/gstreamer/Allocator.d +++ /dev/null @@ -1,173 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Allocator; - -private import glib.Str; -private import gobject.ObjectG; -private import gstreamer.AllocationParams; -private import gstreamer.Memory; -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Memory is usually created by allocators with a gst_allocator_alloc() - * method call. When %NULL is used as the allocator, the default allocator will - * be used. - * - * New allocators can be registered with gst_allocator_register(). - * Allocators are identified by name and can be retrieved with - * gst_allocator_find(). gst_allocator_set_default() can be used to change the - * default allocator. - * - * New memory can be created with gst_memory_new_wrapped() that wraps the memory - * allocated elsewhere. - */ -public class Allocator : ObjectGst -{ - /** the main Gtk struct */ - protected GstAllocator* gstAllocator; - - /** Get the main Gtk struct */ - public GstAllocator* getAllocatorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAllocator; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstAllocator; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAllocator* gstAllocator, bool ownedRef = false) - { - this.gstAllocator = gstAllocator; - super(cast(GstObject*)gstAllocator, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_allocator_get_type(); - } - - /** - * Find a previously registered allocator with @name. When @name is %NULL, the - * default allocator will be returned. - * - * Params: - * name = the name of the allocator - * - * Returns: a #GstAllocator or %NULL when - * the allocator with @name was not registered. Use gst_object_unref() - * to release the allocator after usage. - */ - public static Allocator find(string name) - { - auto __p = gst_allocator_find(Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Allocator)(cast(GstAllocator*) __p, true); - } - - /** - * Registers the memory @allocator with @name. This function takes ownership of - * @allocator. - * - * Params: - * name = the name of the allocator - * allocator = #GstAllocator - */ - public static void register(string name, Allocator allocator) - { - gst_allocator_register(Str.toStringz(name), (allocator is null) ? null : allocator.getAllocatorStruct()); - } - - /** - * Use @allocator to allocate a new memory block with memory that is at least - * @size big. - * - * The optional @params can specify the prefix and padding for the memory. If - * %NULL is passed, no flags, no extra prefix/padding and a default alignment is - * used. - * - * The prefix/padding will be filled with 0 if flags contains - * #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively. - * - * When @allocator is %NULL, the default allocator will be used. - * - * The alignment in @params is given as a bitmask so that @align + 1 equals - * the amount of bytes to align to. For example, to align to 8 bytes, - * use an alignment of 7. - * - * Params: - * size = size of the visible memory area - * params = optional parameters - * - * Returns: a new #GstMemory. - */ - public Memory alloc(size_t size, AllocationParams params) - { - auto __p = gst_allocator_alloc(gstAllocator, size, (params is null) ? null : params.getAllocationParamsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p, true); - } - - /** - * Free @memory that was previously allocated with gst_allocator_alloc(). - * - * Params: - * memory = the memory to free - */ - public void free(Memory memory) - { - gst_allocator_free(gstAllocator, (memory is null) ? null : memory.getMemoryStruct()); - } - - /** - * Set the default allocator. This function takes ownership of @allocator. - */ - public void setDefault() - { - gst_allocator_set_default(gstAllocator); - } -} diff --git a/generated/gstreamer/gstreamer/AtomicQueue.d b/generated/gstreamer/gstreamer/AtomicQueue.d deleted file mode 100644 index a00b69e3b..000000000 --- a/generated/gstreamer/gstreamer/AtomicQueue.d +++ /dev/null @@ -1,162 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.AtomicQueue; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * The #GstAtomicQueue object implements a queue that can be used from multiple - * threads without performing any blocking operations. - */ -public class AtomicQueue -{ - /** the main Gtk struct */ - protected GstAtomicQueue* gstAtomicQueue; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstAtomicQueue* getAtomicQueueStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstAtomicQueue; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstAtomicQueue; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstAtomicQueue* gstAtomicQueue, bool ownedRef = false) - { - this.gstAtomicQueue = gstAtomicQueue; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_atomic_queue_unref(gstAtomicQueue); - } - - - /** */ - public static GType getType() - { - return gst_atomic_queue_get_type(); - } - - /** - * Create a new atomic queue instance. @initial_size will be rounded up to the - * nearest power of 2 and used as the initial size of the queue. - * - * Params: - * initialSize = initial queue size - * - * Returns: a new #GstAtomicQueue - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint initialSize) - { - auto __p = gst_atomic_queue_new(initialSize); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstAtomicQueue*) __p); - } - - /** - * Get the amount of items in the queue. - * - * Returns: the number of elements in the queue. - */ - public uint length() - { - return gst_atomic_queue_length(gstAtomicQueue); - } - - /** - * Peek the head element of the queue without removing it from the queue. - * - * Returns: the head element of @queue or - * %NULL when the queue is empty. - */ - public void* peek() - { - return gst_atomic_queue_peek(gstAtomicQueue); - } - - /** - * Get the head element of the queue. - * - * Returns: the head element of @queue or %NULL when - * the queue is empty. - */ - public void* pop() - { - return gst_atomic_queue_pop(gstAtomicQueue); - } - - /** - * Append @data to the tail of the queue. - * - * Params: - * data = the data - */ - public void push(void* data) - { - gst_atomic_queue_push(gstAtomicQueue, data); - } - - alias doref = ref_; - /** - * Increase the refcount of @queue. - */ - public void ref_() - { - gst_atomic_queue_ref(gstAtomicQueue); - } - - /** - * Unref @queue and free the memory when the refcount reaches 0. - */ - public void unref() - { - gst_atomic_queue_unref(gstAtomicQueue); - } -} diff --git a/generated/gstreamer/gstreamer/Bin.d b/generated/gstreamer/gstreamer/Bin.d deleted file mode 100644 index 59ffa2455..000000000 --- a/generated/gstreamer/gstreamer/Bin.d +++ /dev/null @@ -1,675 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Bin; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.ChildProxyIF; -private import gstreamer.ChildProxyT; -private import gstreamer.Element; -private import gstreamer.Iterator; -private import gstreamer.Pad; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * #GstBin is an element that can contain other #GstElement, allowing them to be - * managed as a group. - * Pads from the child elements can be ghosted to the bin, see #GstGhostPad. - * This makes the bin look like any other elements and enables creation of - * higher-level abstraction elements. - * - * A new #GstBin is created with gst_bin_new(). Use a #GstPipeline instead if you - * want to create a toplevel bin because a normal bin doesn't have a bus or - * handle clock distribution of its own. - * - * After the bin has been created you will typically add elements to it with - * gst_bin_add(). You can remove elements with gst_bin_remove(). - * - * An element can be retrieved from a bin with gst_bin_get_by_name(), using the - * elements name. gst_bin_get_by_name_recurse_up() is mainly used for internal - * purposes and will query the parent bins when the element is not found in the - * current bin. - * - * An iterator of elements in a bin can be retrieved with - * gst_bin_iterate_elements(). Various other iterators exist to retrieve the - * elements in a bin. - * - * gst_object_unref() is used to drop your reference to the bin. - * - * The #GstBin::element-added signal is fired whenever a new element is added to - * the bin. Likewise the #GstBin::element-removed signal is fired whenever an - * element is removed from the bin. - * - * ## Notes - * - * A #GstBin internally intercepts every #GstMessage posted by its children and - * implements the following default behaviour for each of them: - * - * * GST_MESSAGE_EOS: This message is only posted by sinks in the PLAYING - * state. If all sinks posted the EOS message, this bin will post and EOS - * message upwards. - * - * * GST_MESSAGE_SEGMENT_START: Just collected and never forwarded upwards. - * The messages are used to decide when all elements have completed playback - * of their segment. - * - * * GST_MESSAGE_SEGMENT_DONE: Is posted by #GstBin when all elements that posted - * a SEGMENT_START have posted a SEGMENT_DONE. - * - * * GST_MESSAGE_DURATION_CHANGED: Is posted by an element that detected a change - * in the stream duration. The duration change is posted to the - * application so that it can refetch the new duration with a duration - * query. Note that these messages can be posted before the bin is - * prerolled, in which case the duration query might fail. Note also that - * there might be a discrepancy (due to internal buffering/queueing) between the - * stream being currently displayed and the returned duration query. - * Applications might want to also query for duration (and changes) by - * listening to the GST_MESSAGE_STREAM_START message, signaling the active start - * of a (new) stream. - * - * * GST_MESSAGE_CLOCK_LOST: This message is posted by an element when it - * can no longer provide a clock. The default bin behaviour is to - * check if the lost clock was the one provided by the bin. If so and - * the bin is currently in the PLAYING state, the message is forwarded to - * the bin parent. - * This message is also generated when a clock provider is removed from - * the bin. If this message is received by the application, it should - * PAUSE the pipeline and set it back to PLAYING to force a new clock - * distribution. - * - * * GST_MESSAGE_CLOCK_PROVIDE: This message is generated when an element - * can provide a clock. This mostly happens when a new clock - * provider is added to the bin. The default behaviour of the bin is to - * mark the currently selected clock as dirty, which will perform a clock - * recalculation the next time the bin is asked to provide a clock. - * This message is never sent tot the application but is forwarded to - * the parent of the bin. - * - * * OTHERS: posted upwards. - * - * A #GstBin implements the following default behaviour for answering to a - * #GstQuery: - * - * * GST_QUERY_DURATION: The bin will forward the query to all sink - * elements contained within and will return the maximum value. - * If no sinks are available in the bin, the query fails. - * - * * GST_QUERY_POSITION:The query is sent to all sink elements in the bin and the - * MAXIMUM of all values is returned. If no sinks are available in the bin, - * the query fails. - * - * * OTHERS:the query is forwarded to all sink elements, the result - * of the first sink that answers the query successfully is returned. If no - * sink is in the bin, the query fails. - * - * A #GstBin will by default forward any event sent to it to all sink - * (#GST_EVENT_TYPE_DOWNSTREAM) or source (#GST_EVENT_TYPE_UPSTREAM) elements - * depending on the event type. - * If all the elements return %TRUE, the bin will also return %TRUE, else %FALSE - * is returned. If no elements of the required type are in the bin, the event - * handler will return %TRUE. - */ -public class Bin : Element, ChildProxyIF -{ - /** the main Gtk struct */ - protected GstBin* gstBin; - - /** Get the main Gtk struct */ - public GstBin* getBinStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBin; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstBin; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBin* gstBin, bool ownedRef = false) - { - this.gstBin = gstBin; - super(cast(GstElement*)gstBin, ownedRef); - } - - // add the ChildProxy capabilities - mixin ChildProxyT!(GstBin); - - /** */ - public this(Element elem) - { - super( elem.getElementStruct(), true ); - this.gstBin = cast(GstBin*)elem.getElementStruct(); - } - - /** - * Adds a list of elements to a bin. - * This function is equivalent to calling add() for each member of the list. - * The return value of each add() is ignored. - */ - public void addMany( Element[] elems... ) - { - foreach( e; elems ) add( e ); - } - - /** - * Remove a list of elements from a bin. - * This function is equivalent to calling remove() with each member of the list. - */ - public void removeMany( Element[] elems... ) - { - foreach( e; elems ) remove( e ); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_bin_get_type(); - } - - /** - * Creates a new bin with the given name. - * - * Params: - * name = the name of the new bin - * - * Returns: a new #GstBin - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name) - { - auto __p = gst_bin_new(Str.toStringz(name)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBin*) __p); - } - - /** - * Adds the given element to the bin. Sets the element's parent, and thus - * takes ownership of the element. An element can only be added to one bin. - * - * If the element's pads are linked to other pads, the pads will be unlinked - * before the element is added to the bin. - * - * > When you add an element to an already-running pipeline, you will have to - * > take care to set the state of the newly-added element to the desired - * > state (usually PLAYING or PAUSED, same you set the pipeline to originally) - * > with gst_element_set_state(), or use gst_element_sync_state_with_parent(). - * > The bin or pipeline will not take care of this for you. - * - * MT safe. - * - * Params: - * element = the #GstElement to add - * - * Returns: %TRUE if the element could be added, %FALSE if - * the bin does not want to accept the element. - */ - public bool add(Element element) - { - return gst_bin_add(gstBin, (element is null) ? null : element.getElementStruct()) != 0; - } - - /** - * Recursively looks for elements with an unlinked pad of the given - * direction within the specified bin and returns an unlinked pad - * if one is found, or %NULL otherwise. If a pad is found, the caller - * owns a reference to it and should use gst_object_unref() on the - * pad when it is not needed any longer. - * - * Params: - * direction = whether to look for an unlinked source or sink pad - * - * Returns: unlinked pad of the given - * direction, %NULL. - */ - public Pad findUnlinkedPad(GstPadDirection direction) - { - auto __p = gst_bin_find_unlinked_pad(gstBin, direction); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * Looks for an element inside the bin that implements the given - * interface. If such an element is found, it returns the element. - * You can cast this element to the given interface afterwards. If you want - * all elements that implement the interface, use - * gst_bin_iterate_all_by_interface(). This function recurses into child bins. - * - * MT safe. Caller owns returned reference. - * - * Params: - * iface = the #GType of an interface - * - * Returns: A #GstElement inside the bin - * implementing the interface - */ - public Element getByInterface(GType iface) - { - auto __p = gst_bin_get_by_interface(gstBin, iface); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p, true); - } - - /** - * Gets the element with the given name from a bin. This - * function recurses into child bins. - * - * Returns %NULL if no element with the given name is found in the bin. - * - * MT safe. Caller owns returned reference. - * - * Params: - * name = the element name to search for - * - * Returns: the #GstElement with the given - * name, or %NULL - */ - public Element getByName(string name) - { - auto __p = gst_bin_get_by_name(gstBin, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p, true); - } - - /** - * Gets the element with the given name from this bin. If the - * element is not found, a recursion is performed on the parent bin. - * - * Returns %NULL if: - * - no element with the given name is found in the bin - * - * MT safe. Caller owns returned reference. - * - * Params: - * name = the element name to search for - * - * Returns: the #GstElement with the given - * name, or %NULL - */ - public Element getByNameRecurseUp(string name) - { - auto __p = gst_bin_get_by_name_recurse_up(gstBin, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p, true); - } - - /** - * Return the suppressed flags of the bin. - * - * MT safe. - * - * Returns: the bin's suppressed #GstElementFlags. - * - * Since: 1.10 - */ - public GstElementFlags getSuppressedFlags() - { - return gst_bin_get_suppressed_flags(gstBin); - } - - /** - * Looks for all elements inside the bin with the given element factory name. - * The function recurses inside child bins. The iterator will yield a series of - * #GstElement that should be unreffed after use. - * - * MT safe. Caller owns returned value. - * - * Params: - * factoryName = the name of the #GstElementFactory - * - * Returns: a #GstIterator of #GstElement - * for all elements in the bin with the given element factory name, - * or %NULL. - * - * Since: 1.18 - */ - public Iterator iterateAllByElementFactoryName(string factoryName) - { - auto __p = gst_bin_iterate_all_by_element_factory_name(gstBin, Str.toStringz(factoryName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Looks for all elements inside the bin that implements the given - * interface. You can safely cast all returned elements to the given interface. - * The function recurses inside child bins. The iterator will yield a series - * of #GstElement that should be unreffed after use. - * - * MT safe. Caller owns returned value. - * - * Params: - * iface = the #GType of an interface - * - * Returns: a #GstIterator of #GstElement - * for all elements in the bin implementing the given interface, - * or %NULL - */ - public Iterator iterateAllByInterface(GType iface) - { - auto __p = gst_bin_iterate_all_by_interface(gstBin, iface); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Gets an iterator for the elements in this bin. - * - * MT safe. Caller owns returned value. - * - * Returns: a #GstIterator of #GstElement, - * or %NULL - */ - public Iterator iterateElements() - { - auto __p = gst_bin_iterate_elements(gstBin); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Gets an iterator for the elements in this bin. - * This iterator recurses into GstBin children. - * - * MT safe. Caller owns returned value. - * - * Returns: a #GstIterator of #GstElement, - * or %NULL - */ - public Iterator iterateRecurse() - { - auto __p = gst_bin_iterate_recurse(gstBin); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Gets an iterator for all elements in the bin that have the - * #GST_ELEMENT_FLAG_SINK flag set. - * - * MT safe. Caller owns returned value. - * - * Returns: a #GstIterator of #GstElement, - * or %NULL - */ - public Iterator iterateSinks() - { - auto __p = gst_bin_iterate_sinks(gstBin); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Gets an iterator for the elements in this bin in topologically - * sorted order. This means that the elements are returned from - * the most downstream elements (sinks) to the sources. - * - * This function is used internally to perform the state changes - * of the bin elements and for clock selection. - * - * MT safe. Caller owns returned value. - * - * Returns: a #GstIterator of #GstElement, - * or %NULL - */ - public Iterator iterateSorted() - { - auto __p = gst_bin_iterate_sorted(gstBin); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Gets an iterator for all elements in the bin that have the - * #GST_ELEMENT_FLAG_SOURCE flag set. - * - * MT safe. Caller owns returned value. - * - * Returns: a #GstIterator of #GstElement, - * or %NULL - */ - public Iterator iterateSources() - { - auto __p = gst_bin_iterate_sources(gstBin); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Query @bin for the current latency using and reconfigures this latency to all the - * elements with a LATENCY event. - * - * This method is typically called on the pipeline when a #GST_MESSAGE_LATENCY - * is posted on the bus. - * - * This function simply emits the 'do-latency' signal so any custom latency - * calculations will be performed. - * - * Returns: %TRUE if the latency could be queried and reconfigured. - */ - public bool recalculateLatency() - { - return gst_bin_recalculate_latency(gstBin) != 0; - } - - /** - * Removes the element from the bin, unparenting it as well. - * Unparenting the element means that the element will be dereferenced, - * so if the bin holds the only reference to the element, the element - * will be freed in the process of removing it from the bin. If you - * want the element to still exist after removing, you need to call - * gst_object_ref() before removing it from the bin. - * - * If the element's pads are linked to other pads, the pads will be unlinked - * before the element is removed from the bin. - * - * MT safe. - * - * Params: - * element = the #GstElement to remove - * - * Returns: %TRUE if the element could be removed, %FALSE if - * the bin does not want to remove the element. - */ - public bool remove(Element element) - { - return gst_bin_remove(gstBin, (element is null) ? null : element.getElementStruct()) != 0; - } - - /** - * Suppress the given flags on the bin. #GstElementFlags of a - * child element are propagated when it is added to the bin. - * When suppressed flags are set, those specified flags will - * not be propagated to the bin. - * - * MT safe. - * - * Params: - * flags = the #GstElementFlags to suppress - * - * Since: 1.10 - */ - public void setSuppressedFlags(GstElementFlags flags) - { - gst_bin_set_suppressed_flags(gstBin, flags); - } - - /** - * Synchronizes the state of every child of @bin with the state - * of @bin. See also gst_element_sync_state_with_parent(). - * - * Returns: %TRUE if syncing the state was successful for all children, - * otherwise %FALSE. - * - * Since: 1.6 - */ - public bool syncChildrenStates() - { - return gst_bin_sync_children_states(gstBin) != 0; - } - - /** - * Will be emitted after the element was added to sub_bin. - * - * Params: - * subBin = the #GstBin the element was added to - * element = the #GstElement that was added to @sub_bin - * - * Since: 1.10 - */ - gulong addOnDeepElementAdded(void delegate(Bin, Element, Bin) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "deep-element-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Will be emitted after the element was removed from sub_bin. - * - * Params: - * subBin = the #GstBin the element was removed from - * element = the #GstElement that was removed from @sub_bin - * - * Since: 1.10 - */ - gulong addOnDeepElementRemoved(void delegate(Bin, Element, Bin) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "deep-element-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Will be emitted when the bin needs to perform latency calculations. This - * signal is only emitted for toplevel bins or when async-handling is - * enabled. - * - * Only one signal handler is invoked. If no signals are connected, the - * default handler is invoked, which will query and distribute the lowest - * possible latency to all sinks. - * - * Connect to this signal if the default latency calculations are not - * sufficient, like when you need different latencies for different sinks in - * the same pipeline. - */ - gulong addOnDoLatency(bool delegate(Bin) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "do-latency", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Will be emitted after the element was added to the bin. - * - * Params: - * element = the #GstElement that was added to the bin - */ - gulong addOnElementAdded(void delegate(Element, Bin) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "element-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Will be emitted after the element was removed from the bin. - * - * Params: - * element = the #GstElement that was removed from the bin - */ - gulong addOnElementRemoved(void delegate(Element, Bin) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "element-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/Bitmask.d b/generated/gstreamer/gstreamer/Bitmask.d deleted file mode 100644 index 1a0f06700..000000000 --- a/generated/gstreamer/gstreamer/Bitmask.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Bitmask; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes a 64-bit bitmask - */ -public class Bitmask -{ - /** the main Gtk struct */ - protected GstBitmask* gstBitmask; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstBitmask* getBitmaskStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBitmask; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstBitmask; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBitmask* gstBitmask, bool ownedRef = false) - { - this.gstBitmask = gstBitmask; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_bitmask_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/Buffer.d b/generated/gstreamer/gstreamer/Buffer.d deleted file mode 100644 index 576828481..000000000 --- a/generated/gstreamer/gstreamer/Buffer.d +++ /dev/null @@ -1,1248 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Buffer; - -private import glib.Bytes; -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gstreamer.AllocationParams; -private import gstreamer.Allocator; -private import gstreamer.Caps; -private import gstreamer.Memory; -private import gstreamer.Meta; -private import gstreamer.ProtectionMeta; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Buffers are the basic unit of data transfer in GStreamer. They contain the - * timing and offset along with other arbitrary metadata that is associated - * with the #GstMemory blocks that the buffer contains. - * - * Buffers are usually created with gst_buffer_new(). After a buffer has been - * created one will typically allocate memory for it and add it to the buffer. - * The following example creates a buffer that can hold a given video frame - * with a given width, height and bits per plane. - * |[ - * GstBuffer *buffer; - * GstMemory *memory; - * gint size, width, height, bpp; - * ... - * size = width * height * bpp; - * buffer = gst_buffer_new (); - * memory = gst_allocator_alloc (NULL, size, NULL); - * gst_buffer_insert_memory (buffer, -1, memory); - * ... - * ]| - * - * Alternatively, use gst_buffer_new_allocate() to create a buffer with - * preallocated data of a given size. - * - * Buffers can contain a list of #GstMemory objects. You can retrieve how many - * memory objects with gst_buffer_n_memory() and you can get a pointer - * to memory with gst_buffer_peek_memory() - * - * A buffer will usually have timestamps, and a duration, but neither of these - * are guaranteed (they may be set to #GST_CLOCK_TIME_NONE). Whenever a - * meaningful value can be given for these, they should be set. The timestamps - * and duration are measured in nanoseconds (they are #GstClockTime values). - * - * The buffer DTS refers to the timestamp when the buffer should be decoded and - * is usually monotonically increasing. The buffer PTS refers to the timestamp when - * the buffer content should be presented to the user and is not always - * monotonically increasing. - * - * A buffer can also have one or both of a start and an end offset. These are - * media-type specific. For video buffers, the start offset will generally be - * the frame number. For audio buffers, it will be the number of samples - * produced so far. For compressed data, it could be the byte offset in a - * source or destination file. Likewise, the end offset will be the offset of - * the end of the buffer. These can only be meaningfully interpreted if you - * know the media type of the buffer (the preceding CAPS event). Either or both - * can be set to #GST_BUFFER_OFFSET_NONE. - * - * gst_buffer_ref() is used to increase the refcount of a buffer. This must be - * done when you want to keep a handle to the buffer after pushing it to the - * next element. The buffer refcount determines the writability of the buffer, a - * buffer is only writable when the refcount is exactly 1, i.e. when the caller - * has the only reference to the buffer. - * - * To efficiently create a smaller buffer out of an existing one, you can - * use gst_buffer_copy_region(). This method tries to share the memory objects - * between the two buffers. - * - * If a plug-in wants to modify the buffer data or metadata in-place, it should - * first obtain a buffer that is safe to modify by using - * gst_buffer_make_writable(). This function is optimized so that a copy will - * only be made when it is necessary. - * - * Several flags of the buffer can be set and unset with the - * GST_BUFFER_FLAG_SET() and GST_BUFFER_FLAG_UNSET() macros. Use - * GST_BUFFER_FLAG_IS_SET() to test if a certain #GstBufferFlags flag is set. - * - * Buffers can be efficiently merged into a larger buffer with - * gst_buffer_append(). Copying of memory will only be done when absolutely - * needed. - * - * Arbitrary extra metadata can be set on a buffer with gst_buffer_add_meta(). - * Metadata can be retrieved with gst_buffer_get_meta(). See also #GstMeta - * - * An element should either unref the buffer or push it out on a src pad - * using gst_pad_push() (see #GstPad). - * - * Buffers are usually freed by unreffing them with gst_buffer_unref(). When - * the refcount drops to 0, any memory and metadata pointed to by the buffer is - * unreffed as well. Buffers allocated from a #GstBufferPool will be returned to - * the pool when the refcount drops to 0. - * - * The #GstParentBufferMeta is a meta which can be attached to a #GstBuffer - * to hold a reference to another buffer that is only released when the child - * #GstBuffer is released. - * - * Typically, #GstParentBufferMeta is used when the child buffer is directly - * using the #GstMemory of the parent buffer, and wants to prevent the parent - * buffer from being returned to a buffer pool until the #GstMemory is available - * for re-use. (Since: 1.6) - */ -public class Buffer -{ - /** the main Gtk struct */ - protected GstBuffer* gstBuffer; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstBuffer* getBufferStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBuffer; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstBuffer; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBuffer* gstBuffer, bool ownedRef = false) - { - this.gstBuffer = gstBuffer; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_buffer_get_type(); - } - - /** - * Creates a newly allocated buffer without any data. - * - * MT safe. - * - * Returns: the new #GstBuffer. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_buffer_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBuffer*) __p); - } - - /** - * Tries to create a newly allocated buffer with data of the given size and - * extra parameters from @allocator. If the requested amount of memory can't be - * allocated, %NULL will be returned. The allocated buffer memory is not cleared. - * - * When @allocator is %NULL, the default memory allocator will be used. - * - * Note that when @size == 0, the buffer will not have memory associated with it. - * - * MT safe. - * - * Params: - * allocator = the #GstAllocator to use, or %NULL to use the - * default allocator - * size = the size in bytes of the new buffer's data. - * params = optional parameters - * - * Returns: a new #GstBuffer, or %NULL if - * the memory couldn't be allocated. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Allocator allocator, size_t size, AllocationParams params) - { - auto __p = gst_buffer_new_allocate((allocator is null) ? null : allocator.getAllocatorStruct(), size, (params is null) ? null : params.getAllocationParamsStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_allocate"); - } - - this(cast(GstBuffer*) __p); - } - - /** - * Creates a new buffer that wraps the given @data. The memory will be freed - * with g_free and will be marked writable. - * - * MT safe. - * - * Params: - * data = data to wrap - * - * Returns: a new #GstBuffer - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data) - { - auto __p = gst_buffer_new_wrapped(data.ptr, cast(size_t)data.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new_wrapped"); - } - - this(cast(GstBuffer*) __p); - } - - /** - * Creates a new #GstBuffer that wraps the given @bytes. The data inside - * @bytes cannot be %NULL and the resulting buffer will be marked as read only. - * - * MT safe. - * - * Params: - * bytes = a #GBytes to wrap - * - * Returns: a new #GstBuffer wrapping @bytes - * - * Since: 1.16 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Bytes bytes) - { - auto __p = gst_buffer_new_wrapped_bytes((bytes is null) ? null : bytes.getBytesStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_wrapped_bytes"); - } - - this(cast(GstBuffer*) __p); - } - - /** - * Allocate a new buffer that wraps the given memory. @data must point to - * @maxsize of memory, the wrapped buffer will have the region from @offset and - * @size visible. - * - * When the buffer is destroyed, @notify will be called with @user_data. - * - * The prefix/padding must be filled with 0 if @flags contains - * #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively. - * - * Params: - * flags = #GstMemoryFlags - * data = data to wrap - * maxsize = allocated size of @data - * offset = offset in @data - * userData = user_data - * notify = called with @user_data when the memory is freed - * - * Returns: a new #GstBuffer - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstMemoryFlags flags, ubyte[] data, size_t maxsize, size_t offset, void* userData, GDestroyNotify notify) - { - auto __p = gst_buffer_new_wrapped_full(flags, data.ptr, maxsize, offset, cast(size_t)data.length, userData, notify); - - if(__p is null) - { - throw new ConstructionException("null returned by new_wrapped_full"); - } - - this(cast(GstBuffer*) __p); - } - - /** - * Add metadata for @info to @buffer using the parameters in @params. - * - * Params: - * info = a #GstMetaInfo - * params = params for @info - * - * Returns: the metadata for the api in @info on @buffer. - */ - public Meta addMeta(GstMetaInfo* info, void* params) - { - auto __p = gst_buffer_add_meta(gstBuffer, info, params); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Meta)(cast(GstMeta*) __p); - } - - /** - * Add a #GstParentBufferMeta to @buffer that holds a reference on - * @ref until the buffer is freed. - * - * Params: - * ref_ = a #GstBuffer to ref - * - * Returns: The #GstParentBufferMeta that was added to the buffer - * - * Since: 1.6 - */ - public GstParentBufferMeta* addParentBufferMeta(Buffer ref_) - { - return gst_buffer_add_parent_buffer_meta(gstBuffer, (ref_ is null) ? null : ref_.getBufferStruct()); - } - - /** - * Attaches protection metadata to a #GstBuffer. - * - * Params: - * info = a #GstStructure holding cryptographic - * information relating to the sample contained in @buffer. This - * function takes ownership of @info. - * - * Returns: a pointer to the added #GstProtectionMeta if successful; %NULL if - * unsuccessful. - * - * Since: 1.6 - */ - public ProtectionMeta addProtectionMeta(Structure info) - { - auto __p = gst_buffer_add_protection_meta(gstBuffer, (info is null) ? null : info.getStructureStruct(true)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ProtectionMeta)(cast(GstProtectionMeta*) __p); - } - - /** - * Add a #GstReferenceTimestampMeta to @buffer that holds a @timestamp and - * optionally @duration based on a specific timestamp @reference. See the - * documentation of #GstReferenceTimestampMeta for details. - * - * Params: - * reference = identifier for the timestamp reference. - * timestamp = timestamp - * duration = duration, or %GST_CLOCK_TIME_NONE - * - * Returns: The #GstReferenceTimestampMeta that was added to the buffer - * - * Since: 1.14 - */ - public GstReferenceTimestampMeta* addReferenceTimestampMeta(Caps reference, GstClockTime timestamp, GstClockTime duration) - { - return gst_buffer_add_reference_timestamp_meta(gstBuffer, (reference is null) ? null : reference.getCapsStruct(), timestamp, duration); - } - - /** - * Append all the memory from @buf2 to @buf1. The result buffer will contain a - * concatenation of the memory of @buf1 and @buf2. - * - * Params: - * buf2 = the second source #GstBuffer to append. - * - * Returns: the new #GstBuffer that contains the memory - * of the two source buffers. - */ - public Buffer append(Buffer buf2) - { - auto __p = gst_buffer_append(gstBuffer, (buf2 is null) ? null : buf2.getBufferStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Append the memory block @mem to @buffer. This function takes - * ownership of @mem and thus doesn't increase its refcount. - * - * This function is identical to gst_buffer_insert_memory() with an index of -1. - * See gst_buffer_insert_memory() for more details. - * - * Params: - * mem = a #GstMemory. - */ - public void appendMemory(Memory mem) - { - gst_buffer_append_memory(gstBuffer, (mem is null) ? null : mem.getMemoryStruct()); - } - - /** - * Append @size bytes at @offset from @buf2 to @buf1. The result buffer will - * contain a concatenation of the memory of @buf1 and the requested region of - * @buf2. - * - * Params: - * buf2 = the second source #GstBuffer to append. - * offset = the offset in @buf2 - * size = the size or -1 of @buf2 - * - * Returns: the new #GstBuffer that contains the memory - * of the two source buffers. - */ - public Buffer appendRegion(Buffer buf2, ptrdiff_t offset, ptrdiff_t size) - { - auto __p = gst_buffer_append_region(gstBuffer, (buf2 is null) ? null : buf2.getBufferStruct(), offset, size); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Create a copy of the given buffer. This will make a newly allocated - * copy of the data the source buffer contains. - * - * Returns: a new copy of @buf. - * - * Since: 1.6 - */ - public Buffer copyDeep() - { - auto __p = gst_buffer_copy_deep(gstBuffer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Copies the information from @src into @dest. - * - * If @dest already contains memory and @flags contains GST_BUFFER_COPY_MEMORY, - * the memory from @src will be appended to @dest. - * - * @flags indicate which fields will be copied. - * - * Params: - * src = a source #GstBuffer - * flags = flags indicating what metadata fields should be copied. - * offset = offset to copy from - * size = total size to copy. If -1, all data is copied. - * - * Returns: %TRUE if the copying succeeded, %FALSE otherwise. - */ - public bool copyInto(Buffer src, GstBufferCopyFlags flags, size_t offset, size_t size) - { - return gst_buffer_copy_into(gstBuffer, (src is null) ? null : src.getBufferStruct(), flags, offset, size) != 0; - } - - /** - * Creates a sub-buffer from @parent at @offset and @size. - * This sub-buffer uses the actual memory space of the parent buffer. - * This function will copy the offset and timestamp fields when the - * offset is 0. If not, they will be set to #GST_CLOCK_TIME_NONE and - * #GST_BUFFER_OFFSET_NONE. - * If @offset equals 0 and @size equals the total size of @buffer, the - * duration and offset end fields are also copied. If not they will be set - * to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE. - * - * MT safe. - * - * Params: - * flags = the #GstBufferCopyFlags - * offset = the offset into parent #GstBuffer at which the new sub-buffer - * begins. - * size = the size of the new #GstBuffer sub-buffer, in bytes. If -1, all - * data is copied. - * - * Returns: the new #GstBuffer or %NULL if the arguments were - * invalid. - */ - public Buffer copyRegion(GstBufferCopyFlags flags, size_t offset, size_t size) - { - auto __p = gst_buffer_copy_region(gstBuffer, flags, offset, size); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p, true); - } - - /** - * Copy @size bytes starting from @offset in @buffer to @dest. - * - * Params: - * offset = the offset to extract - * dest = the destination address - * - * Returns: The amount of bytes extracted. This value can be lower than @size - * when @buffer did not contain enough data. - */ - public size_t extract(size_t offset, ubyte[] dest) - { - return gst_buffer_extract(gstBuffer, offset, dest.ptr, cast(size_t)dest.length); - } - - /** - * Extracts a copy of at most @size bytes the data at @offset into - * newly-allocated memory. @dest must be freed using g_free() when done. - * - * Params: - * offset = the offset to extract - * size = the size to extract - * dest = A pointer where - * the destination array will be written. Might be %NULL if the size is 0. - * - * Since: 1.0.10 - */ - public void extractDup(size_t offset, size_t size, out ubyte[] dest) - { - ubyte* outdest; - size_t destSize; - - gst_buffer_extract_dup(gstBuffer, offset, size, cast(void**)&outdest, &destSize); - - dest = outdest[0 .. destSize]; - } - - /** - * Copy @size bytes from @src to @buffer at @offset. - * - * Params: - * offset = the offset to fill - * src = the source address - * - * Returns: The amount of bytes copied. This value can be lower than @size - * when @buffer did not contain enough data. - */ - public size_t fill(size_t offset, ubyte[] src) - { - return gst_buffer_fill(gstBuffer, offset, src.ptr, cast(size_t)src.length); - } - - /** - * Find the memory blocks that span @size bytes starting from @offset - * in @buffer. - * - * When this function returns %TRUE, @idx will contain the index of the first - * memory block where the byte for @offset can be found and @length contains the - * number of memory blocks containing the @size remaining bytes. @skip contains - * the number of bytes to skip in the memory block at @idx to get to the byte - * for @offset. - * - * @size can be -1 to get all the memory blocks after @idx. - * - * Params: - * offset = an offset - * size = a size - * idx = pointer to index - * length = pointer to length - * skip = pointer to skip - * - * Returns: %TRUE when @size bytes starting from @offset could be found in - * @buffer and @idx, @length and @skip will be filled. - */ - public bool findMemory(size_t offset, size_t size, out uint idx, out uint length, out size_t skip) - { - return gst_buffer_find_memory(gstBuffer, offset, size, &idx, &length, &skip) != 0; - } - - /** - * Call @func with @user_data for each meta in @buffer. - * - * @func can modify the passed meta pointer or its contents. The return value - * of @func define if this function returns or if the remaining metadata items - * in the buffer should be skipped. - * - * Params: - * func = a #GstBufferForeachMetaFunc to call - * userData = user data passed to @func - * - * Returns: %FALSE when @func returned %FALSE for one of the metadata. - */ - public bool foreachMeta(GstBufferForeachMetaFunc func, void* userData) - { - return gst_buffer_foreach_meta(gstBuffer, func, userData) != 0; - } - - /** - * Get all the memory block in @buffer. The memory blocks will be merged - * into one large #GstMemory. - * - * Returns: a #GstMemory that contains the merged memory. - * Use gst_memory_unref () after usage. - */ - public Memory getAllMemory() - { - auto __p = gst_buffer_get_all_memory(gstBuffer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p, true); - } - - /** - * Get the #GstBufferFlags flags set on this buffer. - * - * Returns: the flags set on this buffer. - * - * Since: 1.10 - */ - public GstBufferFlags getFlags() - { - return gst_buffer_get_flags(gstBuffer); - } - - /** - * Get the memory block at index @idx in @buffer. - * - * Params: - * idx = an index - * - * Returns: a #GstMemory that contains the data of the - * memory block at @idx. Use gst_memory_unref () after usage. - */ - public Memory getMemory(uint idx) - { - auto __p = gst_buffer_get_memory(gstBuffer, idx); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p, true); - } - - /** - * Get @length memory blocks in @buffer starting at @idx. The memory blocks will - * be merged into one large #GstMemory. - * - * If @length is -1, all memory starting from @idx is merged. - * - * Params: - * idx = an index - * length = a length - * - * Returns: a #GstMemory that contains the merged data of @length - * blocks starting at @idx. Use gst_memory_unref () after usage. - */ - public Memory getMemoryRange(uint idx, int length) - { - auto __p = gst_buffer_get_memory_range(gstBuffer, idx, length); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p, true); - } - - /** - * Get the metadata for @api on buffer. When there is no such metadata, %NULL is - * returned. If multiple metadata with the given @api are attached to this - * buffer only the first one is returned. To handle multiple metadata with a - * given API use gst_buffer_iterate_meta() or gst_buffer_foreach_meta() instead - * and check the meta->info.api member for the API type. - * - * Params: - * api = the #GType of an API - * - * Returns: the metadata for @api on - * @buffer. - */ - public Meta getMeta(GType api) - { - auto __p = gst_buffer_get_meta(gstBuffer, api); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Meta)(cast(GstMeta*) __p); - } - - /** - * - * Params: - * apiType = the #GType of an API - * Returns: number of metas of type @api_type on @buffer. - * - * Since: 1.14 - */ - public uint getNMeta(GType apiType) - { - return gst_buffer_get_n_meta(gstBuffer, apiType); - } - - /** - * Find the first #GstReferenceTimestampMeta on @buffer that conforms to - * @reference. Conformance is tested by checking if the meta's reference is a - * subset of @reference. - * - * Buffers can contain multiple #GstReferenceTimestampMeta metadata items. - * - * Params: - * reference = a reference #GstCaps - * - * Returns: the #GstReferenceTimestampMeta or %NULL when there - * is no such metadata on @buffer. - * - * Since: 1.14 - */ - public GstReferenceTimestampMeta* getReferenceTimestampMeta(Caps reference) - { - return gst_buffer_get_reference_timestamp_meta(gstBuffer, (reference is null) ? null : reference.getCapsStruct()); - } - - /** - * Get the total size of the memory blocks in @buffer. - * - * Returns: total size of the memory blocks in @buffer. - */ - public size_t getSize() - { - return gst_buffer_get_size(gstBuffer); - } - - /** - * Get the total size of the memory blocks in @b. - * - * When not %NULL, @offset will contain the offset of the data in the - * first memory block in @buffer and @maxsize will contain the sum of - * the size and @offset and the amount of extra padding on the last - * memory block. @offset and @maxsize can be used to resize the - * buffer memory blocks with gst_buffer_resize(). - * - * Params: - * offset = a pointer to the offset - * maxsize = a pointer to the maxsize - * - * Returns: total size of the memory blocks in @buffer. - */ - public size_t getSizes(out size_t offset, out size_t maxsize) - { - return gst_buffer_get_sizes(gstBuffer, &offset, &maxsize); - } - - /** - * Get the total size of @length memory blocks stating from @idx in @buffer. - * - * When not %NULL, @offset will contain the offset of the data in the - * memory block in @buffer at @idx and @maxsize will contain the sum of the size - * and @offset and the amount of extra padding on the memory block at @idx + - * @length -1. - * @offset and @maxsize can be used to resize the buffer memory blocks with - * gst_buffer_resize_range(). - * - * Params: - * idx = an index - * length = a length - * offset = a pointer to the offset - * maxsize = a pointer to the maxsize - * - * Returns: total size of @length memory blocks starting at @idx in @buffer. - */ - public size_t getSizesRange(uint idx, int length, out size_t offset, out size_t maxsize) - { - return gst_buffer_get_sizes_range(gstBuffer, idx, length, &offset, &maxsize); - } - - /** - * Gives the status of a specific flag on a buffer. - * - * Params: - * flags = the #GstBufferFlags flag to check. - * - * Returns: %TRUE if all flags in @flags are found on @buffer. - * - * Since: 1.10 - */ - public bool hasFlags(GstBufferFlags flags) - { - return gst_buffer_has_flags(gstBuffer, flags) != 0; - } - - /** - * Insert the memory block @mem to @buffer at @idx. This function takes ownership - * of @mem and thus doesn't increase its refcount. - * - * Only gst_buffer_get_max_memory() can be added to a buffer. If more memory is - * added, existing memory blocks will automatically be merged to make room for - * the new memory. - * - * Params: - * idx = the index to add the memory at, or -1 to append it to the end - * mem = a #GstMemory. - */ - public void insertMemory(int idx, Memory mem) - { - gst_buffer_insert_memory(gstBuffer, idx, (mem is null) ? null : mem.getMemoryStruct()); - } - - /** - * Check if all memory blocks in @buffer are writable. - * - * Note that this function does not check if @buffer is writable, use - * gst_buffer_is_writable() to check that if needed. - * - * Returns: %TRUE if all memory blocks in @buffer are writable - * - * Since: 1.4 - */ - public bool isAllMemoryWritable() - { - return gst_buffer_is_all_memory_writable(gstBuffer) != 0; - } - - /** - * Check if @length memory blocks in @buffer starting from @idx are writable. - * - * @length can be -1 to check all the memory blocks after @idx. - * - * Note that this function does not check if @buffer is writable, use - * gst_buffer_is_writable() to check that if needed. - * - * Params: - * idx = an index - * length = a length should not be 0 - * - * Returns: %TRUE if the memory range is writable - * - * Since: 1.4 - */ - public bool isMemoryRangeWritable(uint idx, int length) - { - return gst_buffer_is_memory_range_writable(gstBuffer, idx, length) != 0; - } - - /** - * Retrieve the next #GstMeta after @current. If @state points - * to %NULL, the first metadata is returned. - * - * @state will be updated with an opaque state pointer - * - * Params: - * state = an opaque state pointer - * - * Returns: The next #GstMeta or %NULL - * when there are no more items. - */ - public Meta iterateMeta(out void* state) - { - auto __p = gst_buffer_iterate_meta(gstBuffer, &state); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Meta)(cast(GstMeta*) __p); - } - - /** - * Retrieve the next #GstMeta of type @meta_api_type after the current one - * according to @state. If @state points to %NULL, the first metadata of - * type @meta_api_type is returned. - * - * @state will be updated with an opaque state pointer - * - * Params: - * state = an opaque state pointer - * metaApiType = only return #GstMeta of this type - * - * Returns: The next #GstMeta of type - * @meta_api_type or %NULL when there are no more items. - * - * Since: 1.12 - */ - public Meta iterateMetaFiltered(out void* state, GType metaApiType) - { - auto __p = gst_buffer_iterate_meta_filtered(gstBuffer, &state, metaApiType); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Meta)(cast(GstMeta*) __p); - } - - /** - * This function fills @info with the #GstMapInfo of all merged memory - * blocks in @buffer. - * - * @flags describe the desired access of the memory. When @flags is - * #GST_MAP_WRITE, @buffer should be writable (as returned from - * gst_buffer_is_writable()). - * - * When @buffer is writable but the memory isn't, a writable copy will - * automatically be created and returned. The readonly copy of the - * buffer memory will then also be replaced with this writable copy. - * - * The memory in @info should be unmapped with gst_buffer_unmap() after - * usage. - * - * Params: - * info = info about the mapping - * flags = flags for the mapping - * - * Returns: %TRUE if the map succeeded and @info contains valid data. - */ - public bool map(out GstMapInfo info, GstMapFlags flags) - { - return gst_buffer_map(gstBuffer, &info, flags) != 0; - } - - /** - * This function fills @info with the #GstMapInfo of @length merged memory blocks - * starting at @idx in @buffer. When @length is -1, all memory blocks starting - * from @idx are merged and mapped. - * - * @flags describe the desired access of the memory. When @flags is - * #GST_MAP_WRITE, @buffer should be writable (as returned from - * gst_buffer_is_writable()). - * - * When @buffer is writable but the memory isn't, a writable copy will - * automatically be created and returned. The readonly copy of the buffer memory - * will then also be replaced with this writable copy. - * - * The memory in @info should be unmapped with gst_buffer_unmap() after usage. - * - * Params: - * idx = an index - * length = a length - * info = info about the mapping - * flags = flags for the mapping - * - * Returns: %TRUE if the map succeeded and @info contains valid - * data. - */ - public bool mapRange(uint idx, int length, out GstMapInfo info, GstMapFlags flags) - { - return gst_buffer_map_range(gstBuffer, idx, length, &info, flags) != 0; - } - - /** - * Compare @size bytes starting from @offset in @buffer with the memory in @mem. - * - * Params: - * offset = the offset in @buffer - * mem = the memory to compare - * - * Returns: 0 if the memory is equal. - */ - public int memcmp(size_t offset, ubyte[] mem) - { - return gst_buffer_memcmp(gstBuffer, offset, mem.ptr, cast(size_t)mem.length); - } - - /** - * Fill @buf with @size bytes with @val starting from @offset. - * - * Params: - * offset = the offset in @buffer - * val = the value to set - * size = the size to set - * - * Returns: The amount of bytes filled. This value can be lower than @size - * when @buffer did not contain enough data. - */ - public size_t memset(size_t offset, ubyte val, size_t size) - { - return gst_buffer_memset(gstBuffer, offset, val, size); - } - - /** - * Get the amount of memory blocks that this buffer has. This amount is never - * larger than what gst_buffer_get_max_memory() returns. - * - * Returns: the number of memory blocks this buffer is made of. - */ - public uint nMemory() - { - return gst_buffer_n_memory(gstBuffer); - } - - /** - * Get the memory block at @idx in @buffer. The memory block stays valid until - * the memory block in @buffer is removed, replaced or merged, typically with - * any call that modifies the memory in @buffer. - * - * Params: - * idx = an index - * - * Returns: the #GstMemory at @idx. - */ - public Memory peekMemory(uint idx) - { - auto __p = gst_buffer_peek_memory(gstBuffer, idx); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p); - } - - /** - * Prepend the memory block @mem to @buffer. This function takes - * ownership of @mem and thus doesn't increase its refcount. - * - * This function is identical to gst_buffer_insert_memory() with an index of 0. - * See gst_buffer_insert_memory() for more details. - * - * Params: - * mem = a #GstMemory. - */ - public void prependMemory(Memory mem) - { - gst_buffer_prepend_memory(gstBuffer, (mem is null) ? null : mem.getMemoryStruct()); - } - - /** - * Remove all the memory blocks in @buffer. - */ - public void removeAllMemory() - { - gst_buffer_remove_all_memory(gstBuffer); - } - - /** - * Remove the memory block in @b at index @i. - * - * Params: - * idx = an index - */ - public void removeMemory(uint idx) - { - gst_buffer_remove_memory(gstBuffer, idx); - } - - /** - * Remove @length memory blocks in @buffer starting from @idx. - * - * @length can be -1, in which case all memory starting from @idx is removed. - * - * Params: - * idx = an index - * length = a length - */ - public void removeMemoryRange(uint idx, int length) - { - gst_buffer_remove_memory_range(gstBuffer, idx, length); - } - - /** - * Remove the metadata for @meta on @buffer. - * - * Params: - * meta = a #GstMeta - * - * Returns: %TRUE if the metadata existed and was removed, %FALSE if no such - * metadata was on @buffer. - */ - public bool removeMeta(Meta meta) - { - return gst_buffer_remove_meta(gstBuffer, (meta is null) ? null : meta.getMetaStruct()) != 0; - } - - /** - * Replaces all memory in @buffer with @mem. - * - * Params: - * mem = a #GstMemory - */ - public void replaceAllMemory(Memory mem) - { - gst_buffer_replace_all_memory(gstBuffer, (mem is null) ? null : mem.getMemoryStruct()); - } - - /** - * Replaces the memory block at index @idx in @buffer with @mem. - * - * Params: - * idx = an index - * mem = a #GstMemory - */ - public void replaceMemory(uint idx, Memory mem) - { - gst_buffer_replace_memory(gstBuffer, idx, (mem is null) ? null : mem.getMemoryStruct()); - } - - /** - * Replaces @length memory blocks in @buffer starting at @idx with @mem. - * - * If @length is -1, all memory starting from @idx will be removed and - * replaced with @mem. - * - * @buffer should be writable. - * - * Params: - * idx = an index - * length = a length should not be 0 - * mem = a #GstMemory - */ - public void replaceMemoryRange(uint idx, int length, Memory mem) - { - gst_buffer_replace_memory_range(gstBuffer, idx, length, (mem is null) ? null : mem.getMemoryStruct()); - } - - /** - * Set the offset and total size of the memory blocks in @buffer. - * - * Params: - * offset = the offset adjustment - * size = the new size or -1 to just adjust the offset - */ - public void resize(ptrdiff_t offset, ptrdiff_t size) - { - gst_buffer_resize(gstBuffer, offset, size); - } - - /** - * Set the total size of the @length memory blocks starting at @idx in - * @buffer - * - * Params: - * idx = an index - * length = a length - * offset = the offset adjustment - * size = the new size or -1 to just adjust the offset - * - * Returns: %TRUE if resizing succeeded, %FALSE otherwise. - */ - public bool resizeRange(uint idx, int length, ptrdiff_t offset, ptrdiff_t size) - { - return gst_buffer_resize_range(gstBuffer, idx, length, offset, size) != 0; - } - - /** - * Sets one or more buffer flags on a buffer. - * - * Params: - * flags = the #GstBufferFlags to set. - * - * Returns: %TRUE if @flags were successfully set on buffer. - * - * Since: 1.10 - */ - public bool setFlags(GstBufferFlags flags) - { - return gst_buffer_set_flags(gstBuffer, flags) != 0; - } - - /** - * Set the total size of the memory blocks in @buffer. - * - * Params: - * size = the new size - */ - public void setSize(ptrdiff_t size) - { - gst_buffer_set_size(gstBuffer, size); - } - - /** - * Release the memory previously mapped with gst_buffer_map(). - * - * Params: - * info = a #GstMapInfo - */ - public void unmap(GstMapInfo* info) - { - gst_buffer_unmap(gstBuffer, info); - } - - /** - * Clears one or more buffer flags. - * - * Params: - * flags = the #GstBufferFlags to clear - * - * Returns: true if @flags is successfully cleared from buffer. - * - * Since: 1.10 - */ - public bool unsetFlags(GstBufferFlags flags) - { - return gst_buffer_unset_flags(gstBuffer, flags) != 0; - } - - /** - * Get the maximum amount of memory blocks that a buffer can hold. This is a - * compile time constant that can be queried with the function. - * - * When more memory blocks are added, existing memory blocks will be merged - * together to make room for the new block. - * - * Returns: the maximum amount of memory blocks that a buffer can hold. - * - * Since: 1.2 - */ - public static uint getMaxMemory() - { - return gst_buffer_get_max_memory(); - } -} diff --git a/generated/gstreamer/gstreamer/BufferList.d b/generated/gstreamer/gstreamer/BufferList.d deleted file mode 100644 index 9e2601bcd..000000000 --- a/generated/gstreamer/gstreamer/BufferList.d +++ /dev/null @@ -1,272 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.BufferList; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gstreamer.Buffer; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Buffer lists are an object containing a list of buffers. - * - * Buffer lists are created with gst_buffer_list_new() and filled with data - * using a gst_buffer_list_insert(). - * - * Buffer lists can be pushed on a srcpad with gst_pad_push_list(). This is - * interesting when multiple buffers need to be pushed in one go because it - * can reduce the amount of overhead for pushing each buffer individually. - */ -public class BufferList -{ - /** the main Gtk struct */ - protected GstBufferList* gstBufferList; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstBufferList* getBufferListStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBufferList; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstBufferList; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBufferList* gstBufferList, bool ownedRef = false) - { - this.gstBufferList = gstBufferList; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_buffer_list_get_type(); - } - - /** - * Creates a new, empty #GstBufferList. The caller is responsible for unreffing - * the returned #GstBufferList. - * - * Free-function: gst_buffer_list_unref - * - * Returns: the new #GstBufferList. gst_buffer_list_unref() - * after usage. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_buffer_list_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBufferList*) __p); - } - - /** - * Creates a new, empty #GstBufferList. The caller is responsible for unreffing - * the returned #GstBufferList. The list will have @size space preallocated so - * that memory reallocations can be avoided. - * - * Free-function: gst_buffer_list_unref - * - * Params: - * size = an initial reserved size - * - * Returns: the new #GstBufferList. gst_buffer_list_unref() - * after usage. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint size) - { - auto __p = gst_buffer_list_new_sized(size); - - if(__p is null) - { - throw new ConstructionException("null returned by new_sized"); - } - - this(cast(GstBufferList*) __p); - } - - /** - * Calculates the size of the data contained in buffer list by adding the - * size of all buffers. - * - * Returns: the size of the data contained in buffer list in bytes. - * - * Since: 1.14 - */ - public size_t calculateSize() - { - return gst_buffer_list_calculate_size(gstBufferList); - } - - /** - * Create a copy of the given buffer list. This will make a newly allocated - * copy of the buffer that the source buffer list contains. - * - * Returns: a new copy of @list. - * - * Since: 1.6 - */ - public BufferList copyDeep() - { - auto __p = gst_buffer_list_copy_deep(gstBufferList); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferList)(cast(GstBufferList*) __p, true); - } - - alias foreac = foreach_; - /** - * Call @func with @data for each buffer in @list. - * - * @func can modify the passed buffer pointer or its contents. The return value - * of @func define if this function returns or if the remaining buffers in - * the list should be skipped. - * - * Params: - * func = a #GstBufferListFunc to call - * userData = user data passed to @func - * - * Returns: %TRUE when @func returned %TRUE for each buffer in @list or when - * @list is empty. - */ - public bool foreach_(GstBufferListFunc func, void* userData) - { - return gst_buffer_list_foreach(gstBufferList, func, userData) != 0; - } - - /** - * Get the buffer at @idx. - * - * You must make sure that @idx does not exceed the number of - * buffers available. - * - * Params: - * idx = the index - * - * Returns: the buffer at @idx in @group - * or %NULL when there is no buffer. The buffer remains valid as - * long as @list is valid and buffer is not removed from the list. - */ - public Buffer get(uint idx) - { - auto __p = gst_buffer_list_get(gstBufferList, idx); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p); - } - - /** - * Gets the buffer at @idx, ensuring it is a writable buffer. - * - * You must make sure that @idx does not exceed the number of - * buffers available. - * - * Params: - * idx = the index - * - * Returns: the buffer at @idx in @group. - * The returned buffer remains valid as long as @list is valid and - * the buffer is not removed from the list. - * - * Since: 1.14 - */ - public Buffer getWritable(uint idx) - { - auto __p = gst_buffer_list_get_writable(gstBufferList, idx); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p); - } - - /** - * Insert @buffer at @idx in @list. Other buffers are moved to make room for - * this new buffer. - * - * A -1 value for @idx will append the buffer at the end. - * - * Params: - * idx = the index - * buffer = a #GstBuffer - */ - public void insert(int idx, Buffer buffer) - { - gst_buffer_list_insert(gstBufferList, idx, (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * Returns the number of buffers in @list. - * - * Returns: the number of buffers in the buffer list - */ - public uint length() - { - return gst_buffer_list_length(gstBufferList); - } - - /** - * Remove @length buffers starting from @idx in @list. The following buffers - * are moved to close the gap. - * - * Params: - * idx = the index - * length = the amount to remove - */ - public void remove(uint idx, uint length) - { - gst_buffer_list_remove(gstBufferList, idx, length); - } -} diff --git a/generated/gstreamer/gstreamer/BufferPool.d b/generated/gstreamer/gstreamer/BufferPool.d deleted file mode 100644 index 80365ad53..000000000 --- a/generated/gstreamer/gstreamer/BufferPool.d +++ /dev/null @@ -1,464 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.BufferPool; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.AllocationParams; -private import gstreamer.Allocator; -private import gstreamer.Buffer; -private import gstreamer.Caps; -private import gstreamer.ObjectGst; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A #GstBufferPool is an object that can be used to pre-allocate and recycle - * buffers of the same size and with the same properties. - * - * A #GstBufferPool is created with gst_buffer_pool_new(). - * - * Once a pool is created, it needs to be configured. A call to - * gst_buffer_pool_get_config() returns the current configuration structure from - * the pool. With gst_buffer_pool_config_set_params() and - * gst_buffer_pool_config_set_allocator() the bufferpool parameters and - * allocator can be configured. Other properties can be configured in the pool - * depending on the pool implementation. - * - * A bufferpool can have extra options that can be enabled with - * gst_buffer_pool_config_add_option(). The available options can be retrieved - * with gst_buffer_pool_get_options(). Some options allow for additional - * configuration properties to be set. - * - * After the configuration structure has been configured, - * gst_buffer_pool_set_config() updates the configuration in the pool. This can - * fail when the configuration structure is not accepted. - * - * After the a pool has been configured, it can be activated with - * gst_buffer_pool_set_active(). This will preallocate the configured resources - * in the pool. - * - * When the pool is active, gst_buffer_pool_acquire_buffer() can be used to - * retrieve a buffer from the pool. - * - * Buffers allocated from a bufferpool will automatically be returned to the - * pool with gst_buffer_pool_release_buffer() when their refcount drops to 0. - * - * The bufferpool can be deactivated again with gst_buffer_pool_set_active(). - * All further gst_buffer_pool_acquire_buffer() calls will return an error. When - * all buffers are returned to the pool they will be freed. - * - * Use gst_object_unref() to release the reference to a bufferpool. If the - * refcount of the pool reaches 0, the pool will be freed. - */ -public class BufferPool : ObjectGst -{ - /** the main Gtk struct */ - protected GstBufferPool* gstBufferPool; - - /** Get the main Gtk struct */ - public GstBufferPool* getBufferPoolStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBufferPool; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstBufferPool; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBufferPool* gstBufferPool, bool ownedRef = false) - { - this.gstBufferPool = gstBufferPool; - super(cast(GstObject*)gstBufferPool, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_buffer_pool_get_type(); - } - - /** - * Creates a new #GstBufferPool instance. - * - * Returns: a new #GstBufferPool instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_buffer_pool_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBufferPool*) __p, true); - } - - /** - * Enabled the option in @config. This will instruct the @bufferpool to enable - * the specified option on the buffers that it allocates. - * - * The supported options by @pool can be retrieved with gst_buffer_pool_get_options(). - * - * Params: - * config = a #GstBufferPool configuration - * option = an option to add - */ - public static void configAddOption(Structure config, string option) - { - gst_buffer_pool_config_add_option((config is null) ? null : config.getStructureStruct(), Str.toStringz(option)); - } - - /** - * Get the @allocator and @params from @config. - * - * Params: - * config = a #GstBufferPool configuration - * allocator = a #GstAllocator, or %NULL - * params = #GstAllocationParams, or %NULL - * - * Returns: %TRUE, if the values are set. - */ - public static bool configGetAllocator(Structure config, ref Allocator allocator, out AllocationParams params) - { - GstAllocator* outallocator = allocator.getAllocatorStruct(); - GstAllocationParams* outparams = sliceNew!GstAllocationParams(); - - auto __p = gst_buffer_pool_config_get_allocator((config is null) ? null : config.getStructureStruct(), &outallocator, outparams) != 0; - - allocator = ObjectG.getDObject!(Allocator)(outallocator); - params = ObjectG.getDObject!(AllocationParams)(outparams, true); - - return __p; - } - - /** - * Parse an available @config and get the option at @index of the options API - * array. - * - * Params: - * config = a #GstBufferPool configuration - * index = position in the option array to read - * - * Returns: a #gchar of the option at @index. - */ - public static string configGetOption(Structure config, uint index) - { - return Str.toString(gst_buffer_pool_config_get_option((config is null) ? null : config.getStructureStruct(), index)); - } - - /** - * Get the configuration values from @config. - * - * Params: - * config = a #GstBufferPool configuration - * caps = the caps of buffers - * size = the size of each buffer, not including prefix and padding - * minBuffers = the minimum amount of buffers to allocate. - * maxBuffers = the maximum amount of buffers to allocate or 0 for unlimited. - * - * Returns: %TRUE if all parameters could be fetched. - */ - public static bool configGetParams(Structure config, out Caps caps, out uint size, out uint minBuffers, out uint maxBuffers) - { - GstCaps* outcaps = null; - - auto __p = gst_buffer_pool_config_get_params((config is null) ? null : config.getStructureStruct(), &outcaps, &size, &minBuffers, &maxBuffers) != 0; - - caps = ObjectG.getDObject!(Caps)(outcaps); - - return __p; - } - - /** - * Check if @config contains @option. - * - * Params: - * config = a #GstBufferPool configuration - * option = an option - * - * Returns: %TRUE if the options array contains @option. - */ - public static bool configHasOption(Structure config, string option) - { - return gst_buffer_pool_config_has_option((config is null) ? null : config.getStructureStruct(), Str.toStringz(option)) != 0; - } - - /** - * Retrieve the number of values currently stored in the options array of the - * @config structure. - * - * Params: - * config = a #GstBufferPool configuration - * - * Returns: the options array size as a #guint. - */ - public static uint configNOptions(Structure config) - { - return gst_buffer_pool_config_n_options((config is null) ? null : config.getStructureStruct()); - } - - /** - * Set the @allocator and @params on @config. - * - * One of @allocator and @params can be %NULL, but not both. When @allocator - * is %NULL, the default allocator of the pool will use the values in @param - * to perform its allocation. When @param is %NULL, the pool will use the - * provided @allocator with its default #GstAllocationParams. - * - * A call to gst_buffer_pool_set_config() can update the allocator and params - * with the values that it is able to do. Some pools are, for example, not able - * to operate with different allocators or cannot allocate with the values - * specified in @params. Use gst_buffer_pool_get_config() to get the currently - * used values. - * - * Params: - * config = a #GstBufferPool configuration - * allocator = a #GstAllocator - * params = #GstAllocationParams - */ - public static void configSetAllocator(Structure config, Allocator allocator, AllocationParams params) - { - gst_buffer_pool_config_set_allocator((config is null) ? null : config.getStructureStruct(), (allocator is null) ? null : allocator.getAllocatorStruct(), (params is null) ? null : params.getAllocationParamsStruct()); - } - - /** - * Configure @config with the given parameters. - * - * Params: - * config = a #GstBufferPool configuration - * caps = caps for the buffers - * size = the size of each buffer, not including prefix and padding - * minBuffers = the minimum amount of buffers to allocate. - * maxBuffers = the maximum amount of buffers to allocate or 0 for unlimited. - */ - public static void configSetParams(Structure config, Caps caps, uint size, uint minBuffers, uint maxBuffers) - { - gst_buffer_pool_config_set_params((config is null) ? null : config.getStructureStruct(), (caps is null) ? null : caps.getCapsStruct(), size, minBuffers, maxBuffers); - } - - /** - * Validate that changes made to @config are still valid in the context of the - * expected parameters. This function is a helper that can be used to validate - * changes made by a pool to a config when gst_buffer_pool_set_config() - * returns %FALSE. This expects that @caps haven't changed and that - * @min_buffers aren't lower then what we initially expected. - * This does not check if options or allocator parameters are still valid, - * won't check if size have changed, since changing the size is valid to adapt - * padding. - * - * Params: - * config = a #GstBufferPool configuration - * caps = the excepted caps of buffers - * size = the expected size of each buffer, not including prefix and padding - * minBuffers = the expected minimum amount of buffers to allocate. - * maxBuffers = the expect maximum amount of buffers to allocate or 0 for unlimited. - * - * Returns: %TRUE, if the parameters are valid in this context. - * - * Since: 1.4 - */ - public static bool configValidateParams(Structure config, Caps caps, uint size, uint minBuffers, uint maxBuffers) - { - return gst_buffer_pool_config_validate_params((config is null) ? null : config.getStructureStruct(), (caps is null) ? null : caps.getCapsStruct(), size, minBuffers, maxBuffers) != 0; - } - - /** - * Acquire a buffer from @pool. @buffer should point to a memory location that - * can hold a pointer to the new buffer. - * - * @params can be %NULL or contain optional parameters to influence the - * allocation. - * - * Params: - * buffer = a location for a #GstBuffer - * params = parameters. - * - * Returns: a #GstFlowReturn such as %GST_FLOW_FLUSHING when the pool is - * inactive. - */ - public GstFlowReturn acquireBuffer(out Buffer buffer, GstBufferPoolAcquireParams* params) - { - GstBuffer* outbuffer = null; - - auto __p = gst_buffer_pool_acquire_buffer(gstBufferPool, &outbuffer, params); - - buffer = ObjectG.getDObject!(Buffer)(outbuffer); - - return __p; - } - - /** - * Get a copy of the current configuration of the pool. This configuration - * can either be modified and used for the gst_buffer_pool_set_config() call - * or it must be freed after usage. - * - * Returns: a copy of the current configuration of @pool. use - * gst_structure_free() after usage or gst_buffer_pool_set_config(). - */ - public Structure getConfig() - { - auto __p = gst_buffer_pool_get_config(gstBufferPool); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p, true); - } - - /** - * Get a %NULL terminated array of string with supported bufferpool options for - * @pool. An option would typically be enabled with - * gst_buffer_pool_config_add_option(). - * - * Returns: a %NULL terminated array - * of strings. - */ - public string[] getOptions() - { - return Str.toStringArray(gst_buffer_pool_get_options(gstBufferPool)); - } - - /** - * Check if the bufferpool supports @option. - * - * Params: - * option = an option - * - * Returns: %TRUE if the buffer pool contains @option. - */ - public bool hasOption(string option) - { - return gst_buffer_pool_has_option(gstBufferPool, Str.toStringz(option)) != 0; - } - - /** - * Check if @pool is active. A pool can be activated with the - * gst_buffer_pool_set_active() call. - * - * Returns: %TRUE when the pool is active. - */ - public bool isActive() - { - return gst_buffer_pool_is_active(gstBufferPool) != 0; - } - - /** - * Release @buffer to @pool. @buffer should have previously been allocated from - * @pool with gst_buffer_pool_acquire_buffer(). - * - * This function is usually called automatically when the last ref on @buffer - * disappears. - * - * Params: - * buffer = a #GstBuffer - */ - public void releaseBuffer(Buffer buffer) - { - gst_buffer_pool_release_buffer(gstBufferPool, (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * Control the active state of @pool. When the pool is inactive, new calls to - * gst_buffer_pool_acquire_buffer() will return with %GST_FLOW_FLUSHING. - * - * Activating the bufferpool will preallocate all resources in the pool based on - * the configuration of the pool. - * - * Deactivating will free the resources again when there are no outstanding - * buffers. When there are outstanding buffers, they will be freed as soon as - * they are all returned to the pool. - * - * Params: - * active = the new active state - * - * Returns: %FALSE when the pool was not configured or when preallocation of the - * buffers failed. - */ - public bool setActive(bool active) - { - return gst_buffer_pool_set_active(gstBufferPool, active) != 0; - } - - /** - * Set the configuration of the pool. If the pool is already configured, and - * the configuration haven't change, this function will return %TRUE. If the - * pool is active, this method will return %FALSE and active configuration - * will remain. Buffers allocated form this pool must be returned or else this - * function will do nothing and return %FALSE. - * - * @config is a #GstStructure that contains the configuration parameters for - * the pool. A default and mandatory set of parameters can be configured with - * gst_buffer_pool_config_set_params(), gst_buffer_pool_config_set_allocator() - * and gst_buffer_pool_config_add_option(). - * - * If the parameters in @config can not be set exactly, this function returns - * %FALSE and will try to update as much state as possible. The new state can - * then be retrieved and refined with gst_buffer_pool_get_config(). - * - * This function takes ownership of @config. - * - * Params: - * config = a #GstStructure - * - * Returns: %TRUE when the configuration could be set. - */ - public bool setConfig(Structure config) - { - return gst_buffer_pool_set_config(gstBufferPool, (config is null) ? null : config.getStructureStruct(true)) != 0; - } - - /** - * Enable or disable the flushing state of a @pool without freeing or - * allocating buffers. - * - * Params: - * flushing = whether to start or stop flushing - * - * Since: 1.4 - */ - public void setFlushing(bool flushing) - { - gst_buffer_pool_set_flushing(gstBufferPool, flushing); - } -} diff --git a/generated/gstreamer/gstreamer/Bus.d b/generated/gstreamer/gstreamer/Bus.d deleted file mode 100644 index db6288664..000000000 --- a/generated/gstreamer/gstreamer/Bus.d +++ /dev/null @@ -1,673 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Bus; - -private import glib.ConstructionException; -private import glib.Source; -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.Message; -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * The #GstBus is an object responsible for delivering #GstMessage packets in - * a first-in first-out way from the streaming threads (see #GstTask) to the - * application. - * - * Since the application typically only wants to deal with delivery of these - * messages from one thread, the GstBus will marshall the messages between - * different threads. This is important since the actual streaming of media - * is done in another thread than the application. - * - * The GstBus provides support for #GSource based notifications. This makes it - * possible to handle the delivery in the glib mainloop. - * - * The #GSource callback function gst_bus_async_signal_func() can be used to - * convert all bus messages into signal emissions. - * - * A message is posted on the bus with the gst_bus_post() method. With the - * gst_bus_peek() and gst_bus_pop() methods one can look at or retrieve a - * previously posted message. - * - * The bus can be polled with the gst_bus_poll() method. This methods blocks - * up to the specified timeout value until one of the specified messages types - * is posted on the bus. The application can then gst_bus_pop() the messages - * from the bus to handle them. - * Alternatively the application can register an asynchronous bus function - * using gst_bus_add_watch_full() or gst_bus_add_watch(). This function will - * install a #GSource in the default glib main loop and will deliver messages - * a short while after they have been posted. Note that the main loop should - * be running for the asynchronous callbacks. - * - * It is also possible to get messages from the bus without any thread - * marshalling with the gst_bus_set_sync_handler() method. This makes it - * possible to react to a message in the same thread that posted the - * message on the bus. This should only be used if the application is able - * to deal with messages from different threads. - * - * Every #GstPipeline has one bus. - * - * Note that a #GstPipeline will set its bus into flushing state when changing - * from READY to NULL state. - */ -public class Bus : ObjectGst -{ - /** the main Gtk struct */ - protected GstBus* gstBus; - - /** Get the main Gtk struct */ - public GstBus* getBusStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstBus; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstBus; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstBus* gstBus, bool ownedRef = false) - { - this.gstBus = gstBus; - super(cast(GstObject*)gstBus, ownedRef); - } - - /** - * Adds a bus watch to the default main context with the default priority. - * This function is used to receive asynchronous messages in the main loop. - * The watch can be removed using g_source_remove() or by returning FALSE - * from func. - * MT safe. - * Params: - * dlg = A function to call when a message is received. - * Returns: - * The event source id. - */ - public uint addWatch( bool delegate(Message) dlg ) - { - onWatchListener = dlg; - return gst_bus_add_watch(gstBus, cast(GstBusFunc)&watchCallBack, cast(void*)this); - } - - bool delegate(Message) onWatchListener; - - extern(C) static int watchCallBack(GstBus* bus, GstMessage* msg, Bus bus_d )//gpointer data) - { - Message msg_d = new Message( msg ); - - return bus_d.onWatchListener( msg_d ); - } - - /** - * Use this for making an XOverlay. - * Sets the synchronous handler on the bus. The function will be called - * every time a new message is posted on the bus. Note that the function - * will be called in the same thread context as the posting object. This - * function is usually only called by the creator of the bus. Applications - * should handle messages asynchronously using the gst_bus watch and poll - * functions. - * You cannot replace an existing sync_handler. You can pass NULL to this - * function, which will clear the existing handler. - * Params: - * dlg = The handler function to install - */ - public void setSyncHandler( GstBusSyncReply delegate(Message) dlg ) - { - onSyncHandlerListener = dlg; - gst_bus_set_sync_handler(gstBus, cast(GstBusSyncHandler)&syncHandlerCallBack, cast(void*)this, null); - } - - GstBusSyncReply delegate(Message) onSyncHandlerListener; - - extern(C) static GstBusSyncReply syncHandlerCallBack(GstBus* bus, GstMessage* msg, Bus bus_d) - { - Message msg_d = new Message( msg ); - - return bus_d.onSyncHandlerListener( msg_d ); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_bus_get_type(); - } - - /** - * Creates a new #GstBus instance. - * - * Returns: a new #GstBus instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_bus_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstBus*) __p, true); - } - - /** - * Adds a bus signal watch to the default main context with the default priority - * (%G_PRIORITY_DEFAULT). It is also possible to use a non-default - * main context set up using g_main_context_push_thread_default() (before - * one had to create a bus watch source and attach it to the desired main - * context 'manually'). - * - * After calling this statement, the bus will emit the "message" signal for each - * message posted on the bus. - * - * This function may be called multiple times. To clean up, the caller is - * responsible for calling gst_bus_remove_signal_watch() as many times as this - * function is called. - * - * MT safe. - */ - public void addSignalWatch() - { - gst_bus_add_signal_watch(gstBus); - } - - /** - * Adds a bus signal watch to the default main context with the given @priority - * (e.g. %G_PRIORITY_DEFAULT). It is also possible to use a non-default main - * context set up using g_main_context_push_thread_default() - * (before one had to create a bus watch source and attach it to the desired - * main context 'manually'). - * - * After calling this statement, the bus will emit the "message" signal for each - * message posted on the bus when the main loop is running. - * - * This function may be called multiple times. To clean up, the caller is - * responsible for calling gst_bus_remove_signal_watch() as many times as this - * function is called. - * - * There can only be a single bus watch per bus, you must remove any signal - * watch before you can set another type of watch. - * - * MT safe. - * - * Params: - * priority = The priority of the watch. - */ - public void addSignalWatchFull(int priority) - { - gst_bus_add_signal_watch_full(gstBus, priority); - } - - /** - * Adds a bus watch to the default main context with the given @priority (e.g. - * %G_PRIORITY_DEFAULT). It is also possible to use a non-default main - * context set up using g_main_context_push_thread_default() (before - * one had to create a bus watch source and attach it to the desired main - * context 'manually'). - * - * This function is used to receive asynchronous messages in the main loop. - * There can only be a single bus watch per bus, you must remove it before you - * can set a new one. - * - * The bus watch will only work if a GLib main loop is being run. - * - * When @func is called, the message belongs to the caller; if you want to - * keep a copy of it, call gst_message_ref() before leaving @func. - * - * The watch can be removed using gst_bus_remove_watch() or by returning %FALSE - * from @func. If the watch was added to the default main context it is also - * possible to remove the watch using g_source_remove(). - * - * The bus watch will take its own reference to the @bus, so it is safe to unref - * @bus using gst_object_unref() after setting the bus watch. - * - * MT safe. - * - * Params: - * priority = The priority of the watch. - * func = A function to call when a message is received. - * userData = user data passed to @func. - * notify = the function to call when the source is removed. - * - * Returns: The event source id or 0 if @bus already got an event source. - */ - public uint addWatchFull(int priority, GstBusFunc func, void* userData, GDestroyNotify notify) - { - return gst_bus_add_watch_full(gstBus, priority, func, userData, notify); - } - - /** - * A helper #GstBusFunc that can be used to convert all asynchronous messages - * into signals. - * - * Params: - * message = the #GstMessage received - * data = user data - * - * Returns: %TRUE - */ - public bool asyncSignalFunc(Message message, void* data) - { - return gst_bus_async_signal_func(gstBus, (message is null) ? null : message.getMessageStruct(), data) != 0; - } - - /** - * Create watch for this bus. The GSource will be dispatched whenever - * a message is on the bus. After the GSource is dispatched, the - * message is popped off the bus and unreffed. - * - * Returns: a #GSource that can be added to a mainloop. - */ - public Source createWatch() - { - auto __p = gst_bus_create_watch(gstBus); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); - } - - /** - * Instructs GStreamer to stop emitting the "sync-message" signal for this bus. - * See gst_bus_enable_sync_message_emission() for more information. - * - * In the event that multiple pieces of code have called - * gst_bus_enable_sync_message_emission(), the sync-message emissions will only - * be stopped after all calls to gst_bus_enable_sync_message_emission() were - * "cancelled" by calling this function. In this way the semantics are exactly - * the same as gst_object_ref() that which calls enable should also call - * disable. - * - * MT safe. - */ - public void disableSyncMessageEmission() - { - gst_bus_disable_sync_message_emission(gstBus); - } - - /** - * Instructs GStreamer to emit the "sync-message" signal after running the bus's - * sync handler. This function is here so that code can ensure that they can - * synchronously receive messages without having to affect what the bin's sync - * handler is. - * - * This function may be called multiple times. To clean up, the caller is - * responsible for calling gst_bus_disable_sync_message_emission() as many times - * as this function is called. - * - * While this function looks similar to gst_bus_add_signal_watch(), it is not - * exactly the same -- this function enables *synchronous* emission of - * signals when messages arrive; gst_bus_add_signal_watch() adds an idle callback - * to pop messages off the bus *asynchronously*. The sync-message signal - * comes from the thread of whatever object posted the message; the "message" - * signal is marshalled to the main thread via the main loop. - * - * MT safe. - */ - public void enableSyncMessageEmission() - { - gst_bus_enable_sync_message_emission(gstBus); - } - - /** - * Gets the file descriptor from the bus which can be used to get notified about - * messages being available with functions like g_poll(), and allows integration - * into other event loops based on file descriptors. - * Whenever a message is available, the POLLIN / %G_IO_IN event is set. - * - * Warning: NEVER read or write anything to the returned fd but only use it - * for getting notifications via g_poll() or similar and then use the normal - * GstBus API, e.g. gst_bus_pop(). - * - * Params: - * fd = A GPollFD to fill - * - * Since: 1.14 - */ - public void getPollfd(out GPollFD fd) - { - gst_bus_get_pollfd(gstBus, &fd); - } - - /** - * Check if there are pending messages on the bus that - * should be handled. - * - * Returns: %TRUE if there are messages on the bus to be handled, %FALSE - * otherwise. - * - * MT safe. - */ - public bool havePending() - { - return gst_bus_have_pending(gstBus) != 0; - } - - /** - * Peek the message on the top of the bus' queue. The message will remain - * on the bus' message queue. A reference is returned, and needs to be unreffed - * by the caller. - * - * Returns: the #GstMessage that is on the - * bus, or %NULL if the bus is empty. - * - * MT safe. - */ - public Message peek() - { - auto __p = gst_bus_peek(gstBus); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * Poll the bus for messages. Will block while waiting for messages to come. - * You can specify a maximum time to poll with the @timeout parameter. If - * @timeout is negative, this function will block indefinitely. - * - * All messages not in @events will be popped off the bus and will be ignored. - * It is not possible to use message enums beyond #GST_MESSAGE_EXTENDED in the - * @events mask - * - * Because poll is implemented using the "message" signal enabled by - * gst_bus_add_signal_watch(), calling gst_bus_poll() will cause the "message" - * signal to be emitted for every message that poll sees. Thus a "message" - * signal handler will see the same messages that this function sees -- neither - * will steal messages from the other. - * - * This function will run a main loop from the default main context when - * polling. - * - * You should never use this function, since it is pure evil. This is - * especially true for GUI applications based on Gtk+ or Qt, but also for any - * other non-trivial application that uses the GLib main loop. As this function - * runs a GLib main loop, any callback attached to the default GLib main - * context may be invoked. This could be timeouts, GUI events, I/O events etc.; - * even if gst_bus_poll() is called with a 0 timeout. Any of these callbacks - * may do things you do not expect, e.g. destroy the main application window or - * some other resource; change other application state; display a dialog and - * run another main loop until the user clicks it away. In short, using this - * function may add a lot of complexity to your code through unexpected - * re-entrancy and unexpected changes to your application's state. - * - * For 0 timeouts use gst_bus_pop_filtered() instead of this function; for - * other short timeouts use gst_bus_timed_pop_filtered(); everything else is - * better handled by setting up an asynchronous bus watch and doing things - * from there. - * - * Params: - * events = a mask of #GstMessageType, representing the set of message types to - * poll for (note special handling of extended message types below) - * timeout = the poll timeout, as a #GstClockTime, or #GST_CLOCK_TIME_NONE to poll - * indefinitely. - * - * Returns: the message that was received, - * or %NULL if the poll timed out. The message is taken from the - * bus and needs to be unreffed with gst_message_unref() after - * usage. - */ - public Message poll(GstMessageType events, GstClockTime timeout) - { - auto __p = gst_bus_poll(gstBus, events, timeout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * Get a message from the bus. - * - * Returns: the #GstMessage that is on the - * bus, or %NULL if the bus is empty. The message is taken from - * the bus and needs to be unreffed with gst_message_unref() after - * usage. - * - * MT safe. - */ - public Message pop() - { - auto __p = gst_bus_pop(gstBus); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * Get a message matching @type from the bus. Will discard all messages on - * the bus that do not match @type and that have been posted before the first - * message that does match @type. If there is no message matching @type on - * the bus, all messages will be discarded. It is not possible to use message - * enums beyond #GST_MESSAGE_EXTENDED in the @events mask. - * - * Params: - * types = message types to take into account - * - * Returns: the next #GstMessage matching - * @type that is on the bus, or %NULL if the bus is empty or there - * is no message matching @type. The message is taken from the bus - * and needs to be unreffed with gst_message_unref() after usage. - * - * MT safe. - */ - public Message popFiltered(GstMessageType types) - { - auto __p = gst_bus_pop_filtered(gstBus, types); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * Post a message on the given bus. Ownership of the message - * is taken by the bus. - * - * Params: - * message = the #GstMessage to post - * - * Returns: %TRUE if the message could be posted, %FALSE if the bus is flushing. - * - * MT safe. - */ - public bool post(Message message) - { - return gst_bus_post(gstBus, (message is null) ? null : message.getMessageStruct()) != 0; - } - - /** - * Removes a signal watch previously added with gst_bus_add_signal_watch(). - * - * MT safe. - */ - public void removeSignalWatch() - { - gst_bus_remove_signal_watch(gstBus); - } - - /** - * Removes an installed bus watch from @bus. - * - * Returns: %TRUE on success or %FALSE if @bus has no event source. - * - * Since: 1.6 - */ - public bool removeWatch() - { - return gst_bus_remove_watch(gstBus) != 0; - } - - /** - * If @flushing, flush out and unref any messages queued in the bus. Releases - * references to the message origin objects. Will flush future messages until - * gst_bus_set_flushing() sets @flushing to %FALSE. - * - * MT safe. - * - * Params: - * flushing = whether or not to flush the bus - */ - public void setFlushing(bool flushing) - { - gst_bus_set_flushing(gstBus, flushing); - } - - /** - * A helper GstBusSyncHandler that can be used to convert all synchronous - * messages into signals. - * - * Params: - * message = the #GstMessage received - * data = user data - * - * Returns: GST_BUS_PASS - */ - public GstBusSyncReply syncSignalHandler(Message message, void* data) - { - return gst_bus_sync_signal_handler(gstBus, (message is null) ? null : message.getMessageStruct(), data); - } - - /** - * Get a message from the bus, waiting up to the specified timeout. - * - * If @timeout is 0, this function behaves like gst_bus_pop(). If @timeout is - * #GST_CLOCK_TIME_NONE, this function will block forever until a message was - * posted on the bus. - * - * Params: - * timeout = a timeout - * - * Returns: the #GstMessage that is on the - * bus after the specified timeout or %NULL if the bus is empty - * after the timeout expired. The message is taken from the bus - * and needs to be unreffed with gst_message_unref() after usage. - * - * MT safe. - */ - public Message timedPop(GstClockTime timeout) - { - auto __p = gst_bus_timed_pop(gstBus, timeout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * Get a message from the bus whose type matches the message type mask @types, - * waiting up to the specified timeout (and discarding any messages that do not - * match the mask provided). - * - * If @timeout is 0, this function behaves like gst_bus_pop_filtered(). If - * @timeout is #GST_CLOCK_TIME_NONE, this function will block forever until a - * matching message was posted on the bus. - * - * Params: - * timeout = a timeout in nanoseconds, or GST_CLOCK_TIME_NONE to wait forever - * types = message types to take into account, GST_MESSAGE_ANY for any type - * - * Returns: a #GstMessage matching the - * filter in @types, or %NULL if no matching message was found on - * the bus until the timeout expired. The message is taken from - * the bus and needs to be unreffed with gst_message_unref() after - * usage. - * - * MT safe. - */ - public Message timedPopFiltered(GstClockTime timeout, GstMessageType types) - { - auto __p = gst_bus_timed_pop_filtered(gstBus, timeout, types); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * A message has been posted on the bus. This signal is emitted from a - * GSource added to the mainloop. this signal will only be emitted when - * there is a mainloop running. - * - * Params: - * message = the message that has been posted asynchronously - */ - gulong addOnMessage(void delegate(Message, Bus) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "message", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * A message has been posted on the bus. This signal is emitted from the - * thread that posted the message so one has to be careful with locking. - * - * This signal will not be emitted by default, you have to call - * gst_bus_enable_sync_message_emission() before. - * - * Params: - * message = the message that has been posted synchronously - */ - gulong addOnSyncMessage(void delegate(Message, Bus) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "sync-message", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/Caps.d b/generated/gstreamer/gstreamer/Caps.d deleted file mode 100644 index fa5ddaedd..000000000 --- a/generated/gstreamer/gstreamer/Caps.d +++ /dev/null @@ -1,941 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Caps; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.CapsFeatures; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Caps (capabilities) are lightweight refcounted objects describing media types. - * They are composed of an array of #GstStructure. - * - * Caps are exposed on #GstPadTemplate to describe all possible types a - * given pad can handle. They are also stored in the #GstRegistry along with - * a description of the #GstElement. - * - * Caps are exposed on the element pads using the gst_pad_query_caps() pad - * function. This function describes the possible types that the pad can - * handle or produce at runtime. - * - * A #GstCaps can be constructed with the following code fragment: - * |[ - * GstCaps *caps = gst_caps_new_simple ("video/x-raw", - * "format", G_TYPE_STRING, "I420", - * "framerate", GST_TYPE_FRACTION, 25, 1, - * "pixel-aspect-ratio", GST_TYPE_FRACTION, 1, 1, - * "width", G_TYPE_INT, 320, - * "height", G_TYPE_INT, 240, - * NULL); - * ]| - * - * A #GstCaps is fixed when it has no properties with ranges or lists. Use - * gst_caps_is_fixed() to test for fixed caps. Fixed caps can be used in a - * caps event to notify downstream elements of the current media type. - * - * Various methods exist to work with the media types such as subtracting - * or intersecting. - * - * Be aware that the current #GstCaps / #GstStructure serialization into string - * has limited support for nested #GstCaps / #GstStructure fields. It can only - * support one level of nesting. Using more levels will lead to unexpected - * behavior when using serialization features, such as gst_caps_to_string() or - * gst_value_serialize() and their counterparts. - */ -public class Caps -{ - /** the main Gtk struct */ - protected GstCaps* gstCaps; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstCaps* getCapsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstCaps; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstCaps; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstCaps* gstCaps, bool ownedRef = false) - { - this.gstCaps = gstCaps; - this.ownedRef = ownedRef; - } - - /** - * Creates a new GstCaps that indicates that it is compatible with - * any media format. - * Returns: - * the new GstCaps - */ - public static Caps newAny() - { - // GstCaps* gst_caps_new_any (void); - auto p = cast(GstCaps*)gst_caps_new_any(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_caps_new_any"); - } - - return new Caps(cast(GstCaps*)p); //, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_caps_get_type(); - } - - /** - * Creates a new #GstCaps that is empty. That is, the returned - * #GstCaps contains no media formats. - * The #GstCaps is guaranteed to be writable. - * Caller is responsible for unreffing the returned caps. - * - * Returns: the new #GstCaps - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_caps_new_empty(); - - if(__p is null) - { - throw new ConstructionException("null returned by new_empty"); - } - - this(cast(GstCaps*) __p); - } - - /** - * Creates a new #GstCaps that contains one #GstStructure with name - * @media_type. - * Caller is responsible for unreffing the returned caps. - * - * Params: - * mediaType = the media type of the structure - * - * Returns: the new #GstCaps - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string mediaType) - { - auto __p = gst_caps_new_empty_simple(Str.toStringz(mediaType)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_empty_simple"); - } - - this(cast(GstCaps*) __p); - } - - /** - * Creates a new #GstCaps and adds all the structures listed as - * arguments. The list must be %NULL-terminated. The structures - * are not copied; the returned #GstCaps owns the structures. - * - * Params: - * structure = the first structure to add - * varArgs = additional structures to add - * - * Returns: the new #GstCaps - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Structure structure, void* varArgs) - { - auto __p = gst_caps_new_full_valist((structure is null) ? null : structure.getStructureStruct(), varArgs); - - if(__p is null) - { - throw new ConstructionException("null returned by new_full_valist"); - } - - this(cast(GstCaps*) __p); - } - - /** - * Appends the structures contained in @caps2 to @caps1. The structures in - * @caps2 are not copied -- they are transferred to @caps1, and then @caps2 is - * freed. If either caps is ANY, the resulting caps will be ANY. - * - * Params: - * caps2 = the #GstCaps to append - */ - public void append(Caps caps2) - { - gst_caps_append(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()); - } - - /** - * Appends @structure to @caps. The structure is not copied; @caps - * becomes the owner of @structure. - * - * Params: - * structure = the #GstStructure to append - */ - public void appendStructure(Structure structure) - { - gst_caps_append_structure(gstCaps, (structure is null) ? null : structure.getStructureStruct(true)); - } - - /** - * Appends @structure with @features to @caps. The structure is not copied; @caps - * becomes the owner of @structure. - * - * Params: - * structure = the #GstStructure to append - * features = the #GstCapsFeatures to append - * - * Since: 1.2 - */ - public void appendStructureFull(Structure structure, CapsFeatures features) - { - gst_caps_append_structure_full(gstCaps, (structure is null) ? null : structure.getStructureStruct(true), (features is null) ? null : features.getCapsFeaturesStruct(true)); - } - - /** - * Tries intersecting @caps1 and @caps2 and reports whether the result would not - * be empty - * - * Params: - * caps2 = a #GstCaps to intersect - * - * Returns: %TRUE if intersection would be not empty - */ - public bool canIntersect(Caps caps2) - { - return gst_caps_can_intersect(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()) != 0; - } - - /** - * Creates a new #GstCaps as a copy of the old @caps. The new caps will have a - * refcount of 1, owned by the caller. The structures are copied as well. - * - * Note that this function is the semantic equivalent of a gst_caps_ref() - * followed by a gst_caps_make_writable(). If you only want to hold on to a - * reference to the data, you should use gst_caps_ref(). - * - * When you are finished with the caps, call gst_caps_unref() on it. - * - * Returns: the new #GstCaps - */ - public Caps copy() - { - auto __p = gst_caps_copy(gstCaps); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Creates a new #GstCaps and appends a copy of the nth structure - * contained in @caps. - * - * Params: - * nth = the nth structure to copy - * - * Returns: the new #GstCaps - * - * Since: 1.16 - */ - public Caps copyNth(uint nth) - { - auto __p = gst_caps_copy_nth(gstCaps, nth); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Calls the provided function once for each structure and caps feature in the - * #GstCaps. In contrast to gst_caps_foreach(), the function may modify the - * structure and features. In contrast to gst_caps_filter_and_map_in_place(), - * the structure and features are removed from the caps if %FALSE is returned - * from the function. - * The caps must be mutable. - * - * Params: - * func = a function to call for each field - * userData = private data - * - * Since: 1.6 - */ - public void filterAndMapInPlace(GstCapsFilterMapFunc func, void* userData) - { - gst_caps_filter_and_map_in_place(gstCaps, func, userData); - } - - /** - * Modifies the given @caps into a representation with only fixed - * values. First the caps will be truncated and then the first structure will be - * fixated with gst_structure_fixate(). - * - * This function takes ownership of @caps and will call gst_caps_make_writable() - * on it so you must not use @caps afterwards unless you keep an additional - * reference to it with gst_caps_ref(). - * - * Note that it is not guaranteed that the returned caps have exactly one - * structure. If @caps are empty caps then then returned caps will be - * the empty too and contain no structure at all. - * - * Calling this function with any caps is not allowed. - * - * Returns: the fixated caps - */ - public Caps fixate() - { - auto __p = gst_caps_fixate(gstCaps); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - alias foreac = foreach_; - /** - * Calls the provided function once for each structure and caps feature in the - * #GstCaps. The function must not modify the fields. - * Also see gst_caps_map_in_place() and gst_caps_filter_and_map_in_place(). - * - * Params: - * func = a function to call for each field - * userData = private data - * - * Returns: %TRUE if the supplied function returns %TRUE for each call, - * %FALSE otherwise. - * - * Since: 1.6 - */ - public bool foreach_(GstCapsForeachFunc func, void* userData) - { - return gst_caps_foreach(gstCaps, func, userData) != 0; - } - - /** - * Finds the features in @caps that has the index @index, and - * returns it. - * - * WARNING: This function takes a const GstCaps *, but returns a - * non-const GstCapsFeatures *. This is for programming convenience -- - * the caller should be aware that structures inside a constant - * #GstCaps should not be modified. However, if you know the caps - * are writable, either because you have just copied them or made - * them writable with gst_caps_make_writable(), you may modify the - * features returned in the usual way, e.g. with functions like - * gst_caps_features_add(). - * - * You do not need to free or unref the structure returned, it - * belongs to the #GstCaps. - * - * Params: - * index = the index of the structure - * - * Returns: a pointer to the #GstCapsFeatures - * corresponding to @index - * - * Since: 1.2 - */ - public CapsFeatures getFeatures(uint index) - { - auto __p = gst_caps_get_features(gstCaps, index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(CapsFeatures)(cast(GstCapsFeatures*) __p); - } - - /** - * Gets the number of structures contained in @caps. - * - * Returns: the number of structures that @caps contains - */ - public uint getSize() - { - return gst_caps_get_size(gstCaps); - } - - /** - * Finds the structure in @caps that has the index @index, and - * returns it. - * - * WARNING: This function takes a const GstCaps *, but returns a - * non-const GstStructure *. This is for programming convenience -- - * the caller should be aware that structures inside a constant - * #GstCaps should not be modified. However, if you know the caps - * are writable, either because you have just copied them or made - * them writable with gst_caps_make_writable(), you may modify the - * structure returned in the usual way, e.g. with functions like - * gst_structure_set(). - * - * You do not need to free or unref the structure returned, it - * belongs to the #GstCaps. - * - * Params: - * index = the index of the structure - * - * Returns: a pointer to the #GstStructure corresponding - * to @index - */ - public Structure getStructure(uint index) - { - auto __p = gst_caps_get_structure(gstCaps, index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Creates a new #GstCaps that contains all the formats that are common - * to both @caps1 and @caps2. Defaults to %GST_CAPS_INTERSECT_ZIG_ZAG mode. - * - * Params: - * caps2 = a #GstCaps to intersect - * - * Returns: the new #GstCaps - */ - public Caps intersect(Caps caps2) - { - auto __p = gst_caps_intersect(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Creates a new #GstCaps that contains all the formats that are common - * to both @caps1 and @caps2, the order is defined by the #GstCapsIntersectMode - * used. - * - * Params: - * caps2 = a #GstCaps to intersect - * mode = The intersection algorithm/mode to use - * - * Returns: the new #GstCaps - */ - public Caps intersectFull(Caps caps2, GstCapsIntersectMode mode) - { - auto __p = gst_caps_intersect_full(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct(), mode); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * A given #GstCaps structure is always compatible with another if - * every media format that is in the first is also contained in the - * second. That is, @caps1 is a subset of @caps2. - * - * Params: - * caps2 = the #GstCaps to test - * - * Returns: %TRUE if @caps1 is a subset of @caps2. - */ - public bool isAlwaysCompatible(Caps caps2) - { - return gst_caps_is_always_compatible(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()) != 0; - } - - /** - * Determines if @caps represents any media format. - * - * Returns: %TRUE if @caps represents any format. - */ - public bool isAny() - { - return gst_caps_is_any(gstCaps) != 0; - } - - /** - * Determines if @caps represents no media formats. - * - * Returns: %TRUE if @caps represents no formats. - */ - public bool isEmpty() - { - return gst_caps_is_empty(gstCaps) != 0; - } - - /** - * Checks if the given caps represent the same set of caps. - * - * Params: - * caps2 = another #GstCaps - * - * Returns: %TRUE if both caps are equal. - */ - public bool isEqual(Caps caps2) - { - return gst_caps_is_equal(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()) != 0; - } - - /** - * Tests if two #GstCaps are equal. This function only works on fixed - * #GstCaps. - * - * Params: - * caps2 = the #GstCaps to test - * - * Returns: %TRUE if the arguments represent the same format - */ - public bool isEqualFixed(Caps caps2) - { - return gst_caps_is_equal_fixed(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()) != 0; - } - - /** - * Fixed #GstCaps describe exactly one format, that is, they have exactly - * one structure, and each field in the structure describes a fixed type. - * Examples of non-fixed types are GST_TYPE_INT_RANGE and GST_TYPE_LIST. - * - * Returns: %TRUE if @caps is fixed - */ - public bool isFixed() - { - return gst_caps_is_fixed(gstCaps) != 0; - } - - /** - * Checks if the given caps are exactly the same set of caps. - * - * Params: - * caps2 = another #GstCaps - * - * Returns: %TRUE if both caps are strictly equal. - */ - public bool isStrictlyEqual(Caps caps2) - { - return gst_caps_is_strictly_equal(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()) != 0; - } - - /** - * Checks if all caps represented by @subset are also represented by @superset. - * - * Params: - * superset = a potentially greater #GstCaps - * - * Returns: %TRUE if @subset is a subset of @superset - */ - public bool isSubset(Caps superset) - { - return gst_caps_is_subset(gstCaps, (superset is null) ? null : superset.getCapsStruct()) != 0; - } - - /** - * Checks if @structure is a subset of @caps. See gst_caps_is_subset() - * for more information. - * - * Params: - * structure = a potential #GstStructure subset of @caps - * - * Returns: %TRUE if @structure is a subset of @caps - */ - public bool isSubsetStructure(Structure structure) - { - return gst_caps_is_subset_structure(gstCaps, (structure is null) ? null : structure.getStructureStruct()) != 0; - } - - /** - * Checks if @structure is a subset of @caps. See gst_caps_is_subset() - * for more information. - * - * Params: - * structure = a potential #GstStructure subset of @caps - * features = a #GstCapsFeatures for @structure - * - * Returns: %TRUE if @structure is a subset of @caps - * - * Since: 1.2 - */ - public bool isSubsetStructureFull(Structure structure, CapsFeatures features) - { - return gst_caps_is_subset_structure_full(gstCaps, (structure is null) ? null : structure.getStructureStruct(), (features is null) ? null : features.getCapsFeaturesStruct()) != 0; - } - - /** - * Calls the provided function once for each structure and caps feature in the - * #GstCaps. In contrast to gst_caps_foreach(), the function may modify but not - * delete the structures and features. The caps must be mutable. - * - * Params: - * func = a function to call for each field - * userData = private data - * - * Returns: %TRUE if the supplied function returns %TRUE for each call, - * %FALSE otherwise. - * - * Since: 1.6 - */ - public bool mapInPlace(GstCapsMapFunc func, void* userData) - { - return gst_caps_map_in_place(gstCaps, func, userData) != 0; - } - - /** - * Appends the structures contained in @caps2 to @caps1 if they are not yet - * expressed by @caps1. The structures in @caps2 are not copied -- they are - * transferred to a writable copy of @caps1, and then @caps2 is freed. - * If either caps is ANY, the resulting caps will be ANY. - * - * Params: - * caps2 = the #GstCaps to merge in - * - * Returns: the merged caps. - */ - public Caps merge(Caps caps2) - { - auto __p = gst_caps_merge(gstCaps, (caps2 is null) ? null : caps2.getCapsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Appends @structure to @caps if its not already expressed by @caps. - * - * Params: - * structure = the #GstStructure to merge - * - * Returns: the merged caps. - */ - public Caps mergeStructure(Structure structure) - { - auto __p = gst_caps_merge_structure(gstCaps, (structure is null) ? null : structure.getStructureStruct(true)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Appends @structure with @features to @caps if its not already expressed by @caps. - * - * Params: - * structure = the #GstStructure to merge - * features = the #GstCapsFeatures to merge - * - * Returns: the merged caps. - * - * Since: 1.2 - */ - public Caps mergeStructureFull(Structure structure, CapsFeatures features) - { - auto __p = gst_caps_merge_structure_full(gstCaps, (structure is null) ? null : structure.getStructureStruct(true), (features is null) ? null : features.getCapsFeaturesStruct(true)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Returns a #GstCaps that represents the same set of formats as - * @caps, but contains no lists. Each list is expanded into separate - * @GstStructures. - * - * This function takes ownership of @caps and will call gst_caps_make_writable() - * on it so you must not use @caps afterwards unless you keep an additional - * reference to it with gst_caps_ref(). - * - * Returns: the normalized #GstCaps - */ - public Caps normalize() - { - auto __p = gst_caps_normalize(gstCaps); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * removes the structure with the given index from the list of structures - * contained in @caps. - * - * Params: - * idx = Index of the structure to remove - */ - public void removeStructure(uint idx) - { - gst_caps_remove_structure(gstCaps, idx); - } - - /** - * Sets the #GstCapsFeatures @features for the structure at @index. - * - * Params: - * index = the index of the structure - * features = the #GstCapsFeatures to set - * - * Since: 1.2 - */ - public void setFeatures(uint index, CapsFeatures features) - { - gst_caps_set_features(gstCaps, index, (features is null) ? null : features.getCapsFeaturesStruct(true)); - } - - /** - * Sets the #GstCapsFeatures @features for all the structures of @caps. - * - * Params: - * features = the #GstCapsFeatures to set - * - * Since: 1.16 - */ - public void setFeaturesSimple(CapsFeatures features) - { - gst_caps_set_features_simple(gstCaps, (features is null) ? null : features.getCapsFeaturesStruct(true)); - } - - /** - * Sets fields in a #GstCaps. The arguments must be passed in the same - * manner as gst_structure_set(), and be %NULL-terminated. - * - * Params: - * field = first field to set - * varargs = additional parameters - */ - public void setSimpleValist(string field, void* varargs) - { - gst_caps_set_simple_valist(gstCaps, Str.toStringz(field), varargs); - } - - /** - * Sets the given @field on all structures of @caps to the given @value. - * This is a convenience function for calling gst_structure_set_value() on - * all structures of @caps. - * - * Params: - * field = name of the field to set - * value = value to set the field to - */ - public void setValue(string field, Value value) - { - gst_caps_set_value(gstCaps, Str.toStringz(field), (value is null) ? null : value.getValueStruct()); - } - - /** - * Converts the given @caps into a representation that represents the - * same set of formats, but in a simpler form. Component structures that are - * identical are merged. Component structures that have values that can be - * merged are also merged. - * - * This function takes ownership of @caps and will call gst_caps_make_writable() - * on it if necessary, so you must not use @caps afterwards unless you keep an - * additional reference to it with gst_caps_ref(). - * - * This method does not preserve the original order of @caps. - * - * Returns: The simplified caps. - */ - public Caps simplify() - { - auto __p = gst_caps_simplify(gstCaps); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Retrieves the structure with the given index from the list of structures - * contained in @caps. The caller becomes the owner of the returned structure. - * - * Params: - * index = Index of the structure to retrieve - * - * Returns: a pointer to the #GstStructure - * corresponding to @index. - */ - public Structure stealStructure(uint index) - { - auto __p = gst_caps_steal_structure(gstCaps, index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p, true); - } - - /** - * Subtracts the @subtrahend from the @minuend. - * > This function does not work reliably if optional properties for caps - * > are included on one caps and omitted on the other. - * - * Params: - * subtrahend = #GstCaps to subtract - * - * Returns: the resulting caps - */ - public Caps subtract(Caps subtrahend) - { - auto __p = gst_caps_subtract(gstCaps, (subtrahend is null) ? null : subtrahend.getCapsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Converts @caps to a string representation. This string representation - * can be converted back to a #GstCaps by gst_caps_from_string(). - * - * For debugging purposes its easier to do something like this: - * |[ - * GST_LOG ("caps are %" GST_PTR_FORMAT, caps); - * ]| - * This prints the caps in human readable form. - * - * The current implementation of serialization will lead to unexpected results - * when there are nested #GstCaps / #GstStructure deeper than one level. - * - * Returns: a newly allocated string representing @caps. - */ - public override string toString() - { - auto retStr = gst_caps_to_string(gstCaps); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Discard all but the first structure from @caps. Useful when - * fixating. - * - * This function takes ownership of @caps and will call gst_caps_make_writable() - * on it if necessary, so you must not use @caps afterwards unless you keep an - * additional reference to it with gst_caps_ref(). - * - * Note that it is not guaranteed that the returned caps have exactly one - * structure. If @caps is any or empty caps then then returned caps will be - * the same and contain no structure at all. - * - * Returns: truncated caps - */ - public Caps truncate() - { - auto __p = gst_caps_truncate(gstCaps); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Converts @caps from a string representation. - * - * The current implementation of serialization will lead to unexpected results - * when there are nested #GstCaps / #GstStructure deeper than one level. - * - * Params: - * string_ = a string to convert to #GstCaps - * - * Returns: a newly allocated #GstCaps - */ - public static Caps fromString(string string_) - { - auto __p = gst_caps_from_string(Str.toStringz(string_)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } -} diff --git a/generated/gstreamer/gstreamer/CapsFeatures.d b/generated/gstreamer/gstreamer/CapsFeatures.d deleted file mode 100644 index d6fb56268..000000000 --- a/generated/gstreamer/gstreamer/CapsFeatures.d +++ /dev/null @@ -1,455 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.CapsFeatures; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * #GstCapsFeatures can optionally be set on a #GstCaps to add requirements - * for additional features for a specific #GstStructure. Caps structures with - * the same name but with a non-equal set of caps features are not compatible. - * If a pad supports multiple sets of features it has to add multiple equal - * structures with different feature sets to the caps. - * - * Empty #GstCapsFeatures are equivalent with the #GstCapsFeatures that only - * contain #GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY. ANY #GstCapsFeatures as - * created by gst_caps_features_new_any() are equal to any other #GstCapsFeatures - * and can be used to specify that any #GstCapsFeatures would be supported, e.g. - * for elements that don't touch buffer memory. #GstCaps with ANY #GstCapsFeatures - * are considered non-fixed and during negotiation some #GstCapsFeatures have - * to be selected. - * - * Examples for caps features would be the requirement of a specific #GstMemory - * types or the requirement of having a specific #GstMeta on the buffer. Features - * are given as a string of the format "memory:GstMemoryTypeName" or - * "meta:GstMetaAPIName". - * - * Since: 1.2 - */ -public class CapsFeatures -{ - /** the main Gtk struct */ - protected GstCapsFeatures* gstCapsFeatures; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstCapsFeatures* getCapsFeaturesStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstCapsFeatures; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstCapsFeatures; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstCapsFeatures* gstCapsFeatures, bool ownedRef = false) - { - this.gstCapsFeatures = gstCapsFeatures; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_caps_features_free(gstCapsFeatures); - } - - /** - * Creates a new, ANY #GstCapsFeatures. This will be equal - * to any other #GstCapsFeatures but caps with these are - * unfixed. - * - * Free-function: gst_caps_features_free - * - * Return: a new, ANY #GstCapsFeatures - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static newAny() - { - auto p = gst_caps_features_new_any(); - - if(p is null) - { - throw new ConstructionException("null returned by new_any"); - } - - return new CapsFeatures(cast(GstCapsFeatures*)p); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_caps_features_get_type(); - } - - /** - * Creates a new, empty #GstCapsFeatures. - * - * Free-function: gst_caps_features_free - * - * Returns: a new, empty #GstCapsFeatures - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_caps_features_new_empty(); - - if(__p is null) - { - throw new ConstructionException("null returned by new_empty"); - } - - this(cast(GstCapsFeatures*) __p); - } - - /** - * Creates a new #GstCapsFeatures with the given features. - * - * Free-function: gst_caps_features_free - * - * Params: - * feature1 = name of first feature to set - * varargs = variable argument list - * - * Returns: a new, empty #GstCapsFeatures - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GQuark feature1, void* varargs) - { - auto __p = gst_caps_features_new_id_valist(feature1, varargs); - - if(__p is null) - { - throw new ConstructionException("null returned by new_id_valist"); - } - - this(cast(GstCapsFeatures*) __p); - } - - /** - * Creates a new #GstCapsFeatures with the given features. - * - * Free-function: gst_caps_features_free - * - * Params: - * feature1 = name of first feature to set - * varargs = variable argument list - * - * Returns: a new, empty #GstCapsFeatures - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string feature1, void* varargs) - { - auto __p = gst_caps_features_new_valist(Str.toStringz(feature1), varargs); - - if(__p is null) - { - throw new ConstructionException("null returned by new_valist"); - } - - this(cast(GstCapsFeatures*) __p); - } - - /** - * Adds @feature to @features. - * - * Params: - * feature = a feature. - * - * Since: 1.2 - */ - public void add(string feature) - { - gst_caps_features_add(gstCapsFeatures, Str.toStringz(feature)); - } - - /** - * Adds @feature to @features. - * - * Params: - * feature = a feature. - * - * Since: 1.2 - */ - public void addId(GQuark feature) - { - gst_caps_features_add_id(gstCapsFeatures, feature); - } - - /** - * Check if @features contains @feature. - * - * Params: - * feature = a feature - * - * Returns: %TRUE if @features contains @feature. - * - * Since: 1.2 - */ - public bool contains(string feature) - { - return gst_caps_features_contains(gstCapsFeatures, Str.toStringz(feature)) != 0; - } - - /** - * Check if @features contains @feature. - * - * Params: - * feature = a feature - * - * Returns: %TRUE if @features contains @feature. - * - * Since: 1.2 - */ - public bool containsId(GQuark feature) - { - return gst_caps_features_contains_id(gstCapsFeatures, feature) != 0; - } - - /** - * Duplicates a #GstCapsFeatures and all its values. - * - * Free-function: gst_caps_features_free - * - * Returns: a new #GstCapsFeatures. - * - * Since: 1.2 - */ - public CapsFeatures copy() - { - auto __p = gst_caps_features_copy(gstCapsFeatures); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(CapsFeatures)(cast(GstCapsFeatures*) __p, true); - } - - /** - * Frees a #GstCapsFeatures and all its values. The caps features must not - * have a parent when this function is called. - * - * Since: 1.2 - */ - public void free() - { - gst_caps_features_free(gstCapsFeatures); - ownedRef = false; - } - - /** - * Returns the @i-th feature of @features. - * - * Params: - * i = index of the feature - * - * Returns: The @i-th feature of @features. - * - * Since: 1.2 - */ - public string getNth(uint i) - { - return Str.toString(gst_caps_features_get_nth(gstCapsFeatures, i)); - } - - /** - * Returns the @i-th feature of @features. - * - * Params: - * i = index of the feature - * - * Returns: The @i-th feature of @features. - * - * Since: 1.2 - */ - public GQuark getNthId(uint i) - { - return gst_caps_features_get_nth_id(gstCapsFeatures, i); - } - - /** - * Returns the number of features in @features. - * - * Returns: The number of features in @features. - * - * Since: 1.2 - */ - public uint getSize() - { - return gst_caps_features_get_size(gstCapsFeatures); - } - - /** - * Check if @features is %GST_CAPS_FEATURES_ANY. - * - * Returns: %TRUE if @features is %GST_CAPS_FEATURES_ANY. - * - * Since: 1.2 - */ - public bool isAny() - { - return gst_caps_features_is_any(gstCapsFeatures) != 0; - } - - /** - * Check if @features1 and @features2 are equal. - * - * Params: - * features2 = a #GstCapsFeatures. - * - * Returns: %TRUE if @features1 and @features2 are equal. - * - * Since: 1.2 - */ - public bool isEqual(CapsFeatures features2) - { - return gst_caps_features_is_equal(gstCapsFeatures, (features2 is null) ? null : features2.getCapsFeaturesStruct()) != 0; - } - - /** - * Removes @feature from @features. - * - * Params: - * feature = a feature. - * - * Since: 1.2 - */ - public void remove(string feature) - { - gst_caps_features_remove(gstCapsFeatures, Str.toStringz(feature)); - } - - /** - * Removes @feature from @features. - * - * Params: - * feature = a feature. - * - * Since: 1.2 - */ - public void removeId(GQuark feature) - { - gst_caps_features_remove_id(gstCapsFeatures, feature); - } - - /** - * Sets the parent_refcount field of #GstCapsFeatures. This field is used to - * determine whether a caps features is mutable or not. This function should only be - * called by code implementing parent objects of #GstCapsFeatures, as described in - * the MT Refcounting section of the design documents. - * - * Params: - * refcount = a pointer to the parent's refcount - * - * Returns: %TRUE if the parent refcount could be set. - * - * Since: 1.2 - */ - public bool setParentRefcount(int* refcount) - { - return gst_caps_features_set_parent_refcount(gstCapsFeatures, refcount) != 0; - } - - /** - * Converts @features to a human-readable string representation. - * - * For debugging purposes its easier to do something like this: - * |[ - * GST_LOG ("features is %" GST_PTR_FORMAT, features); - * ]| - * This prints the features in human readable form. - * - * Free-function: g_free - * - * Returns: a pointer to string allocated by g_malloc(). - * g_free() after usage. - * - * Since: 1.2 - */ - public override string toString() - { - auto retStr = gst_caps_features_to_string(gstCapsFeatures); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Creates a #GstCapsFeatures from a string representation. - * - * Free-function: gst_caps_features_free - * - * Params: - * features = a string representation of a #GstCapsFeatures. - * - * Returns: a new #GstCapsFeatures or - * %NULL when the string could not be parsed. Free with - * gst_caps_features_free() after use. - * - * Since: 1.2 - */ - public static CapsFeatures fromString(string features) - { - auto __p = gst_caps_features_from_string(Str.toStringz(features)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(CapsFeatures)(cast(GstCapsFeatures*) __p, true); - } -} diff --git a/generated/gstreamer/gstreamer/ChildProxyIF.d b/generated/gstreamer/gstreamer/ChildProxyIF.d deleted file mode 100644 index b447cad13..000000000 --- a/generated/gstreamer/gstreamer/ChildProxyIF.d +++ /dev/null @@ -1,196 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ChildProxyIF; - -private import glib.MemorySlice; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.ParamSpec; -private import gobject.Signals; -private import gobject.Value; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * This interface abstracts handling of property sets for elements with - * children. Imagine elements such as mixers or polyphonic generators. They all - * have multiple #GstPad or some kind of voice objects. Another use case are - * container elements like #GstBin. - * The element implementing the interface acts as a parent for those child - * objects. - * - * By implementing this interface the child properties can be accessed from the - * parent element by using gst_child_proxy_get() and gst_child_proxy_set(). - * - * Property names are written as "child-name::property-name". The whole naming - * scheme is recursive. Thus "child1::child2::property" is valid too, if - * "child1" and "child2" implement the #GstChildProxy interface. - */ -public interface ChildProxyIF{ - /** Get the main Gtk struct */ - public GstChildProxy* getChildProxyStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gst_child_proxy_get_type(); - } - - /** - * Emits the "child-added" signal. - * - * Params: - * child = the newly added child - * name = the name of the new child - */ - public void childAdded(ObjectG child, string name); - - /** - * Emits the "child-removed" signal. - * - * Params: - * child = the removed child - * name = the name of the old child - */ - public void childRemoved(ObjectG child, string name); - - /** - * Fetches a child by its number. - * - * Params: - * index = the child's position in the child list - * - * Returns: the child object or %NULL if - * not found (index too high). Unref after usage. - * - * MT safe. - */ - public ObjectG getChildByIndex(uint index); - - /** - * Looks up a child element by the given name. - * - * This virtual method has a default implementation that uses #GstObject - * together with gst_object_get_name(). If the interface is to be used with - * #GObjects, this methods needs to be overridden. - * - * Params: - * name = the child's name - * - * Returns: the child object or %NULL if - * not found. Unref after usage. - * - * MT safe. - */ - public ObjectG getChildByName(string name); - - /** - * Gets the number of child objects this parent contains. - * - * Returns: the number of child objects - * - * MT safe. - */ - public uint getChildrenCount(); - - /** - * Gets a single property using the GstChildProxy mechanism. - * You are responsible for freeing it by calling g_value_unset() - * - * Params: - * name = name of the property - * value = a #GValue that should take the result. - */ - public void childGetProperty(string name, out Value value); - - /** - * Gets properties of the parent object and its children. - * - * Params: - * firstPropertyName = name of the first property to get - * varArgs = return location for the first property, followed optionally by more name/return location pairs, followed by %NULL - */ - public void childGetValist(string firstPropertyName, void* varArgs); - - /** - * Looks up which object and #GParamSpec would be effected by the given @name. - * - * MT safe. - * - * Params: - * name = name of the property to look up - * target = pointer to a #GObject that - * takes the real object to set property on - * pspec = pointer to take the #GParamSpec - * describing the property - * - * Returns: %TRUE if @target and @pspec could be found. %FALSE otherwise. In that - * case the values for @pspec and @target are not modified. Unref @target after - * usage. For plain GObjects @target is the same as @object. - */ - public bool lookup(string name, out ObjectG target, out ParamSpec pspec); - - /** - * Sets a single property using the GstChildProxy mechanism. - * - * Params: - * name = name of the property to set - * value = new #GValue for the property - */ - public void childSetProperty(string name, Value value); - - /** - * Sets properties of the parent object and its children. - * - * Params: - * firstPropertyName = name of the first property to set - * varArgs = value for the first property, followed optionally by more name/value pairs, followed by %NULL - */ - public void childSetValist(string firstPropertyName, void* varArgs); - - /** - * Will be emitted after the @object was added to the @child_proxy. - * - * Params: - * object = the #GObject that was added - * name = the name of the new child - */ - gulong addOnChildAdded(void delegate(ObjectG, string, ChildProxyIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Will be emitted after the @object was removed from the @child_proxy. - * - * Params: - * object = the #GObject that was removed - * name = the name of the old child - */ - gulong addOnChildRemoved(void delegate(ObjectG, string, ChildProxyIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gstreamer/gstreamer/ChildProxyT.d b/generated/gstreamer/gstreamer/ChildProxyT.d deleted file mode 100644 index f75963782..000000000 --- a/generated/gstreamer/gstreamer/ChildProxyT.d +++ /dev/null @@ -1,255 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ChildProxyT; - -public import glib.MemorySlice; -public import glib.Str; -public import gobject.ObjectG; -public import gobject.ParamSpec; -public import gobject.Signals; -public import gobject.Value; -public import gstreamer.c.functions; -public import gstreamer.c.types; -public import std.algorithm; - - -/** - * This interface abstracts handling of property sets for elements with - * children. Imagine elements such as mixers or polyphonic generators. They all - * have multiple #GstPad or some kind of voice objects. Another use case are - * container elements like #GstBin. - * The element implementing the interface acts as a parent for those child - * objects. - * - * By implementing this interface the child properties can be accessed from the - * parent element by using gst_child_proxy_get() and gst_child_proxy_set(). - * - * Property names are written as "child-name::property-name". The whole naming - * scheme is recursive. Thus "child1::child2::property" is valid too, if - * "child1" and "child2" implement the #GstChildProxy interface. - */ -public template ChildProxyT(TStruct) -{ - /** Get the main Gtk struct */ - public GstChildProxy* getChildProxyStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GstChildProxy*)getStruct(); - } - - - /** - * Emits the "child-added" signal. - * - * Params: - * child = the newly added child - * name = the name of the new child - */ - public void childAdded(ObjectG child, string name) - { - gst_child_proxy_child_added(getChildProxyStruct(), (child is null) ? null : child.getObjectGStruct(), Str.toStringz(name)); - } - - /** - * Emits the "child-removed" signal. - * - * Params: - * child = the removed child - * name = the name of the old child - */ - public void childRemoved(ObjectG child, string name) - { - gst_child_proxy_child_removed(getChildProxyStruct(), (child is null) ? null : child.getObjectGStruct(), Str.toStringz(name)); - } - - /** - * Fetches a child by its number. - * - * Params: - * index = the child's position in the child list - * - * Returns: the child object or %NULL if - * not found (index too high). Unref after usage. - * - * MT safe. - */ - public ObjectG getChildByIndex(uint index) - { - auto __p = gst_child_proxy_get_child_by_index(getChildProxyStruct(), index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p, true); - } - - /** - * Looks up a child element by the given name. - * - * This virtual method has a default implementation that uses #GstObject - * together with gst_object_get_name(). If the interface is to be used with - * #GObjects, this methods needs to be overridden. - * - * Params: - * name = the child's name - * - * Returns: the child object or %NULL if - * not found. Unref after usage. - * - * MT safe. - */ - public ObjectG getChildByName(string name) - { - auto __p = gst_child_proxy_get_child_by_name(getChildProxyStruct(), Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p, true); - } - - /** - * Gets the number of child objects this parent contains. - * - * Returns: the number of child objects - * - * MT safe. - */ - public uint getChildrenCount() - { - return gst_child_proxy_get_children_count(getChildProxyStruct()); - } - - /** - * Gets a single property using the GstChildProxy mechanism. - * You are responsible for freeing it by calling g_value_unset() - * - * Params: - * name = name of the property - * value = a #GValue that should take the result. - */ - public void childGetProperty(string name, out Value value) - { - GValue* outvalue = sliceNew!GValue(); - - gst_child_proxy_get_property(getChildProxyStruct(), Str.toStringz(name), outvalue); - - value = ObjectG.getDObject!(Value)(outvalue, true); - } - - /** - * Gets properties of the parent object and its children. - * - * Params: - * firstPropertyName = name of the first property to get - * varArgs = return location for the first property, followed optionally by more name/return location pairs, followed by %NULL - */ - public void childGetValist(string firstPropertyName, void* varArgs) - { - gst_child_proxy_get_valist(getChildProxyStruct(), Str.toStringz(firstPropertyName), varArgs); - } - - /** - * Looks up which object and #GParamSpec would be effected by the given @name. - * - * MT safe. - * - * Params: - * name = name of the property to look up - * target = pointer to a #GObject that - * takes the real object to set property on - * pspec = pointer to take the #GParamSpec - * describing the property - * - * Returns: %TRUE if @target and @pspec could be found. %FALSE otherwise. In that - * case the values for @pspec and @target are not modified. Unref @target after - * usage. For plain GObjects @target is the same as @object. - */ - public bool lookup(string name, out ObjectG target, out ParamSpec pspec) - { - GObject* outtarget = null; - GParamSpec* outpspec = null; - - auto __p = gst_child_proxy_lookup(getChildProxyStruct(), Str.toStringz(name), &outtarget, &outpspec) != 0; - - target = ObjectG.getDObject!(ObjectG)(outtarget); - pspec = ObjectG.getDObject!(ParamSpec)(outpspec); - - return __p; - } - - /** - * Sets a single property using the GstChildProxy mechanism. - * - * Params: - * name = name of the property to set - * value = new #GValue for the property - */ - public void childSetProperty(string name, Value value) - { - gst_child_proxy_set_property(getChildProxyStruct(), Str.toStringz(name), (value is null) ? null : value.getValueStruct()); - } - - /** - * Sets properties of the parent object and its children. - * - * Params: - * firstPropertyName = name of the first property to set - * varArgs = value for the first property, followed optionally by more name/value pairs, followed by %NULL - */ - public void childSetValist(string firstPropertyName, void* varArgs) - { - gst_child_proxy_set_valist(getChildProxyStruct(), Str.toStringz(firstPropertyName), varArgs); - } - - /** - * Will be emitted after the @object was added to the @child_proxy. - * - * Params: - * object = the #GObject that was added - * name = the name of the new child - */ - gulong addOnChildAdded(void delegate(ObjectG, string, ChildProxyIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "child-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Will be emitted after the @object was removed from the @child_proxy. - * - * Params: - * object = the #GObject that was removed - * name = the name of the old child - */ - gulong addOnChildRemoved(void delegate(ObjectG, string, ChildProxyIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "child-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/Clock.d b/generated/gstreamer/gstreamer/Clock.d deleted file mode 100644 index 21a90f5dc..000000000 --- a/generated/gstreamer/gstreamer/Clock.d +++ /dev/null @@ -1,793 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Clock; - -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * GStreamer uses a global clock to synchronize the plugins in a pipeline. - * Different clock implementations are possible by implementing this abstract - * base class or, more conveniently, by subclassing #GstSystemClock. - * - * The #GstClock returns a monotonically increasing time with the method - * gst_clock_get_time(). Its accuracy and base time depend on the specific - * clock implementation but time is always expressed in nanoseconds. Since the - * baseline of the clock is undefined, the clock time returned is not - * meaningful in itself, what matters are the deltas between two clock times. - * The time returned by a clock is called the absolute time. - * - * The pipeline uses the clock to calculate the running time. Usually all - * renderers synchronize to the global clock using the buffer timestamps, the - * newsegment events and the element's base time, see #GstPipeline. - * - * A clock implementation can support periodic and single shot clock - * notifications both synchronous and asynchronous. - * - * One first needs to create a #GstClockID for the periodic or single shot - * notification using gst_clock_new_single_shot_id() or - * gst_clock_new_periodic_id(). - * - * To perform a blocking wait for the specific time of the #GstClockID use the - * gst_clock_id_wait(). To receive a callback when the specific time is reached - * in the clock use gst_clock_id_wait_async(). Both these calls can be - * interrupted with the gst_clock_id_unschedule() call. If the blocking wait is - * unscheduled a return value of #GST_CLOCK_UNSCHEDULED is returned. - * - * Periodic callbacks scheduled async will be repeatedly called automatically - * until it is unscheduled. To schedule a sync periodic callback, - * gst_clock_id_wait() should be called repeatedly. - * - * The async callbacks can happen from any thread, either provided by the core - * or from a streaming thread. The application should be prepared for this. - * - * A #GstClockID that has been unscheduled cannot be used again for any wait - * operation, a new #GstClockID should be created and the old unscheduled one - * should be destroyed with gst_clock_id_unref(). - * - * It is possible to perform a blocking wait on the same #GstClockID from - * multiple threads. However, registering the same #GstClockID for multiple - * async notifications is not possible, the callback will only be called for - * the thread registering the entry last. - * - * None of the wait operations unref the #GstClockID, the owner is responsible - * for unreffing the ids itself. This holds for both periodic and single shot - * notifications. The reason being that the owner of the #GstClockID has to - * keep a handle to the #GstClockID to unblock the wait on FLUSHING events or - * state changes and if the entry would be unreffed automatically, the handle - * might become invalid without any notification. - * - * These clock operations do not operate on the running time, so the callbacks - * will also occur when not in PLAYING state as if the clock just keeps on - * running. Some clocks however do not progress when the element that provided - * the clock is not PLAYING. - * - * When a clock has the #GST_CLOCK_FLAG_CAN_SET_MASTER flag set, it can be - * slaved to another #GstClock with the gst_clock_set_master(). The clock will - * then automatically be synchronized to this master clock by repeatedly - * sampling the master clock and the slave clock and recalibrating the slave - * clock with gst_clock_set_calibration(). This feature is mostly useful for - * plugins that have an internal clock but must operate with another clock - * selected by the #GstPipeline. They can track the offset and rate difference - * of their internal clock relative to the master clock by using the - * gst_clock_get_calibration() function. - * - * The master/slave synchronisation can be tuned with the #GstClock:timeout, - * #GstClock:window-size and #GstClock:window-threshold properties. - * The #GstClock:timeout property defines the interval to sample the master - * clock and run the calibration functions. #GstClock:window-size defines the - * number of samples to use when calibrating and #GstClock:window-threshold - * defines the minimum number of samples before the calibration is performed. - */ -public class Clock : ObjectGst -{ - /** the main Gtk struct */ - protected GstClock* gstClock; - - /** Get the main Gtk struct */ - public GstClock* getClockStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstClock; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstClock; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstClock* gstClock, bool ownedRef = false) - { - this.gstClock = gstClock; - super(cast(GstObject*)gstClock, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_clock_get_type(); - } - - /** - * Compares the two #GstClockID instances. This function can be used - * as a GCompareFunc when sorting ids. - * - * Params: - * id1 = A #GstClockID - * id2 = A #GstClockID to compare with - * - * Returns: negative value if a < b; zero if a = b; positive value if a > b - * - * MT safe. - */ - public static int idCompareFunc(void* id1, void* id2) - { - return gst_clock_id_compare_func(id1, id2); - } - - /** - * This function returns the underlying clock. - * - * Params: - * id = a #GstClockID - * - * Returns: a #GstClock or %NULL when the - * underlying clock has been freed. Unref after usage. - * - * MT safe. - * - * Since: 1.16 - */ - public static Clock idGetClock(GstClockID id) - { - auto __p = gst_clock_id_get_clock(id); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clock)(cast(GstClock*) __p, true); - } - - /** - * Get the time of the clock ID - * - * Params: - * id = The #GstClockID to query - * - * Returns: the time of the given clock id. - * - * MT safe. - */ - public static GstClockTime idGetTime(GstClockID id) - { - return gst_clock_id_get_time(id); - } - - /** - * Increase the refcount of given @id. - * - * Params: - * id = The #GstClockID to ref - * - * Returns: The same #GstClockID with increased refcount. - * - * MT safe. - */ - public static GstClockID idRef(GstClockID id) - { - return gst_clock_id_ref(id); - } - - /** - * Unref given @id. When the refcount reaches 0 the - * #GstClockID will be freed. - * - * MT safe. - * - * Params: - * id = The #GstClockID to unref - */ - public static void idUnref(GstClockID id) - { - gst_clock_id_unref(id); - } - - /** - * Cancel an outstanding request with @id. This can either - * be an outstanding async notification or a pending sync notification. - * After this call, @id cannot be used anymore to receive sync or - * async notifications, you need to create a new #GstClockID. - * - * MT safe. - * - * Params: - * id = The id to unschedule - */ - public static void idUnschedule(GstClockID id) - { - gst_clock_id_unschedule(id); - } - - /** - * This function returns whether @id uses @clock as the underlying clock. - * @clock can be NULL, in which case the return value indicates whether - * the underlying clock has been freed. If this is the case, the @id is - * no longer usable and should be freed. - * - * Params: - * id = a #GstClockID to check - * clock = a #GstClock to compare against - * - * Returns: whether the clock @id uses the same underlying #GstClock @clock. - * - * MT safe. - * - * Since: 1.16 - */ - public static bool idUsesClock(GstClockID id, Clock clock) - { - return gst_clock_id_uses_clock(id, (clock is null) ? null : clock.getClockStruct()) != 0; - } - - /** - * Perform a blocking wait on @id. - * @id should have been created with gst_clock_new_single_shot_id() - * or gst_clock_new_periodic_id() and should not have been unscheduled - * with a call to gst_clock_id_unschedule(). - * - * If the @jitter argument is not %NULL and this function returns #GST_CLOCK_OK - * or #GST_CLOCK_EARLY, it will contain the difference - * against the clock and the time of @id when this method was - * called. - * Positive values indicate how late @id was relative to the clock - * (in which case this function will return #GST_CLOCK_EARLY). - * Negative values indicate how much time was spent waiting on the clock - * before this function returned. - * - * Params: - * id = The #GstClockID to wait on - * jitter = a pointer that will contain the jitter, - * can be %NULL. - * - * Returns: the result of the blocking wait. #GST_CLOCK_EARLY will be returned - * if the current clock time is past the time of @id, #GST_CLOCK_OK if - * @id was scheduled in time. #GST_CLOCK_UNSCHEDULED if @id was - * unscheduled with gst_clock_id_unschedule(). - * - * MT safe. - */ - public static GstClockReturn idWait(GstClockID id, out GstClockTimeDiff jitter) - { - return gst_clock_id_wait(id, &jitter); - } - - /** - * Register a callback on the given #GstClockID @id with the given - * function and user_data. When passing a #GstClockID with an invalid - * time to this function, the callback will be called immediately - * with a time set to GST_CLOCK_TIME_NONE. The callback will - * be called when the time of @id has been reached. - * - * The callback @func can be invoked from any thread, either provided by the - * core or from a streaming thread. The application should be prepared for this. - * - * Params: - * id = a #GstClockID to wait on - * func = The callback function - * userData = User data passed in the callback - * destroyData = #GDestroyNotify for user_data - * - * Returns: the result of the non blocking wait. - * - * MT safe. - */ - public static GstClockReturn idWaitAsync(GstClockID id, GstClockCallback func, void* userData, GDestroyNotify destroyData) - { - return gst_clock_id_wait_async(id, func, userData, destroyData); - } - - /** - * The time @master of the master clock and the time @slave of the slave - * clock are added to the list of observations. If enough observations - * are available, a linear regression algorithm is run on the - * observations and @clock is recalibrated. - * - * If this functions returns %TRUE, @r_squared will contain the - * correlation coefficient of the interpolation. A value of 1.0 - * means a perfect regression was performed. This value can - * be used to control the sampling frequency of the master and slave - * clocks. - * - * Params: - * slave = a time on the slave - * master = a time on the master - * rSquared = a pointer to hold the result - * - * Returns: %TRUE if enough observations were added to run the - * regression algorithm. - * - * MT safe. - */ - public bool addObservation(GstClockTime slave, GstClockTime master, out double rSquared) - { - return gst_clock_add_observation(gstClock, slave, master, &rSquared) != 0; - } - - /** - * Add a clock observation to the internal slaving algorithm the same as - * gst_clock_add_observation(), and return the result of the master clock - * estimation, without updating the internal calibration. - * - * The caller can then take the results and call gst_clock_set_calibration() - * with the values, or some modified version of them. - * - * Params: - * slave = a time on the slave - * master = a time on the master - * rSquared = a pointer to hold the result - * internal = a location to store the internal time - * external = a location to store the external time - * rateNum = a location to store the rate numerator - * rateDenom = a location to store the rate denominator - * - * Since: 1.6 - */ - public bool addObservationUnapplied(GstClockTime slave, GstClockTime master, out double rSquared, out GstClockTime internal, out GstClockTime external, out GstClockTime rateNum, out GstClockTime rateDenom) - { - return gst_clock_add_observation_unapplied(gstClock, slave, master, &rSquared, &internal, &external, &rateNum, &rateDenom) != 0; - } - - /** - * Converts the given @internal clock time to the external time, adjusting for the - * rate and reference time set with gst_clock_set_calibration() and making sure - * that the returned time is increasing. This function should be called with the - * clock's OBJECT_LOCK held and is mainly used by clock subclasses. - * - * This function is the reverse of gst_clock_unadjust_unlocked(). - * - * Params: - * internal = a clock time - * - * Returns: the converted time of the clock. - */ - public GstClockTime adjustUnlocked(GstClockTime internal) - { - return gst_clock_adjust_unlocked(gstClock, internal); - } - - /** - * Converts the given @internal_target clock time to the external time, - * using the passed calibration parameters. This function performs the - * same calculation as gst_clock_adjust_unlocked() when called using the - * current calibration parameters, but doesn't ensure a monotonically - * increasing result as gst_clock_adjust_unlocked() does. - * - * Note: The @clock parameter is unused and can be NULL - * - * Params: - * internalTarget = a clock time - * cinternal = a reference internal time - * cexternal = a reference external time - * cnum = the numerator of the rate of the clock relative to its - * internal time - * cdenom = the denominator of the rate of the clock - * - * Returns: the converted time of the clock. - * - * Since: 1.6 - */ - public GstClockTime adjustWithCalibration(GstClockTime internalTarget, GstClockTime cinternal, GstClockTime cexternal, GstClockTime cnum, GstClockTime cdenom) - { - return gst_clock_adjust_with_calibration(gstClock, internalTarget, cinternal, cexternal, cnum, cdenom); - } - - /** - * Gets the internal rate and reference time of @clock. See - * gst_clock_set_calibration() for more information. - * - * @internal, @external, @rate_num, and @rate_denom can be left %NULL if the - * caller is not interested in the values. - * - * MT safe. - * - * Params: - * internal = a location to store the internal time - * external = a location to store the external time - * rateNum = a location to store the rate numerator - * rateDenom = a location to store the rate denominator - */ - public void getCalibration(out GstClockTime internal, out GstClockTime external, out GstClockTime rateNum, out GstClockTime rateDenom) - { - gst_clock_get_calibration(gstClock, &internal, &external, &rateNum, &rateDenom); - } - - /** - * Gets the current internal time of the given clock. The time is returned - * unadjusted for the offset and the rate. - * - * Returns: the internal time of the clock. Or GST_CLOCK_TIME_NONE when - * given invalid input. - * - * MT safe. - */ - public GstClockTime getInternalTime() - { - return gst_clock_get_internal_time(gstClock); - } - - /** - * Get the master clock that @clock is slaved to or %NULL when the clock is - * not slaved to any master clock. - * - * Returns: a master #GstClock or %NULL - * when this clock is not slaved to a master clock. Unref after - * usage. - * - * MT safe. - */ - public Clock getMaster() - { - auto __p = gst_clock_get_master(gstClock); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clock)(cast(GstClock*) __p, true); - } - - /** - * Get the accuracy of the clock. The accuracy of the clock is the granularity - * of the values returned by gst_clock_get_time(). - * - * Returns: the resolution of the clock in units of #GstClockTime. - * - * MT safe. - */ - public GstClockTime getResolution() - { - return gst_clock_get_resolution(gstClock); - } - - /** - * Gets the current time of the given clock. The time is always - * monotonically increasing and adjusted according to the current - * offset and rate. - * - * Returns: the time of the clock. Or GST_CLOCK_TIME_NONE when - * given invalid input. - * - * MT safe. - */ - public GstClockTime getTime() - { - return gst_clock_get_time(gstClock); - } - - /** - * Get the amount of time that master and slave clocks are sampled. - * - * Returns: the interval between samples. - */ - public GstClockTime getTimeout() - { - return gst_clock_get_timeout(gstClock); - } - - /** - * Checks if the clock is currently synced. - * - * This returns if GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC is not set on the clock. - * - * Returns: %TRUE if the clock is currently synced - * - * Since: 1.6 - */ - public bool isSynced() - { - return gst_clock_is_synced(gstClock) != 0; - } - - /** - * Get an ID from @clock to trigger a periodic notification. - * The periodic notifications will start at time @start_time and - * will then be fired with the given @interval. @id should be unreffed - * after usage. - * - * Free-function: gst_clock_id_unref - * - * Params: - * startTime = the requested start time - * interval = the requested interval - * - * Returns: a #GstClockID that can be used to request the - * time notification. - * - * MT safe. - */ - public GstClockID newPeriodicId(GstClockTime startTime, GstClockTime interval) - { - return gst_clock_new_periodic_id(gstClock, startTime, interval); - } - - /** - * Get a #GstClockID from @clock to trigger a single shot - * notification at the requested time. The single shot id should be - * unreffed after usage. - * - * Free-function: gst_clock_id_unref - * - * Params: - * time = the requested time - * - * Returns: a #GstClockID that can be used to request the - * time notification. - * - * MT safe. - */ - public GstClockID newSingleShotId(GstClockTime time) - { - return gst_clock_new_single_shot_id(gstClock, time); - } - - /** - * Reinitializes the provided periodic @id to the provided start time and - * interval. Does not modify the reference count. - * - * Params: - * id = a #GstClockID - * startTime = the requested start time - * interval = the requested interval - * - * Returns: %TRUE if the GstClockID could be reinitialized to the provided - * @time, else %FALSE. - */ - public bool periodicIdReinit(GstClockID id, GstClockTime startTime, GstClockTime interval) - { - return gst_clock_periodic_id_reinit(gstClock, id, startTime, interval) != 0; - } - - /** - * Adjusts the rate and time of @clock. A rate of 1/1 is the normal speed of - * the clock. Values bigger than 1/1 make the clock go faster. - * - * @internal and @external are calibration parameters that arrange that - * gst_clock_get_time() should have been @external at internal time @internal. - * This internal time should not be in the future; that is, it should be less - * than the value of gst_clock_get_internal_time() when this function is called. - * - * Subsequent calls to gst_clock_get_time() will return clock times computed as - * follows: - * - * |[ - * time = (internal_time - internal) * rate_num / rate_denom + external - * ]| - * - * This formula is implemented in gst_clock_adjust_unlocked(). Of course, it - * tries to do the integer arithmetic as precisely as possible. - * - * Note that gst_clock_get_time() always returns increasing values so when you - * move the clock backwards, gst_clock_get_time() will report the previous value - * until the clock catches up. - * - * MT safe. - * - * Params: - * internal = a reference internal time - * external = a reference external time - * rateNum = the numerator of the rate of the clock relative to its - * internal time - * rateDenom = the denominator of the rate of the clock - */ - public void setCalibration(GstClockTime internal, GstClockTime external, GstClockTime rateNum, GstClockTime rateDenom) - { - gst_clock_set_calibration(gstClock, internal, external, rateNum, rateDenom); - } - - /** - * Set @master as the master clock for @clock. @clock will be automatically - * calibrated so that gst_clock_get_time() reports the same time as the - * master clock. - * - * A clock provider that slaves its clock to a master can get the current - * calibration values with gst_clock_get_calibration(). - * - * @master can be %NULL in which case @clock will not be slaved anymore. It will - * however keep reporting its time adjusted with the last configured rate - * and time offsets. - * - * Params: - * master = a master #GstClock - * - * Returns: %TRUE if the clock is capable of being slaved to a master clock. - * Trying to set a master on a clock without the - * #GST_CLOCK_FLAG_CAN_SET_MASTER flag will make this function return %FALSE. - * - * MT safe. - */ - public bool setMaster(Clock master) - { - return gst_clock_set_master(gstClock, (master is null) ? null : master.getClockStruct()) != 0; - } - - /** - * Set the accuracy of the clock. Some clocks have the possibility to operate - * with different accuracy at the expense of more resource usage. There is - * normally no need to change the default resolution of a clock. The resolution - * of a clock can only be changed if the clock has the - * #GST_CLOCK_FLAG_CAN_SET_RESOLUTION flag set. - * - * Params: - * resolution = The resolution to set - * - * Returns: the new resolution of the clock. - */ - public GstClockTime setResolution(GstClockTime resolution) - { - return gst_clock_set_resolution(gstClock, resolution); - } - - /** - * Sets @clock to synced and emits the GstClock::synced signal, and wakes up any - * thread waiting in gst_clock_wait_for_sync(). - * - * This function must only be called if GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC - * is set on the clock, and is intended to be called by subclasses only. - * - * Params: - * synced = if the clock is synced - * - * Since: 1.6 - */ - public void setSynced(bool synced) - { - gst_clock_set_synced(gstClock, synced); - } - - /** - * Set the amount of time, in nanoseconds, to sample master and slave - * clocks - * - * Params: - * timeout = a timeout - */ - public void setTimeout(GstClockTime timeout) - { - gst_clock_set_timeout(gstClock, timeout); - } - - /** - * Reinitializes the provided single shot @id to the provided time. Does not - * modify the reference count. - * - * Params: - * id = a #GstClockID - * time = The requested time. - * - * Returns: %TRUE if the GstClockID could be reinitialized to the provided - * @time, else %FALSE. - */ - public bool singleShotIdReinit(GstClockID id, GstClockTime time) - { - return gst_clock_single_shot_id_reinit(gstClock, id, time) != 0; - } - - /** - * Converts the given @external clock time to the internal time of @clock, - * using the rate and reference time set with gst_clock_set_calibration(). - * This function should be called with the clock's OBJECT_LOCK held and - * is mainly used by clock subclasses. - * - * This function is the reverse of gst_clock_adjust_unlocked(). - * - * Params: - * external = an external clock time - * - * Returns: the internal time of the clock corresponding to @external. - */ - public GstClockTime unadjustUnlocked(GstClockTime external) - { - return gst_clock_unadjust_unlocked(gstClock, external); - } - - /** - * Converts the given @external_target clock time to the internal time, - * using the passed calibration parameters. This function performs the - * same calculation as gst_clock_unadjust_unlocked() when called using the - * current calibration parameters. - * - * Note: The @clock parameter is unused and can be NULL - * - * Params: - * externalTarget = a clock time - * cinternal = a reference internal time - * cexternal = a reference external time - * cnum = the numerator of the rate of the clock relative to its - * internal time - * cdenom = the denominator of the rate of the clock - * - * Returns: the converted time of the clock. - * - * Since: 1.8 - */ - public GstClockTime unadjustWithCalibration(GstClockTime externalTarget, GstClockTime cinternal, GstClockTime cexternal, GstClockTime cnum, GstClockTime cdenom) - { - return gst_clock_unadjust_with_calibration(gstClock, externalTarget, cinternal, cexternal, cnum, cdenom); - } - - /** - * Waits until @clock is synced for reporting the current time. If @timeout - * is %GST_CLOCK_TIME_NONE it will wait forever, otherwise it will time out - * after @timeout nanoseconds. - * - * For asynchronous waiting, the GstClock::synced signal can be used. - * - * This returns immediately with TRUE if GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC - * is not set on the clock, or if the clock is already synced. - * - * Params: - * timeout = timeout for waiting or %GST_CLOCK_TIME_NONE - * - * Returns: %TRUE if waiting was successful, or %FALSE on timeout - * - * Since: 1.6 - */ - public bool waitForSync(GstClockTime timeout) - { - return gst_clock_wait_for_sync(gstClock, timeout) != 0; - } - - /** - * Signaled on clocks with GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC set once - * the clock is synchronized, or when it completely lost synchronization. - * This signal will not be emitted on clocks without the flag. - * - * This signal will be emitted from an arbitrary thread, most likely not - * the application's main thread. - * - * Params: - * synced = if the clock is synced now - * - * Since: 1.6 - */ - gulong addOnSynced(void delegate(bool, Clock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "synced", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/Context.d b/generated/gstreamer/gstreamer/Context.d deleted file mode 100644 index 665c6abb3..000000000 --- a/generated/gstreamer/gstreamer/Context.d +++ /dev/null @@ -1,210 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Context; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * #GstContext is a container object used to store contexts like a device - * context, a display server connection and similar concepts that should - * be shared between multiple elements. - * - * Applications can set a context on a complete pipeline by using - * gst_element_set_context(), which will then be propagated to all - * child elements. Elements can handle these in #GstElementClass.set_context() - * and merge them with the context information they already have. - * - * When an element needs a context it will do the following actions in this - * order until one step succeeds: - * 1. Check if the element already has a context - * 2. Query downstream with GST_QUERY_CONTEXT for the context - * 3. Query upstream with GST_QUERY_CONTEXT for the context - * 4. Post a GST_MESSAGE_NEED_CONTEXT message on the bus with the required - * context types and afterwards check if a usable context was set now - * 5. Create a context by itself and post a GST_MESSAGE_HAVE_CONTEXT message - * on the bus. - * - * Bins will catch GST_MESSAGE_NEED_CONTEXT messages and will set any previously - * known context on the element that asks for it if possible. Otherwise the - * application should provide one if it can. - * - * #GstContexts can be persistent. - * A persistent #GstContext is kept in elements when they reach - * %GST_STATE_NULL, non-persistent ones will be removed. - * Also, a non-persistent context won't override a previous persistent - * context set to an element. - * - * Since: 1.2 - */ -public class Context -{ - /** the main Gtk struct */ - protected GstContext* gstContext; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstContext* getContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstContext; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstContext* gstContext, bool ownedRef = false) - { - this.gstContext = gstContext; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_context_get_type(); - } - - /** - * Create a new context. - * - * Params: - * contextType = Context type - * persistent = Persistent context - * - * Returns: The new context. - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string contextType, bool persistent) - { - auto __p = gst_context_new(Str.toStringz(contextType), persistent); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstContext*) __p); - } - - /** - * Get the type of @context. - * - * Returns: The type of the context. - * - * Since: 1.2 - */ - public string getContextType() - { - return Str.toString(gst_context_get_context_type(gstContext)); - } - - /** - * Access the structure of the context. - * - * Returns: The structure of the context. The structure is - * still owned by the context, which means that you should not modify it, - * free it and that the pointer becomes invalid when you free the context. - * - * Since: 1.2 - */ - public Structure getStructure() - { - auto __p = gst_context_get_structure(gstContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Checks if @context has @context_type. - * - * Params: - * contextType = Context type to check. - * - * Returns: %TRUE if @context has @context_type. - * - * Since: 1.2 - */ - public bool hasContextType(string contextType) - { - return gst_context_has_context_type(gstContext, Str.toStringz(contextType)) != 0; - } - - /** - * Check if @context is persistent. - * - * Returns: %TRUE if the context is persistent. - * - * Since: 1.2 - */ - public bool isPersistent() - { - return gst_context_is_persistent(gstContext) != 0; - } - - /** - * Get a writable version of the structure. - * - * Returns: The structure of the context. The structure is still - * owned by the context, which means that you should not free it and - * that the pointer becomes invalid when you free the context. - * This function checks if @context is writable. - * - * Since: 1.2 - */ - public Structure writableStructure() - { - auto __p = gst_context_writable_structure(gstContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p, true); - } -} diff --git a/generated/gstreamer/gstreamer/ControlBinding.d b/generated/gstreamer/gstreamer/ControlBinding.d deleted file mode 100644 index 410b4fd9d..000000000 --- a/generated/gstreamer/gstreamer/ControlBinding.d +++ /dev/null @@ -1,188 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ControlBinding; - -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A base class for value mapping objects that attaches control sources to gobject - * properties. Such an object is taking one or more #GstControlSource instances, - * combines them and maps the resulting value to the type and value range of the - * bound property. - */ -public class ControlBinding : ObjectGst -{ - /** the main Gtk struct */ - protected GstControlBinding* gstControlBinding; - - /** Get the main Gtk struct */ - public GstControlBinding* getControlBindingStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstControlBinding; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstControlBinding; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstControlBinding* gstControlBinding, bool ownedRef = false) - { - this.gstControlBinding = gstControlBinding; - super(cast(GstObject*)gstControlBinding, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_control_binding_get_type(); - } - - /** - * Gets a number of #GValues for the given controlled property starting at the - * requested time. The array @values need to hold enough space for @n_values of - * #GValue. - * - * This function is useful if one wants to e.g. draw a graph of the control - * curve or apply a control curve sample by sample. - * - * Params: - * timestamp = the time that should be processed - * interval = the time spacing between subsequent values - * values = array to put control-values in - * - * Returns: %TRUE if the given array could be filled, %FALSE otherwise - */ - public bool getGValueArray(GstClockTime timestamp, GstClockTime interval, Value[] values) - { - GValue[] valuesArray = new GValue[values.length]; - for ( int i = 0; i < values.length; i++ ) - { - valuesArray[i] = *(values[i].getValueStruct()); - } - - return gst_control_binding_get_g_value_array(gstControlBinding, timestamp, interval, cast(uint)values.length, valuesArray.ptr) != 0; - } - - /** - * Gets the value for the given controlled property at the requested time. - * - * Params: - * timestamp = the time the control-change should be read from - * - * Returns: the GValue of the property at the given time, - * or %NULL if the property isn't controlled. - */ - public Value getValue(GstClockTime timestamp) - { - auto __p = gst_control_binding_get_value(gstControlBinding, timestamp); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p, true); - } - - /** - * Gets a number of values for the given controlled property starting at the - * requested time. The array @values need to hold enough space for @n_values of - * the same type as the objects property's type. - * - * This function is useful if one wants to e.g. draw a graph of the control - * curve or apply a control curve sample by sample. - * - * The values are unboxed and ready to be used. The similar function - * gst_control_binding_get_g_value_array() returns the array as #GValues and is - * more suitable for bindings. - * - * Params: - * timestamp = the time that should be processed - * interval = the time spacing between subsequent values - * values = array to put control-values in - * - * Returns: %TRUE if the given array could be filled, %FALSE otherwise - */ - public bool getValueArray(GstClockTime timestamp, GstClockTime interval, void*[] values) - { - return gst_control_binding_get_value_array(gstControlBinding, timestamp, interval, cast(uint)values.length, values.ptr) != 0; - } - - /** - * Check if the control binding is disabled. - * - * Returns: %TRUE if the binding is inactive - */ - public bool isDisabled() - { - return gst_control_binding_is_disabled(gstControlBinding) != 0; - } - - /** - * This function is used to disable a control binding for some time, i.e. - * gst_object_sync_values() will do nothing. - * - * Params: - * disabled = boolean that specifies whether to disable the controller - * or not. - */ - public void setDisabled(bool disabled) - { - gst_control_binding_set_disabled(gstControlBinding, disabled); - } - - /** - * Sets the property of the @object, according to the #GstControlSources that - * handle them and for the given timestamp. - * - * If this function fails, it is most likely the application developers fault. - * Most probably the control sources are not setup correctly. - * - * Params: - * object = the object that has controlled properties - * timestamp = the time that should be processed - * lastSync = the last time this was called - * - * Returns: %TRUE if the controller value could be applied to the object - * property, %FALSE otherwise - */ - public bool syncValues(ObjectGst object, GstClockTime timestamp, GstClockTime lastSync) - { - return gst_control_binding_sync_values(gstControlBinding, (object is null) ? null : object.getObjectGstStruct(), timestamp, lastSync) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/ControlSource.d b/generated/gstreamer/gstreamer/ControlSource.d deleted file mode 100644 index f51a46628..000000000 --- a/generated/gstreamer/gstreamer/ControlSource.d +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ControlSource; - -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The #GstControlSource is a base class for control value sources that could - * be used to get timestamp-value pairs. A control source essentially is a - * function over time. - * - * A #GstControlSource is used by first getting an instance of a specific - * control-source, creating a binding for the control-source to the target property - * of the element and then adding the binding to the element. The binding will - * convert the data types and value range to fit to the bound property. - * - * For implementing a new #GstControlSource one has to implement - * #GstControlSourceGetValue and #GstControlSourceGetValueArray functions. - * These are then used by gst_control_source_get_value() and - * gst_control_source_get_value_array() to get values for specific timestamps. - */ -public class ControlSource : ObjectGst -{ - /** the main Gtk struct */ - protected GstControlSource* gstControlSource; - - /** Get the main Gtk struct */ - public GstControlSource* getControlSourceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstControlSource; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstControlSource; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstControlSource* gstControlSource, bool ownedRef = false) - { - this.gstControlSource = gstControlSource; - super(cast(GstObject*)gstControlSource, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_control_source_get_type(); - } - - /** - * Gets the value for this #GstControlSource at a given timestamp. - * - * Params: - * timestamp = the time for which the value should be returned - * value = the value - * - * Returns: %FALSE if the value couldn't be returned, %TRUE otherwise. - */ - public bool getValue(GstClockTime timestamp, out double value) - { - return gst_control_source_get_value(gstControlSource, timestamp, &value) != 0; - } - - /** - * Gets an array of values for for this #GstControlSource. Values that are - * undefined contain NANs. - * - * Params: - * timestamp = the first timestamp - * interval = the time steps - * values = array to put control-values in - * - * Returns: %TRUE if the given array could be filled, %FALSE otherwise - */ - public bool getValueArray(GstClockTime timestamp, GstClockTime interval, double[] values) - { - return gst_control_source_get_value_array(gstControlSource, timestamp, interval, cast(uint)values.length, values.ptr) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/DateTime.d b/generated/gstreamer/gstreamer/DateTime.d deleted file mode 100644 index 1383ebca0..000000000 --- a/generated/gstreamer/gstreamer/DateTime.d +++ /dev/null @@ -1,576 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DateTime; - -private import glib.ConstructionException; -private import glib.DateTime : GLibDateTime = DateTime; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * Struct to store date, time and timezone information altogether. - * #GstDateTime is refcounted and immutable. - * - * Date information is handled using the proleptic Gregorian calendar. - * - * Provides basic creation functions and accessor functions to its fields. - */ -public class DateTime -{ - /** the main Gtk struct */ - protected GstDateTime* gstDateTime; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstDateTime* getDateTimeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDateTime; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstDateTime; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDateTime* gstDateTime, bool ownedRef = false) - { - this.gstDateTime = gstDateTime; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_date_time_unref(gstDateTime); - } - - /** - * Creates a new GstDateTime representing the current date and time. - * - * Params: - * utc = If true use utc else use the local timezone. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this (bool utc) - { - GstDateTime* p; - - if ( utc ) - { - p = gst_date_time_new_now_utc(); - } - else - { - p = gst_date_time_new_now_local_time(); - } - - if(p is null) - { - throw new ConstructionException("null returned by gst_date_time_new_now_local_time()"); - } - this(p); //, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_date_time_get_type(); - } - - /** - * Creates a new #GstDateTime using the date and times in the gregorian calendar - * in the supplied timezone. - * - * @year should be from 1 to 9999, @month should be from 1 to 12, @day from - * 1 to 31, @hour from 0 to 23, @minutes and @seconds from 0 to 59. - * - * Note that @tzoffset is a float and was chosen so for being able to handle - * some fractional timezones, while it still keeps the readability of - * representing it in hours for most timezones. - * - * If value is -1 then all over value will be ignored. For example - * if @month == -1, then #GstDateTime will created only for @year. If - * @day == -1, then #GstDateTime will created for @year and @month and - * so on. - * - * Free-function: gst_date_time_unref - * - * Params: - * tzoffset = Offset from UTC in hours. - * year = the gregorian year - * month = the gregorian month - * day = the day of the gregorian month - * hour = the hour of the day - * minute = the minute of the hour - * seconds = the second of the minute - * - * Returns: the newly created #GstDateTime - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(float tzoffset, int year, int month, int day, int hour, int minute, double seconds) - { - auto __p = gst_date_time_new(tzoffset, year, month, day, hour, minute, seconds); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Creates a new #GstDateTime from a #GDateTime object. - * - * Free-function: gst_date_time_unref - * - * Params: - * dt = the #GDateTime. The new #GstDateTime takes ownership. - * - * Returns: a newly created #GstDateTime, - * or %NULL on error - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GLibDateTime dt) - { - auto __p = gst_date_time_new_from_g_date_time((dt is null) ? null : dt.getDateTimeStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_g_date_time"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Tries to parse common variants of ISO-8601 datetime strings into a - * #GstDateTime. Possible input formats are (for example): - * 2012-06-30T22:46:43Z, 2012, 2012-06, 2012-06-30, 2012-06-30T22:46:43-0430, - * 2012-06-30T22:46Z, 2012-06-30T22:46-0430, 2012-06-30 22:46, - * 2012-06-30 22:46:43, 2012-06-00, 2012-00-00, 2012-00-30, 22:46:43Z, 22:46Z, - * 22:46:43-0430, 22:46-0430, 22:46:30, 22:46 - * If no date is provided, it is assumed to be "today" in the timezone - * provided (if any), otherwise UTC. - * - * Free-function: gst_date_time_unref - * - * Params: - * string_ = ISO 8601-formatted datetime string. - * - * Returns: a newly created #GstDateTime, - * or %NULL on error - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string string_) - { - auto __p = gst_date_time_new_from_iso8601_string(Str.toStringz(string_)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_iso8601_string"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Creates a new #GstDateTime using the time since Jan 1, 1970 specified by - * @usecs. The #GstDateTime is in UTC. - * - * Params: - * usecs = microseconds from the Unix epoch - * - * Returns: a newly created #GstDateTime - * - * Since: 1.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(long usecs) - { - auto __p = gst_date_time_new_from_unix_epoch_utc_usecs(usecs); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_unix_epoch_utc_usecs"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Creates a new #GstDateTime using the date and times in the gregorian calendar - * in the local timezone. - * - * @year should be from 1 to 9999, @month should be from 1 to 12, @day from - * 1 to 31, @hour from 0 to 23, @minutes and @seconds from 0 to 59. - * - * If @month is -1, then the #GstDateTime created will only contain @year, - * and all other fields will be considered not set. - * - * If @day is -1, then the #GstDateTime created will only contain @year and - * @month and all other fields will be considered not set. - * - * If @hour is -1, then the #GstDateTime created will only contain @year and - * @month and @day, and the time fields will be considered not set. In this - * case @minute and @seconds should also be -1. - * - * Free-function: gst_date_time_unref - * - * Params: - * year = the gregorian year - * month = the gregorian month, or -1 - * day = the day of the gregorian month, or -1 - * hour = the hour of the day, or -1 - * minute = the minute of the hour, or -1 - * seconds = the second of the minute, or -1 - * - * Returns: the newly created #GstDateTime - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int year, int month, int day, int hour, int minute, double seconds) - { - auto __p = gst_date_time_new_local_time(year, month, day, hour, minute, seconds); - - if(__p is null) - { - throw new ConstructionException("null returned by new_local_time"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Creates a new #GstDateTime using the date and times in the gregorian calendar - * in the local timezone. - * - * @year should be from 1 to 9999. - * - * Free-function: gst_date_time_unref - * - * Params: - * year = the gregorian year - * - * Returns: the newly created #GstDateTime - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int year) - { - auto __p = gst_date_time_new_y(year); - - if(__p is null) - { - throw new ConstructionException("null returned by new_y"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Creates a new #GstDateTime using the date and times in the gregorian calendar - * in the local timezone. - * - * @year should be from 1 to 9999, @month should be from 1 to 12. - * - * If value is -1 then all over value will be ignored. For example - * if @month == -1, then #GstDateTime will created only for @year. - * - * Free-function: gst_date_time_unref - * - * Params: - * year = the gregorian year - * month = the gregorian month - * - * Returns: the newly created #GstDateTime - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int year, int month) - { - auto __p = gst_date_time_new_ym(year, month); - - if(__p is null) - { - throw new ConstructionException("null returned by new_ym"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Creates a new #GstDateTime using the date and times in the gregorian calendar - * in the local timezone. - * - * @year should be from 1 to 9999, @month should be from 1 to 12, @day from - * 1 to 31. - * - * If value is -1 then all over value will be ignored. For example - * if @month == -1, then #GstDateTime will created only for @year. If - * @day == -1, then #GstDateTime will created for @year and @month and - * so on. - * - * Free-function: gst_date_time_unref - * - * Params: - * year = the gregorian year - * month = the gregorian month - * day = the day of the gregorian month - * - * Returns: the newly created #GstDateTime - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int year, int month, int day) - { - auto __p = gst_date_time_new_ymd(year, month, day); - - if(__p is null) - { - throw new ConstructionException("null returned by new_ymd"); - } - - this(cast(GstDateTime*) __p); - } - - /** - * Returns the day of the month of this #GstDateTime. - * Call gst_date_time_has_day() before, to avoid warnings. - * - * Returns: The day of this #GstDateTime - */ - public int getDay() - { - return gst_date_time_get_day(gstDateTime); - } - - /** - * Retrieves the hour of the day represented by @datetime in the gregorian - * calendar. The return is in the range of 0 to 23. - * Call gst_date_time_has_time() before, to avoid warnings. - * - * Returns: the hour of the day - */ - public int getHour() - { - return gst_date_time_get_hour(gstDateTime); - } - - /** - * Retrieves the fractional part of the seconds in microseconds represented by - * @datetime in the gregorian calendar. - * - * Returns: the microsecond of the second - */ - public int getMicrosecond() - { - return gst_date_time_get_microsecond(gstDateTime); - } - - /** - * Retrieves the minute of the hour represented by @datetime in the gregorian - * calendar. - * Call gst_date_time_has_time() before, to avoid warnings. - * - * Returns: the minute of the hour - */ - public int getMinute() - { - return gst_date_time_get_minute(gstDateTime); - } - - /** - * Returns the month of this #GstDateTime. January is 1, February is 2, etc.. - * Call gst_date_time_has_month() before, to avoid warnings. - * - * Returns: The month of this #GstDateTime - */ - public int getMonth() - { - return gst_date_time_get_month(gstDateTime); - } - - /** - * Retrieves the second of the minute represented by @datetime in the gregorian - * calendar. - * Call gst_date_time_has_time() before, to avoid warnings. - * - * Returns: the second represented by @datetime - */ - public int getSecond() - { - return gst_date_time_get_second(gstDateTime); - } - - /** - * Retrieves the offset from UTC in hours that the timezone specified - * by @datetime represents. Timezones ahead (to the east) of UTC have positive - * values, timezones before (to the west) of UTC have negative values. - * If @datetime represents UTC time, then the offset is zero. - * - * Returns: the offset from UTC in hours - */ - public float getTimeZoneOffset() - { - return gst_date_time_get_time_zone_offset(gstDateTime); - } - - /** - * Returns the year of this #GstDateTime - * Call gst_date_time_has_year() before, to avoid warnings. - * - * Returns: The year of this #GstDateTime - */ - public int getYear() - { - return gst_date_time_get_year(gstDateTime); - } - - /** - * Returns: %TRUE if @datetime's day field is set, otherwise %FALSE - */ - public bool hasDay() - { - return gst_date_time_has_day(gstDateTime) != 0; - } - - /** - * Returns: %TRUE if @datetime's month field is set, otherwise %FALSE - */ - public bool hasMonth() - { - return gst_date_time_has_month(gstDateTime) != 0; - } - - /** - * Returns: %TRUE if @datetime's second field is set, otherwise %FALSE - */ - public bool hasSecond() - { - return gst_date_time_has_second(gstDateTime) != 0; - } - - /** - * Returns: %TRUE if @datetime's hour and minute fields are set, - * otherwise %FALSE - */ - public bool hasTime() - { - return gst_date_time_has_time(gstDateTime) != 0; - } - - /** - * Returns: %TRUE if @datetime's year field is set (which should always - * be the case), otherwise %FALSE - */ - public bool hasYear() - { - return gst_date_time_has_year(gstDateTime) != 0; - } - - alias doref = ref_; - /** - * Atomically increments the reference count of @datetime by one. - * - * Returns: the reference @datetime - */ - public DateTime ref_() - { - auto __p = gst_date_time_ref(gstDateTime); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DateTime)(cast(GstDateTime*) __p, true); - } - - /** - * Creates a new #GDateTime from a fully defined #GstDateTime object. - * - * Free-function: g_date_time_unref - * - * Returns: a newly created #GDateTime, or - * %NULL on error - */ - public GLibDateTime toGDateTime() - { - auto __p = gst_date_time_to_g_date_time(gstDateTime); - - if(__p is null) - { - return null; - } - - return new GLibDateTime(cast(GDateTime*) __p, true); - } - - /** - * Create a minimal string compatible with ISO-8601. Possible output formats - * are (for example): 2012, 2012-06, 2012-06-23, 2012-06-23T23:30Z, - * 2012-06-23T23:30+0100, 2012-06-23T23:30:59Z, 2012-06-23T23:30:59+0100 - * - * Returns: a newly allocated string formatted according - * to ISO 8601 and only including the datetime fields that are - * valid, or %NULL in case there was an error. The string should - * be freed with g_free(). - */ - public string toIso8601String() - { - auto retStr = gst_date_time_to_iso8601_string(gstDateTime); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Atomically decrements the reference count of @datetime by one. When the - * reference count reaches zero, the structure is freed. - */ - public void unref() - { - gst_date_time_unref(gstDateTime); - } -} diff --git a/generated/gstreamer/gstreamer/Debug.d b/generated/gstreamer/gstreamer/Debug.d deleted file mode 100644 index a17ef5793..000000000 --- a/generated/gstreamer/gstreamer/Debug.d +++ /dev/null @@ -1,419 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Debug; - -private import glib.ListSG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Bin; -private import gstreamer.DebugCategory; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct Debug -{ - - /** - * Adds the logging function to the list of logging functions. - * Be sure to use #G_GNUC_NO_INSTRUMENT on that function, it is needed. - * - * Params: - * func = the function to use - * userData = user data - * notify = called when @user_data is not used anymore - */ - public static void addLogFunction(GstLogFunction func, void* userData, GDestroyNotify notify) - { - gst_debug_add_log_function(func, userData, notify); - } - - /** - * To aid debugging applications one can use this method to obtain the whole - * network of gstreamer elements that form the pipeline into an dot file. - * This data can be processed with graphviz to get an image. - * - * Params: - * bin = the top-level pipeline that should be analyzed - * details = type of #GstDebugGraphDetails to use - * - * Returns: a string containing the pipeline in graphviz - * dot format. - */ - public static string binToDotData(Bin bin, GstDebugGraphDetails details) - { - auto retStr = gst_debug_bin_to_dot_data((bin is null) ? null : bin.getBinStruct(), details); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * To aid debugging applications one can use this method to write out the whole - * network of gstreamer elements that form the pipeline into an dot file. - * This file can be processed with graphviz to get an image. - * - * ``` shell - * dot -Tpng -oimage.png graph_lowlevel.dot - * ``` - * - * Params: - * bin = the top-level pipeline that should be analyzed - * details = type of #GstDebugGraphDetails to use - * fileName = output base filename (e.g. "myplayer") - */ - public static void binToDotFile(Bin bin, GstDebugGraphDetails details, string fileName) - { - gst_debug_bin_to_dot_file((bin is null) ? null : bin.getBinStruct(), details, Str.toStringz(fileName)); - } - - /** - * This works like gst_debug_bin_to_dot_file(), but adds the current timestamp - * to the filename, so that it can be used to take multiple snapshots. - * - * Params: - * bin = the top-level pipeline that should be analyzed - * details = type of #GstDebugGraphDetails to use - * fileName = output base filename (e.g. "myplayer") - */ - public static void binToDotFileWithTs(Bin bin, GstDebugGraphDetails details, string fileName) - { - gst_debug_bin_to_dot_file_with_ts((bin is null) ? null : bin.getBinStruct(), details, Str.toStringz(fileName)); - } - - /** - * Constructs a string that can be used for getting the desired color in color - * terminals. - * You need to free the string after use. - * - * Params: - * colorinfo = the color info - * - * Returns: a string containing the color - * definition - */ - public static string constructTermColor(uint colorinfo) - { - auto retStr = gst_debug_construct_term_color(colorinfo); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Constructs an integer that can be used for getting the desired color in - * windows' terminals (cmd.exe). As there is no mean to underline, we simply - * ignore this attribute. - * - * This function returns 0 on non-windows machines. - * - * Params: - * colorinfo = the color info - * - * Returns: an integer containing the color definition - */ - public static int constructWinColor(uint colorinfo) - { - return gst_debug_construct_win_color(colorinfo); - } - - /** - * Returns a snapshot of a all categories that are currently in use . This list - * may change anytime. - * The caller has to free the list after use. - * - * Returns: the list of - * debug categories - */ - public static ListSG getAllCategories() - { - auto __p = gst_debug_get_all_categories(); - - if(__p is null) - { - return null; - } - - return new ListSG(cast(GSList*) __p); - } - - /** - * Changes the coloring mode for debug output. - * - * Returns: see @GstDebugColorMode for possible values. - * - * Since: 1.2 - */ - public static GstDebugColorMode getColorMode() - { - return gst_debug_get_color_mode(); - } - - /** - * Returns the default threshold that is used for new categories. - * - * Returns: the default threshold level - */ - public static GstDebugLevel getDefaultThreshold() - { - return gst_debug_get_default_threshold(); - } - - /** - * Checks if debugging output is activated. - * - * Returns: %TRUE, if debugging is activated - */ - public static bool isActive() - { - return gst_debug_is_active() != 0; - } - - /** - * Checks if the debugging output should be colored. - * - * Returns: %TRUE, if the debug output should be colored. - */ - public static bool isColored() - { - return gst_debug_is_colored() != 0; - } - - /** - * Get the string representation of a debugging level - * - * Params: - * level = the level to get the name for - * - * Returns: the name - */ - public static string levelGetName(GstDebugLevel level) - { - return Str.toString(gst_debug_level_get_name(level)); - } - - /** - * The default logging handler used by GStreamer. Logging functions get called - * whenever a macro like GST_DEBUG or similar is used. By default this function - * is setup to output the message and additional info to stderr (or the log file - * specified via the GST_DEBUG_FILE environment variable) as received via - * @user_data. - * - * You can add other handlers by using gst_debug_add_log_function(). - * And you can remove this handler by calling - * gst_debug_remove_log_function(gst_debug_log_default); - * - * Params: - * category = category to log - * level = level of the message - * file = the file that emitted the message, usually the __FILE__ identifier - * function_ = the function that emitted the message - * line = the line from that the message was emitted, usually __LINE__ - * object = the object this message relates to, - * or %NULL if none - * message = the actual message - * userData = the FILE* to log to - */ - public static void logDefault(DebugCategory category, GstDebugLevel level, string file, string function_, int line, ObjectG object, GstDebugMessage* message, void* userData) - { - gst_debug_log_default((category is null) ? null : category.getDebugCategoryStruct(), level, Str.toStringz(file), Str.toStringz(function_), line, (object is null) ? null : object.getObjectGStruct(), message, userData); - } - - /** - * Logs the given message using the currently registered debugging handlers. - * - * Params: - * category = category to log - * level = level of the message is in - * file = the file that emitted the message, usually the __FILE__ identifier - * function_ = the function that emitted the message - * line = the line from that the message was emitted, usually __LINE__ - * object = the object this message relates to, - * or %NULL if none - * format = a printf style format string - * args = optional arguments for the format - */ - public static void logValist(DebugCategory category, GstDebugLevel level, string file, string function_, int line, ObjectG object, string format, void* args) - { - gst_debug_log_valist((category is null) ? null : category.getDebugCategoryStruct(), level, Str.toStringz(file), Str.toStringz(function_), line, (object is null) ? null : object.getObjectGStruct(), Str.toStringz(format), args); - } - - /** - * If libunwind, glibc backtrace or DbgHelp are present - * a stack trace is printed. - */ - public static void printStackTrace() - { - gst_debug_print_stack_trace(); - } - - /** - * Removes all registered instances of the given logging functions. - * - * Params: - * func = the log function to remove, or %NULL to - * remove the default log function - * - * Returns: How many instances of the function were removed - */ - public static uint removeLogFunction(GstLogFunction func) - { - return gst_debug_remove_log_function(func); - } - - /** - * Removes all registered instances of log functions with the given user data. - * - * Params: - * data = user data of the log function to remove - * - * Returns: How many instances of the function were removed - */ - public static uint removeLogFunctionByData(void* data) - { - return gst_debug_remove_log_function_by_data(data); - } - - /** - * If activated, debugging messages are sent to the debugging - * handlers. - * It makes sense to deactivate it for speed issues. - * > This function is not threadsafe. It makes sense to only call it - * during initialization. - * - * Params: - * active = Whether to use debugging output or not - */ - public static void setActive(bool active) - { - gst_debug_set_active(active); - } - - /** - * Changes the coloring mode for debug output. - * - * This function may be called before gst_init(). - * - * Params: - * mode = The coloring mode for debug output. See @GstDebugColorMode. - * - * Since: 1.2 - */ - public static void setColorMode(GstDebugColorMode mode) - { - gst_debug_set_color_mode(mode); - } - - /** - * Changes the coloring mode for debug output. - * - * This function may be called before gst_init(). - * - * Params: - * mode = The coloring mode for debug output. One of the following: - * "on", "auto", "off", "disable", "unix". - * - * Since: 1.2 - */ - public static void setColorModeFromString(string mode) - { - gst_debug_set_color_mode_from_string(Str.toStringz(mode)); - } - - /** - * Sets or unsets the use of coloured debugging output. - * Same as gst_debug_set_color_mode () with the argument being - * being GST_DEBUG_COLOR_MODE_ON or GST_DEBUG_COLOR_MODE_OFF. - * - * This function may be called before gst_init(). - * - * Params: - * colored = Whether to use colored output or not - */ - public static void setColored(bool colored) - { - gst_debug_set_colored(colored); - } - - /** - * Sets the default threshold to the given level and updates all categories to - * use this threshold. - * - * This function may be called before gst_init(). - * - * Params: - * level = level to set - */ - public static void setDefaultThreshold(GstDebugLevel level) - { - gst_debug_set_default_threshold(level); - } - - /** - * Sets all categories which match the given glob style pattern to the given - * level. - * - * Params: - * name = name of the categories to set - * level = level to set them to - */ - public static void setThresholdForName(string name, GstDebugLevel level) - { - gst_debug_set_threshold_for_name(Str.toStringz(name), level); - } - - /** - * Sets the debug logging wanted in the same form as with the GST_DEBUG - * environment variable. You can use wildcards such as '*', but note that - * the order matters when you use wild cards, e.g. "foosrc:6,*src:3,*:2" sets - * everything to log level 2. - * - * Params: - * list = comma-separated list of "category:level" pairs to be used - * as debug logging levels - * reset = %TRUE to clear all previously-set debug levels before setting - * new thresholds - * %FALSE if adding the threshold described by @list to the one already set. - * - * Since: 1.2 - */ - public static void setThresholdFromString(string list, bool reset) - { - gst_debug_set_threshold_from_string(Str.toStringz(list), reset); - } - - /** - * Resets all categories with the given name back to the default level. - * - * Params: - * name = name of the categories to set - */ - public static void unsetThresholdForName(string name) - { - gst_debug_unset_threshold_for_name(Str.toStringz(name)); - } -} diff --git a/generated/gstreamer/gstreamer/DebugCategory.d b/generated/gstreamer/gstreamer/DebugCategory.d deleted file mode 100644 index d4c6bc977..000000000 --- a/generated/gstreamer/gstreamer/DebugCategory.d +++ /dev/null @@ -1,153 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DebugCategory; - -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * This is the struct that describes the categories. Once initialized with - * #GST_DEBUG_CATEGORY_INIT, its values can't be changed anymore. - */ -public class DebugCategory -{ - /** the main Gtk struct */ - protected GstDebugCategory* gstDebugCategory; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstDebugCategory* getDebugCategoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDebugCategory; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstDebugCategory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDebugCategory* gstDebugCategory, bool ownedRef = false) - { - this.gstDebugCategory = gstDebugCategory; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_debug_category_free(gstDebugCategory); - } - - - /** - * Removes and frees the category and all associated resources. - * - * Deprecated: This function can easily cause memory corruption, don't use it. - */ - public void free() - { - gst_debug_category_free(gstDebugCategory); - ownedRef = false; - } - - /** - * Returns the color of a debug category used when printing output in this - * category. - * - * Returns: the color of the category. - */ - public uint getColor() - { - return gst_debug_category_get_color(gstDebugCategory); - } - - /** - * Returns the description of a debug category. - * - * Returns: the description of the category. - */ - public string getDescription() - { - return Str.toString(gst_debug_category_get_description(gstDebugCategory)); - } - - /** - * Returns the name of a debug category. - * - * Returns: the name of the category. - */ - public string getName() - { - return Str.toString(gst_debug_category_get_name(gstDebugCategory)); - } - - /** - * Returns the threshold of a #GstDebugCategory. - * - * Returns: the #GstDebugLevel that is used as threshold. - */ - public GstDebugLevel getThreshold() - { - return gst_debug_category_get_threshold(gstDebugCategory); - } - - /** - * Resets the threshold of the category to the default level. Debug information - * will only be output if the threshold is lower or equal to the level of the - * debugging message. - * Use this function to set the threshold back to where it was after using - * gst_debug_category_set_threshold(). - */ - public void resetThreshold() - { - gst_debug_category_reset_threshold(gstDebugCategory); - } - - /** - * Sets the threshold of the category to the given level. Debug information will - * only be output if the threshold is lower or equal to the level of the - * debugging message. - * > Do not use this function in production code, because other functions may - * > change the threshold of categories as side effect. It is however a nice - * > function to use when debugging (even from gdb). - * - * Params: - * level = the #GstDebugLevel threshold to set. - */ - public void setThreshold(GstDebugLevel level) - { - gst_debug_category_set_threshold(gstDebugCategory, level); - } -} diff --git a/generated/gstreamer/gstreamer/DebugMessage.d b/generated/gstreamer/gstreamer/DebugMessage.d deleted file mode 100644 index 76e5f3274..000000000 --- a/generated/gstreamer/gstreamer/DebugMessage.d +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DebugMessage; - -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct DebugMessage -{ - - /** - * Gets the string representation of a #GstDebugMessage. This function is used - * in debug handlers to extract the message. - * - * Returns: the string representation of a #GstDebugMessage. - */ - public static string get(GstDebugMessage* message) - { - return Str.toString(gst_debug_message_get(message)); - } -} diff --git a/generated/gstreamer/gstreamer/Device.d b/generated/gstreamer/gstreamer/Device.d deleted file mode 100644 index 11265d370..000000000 --- a/generated/gstreamer/gstreamer/Device.d +++ /dev/null @@ -1,240 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Device; - -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.Caps; -private import gstreamer.Element; -private import gstreamer.ObjectGst; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * #GstDevice are objects representing a device, they contain - * relevant metadata about the device, such as its class and the #GstCaps - * representing the media types it can produce or handle. - * - * #GstDevice are created by #GstDeviceProvider objects which can be - * aggregated by #GstDeviceMonitor objects. - * - * Since: 1.4 - */ -public class Device : ObjectGst -{ - /** the main Gtk struct */ - protected GstDevice* gstDevice; - - /** Get the main Gtk struct */ - public GstDevice* getDeviceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDevice; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstDevice; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDevice* gstDevice, bool ownedRef = false) - { - this.gstDevice = gstDevice; - super(cast(GstObject*)gstDevice, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_device_get_type(); - } - - /** - * Creates the element with all of the required parameters set to use - * this device. - * - * Params: - * name = name of new element, or %NULL to automatically - * create a unique name. - * - * Returns: a new #GstElement configured to use - * this device - * - * Since: 1.4 - */ - public Element createElement(string name) - { - auto __p = gst_device_create_element(gstDevice, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Getter for the #GstCaps that this device supports. - * - * Returns: The #GstCaps supported by this device. Unref with - * gst_caps_unref() when done. - * - * Since: 1.4 - */ - public Caps getCaps() - { - auto __p = gst_device_get_caps(gstDevice); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Gets the "class" of a device. This is a "/" separated list of - * classes that represent this device. They are a subset of the - * classes of the #GstDeviceProvider that produced this device. - * - * Returns: The device class. Free with g_free() after use. - * - * Since: 1.4 - */ - public string getDeviceClass() - { - auto retStr = gst_device_get_device_class(gstDevice); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the user-friendly name of the device. - * - * Returns: The device name. Free with g_free() after use. - * - * Since: 1.4 - */ - public string getDisplayName() - { - auto retStr = gst_device_get_display_name(gstDevice); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the extra properties of a device. - * - * Returns: The extra properties or %NULL when there are none. - * Free with gst_structure_free() after use. - * - * Since: 1.6 - */ - public Structure getProperties() - { - auto __p = gst_device_get_properties(gstDevice); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p, true); - } - - /** - * Check if @device matches all of the given classes - * - * Params: - * classes = a "/"-separated list of device classes to match, only match if - * all classes are matched - * - * Returns: %TRUE if @device matches. - * - * Since: 1.4 - */ - public bool hasClasses(string classes) - { - return gst_device_has_classes(gstDevice, Str.toStringz(classes)) != 0; - } - - /** - * Check if @factory matches all of the given classes - * - * Params: - * classes = a %NULL terminated array of classes - * to match, only match if all classes are matched - * - * Returns: %TRUE if @device matches. - * - * Since: 1.4 - */ - public bool hasClassesv(string[] classes) - { - return gst_device_has_classesv(gstDevice, Str.toStringzArray(classes)) != 0; - } - - /** - * Tries to reconfigure an existing element to use the device. If this - * function fails, then one must destroy the element and create a new one - * using gst_device_create_element(). - * - * Note: This should only be implemented for elements can change their - * device in the PLAYING state. - * - * Params: - * element = a #GstElement - * - * Returns: %TRUE if the element could be reconfigured to use this device, - * %FALSE otherwise. - * - * Since: 1.4 - */ - public bool reconfigureElement(Element element) - { - return gst_device_reconfigure_element(gstDevice, (element is null) ? null : element.getElementStruct()) != 0; - } - - /** */ - gulong addOnRemoved(void delegate(Device) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/DeviceMonitor.d b/generated/gstreamer/gstreamer/DeviceMonitor.d deleted file mode 100644 index be7706d0b..000000000 --- a/generated/gstreamer/gstreamer/DeviceMonitor.d +++ /dev/null @@ -1,311 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DeviceMonitor; - -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Bus; -private import gstreamer.Caps; -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Applications should create a #GstDeviceMonitor when they want - * to probe, list and monitor devices of a specific type. The - * #GstDeviceMonitor will create the appropriate - * #GstDeviceProvider objects and manage them. It will then post - * messages on its #GstBus for devices that have been added and - * removed. - * - * The device monitor will monitor all devices matching the filters that - * the application has set. - * - * The basic use pattern of a device monitor is as follows: - * |[ - * static gboolean - * my_bus_func (GstBus * bus, GstMessage * message, gpointer user_data) - * { - * GstDevice *device; - * gchar *name; - * - * switch (GST_MESSAGE_TYPE (message)) { - * case GST_MESSAGE_DEVICE_ADDED: - * gst_message_parse_device_added (message, &device); - * name = gst_device_get_display_name (device); - * g_print("Device added: %s\n", name); - * g_free (name); - * gst_object_unref (device); - * break; - * case GST_MESSAGE_DEVICE_REMOVED: - * gst_message_parse_device_removed (message, &device); - * name = gst_device_get_display_name (device); - * g_print("Device removed: %s\n", name); - * g_free (name); - * gst_object_unref (device); - * break; - * default: - * break; - * } - * - * return G_SOURCE_CONTINUE; - * } - * - * GstDeviceMonitor * - * setup_raw_video_source_device_monitor (void) { - * GstDeviceMonitor *monitor; - * GstBus *bus; - * GstCaps *caps; - * - * monitor = gst_device_monitor_new (); - * - * bus = gst_device_monitor_get_bus (monitor); - * gst_bus_add_watch (bus, my_bus_func, NULL); - * gst_object_unref (bus); - * - * caps = gst_caps_new_empty_simple ("video/x-raw"); - * gst_device_monitor_add_filter (monitor, "Video/Source", caps); - * gst_caps_unref (caps); - * - * gst_device_monitor_start (monitor); - * - * return monitor; - * } - * ]| - * - * Since: 1.4 - */ -public class DeviceMonitor : ObjectGst -{ - /** the main Gtk struct */ - protected GstDeviceMonitor* gstDeviceMonitor; - - /** Get the main Gtk struct */ - public GstDeviceMonitor* getDeviceMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDeviceMonitor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstDeviceMonitor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDeviceMonitor* gstDeviceMonitor, bool ownedRef = false) - { - this.gstDeviceMonitor = gstDeviceMonitor; - super(cast(GstObject*)gstDeviceMonitor, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_device_monitor_get_type(); - } - - /** - * Create a new #GstDeviceMonitor - * - * Returns: a new device monitor. - * - * Since: 1.4 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_device_monitor_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstDeviceMonitor*) __p, true); - } - - /** - * Adds a filter for which #GstDevice will be monitored, any device that matches - * all these classes and the #GstCaps will be returned. - * - * If this function is called multiple times to add more filters, each will be - * matched independently. That is, adding more filters will not further restrict - * what devices are matched. - * - * The #GstCaps supported by the device as returned by gst_device_get_caps() are - * not intersected with caps filters added using this function. - * - * Filters must be added before the #GstDeviceMonitor is started. - * - * Params: - * classes = device classes to use as filter or %NULL for any class - * caps = the #GstCaps to filter or %NULL for ANY - * - * Returns: The id of the new filter or 0 if no provider matched the filter's - * classes. - * - * Since: 1.4 - */ - public uint addFilter(string classes, Caps caps) - { - return gst_device_monitor_add_filter(gstDeviceMonitor, Str.toStringz(classes), (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * Gets the #GstBus of this #GstDeviceMonitor - * - * Returns: a #GstBus - * - * Since: 1.4 - */ - public Bus getBus() - { - auto __p = gst_device_monitor_get_bus(gstDeviceMonitor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Bus)(cast(GstBus*) __p, true); - } - - /** - * Gets a list of devices from all of the relevant monitors. This may actually - * probe the hardware if the monitor is not currently started. - * - * Returns: a #GList of - * #GstDevice - * - * Since: 1.4 - */ - public ListG getDevices() - { - auto __p = gst_device_monitor_get_devices(gstDeviceMonitor); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Get a list of the currently selected device provider factories. - * - * This - * - * Returns: A list of device provider factory names that are currently being - * monitored by @monitor or %NULL when nothing is being monitored. - * - * Since: 1.6 - */ - public string[] getProviders() - { - auto retStr = gst_device_monitor_get_providers(gstDeviceMonitor); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Get if @monitor is currently showing all devices, even those from hidden - * providers. - * - * Returns: %TRUE when all devices will be shown. - * - * Since: 1.6 - */ - public bool getShowAllDevices() - { - return gst_device_monitor_get_show_all_devices(gstDeviceMonitor) != 0; - } - - /** - * Removes a filter from the #GstDeviceMonitor using the id that was returned - * by gst_device_monitor_add_filter(). - * - * Params: - * filterId = the id of the filter - * - * Returns: %TRUE of the filter id was valid, %FALSE otherwise - * - * Since: 1.4 - */ - public bool removeFilter(uint filterId) - { - return gst_device_monitor_remove_filter(gstDeviceMonitor, filterId) != 0; - } - - /** - * Set if all devices should be visible, even those devices from hidden - * providers. Setting @show_all to true might show some devices multiple times. - * - * Params: - * showAll = show all devices - * - * Since: 1.6 - */ - public void setShowAllDevices(bool showAll) - { - gst_device_monitor_set_show_all_devices(gstDeviceMonitor, showAll); - } - - /** - * Starts monitoring the devices, one this has succeeded, the - * %GST_MESSAGE_DEVICE_ADDED and %GST_MESSAGE_DEVICE_REMOVED messages - * will be emitted on the bus when the list of devices changes. - * - * Returns: %TRUE if the device monitoring could be started - * - * Since: 1.4 - */ - public bool start() - { - return gst_device_monitor_start(gstDeviceMonitor) != 0; - } - - /** - * Stops monitoring the devices. - * - * Since: 1.4 - */ - public void stop() - { - gst_device_monitor_stop(gstDeviceMonitor); - } -} diff --git a/generated/gstreamer/gstreamer/DeviceProvider.d b/generated/gstreamer/gstreamer/DeviceProvider.d deleted file mode 100644 index b1c494da8..000000000 --- a/generated/gstreamer/gstreamer/DeviceProvider.d +++ /dev/null @@ -1,345 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DeviceProvider; - -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.Bus; -private import gstreamer.Device; -private import gstreamer.DeviceProviderFactory; -private import gstreamer.ObjectGst; -private import gstreamer.Plugin; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * A #GstDeviceProvider subclass is provided by a plugin that handles devices - * if there is a way to programmatically list connected devices. It can also - * optionally provide updates to the list of connected devices. - * - * Each #GstDeviceProvider subclass is a singleton, a plugin should - * normally provide a single subclass for all devices. - * - * Applications would normally use a #GstDeviceMonitor to monitor devices - * from all relevant providers. - * - * Since: 1.4 - */ -public class DeviceProvider : ObjectGst -{ - /** the main Gtk struct */ - protected GstDeviceProvider* gstDeviceProvider; - - /** Get the main Gtk struct */ - public GstDeviceProvider* getDeviceProviderStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDeviceProvider; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstDeviceProvider; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDeviceProvider* gstDeviceProvider, bool ownedRef = false) - { - this.gstDeviceProvider = gstDeviceProvider; - super(cast(GstObject*)gstDeviceProvider, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_device_provider_get_type(); - } - - /** - * Create a new device providerfactory capable of instantiating objects of the - * @type and add the factory to @plugin. - * - * Params: - * plugin = #GstPlugin to register the device provider with, or %NULL for - * a static device provider. - * name = name of device providers of this type - * rank = rank of device provider (higher rank means more importance when autoplugging) - * type = GType of device provider to register - * - * Returns: %TRUE, if the registering succeeded, %FALSE on error - * - * Since: 1.4 - */ - public static bool register(Plugin plugin, string name, uint rank, GType type) - { - return gst_device_provider_register((plugin is null) ? null : plugin.getPluginStruct(), Str.toStringz(name), rank, type) != 0; - } - - /** */ - public bool canMonitor() - { - return gst_device_provider_can_monitor(gstDeviceProvider) != 0; - } - - /** - * Posts a message on the provider's #GstBus to inform applications that - * a new device has been added. - * - * This is for use by subclasses. - * - * @device's reference count will be incremented, and any floating reference - * will be removed (see gst_object_ref_sink()). - * - * Params: - * device = a #GstDevice that has been added - * - * Since: 1.4 - */ - public void deviceAdd(Device device) - { - gst_device_provider_device_add(gstDeviceProvider, (device is null) ? null : device.getDeviceStruct()); - } - - /** - * This function is used when @changed_device was modified into its new form - * @device. This will post a `DEVICE_CHANGED` message on the bus to let - * the application know that the device was modified. #GstDevice is immutable - * for MT. safety purposes so this is an "atomic" way of letting the application - * know when a device was modified. - * - * Params: - * device = the new version of @changed_device - * changedDevice = the old version of the device that has been updated - * - * Since: 1.16 - */ - public void deviceChanged(Device device, Device changedDevice) - { - gst_device_provider_device_changed(gstDeviceProvider, (device is null) ? null : device.getDeviceStruct(), (changedDevice is null) ? null : changedDevice.getDeviceStruct()); - } - - /** - * Posts a message on the provider's #GstBus to inform applications that - * a device has been removed. - * - * This is for use by subclasses. - * - * Params: - * device = a #GstDevice that has been removed - * - * Since: 1.4 - */ - public void deviceRemove(Device device) - { - gst_device_provider_device_remove(gstDeviceProvider, (device is null) ? null : device.getDeviceStruct()); - } - - /** - * Gets the #GstBus of this #GstDeviceProvider - * - * Returns: a #GstBus - * - * Since: 1.4 - */ - public Bus getBus() - { - auto __p = gst_device_provider_get_bus(gstDeviceProvider); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Bus)(cast(GstBus*) __p, true); - } - - /** - * Gets a list of devices that this provider understands. This may actually - * probe the hardware if the provider is not currently started. - * - * If the provider has been started, this will returned the same #GstDevice - * objedcts that have been returned by the #GST_MESSAGE_DEVICE_ADDED messages. - * - * Returns: a #GList of - * #GstDevice - * - * Since: 1.4 - */ - public ListG getDevices() - { - auto __p = gst_device_provider_get_devices(gstDeviceProvider); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Retrieves the factory that was used to create this device provider. - * - * Returns: the #GstDeviceProviderFactory used for - * creating this device provider. no refcounting is needed. - * - * Since: 1.4 - */ - public DeviceProviderFactory getFactory() - { - auto __p = gst_device_provider_get_factory(gstDeviceProvider); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DeviceProviderFactory)(cast(GstDeviceProviderFactory*) __p); - } - - /** - * Get the provider factory names of the #GstDeviceProvider instances that - * are hidden by @provider. - * - * Returns: a list of hidden providers factory names or %NULL when - * nothing is hidden by @provider. Free with g_strfreev. - * - * Since: 1.6 - */ - public string[] getHiddenProviders() - { - auto retStr = gst_device_provider_get_hidden_providers(gstDeviceProvider); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Get metadata with @key in @provider. - * - * Params: - * key = the key to get - * - * Returns: the metadata for @key. - * - * Since: 1.14 - */ - public string getMetadata(string key) - { - return Str.toString(gst_device_provider_get_metadata(gstDeviceProvider, Str.toStringz(key))); - } - - /** - * Make @provider hide the devices from the factory with @name. - * - * This function is used when @provider will also provide the devices reported - * by provider factory @name. A monitor should stop monitoring the - * device provider with @name to avoid duplicate devices. - * - * Params: - * name = a provider factory name - * - * Since: 1.6 - */ - public void hideProvider(string name) - { - gst_device_provider_hide_provider(gstDeviceProvider, Str.toStringz(name)); - } - - /** - * Starts providering the devices. This will cause #GST_MESSAGE_DEVICE_ADDED - * and #GST_MESSAGE_DEVICE_REMOVED messages to be posted on the provider's bus - * when devices are added or removed from the system. - * - * Since the #GstDeviceProvider is a singleton, - * gst_device_provider_start() may already have been called by another - * user of the object, gst_device_provider_stop() needs to be called the same - * number of times. - * - * After this function has been called, gst_device_provider_get_devices() will - * return the same objects that have been received from the - * #GST_MESSAGE_DEVICE_ADDED messages and will no longer probe. - * - * Returns: %TRUE if the device providering could be started - * - * Since: 1.4 - */ - public bool start() - { - return gst_device_provider_start(gstDeviceProvider) != 0; - } - - /** - * Decreases the use-count by one. If the use count reaches zero, this - * #GstDeviceProvider will stop providering the devices. This needs to be - * called the same number of times that gst_device_provider_start() was called. - * - * Since: 1.4 - */ - public void stop() - { - gst_device_provider_stop(gstDeviceProvider); - } - - /** - * Make @provider unhide the devices from factory @name. - * - * This function is used when @provider will no longer provide the devices - * reported by provider factory @name. A monitor should start - * monitoring the devices from provider factory @name in order to see - * all devices again. - * - * Params: - * name = a provider factory name - * - * Since: 1.6 - */ - public void unhideProvider(string name) - { - gst_device_provider_unhide_provider(gstDeviceProvider, Str.toStringz(name)); - } - - /** */ - gulong addOnProviderHidden(void delegate(string, DeviceProvider) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "provider-hidden", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** */ - gulong addOnProviderUnhidden(void delegate(string, DeviceProvider) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "provider-unhidden", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/DeviceProviderClass.d b/generated/gstreamer/gstreamer/DeviceProviderClass.d deleted file mode 100644 index 965b62e01..000000000 --- a/generated/gstreamer/gstreamer/DeviceProviderClass.d +++ /dev/null @@ -1,166 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DeviceProviderClass; - -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The structure of the base #GstDeviceProviderClass - * - * Since: 1.4 - */ -public class DeviceProviderClass -{ - /** the main Gtk struct */ - protected GstDeviceProviderClass* gstDeviceProviderClass; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstDeviceProviderClass* getDeviceProviderClassStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDeviceProviderClass; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstDeviceProviderClass; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDeviceProviderClass* gstDeviceProviderClass, bool ownedRef = false) - { - this.gstDeviceProviderClass = gstDeviceProviderClass; - this.ownedRef = ownedRef; - } - - - /** - * Set @key with @value as metadata in @klass. - * - * Params: - * key = the key to set - * value = the value to set - * - * Since: 1.4 - */ - public void addMetadata(string key, string value) - { - gst_device_provider_class_add_metadata(gstDeviceProviderClass, Str.toStringz(key), Str.toStringz(value)); - } - - /** - * Set @key with @value as metadata in @klass. - * - * Same as gst_device_provider_class_add_metadata(), but @value must be a static string - * or an inlined string, as it will not be copied. (GStreamer plugins will - * be made resident once loaded, so this function can be used even from - * dynamically loaded plugins.) - * - * Params: - * key = the key to set - * value = the value to set - * - * Since: 1.4 - */ - public void addStaticMetadata(string key, string value) - { - gst_device_provider_class_add_static_metadata(gstDeviceProviderClass, Str.toStringz(key), Str.toStringz(value)); - } - - /** - * Get metadata with @key in @klass. - * - * Params: - * key = the key to get - * - * Returns: the metadata for @key. - * - * Since: 1.4 - */ - public string getMetadata(string key) - { - return Str.toString(gst_device_provider_class_get_metadata(gstDeviceProviderClass, Str.toStringz(key))); - } - - /** - * Sets the detailed information for a #GstDeviceProviderClass. - * - * > This function is for use in _class_init functions only. - * - * Params: - * longname = The long English name of the device provider. E.g. "File Sink" - * classification = String describing the type of device provider, as an - * unordered list separated with slashes ('/'). See draft-klass.txt of the - * design docs - * for more details and common types. E.g: "Sink/File" - * description = Sentence describing the purpose of the device provider. - * E.g: "Write stream to a file" - * author = Name and contact details of the author(s). Use \n to separate - * multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>" - * - * Since: 1.4 - */ - public void setMetadata(string longname, string classification, string description, string author) - { - gst_device_provider_class_set_metadata(gstDeviceProviderClass, Str.toStringz(longname), Str.toStringz(classification), Str.toStringz(description), Str.toStringz(author)); - } - - /** - * Sets the detailed information for a #GstDeviceProviderClass. - * - * > This function is for use in _class_init functions only. - * - * Same as gst_device_provider_class_set_metadata(), but @longname, @classification, - * @description, and @author must be static strings or inlined strings, as - * they will not be copied. (GStreamer plugins will be made resident once - * loaded, so this function can be used even from dynamically loaded plugins.) - * - * Params: - * longname = The long English name of the element. E.g. "File Sink" - * classification = String describing the type of element, as - * an unordered list separated with slashes ('/'). See draft-klass.txt of the - * design docs for more details and common types. E.g: "Sink/File" - * description = Sentence describing the purpose of the - * element. E.g: "Write stream to a file" - * author = Name and contact details of the author(s). Use \n - * to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at - * foo.com>" - * - * Since: 1.4 - */ - public void setStaticMetadata(string longname, string classification, string description, string author) - { - gst_device_provider_class_set_static_metadata(gstDeviceProviderClass, Str.toStringz(longname), Str.toStringz(classification), Str.toStringz(description), Str.toStringz(author)); - } -} diff --git a/generated/gstreamer/gstreamer/DeviceProviderFactory.d b/generated/gstreamer/gstreamer/DeviceProviderFactory.d deleted file mode 100644 index a712f918f..000000000 --- a/generated/gstreamer/gstreamer/DeviceProviderFactory.d +++ /dev/null @@ -1,254 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DeviceProviderFactory; - -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.DeviceProvider; -private import gstreamer.PluginFeature; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * #GstDeviceProviderFactory is used to create instances of device providers. A - * GstDeviceProviderfactory can be added to a #GstPlugin as it is also a - * #GstPluginFeature. - * - * Use the gst_device_provider_factory_find() and - * gst_device_provider_factory_get() functions to create device - * provider instances or use gst_device_provider_factory_get_by_name() as a - * convenient shortcut. - * - * Since: 1.4 - */ -public class DeviceProviderFactory : PluginFeature -{ - /** the main Gtk struct */ - protected GstDeviceProviderFactory* gstDeviceProviderFactory; - - /** Get the main Gtk struct */ - public GstDeviceProviderFactory* getDeviceProviderFactoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDeviceProviderFactory; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstDeviceProviderFactory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDeviceProviderFactory* gstDeviceProviderFactory, bool ownedRef = false) - { - this.gstDeviceProviderFactory = gstDeviceProviderFactory; - super(cast(GstPluginFeature*)gstDeviceProviderFactory, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_device_provider_factory_get_type(); - } - - /** - * Search for an device provider factory of the given name. Refs the returned - * device provider factory; caller is responsible for unreffing. - * - * Params: - * name = name of factory to find - * - * Returns: #GstDeviceProviderFactory if - * found, %NULL otherwise - * - * Since: 1.4 - */ - public static DeviceProviderFactory find(string name) - { - auto __p = gst_device_provider_factory_find(Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DeviceProviderFactory)(cast(GstDeviceProviderFactory*) __p, true); - } - - /** - * Returns the device provider of the type defined by the given device - * provider factory. - * - * Params: - * factoryname = a named factory to instantiate - * - * Returns: a #GstDeviceProvider or %NULL - * if unable to create device provider - * - * Since: 1.4 - */ - public static DeviceProvider getByName(string factoryname) - { - auto __p = gst_device_provider_factory_get_by_name(Str.toStringz(factoryname)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DeviceProvider)(cast(GstDeviceProvider*) __p, true); - } - - /** - * Get a list of factories with a rank greater or equal to @minrank. - * The list of factories is returned by decreasing rank. - * - * Params: - * minrank = Minimum rank - * - * Returns: a #GList of #GstDeviceProviderFactory device providers. Use - * gst_plugin_feature_list_free() after usage. - * - * Since: 1.4 - */ - public static ListG listGetDeviceProviders(GstRank minrank) - { - auto __p = gst_device_provider_factory_list_get_device_providers(minrank); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Returns the device provider of the type defined by the given device - * providerfactory. - * - * Returns: the #GstDeviceProvider or %NULL - * if the device provider couldn't be created - * - * Since: 1.4 - */ - public DeviceProvider get() - { - auto __p = gst_device_provider_factory_get(gstDeviceProviderFactory); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DeviceProvider)(cast(GstDeviceProvider*) __p, true); - } - - /** - * Get the #GType for device providers managed by this factory. The type can - * only be retrieved if the device provider factory is loaded, which can be - * assured with gst_plugin_feature_load(). - * - * Returns: the #GType for device providers managed by this factory. - * - * Since: 1.4 - */ - public GType getDeviceProviderType() - { - return gst_device_provider_factory_get_device_provider_type(gstDeviceProviderFactory); - } - - /** - * Get the metadata on @factory with @key. - * - * Params: - * key = a key - * - * Returns: the metadata with @key on @factory or %NULL - * when there was no metadata with the given @key. - * - * Since: 1.4 - */ - public string getMetadata(string key) - { - return Str.toString(gst_device_provider_factory_get_metadata(gstDeviceProviderFactory, Str.toStringz(key))); - } - - /** - * Get the available keys for the metadata on @factory. - * - * Returns: a %NULL-terminated array of key strings, or %NULL when there is no - * metadata. Free with g_strfreev() when no longer needed. - * - * Since: 1.4 - */ - public string[] getMetadataKeys() - { - auto retStr = gst_device_provider_factory_get_metadata_keys(gstDeviceProviderFactory); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Check if @factory matches all of the given @classes - * - * Params: - * classes = a "/" separate list of classes to match, only match - * if all classes are matched - * - * Returns: %TRUE if @factory matches or if @classes is %NULL. - * - * Since: 1.4 - */ - public bool hasClasses(string classes) - { - return gst_device_provider_factory_has_classes(gstDeviceProviderFactory, Str.toStringz(classes)) != 0; - } - - /** - * Check if @factory matches all of the given classes - * - * Params: - * classes = a %NULL terminated array - * of classes to match, only match if all classes are matched - * - * Returns: %TRUE if @factory matches. - * - * Since: 1.4 - */ - public bool hasClassesv(string[] classes) - { - return gst_device_provider_factory_has_classesv(gstDeviceProviderFactory, Str.toStringzArray(classes)) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/DoubleRange.d b/generated/gstreamer/gstreamer/DoubleRange.d deleted file mode 100644 index eb093d8c9..000000000 --- a/generated/gstreamer/gstreamer/DoubleRange.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DoubleRange; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes a #gdouble range - */ -public class DoubleRange -{ - /** the main Gtk struct */ - protected GstDoubleRange* gstDoubleRange; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstDoubleRange* getDoubleRangeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDoubleRange; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstDoubleRange; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDoubleRange* gstDoubleRange, bool ownedRef = false) - { - this.gstDoubleRange = gstDoubleRange; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_double_range_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/DynamicTypeFactory.d b/generated/gstreamer/gstreamer/DynamicTypeFactory.d deleted file mode 100644 index 8a69dbe5d..000000000 --- a/generated/gstreamer/gstreamer/DynamicTypeFactory.d +++ /dev/null @@ -1,96 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.DynamicTypeFactory; - -private import glib.Str; -private import gstreamer.PluginFeature; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * #GstDynamicTypeFactory is used to represent a type that can be - * automatically loaded the first time it is used. For example, - * a non-standard type for use in caps fields. - * - * In general, applications and plugins don't need to use the factory - * beyond registering the type in a plugin init function. Once that is - * done, the type is stored in the registry, and ready as soon as the - * registry is loaded. - * - * ## Registering a type for dynamic loading - * - * |[ - * - * static gboolean - * plugin_init (GstPlugin * plugin) - * { - * return gst_dynamic_type_register (plugin, GST_TYPE_CUSTOM_CAPS_FIELD); - * } - * ]| - * - * Since: 1.12 - */ -public class DynamicTypeFactory : PluginFeature -{ - /** the main Gtk struct */ - protected GstDynamicTypeFactory* gstDynamicTypeFactory; - - /** Get the main Gtk struct */ - public GstDynamicTypeFactory* getDynamicTypeFactoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstDynamicTypeFactory; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstDynamicTypeFactory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstDynamicTypeFactory* gstDynamicTypeFactory, bool ownedRef = false) - { - this.gstDynamicTypeFactory = gstDynamicTypeFactory; - super(cast(GstPluginFeature*)gstDynamicTypeFactory, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_dynamic_type_factory_get_type(); - } - - /** */ - public static GType load(string factoryname) - { - return gst_dynamic_type_factory_load(Str.toStringz(factoryname)); - } -} diff --git a/generated/gstreamer/gstreamer/Element.d b/generated/gstreamer/gstreamer/Element.d deleted file mode 100644 index 6d1053f69..000000000 --- a/generated/gstreamer/gstreamer/Element.d +++ /dev/null @@ -1,1683 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Element; - -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import gobject.Type; -private import gobject.c.functions; -private import gstreamer.Bus; -private import gstreamer.Caps; -private import gstreamer.Clock; -private import gstreamer.Context; -private import gstreamer.ElementFactory; -private import gstreamer.Event; -private import gstreamer.Iterator; -private import gstreamer.Message; -private import gstreamer.ObjectGst; -private import gstreamer.Pad; -private import gstreamer.PadTemplate; -private import gstreamer.Plugin; -private import gstreamer.Query; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * GstElement is the abstract base class needed to construct an element that - * can be used in a GStreamer pipeline. Please refer to the plugin writers - * guide for more information on creating #GstElement subclasses. - * - * The name of a #GstElement can be get with gst_element_get_name() and set with - * gst_element_set_name(). For speed, GST_ELEMENT_NAME() can be used in the - * core when using the appropriate locking. Do not use this in plug-ins or - * applications in order to retain ABI compatibility. - * - * Elements can have pads (of the type #GstPad). These pads link to pads on - * other elements. #GstBuffer flow between these linked pads. - * A #GstElement has a #GList of #GstPad structures for all their input (or sink) - * and output (or source) pads. - * Core and plug-in writers can add and remove pads with gst_element_add_pad() - * and gst_element_remove_pad(). - * - * An existing pad of an element can be retrieved by name with - * gst_element_get_static_pad(). A new dynamic pad can be created using - * gst_element_request_pad() with a #GstPadTemplate. - * An iterator of all pads can be retrieved with gst_element_iterate_pads(). - * - * Elements can be linked through their pads. - * If the link is straightforward, use the gst_element_link() - * convenience function to link two elements, or gst_element_link_many() - * for more elements in a row. - * Use gst_element_link_filtered() to link two elements constrained by - * a specified set of #GstCaps. - * For finer control, use gst_element_link_pads() and - * gst_element_link_pads_filtered() to specify the pads to link on - * each element by name. - * - * Each element has a state (see #GstState). You can get and set the state - * of an element with gst_element_get_state() and gst_element_set_state(). - * Setting a state triggers a #GstStateChange. To get a string representation - * of a #GstState, use gst_element_state_get_name(). - * - * You can get and set a #GstClock on an element using gst_element_get_clock() - * and gst_element_set_clock(). - * Some elements can provide a clock for the pipeline if - * the #GST_ELEMENT_FLAG_PROVIDE_CLOCK flag is set. With the - * gst_element_provide_clock() method one can retrieve the clock provided by - * such an element. - * Not all elements require a clock to operate correctly. If the - * #GST_ELEMENT_FLAG_REQUIRE_CLOCK() flag is set, a clock should be set on the - * element with gst_element_set_clock(). - * - * Note that clock selection and distribution is normally handled by the - * toplevel #GstPipeline so the clock functions are only to be used in very - * specific situations. - */ -public class Element : ObjectGst -{ - /** the main Gtk struct */ - protected GstElement* gstElement; - - /** Get the main Gtk struct */ - public GstElement* getElementStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstElement; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstElement; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstElement* gstElement, bool ownedRef = false) - { - this.gstElement = gstElement; - super(cast(GstObject*)gstElement, ownedRef); - } - - /** - * Queries an element for the stream position. - * This is a convenience function for gstreamerD. - * Returns: - * The current position in nanoseconds - GstFormat.TIME. - */ - public long queryPosition() - { - GstFormat form = GstFormat.TIME; - long cur_pos; - queryPosition( form, cur_pos ); - return cur_pos; - } - - /** - * Queries an element for the stream duration. - * This is a convenience function for gstreamerD. - * Returns: - * The duration in nanoseconds - GstFormat.TIME. - */ - public long queryDuration() - { - GstFormat form = GstFormat.TIME; - long cur_dur; - queryDuration( form, cur_dur ); - return cur_dur; - } - - /** - * This set's the filename for a filesrc element. - */ - public void location( string set ) - { - //g_object_set( G_OBJECT(getElementStruct()), "location", set, NULL); - setProperty("location", set); - } - - /** - * Set the caps property of an Element. - */ - void caps( Caps cp ) - { - g_object_set( getElementStruct(), Str.toStringz("caps"), cp.getCapsStruct(), null ); - } - - /** - * For your convenience in gstreamerD: you can seek to the - * position of the pipeline measured in time_nanoseconds. - */ - public int seek( long time_nanoseconds ) //gint64 - { - return seek( 1.0, GstFormat.TIME, GstSeekFlags.FLUSH, - GstSeekType.SET, time_nanoseconds, - GstSeekType.NONE, GST_CLOCK_TIME_NONE); - } - - /** - * Get's all the pads from an element in a Pad[]. - */ - public Pad[] pads() - { - Pad[] result; - GValue* pad = g_value_init(new GValue(), Pad.getType()); - GstIterator* iter = gst_element_iterate_pads(gstElement); - - while ( gst_iterator_next(iter, pad) == GstIteratorResult.OK ) - { - result ~= ObjectG.getDObject!(Pad)(cast(GstPad*)g_value_get_object(pad)); - g_value_reset(pad); - } - - g_value_unset(pad); - - return result; - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_element_get_type(); - } - - /** - * Creates an element for handling the given URI. - * - * Params: - * type = Whether to create a source or a sink - * uri = URI to create an element for - * elementname = Name of created element, can be %NULL. - * - * Returns: a new element or %NULL if none - * could be created - * - * Throws: GException on failure. - */ - public static Element makeFromUri(GstURIType type, string uri, string elementname) - { - GError* err = null; - - auto __p = gst_element_make_from_uri(type, Str.toStringz(uri), Str.toStringz(elementname), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Create a new elementfactory capable of instantiating objects of the - * @type and add the factory to @plugin. - * - * Params: - * plugin = #GstPlugin to register the element with, or %NULL for - * a static element. - * name = name of elements of this type - * rank = rank of element (higher rank means more importance when autoplugging) - * type = GType of element to register - * - * Returns: %TRUE, if the registering succeeded, %FALSE on error - */ - public static bool register(Plugin plugin, string name, uint rank, GType type) - { - return gst_element_register((plugin is null) ? null : plugin.getPluginStruct(), Str.toStringz(name), rank, type) != 0; - } - - /** - * Gets a string representing the given state change result. - * - * Params: - * stateRet = a #GstStateChangeReturn to get the name of. - * - * Returns: a string with the name of the state - * result. - */ - public static string stateChangeReturnGetName(GstStateChangeReturn stateRet) - { - return Str.toString(gst_element_state_change_return_get_name(stateRet)); - } - - /** - * Gets a string representing the given state. - * - * Params: - * state = a #GstState to get the name of. - * - * Returns: a string with the name of the state. - */ - public static string stateGetName(GstState state) - { - return Str.toString(gst_element_state_get_name(state)); - } - - /** - * Abort the state change of the element. This function is used - * by elements that do asynchronous state changes and find out - * something is wrong. - * - * This function should be called with the STATE_LOCK held. - * - * MT safe. - */ - public void abortState() - { - gst_element_abort_state(gstElement); - } - - /** - * Adds a pad (link point) to @element. @pad's parent will be set to @element; - * see gst_object_set_parent() for refcounting information. - * - * Pads are automatically activated when added in the PAUSED or PLAYING - * state. - * - * The pad and the element should be unlocked when calling this function. - * - * This function will emit the #GstElement::pad-added signal on the element. - * - * Params: - * pad = the #GstPad to add to the element. - * - * Returns: %TRUE if the pad could be added. This function can fail when - * a pad with the same name already existed or the pad already had another - * parent. - * - * MT safe. - */ - public bool addPad(Pad pad) - { - return gst_element_add_pad(gstElement, (pad is null) ? null : pad.getPadStruct()) != 0; - } - - /** - * - * Params: - * propertyName = name of property to watch for changes, or - * NULL to watch all properties - * includeValue = whether to include the new property value in the message - * Returns: a watch id, which can be used in connection with - * gst_element_remove_property_notify_watch() to remove the watch again. - * - * Since: 1.10 - */ - public gulong addPropertyDeepNotifyWatch(string propertyName, bool includeValue) - { - return gst_element_add_property_deep_notify_watch(gstElement, Str.toStringz(propertyName), includeValue); - } - - /** - * - * Params: - * propertyName = name of property to watch for changes, or - * NULL to watch all properties - * includeValue = whether to include the new property value in the message - * Returns: a watch id, which can be used in connection with - * gst_element_remove_property_notify_watch() to remove the watch again. - * - * Since: 1.10 - */ - public gulong addPropertyNotifyWatch(string propertyName, bool includeValue) - { - return gst_element_add_property_notify_watch(gstElement, Str.toStringz(propertyName), includeValue); - } - - /** - * Calls @func from another thread and passes @user_data to it. This is to be - * used for cases when a state change has to be performed from a streaming - * thread, directly via gst_element_set_state() or indirectly e.g. via SEEK - * events. - * - * Calling those functions directly from the streaming thread will cause - * deadlocks in many situations, as they might involve waiting for the - * streaming thread to shut down from this very streaming thread. - * - * MT safe. - * - * Params: - * func = Function to call asynchronously from another thread - * userData = Data to pass to @func - * destroyNotify = GDestroyNotify for @user_data - * - * Since: 1.10 - */ - public void callAsync(GstElementCallAsyncFunc func, void* userData, GDestroyNotify destroyNotify) - { - gst_element_call_async(gstElement, func, userData, destroyNotify); - } - - /** - * Perform @transition on @element. - * - * This function must be called with STATE_LOCK held and is mainly used - * internally. - * - * Params: - * transition = the requested transition - * - * Returns: the #GstStateChangeReturn of the state transition. - */ - public GstStateChangeReturn changeState(GstStateChange transition) - { - return gst_element_change_state(gstElement, transition); - } - - /** - * Commit the state change of the element and proceed to the next - * pending state if any. This function is used - * by elements that do asynchronous state changes. - * The core will normally call this method automatically when an - * element returned %GST_STATE_CHANGE_SUCCESS from the state change function. - * - * If after calling this method the element still has not reached - * the pending state, the next state change is performed. - * - * This method is used internally and should normally not be called by plugins - * or applications. - * - * This function must be called with STATE_LOCK held. - * - * Params: - * ret = The previous state return value - * - * Returns: The result of the commit state change. - * - * MT safe. - */ - public GstStateChangeReturn continueState(GstStateChangeReturn ret) - { - return gst_element_continue_state(gstElement, ret); - } - - /** - * Creates a pad for each pad template that is always available. - * This function is only useful during object initialization of - * subclasses of #GstElement. - */ - public void createAllPads() - { - gst_element_create_all_pads(gstElement); - } - - /** - * Call @func with @user_data for each of @element's pads. @func will be called - * exactly once for each pad that exists at the time of this call, unless - * one of the calls to @func returns %FALSE in which case we will stop - * iterating pads and return early. If new pads are added or pads are removed - * while pads are being iterated, this will not be taken into account until - * next time this function is used. - * - * Params: - * func = function to call for each pad - * userData = user data passed to @func - * - * Returns: %FALSE if @element had no pads or if one of the calls to @func - * returned %FALSE. - * - * Since: 1.14 - */ - public bool foreachPad(GstElementForeachPadFunc func, void* userData) - { - return gst_element_foreach_pad(gstElement, func, userData) != 0; - } - - /** - * Call @func with @user_data for each of @element's sink pads. @func will be - * called exactly once for each sink pad that exists at the time of this call, - * unless one of the calls to @func returns %FALSE in which case we will stop - * iterating pads and return early. If new sink pads are added or sink pads - * are removed while the sink pads are being iterated, this will not be taken - * into account until next time this function is used. - * - * Params: - * func = function to call for each sink pad - * userData = user data passed to @func - * - * Returns: %FALSE if @element had no sink pads or if one of the calls to @func - * returned %FALSE. - * - * Since: 1.14 - */ - public bool foreachSinkPad(GstElementForeachPadFunc func, void* userData) - { - return gst_element_foreach_sink_pad(gstElement, func, userData) != 0; - } - - /** - * Call @func with @user_data for each of @element's source pads. @func will be - * called exactly once for each source pad that exists at the time of this call, - * unless one of the calls to @func returns %FALSE in which case we will stop - * iterating pads and return early. If new source pads are added or source pads - * are removed while the source pads are being iterated, this will not be taken - * into account until next time this function is used. - * - * Params: - * func = function to call for each source pad - * userData = user data passed to @func - * - * Returns: %FALSE if @element had no source pads or if one of the calls - * to @func returned %FALSE. - * - * Since: 1.14 - */ - public bool foreachSrcPad(GstElementForeachPadFunc func, void* userData) - { - return gst_element_foreach_src_pad(gstElement, func, userData) != 0; - } - - /** - * Returns the base time of the element. The base time is the - * absolute time of the clock when this element was last put to - * PLAYING. Subtracting the base time from the clock time gives - * the running time of the element. - * - * Returns: the base time of the element. - * - * MT safe. - */ - public GstClockTime getBaseTime() - { - return gst_element_get_base_time(gstElement); - } - - /** - * Returns the bus of the element. Note that only a #GstPipeline will provide a - * bus for the application. - * - * Returns: the element's #GstBus. unref after - * usage. - * - * MT safe. - */ - public Bus getBus() - { - auto __p = gst_element_get_bus(gstElement); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Bus)(cast(GstBus*) __p, true); - } - - /** - * Gets the currently configured clock of the element. This is the clock as was - * last set with gst_element_set_clock(). - * - * Elements in a pipeline will only have their clock set when the - * pipeline is in the PLAYING state. - * - * Returns: the #GstClock of the element. unref after usage. - * - * MT safe. - */ - public Clock getClock() - { - auto __p = gst_element_get_clock(gstElement); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clock)(cast(GstClock*) __p, true); - } - - /** - * Looks for an unlinked pad to which the given pad can link. It is not - * guaranteed that linking the pads will work, though it should work in most - * cases. - * - * This function will first attempt to find a compatible unlinked ALWAYS pad, - * and if none can be found, it will request a compatible REQUEST pad by looking - * at the templates of @element. - * - * Params: - * pad = the #GstPad to find a compatible one for. - * caps = the #GstCaps to use as a filter. - * - * Returns: the #GstPad to which a link - * can be made, or %NULL if one cannot be found. gst_object_unref() - * after usage. - */ - public Pad getCompatiblePad(Pad pad, Caps caps) - { - auto __p = gst_element_get_compatible_pad(gstElement, (pad is null) ? null : pad.getPadStruct(), (caps is null) ? null : caps.getCapsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * Retrieves a pad template from @element that is compatible with @compattempl. - * Pads from compatible templates can be linked together. - * - * Params: - * compattempl = the #GstPadTemplate to find a compatible - * template for - * - * Returns: a compatible #GstPadTemplate, - * or %NULL if none was found. No unreferencing is necessary. - */ - public PadTemplate getCompatiblePadTemplate(PadTemplate compattempl) - { - auto __p = gst_element_get_compatible_pad_template(gstElement, (compattempl is null) ? null : compattempl.getPadTemplateStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PadTemplate)(cast(GstPadTemplate*) __p); - } - - /** - * Gets the context with @context_type set on the element or NULL. - * - * MT safe. - * - * Params: - * contextType = a name of a context to retrieve - * - * Returns: A #GstContext or NULL - * - * Since: 1.8 - */ - public Context getContext(string contextType) - { - auto __p = gst_element_get_context(gstElement, Str.toStringz(contextType)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Context)(cast(GstContext*) __p, true); - } - - /** - * Gets the context with @context_type set on the element or NULL. - * - * Params: - * contextType = a name of a context to retrieve - * - * Returns: A #GstContext or NULL - * - * Since: 1.8 - */ - public Context getContextUnlocked(string contextType) - { - auto __p = gst_element_get_context_unlocked(gstElement, Str.toStringz(contextType)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Context)(cast(GstContext*) __p, true); - } - - /** - * Gets the contexts set on the element. - * - * MT safe. - * - * Returns: List of #GstContext - * - * Since: 1.8 - */ - public ListG getContexts() - { - auto __p = gst_element_get_contexts(gstElement); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Returns the current clock time of the element, as in, the time of the - * element's clock, or GST_CLOCK_TIME_NONE if there is no clock. - * - * Returns: the clock time of the element, or GST_CLOCK_TIME_NONE if there is - * no clock. - * - * Since: 1.18 - */ - public GstClockTime getCurrentClockTime() - { - return gst_element_get_current_clock_time(gstElement); - } - - /** - * Returns the running time of the element. The running time is the - * element's clock time minus its base time. Will return GST_CLOCK_TIME_NONE - * if the element has no clock, or if its base time has not been set. - * - * Returns: the running time of the element, or GST_CLOCK_TIME_NONE if the - * element has no clock or its base time has not been set. - * - * Since: 1.18 - */ - public GstClockTime getCurrentRunningTime() - { - return gst_element_get_current_running_time(gstElement); - } - - /** - * Retrieves the factory that was used to create this element. - * - * Returns: the #GstElementFactory used for creating this - * element or %NULL if element has not been registered (static element). no refcounting is needed. - */ - public ElementFactory getFactory() - { - auto __p = gst_element_get_factory(gstElement); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ElementFactory)(cast(GstElementFactory*) __p); - } - - /** - * Get metadata with @key in @klass. - * - * Params: - * key = the key to get - * - * Returns: the metadata for @key. - * - * Since: 1.14 - */ - public string getMetadata(string key) - { - return Str.toString(gst_element_get_metadata(gstElement, Str.toStringz(key))); - } - - /** - * Retrieves a padtemplate from @element with the given name. - * - * Params: - * name = the name of the #GstPadTemplate to get. - * - * Returns: the #GstPadTemplate with the - * given name, or %NULL if none was found. No unreferencing is - * necessary. - * - * Since: 1.14 - */ - public PadTemplate getPadTemplate(string name) - { - auto __p = gst_element_get_pad_template(gstElement, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PadTemplate)(cast(GstPadTemplate*) __p); - } - - /** - * Retrieves a list of the pad templates associated with @element. The - * list must not be modified by the calling code. - * - * Returns: the #GList of - * pad templates. - * - * Since: 1.14 - */ - public ListG getPadTemplateList() - { - auto __p = gst_element_get_pad_template_list(gstElement); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Retrieves a pad from the element by name (e.g. "src_\%d"). This version only - * retrieves request pads. The pad should be released with - * gst_element_release_request_pad(). - * - * This method is slower than manually getting the pad template and calling - * gst_element_request_pad() if the pads should have a specific name (e.g. - * @name is "src_1" instead of "src_\%u"). - * - * Params: - * name = the name of the request #GstPad to retrieve. - * - * Returns: requested #GstPad if found, - * otherwise %NULL. Release after usage. - */ - public Pad getRequestPad(string name) - { - auto __p = gst_element_get_request_pad(gstElement, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * Returns the start time of the element. The start time is the - * running time of the clock when this element was last put to PAUSED. - * - * Usually the start_time is managed by a toplevel element such as - * #GstPipeline. - * - * MT safe. - * - * Returns: the start time of the element. - */ - public GstClockTime getStartTime() - { - return gst_element_get_start_time(gstElement); - } - - /** - * Gets the state of the element. - * - * For elements that performed an ASYNC state change, as reported by - * gst_element_set_state(), this function will block up to the - * specified timeout value for the state change to complete. - * If the element completes the state change or goes into - * an error, this function returns immediately with a return value of - * %GST_STATE_CHANGE_SUCCESS or %GST_STATE_CHANGE_FAILURE respectively. - * - * For elements that did not return %GST_STATE_CHANGE_ASYNC, this function - * returns the current and pending state immediately. - * - * This function returns %GST_STATE_CHANGE_NO_PREROLL if the element - * successfully changed its state but is not able to provide data yet. - * This mostly happens for live sources that only produce data in - * %GST_STATE_PLAYING. While the state change return is equivalent to - * %GST_STATE_CHANGE_SUCCESS, it is returned to the application to signal that - * some sink elements might not be able to complete their state change because - * an element is not producing data to complete the preroll. When setting the - * element to playing, the preroll will complete and playback will start. - * - * Params: - * state = a pointer to #GstState to hold the state. - * Can be %NULL. - * pending = a pointer to #GstState to hold the pending - * state. Can be %NULL. - * timeout = a #GstClockTime to specify the timeout for an async - * state change or %GST_CLOCK_TIME_NONE for infinite timeout. - * - * Returns: %GST_STATE_CHANGE_SUCCESS if the element has no more pending state - * and the last state change succeeded, %GST_STATE_CHANGE_ASYNC if the - * element is still performing a state change or - * %GST_STATE_CHANGE_FAILURE if the last state change failed. - * - * MT safe. - */ - public GstStateChangeReturn getState(out GstState state, out GstState pending, GstClockTime timeout) - { - return gst_element_get_state(gstElement, &state, &pending, timeout); - } - - /** - * Retrieves a pad from @element by name. This version only retrieves - * already-existing (i.e. 'static') pads. - * - * Params: - * name = the name of the static #GstPad to retrieve. - * - * Returns: the requested #GstPad if - * found, otherwise %NULL. unref after usage. - * - * MT safe. - */ - public Pad getStaticPad(string name) - { - auto __p = gst_element_get_static_pad(gstElement, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * Checks if the state of an element is locked. - * If the state of an element is locked, state changes of the parent don't - * affect the element. - * This way you can leave currently unused elements inside bins. Just lock their - * state before changing the state from #GST_STATE_NULL. - * - * MT safe. - * - * Returns: %TRUE, if the element's state is locked. - */ - public bool isLockedState() - { - return gst_element_is_locked_state(gstElement) != 0; - } - - /** - * Retrieves an iterator of @element's pads. The iterator should - * be freed after usage. Also more specialized iterators exists such as - * gst_element_iterate_src_pads() or gst_element_iterate_sink_pads(). - * - * The order of pads returned by the iterator will be the order in which - * the pads were added to the element. - * - * Returns: the #GstIterator of #GstPad. - * - * MT safe. - */ - public Iterator iteratePads() - { - auto __p = gst_element_iterate_pads(gstElement); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Retrieves an iterator of @element's sink pads. - * - * The order of pads returned by the iterator will be the order in which - * the pads were added to the element. - * - * Returns: the #GstIterator of #GstPad. - * - * MT safe. - */ - public Iterator iterateSinkPads() - { - auto __p = gst_element_iterate_sink_pads(gstElement); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Retrieves an iterator of @element's source pads. - * - * The order of pads returned by the iterator will be the order in which - * the pads were added to the element. - * - * Returns: the #GstIterator of #GstPad. - * - * MT safe. - */ - public Iterator iterateSrcPads() - { - auto __p = gst_element_iterate_src_pads(gstElement); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Links @src to @dest. The link must be from source to - * destination; the other direction will not be tried. The function looks for - * existing pads that aren't linked yet. It will request new pads if necessary. - * Such pads need to be released manually when unlinking. - * If multiple links are possible, only one is established. - * - * Make sure you have added your elements to a bin or pipeline with - * gst_bin_add() before trying to link them. - * - * Params: - * dest = the #GstElement containing the destination pad. - * - * Returns: %TRUE if the elements could be linked, %FALSE otherwise. - */ - public bool link(Element dest) - { - return gst_element_link(gstElement, (dest is null) ? null : dest.getElementStruct()) != 0; - } - - /** - * Links @src to @dest using the given caps as filtercaps. - * The link must be from source to - * destination; the other direction will not be tried. The function looks for - * existing pads that aren't linked yet. It will request new pads if necessary. - * If multiple links are possible, only one is established. - * - * Make sure you have added your elements to a bin or pipeline with - * gst_bin_add() before trying to link them. - * - * Params: - * dest = the #GstElement containing the destination pad. - * filter = the #GstCaps to filter the link, - * or %NULL for no filter. - * - * Returns: %TRUE if the pads could be linked, %FALSE otherwise. - */ - public bool linkFiltered(Element dest, Caps filter) - { - return gst_element_link_filtered(gstElement, (dest is null) ? null : dest.getElementStruct(), (filter is null) ? null : filter.getCapsStruct()) != 0; - } - - /** - * Links the two named pads of the source and destination elements. - * Side effect is that if one of the pads has no parent, it becomes a - * child of the parent of the other element. If they have different - * parents, the link fails. - * - * Params: - * srcpadname = the name of the #GstPad in source element - * or %NULL for any pad. - * dest = the #GstElement containing the destination pad. - * destpadname = the name of the #GstPad in destination element, - * or %NULL for any pad. - * - * Returns: %TRUE if the pads could be linked, %FALSE otherwise. - */ - public bool linkPads(string srcpadname, Element dest, string destpadname) - { - return gst_element_link_pads(gstElement, Str.toStringz(srcpadname), (dest is null) ? null : dest.getElementStruct(), Str.toStringz(destpadname)) != 0; - } - - /** - * Links the two named pads of the source and destination elements. Side effect - * is that if one of the pads has no parent, it becomes a child of the parent of - * the other element. If they have different parents, the link fails. If @caps - * is not %NULL, makes sure that the caps of the link is a subset of @caps. - * - * Params: - * srcpadname = the name of the #GstPad in source element - * or %NULL for any pad. - * dest = the #GstElement containing the destination pad. - * destpadname = the name of the #GstPad in destination element - * or %NULL for any pad. - * filter = the #GstCaps to filter the link, - * or %NULL for no filter. - * - * Returns: %TRUE if the pads could be linked, %FALSE otherwise. - */ - public bool linkPadsFiltered(string srcpadname, Element dest, string destpadname, Caps filter) - { - return gst_element_link_pads_filtered(gstElement, Str.toStringz(srcpadname), (dest is null) ? null : dest.getElementStruct(), Str.toStringz(destpadname), (filter is null) ? null : filter.getCapsStruct()) != 0; - } - - /** - * Links the two named pads of the source and destination elements. - * Side effect is that if one of the pads has no parent, it becomes a - * child of the parent of the other element. If they have different - * parents, the link fails. - * - * Calling gst_element_link_pads_full() with @flags == %GST_PAD_LINK_CHECK_DEFAULT - * is the same as calling gst_element_link_pads() and the recommended way of - * linking pads with safety checks applied. - * - * This is a convenience function for gst_pad_link_full(). - * - * Params: - * srcpadname = the name of the #GstPad in source element - * or %NULL for any pad. - * dest = the #GstElement containing the destination pad. - * destpadname = the name of the #GstPad in destination element, - * or %NULL for any pad. - * flags = the #GstPadLinkCheck to be performed when linking pads. - * - * Returns: %TRUE if the pads could be linked, %FALSE otherwise. - */ - public bool linkPadsFull(string srcpadname, Element dest, string destpadname, GstPadLinkCheck flags) - { - return gst_element_link_pads_full(gstElement, Str.toStringz(srcpadname), (dest is null) ? null : dest.getElementStruct(), Str.toStringz(destpadname), flags) != 0; - } - - /** - * Brings the element to the lost state. The current state of the - * element is copied to the pending state so that any call to - * gst_element_get_state() will return %GST_STATE_CHANGE_ASYNC. - * - * An ASYNC_START message is posted. If the element was PLAYING, it will - * go to PAUSED. The element will be restored to its PLAYING state by - * the parent pipeline when it prerolls again. - * - * This is mostly used for elements that lost their preroll buffer - * in the %GST_STATE_PAUSED or %GST_STATE_PLAYING state after a flush, - * they will go to their pending state again when a new preroll buffer is - * queued. This function can only be called when the element is currently - * not in error or an async state change. - * - * This function is used internally and should normally not be called from - * plugins or applications. - */ - public void lostState() - { - gst_element_lost_state(gstElement); - } - - /** - * Post an error, warning or info message on the bus from inside an element. - * - * @type must be of #GST_MESSAGE_ERROR, #GST_MESSAGE_WARNING or - * #GST_MESSAGE_INFO. - * - * MT safe. - * - * Params: - * type = the #GstMessageType - * domain = the GStreamer GError domain this message belongs to - * code = the GError code belonging to the domain - * text = an allocated text string to be used - * as a replacement for the default message connected to code, - * or %NULL - * debug_ = an allocated debug message to be - * used as a replacement for the default debugging information, - * or %NULL - * file = the source code file where the error was generated - * function_ = the source code function where the error was generated - * line = the source code line where the error was generated - */ - public void messageFull(GstMessageType type, GQuark domain, int code, string text, string debug_, string file, string function_, int line) - { - gst_element_message_full(gstElement, type, domain, code, Str.toStringz(text), Str.toStringz(debug_), Str.toStringz(file), Str.toStringz(function_), line); - } - - /** - * Post an error, warning or info message on the bus from inside an element. - * - * @type must be of #GST_MESSAGE_ERROR, #GST_MESSAGE_WARNING or - * #GST_MESSAGE_INFO. - * - * Params: - * type = the #GstMessageType - * domain = the GStreamer GError domain this message belongs to - * code = the GError code belonging to the domain - * text = an allocated text string to be used - * as a replacement for the default message connected to code, - * or %NULL - * debug_ = an allocated debug message to be - * used as a replacement for the default debugging information, - * or %NULL - * file = the source code file where the error was generated - * function_ = the source code function where the error was generated - * line = the source code line where the error was generated - * structure = optional details structure - * - * Since: 1.10 - */ - public void messageFullWithDetails(GstMessageType type, GQuark domain, int code, string text, string debug_, string file, string function_, int line, Structure structure) - { - gst_element_message_full_with_details(gstElement, type, domain, code, Str.toStringz(text), Str.toStringz(debug_), Str.toStringz(file), Str.toStringz(function_), line, (structure is null) ? null : structure.getStructureStruct(true)); - } - - /** - * Use this function to signal that the element does not expect any more pads - * to show up in the current pipeline. This function should be called whenever - * pads have been added by the element itself. Elements with #GST_PAD_SOMETIMES - * pad templates use this in combination with autopluggers to figure out that - * the element is done initializing its pads. - * - * This function emits the #GstElement::no-more-pads signal. - * - * MT safe. - */ - public void noMorePads() - { - gst_element_no_more_pads(gstElement); - } - - /** - * Post a message on the element's #GstBus. This function takes ownership of the - * message; if you want to access the message after this call, you should add an - * additional reference before calling. - * - * Params: - * message = a #GstMessage to post - * - * Returns: %TRUE if the message was successfully posted. The function returns - * %FALSE if the element did not have a bus. - * - * MT safe. - */ - public bool postMessage(Message message) - { - return gst_element_post_message(gstElement, (message is null) ? null : message.getMessageStruct()) != 0; - } - - /** - * Get the clock provided by the given element. - * > An element is only required to provide a clock in the PAUSED - * > state. Some elements can provide a clock in other states. - * - * Returns: the GstClock provided by the - * element or %NULL if no clock could be provided. Unref after usage. - * - * MT safe. - */ - public Clock provideClock() - { - auto __p = gst_element_provide_clock(gstElement); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clock)(cast(GstClock*) __p, true); - } - - /** - * Performs a query on the given element. - * - * For elements that don't implement a query handler, this function - * forwards the query to a random srcpad or to the peer of a - * random linked sinkpad of this element. - * - * Please note that some queries might need a running pipeline to work. - * - * Params: - * query = the #GstQuery. - * - * Returns: %TRUE if the query could be performed. - * - * MT safe. - */ - public bool query(Query query) - { - return gst_element_query(gstElement, (query is null) ? null : query.getQueryStruct()) != 0; - } - - /** - * Queries an element to convert @src_val in @src_format to @dest_format. - * - * Params: - * srcFormat = a #GstFormat to convert from. - * srcVal = a value to convert. - * destFormat = the #GstFormat to convert to. - * destVal = a pointer to the result. - * - * Returns: %TRUE if the query could be performed. - */ - public bool queryConvert(GstFormat srcFormat, long srcVal, GstFormat destFormat, out long destVal) - { - return gst_element_query_convert(gstElement, srcFormat, srcVal, destFormat, &destVal) != 0; - } - - /** - * Queries an element (usually top-level pipeline or playbin element) for the - * total stream duration in nanoseconds. This query will only work once the - * pipeline is prerolled (i.e. reached PAUSED or PLAYING state). The application - * will receive an ASYNC_DONE message on the pipeline bus when that is the case. - * - * If the duration changes for some reason, you will get a DURATION_CHANGED - * message on the pipeline bus, in which case you should re-query the duration - * using this function. - * - * Params: - * format = the #GstFormat requested - * duration = A location in which to store the total duration, or %NULL. - * - * Returns: %TRUE if the query could be performed. - */ - public bool queryDuration(GstFormat format, out long duration) - { - return gst_element_query_duration(gstElement, format, &duration) != 0; - } - - /** - * Queries an element (usually top-level pipeline or playbin element) for the - * stream position in nanoseconds. This will be a value between 0 and the - * stream duration (if the stream duration is known). This query will usually - * only work once the pipeline is prerolled (i.e. reached PAUSED or PLAYING - * state). The application will receive an ASYNC_DONE message on the pipeline - * bus when that is the case. - * - * If one repeatedly calls this function one can also create a query and reuse - * it in gst_element_query(). - * - * Params: - * format = the #GstFormat requested - * cur = a location in which to store the current - * position, or %NULL. - * - * Returns: %TRUE if the query could be performed. - */ - public bool queryPosition(GstFormat format, out long cur) - { - return gst_element_query_position(gstElement, format, &cur) != 0; - } - - /** - * Makes the element free the previously requested pad as obtained - * with gst_element_request_pad(). - * - * This does not unref the pad. If the pad was created by using - * gst_element_request_pad(), gst_element_release_request_pad() needs to be - * followed by gst_object_unref() to free the @pad. - * - * MT safe. - * - * Params: - * pad = the #GstPad to release. - */ - public void releaseRequestPad(Pad pad) - { - gst_element_release_request_pad(gstElement, (pad is null) ? null : pad.getPadStruct()); - } - - /** - * Removes @pad from @element. @pad will be destroyed if it has not been - * referenced elsewhere using gst_object_unparent(). - * - * This function is used by plugin developers and should not be used - * by applications. Pads that were dynamically requested from elements - * with gst_element_request_pad() should be released with the - * gst_element_release_request_pad() function instead. - * - * Pads are not automatically deactivated so elements should perform the needed - * steps to deactivate the pad in case this pad is removed in the PAUSED or - * PLAYING state. See gst_pad_set_active() for more information about - * deactivating pads. - * - * The pad and the element should be unlocked when calling this function. - * - * This function will emit the #GstElement::pad-removed signal on the element. - * - * Params: - * pad = the #GstPad to remove from the element. - * - * Returns: %TRUE if the pad could be removed. Can return %FALSE if the - * pad does not belong to the provided element. - * - * MT safe. - */ - public bool removePad(Pad pad) - { - return gst_element_remove_pad(gstElement, (pad is null) ? null : pad.getPadStruct()) != 0; - } - - /** */ - public void removePropertyNotifyWatch(gulong watchId) - { - gst_element_remove_property_notify_watch(gstElement, watchId); - } - - /** - * Retrieves a request pad from the element according to the provided template. - * Pad templates can be looked up using - * gst_element_factory_get_static_pad_templates(). - * - * The pad should be released with gst_element_release_request_pad(). - * - * Params: - * templ = a #GstPadTemplate of which we want a pad of. - * name = the name of the request #GstPad - * to retrieve. Can be %NULL. - * caps = the caps of the pad we want to - * request. Can be %NULL. - * - * Returns: requested #GstPad if found, - * otherwise %NULL. Release after usage. - */ - public Pad requestPad(PadTemplate templ, string name, Caps caps) - { - auto __p = gst_element_request_pad(gstElement, (templ is null) ? null : templ.getPadTemplateStruct(), Str.toStringz(name), (caps is null) ? null : caps.getCapsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * Sends a seek event to an element. See gst_event_new_seek() for the details of - * the parameters. The seek event is sent to the element using - * gst_element_send_event(). - * - * MT safe. - * - * Params: - * rate = The new playback rate - * format = The format of the seek values - * flags = The optional seek flags. - * startType = The type and flags for the new start position - * start = The value of the new start position - * stopType = The type and flags for the new stop position - * stop = The value of the new stop position - * - * Returns: %TRUE if the event was handled. Flushing seeks will trigger a - * preroll, which will emit %GST_MESSAGE_ASYNC_DONE. - */ - public bool seek(double rate, GstFormat format, GstSeekFlags flags, GstSeekType startType, long start, GstSeekType stopType, long stop) - { - return gst_element_seek(gstElement, rate, format, flags, startType, start, stopType, stop) != 0; - } - - /** - * Simple API to perform a seek on the given element, meaning it just seeks - * to the given position relative to the start of the stream. For more complex - * operations like segment seeks (e.g. for looping) or changing the playback - * rate or seeking relative to the last configured playback segment you should - * use gst_element_seek(). - * - * In a completely prerolled PAUSED or PLAYING pipeline, seeking is always - * guaranteed to return %TRUE on a seekable media type or %FALSE when the media - * type is certainly not seekable (such as a live stream). - * - * Some elements allow for seeking in the READY state, in this - * case they will store the seek event and execute it when they are put to - * PAUSED. If the element supports seek in READY, it will always return %TRUE when - * it receives the event in the READY state. - * - * Params: - * format = a #GstFormat to execute the seek in, such as #GST_FORMAT_TIME - * seekFlags = seek options; playback applications will usually want to use - * GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT here - * seekPos = position to seek to (relative to the start); if you are doing - * a seek in #GST_FORMAT_TIME this value is in nanoseconds - - * multiply with #GST_SECOND to convert seconds to nanoseconds or - * with #GST_MSECOND to convert milliseconds to nanoseconds. - * - * Returns: %TRUE if the seek operation succeeded. Flushing seeks will trigger a - * preroll, which will emit %GST_MESSAGE_ASYNC_DONE. - */ - public bool seekSimple(GstFormat format, GstSeekFlags seekFlags, long seekPos) - { - return gst_element_seek_simple(gstElement, format, seekFlags, seekPos) != 0; - } - - /** - * Sends an event to an element. If the element doesn't implement an - * event handler, the event will be pushed on a random linked sink pad for - * downstream events or a random linked source pad for upstream events. - * - * This function takes ownership of the provided event so you should - * gst_event_ref() it if you want to reuse the event after this call. - * - * MT safe. - * - * Params: - * event = the #GstEvent to send to the element. - * - * Returns: %TRUE if the event was handled. Events that trigger a preroll (such - * as flushing seeks and steps) will emit %GST_MESSAGE_ASYNC_DONE. - */ - public bool sendEvent(Event event) - { - return gst_element_send_event(gstElement, (event is null) ? null : event.getEventStruct()) != 0; - } - - /** - * Set the base time of an element. See gst_element_get_base_time(). - * - * MT safe. - * - * Params: - * time = the base time to set. - */ - public void setBaseTime(GstClockTime time) - { - gst_element_set_base_time(gstElement, time); - } - - /** - * Sets the bus of the element. Increases the refcount on the bus. - * For internal use only, unless you're testing elements. - * - * MT safe. - * - * Params: - * bus = the #GstBus to set. - */ - public void setBus(Bus bus) - { - gst_element_set_bus(gstElement, (bus is null) ? null : bus.getBusStruct()); - } - - /** - * Sets the clock for the element. This function increases the - * refcount on the clock. Any previously set clock on the object - * is unreffed. - * - * Params: - * clock = the #GstClock to set for the element. - * - * Returns: %TRUE if the element accepted the clock. An element can refuse a - * clock when it, for example, is not able to slave its internal clock to the - * @clock or when it requires a specific clock to operate. - * - * MT safe. - */ - public bool setClock(Clock clock) - { - return gst_element_set_clock(gstElement, (clock is null) ? null : clock.getClockStruct()) != 0; - } - - /** - * Sets the context of the element. Increases the refcount of the context. - * - * MT safe. - * - * Params: - * context = the #GstContext to set. - */ - public void setContext(Context context) - { - gst_element_set_context(gstElement, (context is null) ? null : context.getContextStruct()); - } - - /** - * Locks the state of an element, so state changes of the parent don't affect - * this element anymore. - * - * Note that this is racy if the state lock of the parent bin is not taken. - * The parent bin might've just checked the flag in another thread and as the - * next step proceed to change the child element's state. - * - * MT safe. - * - * Params: - * lockedState = %TRUE to lock the element's state - * - * Returns: %TRUE if the state was changed, %FALSE if bad parameters were given - * or the elements state-locking needed no change. - */ - public bool setLockedState(bool lockedState) - { - return gst_element_set_locked_state(gstElement, lockedState) != 0; - } - - /** - * Set the start time of an element. The start time of the element is the - * running time of the element when it last went to the PAUSED state. In READY - * or after a flushing seek, it is set to 0. - * - * Toplevel elements like #GstPipeline will manage the start_time and - * base_time on its children. Setting the start_time to #GST_CLOCK_TIME_NONE - * on such a toplevel element will disable the distribution of the base_time to - * the children and can be useful if the application manages the base_time - * itself, for example if you want to synchronize capture from multiple - * pipelines, and you can also ensure that the pipelines have the same clock. - * - * MT safe. - * - * Params: - * time = the base time to set. - */ - public void setStartTime(GstClockTime time) - { - gst_element_set_start_time(gstElement, time); - } - - /** - * Sets the state of the element. This function will try to set the - * requested state by going through all the intermediary states and calling - * the class's state change function for each. - * - * This function can return #GST_STATE_CHANGE_ASYNC, in which case the - * element will perform the remainder of the state change asynchronously in - * another thread. - * An application can use gst_element_get_state() to wait for the completion - * of the state change or it can wait for a %GST_MESSAGE_ASYNC_DONE or - * %GST_MESSAGE_STATE_CHANGED on the bus. - * - * State changes to %GST_STATE_READY or %GST_STATE_NULL never return - * #GST_STATE_CHANGE_ASYNC. - * - * Params: - * state = the element's new #GstState. - * - * Returns: Result of the state change using #GstStateChangeReturn. - * - * MT safe. - */ - public GstStateChangeReturn setState(GstState state) - { - return gst_element_set_state(gstElement, state); - } - - /** - * Tries to change the state of the element to the same as its parent. - * If this function returns %FALSE, the state of element is undefined. - * - * Returns: %TRUE, if the element's state could be synced to the parent's state. - * - * MT safe. - */ - public bool syncStateWithParent() - { - return gst_element_sync_state_with_parent(gstElement) != 0; - } - - /** - * Unlinks all source pads of the source element with all sink pads - * of the sink element to which they are linked. - * - * If the link has been made using gst_element_link(), it could have created an - * requestpad, which has to be released using gst_element_release_request_pad(). - * - * Params: - * dest = the sink #GstElement to unlink. - */ - public void unlink(Element dest) - { - gst_element_unlink(gstElement, (dest is null) ? null : dest.getElementStruct()); - } - - /** - * Unlinks the two named pads of the source and destination elements. - * - * This is a convenience function for gst_pad_unlink(). - * - * Params: - * srcpadname = the name of the #GstPad in source element. - * dest = a #GstElement containing the destination pad. - * destpadname = the name of the #GstPad in destination element. - */ - public void unlinkPads(string srcpadname, Element dest, string destpadname) - { - gst_element_unlink_pads(gstElement, Str.toStringz(srcpadname), (dest is null) ? null : dest.getElementStruct(), Str.toStringz(destpadname)); - } - - /** - * This signals that the element will not generate more dynamic pads. - * Note that this signal will usually be emitted from the context of - * the streaming thread. - */ - gulong addOnNoMorePads(void delegate(Element) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "no-more-pads", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * a new #GstPad has been added to the element. Note that this signal will - * usually be emitted from the context of the streaming thread. Also keep in - * mind that if you add new elements to the pipeline in the signal handler - * you will need to set them to the desired target state with - * gst_element_set_state() or gst_element_sync_state_with_parent(). - * - * Params: - * newPad = the pad that has been added - */ - gulong addOnPadAdded(void delegate(Pad, Element) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "pad-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * a #GstPad has been removed from the element - * - * Params: - * oldPad = the pad that has been removed - */ - gulong addOnPadRemoved(void delegate(Pad, Element) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "pad-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/ElementClass.d b/generated/gstreamer/gstreamer/ElementClass.d deleted file mode 100644 index 30d7cf928..000000000 --- a/generated/gstreamer/gstreamer/ElementClass.d +++ /dev/null @@ -1,252 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ElementClass; - -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.PadTemplate; -private import gstreamer.StaticPadTemplate; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * GStreamer element class. Override the vmethods to implement the element - * functionality. - */ -public class ElementClass -{ - /** the main Gtk struct */ - protected GstElementClass* gstElementClass; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstElementClass* getElementClassStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstElementClass; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstElementClass; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstElementClass* gstElementClass, bool ownedRef = false) - { - this.gstElementClass = gstElementClass; - this.ownedRef = ownedRef; - } - - - /** - * Set @key with @value as metadata in @klass. - * - * Params: - * key = the key to set - * value = the value to set - */ - public void addMetadata(string key, string value) - { - gst_element_class_add_metadata(gstElementClass, Str.toStringz(key), Str.toStringz(value)); - } - - /** - * Adds a padtemplate to an element class. This is mainly used in the _class_init - * functions of classes. If a pad template with the same name as an already - * existing one is added the old one is replaced by the new one. - * - * @templ's reference count will be incremented, and any floating - * reference will be removed (see gst_object_ref_sink()) - * - * Params: - * templ = a #GstPadTemplate to add to the element class. - */ - public void addPadTemplate(PadTemplate templ) - { - gst_element_class_add_pad_template(gstElementClass, (templ is null) ? null : templ.getPadTemplateStruct()); - } - - /** - * Set @key with @value as metadata in @klass. - * - * Same as gst_element_class_add_metadata(), but @value must be a static string - * or an inlined string, as it will not be copied. (GStreamer plugins will - * be made resident once loaded, so this function can be used even from - * dynamically loaded plugins.) - * - * Params: - * key = the key to set - * value = the value to set - */ - public void addStaticMetadata(string key, string value) - { - gst_element_class_add_static_metadata(gstElementClass, Str.toStringz(key), Str.toStringz(value)); - } - - /** - * Adds a pad template to an element class based on the static pad template - * @templ. This is mainly used in the _class_init functions of element - * implementations. If a pad template with the same name already exists, - * the old one is replaced by the new one. - * - * Params: - * staticTempl = #GstStaticPadTemplate to add as pad template to the element class. - * - * Since: 1.8 - */ - public void addStaticPadTemplate(StaticPadTemplate staticTempl) - { - gst_element_class_add_static_pad_template(gstElementClass, (staticTempl is null) ? null : staticTempl.getStaticPadTemplateStruct()); - } - - /** - * Adds a pad template to an element class based on the static pad template - * @templ. This is mainly used in the _class_init functions of element - * implementations. If a pad template with the same name already exists, - * the old one is replaced by the new one. - * - * Params: - * staticTempl = #GstStaticPadTemplate to add as pad template to the element class. - * padType = The #GType of the pad to create - * - * Since: 1.14 - */ - public void addStaticPadTemplateWithGtype(StaticPadTemplate staticTempl, GType padType) - { - gst_element_class_add_static_pad_template_with_gtype(gstElementClass, (staticTempl is null) ? null : staticTempl.getStaticPadTemplateStruct(), padType); - } - - /** - * Get metadata with @key in @klass. - * - * Params: - * key = the key to get - * - * Returns: the metadata for @key. - */ - public string getMetadata(string key) - { - return Str.toString(gst_element_class_get_metadata(gstElementClass, Str.toStringz(key))); - } - - /** - * Retrieves a padtemplate from @element_class with the given name. - * > If you use this function in the #GInstanceInitFunc of an object class - * > that has subclasses, make sure to pass the g_class parameter of the - * > #GInstanceInitFunc here. - * - * Params: - * name = the name of the #GstPadTemplate to get. - * - * Returns: the #GstPadTemplate with the - * given name, or %NULL if none was found. No unreferencing is - * necessary. - */ - public PadTemplate getPadTemplate(string name) - { - auto __p = gst_element_class_get_pad_template(gstElementClass, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PadTemplate)(cast(GstPadTemplate*) __p); - } - - /** - * Retrieves a list of the pad templates associated with @element_class. The - * list must not be modified by the calling code. - * > If you use this function in the #GInstanceInitFunc of an object class - * > that has subclasses, make sure to pass the g_class parameter of the - * > #GInstanceInitFunc here. - * - * Returns: the #GList of - * pad templates. - */ - public ListG getPadTemplateList() - { - auto __p = gst_element_class_get_pad_template_list(gstElementClass); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Sets the detailed information for a #GstElementClass. - * > This function is for use in _class_init functions only. - * - * Params: - * longname = The long English name of the element. E.g. "File Sink" - * classification = String describing the type of element, as an unordered list - * separated with slashes ('/'). See draft-klass.txt of the design docs - * for more details and common types. E.g: "Sink/File" - * description = Sentence describing the purpose of the element. - * E.g: "Write stream to a file" - * author = Name and contact details of the author(s). Use \n to separate - * multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>" - */ - public void setMetadata(string longname, string classification, string description, string author) - { - gst_element_class_set_metadata(gstElementClass, Str.toStringz(longname), Str.toStringz(classification), Str.toStringz(description), Str.toStringz(author)); - } - - /** - * Sets the detailed information for a #GstElementClass. - * - * > This function is for use in _class_init functions only. - * - * Same as gst_element_class_set_metadata(), but @longname, @classification, - * @description, and @author must be static strings or inlined strings, as - * they will not be copied. (GStreamer plugins will be made resident once - * loaded, so this function can be used even from dynamically loaded plugins.) - * - * Params: - * longname = The long English name of the element. E.g. "File Sink" - * classification = String describing the type of element, as an unordered list - * separated with slashes ('/'). See draft-klass.txt of the design docs - * for more details and common types. E.g: "Sink/File" - * description = Sentence describing the purpose of the element. - * E.g: "Write stream to a file" - * author = Name and contact details of the author(s). Use \n to separate - * multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>" - */ - public void setStaticMetadata(string longname, string classification, string description, string author) - { - gst_element_class_set_static_metadata(gstElementClass, Str.toStringz(longname), Str.toStringz(classification), Str.toStringz(description), Str.toStringz(author)); - } -} diff --git a/generated/gstreamer/gstreamer/ElementFactory.d b/generated/gstreamer/gstreamer/ElementFactory.d deleted file mode 100644 index 31deeaeba..000000000 --- a/generated/gstreamer/gstreamer/ElementFactory.d +++ /dev/null @@ -1,422 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ElementFactory; - -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Caps; -private import gstreamer.Element; -private import gstreamer.PluginFeature; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * #GstElementFactory is used to create instances of elements. A - * GstElementFactory can be added to a #GstPlugin as it is also a - * #GstPluginFeature. - * - * Use the gst_element_factory_find() and gst_element_factory_create() - * functions to create element instances or use gst_element_factory_make() as a - * convenient shortcut. - * - * The following code example shows you how to create a GstFileSrc element. - * - * ## Using an element factory - * |[ - * #include <gst/gst.h> - * - * GstElement *src; - * GstElementFactory *srcfactory; - * - * gst_init (&argc, &argv); - * - * srcfactory = gst_element_factory_find ("filesrc"); - * g_return_if_fail (srcfactory != NULL); - * src = gst_element_factory_create (srcfactory, "src"); - * g_return_if_fail (src != NULL); - * ... - * ]| - */ -public class ElementFactory : PluginFeature -{ - /** the main Gtk struct */ - protected GstElementFactory* gstElementFactory; - - /** Get the main Gtk struct */ - public GstElementFactory* getElementFactoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstElementFactory; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstElementFactory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstElementFactory* gstElementFactory, bool ownedRef = false) - { - this.gstElementFactory = gstElementFactory; - super(cast(GstPluginFeature*)gstElementFactory, ownedRef); - } - - /** - * Create a new element of the type defined by the given element factory. - * The element will receive a guaranteed unique name, - * consisting of the element factory name and a number. - * Params: - * factoryname = a named factory to instantiate - * Returns: - * new GstElement or NULL if unable to create element - */ - public static Element make( string factoryname ) - { - // GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name); - auto p = gst_element_factory_make(Str.toStringz(factoryname), null ); - - if(p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) p); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_element_factory_get_type(); - } - - /** - * Search for an element factory of the given name. Refs the returned - * element factory; caller is responsible for unreffing. - * - * Params: - * name = name of factory to find - * - * Returns: #GstElementFactory if found, - * %NULL otherwise - */ - public static ElementFactory find(string name) - { - auto __p = gst_element_factory_find(Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ElementFactory)(cast(GstElementFactory*) __p, true); - } - - /** - * Filter out all the elementfactories in @list that can handle @caps in - * the given direction. - * - * If @subsetonly is %TRUE, then only the elements whose pads templates - * are a complete superset of @caps will be returned. Else any element - * whose pad templates caps can intersect with @caps will be returned. - * - * Params: - * list = a #GList of - * #GstElementFactory to filter - * caps = a #GstCaps - * direction = a #GstPadDirection to filter on - * subsetonly = whether to filter on caps subsets or not. - * - * Returns: a #GList of - * #GstElementFactory elements that match the given requisites. - * Use #gst_plugin_feature_list_free after usage. - */ - public static ListG listFilter(ListG list, Caps caps, GstPadDirection direction, bool subsetonly) - { - auto __p = gst_element_factory_list_filter((list is null) ? null : list.getListGStruct(), (caps is null) ? null : caps.getCapsStruct(), direction, subsetonly); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Get a list of factories that match the given @type. Only elements - * with a rank greater or equal to @minrank will be returned. - * The list of factories is returned by decreasing rank. - * - * Params: - * type = a #GstElementFactoryListType - * minrank = Minimum rank - * - * Returns: a #GList of - * #GstElementFactory elements. Use gst_plugin_feature_list_free() after - * usage. - */ - public static ListG listGetElements(GstElementFactoryListType type, GstRank minrank) - { - auto __p = gst_element_factory_list_get_elements(type, minrank); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Create a new element of the type defined by the given element factory. - * If name is %NULL, then the element will receive a guaranteed unique name, - * consisting of the element factory name and a number. - * If name is given, it will be given the name supplied. - * - * Params: - * factoryname = a named factory to instantiate - * name = name of new element, or %NULL to automatically create - * a unique name - * - * Returns: new #GstElement or %NULL - * if unable to create element - */ - public static Element make(string factoryname, string name) - { - auto __p = gst_element_factory_make(Str.toStringz(factoryname), Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Checks if the factory can sink all possible capabilities. - * - * Params: - * caps = the caps to check - * - * Returns: %TRUE if the caps are fully compatible. - */ - public bool canSinkAllCaps(Caps caps) - { - return gst_element_factory_can_sink_all_caps(gstElementFactory, (caps is null) ? null : caps.getCapsStruct()) != 0; - } - - /** - * Checks if the factory can sink any possible capability. - * - * Params: - * caps = the caps to check - * - * Returns: %TRUE if the caps have a common subset. - */ - public bool canSinkAnyCaps(Caps caps) - { - return gst_element_factory_can_sink_any_caps(gstElementFactory, (caps is null) ? null : caps.getCapsStruct()) != 0; - } - - /** - * Checks if the factory can src all possible capabilities. - * - * Params: - * caps = the caps to check - * - * Returns: %TRUE if the caps are fully compatible. - */ - public bool canSrcAllCaps(Caps caps) - { - return gst_element_factory_can_src_all_caps(gstElementFactory, (caps is null) ? null : caps.getCapsStruct()) != 0; - } - - /** - * Checks if the factory can src any possible capability. - * - * Params: - * caps = the caps to check - * - * Returns: %TRUE if the caps have a common subset. - */ - public bool canSrcAnyCaps(Caps caps) - { - return gst_element_factory_can_src_any_caps(gstElementFactory, (caps is null) ? null : caps.getCapsStruct()) != 0; - } - - /** - * Create a new element of the type defined by the given elementfactory. - * It will be given the name supplied, since all elements require a name as - * their first argument. - * - * Params: - * name = name of new element, or %NULL to automatically create - * a unique name - * - * Returns: new #GstElement or %NULL - * if the element couldn't be created - */ - public Element create(string name) - { - auto __p = gst_element_factory_create(gstElementFactory, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Get the #GType for elements managed by this factory. The type can - * only be retrieved if the element factory is loaded, which can be - * assured with gst_plugin_feature_load(). - * - * Returns: the #GType for elements managed by this factory or 0 if - * the factory is not loaded. - */ - public GType getElementType() - { - return gst_element_factory_get_element_type(gstElementFactory); - } - - /** - * Get the metadata on @factory with @key. - * - * Params: - * key = a key - * - * Returns: the metadata with @key on @factory or %NULL - * when there was no metadata with the given @key. - */ - public string getMetadata(string key) - { - return Str.toString(gst_element_factory_get_metadata(gstElementFactory, Str.toStringz(key))); - } - - /** - * Get the available keys for the metadata on @factory. - * - * Returns: a %NULL-terminated array of key strings, or %NULL when there is no - * metadata. Free with g_strfreev() when no longer needed. - */ - public string[] getMetadataKeys() - { - auto retStr = gst_element_factory_get_metadata_keys(gstElementFactory); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Gets the number of pad_templates in this factory. - * - * Returns: the number of pad_templates - */ - public uint getNumPadTemplates() - { - return gst_element_factory_get_num_pad_templates(gstElementFactory); - } - - /** - * Gets the #GList of #GstStaticPadTemplate for this factory. - * - * Returns: the - * static pad templates - */ - public ListG getStaticPadTemplates() - { - auto __p = gst_element_factory_get_static_pad_templates(gstElementFactory); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Gets a %NULL-terminated array of protocols this element supports or %NULL if - * no protocols are supported. You may not change the contents of the returned - * array, as it is still owned by the element factory. Use g_strdupv() to - * make a copy of the protocol string array if you need to. - * - * Returns: the supported protocols - * or %NULL - */ - public string[] getUriProtocols() - { - return Str.toStringArray(gst_element_factory_get_uri_protocols(gstElementFactory)); - } - - /** - * Gets the type of URIs the element supports or #GST_URI_UNKNOWN if none. - * - * Returns: type of URIs this element supports - */ - public GstURIType getUriType() - { - return gst_element_factory_get_uri_type(gstElementFactory); - } - - /** - * Check if @factory implements the interface with name @interfacename. - * - * Params: - * interfacename = an interface name - * - * Returns: %TRUE when @factory implement the interface. - */ - public bool hasInterface(string interfacename) - { - return gst_element_factory_has_interface(gstElementFactory, Str.toStringz(interfacename)) != 0; - } - - /** - * Check if @factory is of the given types. - * - * Params: - * type = a #GstElementFactoryListType - * - * Returns: %TRUE if @factory is of @type. - */ - public bool listIsType(GstElementFactoryListType type) - { - return gst_element_factory_list_is_type(gstElementFactory, type) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/Event.d b/generated/gstreamer/gstreamer/Event.d deleted file mode 100644 index 007563aab..000000000 --- a/generated/gstreamer/gstreamer/Event.d +++ /dev/null @@ -1,1651 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Event; - -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Buffer; -private import gstreamer.Caps; -private import gstreamer.Message; -private import gstreamer.Segment; -private import gstreamer.Stream; -private import gstreamer.StreamCollection; -private import gstreamer.Structure; -private import gstreamer.TagList; -private import gstreamer.Toc; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The event class provides factory methods to construct events for sending - * and functions to query (parse) received events. - * - * Events are usually created with gst_event_new_*() which takes event-type - * specific parameters as arguments. - * To send an event application will usually use gst_element_send_event() and - * elements will use gst_pad_send_event() or gst_pad_push_event(). - * The event should be unreffed with gst_event_unref() if it has not been sent. - * - * Events that have been received can be parsed with their respective - * gst_event_parse_*() functions. It is valid to pass %NULL for unwanted details. - * - * Events are passed between elements in parallel to the data stream. Some events - * are serialized with buffers, others are not. Some events only travel downstream, - * others only upstream. Some events can travel both upstream and downstream. - * - * The events are used to signal special conditions in the datastream such as - * EOS (end of stream) or the start of a new stream-segment. - * Events are also used to flush the pipeline of any pending data. - * - * Most of the event API is used inside plugins. Applications usually only - * construct and use seek events. - * To do that gst_event_new_seek() is used to create a seek event. It takes - * the needed parameters to specify seeking time and mode. - * |[ - * GstEvent *event; - * gboolean result; - * ... - * // construct a seek event to play the media from second 2 to 5, flush - * // the pipeline to decrease latency. - * event = gst_event_new_seek (1.0, - * GST_FORMAT_TIME, - * GST_SEEK_FLAG_FLUSH, - * GST_SEEK_TYPE_SET, 2 * GST_SECOND, - * GST_SEEK_TYPE_SET, 5 * GST_SECOND); - * ... - * result = gst_element_send_event (pipeline, event); - * if (!result) - * g_warning ("seek failed"); - * ... - * ]| - */ -public class Event -{ - /** the main Gtk struct */ - protected GstEvent* gstEvent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstEvent* getEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstEvent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstEvent* gstEvent, bool ownedRef = false) - { - this.gstEvent = gstEvent; - this.ownedRef = ownedRef; - } - - /** - * Create a new EOS event. The eos event can only travel downstream - * synchronized with the buffer flow. Elements that receive the EOS - * event on a pad can return UNEXPECTED as a GstFlowReturn when data - * after the EOS event arrives. - * The EOS event will travel down to the sink elements in the pipeline - * which will then post the GST_MESSAGE_EOS on the bus after they have - * finished playing any buffered data. - * When all sinks have posted an EOS message, the EOS message is - * forwarded to the application. - * Returns: - * The new EOS event. - */ - public static Event newEOS() - { - // GstEvent* gst_event_new_eos (void); - auto p = gst_event_new_eos(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_event_new_eos"); - } - - return new Event(cast(GstEvent*)p ); - } - - /** - * Allocate a new flush start event. The flush start event can be send - * upstream and downstream and travels out-of-bounds with the dataflow. - * It marks pads as being in a WRONG_STATE to process more data. - * Elements unlock and blocking functions and exit their streaming functions - * as fast as possible. - * This event is typically generated after a seek to minimize the latency - * after the seek. - * Returns: - * A new flush start event. - */ - public static Event newFlushStart() - { - // GstEvent* gst_event_new_flush_start (void); - auto p = gst_event_new_flush_start(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_event_new_flush_start"); - } - - return new Event(cast(GstEvent*)p ); - } - - /** - * Generate a TOC select event with the given uid. The purpose of the - * TOC select event is to start playback based on the TOC's entry with - * the given uid. - */ - public static Event newTocSelect(string uid) - { - // GstEvent* gst_event_new_toc_select (const gchar *uid); - auto p = gst_event_new_toc_select(cast(char*)uid.ptr); - - if(p is null) - { - throw new ConstructionException("null returned by gst_event_new_toc_select"); - } - - return new Event(cast(GstEvent*)p ); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_event_get_type(); - } - - /** - * Create a new buffersize event. The event is sent downstream and notifies - * elements that they should provide a buffer of the specified dimensions. - * - * When the @async flag is set, a thread boundary is preferred. - * - * Params: - * format = buffer format - * minsize = minimum buffer size - * maxsize = maximum buffer size - * async = thread behavior - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstFormat format, long minsize, long maxsize, bool async) - { - auto __p = gst_event_new_buffer_size(format, minsize, maxsize, async); - - if(__p is null) - { - throw new ConstructionException("null returned by new_buffer_size"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new CAPS event for @caps. The caps event can only travel downstream - * synchronized with the buffer flow and contains the format of the buffers - * that will follow after the event. - * - * Params: - * caps = a #GstCaps - * - * Returns: the new CAPS event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Caps caps) - { - auto __p = gst_event_new_caps((caps is null) ? null : caps.getCapsStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_caps"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new custom-typed event. This can be used for anything not - * handled by other event-specific functions to pass an event to another - * element. - * - * Make sure to allocate an event type with the #GST_EVENT_MAKE_TYPE macro, - * assigning a free number and filling in the correct direction and - * serialization flags. - * - * New custom events can also be created by subclassing the event type if - * needed. - * - * Params: - * type = The type of the new event - * structure = the structure for the event. The event will - * take ownership of the structure. - * - * Returns: the new custom event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstEventType type, Structure structure) - { - auto __p = gst_event_new_custom(type, (structure is null) ? null : structure.getStructureStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_custom"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Allocate a new flush stop event. The flush stop event can be sent - * upstream and downstream and travels serialized with the dataflow. - * It is typically sent after sending a FLUSH_START event to make the - * pads accept data again. - * - * Elements can process this event synchronized with the dataflow since - * the preceding FLUSH_START event stopped the dataflow. - * - * This event is typically generated to complete a seek and to resume - * dataflow. - * - * Params: - * resetTime = if time should be reset - * - * Returns: a new flush stop event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(bool resetTime) - { - auto __p = gst_event_new_flush_stop(resetTime); - - if(__p is null) - { - throw new ConstructionException("null returned by new_flush_stop"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new GAP event. A gap event can be thought of as conceptually - * equivalent to a buffer to signal that there is no data for a certain - * amount of time. This is useful to signal a gap to downstream elements - * which may wait for data, such as muxers or mixers or overlays, especially - * for sparse streams such as subtitle streams. - * - * Params: - * timestamp = the start time (pts) of the gap - * duration = the duration of the gap - * - * Returns: the new GAP event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstClockTime timestamp, GstClockTime duration) - { - auto __p = gst_event_new_gap(timestamp, duration); - - if(__p is null) - { - throw new ConstructionException("null returned by new_gap"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new instant-rate-change event. This event is sent by seek - * handlers (e.g. demuxers) when receiving a seek with the - * %GST_SEEK_FLAG_INSTANT_RATE_CHANGE and signals to downstream elements that - * the playback rate in the existing segment should be immediately multiplied - * by the @rate_multiplier factor. - * - * The flags provided replace any flags in the existing segment, for the - * flags within the %GST_SEGMENT_INSTANT_FLAGS set. Other GstSegmentFlags - * are ignored and not transferred in the event. - * - * Params: - * rateMultiplier = the multiplier to be applied to the playback rate - * newFlags = A new subset of segment flags to replace in segments - * - * Returns: the new instant-rate-change event. - * - * Since: 1.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(double rateMultiplier, GstSegmentFlags newFlags) - { - auto __p = gst_event_new_instant_rate_change(rateMultiplier, newFlags); - - if(__p is null) - { - throw new ConstructionException("null returned by new_instant_rate_change"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new instant-rate-sync-time event. This event is sent by the - * pipeline to notify elements handling the instant-rate-change event about - * the running-time when the new rate should be applied. The running time - * may be in the past when elements handle this event, which can lead to - * switching artifacts. The magnitude of those depends on the exact timing - * of event delivery to each element and the magnitude of the change in - * playback rate being applied. - * - * The @running_time and @upstream_running_time are the same if this - * is the first instant-rate adjustment, but will differ for later ones - * to compensate for the accumulated offset due to playing at a rate - * different to the one indicated in the playback segments. - * - * Params: - * rateMultiplier = the new playback rate multiplier to be applied - * runningTime = Running time when the rate change should be applied - * upstreamRunningTime = The upstream-centric running-time when the - * rate change should be applied. - * - * Returns: the new instant-rate-sync-time event. - * - * Since: 1.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(double rateMultiplier, GstClockTime runningTime, GstClockTime upstreamRunningTime) - { - auto __p = gst_event_new_instant_rate_sync_time(rateMultiplier, runningTime, upstreamRunningTime); - - if(__p is null) - { - throw new ConstructionException("null returned by new_instant_rate_sync_time"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new latency event. The event is sent upstream from the sinks and - * notifies elements that they should add an additional @latency to the - * running time before synchronising against the clock. - * - * The latency is mostly used in live sinks and is always expressed in - * the time format. - * - * Params: - * latency = the new latency value - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstClockTime latency) - { - auto __p = gst_event_new_latency(latency); - - if(__p is null) - { - throw new ConstructionException("null returned by new_latency"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new navigation event from the given description. - * - * Params: - * structure = description of the event. The event will take - * ownership of the structure. - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Structure structure) - { - auto __p = gst_event_new_navigation((structure is null) ? null : structure.getStructureStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_navigation"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Creates a new event containing information specific to a particular - * protection system (uniquely identified by @system_id), by which that - * protection system can acquire key(s) to decrypt a protected stream. - * - * In order for a decryption element to decrypt media - * protected using a specific system, it first needs all the - * protection system specific information necessary to acquire the decryption - * key(s) for that stream. The functions defined here enable this information - * to be passed in events from elements that extract it - * (e.g., ISOBMFF demuxers, MPEG DASH demuxers) to protection decrypter - * elements that use it. - * - * Events containing protection system specific information are created using - * #gst_event_new_protection, and they can be parsed by downstream elements - * using #gst_event_parse_protection. - * - * In Common Encryption, protection system specific information may be located - * within ISOBMFF files, both in movie (moov) boxes and movie fragment (moof) - * boxes; it may also be contained in ContentProtection elements within MPEG - * DASH MPDs. The events created by #gst_event_new_protection contain data - * identifying from which of these locations the encapsulated protection system - * specific information originated. This origin information is required as - * some protection systems use different encodings depending upon where the - * information originates. - * - * The events returned by gst_event_new_protection() are implemented - * in such a way as to ensure that the most recently-pushed protection info - * event of a particular @origin and @system_id will - * be stuck to the output pad of the sending element. - * - * Params: - * systemId = a string holding a UUID that uniquely - * identifies a protection system. - * data = a #GstBuffer holding protection system specific - * information. The reference count of the buffer will be incremented by one. - * origin = a string indicating where the protection - * information carried in the event was extracted from. The allowed values - * of this string will depend upon the protection scheme. - * - * Returns: a #GST_EVENT_PROTECTION event, if successful; %NULL - * if unsuccessful. - * - * Since: 1.6 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string systemId, Buffer data, string origin) - { - auto __p = gst_event_new_protection(Str.toStringz(systemId), (data is null) ? null : data.getBufferStruct(), Str.toStringz(origin)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_protection"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Allocate a new qos event with the given values. - * The QOS event is generated in an element that wants an upstream - * element to either reduce or increase its rate because of - * high/low CPU load or other resource usage such as network performance or - * throttling. Typically sinks generate these events for each buffer - * they receive. - * - * @type indicates the reason for the QoS event. #GST_QOS_TYPE_OVERFLOW is - * used when a buffer arrived in time or when the sink cannot keep up with - * the upstream datarate. #GST_QOS_TYPE_UNDERFLOW is when the sink is not - * receiving buffers fast enough and thus has to drop late buffers. - * #GST_QOS_TYPE_THROTTLE is used when the datarate is artificially limited - * by the application, for example to reduce power consumption. - * - * @proportion indicates the real-time performance of the streaming in the - * element that generated the QoS event (usually the sink). The value is - * generally computed based on more long term statistics about the streams - * timestamps compared to the clock. - * A value < 1.0 indicates that the upstream element is producing data faster - * than real-time. A value > 1.0 indicates that the upstream element is not - * producing data fast enough. 1.0 is the ideal @proportion value. The - * proportion value can safely be used to lower or increase the quality of - * the element. - * - * @diff is the difference against the clock in running time of the last - * buffer that caused the element to generate the QOS event. A negative value - * means that the buffer with @timestamp arrived in time. A positive value - * indicates how late the buffer with @timestamp was. When throttling is - * enabled, @diff will be set to the requested throttling interval. - * - * @timestamp is the timestamp of the last buffer that cause the element - * to generate the QOS event. It is expressed in running time and thus an ever - * increasing value. - * - * The upstream element can use the @diff and @timestamp values to decide - * whether to process more buffers. For positive @diff, all buffers with - * timestamp <= @timestamp + @diff will certainly arrive late in the sink - * as well. A (negative) @diff value so that @timestamp + @diff would yield a - * result smaller than 0 is not allowed. - * - * The application can use general event probes to intercept the QoS - * event and implement custom application specific QoS handling. - * - * Params: - * type = the QoS type - * proportion = the proportion of the qos message - * diff = The time difference of the last Clock sync - * timestamp = The timestamp of the buffer - * - * Returns: a new QOS event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstQOSType type, double proportion, GstClockTimeDiff diff, GstClockTime timestamp) - { - auto __p = gst_event_new_qos(type, proportion, diff, timestamp); - - if(__p is null) - { - throw new ConstructionException("null returned by new_qos"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new reconfigure event. The purpose of the reconfigure event is - * to travel upstream and make elements renegotiate their caps or reconfigure - * their buffer pools. This is useful when changing properties on elements - * or changing the topology of the pipeline. - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_event_new_reconfigure(); - - if(__p is null) - { - throw new ConstructionException("null returned by new_reconfigure"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Allocate a new seek event with the given parameters. - * - * The seek event configures playback of the pipeline between @start to @stop - * at the speed given in @rate, also called a playback segment. - * The @start and @stop values are expressed in @format. - * - * A @rate of 1.0 means normal playback rate, 2.0 means double speed. - * Negatives values means backwards playback. A value of 0.0 for the - * rate is not allowed and should be accomplished instead by PAUSING the - * pipeline. - * - * A pipeline has a default playback segment configured with a start - * position of 0, a stop position of -1 and a rate of 1.0. The currently - * configured playback segment can be queried with #GST_QUERY_SEGMENT. - * - * @start_type and @stop_type specify how to adjust the currently configured - * start and stop fields in playback segment. Adjustments can be made relative - * or absolute to the last configured values. A type of #GST_SEEK_TYPE_NONE - * means that the position should not be updated. - * - * When the rate is positive and @start has been updated, playback will start - * from the newly configured start position. - * - * For negative rates, playback will start from the newly configured stop - * position (if any). If the stop position is updated, it must be different from - * -1 (#GST_CLOCK_TIME_NONE) for negative rates. - * - * It is not possible to seek relative to the current playback position, to do - * this, PAUSE the pipeline, query the current playback position with - * #GST_QUERY_POSITION and update the playback segment current position with a - * #GST_SEEK_TYPE_SET to the desired position. - * - * Params: - * rate = The new playback rate - * format = The format of the seek values - * flags = The optional seek flags - * startType = The type and flags for the new start position - * start = The value of the new start position - * stopType = The type and flags for the new stop position - * stop = The value of the new stop position - * - * Returns: a new seek event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(double rate, GstFormat format, GstSeekFlags flags, GstSeekType startType, long start, GstSeekType stopType, long stop) - { - auto __p = gst_event_new_seek(rate, format, flags, startType, start, stopType, stop); - - if(__p is null) - { - throw new ConstructionException("null returned by new_seek"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new SEGMENT event for @segment. The segment event can only travel - * downstream synchronized with the buffer flow and contains timing information - * and playback properties for the buffers that will follow. - * - * The segment event marks the range of buffers to be processed. All - * data not within the segment range is not to be processed. This can be - * used intelligently by plugins to apply more efficient methods of skipping - * unneeded data. The valid range is expressed with the @start and @stop - * values. - * - * The time value of the segment is used in conjunction with the start - * value to convert the buffer timestamps into the stream time. This is - * usually done in sinks to report the current stream_time. - * @time represents the stream_time of a buffer carrying a timestamp of - * @start. @time cannot be -1. - * - * @start cannot be -1, @stop can be -1. If there - * is a valid @stop given, it must be greater or equal the @start, including - * when the indicated playback @rate is < 0. - * - * The @applied_rate value provides information about any rate adjustment that - * has already been made to the timestamps and content on the buffers of the - * stream. (@rate * @applied_rate) should always equal the rate that has been - * requested for playback. For example, if an element has an input segment - * with intended playback @rate of 2.0 and applied_rate of 1.0, it can adjust - * incoming timestamps and buffer content by half and output a segment event - * with @rate of 1.0 and @applied_rate of 2.0 - * - * After a segment event, the buffer stream time is calculated with: - * - * time + (TIMESTAMP(buf) - start) * ABS (rate * applied_rate) - * - * Params: - * segment = a #GstSegment - * - * Returns: the new SEGMENT event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Segment segment) - { - auto __p = gst_event_new_segment((segment is null) ? null : segment.getSegmentStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_segment"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new segment-done event. This event is sent by elements that - * finish playback of a segment as a result of a segment seek. - * - * Params: - * format = The format of the position being done - * position = The position of the segment being done - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstFormat format, long position) - { - auto __p = gst_event_new_segment_done(format, position); - - if(__p is null) - { - throw new ConstructionException("null returned by new_segment_done"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Allocate a new select-streams event. - * - * The select-streams event requests the specified @streams to be activated. - * - * The list of @streams corresponds to the "Stream ID" of each stream to be - * activated. Those ID can be obtained via the #GstStream objects present - * in #GST_EVENT_STREAM_START, #GST_EVENT_STREAM_COLLECTION or - * #GST_MESSAGE_STREAM_COLLECTION. - * - * Note: The list of @streams can not be empty. - * - * Params: - * streams = the list of streams to - * activate - * - * Returns: a new select-streams event or %NULL in case of - * an error (like an empty streams list). - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ListG streams) - { - auto __p = gst_event_new_select_streams((streams is null) ? null : streams.getListGStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_select_streams"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new sink-message event. The purpose of the sink-message event is - * to instruct a sink to post the message contained in the event synchronized - * with the stream. - * - * @name is used to store multiple sticky events on one pad. - * - * Params: - * name = a name for the event - * msg = the #GstMessage to be posted - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, Message msg) - { - auto __p = gst_event_new_sink_message(Str.toStringz(name), (msg is null) ? null : msg.getMessageStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_sink_message"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new step event. The purpose of the step event is to instruct a sink - * to skip @amount (expressed in @format) of media. It can be used to implement - * stepping through the video frame by frame or for doing fast trick modes. - * - * A rate of <= 0.0 is not allowed. Pause the pipeline, for the effect of rate - * = 0.0 or first reverse the direction of playback using a seek event to get - * the same effect as rate < 0.0. - * - * The @flush flag will clear any pending data in the pipeline before starting - * the step operation. - * - * The @intermediate flag instructs the pipeline that this step operation is - * part of a larger step operation. - * - * Params: - * format = the format of @amount - * amount = the amount of data to step - * rate = the step rate - * flush = flushing steps - * intermediate = intermediate steps - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstFormat format, ulong amount, double rate, bool flush, bool intermediate) - { - auto __p = gst_event_new_step(format, amount, rate, flush, intermediate); - - if(__p is null) - { - throw new ConstructionException("null returned by new_step"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new STREAM_COLLECTION event. The stream collection event can only - * travel downstream synchronized with the buffer flow. - * - * Source elements, demuxers and other elements that manage collections - * of streams and post #GstStreamCollection messages on the bus also send - * this event downstream on each pad involved in the collection, so that - * activation of a new collection can be tracked through the downstream - * data flow. - * - * Params: - * collection = Active collection for this data flow - * - * Returns: the new STREAM_COLLECTION event. - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(StreamCollection collection) - { - auto __p = gst_event_new_stream_collection((collection is null) ? null : collection.getStreamCollectionStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_stream_collection"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new Stream Group Done event. The stream-group-done event can - * only travel downstream synchronized with the buffer flow. Elements - * that receive the event on a pad should handle it mostly like EOS, - * and emit any data or pending buffers that would depend on more data - * arriving and unblock, since there won't be any more data. - * - * This event is followed by EOS at some point in the future, and is - * generally used when switching pads - to unblock downstream so that - * new pads can be exposed before sending EOS on the existing pads. - * - * Params: - * groupId = the group id of the stream group which is ending - * - * Returns: the new stream-group-done event. - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint groupId) - { - auto __p = gst_event_new_stream_group_done(groupId); - - if(__p is null) - { - throw new ConstructionException("null returned by new_stream_group_done"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Create a new STREAM_START event. The stream start event can only - * travel downstream synchronized with the buffer flow. It is expected - * to be the first event that is sent for a new stream. - * - * Source elements, demuxers and other elements that create new streams - * are supposed to send this event as the first event of a new stream. It - * should not be sent after a flushing seek or in similar situations - * and is used to mark the beginning of a new logical stream. Elements - * combining multiple streams must ensure that this event is only forwarded - * downstream once and not for every single input stream. - * - * The @stream_id should be a unique string that consists of the upstream - * stream-id, / as separator and a unique stream-id for this specific - * stream. A new stream-id should only be created for a stream if the upstream - * stream is split into (potentially) multiple new streams, e.g. in a demuxer, - * but not for every single element in the pipeline. - * gst_pad_create_stream_id() or gst_pad_create_stream_id_printf() can be - * used to create a stream-id. There are no particular semantics for the - * stream-id, though it should be deterministic (to support stream matching) - * and it might be used to order streams (besides any information conveyed by - * stream flags). - * - * Params: - * streamId = Identifier for this stream - * - * Returns: the new STREAM_START event. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string streamId) - { - auto __p = gst_event_new_stream_start(Str.toStringz(streamId)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_stream_start"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Generates a metadata tag event from the given @taglist. - * - * The scope of the taglist specifies if the taglist applies to the - * complete medium or only to this specific stream. As the tag event - * is a sticky event, elements should merge tags received from - * upstream with a given scope with their own tags with the same - * scope and create a new tag event from it. - * - * Params: - * taglist = metadata list. The event will take ownership - * of the taglist. - * - * Returns: a new #GstEvent - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(TagList taglist) - { - auto __p = gst_event_new_tag((taglist is null) ? null : taglist.getTagListStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_tag"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Generate a TOC event from the given @toc. The purpose of the TOC event is to - * inform elements that some kind of the TOC was found. - * - * Params: - * toc = #GstToc structure. - * updated = whether @toc was updated or not. - * - * Returns: a new #GstEvent. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Toc toc, bool updated) - { - auto __p = gst_event_new_toc((toc is null) ? null : toc.getTocStruct(), updated); - - if(__p is null) - { - throw new ConstructionException("null returned by new_toc"); - } - - this(cast(GstEvent*) __p); - } - - /** - * Parses a segment @event and copies the #GstSegment into the location - * given by @segment. - * - * Params: - * segment = a pointer to a #GstSegment - */ - public void copySegment(Segment segment) - { - gst_event_copy_segment(gstEvent, (segment is null) ? null : segment.getSegmentStruct()); - } - - /** - * Retrieve the accumulated running time offset of the event. - * - * Events passing through #GstPads that have a running time - * offset set via gst_pad_set_offset() will get their offset - * adjusted according to the pad's offset. - * - * If the event contains any information that related to the - * running time, this information will need to be updated - * before usage with this offset. - * - * Returns: The event's running time offset - * - * MT safe. - * - * Since: 1.4 - */ - public long getRunningTimeOffset() - { - return gst_event_get_running_time_offset(gstEvent); - } - - /** - * Retrieve the sequence number of a event. - * - * Events have ever-incrementing sequence numbers, which may also be set - * explicitly via gst_event_set_seqnum(). Sequence numbers are typically used to - * indicate that a event corresponds to some other set of events or messages, - * for example an EOS event corresponding to a SEEK event. It is considered good - * practice to make this correspondence when possible, though it is not - * required. - * - * Note that events and messages share the same sequence number incrementor; - * two events or messages will never have the same sequence number unless - * that correspondence was made explicitly. - * - * Returns: The event's sequence number. - * - * MT safe. - */ - public uint getSeqnum() - { - return gst_event_get_seqnum(gstEvent); - } - - /** - * Access the structure of the event. - * - * Returns: The structure of the event. The - * structure is still owned by the event, which means that you should not free - * it and that the pointer becomes invalid when you free the event. - * - * MT safe. - */ - public Structure getStructure() - { - auto __p = gst_event_get_structure(gstEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Checks if @event has the given @name. This function is usually used to - * check the name of a custom event. - * - * Params: - * name = name to check - * - * Returns: %TRUE if @name matches the name of the event structure. - */ - public bool hasName(string name) - { - return gst_event_has_name(gstEvent, Str.toStringz(name)) != 0; - } - - /** - * Checks if @event has the given @name. This function is usually used to - * check the name of a custom event. - * - * Params: - * name = name to check as a GQuark - * - * Returns: %TRUE if @name matches the name of the event structure. - * - * Since: 1.18 - */ - public bool hasNameId(GQuark name) - { - return gst_event_has_name_id(gstEvent, name) != 0; - } - - /** - * Get the format, minsize, maxsize and async-flag in the buffersize event. - * - * Params: - * format = A pointer to store the format in - * minsize = A pointer to store the minsize in - * maxsize = A pointer to store the maxsize in - * async = A pointer to store the async-flag in - */ - public void parseBufferSize(out GstFormat format, out long minsize, out long maxsize, out bool async) - { - int outasync; - - gst_event_parse_buffer_size(gstEvent, &format, &minsize, &maxsize, &outasync); - - async = (outasync == 1); - } - - /** - * Get the caps from @event. The caps remains valid as long as @event remains - * valid. - * - * Params: - * caps = A pointer to the caps - */ - public void parseCaps(out Caps caps) - { - GstCaps* outcaps = null; - - gst_event_parse_caps(gstEvent, &outcaps); - - caps = ObjectG.getDObject!(Caps)(outcaps); - } - - /** - * Parse the FLUSH_STOP event and retrieve the @reset_time member. - * - * Params: - * resetTime = if time should be reset - */ - public void parseFlushStop(out bool resetTime) - { - int outresetTime; - - gst_event_parse_flush_stop(gstEvent, &outresetTime); - - resetTime = (outresetTime == 1); - } - - /** - * Extract timestamp and duration from a new GAP event. - * - * Params: - * timestamp = location where to store the - * start time (pts) of the gap, or %NULL - * duration = location where to store the duration of - * the gap, or %NULL - */ - public void parseGap(out GstClockTime timestamp, out GstClockTime duration) - { - gst_event_parse_gap(gstEvent, ×tamp, &duration); - } - - /** - * - * Params: - * groupId = address of variable where to store the group id - * Returns: %TRUE if a group id was set on the event and could be parsed, - * %FALSE otherwise. - * - * Since: 1.2 - */ - public bool parseGroupId(out uint groupId) - { - return gst_event_parse_group_id(gstEvent, &groupId) != 0; - } - - /** - * Extract rate and flags from an instant-rate-change event. - * - * Params: - * rateMultiplier = location in which to store the rate - * multiplier of the instant-rate-change event, or %NULL - * newFlags = location in which to store the new - * segment flags of the instant-rate-change event, or %NULL - * - * Since: 1.18 - */ - public void parseInstantRateChange(out double rateMultiplier, out GstSegmentFlags newFlags) - { - gst_event_parse_instant_rate_change(gstEvent, &rateMultiplier, &newFlags); - } - - /** - * Extract the rate multiplier and running times from an instant-rate-sync-time event. - * - * Params: - * rateMultiplier = location where to store the rate of - * the instant-rate-sync-time event, or %NULL - * runningTime = location in which to store the running time - * of the instant-rate-sync-time event, or %NULL - * upstreamRunningTime = location in which to store the - * upstream running time of the instant-rate-sync-time event, or %NULL - * - * Since: 1.18 - */ - public void parseInstantRateSyncTime(out double rateMultiplier, out GstClockTime runningTime, out GstClockTime upstreamRunningTime) - { - gst_event_parse_instant_rate_sync_time(gstEvent, &rateMultiplier, &runningTime, &upstreamRunningTime); - } - - /** - * Get the latency in the latency event. - * - * Params: - * latency = A pointer to store the latency in. - */ - public void parseLatency(out GstClockTime latency) - { - gst_event_parse_latency(gstEvent, &latency); - } - - /** - * Parses an event containing protection system specific information and stores - * the results in @system_id, @data and @origin. The data stored in @system_id, - * @origin and @data are valid until @event is released. - * - * Params: - * systemId = pointer to store the UUID - * string uniquely identifying a content protection system. - * data = pointer to store a #GstBuffer - * holding protection system specific information. - * origin = pointer to store a value that - * indicates where the protection information carried by @event was extracted - * from. - * - * Since: 1.6 - */ - public void parseProtection(out string systemId, out Buffer data, out string origin) - { - char* outsystemId = null; - GstBuffer* outdata = null; - char* outorigin = null; - - gst_event_parse_protection(gstEvent, &outsystemId, &outdata, &outorigin); - - systemId = Str.toString(outsystemId); - data = ObjectG.getDObject!(Buffer)(outdata); - origin = Str.toString(outorigin); - } - - /** - * Get the type, proportion, diff and timestamp in the qos event. See - * gst_event_new_qos() for more information about the different QoS values. - * - * @timestamp will be adjusted for any pad offsets of pads it was passing through. - * - * Params: - * type = A pointer to store the QoS type in - * proportion = A pointer to store the proportion in - * diff = A pointer to store the diff in - * timestamp = A pointer to store the timestamp in - */ - public void parseQos(out GstQOSType type, out double proportion, out GstClockTimeDiff diff, out GstClockTime timestamp) - { - gst_event_parse_qos(gstEvent, &type, &proportion, &diff, ×tamp); - } - - /** - * Parses a seek @event and stores the results in the given result locations. - * - * Params: - * rate = result location for the rate - * format = result location for the stream format - * flags = result location for the #GstSeekFlags - * startType = result location for the #GstSeekType of the start position - * start = result location for the start position expressed in @format - * stopType = result location for the #GstSeekType of the stop position - * stop = result location for the stop position expressed in @format - */ - public void parseSeek(out double rate, out GstFormat format, out GstSeekFlags flags, out GstSeekType startType, out long start, out GstSeekType stopType, out long stop) - { - gst_event_parse_seek(gstEvent, &rate, &format, &flags, &startType, &start, &stopType, &stop); - } - - /** - * Retrieve the trickmode interval that may have been set on a - * seek event with gst_event_set_seek_trickmode_interval(). - * - * Since: 1.16 - */ - public void parseSeekTrickmodeInterval(out GstClockTime interval) - { - gst_event_parse_seek_trickmode_interval(gstEvent, &interval); - } - - /** - * Parses a segment @event and stores the result in the given @segment location. - * @segment remains valid only until the @event is freed. Don't modify the segment - * and make a copy if you want to modify it or store it for later use. - * - * Params: - * segment = a pointer to a #GstSegment - */ - public void parseSegment(out Segment segment) - { - GstSegment* outsegment = null; - - gst_event_parse_segment(gstEvent, &outsegment); - - segment = ObjectG.getDObject!(Segment)(outsegment); - } - - /** - * Extracts the position and format from the segment done message. - * - * Params: - * format = Result location for the format, or %NULL - * position = Result location for the position, or %NULL - */ - public void parseSegmentDone(out GstFormat format, out long position) - { - gst_event_parse_segment_done(gstEvent, &format, &position); - } - - /** - * Parse the SELECT_STREAMS event and retrieve the contained streams. - * - * Params: - * streams = the streams - * - * Since: 1.10 - */ - public void parseSelectStreams(out ListG streams) - { - GList* outstreams = null; - - gst_event_parse_select_streams(gstEvent, &outstreams); - - streams = new ListG(outstreams); - } - - /** - * Parse the sink-message event. Unref @msg after usage. - * - * Params: - * msg = a pointer to store the #GstMessage in. - */ - public void parseSinkMessage(out Message msg) - { - GstMessage* outmsg = null; - - gst_event_parse_sink_message(gstEvent, &outmsg); - - msg = ObjectG.getDObject!(Message)(outmsg); - } - - /** - * Parse the step event. - * - * Params: - * format = a pointer to store the format in - * amount = a pointer to store the amount in - * rate = a pointer to store the rate in - * flush = a pointer to store the flush boolean in - * intermediate = a pointer to store the intermediate - * boolean in - */ - public void parseStep(out GstFormat format, out ulong amount, out double rate, out bool flush, out bool intermediate) - { - int outflush; - int outintermediate; - - gst_event_parse_step(gstEvent, &format, &amount, &rate, &outflush, &outintermediate); - - flush = (outflush == 1); - intermediate = (outintermediate == 1); - } - - /** - * Parse a stream-start @event and extract the #GstStream from it. - * - * Params: - * stream = address of variable to store the stream - * - * Since: 1.10 - */ - public void parseStream(out Stream stream) - { - GstStream* outstream = null; - - gst_event_parse_stream(gstEvent, &outstream); - - stream = ObjectG.getDObject!(Stream)(outstream); - } - - /** - * Retrieve new #GstStreamCollection from STREAM_COLLECTION event @event. - * - * Params: - * collection = pointer to store the collection - * - * Since: 1.10 - */ - public void parseStreamCollection(out StreamCollection collection) - { - GstStreamCollection* outcollection = null; - - gst_event_parse_stream_collection(gstEvent, &outcollection); - - collection = ObjectG.getDObject!(StreamCollection)(outcollection); - } - - /** */ - public void parseStreamFlags(out GstStreamFlags flags) - { - gst_event_parse_stream_flags(gstEvent, &flags); - } - - /** - * Parse a stream-group-done @event and store the result in the given - * @group_id location. - * - * Params: - * groupId = address of variable to store the group id into - * - * Since: 1.10 - */ - public void parseStreamGroupDone(out uint groupId) - { - gst_event_parse_stream_group_done(gstEvent, &groupId); - } - - /** - * Parse a stream-id @event and store the result in the given @stream_id - * location. The string stored in @stream_id must not be modified and will - * remain valid only until @event gets freed. Make a copy if you want to - * modify it or store it for later use. - * - * Params: - * streamId = pointer to store the stream-id - */ - public void parseStreamStart(out string streamId) - { - char* outstreamId = null; - - gst_event_parse_stream_start(gstEvent, &outstreamId); - - streamId = Str.toString(outstreamId); - } - - /** - * Parses a tag @event and stores the results in the given @taglist location. - * No reference to the taglist will be returned, it remains valid only until - * the @event is freed. Don't modify or free the taglist, make a copy if you - * want to modify it or store it for later use. - * - * Params: - * taglist = pointer to metadata list - */ - public void parseTag(out TagList taglist) - { - GstTagList* outtaglist = null; - - gst_event_parse_tag(gstEvent, &outtaglist); - - taglist = ObjectG.getDObject!(TagList)(outtaglist); - } - - /** - * Parse a TOC @event and store the results in the given @toc and @updated locations. - * - * Params: - * toc = pointer to #GstToc structure. - * updated = pointer to store TOC updated flag. - */ - public void parseToc(out Toc toc, out bool updated) - { - GstToc* outtoc = null; - int outupdated; - - gst_event_parse_toc(gstEvent, &outtoc, &outupdated); - - toc = ObjectG.getDObject!(Toc)(outtoc); - updated = (outupdated == 1); - } - - /** - * Parse a TOC select @event and store the results in the given @uid location. - * - * Params: - * uid = storage for the selection UID. - */ - public void parseTocSelect(out string uid) - { - char* outuid = null; - - gst_event_parse_toc_select(gstEvent, &outuid); - - uid = Str.toString(outuid); - } - - /** - * All streams that have the same group id are supposed to be played - * together, i.e. all streams inside a container file should have the - * same group id but different stream ids. The group id should change - * each time the stream is started, resulting in different group ids - * each time a file is played for example. - * - * Use gst_util_group_id_next() to get a new group id. - * - * Params: - * groupId = the group id to set - * - * Since: 1.2 - */ - public void setGroupId(uint groupId) - { - gst_event_set_group_id(gstEvent, groupId); - } - - /** - * Set the running time offset of a event. See - * gst_event_get_running_time_offset() for more information. - * - * MT safe. - * - * Params: - * offset = A the new running time offset - * - * Since: 1.4 - */ - public void setRunningTimeOffset(long offset) - { - gst_event_set_running_time_offset(gstEvent, offset); - } - - /** - * Sets a trickmode interval on a (writable) seek event. Elements - * that support TRICKMODE_KEY_UNITS seeks SHOULD use this as the minimal - * interval between each frame they may output. - * - * Since: 1.16 - */ - public void setSeekTrickmodeInterval(GstClockTime interval) - { - gst_event_set_seek_trickmode_interval(gstEvent, interval); - } - - /** - * Set the sequence number of a event. - * - * This function might be called by the creator of a event to indicate that the - * event relates to other events or messages. See gst_event_get_seqnum() for - * more information. - * - * MT safe. - * - * Params: - * seqnum = A sequence number. - */ - public void setSeqnum(uint seqnum) - { - gst_event_set_seqnum(gstEvent, seqnum); - } - - /** - * Set the @stream on the stream-start @event - * - * Params: - * stream = the stream object to set - * - * Since: 1.10 - */ - public void setStream(Stream stream) - { - gst_event_set_stream(gstEvent, (stream is null) ? null : stream.getStreamStruct()); - } - - /** */ - public void setStreamFlags(GstStreamFlags flags) - { - gst_event_set_stream_flags(gstEvent, flags); - } - - /** - * Get a writable version of the structure. - * - * Returns: The structure of the event. The structure - * is still owned by the event, which means that you should not free - * it and that the pointer becomes invalid when you free the event. - * This function checks if @event is writable and will never return - * %NULL. - * - * MT safe. - */ - public Structure writableStructure() - { - auto __p = gst_event_writable_structure(gstEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Gets the #GstEventTypeFlags associated with @type. - * - * Params: - * type = a #GstEventType - * - * Returns: a #GstEventTypeFlags. - */ - public static GstEventTypeFlags typeGetFlags(GstEventType type) - { - return gst_event_type_get_flags(type); - } - - /** - * Get a printable name for the given event type. Do not modify or free. - * - * Params: - * type = the event type - * - * Returns: a reference to the static name of the event. - */ - public static string typeGetName(GstEventType type) - { - return Str.toString(gst_event_type_get_name(type)); - } - - /** - * Get the unique quark for the given event type. - * - * Params: - * type = the event type - * - * Returns: the quark associated with the event type - */ - public static GQuark typeToQuark(GstEventType type) - { - return gst_event_type_to_quark(type); - } -} diff --git a/generated/gstreamer/gstreamer/FlagSet.d b/generated/gstreamer/gstreamer/FlagSet.d deleted file mode 100644 index ad53b40ee..000000000 --- a/generated/gstreamer/gstreamer/FlagSet.d +++ /dev/null @@ -1,85 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.FlagSet; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes a 32-bit flag bitfield, with 32-bit - * mask indicating which of the bits in the field are explicitly set. - */ -public class FlagSet -{ - /** the main Gtk struct */ - protected GstFlagSet* gstFlagSet; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstFlagSet* getFlagSetStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstFlagSet; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstFlagSet; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstFlagSet* gstFlagSet, bool ownedRef = false) - { - this.gstFlagSet = gstFlagSet; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_flagset_get_type(); - } - - /** - * Create a new sub-class of #GST_TYPE_FLAG_SET - * which will pretty-print the human-readable flags - * when serializing, for easier debugging. - * - * Params: - * flagsType = a #GType of a #G_TYPE_FLAGS type. - * - * Since: 1.6 - */ - public static GType register(GType flagsType) - { - return gst_flagset_register(flagsType); - } -} diff --git a/generated/gstreamer/gstreamer/Format.d b/generated/gstreamer/gstreamer/Format.d deleted file mode 100644 index 913e7615e..000000000 --- a/generated/gstreamer/gstreamer/Format.d +++ /dev/null @@ -1,146 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Format; - -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Iterator; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct Format -{ - - /** - * Return the format registered with the given nick. - * - * Params: - * nick = The nick of the format - * - * Returns: The format with @nick or GST_FORMAT_UNDEFINED - * if the format was not registered. - */ - public static GstFormat getByNick(string nick) - { - return gst_format_get_by_nick(Str.toStringz(nick)); - } - - /** - * Get details about the given format. - * - * Params: - * format = The format to get details of - * - * Returns: The #GstFormatDefinition for @format or %NULL - * on failure. - * - * MT safe. - */ - public static GstFormatDefinition* getDetails(GstFormat format) - { - return gst_format_get_details(format); - } - - /** - * Get a printable name for the given format. Do not modify or free. - * - * Params: - * format = a #GstFormat - * - * Returns: a reference to the static name of the format - * or %NULL if the format is unknown. - */ - public static string getName(GstFormat format) - { - return Str.toString(gst_format_get_name(format)); - } - - /** - * Iterate all the registered formats. The format definition is read - * only. - * - * Returns: a GstIterator of #GstFormatDefinition. - */ - public static Iterator iterateDefinitions() - { - auto __p = gst_format_iterate_definitions(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Create a new GstFormat based on the nick or return an - * already registered format with that nick. - * - * Params: - * nick = The nick of the new format - * description = The description of the new format - * - * Returns: A new GstFormat or an already registered format - * with the same nick. - * - * MT safe. - */ - public static GstFormat register(string nick, string description) - { - return gst_format_register(Str.toStringz(nick), Str.toStringz(description)); - } - - /** - * Get the unique quark for the given format. - * - * Params: - * format = a #GstFormat - * - * Returns: the quark associated with the format or 0 if the format - * is unknown. - */ - public static GQuark toQuark(GstFormat format) - { - return gst_format_to_quark(format); - } - - /** - * See if the given format is inside the format array. - * - * Params: - * formats = The format array to search - * format = the format to find - * - * Returns: %TRUE if the format is found inside the array - */ - public static bool contains(GstFormat[] formats, GstFormat format) - { - return gst_formats_contains(formats.ptr, format) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/Fraction.d b/generated/gstreamer/gstreamer/Fraction.d deleted file mode 100644 index 0712292c2..000000000 --- a/generated/gstreamer/gstreamer/Fraction.d +++ /dev/null @@ -1,70 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Fraction; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes a fraction of an integer numerator - * over an integer denominator - */ -public class Fraction -{ - /** the main Gtk struct */ - protected GstFraction* gstFraction; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstFraction* getFractionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstFraction; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstFraction; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstFraction* gstFraction, bool ownedRef = false) - { - this.gstFraction = gstFraction; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_fraction_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/FractionRange.d b/generated/gstreamer/gstreamer/FractionRange.d deleted file mode 100644 index 3f6edf9a9..000000000 --- a/generated/gstreamer/gstreamer/FractionRange.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.FractionRange; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes a #GstFractionRange range - */ -public class FractionRange -{ - /** the main Gtk struct */ - protected GstFractionRange* gstFractionRange; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstFractionRange* getFractionRangeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstFractionRange; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstFractionRange; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstFractionRange* gstFractionRange, bool ownedRef = false) - { - this.gstFractionRange = gstFractionRange; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_fraction_range_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/GError.d b/generated/gstreamer/gstreamer/GError.d deleted file mode 100644 index 6d488e8d9..000000000 --- a/generated/gstreamer/gstreamer/GError.d +++ /dev/null @@ -1,54 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.GError; - -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct GError -{ - - /** - * Get a string describing the error message in the current locale. - * - * Params: - * domain = the GStreamer error domain this error belongs to. - * code = the error code belonging to the domain. - * - * Returns: a newly allocated string describing - * the error message (in UTF-8 encoding) - */ - public static string errorGetMessage(GQuark domain, int code) - { - auto retStr = gst_error_get_message(domain, code); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gstreamer/gstreamer/GStreamer.d b/generated/gstreamer/gstreamer/GStreamer.d deleted file mode 100644 index efd58b6c4..000000000 --- a/generated/gstreamer/gstreamer/GStreamer.d +++ /dev/null @@ -1,241 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.GStreamer; - -private import glib.ErrorG; -private import glib.GException; -private import glib.OptionGroup; -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct GStreamer -{ - - /** - * Clean up any resources created by GStreamer in gst_init(). - * - * It is normally not needed to call this function in a normal application - * as the resources will automatically be freed when the program terminates. - * This function is therefore mostly used by testsuites and other memory - * profiling tools. - * - * After this call GStreamer (including this method) should not be used anymore. - */ - public static void deinit() - { - gst_deinit(); - } - - /** - * Initializes the GStreamer library, setting up internal path lists, - * registering built-in elements, and loading standard plugins. - * - * Unless the plugin registry is disabled at compile time, the registry will be - * loaded. By default this will also check if the registry cache needs to be - * updated and rescan all plugins if needed. See gst_update_registry() for - * details and section - * Running GStreamer Applications - * for how to disable automatic registry updates. - * - * > This function will terminate your program if it was unable to initialize - * > GStreamer for some reason. If you want your program to fall back, - * > use gst_init_check() instead. - * - * WARNING: This function does not work in the same way as corresponding - * functions in other glib-style libraries, such as gtk_init\(\). In - * particular, unknown command line options cause this function to - * abort program execution. - * - * Params: - * argv = pointer to application's argv - */ - public static void init(ref string[] argv) - { - int argc = cast(int)argv.length; - char** outargv = Str.toStringzArray(argv); - - gst_init(&argc, &outargv); - - argv = Str.toStringArray(outargv, argc); - } - - /** - * Initializes the GStreamer library, setting up internal path lists, - * registering built-in elements, and loading standard plugins. - * - * This function will return %FALSE if GStreamer could not be initialized - * for some reason. If you want your program to fail fatally, - * use gst_init() instead. - * - * Params: - * argv = pointer to application's argv - * - * Returns: %TRUE if GStreamer could be initialized. - * - * Throws: GException on failure. - */ - public static bool initCheck(ref string[] argv) - { - int argc = cast(int)argv.length; - char** outargv = Str.toStringzArray(argv); - GError* err = null; - - auto __p = gst_init_check(&argc, &outargv, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - argv = Str.toStringArray(outargv, argc); - - return __p; - } - - /** - * Returns a #GOptionGroup with GStreamer's argument specifications. The - * group is set up to use standard GOption callbacks, so when using this - * group in combination with GOption parsing methods, all argument parsing - * and initialization is automated. - * - * This function is useful if you want to integrate GStreamer with other - * libraries that use GOption (see g_option_context_add_group() ). - * - * If you use this function, you should make sure you initialise the GLib - * threading system as one of the very first things in your program - * (see the example at the beginning of this section). - * - * Returns: a pointer to GStreamer's option group. - */ - public static OptionGroup initGetOptionGroup() - { - auto __p = gst_init_get_option_group(); - - if(__p is null) - { - return null; - } - - return new OptionGroup(cast(GOptionGroup*) __p, true); - } - - /** - * Use this function to check if GStreamer has been initialized with gst_init() - * or gst_init_check(). - * - * Returns: %TRUE if initialization has been done, %FALSE otherwise. - */ - public static bool isInitialized() - { - return gst_is_initialized() != 0; - } - - /** - * Some functions in the GStreamer core might install a custom SIGSEGV handler - * to better catch and report errors to the application. Currently this feature - * is enabled by default when loading plugins. - * - * Applications might want to disable this behaviour with the - * gst_segtrap_set_enabled() function. This is typically done if the application - * wants to install its own handler without GStreamer interfering. - * - * Returns: %TRUE if GStreamer is allowed to install a custom SIGSEGV handler. - */ - public static bool segtrapIsEnabled() - { - return gst_segtrap_is_enabled() != 0; - } - - /** - * Applications might want to disable/enable the SIGSEGV handling of - * the GStreamer core. See gst_segtrap_is_enabled() for more information. - * - * Params: - * enabled = whether a custom SIGSEGV handler should be installed. - */ - public static void segtrapSetEnabled(bool enabled) - { - gst_segtrap_set_enabled(enabled); - } - - /** - * Forces GStreamer to re-scan its plugin paths and update the default - * plugin registry. - * - * Applications will almost never need to call this function, it is only - * useful if the application knows new plugins have been installed (or old - * ones removed) since the start of the application (or, to be precise, the - * first call to gst_init()) and the application wants to make use of any - * newly-installed plugins without restarting the application. - * - * Applications should assume that the registry update is neither atomic nor - * thread-safe and should therefore not have any dynamic pipelines running - * (including the playbin and decodebin elements) and should also not create - * any elements or access the GStreamer registry while the update is in - * progress. - * - * Note that this function may block for a significant amount of time. - * - * Returns: %TRUE if the registry has been updated successfully (does not - * imply that there were changes), otherwise %FALSE. - */ - public static bool updateRegistry() - { - return gst_update_registry() != 0; - } - - /** - * Gets the version number of the GStreamer library. - * - * Params: - * major = pointer to a guint to store the major version number - * minor = pointer to a guint to store the minor version number - * micro = pointer to a guint to store the micro version number - * nano = pointer to a guint to store the nano version number - */ - public static void version_(out uint major, out uint minor, out uint micro, out uint nano) - { - gst_version(&major, &minor, µ, &nano); - } - - /** - * This function returns a string that is useful for describing this version - * of GStreamer to the outside world: user agent strings, logging, ... - * - * Returns: a newly allocated string describing this version - * of GStreamer. - */ - public static string versionString() - { - auto retStr = gst_version_string(); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gstreamer/gstreamer/GhostPad.d b/generated/gstreamer/gstreamer/GhostPad.d deleted file mode 100644 index 73c6b1ecc..000000000 --- a/generated/gstreamer/gstreamer/GhostPad.d +++ /dev/null @@ -1,281 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.GhostPad; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gstreamer.ObjectGst; -private import gstreamer.Pad; -private import gstreamer.PadTemplate; -private import gstreamer.ProxyPad; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * GhostPads are useful when organizing pipelines with #GstBin like elements. - * The idea here is to create hierarchical element graphs. The bin element - * contains a sub-graph. Now one would like to treat the bin-element like any - * other #GstElement. This is where GhostPads come into play. A GhostPad acts as - * a proxy for another pad. Thus the bin can have sink and source ghost-pads - * that are associated with sink and source pads of the child elements. - * - * If the target pad is known at creation time, gst_ghost_pad_new() is the - * function to use to get a ghost-pad. Otherwise one can use gst_ghost_pad_new_no_target() - * to create the ghost-pad and use gst_ghost_pad_set_target() to establish the - * association later on. - * - * Note that GhostPads add overhead to the data processing of a pipeline. - */ -public class GhostPad : ProxyPad -{ - /** the main Gtk struct */ - protected GstGhostPad* gstGhostPad; - - /** Get the main Gtk struct */ - public GstGhostPad* getGhostPadStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstGhostPad; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstGhostPad; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstGhostPad* gstGhostPad, bool ownedRef = false) - { - this.gstGhostPad = gstGhostPad; - super(cast(GstProxyPad*)gstGhostPad, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_ghost_pad_get_type(); - } - - /** - * Create a new ghostpad with @target as the target. The direction will be taken - * from the target pad. @target must be unlinked. - * - * Will ref the target. - * - * Params: - * name = the name of the new pad, or %NULL to assign a default name - * target = the pad to ghost. - * - * Returns: a new #GstPad, or %NULL in - * case of an error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, Pad target) - { - auto __p = gst_ghost_pad_new(Str.toStringz(name), (target is null) ? null : target.getPadStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstGhostPad*) __p); - } - - /** - * Create a new ghostpad with @target as the target. The direction will be taken - * from the target pad. The template used on the ghostpad will be @template. - * - * Will ref the target. - * - * Params: - * name = the name of the new pad, or %NULL to assign a default name. - * target = the pad to ghost. - * templ = the #GstPadTemplate to use on the ghostpad. - * - * Returns: a new #GstPad, or %NULL in - * case of an error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, Pad target, PadTemplate templ) - { - auto __p = gst_ghost_pad_new_from_template(Str.toStringz(name), (target is null) ? null : target.getPadStruct(), (templ is null) ? null : templ.getPadTemplateStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_template"); - } - - this(cast(GstGhostPad*) __p); - } - - /** - * Create a new ghostpad without a target with the given direction. - * A target can be set on the ghostpad later with the - * gst_ghost_pad_set_target() function. - * - * The created ghostpad will not have a padtemplate. - * - * Params: - * name = the name of the new pad, or %NULL to assign a default name. - * dir = the direction of the ghostpad - * - * Returns: a new #GstPad, or %NULL in - * case of an error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, GstPadDirection dir) - { - auto __p = gst_ghost_pad_new_no_target(Str.toStringz(name), dir); - - if(__p is null) - { - throw new ConstructionException("null returned by new_no_target"); - } - - this(cast(GstGhostPad*) __p); - } - - /** - * Create a new ghostpad based on @templ, without setting a target. The - * direction will be taken from the @templ. - * - * Params: - * name = the name of the new pad, or %NULL to assign a default name - * templ = the #GstPadTemplate to create the ghostpad from. - * - * Returns: a new #GstPad, or %NULL in - * case of an error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, PadTemplate templ) - { - auto __p = gst_ghost_pad_new_no_target_from_template(Str.toStringz(name), (templ is null) ? null : templ.getPadTemplateStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_no_target_from_template"); - } - - this(cast(GstGhostPad*) __p); - } - - /** - * Invoke the default activate mode function of a ghost pad. - * - * Params: - * pad = the #GstPad to activate or deactivate. - * parent = the parent of @pad or %NULL - * mode = the requested activation mode - * active = whether the pad should be active or not. - * - * Returns: %TRUE if the operation was successful. - */ - public static bool activateModeDefault(Pad pad, ObjectGst parent, GstPadMode mode, bool active) - { - return gst_ghost_pad_activate_mode_default((pad is null) ? null : pad.getPadStruct(), (parent is null) ? null : parent.getObjectGstStruct(), mode, active) != 0; - } - - /** - * Invoke the default activate mode function of a proxy pad that is - * owned by a ghost pad. - * - * Params: - * pad = the #GstPad to activate or deactivate. - * parent = the parent of @pad or %NULL - * mode = the requested activation mode - * active = whether the pad should be active or not. - * - * Returns: %TRUE if the operation was successful. - */ - public static bool internalActivateModeDefault(Pad pad, ObjectGst parent, GstPadMode mode, bool active) - { - return gst_ghost_pad_internal_activate_mode_default((pad is null) ? null : pad.getPadStruct(), (parent is null) ? null : parent.getObjectGstStruct(), mode, active) != 0; - } - - /** - * Finish initialization of a newly allocated ghost pad. - * - * This function is most useful in language bindings and when subclassing - * #GstGhostPad; plugin and application developers normally will not call this - * function. Call this function directly after a call to g_object_new - * (GST_TYPE_GHOST_PAD, "direction", @dir, ..., NULL). - * - * Deprecated: This function is deprecated since 1.18 and does nothing - * anymore. - * - * Returns: %TRUE if the construction succeeds, %FALSE otherwise. - */ - public bool construct() - { - return gst_ghost_pad_construct(gstGhostPad) != 0; - } - - /** - * Get the target pad of @gpad. Unref target pad after usage. - * - * Returns: the target #GstPad, can be - * %NULL if the ghostpad has no target set. Unref target pad after - * usage. - */ - public Pad getTarget() - { - auto __p = gst_ghost_pad_get_target(gstGhostPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * Set the new target of the ghostpad @gpad. Any existing target - * is unlinked and links to the new target are established. if @newtarget is - * %NULL the target will be cleared. - * - * Params: - * newtarget = the new pad target - * - * Returns: %TRUE if the new target could be set. This function - * can return %FALSE when the internal pads could not be linked. - */ - public bool setTarget(Pad newtarget) - { - return gst_ghost_pad_set_target(gstGhostPad, (newtarget is null) ? null : newtarget.getPadStruct()) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/Int64Range.d b/generated/gstreamer/gstreamer/Int64Range.d deleted file mode 100644 index c79cdd1e4..000000000 --- a/generated/gstreamer/gstreamer/Int64Range.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Int64Range; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes a #gint64 range - */ -public class Int64Range -{ - /** the main Gtk struct */ - protected GstInt64Range* gstInt64Range; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstInt64Range* getInt64RangeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstInt64Range; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstInt64Range; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstInt64Range* gstInt64Range, bool ownedRef = false) - { - this.gstInt64Range = gstInt64Range; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_int64_range_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/IntRange.d b/generated/gstreamer/gstreamer/IntRange.d deleted file mode 100644 index 227a9890f..000000000 --- a/generated/gstreamer/gstreamer/IntRange.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.IntRange; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes a #gint range - */ -public class IntRange -{ - /** the main Gtk struct */ - protected GstIntRange* gstIntRange; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstIntRange* getIntRangeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstIntRange; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstIntRange; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstIntRange* gstIntRange, bool ownedRef = false) - { - this.gstIntRange = gstIntRange; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_int_range_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/Iterator.d b/generated/gstreamer/gstreamer/Iterator.d deleted file mode 100644 index 387739d18..000000000 --- a/generated/gstreamer/gstreamer/Iterator.d +++ /dev/null @@ -1,437 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Iterator; - -private import glib.ConstructionException; -private import glib.ListG; -private import glib.MemorySlice; -private import glib.Mutex; -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * A GstIterator is used to retrieve multiple objects from another object in - * a threadsafe way. - * - * Various GStreamer objects provide access to their internal structures using - * an iterator. - * - * Note that if calling a GstIterator function results in your code receiving - * a refcounted object (with, say, g_value_get_object()), the refcount for that - * object will not be increased. Your code is responsible for taking a reference - * if it wants to continue using it later. - * - * The basic use pattern of an iterator is as follows: - * |[ - * GstIterator *it = _get_iterator(object); - * GValue item = G_VALUE_INIT; - * done = FALSE; - * while (!done) { - * switch (gst_iterator_next (it, &item)) { - * case GST_ITERATOR_OK: - * ...get/use/change item here... - * g_value_reset (&item); - * break; - * case GST_ITERATOR_RESYNC: - * ...rollback changes to items... - * gst_iterator_resync (it); - * break; - * case GST_ITERATOR_ERROR: - * ...wrong parameters were given... - * done = TRUE; - * break; - * case GST_ITERATOR_DONE: - * done = TRUE; - * break; - * } - * } - * g_value_unset (&item); - * gst_iterator_free (it); - * ]| - */ -public class Iterator -{ - /** the main Gtk struct */ - protected GstIterator* gstIterator; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstIterator* getIteratorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstIterator; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstIterator; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstIterator* gstIterator, bool ownedRef = false) - { - this.gstIterator = gstIterator; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_iterator_free(gstIterator); - } - - - /** */ - public static GType getType() - { - return gst_iterator_get_type(); - } - - /** - * Create a new iterator. This function is mainly used for objects - * implementing the next/resync/free function to iterate a data structure. - * - * For each item retrieved, the @item function is called with the lock - * held. The @free function is called when the iterator is freed. - * - * Params: - * size = the size of the iterator structure - * type = #GType of children - * lock = pointer to a #GMutex. - * masterCookie = pointer to a guint32 that is changed when the items in the - * iterator changed. - * copy = copy function - * next = function to get next item - * item = function to call on each item retrieved - * resync = function to resync the iterator - * free = function to free the iterator - * - * Returns: the new #GstIterator. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint size, GType type, Mutex lock, uint* masterCookie, GstIteratorCopyFunction copy, GstIteratorNextFunction next, GstIteratorItemFunction item, GstIteratorResyncFunction resync, GstIteratorFreeFunction free) - { - auto __p = gst_iterator_new(size, type, (lock is null) ? null : lock.getMutexStruct(), masterCookie, copy, next, item, resync, free); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstIterator*) __p); - } - - /** - * Create a new iterator designed for iterating @list. - * - * The list you iterate is usually part of a data structure @owner and is - * protected with @lock. - * - * The iterator will use @lock to retrieve the next item of the list and it - * will then call the @item function before releasing @lock again. - * - * When a concurrent update to the list is performed, usually by @owner while - * holding @lock, @master_cookie will be updated. The iterator implementation - * will notice the update of the cookie and will return %GST_ITERATOR_RESYNC to - * the user of the iterator in the next call to gst_iterator_next(). - * - * Params: - * type = #GType of elements - * lock = pointer to a #GMutex protecting the list. - * masterCookie = pointer to a guint32 that is incremented when the list - * is changed. - * list = pointer to the list - * owner = object owning the list - * item = function to call on each item retrieved - * - * Returns: the new #GstIterator for @list. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GType type, Mutex lock, uint* masterCookie, ref ListG list, ObjectG owner, GstIteratorItemFunction item) - { - GList* outlist = list.getListGStruct(); - - auto __p = gst_iterator_new_list(type, (lock is null) ? null : lock.getMutexStruct(), masterCookie, &outlist, (owner is null) ? null : owner.getObjectGStruct(), item); - - if(__p is null) - { - throw new ConstructionException("null returned by new_list"); - } - - list = new ListG(outlist); - - this(cast(GstIterator*) __p); - } - - /** - * This #GstIterator is a convenient iterator for the common - * case where a #GstIterator needs to be returned but only - * a single object has to be considered. This happens often - * for the #GstPadIterIntLinkFunction. - * - * Params: - * type = #GType of the passed object - * object = object that this iterator should return - * - * Returns: the new #GstIterator for @object. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GType type, Value object) - { - auto __p = gst_iterator_new_single(type, (object is null) ? null : object.getValueStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_single"); - } - - this(cast(GstIterator*) __p); - } - - /** - * Copy the iterator and its state. - * - * Returns: a new copy of @it. - */ - public Iterator copy() - { - auto __p = gst_iterator_copy(gstIterator); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Create a new iterator from an existing iterator. The new iterator - * will only return those elements that match the given compare function @func. - * The first parameter that is passed to @func is the #GValue of the current - * iterator element and the second parameter is @user_data. @func should - * return 0 for elements that should be included in the filtered iterator. - * - * When this iterator is freed, @it will also be freed. - * - * Params: - * func = the compare function to select elements - * userData = user data passed to the compare function - * - * Returns: a new #GstIterator. - * - * MT safe. - */ - public Iterator filter(GCompareFunc func, Value userData) - { - auto __p = gst_iterator_filter(gstIterator, func, (userData is null) ? null : userData.getValueStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Find the first element in @it that matches the compare function @func. - * @func should return 0 when the element is found. The first parameter - * to @func will be the current element of the iterator and the - * second parameter will be @user_data. - * The result will be stored in @elem if a result is found. - * - * The iterator will not be freed. - * - * This function will return %FALSE if an error happened to the iterator - * or if the element wasn't found. - * - * Params: - * func = the compare function to use - * elem = pointer to a #GValue where to store the result - * userData = user data passed to the compare function - * - * Returns: Returns %TRUE if the element was found, else %FALSE. - * - * MT safe. - */ - public bool findCustom(GCompareFunc func, out Value elem, void* userData) - { - GValue* outelem = sliceNew!GValue(); - - auto __p = gst_iterator_find_custom(gstIterator, func, outelem, userData) != 0; - - elem = ObjectG.getDObject!(Value)(outelem, true); - - return __p; - } - - /** - * Folds @func over the elements of @iter. That is to say, @func will be called - * as @func (object, @ret, @user_data) for each object in @it. The normal use - * of this procedure is to accumulate the results of operating on the objects in - * @ret. - * - * This procedure can be used (and is used internally) to implement the - * gst_iterator_foreach() and gst_iterator_find_custom() operations. - * - * The fold will proceed as long as @func returns %TRUE. When the iterator has no - * more arguments, %GST_ITERATOR_DONE will be returned. If @func returns %FALSE, - * the fold will stop, and %GST_ITERATOR_OK will be returned. Errors or resyncs - * will cause fold to return %GST_ITERATOR_ERROR or %GST_ITERATOR_RESYNC as - * appropriate. - * - * The iterator will not be freed. - * - * Params: - * func = the fold function - * ret = the seed value passed to the fold function - * userData = user data passed to the fold function - * - * Returns: A #GstIteratorResult, as described above. - * - * MT safe. - */ - public GstIteratorResult fold(GstIteratorFoldFunction func, Value ret, void* userData) - { - return gst_iterator_fold(gstIterator, func, (ret is null) ? null : ret.getValueStruct(), userData); - } - - alias foreac = foreach_; - /** - * Iterate over all element of @it and call the given function @func for - * each element. - * - * Params: - * func = the function to call for each element. - * userData = user data passed to the function - * - * Returns: the result call to gst_iterator_fold(). The iterator will not be - * freed. - * - * MT safe. - */ - public GstIteratorResult foreach_(GstIteratorForeachFunction func, void* userData) - { - return gst_iterator_foreach(gstIterator, func, userData); - } - - /** - * Free the iterator. - * - * MT safe. - */ - public void free() - { - gst_iterator_free(gstIterator); - ownedRef = false; - } - - /** - * Get the next item from the iterator in @elem. - * - * Only when this function returns %GST_ITERATOR_OK, @elem will contain a valid - * value. @elem must have been initialized to the type of the iterator or - * initialized to zeroes with g_value_unset(). The caller is responsible for - * unsetting or resetting @elem with g_value_unset() or g_value_reset() - * after usage. - * - * When this function returns %GST_ITERATOR_DONE, no more elements can be - * retrieved from @it. - * - * A return value of %GST_ITERATOR_RESYNC indicates that the element list was - * concurrently updated. The user of @it should call gst_iterator_resync() to - * get the newly updated list. - * - * A return value of %GST_ITERATOR_ERROR indicates an unrecoverable fatal error. - * - * Params: - * elem = pointer to hold next element - * - * Returns: The result of the iteration. Unset @elem after usage. - * - * MT safe. - */ - public GstIteratorResult next(out Value elem) - { - GValue* outelem = sliceNew!GValue(); - - auto __p = gst_iterator_next(gstIterator, outelem); - - elem = ObjectG.getDObject!(Value)(outelem, true); - - return __p; - } - - /** - * Pushes @other iterator onto @it. All calls performed on @it are - * forwarded to @other. If @other returns %GST_ITERATOR_DONE, it is - * popped again and calls are handled by @it again. - * - * This function is mainly used by objects implementing the iterator - * next function to recurse into substructures. - * - * When gst_iterator_resync() is called on @it, @other will automatically be - * popped. - * - * MT safe. - * - * Params: - * other = The #GstIterator to push - */ - public void push(Iterator other) - { - gst_iterator_push(gstIterator, (other is null) ? null : other.getIteratorStruct()); - } - - /** - * Resync the iterator. this function is mostly called - * after gst_iterator_next() returned %GST_ITERATOR_RESYNC. - * - * When an iterator was pushed on @it, it will automatically be popped again - * with this function. - * - * MT safe. - */ - public void resync() - { - gst_iterator_resync(gstIterator); - } -} diff --git a/generated/gstreamer/gstreamer/Memory.d b/generated/gstreamer/gstreamer/Memory.d deleted file mode 100644 index 5537e5199..000000000 --- a/generated/gstreamer/gstreamer/Memory.d +++ /dev/null @@ -1,331 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Memory; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gstreamer.Allocator; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * GstMemory is a lightweight refcounted object that wraps a region of memory. - * They are typically used to manage the data of a #GstBuffer. - * - * A GstMemory object has an allocated region of memory of maxsize. The maximum - * size does not change during the lifetime of the memory object. The memory - * also has an offset and size property that specifies the valid range of memory - * in the allocated region. - * - * Memory is usually created by allocators with a gst_allocator_alloc() - * method call. When %NULL is used as the allocator, the default allocator will - * be used. - * - * New allocators can be registered with gst_allocator_register(). - * Allocators are identified by name and can be retrieved with - * gst_allocator_find(). gst_allocator_set_default() can be used to change the - * default allocator. - * - * New memory can be created with gst_memory_new_wrapped() that wraps the memory - * allocated elsewhere. - * - * Refcounting of the memory block is performed with gst_memory_ref() and - * gst_memory_unref(). - * - * The size of the memory can be retrieved and changed with - * gst_memory_get_sizes() and gst_memory_resize() respectively. - * - * Getting access to the data of the memory is performed with gst_memory_map(). - * The call will return a pointer to offset bytes into the region of memory. - * After the memory access is completed, gst_memory_unmap() should be called. - * - * Memory can be copied with gst_memory_copy(), which will return a writable - * copy. gst_memory_share() will create a new memory block that shares the - * memory with an existing memory block at a custom offset and with a custom - * size. - * - * Memory can be efficiently merged when gst_memory_is_span() returns %TRUE. - */ -public class Memory -{ - /** the main Gtk struct */ - protected GstMemory* gstMemory; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMemory* getMemoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMemory; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMemory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMemory* gstMemory, bool ownedRef = false) - { - this.gstMemory = gstMemory; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_memory_get_type(); - } - - /** - * Allocate a new memory block that wraps the given @data. - * - * The prefix/padding must be filled with 0 if @flags contains - * #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively. - * - * Params: - * flags = #GstMemoryFlags - * data = data to - * wrap - * maxsize = allocated size of @data - * offset = offset in @data - * userData = user_data - * notify = called with @user_data when the memory is freed - * - * Returns: a new #GstMemory. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstMemoryFlags flags, ubyte[] data, size_t maxsize, size_t offset, void* userData, GDestroyNotify notify) - { - auto __p = gst_memory_new_wrapped(flags, data.ptr, maxsize, offset, cast(size_t)data.length, userData, notify); - - if(__p is null) - { - throw new ConstructionException("null returned by new_wrapped"); - } - - this(cast(GstMemory*) __p); - } - - /** - * Return a copy of @size bytes from @mem starting from @offset. This copy is - * guaranteed to be writable. @size can be set to -1 to return a copy - * from @offset to the end of the memory region. - * - * Params: - * offset = offset to copy from - * size = size to copy, or -1 to copy to the end of the memory region - * - * Returns: a new #GstMemory. - */ - public Memory copy(ptrdiff_t offset, ptrdiff_t size) - { - auto __p = gst_memory_copy(gstMemory, offset, size); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p, true); - } - - /** - * Get the current @size, @offset and @maxsize of @mem. - * - * Params: - * offset = pointer to offset - * maxsize = pointer to maxsize - * - * Returns: the current size of @mem - */ - public size_t getSizes(out size_t offset, out size_t maxsize) - { - return gst_memory_get_sizes(gstMemory, &offset, &maxsize); - } - - /** - * Initializes a newly allocated @mem with the given parameters. This function - * will call gst_mini_object_init() with the default memory parameters. - * - * Params: - * flags = #GstMemoryFlags - * allocator = the #GstAllocator - * parent = the parent of @mem - * maxsize = the total size of the memory - * align_ = the alignment of the memory - * offset = The offset in the memory - * size = the size of valid data in the memory - */ - public void init(GstMemoryFlags flags, Allocator allocator, Memory parent, size_t maxsize, size_t align_, size_t offset, size_t size) - { - gst_memory_init(gstMemory, flags, (allocator is null) ? null : allocator.getAllocatorStruct(), (parent is null) ? null : parent.getMemoryStruct(), maxsize, align_, offset, size); - } - - /** - * Check if @mem1 and mem2 share the memory with a common parent memory object - * and that the memory is contiguous. - * - * If this is the case, the memory of @mem1 and @mem2 can be merged - * efficiently by performing gst_memory_share() on the parent object from - * the returned @offset. - * - * Params: - * mem2 = a #GstMemory - * offset = a pointer to a result offset - * - * Returns: %TRUE if the memory is contiguous and of a common parent. - */ - public bool isSpan(Memory mem2, out size_t offset) - { - return gst_memory_is_span(gstMemory, (mem2 is null) ? null : mem2.getMemoryStruct(), &offset) != 0; - } - - /** - * Check if @mem if allocated with an allocator for @mem_type. - * - * Params: - * memType = a memory type - * - * Returns: %TRUE if @mem was allocated from an allocator for @mem_type. - * - * Since: 1.2 - */ - public bool isType(string memType) - { - return gst_memory_is_type(gstMemory, Str.toStringz(memType)) != 0; - } - - /** - * Create a #GstMemory object that is mapped with @flags. If @mem is mappable - * with @flags, this function returns the mapped @mem directly. Otherwise a - * mapped copy of @mem is returned. - * - * This function takes ownership of old @mem and returns a reference to a new - * #GstMemory. - * - * Params: - * info = pointer for info - * flags = mapping flags - * - * Returns: a #GstMemory object mapped - * with @flags or %NULL when a mapping is not possible. - */ - public Memory makeMapped(out GstMapInfo info, GstMapFlags flags) - { - auto __p = gst_memory_make_mapped(gstMemory, &info, flags); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p, true); - } - - /** - * Fill @info with the pointer and sizes of the memory in @mem that can be - * accessed according to @flags. - * - * This function can return %FALSE for various reasons: - * - the memory backed by @mem is not accessible with the given @flags. - * - the memory was already mapped with a different mapping. - * - * @info and its contents remain valid for as long as @mem is valid and - * until gst_memory_unmap() is called. - * - * For each gst_memory_map() call, a corresponding gst_memory_unmap() call - * should be done. - * - * Params: - * info = pointer for info - * flags = mapping flags - * - * Returns: %TRUE if the map operation was successful. - */ - public bool map(out GstMapInfo info, GstMapFlags flags) - { - return gst_memory_map(gstMemory, &info, flags) != 0; - } - - /** - * Resize the memory region. @mem should be writable and offset + size should be - * less than the maxsize of @mem. - * - * #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED will be - * cleared when offset or padding is increased respectively. - * - * Params: - * offset = a new offset - * size = a new size - */ - public void resize(ptrdiff_t offset, size_t size) - { - gst_memory_resize(gstMemory, offset, size); - } - - /** - * Return a shared copy of @size bytes from @mem starting from @offset. No - * memory copy is performed and the memory region is simply shared. The result - * is guaranteed to be non-writable. @size can be set to -1 to return a shared - * copy from @offset to the end of the memory region. - * - * Params: - * offset = offset to share from - * size = size to share, or -1 to share to the end of the memory region - * - * Returns: a new #GstMemory. - */ - public Memory share(ptrdiff_t offset, ptrdiff_t size) - { - auto __p = gst_memory_share(gstMemory, offset, size); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Memory)(cast(GstMemory*) __p, true); - } - - /** - * Release the memory obtained with gst_memory_map() - * - * Params: - * info = a #GstMapInfo - */ - public void unmap(GstMapInfo* info) - { - gst_memory_unmap(gstMemory, info); - } -} diff --git a/generated/gstreamer/gstreamer/Message.d b/generated/gstreamer/gstreamer/Message.d deleted file mode 100644 index 5a100119a..000000000 --- a/generated/gstreamer/gstreamer/Message.d +++ /dev/null @@ -1,2489 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Message; - -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.Clock; -private import gstreamer.Context; -private import gstreamer.Device; -private import gstreamer.Element; -private import gstreamer.ObjectGst; -private import gstreamer.Stream; -private import gstreamer.StreamCollection; -private import gstreamer.Structure; -private import gstreamer.TagList; -private import gstreamer.Toc; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Messages are implemented as a subclass of #GstMiniObject with a generic - * #GstStructure as the content. This allows for writing custom messages without - * requiring an API change while allowing a wide range of different types - * of messages. - * - * Messages are posted by objects in the pipeline and are passed to the - * application using the #GstBus. - * - * The basic use pattern of posting a message on a #GstBus is as follows: - * |[ - * gst_bus_post (bus, gst_message_new_eos()); - * ]| - * - * A #GstElement usually posts messages on the bus provided by the parent - * container using gst_element_post_message(). - */ -public class Message -{ - /** the main Gtk struct */ - protected GstMessage* gstMessage; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMessage* getMessageStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMessage; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMessage; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMessage* gstMessage, bool ownedRef = false) - { - this.gstMessage = gstMessage; - this.ownedRef = ownedRef; - } - - /** - * Get the type of the message. - */ - public GstMessageType type() - { - return cast(GstMessageType)getMessageStruct().type; - } - - /** - * Get the src (the element that originated the message) of the message. - */ - public ObjectGst src() - { - return new ObjectGst( cast(GstObject*)getMessageStruct().src ); - } - - /** - * Create a new element-specific message. This is meant as a generic way of - * allowing one-way communication from an element to an application, for example - * "the firewire cable was unplugged". The format of the message should be - * documented in the element's documentation. The structure field can be NULL. - * MT safe. - * Params: - * src = The object originating the message. - * structure = The structure for the message. The message will take ownership of - * the structure. - * Returns: - * The new element message. - */ - public static Message newElement(ObjectGst src, Structure structure) - { - // GstMessage* gst_message_new_element (GstObject *src, GstStructure *structure); - auto p = gst_message_new_element((src is null) ? null : src.getObjectGstStruct(), (structure is null) ? null : structure.getStructureStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_element"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new clock message. This message is posted whenever the - * pipeline selectes a new clock for the pipeline. - * MT safe. - * Params: - * src = The object originating the message. - * clock = the new selected clock - * Returns: - * The new new clock message. - */ - public static Message newNewClock(ObjectGst src, Clock clock) - { - // GstMessage* gst_message_new_new_clock (GstObject *src, GstClock *clock); - auto p = gst_message_new_new_clock((src is null) ? null : src.getObjectGstStruct(), (clock is null) ? null : clock.getClockStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_new_clock"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new segment done message. This message is posted by elements that - * finish playback of a segment as a result of a segment seek. This message - * is received by the application after all elements that posted a segment_start - * have posted the segment_done. - * MT safe. - * Params: - * src = The object originating the message. - * format = The format of the position being done - * position = The position of the segment being done - * Returns: - * The new segment done message. - */ - public static Message newSegmentDone(ObjectGst src, GstFormat format, long position) - { - // GstMessage* gst_message_new_segment_done (GstObject *src, GstFormat format, gint64 position); - auto p = gst_message_new_segment_done((src is null) ? null : src.getObjectGstStruct(), format, position); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_segment_done"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new segment message. This message is posted by elements that - * start playback of a segment as a result of a segment seek. This message - * is not received by the application but is used for maintenance reasons in - * container elements. - * MT safe. - * Params: - * src = The object originating the message. - * format = The format of the position being played - * position = The position of the segment being played - * Returns: - * The new segment start message. - */ - public static Message newSegmentStart(ObjectGst src, GstFormat format, long position) - { - // GstMessage* gst_message_new_segment_start (GstObject *src, GstFormat format, gint64 position); - auto p = gst_message_new_segment_start((src is null) ? null : src.getObjectGstStruct(), format, position); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_segment_start"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new warning message. The message will make copies of error and - * debug. - * MT safe. - * Params: - * src = The object originating the message. - * error = The GError for this message. - * debug = A debugging string for something or other. - * Returns: - * The new warning message. - */ - public static Message newWarning(ObjectGst src, ErrorG error, string dbug) - { - // GstMessage* gst_message_new_warning (GstObject *src, GError *error, gchar *debug); - auto p = gst_message_new_warning((src is null) ? null : src.getObjectGstStruct(), (error is null) ? null : error.getErrorGStruct(), Str.toStringz(dbug)); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_warning"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a state dirty message. This message is posted whenever an element - * changed its state asynchronously and is used internally to update the - * states of container objects. - * MT safe. - * Params: - * src = the object originating the message - * Returns: - * The new state dirty message. - */ - public static Message newStateDirty(ObjectGst src) - { - // GstMessage* gst_message_new_state_dirty (GstObject *src); - auto p = gst_message_new_state_dirty((src is null) ? null : src.getObjectGstStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_state_dirty"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new eos message. This message is generated and posted in - * the sink elements of a GstBin. The bin will only forward the EOS - * message to the application if all sinks have posted an EOS message. - * MT safe. - * Params: - * src = The object originating the message. - * Returns: - * The new eos message. - */ - public static Message newEOS(ObjectGst src) - { - // GstMessage* gst_message_new_eos (GstObject *src); - auto p = gst_message_new_eos((src is null) ? null : src.getObjectGstStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_eos"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new error message. The message will copy error and - * debug. This message is posted by element when a fatal event - * occured. The pipeline will probably (partially) stop. The application - * receiving this message should stop the pipeline. - * MT safe. - * Params: - * src = The object originating the message. - * error = The GError for this message. - * debug = A debugging string for something or other. - * Returns: - * The new error message. - */ - public static Message newError(ObjectGst src, ErrorG error, string dbug) - { - // GstMessage* gst_message_new_error (GstObject *src, GError *error, gchar *debug); - auto p = gst_message_new_error((src is null) ? null : src.getObjectGstStruct(), (error is null) ? null : error.getErrorGStruct(), Str.toStringz(dbug)); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_error"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new info message. The message will make copies of error and - * debug. - * MT safe. - * Since 0.10.12 - * Params: - * src = The object originating the message. - * error = The GError for this message. - * debug = A debugging string for something or other. - * Returns: - * The new info message. - */ - public static Message newInfo(ObjectGst src, ErrorG error, string dbug) - { - // GstMessage* gst_message_new_info (GstObject *src, GError *error, gchar *debug); - auto p = gst_message_new_info((src is null) ? null : src.getObjectGstStruct(), (error is null) ? null : error.getErrorGStruct(), Str.toStringz(dbug)); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_info"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * This message can be posted by elements when their latency requirements - * have changed. - * Params: - * src = The object originating the message. - * Returns: - * The new latency message. MT safe. - */ - public static Message newLatency(ObjectGst src) - { - // GstMessage* gst_message_new_latency (GstObject *src); - auto p = gst_message_new_latency((src is null) ? null : src.getObjectGstStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_latency"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new duration changed message. This message is posted by elements - * that know the duration of a stream when the duration changes. This message - * is received by bins and is used to calculate the total duration of a - * pipeline. Elements may post a duration message with a duration of - * GST_CLOCK_TIME_NONE to indicate that the duration has changed and the - * cached duration should be discarded. The new duration can then be - * retrieved via a query. - * Params: - * src = The object originating the message. [transfer none] - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newDurationChanged(ObjectGst src) - { - // GstMessage * gst_message_new_duration_changed (GstObject *src); - auto p = gst_message_new_duration_changed((src is null) ? null : src.getObjectGstStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_duration_changed((src is null) ? null : src.getObjectGstStruct())"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * This message is posted by elements when they start an ASYNC state change. - * Params: - * src = The object originating the message. [transfer none] - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newAsyncStart(ObjectGst src) - { - // GstMessage * gst_message_new_async_start (GstObject *src); - auto p = gst_message_new_async_start((src is null) ? null : src.getObjectGstStruct()); - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_async_start((src is null) ? null : src.getObjectGstStruct())"); - } - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * The message is posted when elements completed an ASYNC state change. - * running_time contains the time of the desired running_time when this - * elements goes to PLAYING. A value of GST_CLOCK_TIME_NONE for running_time - * means that the element has no clock interaction and thus doesn't care about - * the running_time of the pipeline. - * Params: - * src = The object originating the message. [transfer none] - * runningTime = the desired running_time - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newAsyncDone(ObjectGst src, GstClockTime runningTime) - { - // GstMessage * gst_message_new_async_done (GstObject *src, GstClockTime running_time); - auto p = gst_message_new_async_done((src is null) ? null : src.getObjectGstStruct(), runningTime); - if(p is null) - { - throw new ConstructionException("null returned by gst_message_new_async_done((src is null) ? null : src.getObjectGstStruct(), runningTime)"); - } - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Creates a new device-added message. The device-added message is produced by - * #GstDeviceProvider or a #GstDeviceMonitor. They announce the appearance - * of monitored devices. - * - * Params: - * src = The #GstObject that created the message - * device = The new #GstDevice - * - * Return: a newly allocated #GstMessage - * - * Since: 1.4 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newDeviceAdded(ObjectGst src, Device device) - { - auto p = gst_message_new_device_added((src is null) ? null : src.getObjectGstStruct(), (device is null) ? null : device.getDeviceStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by new_device_added"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Creates a new device-removed message. The device-removed message is produced - * by #GstDeviceProvider or a #GstDeviceMonitor. They announce the - * disappearance of monitored devices. - * - * Params: - * src = The #GstObject that created the message - * device = The removed #GstDevice - * - * Return: a newly allocated #GstMessage - * - * Since: 1.4 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newDeviceRemoved(ObjectGst src, Device device) - { - auto p = gst_message_new_device_removed((src is null) ? null : src.getObjectGstStruct(), (device is null) ? null : device.getDeviceStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by new_device_removed"); - } - - return new Message(cast(GstMessage*)p); //, true); - } - - /** - * Create a new error message. The message will copy @error and - * @debug. This message is posted by element when a fatal event - * occurred. The pipeline will probably (partially) stop. The application - * receiving this message should stop the pipeline. - * - * Params: - * src = The object originating the message. - * error = The GError for this message. - * dbg = A debugging string. - * details = (allow-none): A GstStructure with details - * - * Return: the new error message. - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newErrorWithDetails(ObjectGst src, ErrorG error, string dbg, Structure details) - { - auto p = gst_message_new_error_with_details((src is null) ? null : src.getObjectGstStruct(), (error is null) ? null : error.getErrorGStruct(), Str.toStringz(dbg), (details is null) ? null : details.getStructureStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by new_error_with_details"); - } - - return new Message(cast(GstMessage*)p, true); - } - - /** - * Create a new info message. The message will make copies of @error and - * @debug. - * - * Params: - * src = The object originating the message. - * error = The GError for this message. - * dbg = A debugging string. - * details = (allow-none): A GstStructure with details - * - * Return: the new warning message. - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newInfoWithDetails(ObjectGst src, ErrorG error, string dbg, Structure details) - { - auto p = gst_message_new_info_with_details((src is null) ? null : src.getObjectGstStruct(), (error is null) ? null : error.getErrorGStruct(), Str.toStringz(dbg), (details is null) ? null : details.getStructureStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by new_info_with_details"); - } - - return new Message(cast(GstMessage*)p, true); - } - - /** - * Create a new warning message. The message will make copies of @error and - * @debug. - * - * Params: - * src = The object originating the message. - * error = The GError for this message. - * dbg = A debugging string. - * details = (allow-none): A GstStructure with details - * - * Return: the new warning message. - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newWarningWithDetails(ObjectGst src, ErrorG error, string dbg, Structure details) - { - auto p = gst_message_new_warning_with_details((src is null) ? null : src.getObjectGstStruct(), (error is null) ? null : error.getErrorGStruct(), Str.toStringz(dbg), (details is null) ? null : details.getStructureStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by new_warning_with_details"); - } - - return new Message(cast(GstMessage*)p, true); - } - - /** - * Creates a new stream-collection message. The message is used to announce new - * #GstStreamCollection - * - * Params: - * src = The #GstObject that created the message - * collection = The #GstStreamCollection - * - * Return: a newly allocated #GstMessage - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newStreamCollection(ObjectGst src, StreamCollection collection) - { - auto p = gst_message_new_stream_collection((src is null) ? null : src.getObjectGstStruct(), (collection is null) ? null : collection.getStreamCollectionStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by new_stream_collection"); - } - - return new Message(cast(GstMessage*)p, true); - } - - /** - * Creates a new steams-selected message. The message is used to announce - * that an array of streams has been selected. This is generally in response - * to a #GST_EVENT_SELECT_STREAMS event, or when an element (such as decodebin3) - * makes an initial selection of streams. - * - * The message also contains the #GstStreamCollection to which the various streams - * belong to. - * - * Users of gst_message_new_streams_selected() can add the selected streams with - * gst_message_streams_selected_add(). - * - * Params: - * src = The #GstObject that created the message - * collection = The #GstStreamCollection - * - * Return: a newly allocated #GstMessage - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Message newStreamsSelected(ObjectGst src, StreamCollection collection) - { - auto p = gst_message_new_streams_selected((src is null) ? null : src.getObjectGstStruct(), (collection is null) ? null : collection.getStreamCollectionStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by new_streams_selected"); - } - - return new Message(cast(GstMessage*)p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_message_get_type(); - } - - /** - * Create a new application-typed message. GStreamer will never create these - * messages; they are a gift from us to you. Enjoy. - * - * Params: - * src = The object originating the message. - * structure = the structure for the message. The message - * will take ownership of the structure. - * - * Returns: The new application message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, Structure structure) - { - auto __p = gst_message_new_application((src is null) ? null : src.getObjectGstStruct(), (structure is null) ? null : structure.getStructureStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_application"); - } - - this(cast(GstMessage*) __p); - } - - /** - * The message is posted when elements completed an ASYNC state change. - * @running_time contains the time of the desired running_time when this - * elements goes to PLAYING. A value of #GST_CLOCK_TIME_NONE for @running_time - * means that the element has no clock interaction and thus doesn't care about - * the running_time of the pipeline. - * - * Params: - * src = The object originating the message. - * runningTime = the desired running_time - * - * Returns: The new async_done message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, GstClockTime runningTime) - { - auto __p = gst_message_new_async_done((src is null) ? null : src.getObjectGstStruct(), runningTime); - - if(__p is null) - { - throw new ConstructionException("null returned by new_async_done"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a new buffering message. This message can be posted by an element that - * needs to buffer data before it can continue processing. @percent should be a - * value between 0 and 100. A value of 100 means that the buffering completed. - * - * When @percent is < 100 the application should PAUSE a PLAYING pipeline. When - * @percent is 100, the application can set the pipeline (back) to PLAYING. - * The application must be prepared to receive BUFFERING messages in the - * PREROLLING state and may only set the pipeline to PLAYING after receiving a - * message with @percent set to 100, which can happen after the pipeline - * completed prerolling. - * - * MT safe. - * - * Params: - * src = The object originating the message. - * percent = The buffering percent - * - * Returns: The new buffering message. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, int percent) - { - auto __p = gst_message_new_buffering((src is null) ? null : src.getObjectGstStruct(), percent); - - if(__p is null) - { - throw new ConstructionException("null returned by new_buffering"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a clock lost message. This message is posted whenever the - * clock is not valid anymore. - * - * If this message is posted by the pipeline, the pipeline will - * select a new clock again when it goes to PLAYING. It might therefore - * be needed to set the pipeline to PAUSED and PLAYING again. - * - * Params: - * src = The object originating the message. - * clock = the clock that was lost - * - * Returns: The new clock lost message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, Clock clock) - { - auto __p = gst_message_new_clock_lost((src is null) ? null : src.getObjectGstStruct(), (clock is null) ? null : clock.getClockStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_clock_lost"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a clock provide message. This message is posted whenever an - * element is ready to provide a clock or lost its ability to provide - * a clock (maybe because it paused or became EOS). - * - * This message is mainly used internally to manage the clock - * selection. - * - * Params: - * src = The object originating the message. - * clock = the clock it provides - * ready = %TRUE if the sender can provide a clock - * - * Returns: the new provide clock message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, Clock clock, bool ready) - { - auto __p = gst_message_new_clock_provide((src is null) ? null : src.getObjectGstStruct(), (clock is null) ? null : clock.getClockStruct(), ready); - - if(__p is null) - { - throw new ConstructionException("null returned by new_clock_provide"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a new custom-typed message. This can be used for anything not - * handled by other message-specific functions to pass a message to the - * app. The structure field can be %NULL. - * - * Params: - * type = The #GstMessageType to distinguish messages - * src = The object originating the message. - * structure = the structure for the - * message. The message will take ownership of the structure. - * - * Returns: The new message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstMessageType type, ObjectGst src, Structure structure) - { - auto __p = gst_message_new_custom(type, (src is null) ? null : src.getObjectGstStruct(), (structure is null) ? null : structure.getStructureStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_custom"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Creates a new device-changed message. The device-changed message is produced - * by #GstDeviceProvider or a #GstDeviceMonitor. They announce that a device - * properties has changed and @device represent the new modified version of @changed_device. - * - * Params: - * src = The #GstObject that created the message - * device = The newly created device representing @replaced_device - * with its new configuration. - * - * Returns: a newly allocated #GstMessage - * - * Since: 1.16 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, Device device, Device changedDevice) - { - auto __p = gst_message_new_device_changed((src is null) ? null : src.getObjectGstStruct(), (device is null) ? null : device.getDeviceStruct(), (changedDevice is null) ? null : changedDevice.getDeviceStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_device_changed"); - } - - this(cast(GstMessage*) __p); - } - - /** - * This message is posted when an element has a new local #GstContext. - * - * Params: - * src = The object originating the message. - * context = the context - * - * Returns: The new have-context message. - * - * MT safe. - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, Context context) - { - auto __p = gst_message_new_have_context((src is null) ? null : src.getObjectGstStruct(), (context is null) ? null : context.getContextStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_have_context"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Creates a new instant-rate-request message. Elements handling the - * instant-rate-change event must post this message. The message is - * handled at the pipeline, and allows the pipeline to select the - * running time when the rate change should happen and to send an - * @GST_EVENT_INSTANT_RATE_SYNC_TIME event to notify the elements - * in the pipeline. - * - * Params: - * src = The #GstObject that posted the message - * rateMultiplier = the rate multiplier factor that should be applied - * - * Returns: a newly allocated #GstMessage - * - * Since: 1.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, double rateMultiplier) - { - auto __p = gst_message_new_instant_rate_request((src is null) ? null : src.getObjectGstStruct(), rateMultiplier); - - if(__p is null) - { - throw new ConstructionException("null returned by new_instant_rate_request"); - } - - this(cast(GstMessage*) __p); - } - - /** - * This message is posted when an element needs a specific #GstContext. - * - * Params: - * src = The object originating the message. - * contextType = The context type that is needed - * - * Returns: The new need-context message. - * - * MT safe. - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, string contextType) - { - auto __p = gst_message_new_need_context((src is null) ? null : src.getObjectGstStruct(), Str.toStringz(contextType)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_need_context"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Progress messages are posted by elements when they use an asynchronous task - * to perform actions triggered by a state change. - * - * @code contains a well defined string describing the action. - * @text should contain a user visible string detailing the current action. - * - * Params: - * src = The object originating the message. - * type = a #GstProgressType - * code = a progress code - * text = free, user visible text describing the progress - * - * Returns: The new qos message. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, GstProgressType type, string code, string text) - { - auto __p = gst_message_new_progress((src is null) ? null : src.getObjectGstStruct(), type, Str.toStringz(code), Str.toStringz(text)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_progress"); - } - - this(cast(GstMessage*) __p); - } - - /** - * - * Params: - * src = The #GstObject whose property changed (may or may not be a #GstElement) - * propertyName = name of the property that changed - * val = new property value, or %NULL - * Returns: a newly allocated #GstMessage - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, string propertyName, Value val) - { - auto __p = gst_message_new_property_notify((src is null) ? null : src.getObjectGstStruct(), Str.toStringz(propertyName), (val is null) ? null : val.getValueStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_property_notify"); - } - - this(cast(GstMessage*) __p); - } - - /** - * A QOS message is posted on the bus whenever an element decides to drop a - * buffer because of QoS reasons or whenever it changes its processing strategy - * because of QoS reasons (quality adjustments such as processing at lower - * accuracy). - * - * This message can be posted by an element that performs synchronisation against the - * clock (live) or it could be dropped by an element that performs QoS because of QOS - * events received from a downstream element (!live). - * - * @running_time, @stream_time, @timestamp, @duration should be set to the - * respective running-time, stream-time, timestamp and duration of the (dropped) - * buffer that generated the QoS event. Values can be left to - * GST_CLOCK_TIME_NONE when unknown. - * - * Params: - * src = The object originating the message. - * live = if the message was generated by a live element - * runningTime = the running time of the buffer that generated the message - * streamTime = the stream time of the buffer that generated the message - * timestamp = the timestamps of the buffer that generated the message - * duration = the duration of the buffer that generated the message - * - * Returns: The new qos message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, bool live, ulong runningTime, ulong streamTime, ulong timestamp, ulong duration) - { - auto __p = gst_message_new_qos((src is null) ? null : src.getObjectGstStruct(), live, runningTime, streamTime, timestamp, duration); - - if(__p is null) - { - throw new ConstructionException("null returned by new_qos"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Creates a new redirect message and adds a new entry to it. Redirect messages - * are posted when an element detects that the actual data has to be retrieved - * from a different location. This is useful if such a redirection cannot be - * handled inside a source element, for example when HTTP 302/303 redirects - * return a non-HTTP URL. - * - * The redirect message can hold multiple entries. The first one is added - * when the redirect message is created, with the given location, tag_list, - * entry_struct arguments. Use gst_message_add_redirect_entry() to add more - * entries. - * - * Each entry has a location, a tag list, and a structure. All of these are - * optional. The tag list and structure are useful for additional metadata, - * such as bitrate statistics for the given location. - * - * By default, message recipients should treat entries in the order they are - * stored. The recipient should therefore try entry \#0 first, and if this - * entry is not acceptable or working, try entry \#1 etc. Senders must make - * sure that they add entries in this order. However, recipients are free to - * ignore the order and pick an entry that is "best" for them. One example - * would be a recipient that scans the entries for the one with the highest - * bitrate tag. - * - * The specified location string is copied. However, ownership over the tag - * list and structure are transferred to the message. - * - * Params: - * src = The #GstObject whose property changed (may or may not be a #GstElement) - * location = location string for the new entry - * tagList = tag list for the new entry - * entryStruct = structure for the new entry - * - * Returns: a newly allocated #GstMessage - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, string location, TagList tagList, Structure entryStruct) - { - auto __p = gst_message_new_redirect((src is null) ? null : src.getObjectGstStruct(), Str.toStringz(location), (tagList is null) ? null : tagList.getTagListStruct(), (entryStruct is null) ? null : entryStruct.getStructureStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_redirect"); - } - - this(cast(GstMessage*) __p); - } - - /** - * This message can be posted by elements when they want to have their state - * changed. A typical use case would be an audio server that wants to pause the - * pipeline because a higher priority stream is being played. - * - * Params: - * src = The object originating the message. - * state = The new requested state - * - * Returns: the new request state message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, GstState state) - { - auto __p = gst_message_new_request_state((src is null) ? null : src.getObjectGstStruct(), state); - - if(__p is null) - { - throw new ConstructionException("null returned by new_request_state"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a state change message. This message is posted whenever an element - * changed its state. - * - * Params: - * src = The object originating the message. - * oldstate = the previous state - * newstate = the new (current) state - * pending = the pending (target) state - * - * Returns: the new state change message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, GstState oldstate, GstState newstate, GstState pending) - { - auto __p = gst_message_new_state_changed((src is null) ? null : src.getObjectGstStruct(), oldstate, newstate, pending); - - if(__p is null) - { - throw new ConstructionException("null returned by new_state_changed"); - } - - this(cast(GstMessage*) __p); - } - - /** - * This message is posted by elements when they complete a part, when @intermediate set - * to %TRUE, or a complete step operation. - * - * @duration will contain the amount of time (in GST_FORMAT_TIME) of the stepped - * @amount of media in format @format. - * - * Params: - * src = The object originating the message. - * format = the format of @amount - * amount = the amount of stepped data - * rate = the rate of the stepped amount - * flush = is this an flushing step - * intermediate = is this an intermediate step - * duration = the duration of the data - * eos = the step caused EOS - * - * Returns: the new step_done message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, GstFormat format, ulong amount, double rate, bool flush, bool intermediate, ulong duration, bool eos) - { - auto __p = gst_message_new_step_done((src is null) ? null : src.getObjectGstStruct(), format, amount, rate, flush, intermediate, duration, eos); - - if(__p is null) - { - throw new ConstructionException("null returned by new_step_done"); - } - - this(cast(GstMessage*) __p); - } - - /** - * This message is posted by elements when they accept or activate a new step - * event for @amount in @format. - * - * @active is set to %FALSE when the element accepted the new step event and has - * queued it for execution in the streaming threads. - * - * @active is set to %TRUE when the element has activated the step operation and - * is now ready to start executing the step in the streaming thread. After this - * message is emitted, the application can queue a new step operation in the - * element. - * - * Params: - * src = The object originating the message. - * active = if the step is active or queued - * format = the format of @amount - * amount = the amount of stepped data - * rate = the rate of the stepped amount - * flush = is this an flushing step - * intermediate = is this an intermediate step - * - * Returns: The new step_start message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, bool active, GstFormat format, ulong amount, double rate, bool flush, bool intermediate) - { - auto __p = gst_message_new_step_start((src is null) ? null : src.getObjectGstStruct(), active, format, amount, rate, flush, intermediate); - - if(__p is null) - { - throw new ConstructionException("null returned by new_step_start"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a new stream_start message. This message is generated and posted in - * the sink elements of a GstBin. The bin will only forward the STREAM_START - * message to the application if all sinks have posted an STREAM_START message. - * - * Params: - * src = The object originating the message. - * - * Returns: The new stream_start message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src) - { - auto __p = gst_message_new_stream_start((src is null) ? null : src.getObjectGstStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_stream_start"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a new stream status message. This message is posted when a streaming - * thread is created/destroyed or when the state changed. - * - * Params: - * src = The object originating the message. - * type = The stream status type. - * owner = the owner element of @src. - * - * Returns: the new stream status message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, GstStreamStatusType type, Element owner) - { - auto __p = gst_message_new_stream_status((src is null) ? null : src.getObjectGstStruct(), type, (owner is null) ? null : owner.getElementStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_stream_status"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a new structure change message. This message is posted when the - * structure of a pipeline is in the process of being changed, for example - * when pads are linked or unlinked. - * - * @src should be the sinkpad that unlinked or linked. - * - * Params: - * src = The object originating the message. - * type = The change type. - * owner = The owner element of @src. - * busy = Whether the structure change is busy. - * - * Returns: the new structure change message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, GstStructureChangeType type, Element owner, bool busy) - { - auto __p = gst_message_new_structure_change((src is null) ? null : src.getObjectGstStruct(), type, (owner is null) ? null : owner.getElementStruct(), busy); - - if(__p is null) - { - throw new ConstructionException("null returned by new_structure_change"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a new tag message. The message will take ownership of the tag list. - * The message is posted by elements that discovered a new taglist. - * - * Params: - * src = The object originating the message. - * tagList = the tag list for the message. - * - * Returns: the new tag message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, TagList tagList) - { - auto __p = gst_message_new_tag((src is null) ? null : src.getObjectGstStruct(), (tagList is null) ? null : tagList.getTagListStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_tag"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Create a new TOC message. The message is posted by elements - * that discovered or updated a TOC. - * - * Params: - * src = the object originating the message. - * toc = #GstToc structure for the message. - * updated = whether TOC was updated or not. - * - * Returns: a new TOC message. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectGst src, Toc toc, bool updated) - { - auto __p = gst_message_new_toc((src is null) ? null : src.getObjectGstStruct(), (toc is null) ? null : toc.getTocStruct(), updated); - - if(__p is null) - { - throw new ConstructionException("null returned by new_toc"); - } - - this(cast(GstMessage*) __p); - } - - /** - * Creates and appends a new entry. - * - * The specified location string is copied. However, ownership over the tag - * list and structure are transferred to the message. - * - * Params: - * location = location string for the new entry - * tagList = tag list for the new entry - * entryStruct = structure for the new entry - * - * Since: 1.10 - */ - public void addRedirectEntry(string location, TagList tagList, Structure entryStruct) - { - gst_message_add_redirect_entry(gstMessage, Str.toStringz(location), (tagList is null) ? null : tagList.getTagListStruct(), (entryStruct is null) ? null : entryStruct.getStructureStruct(true)); - } - - /** - * Creates a copy of the message. Returns a copy of the message. - * - * Returns: a new copy of @msg. - * - * MT safe - */ - public Message copy() - { - auto __p = gst_message_copy(gstMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Message)(cast(GstMessage*) __p, true); - } - - /** - * Returns: the number of entries stored in the message - * - * Since: 1.10 - */ - public size_t getNumRedirectEntries() - { - return gst_message_get_num_redirect_entries(gstMessage); - } - - /** - * Retrieve the sequence number of a message. - * - * Messages have ever-incrementing sequence numbers, which may also be set - * explicitly via gst_message_set_seqnum(). Sequence numbers are typically used - * to indicate that a message corresponds to some other set of messages or - * events, for example a SEGMENT_DONE message corresponding to a SEEK event. It - * is considered good practice to make this correspondence when possible, though - * it is not required. - * - * Note that events and messages share the same sequence number incrementor; - * two events or messages will never have the same sequence number unless - * that correspondence was made explicitly. - * - * Returns: The message's sequence number. - * - * MT safe. - */ - public uint getSeqnum() - { - return gst_message_get_seqnum(gstMessage); - } - - /** - * Extracts the object managing the streaming thread from @message. - * - * Returns: a GValue containing the object that manages the - * streaming thread. This object is usually of type GstTask but other types can - * be added in the future. The object remains valid as long as @message is - * valid. - */ - public Value getStreamStatusObject() - { - auto __p = gst_message_get_stream_status_object(gstMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Access the structure of the message. - * - * Returns: The structure of the message. The - * structure is still owned by the message, which means that you should not - * free it and that the pointer becomes invalid when you free the message. - * - * MT safe. - */ - public Structure getStructure() - { - auto __p = gst_message_get_structure(gstMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Checks if @message has the given @name. This function is usually used to - * check the name of a custom message. - * - * Params: - * name = name to check - * - * Returns: %TRUE if @name matches the name of the message structure. - */ - public bool hasName(string name) - { - return gst_message_has_name(gstMessage, Str.toStringz(name)) != 0; - } - - /** - * Extract the running_time from the async_done message. - * - * MT safe. - * - * Params: - * runningTime = Result location for the running_time or %NULL - */ - public void parseAsyncDone(out GstClockTime runningTime) - { - gst_message_parse_async_done(gstMessage, &runningTime); - } - - /** - * Extracts the buffering percent from the GstMessage. see also - * gst_message_new_buffering(). - * - * MT safe. - * - * Params: - * percent = Return location for the percent. - */ - public void parseBuffering(out int percent) - { - gst_message_parse_buffering(gstMessage, &percent); - } - - /** - * Extracts the buffering stats values from @message. - * - * Params: - * mode = a buffering mode, or %NULL - * avgIn = the average input rate, or %NULL - * avgOut = the average output rate, or %NULL - * bufferingLeft = amount of buffering time left in - * milliseconds, or %NULL - */ - public void parseBufferingStats(out GstBufferingMode mode, out int avgIn, out int avgOut, out long bufferingLeft) - { - gst_message_parse_buffering_stats(gstMessage, &mode, &avgIn, &avgOut, &bufferingLeft); - } - - /** - * Extracts the lost clock from the GstMessage. - * The clock object returned remains valid until the message is freed. - * - * MT safe. - * - * Params: - * clock = a pointer to hold the lost clock - */ - public void parseClockLost(out Clock clock) - { - GstClock* outclock = null; - - gst_message_parse_clock_lost(gstMessage, &outclock); - - clock = ObjectG.getDObject!(Clock)(outclock); - } - - /** - * Extracts the clock and ready flag from the GstMessage. - * The clock object returned remains valid until the message is freed. - * - * MT safe. - * - * Params: - * clock = a pointer to hold a clock - * object, or %NULL - * ready = a pointer to hold the ready flag, or %NULL - */ - public void parseClockProvide(out Clock clock, out bool ready) - { - GstClock* outclock = null; - int outready; - - gst_message_parse_clock_provide(gstMessage, &outclock, &outready); - - clock = ObjectG.getDObject!(Clock)(outclock); - ready = (outready == 1); - } - - /** - * Parse a context type from an existing GST_MESSAGE_NEED_CONTEXT message. - * - * Params: - * contextType = the context type, or %NULL - * - * Returns: a #gboolean indicating if the parsing succeeded. - * - * Since: 1.2 - */ - public bool parseContextType(out string contextType) - { - char* outcontextType = null; - - auto __p = gst_message_parse_context_type(gstMessage, &outcontextType) != 0; - - contextType = Str.toString(outcontextType); - - return __p; - } - - /** - * Parses a device-added message. The device-added message is produced by - * #GstDeviceProvider or a #GstDeviceMonitor. It announces the appearance - * of monitored devices. - * - * Params: - * device = A location where to store a - * pointer to the new #GstDevice, or %NULL - * - * Since: 1.4 - */ - public void parseDeviceAdded(out Device device) - { - GstDevice* outdevice = null; - - gst_message_parse_device_added(gstMessage, &outdevice); - - device = ObjectG.getDObject!(Device)(outdevice); - } - - /** - * Parses a device-changed message. The device-changed message is produced by - * #GstDeviceProvider or a #GstDeviceMonitor. It announces the - * disappearance of monitored devices. * It announce that a device properties has - * changed and @device represents the new modified version of @changed_device. - * - * Params: - * device = A location where to store a - * pointer to the updated version of the #GstDevice, or %NULL - * changedDevice = A location where to store a - * pointer to the old version of the #GstDevice, or %NULL - * - * Since: 1.16 - */ - public void parseDeviceChanged(out Device device, out Device changedDevice) - { - GstDevice* outdevice = null; - GstDevice* outchangedDevice = null; - - gst_message_parse_device_changed(gstMessage, &outdevice, &outchangedDevice); - - device = ObjectG.getDObject!(Device)(outdevice); - changedDevice = ObjectG.getDObject!(Device)(outchangedDevice); - } - - /** - * Parses a device-removed message. The device-removed message is produced by - * #GstDeviceProvider or a #GstDeviceMonitor. It announces the - * disappearance of monitored devices. - * - * Params: - * device = A location where to store a - * pointer to the removed #GstDevice, or %NULL - * - * Since: 1.4 - */ - public void parseDeviceRemoved(out Device device) - { - GstDevice* outdevice = null; - - gst_message_parse_device_removed(gstMessage, &outdevice); - - device = ObjectG.getDObject!(Device)(outdevice); - } - - /** - * Extracts the GError and debug string from the GstMessage. The values returned - * in the output arguments are copies; the caller must free them when done. - * - * Typical usage of this function might be: - * |[ - * ... - * switch (GST_MESSAGE_TYPE (msg)) { - * case GST_MESSAGE_ERROR: { - * GError *err = NULL; - * gchar *dbg_info = NULL; - * - * gst_message_parse_error (msg, &err, &dbg_info); - * g_printerr ("ERROR from element %s: %s\n", - * GST_OBJECT_NAME (msg->src), err->message); - * g_printerr ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none"); - * g_error_free (err); - * g_free (dbg_info); - * break; - * } - * ... - * } - * ... - * ]| - * - * MT safe. - * - * Params: - * gerror = location for the GError - * debug_ = location for the debug message, - * or %NULL - */ - public void parseError(out ErrorG gerror, out string debug_) - { - GError* outgerror = null; - char* outdebug_ = null; - - gst_message_parse_error(gstMessage, &outgerror, &outdebug_); - - gerror = new ErrorG(outgerror); - debug_ = Str.toString(outdebug_); - } - - /** - * Returns the optional details structure, may be NULL if none. - * The returned structure must not be freed. - * - * Params: - * structure = A pointer to the returned details - * - * Since: 1.10 - */ - public void parseErrorDetails(out Structure structure) - { - GstStructure* outstructure = null; - - gst_message_parse_error_details(gstMessage, &outstructure); - - structure = ObjectG.getDObject!(Structure)(outstructure); - } - - /** - * Extract the group from the STREAM_START message. - * - * Params: - * groupId = Result location for the group id or - * %NULL - * - * Returns: %TRUE if the message had a group id set, %FALSE otherwise - * - * MT safe. - * - * Since: 1.2 - */ - public bool parseGroupId(out uint groupId) - { - return gst_message_parse_group_id(gstMessage, &groupId) != 0; - } - - /** - * Extract the context from the HAVE_CONTEXT message. - * - * MT safe. - * - * Params: - * context = Result location for the - * context or %NULL - * - * Since: 1.2 - */ - public void parseHaveContext(out Context context) - { - GstContext* outcontext = null; - - gst_message_parse_have_context(gstMessage, &outcontext); - - context = ObjectG.getDObject!(Context)(outcontext); - } - - /** - * Extracts the GError and debug string from the GstMessage. The values returned - * in the output arguments are copies; the caller must free them when done. - * - * MT safe. - * - * Params: - * gerror = location for the GError - * debug_ = location for the debug message, - * or %NULL - */ - public void parseInfo(out ErrorG gerror, out string debug_) - { - GError* outgerror = null; - char* outdebug_ = null; - - gst_message_parse_info(gstMessage, &outgerror, &outdebug_); - - gerror = new ErrorG(outgerror); - debug_ = Str.toString(outdebug_); - } - - /** - * Returns the optional details structure, may be NULL if none - * The returned structure must not be freed. - * - * Params: - * structure = A pointer to the returned details structure - * - * Since: 1.10 - */ - public void parseInfoDetails(out Structure structure) - { - GstStructure* outstructure = null; - - gst_message_parse_info_details(gstMessage, &outstructure); - - structure = ObjectG.getDObject!(Structure)(outstructure); - } - - /** - * Parses the rate_multiplier from the instant-rate-request message. - * - * Params: - * rateMultiplier = return location for the rate, or %NULL - * - * Since: 1.18 - */ - public void parseInstantRateRequest(out double rateMultiplier) - { - gst_message_parse_instant_rate_request(gstMessage, &rateMultiplier); - } - - /** - * Extracts the new clock from the GstMessage. - * The clock object returned remains valid until the message is freed. - * - * MT safe. - * - * Params: - * clock = a pointer to hold the selected - * new clock - */ - public void parseNewClock(out Clock clock) - { - GstClock* outclock = null; - - gst_message_parse_new_clock(gstMessage, &outclock); - - clock = ObjectG.getDObject!(Clock)(outclock); - } - - /** - * Parses the progress @type, @code and @text. - * - * Params: - * type = location for the type - * code = location for the code - * text = location for the text - */ - public void parseProgress(out GstProgressType type, out string code, out string text) - { - char* outcode = null; - char* outtext = null; - - gst_message_parse_progress(gstMessage, &type, &outcode, &outtext); - - code = Str.toString(outcode); - text = Str.toString(outtext); - } - - /** - * Parses a property-notify message. These will be posted on the bus only - * when set up with gst_element_add_property_notify_watch() or - * gst_element_add_property_deep_notify_watch(). - * - * Params: - * object = location where to store a - * pointer to the object whose property got changed, or %NULL - * propertyName = return location for - * the name of the property that got changed, or %NULL - * propertyValue = return location for - * the new value of the property that got changed, or %NULL. This will - * only be set if the property notify watch was told to include the value - * when it was set up - * - * Since: 1.10 - */ - public void parsePropertyNotify(out ObjectGst object, out string propertyName, out Value propertyValue) - { - GstObject* outobject = null; - char* outpropertyName = null; - GValue* outpropertyValue = null; - - gst_message_parse_property_notify(gstMessage, &outobject, &outpropertyName, &outpropertyValue); - - object = ObjectG.getDObject!(ObjectGst)(outobject); - propertyName = Str.toString(outpropertyName); - propertyValue = ObjectG.getDObject!(Value)(outpropertyValue); - } - - /** - * Extract the timestamps and live status from the QoS message. - * - * The returned values give the running_time, stream_time, timestamp and - * duration of the dropped buffer. Values of GST_CLOCK_TIME_NONE mean unknown - * values. - * - * MT safe. - * - * Params: - * live = if the message was generated by a live element - * runningTime = the running time of the buffer that - * generated the message - * streamTime = the stream time of the buffer that - * generated the message - * timestamp = the timestamps of the buffer that - * generated the message - * duration = the duration of the buffer that - * generated the message - */ - public void parseQos(out bool live, out ulong runningTime, out ulong streamTime, out ulong timestamp, out ulong duration) - { - int outlive; - - gst_message_parse_qos(gstMessage, &outlive, &runningTime, &streamTime, ×tamp, &duration); - - live = (outlive == 1); - } - - /** - * Extract the QoS stats representing the history of the current continuous - * pipeline playback period. - * - * When @format is @GST_FORMAT_UNDEFINED both @dropped and @processed are - * invalid. Values of -1 for either @processed or @dropped mean unknown values. - * - * MT safe. - * - * Params: - * format = Units of the 'processed' and 'dropped' fields. - * Video sinks and video filters will use GST_FORMAT_BUFFERS (frames). - * Audio sinks and audio filters will likely use GST_FORMAT_DEFAULT - * (samples). - * processed = Total number of units correctly processed - * since the last state change to READY or a flushing operation. - * dropped = Total number of units dropped since the last - * state change to READY or a flushing operation. - */ - public void parseQosStats(out GstFormat format, out ulong processed, out ulong dropped) - { - gst_message_parse_qos_stats(gstMessage, &format, &processed, &dropped); - } - - /** - * Extract the QoS values that have been calculated/analysed from the QoS data - * - * MT safe. - * - * Params: - * jitter = The difference of the running-time against - * the deadline. - * proportion = Long term prediction of the ideal rate - * relative to normal rate to get optimal quality. - * quality = An element dependent integer value that - * specifies the current quality level of the element. The default - * maximum quality is 1000000. - */ - public void parseQosValues(out long jitter, out double proportion, out int quality) - { - gst_message_parse_qos_values(gstMessage, &jitter, &proportion, &quality); - } - - /** - * Parses the location and/or structure from the entry with the given index. - * The index must be between 0 and gst_message_get_num_redirect_entries() - 1. - * Returned pointers are valid for as long as this message exists. - * - * Params: - * entryIndex = index of the entry to parse - * location = return location for - * the pointer to the entry's location string, or %NULL - * tagList = return location for - * the pointer to the entry's tag list, or %NULL - * entryStruct = return location - * for the pointer to the entry's structure, or %NULL - * - * Since: 1.10 - */ - public void parseRedirectEntry(size_t entryIndex, out string location, out TagList tagList, out Structure entryStruct) - { - char* outlocation = null; - GstTagList* outtagList = null; - GstStructure* outentryStruct = null; - - gst_message_parse_redirect_entry(gstMessage, entryIndex, &outlocation, &outtagList, &outentryStruct); - - location = Str.toString(outlocation); - tagList = ObjectG.getDObject!(TagList)(outtagList); - entryStruct = ObjectG.getDObject!(Structure)(outentryStruct); - } - - /** - * Extract the requested state from the request_state message. - * - * MT safe. - * - * Params: - * state = Result location for the requested state or %NULL - */ - public void parseRequestState(out GstState state) - { - gst_message_parse_request_state(gstMessage, &state); - } - - /** - * Extract the running-time from the RESET_TIME message. - * - * MT safe. - * - * Params: - * runningTime = Result location for the running_time or - * %NULL - */ - public void parseResetTime(out GstClockTime runningTime) - { - gst_message_parse_reset_time(gstMessage, &runningTime); - } - - /** - * Extracts the position and format from the segment done message. - * - * MT safe. - * - * Params: - * format = Result location for the format, or %NULL - * position = Result location for the position, or %NULL - */ - public void parseSegmentDone(out GstFormat format, out long position) - { - gst_message_parse_segment_done(gstMessage, &format, &position); - } - - /** - * Extracts the position and format from the segment start message. - * - * MT safe. - * - * Params: - * format = Result location for the format, or %NULL - * position = Result location for the position, or %NULL - */ - public void parseSegmentStart(out GstFormat format, out long position) - { - gst_message_parse_segment_start(gstMessage, &format, &position); - } - - /** - * Extracts the old and new states from the GstMessage. - * - * Typical usage of this function might be: - * |[ - * ... - * switch (GST_MESSAGE_TYPE (msg)) { - * case GST_MESSAGE_STATE_CHANGED: { - * GstState old_state, new_state; - * - * gst_message_parse_state_changed (msg, &old_state, &new_state, NULL); - * g_print ("Element %s changed state from %s to %s.\n", - * GST_OBJECT_NAME (msg->src), - * gst_element_state_get_name (old_state), - * gst_element_state_get_name (new_state)); - * break; - * } - * ... - * } - * ... - * ]| - * - * MT safe. - * - * Params: - * oldstate = the previous state, or %NULL - * newstate = the new (current) state, or %NULL - * pending = the pending (target) state, or %NULL - */ - public void parseStateChanged(out GstState oldstate, out GstState newstate, out GstState pending) - { - gst_message_parse_state_changed(gstMessage, &oldstate, &newstate, &pending); - } - - /** - * Extract the values the step_done message. - * - * MT safe. - * - * Params: - * format = result location for the format - * amount = result location for the amount - * rate = result location for the rate - * flush = result location for the flush flag - * intermediate = result location for the intermediate flag - * duration = result location for the duration - * eos = result location for the EOS flag - */ - public void parseStepDone(out GstFormat format, out ulong amount, out double rate, out bool flush, out bool intermediate, out ulong duration, out bool eos) - { - int outflush; - int outintermediate; - int outeos; - - gst_message_parse_step_done(gstMessage, &format, &amount, &rate, &outflush, &outintermediate, &duration, &outeos); - - flush = (outflush == 1); - intermediate = (outintermediate == 1); - eos = (outeos == 1); - } - - /** - * Extract the values from step_start message. - * - * MT safe. - * - * Params: - * active = result location for the active flag - * format = result location for the format - * amount = result location for the amount - * rate = result location for the rate - * flush = result location for the flush flag - * intermediate = result location for the intermediate flag - */ - public void parseStepStart(out bool active, out GstFormat format, out ulong amount, out double rate, out bool flush, out bool intermediate) - { - int outactive; - int outflush; - int outintermediate; - - gst_message_parse_step_start(gstMessage, &outactive, &format, &amount, &rate, &outflush, &outintermediate); - - active = (outactive == 1); - flush = (outflush == 1); - intermediate = (outintermediate == 1); - } - - /** - * Parses a stream-collection message. - * - * Params: - * collection = A location where to store a - * pointer to the #GstStreamCollection, or %NULL - * - * Since: 1.10 - */ - public void parseStreamCollection(out StreamCollection collection) - { - GstStreamCollection* outcollection = null; - - gst_message_parse_stream_collection(gstMessage, &outcollection); - - collection = ObjectG.getDObject!(StreamCollection)(outcollection); - } - - /** - * Extracts the stream status type and owner the GstMessage. The returned - * owner remains valid for as long as the reference to @message is valid and - * should thus not be unreffed. - * - * MT safe. - * - * Params: - * type = A pointer to hold the status type - * owner = The owner element of the message source - */ - public void parseStreamStatus(out GstStreamStatusType type, out Element owner) - { - GstElement* outowner = null; - - gst_message_parse_stream_status(gstMessage, &type, &outowner); - - owner = ObjectG.getDObject!(Element)(outowner); - } - - /** - * Parses a streams-selected message. - * - * Params: - * collection = A location where to store a - * pointer to the #GstStreamCollection, or %NULL - * - * Since: 1.10 - */ - public void parseStreamsSelected(out StreamCollection collection) - { - GstStreamCollection* outcollection = null; - - gst_message_parse_streams_selected(gstMessage, &outcollection); - - collection = ObjectG.getDObject!(StreamCollection)(outcollection); - } - - /** - * Extracts the change type and completion status from the GstMessage. - * - * MT safe. - * - * Params: - * type = A pointer to hold the change type - * owner = The owner element of the - * message source - * busy = a pointer to hold whether the change is in - * progress or has been completed - */ - public void parseStructureChange(out GstStructureChangeType type, out Element owner, out bool busy) - { - GstElement* outowner = null; - int outbusy; - - gst_message_parse_structure_change(gstMessage, &type, &outowner, &outbusy); - - owner = ObjectG.getDObject!(Element)(outowner); - busy = (outbusy == 1); - } - - /** - * Extracts the tag list from the GstMessage. The tag list returned in the - * output argument is a copy; the caller must free it when done. - * - * Typical usage of this function might be: - * |[ - * ... - * switch (GST_MESSAGE_TYPE (msg)) { - * case GST_MESSAGE_TAG: { - * GstTagList *tags = NULL; - * - * gst_message_parse_tag (msg, &tags); - * g_print ("Got tags from element %s\n", GST_OBJECT_NAME (msg->src)); - * handle_tags (tags); - * gst_tag_list_unref (tags); - * break; - * } - * ... - * } - * ... - * ]| - * - * MT safe. - * - * Params: - * tagList = return location for the tag-list. - */ - public void parseTag(out TagList tagList) - { - GstTagList* outtagList = null; - - gst_message_parse_tag(gstMessage, &outtagList); - - tagList = ObjectG.getDObject!(TagList)(outtagList); - } - - /** - * Extract the TOC from the #GstMessage. The TOC returned in the - * output argument is a copy; the caller must free it with - * gst_toc_unref() when done. - * - * MT safe. - * - * Params: - * toc = return location for the TOC. - * updated = return location for the updated flag. - */ - public void parseToc(out Toc toc, out bool updated) - { - GstToc* outtoc = null; - int outupdated; - - gst_message_parse_toc(gstMessage, &outtoc, &outupdated); - - toc = ObjectG.getDObject!(Toc)(outtoc); - updated = (outupdated == 1); - } - - /** - * Extracts the GError and debug string from the GstMessage. The values returned - * in the output arguments are copies; the caller must free them when done. - * - * MT safe. - * - * Params: - * gerror = location for the GError - * debug_ = location for the debug message, - * or %NULL - */ - public void parseWarning(out ErrorG gerror, out string debug_) - { - GError* outgerror = null; - char* outdebug_ = null; - - gst_message_parse_warning(gstMessage, &outgerror, &outdebug_); - - gerror = new ErrorG(outgerror); - debug_ = Str.toString(outdebug_); - } - - /** - * Returns the optional details structure, may be NULL if none - * The returned structure must not be freed. - * - * Params: - * structure = A pointer to the returned details structure - * - * Since: 1.10 - */ - public void parseWarningDetails(out Structure structure) - { - GstStructure* outstructure = null; - - gst_message_parse_warning_details(gstMessage, &outstructure); - - structure = ObjectG.getDObject!(Structure)(outstructure); - } - - /** - * Configures the buffering stats values in @message. - * - * Params: - * mode = a buffering mode - * avgIn = the average input rate - * avgOut = the average output rate - * bufferingLeft = amount of buffering time left in milliseconds - */ - public void setBufferingStats(GstBufferingMode mode, int avgIn, int avgOut, long bufferingLeft) - { - gst_message_set_buffering_stats(gstMessage, mode, avgIn, avgOut, bufferingLeft); - } - - /** - * Sets the group id on the stream-start message. - * - * All streams that have the same group id are supposed to be played - * together, i.e. all streams inside a container file should have the - * same group id but different stream ids. The group id should change - * each time the stream is started, resulting in different group ids - * each time a file is played for example. - * - * MT safe. - * - * Params: - * groupId = the group id - * - * Since: 1.2 - */ - public void setGroupId(uint groupId) - { - gst_message_set_group_id(gstMessage, groupId); - } - - /** - * Set the QoS stats representing the history of the current continuous pipeline - * playback period. - * - * When @format is @GST_FORMAT_UNDEFINED both @dropped and @processed are - * invalid. Values of -1 for either @processed or @dropped mean unknown values. - * - * MT safe. - * - * Params: - * format = Units of the 'processed' and 'dropped' fields. Video sinks and video - * filters will use GST_FORMAT_BUFFERS (frames). Audio sinks and audio filters - * will likely use GST_FORMAT_DEFAULT (samples). - * processed = Total number of units correctly processed since the last state - * change to READY or a flushing operation. - * dropped = Total number of units dropped since the last state change to READY - * or a flushing operation. - */ - public void setQosStats(GstFormat format, ulong processed, ulong dropped) - { - gst_message_set_qos_stats(gstMessage, format, processed, dropped); - } - - /** - * Set the QoS values that have been calculated/analysed from the QoS data - * - * MT safe. - * - * Params: - * jitter = The difference of the running-time against the deadline. - * proportion = Long term prediction of the ideal rate relative to normal rate - * to get optimal quality. - * quality = An element dependent integer value that specifies the current - * quality level of the element. The default maximum quality is 1000000. - */ - public void setQosValues(long jitter, double proportion, int quality) - { - gst_message_set_qos_values(gstMessage, jitter, proportion, quality); - } - - /** - * Set the sequence number of a message. - * - * This function might be called by the creator of a message to indicate that - * the message relates to other messages or events. See gst_message_get_seqnum() - * for more information. - * - * MT safe. - * - * Params: - * seqnum = A sequence number. - */ - public void setSeqnum(uint seqnum) - { - gst_message_set_seqnum(gstMessage, seqnum); - } - - /** - * Configures the object handling the streaming thread. This is usually a - * GstTask object but other objects might be added in the future. - * - * Params: - * object = the object controlling the streaming - */ - public void setStreamStatusObject(Value object) - { - gst_message_set_stream_status_object(gstMessage, (object is null) ? null : object.getValueStruct()); - } - - /** - * Adds the @stream to the @message. - * - * Params: - * stream = a #GstStream to add to @message - * - * Since: 1.10 - */ - public void streamsSelectedAdd(Stream stream) - { - gst_message_streams_selected_add(gstMessage, (stream is null) ? null : stream.getStreamStruct()); - } - - /** - * Returns the number of streams contained in the @message. - * - * Returns: The number of streams contained within. - * - * Since: 1.10 - */ - public uint streamsSelectedGetSize() - { - return gst_message_streams_selected_get_size(gstMessage); - } - - /** - * Retrieves the #GstStream with index @index from the @message. - * - * Params: - * idx = Index of the stream to retrieve - * - * Returns: A #GstStream - * - * Since: 1.10 - */ - public Stream streamsSelectedGetStream(uint idx) - { - auto __p = gst_message_streams_selected_get_stream(gstMessage, idx); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Stream)(cast(GstStream*) __p, true); - } - - /** - * Get a writable version of the structure. - * - * Returns: The structure of the message. The structure - * is still owned by the message, which means that you should not free - * it and that the pointer becomes invalid when you free the message. - * This function checks if @message is writable and will never return - * %NULL. - * - * MT safe. - * - * Since: 1.14 - */ - public Structure writableStructure() - { - auto __p = gst_message_writable_structure(gstMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Modifies a pointer to a #GstMessage to point to a different #GstMessage. The - * modification is done atomically (so this is useful for ensuring thread safety - * in some cases), and the reference counts are updated appropriately (the old - * message is unreffed, the new one is reffed). - * - * Either @new_message or the #GstMessage pointed to by @old_message may be %NULL. - * - * Params: - * oldMessage = pointer to a - * pointer to a #GstMessage to be replaced. - * newMessage = pointer to a #GstMessage that will - * replace the message pointed to by @old_message. - * - * Returns: %TRUE if @new_message was different from @old_message - */ - public static bool replace(ref Message oldMessage, Message newMessage) - { - GstMessage* outoldMessage = oldMessage.getMessageStruct(); - - auto __p = gst_message_replace(&outoldMessage, (newMessage is null) ? null : newMessage.getMessageStruct()) != 0; - - oldMessage = ObjectG.getDObject!(Message)(outoldMessage); - - return __p; - } - - /** - * Get a printable name for the given message type. Do not modify or free. - * - * Params: - * type = the message type - * - * Returns: a reference to the static name of the message. - */ - public static string typeGetName(GstMessageType type) - { - return Str.toString(gst_message_type_get_name(type)); - } - - /** - * Get the unique quark for the given message type. - * - * Params: - * type = the message type - * - * Returns: the quark associated with the message type - */ - public static GQuark typeToQuark(GstMessageType type) - { - return gst_message_type_to_quark(type); - } -} diff --git a/generated/gstreamer/gstreamer/Meta.d b/generated/gstreamer/gstreamer/Meta.d deleted file mode 100644 index fe2fb2faa..000000000 --- a/generated/gstreamer/gstreamer/Meta.d +++ /dev/null @@ -1,226 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Meta; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * The #GstMeta structure should be included as the first member of a #GstBuffer - * metadata structure. The structure defines the API of the metadata and should - * be accessible to all elements using the metadata. - * - * A metadata API is registered with gst_meta_api_type_register() which takes a - * name for the metadata API and some tags associated with the metadata. - * With gst_meta_api_type_has_tag() one can check if a certain metadata API - * contains a given tag. - * - * Multiple implementations of a metadata API can be registered. - * To implement a metadata API, gst_meta_register() should be used. This - * function takes all parameters needed to create, free and transform metadata - * along with the size of the metadata. The function returns a #GstMetaInfo - * structure that contains the information for the implementation of the API. - * - * A specific implementation can be retrieved by name with gst_meta_get_info(). - * - * See #GstBuffer for how the metadata can be added, retrieved and removed from - * buffers. - */ -public final class Meta -{ - /** the main Gtk struct */ - protected GstMeta* gstMeta; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMeta* getMetaStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMeta; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMeta; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMeta* gstMeta, bool ownedRef = false) - { - this.gstMeta = gstMeta; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - sliceFree(gstMeta); - } - - - /** - * extra flags for the metadata - */ - public @property GstMetaFlags flags() - { - return gstMeta.flags; - } - - /** Ditto */ - public @property void flags(GstMetaFlags value) - { - gstMeta.flags = value; - } - - /** - * pointer to the #GstMetaInfo - */ - public @property GstMetaInfo* info() - { - return gstMeta.info; - } - - /** Ditto */ - public @property void info(GstMetaInfo* value) - { - gstMeta.info = value; - } - - /** - * Meta sequence number compare function. Can be used as #GCompareFunc - * or a #GCompareDataFunc. - * - * Params: - * meta2 = a #GstMeta - * - * Returns: a negative number if @meta1 comes before @meta2, 0 if both metas - * have an equal sequence number, or a positive integer if @meta1 comes - * after @meta2. - * - * Since: 1.16 - */ - public int compareSeqnum(Meta meta2) - { - return gst_meta_compare_seqnum(gstMeta, (meta2 is null) ? null : meta2.getMetaStruct()); - } - - /** - * Gets seqnum for this meta. - * - * Since: 1.16 - */ - public ulong getSeqnum() - { - return gst_meta_get_seqnum(gstMeta); - } - - /** - * - * Params: - * api = an API - * Returns: an array of tags as strings. - * - * Since: 1.2 - */ - public static string[] apiTypeGetTags(GType api) - { - return Str.toStringArray(gst_meta_api_type_get_tags(api)); - } - - /** - * Check if @api was registered with @tag. - * - * Params: - * api = an API - * tag = the tag to check - * - * Returns: %TRUE if @api was registered with @tag. - */ - public static bool apiTypeHasTag(GType api, GQuark tag) - { - return gst_meta_api_type_has_tag(api, tag) != 0; - } - - /** - * Register and return a GType for the @api and associate it with - * @tags. - * - * Params: - * api = an API to register - * tags = tags for @api - * - * Returns: a unique GType for @api. - */ - public static GType apiTypeRegister(string api, string[] tags) - { - return gst_meta_api_type_register(Str.toStringz(api), Str.toStringzArray(tags)); - } - - /** - * Lookup a previously registered meta info structure by its implementation name - * @impl. - * - * Params: - * impl = the name - * - * Returns: a #GstMetaInfo with @impl, or - * %NULL when no such metainfo exists. - */ - public static GstMetaInfo* getInfo(string impl) - { - return gst_meta_get_info(Str.toStringz(impl)); - } - - /** - * Register a new #GstMeta implementation. - * - * The same @info can be retrieved later with gst_meta_get_info() by using - * @impl as the key. - * - * Params: - * api = the type of the #GstMeta API - * impl = the name of the #GstMeta implementation - * size = the size of the #GstMeta structure - * initFunc = a #GstMetaInitFunction - * freeFunc = a #GstMetaFreeFunction - * transformFunc = a #GstMetaTransformFunction - * - * Returns: a #GstMetaInfo that can be used to - * access metadata. - */ - public static GstMetaInfo* register(GType api, string impl, size_t size, GstMetaInitFunction initFunc, GstMetaFreeFunction freeFunc, GstMetaTransformFunction transformFunc) - { - return gst_meta_register(api, Str.toStringz(impl), size, initFunc, freeFunc, transformFunc); - } -} diff --git a/generated/gstreamer/gstreamer/MiniObject.d b/generated/gstreamer/gstreamer/MiniObject.d deleted file mode 100644 index 0b33304a6..000000000 --- a/generated/gstreamer/gstreamer/MiniObject.d +++ /dev/null @@ -1,427 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.MiniObject; - -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * #GstMiniObject is a simple structure that can be used to implement refcounted - * types. - * - * Subclasses will include #GstMiniObject as the first member in their structure - * and then call gst_mini_object_init() to initialize the #GstMiniObject fields. - * - * gst_mini_object_ref() and gst_mini_object_unref() increment and decrement the - * refcount respectively. When the refcount of a mini-object reaches 0, the - * dispose function is called first and when this returns %TRUE, the free - * function of the miniobject is called. - * - * A copy can be made with gst_mini_object_copy(). - * - * gst_mini_object_is_writable() will return %TRUE when the refcount of the - * object is exactly 1 and there is no parent or a single parent exists and is - * writable itself, meaning the current caller has the only reference to the - * object. gst_mini_object_make_writable() will return a writable version of - * the object, which might be a new copy when the refcount was not 1. - * - * Opaque data can be associated with a #GstMiniObject with - * gst_mini_object_set_qdata() and gst_mini_object_get_qdata(). The data is - * meant to be specific to the particular object and is not automatically copied - * with gst_mini_object_copy() or similar methods. - * - * A weak reference can be added and remove with gst_mini_object_weak_ref() - * and gst_mini_object_weak_unref() respectively. - */ -public class MiniObject -{ - /** the main Gtk struct */ - protected GstMiniObject* gstMiniObject; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstMiniObject* getMiniObjectStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstMiniObject; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstMiniObject; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstMiniObject* gstMiniObject, bool ownedRef = false) - { - this.gstMiniObject = gstMiniObject; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_mini_object_unref(gstMiniObject); - } - - - /** - * This adds @parent as a parent for @object. Having one ore more parents affects the - * writability of @object: if a @parent is not writable, @object is also not - * writable, regardless of its refcount. @object is only writable if all - * the parents are writable and its own refcount is exactly 1. - * - * Note: This function does not take ownership of @parent and also does not - * take an additional reference. It is the responsibility of the caller to - * remove the parent again at a later time. - * - * Params: - * parent = a parent #GstMiniObject - * - * Since: 1.16 - */ - public void addParent(MiniObject parent) - { - gst_mini_object_add_parent(gstMiniObject, (parent is null) ? null : parent.getMiniObjectStruct()); - } - - /** - * Creates a copy of the mini-object. - * - * MT safe - * - * Returns: the new mini-object if copying is - * possible, %NULL otherwise. - */ - public MiniObject copy() - { - auto __p = gst_mini_object_copy(gstMiniObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MiniObject)(cast(GstMiniObject*) __p, true); - } - - /** - * This function gets back user data pointers stored via - * gst_mini_object_set_qdata(). - * - * Params: - * quark = A #GQuark, naming the user data pointer - * - * Returns: The user data pointer set, or - * %NULL - */ - public void* getQdata(GQuark quark) - { - return gst_mini_object_get_qdata(gstMiniObject, quark); - } - - /** - * Initializes a mini-object with the desired type and copy/dispose/free - * functions. - * - * Params: - * flags = initial #GstMiniObjectFlags - * type = the #GType of the mini-object to create - * copyFunc = the copy function, or %NULL - * disposeFunc = the dispose function, or %NULL - * freeFunc = the free function or %NULL - */ - public void init(uint flags, GType type, GstMiniObjectCopyFunction copyFunc, GstMiniObjectDisposeFunction disposeFunc, GstMiniObjectFreeFunction freeFunc) - { - gst_mini_object_init(gstMiniObject, flags, type, copyFunc, disposeFunc, freeFunc); - } - - /** - * If @mini_object has the LOCKABLE flag set, check if the current EXCLUSIVE - * lock on @object is the only one, this means that changes to the object will - * not be visible to any other object. - * - * If the LOCKABLE flag is not set, check if the refcount of @mini_object is - * exactly 1, meaning that no other reference exists to the object and that the - * object is therefore writable. - * - * Modification of a mini-object should only be done after verifying that it - * is writable. - * - * Returns: %TRUE if the object is writable. - */ - public bool isWritable() - { - return gst_mini_object_is_writable(gstMiniObject) != 0; - } - - /** - * Lock the mini-object with the specified access mode in @flags. - * - * Params: - * flags = #GstLockFlags - * - * Returns: %TRUE if @object could be locked. - */ - public bool lock(GstLockFlags flags) - { - return gst_mini_object_lock(gstMiniObject, flags) != 0; - } - - /** - * Checks if a mini-object is writable. If not, a writable copy is made and - * returned. This gives away the reference to the original mini object, - * and returns a reference to the new object. - * - * MT safe - * - * Returns: a mini-object (possibly the same pointer) that - * is writable. - */ - public MiniObject makeWritable() - { - auto __p = gst_mini_object_make_writable(gstMiniObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MiniObject)(cast(GstMiniObject*) __p, true); - } - - alias doref = ref_; - /** - * Increase the reference count of the mini-object. - * - * Note that the refcount affects the writability - * of @mini-object, see gst_mini_object_is_writable(). It is - * important to note that keeping additional references to - * GstMiniObject instances can potentially increase the number - * of memcpy operations in a pipeline, especially if the miniobject - * is a #GstBuffer. - * - * Returns: the mini-object. - */ - public MiniObject ref_() - { - auto __p = gst_mini_object_ref(gstMiniObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MiniObject)(cast(GstMiniObject*) __p, true); - } - - /** - * This removes @parent as a parent for @object. See - * gst_mini_object_add_parent(). - * - * Params: - * parent = a parent #GstMiniObject - * - * Since: 1.16 - */ - public void removeParent(MiniObject parent) - { - gst_mini_object_remove_parent(gstMiniObject, (parent is null) ? null : parent.getMiniObjectStruct()); - } - - /** - * This sets an opaque, named pointer on a miniobject. - * The name is specified through a #GQuark (retrieved e.g. via - * g_quark_from_static_string()), and the pointer - * can be gotten back from the @object with gst_mini_object_get_qdata() - * until the @object is disposed. - * Setting a previously set user data pointer, overrides (frees) - * the old pointer set, using %NULL as pointer essentially - * removes the data stored. - * - * @destroy may be specified which is called with @data as argument - * when the @object is disposed, or the data is being overwritten by - * a call to gst_mini_object_set_qdata() with the same @quark. - * - * Params: - * quark = A #GQuark, naming the user data pointer - * data = An opaque user data pointer - * destroy = Function to invoke with @data as argument, when @data - * needs to be freed - */ - public void setQdata(GQuark quark, void* data, GDestroyNotify destroy) - { - gst_mini_object_set_qdata(gstMiniObject, quark, data, destroy); - } - - /** - * This function gets back user data pointers stored via gst_mini_object_set_qdata() - * and removes the data from @object without invoking its `destroy()` function (if - * any was set). - * - * Params: - * quark = A #GQuark, naming the user data pointer - * - * Returns: The user data pointer set, or - * %NULL - */ - public void* stealQdata(GQuark quark) - { - return gst_mini_object_steal_qdata(gstMiniObject, quark); - } - - /** - * Unlock the mini-object with the specified access mode in @flags. - * - * Params: - * flags = #GstLockFlags - */ - public void unlock(GstLockFlags flags) - { - gst_mini_object_unlock(gstMiniObject, flags); - } - - /** - * Decreases the reference count of the mini-object, possibly freeing - * the mini-object. - */ - public void unref() - { - gst_mini_object_unref(gstMiniObject); - } - - /** - * Adds a weak reference callback to a mini object. Weak references are - * used for notification when a mini object is finalized. They are called - * "weak references" because they allow you to safely hold a pointer - * to the mini object without calling gst_mini_object_ref() - * (gst_mini_object_ref() adds a strong reference, that is, forces the object - * to stay alive). - * - * Params: - * notify = callback to invoke before the mini object is freed - * data = extra data to pass to notify - */ - public void weakRef(GstMiniObjectNotify notify, void* data) - { - gst_mini_object_weak_ref(gstMiniObject, notify, data); - } - - /** - * Removes a weak reference callback from a mini object. - * - * Params: - * notify = callback to search for - * data = data to search for - */ - public void weakUnref(GstMiniObjectNotify notify, void* data) - { - gst_mini_object_weak_unref(gstMiniObject, notify, data); - } - - /** - * Atomically modifies a pointer to point to a new mini-object. - * The reference count of @olddata is decreased and the reference count of - * @newdata is increased. - * - * Either @newdata and the value pointed to by @olddata may be %NULL. - * - * Params: - * olddata = pointer to a pointer to a - * mini-object to be replaced - * newdata = pointer to new mini-object - * - * Returns: %TRUE if @newdata was different from @olddata - */ - public static bool replace(ref MiniObject olddata, MiniObject newdata) - { - GstMiniObject* outolddata = olddata.getMiniObjectStruct(); - - auto __p = gst_mini_object_replace(&outolddata, (newdata is null) ? null : newdata.getMiniObjectStruct()) != 0; - - olddata = ObjectG.getDObject!(MiniObject)(outolddata); - - return __p; - } - - /** - * Replace the current #GstMiniObject pointer to by @olddata with %NULL and - * return the old value. - * - * Params: - * olddata = pointer to a pointer to a mini-object to - * be stolen - * - * Returns: the #GstMiniObject at @oldata - */ - public static MiniObject steal(ref MiniObject olddata) - { - GstMiniObject* outolddata = olddata.getMiniObjectStruct(); - - auto __p = gst_mini_object_steal(&outolddata); - - olddata = ObjectG.getDObject!(MiniObject)(outolddata); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MiniObject)(cast(GstMiniObject*) __p); - } - - /** - * Modifies a pointer to point to a new mini-object. The modification - * is done atomically. This version is similar to gst_mini_object_replace() - * except that it does not increase the refcount of @newdata and thus - * takes ownership of @newdata. - * - * Either @newdata and the value pointed to by @olddata may be %NULL. - * - * Params: - * olddata = pointer to a pointer to a mini-object to - * be replaced - * newdata = pointer to new mini-object - * - * Returns: %TRUE if @newdata was different from @olddata - */ - public static bool take(ref MiniObject olddata, MiniObject newdata) - { - GstMiniObject* outolddata = olddata.getMiniObjectStruct(); - - auto __p = gst_mini_object_take(&outolddata, (newdata is null) ? null : newdata.getMiniObjectStruct()) != 0; - - olddata = ObjectG.getDObject!(MiniObject)(outolddata); - - return __p; - } -} diff --git a/generated/gstreamer/gstreamer/ObjectGst.d b/generated/gstreamer/gstreamer/ObjectGst.d deleted file mode 100644 index 339810fa6..000000000 --- a/generated/gstreamer/gstreamer/ObjectGst.d +++ /dev/null @@ -1,677 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ObjectGst; - -private import glib.ErrorG; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.ParamSpec; -private import gobject.Signals; -private import gobject.Value; -private import gstreamer.ControlBinding; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * #GstObject provides a root for the object hierarchy tree filed in by the - * GStreamer library. It is currently a thin wrapper on top of - * #GInitiallyUnowned. It is an abstract class that is not very usable on its own. - * - * #GstObject gives us basic refcounting, parenting functionality and locking. - * Most of the functions are just extended for special GStreamer needs and can be - * found under the same name in the base class of #GstObject which is #GObject - * (e.g. g_object_ref() becomes gst_object_ref()). - * - * Since #GstObject derives from #GInitiallyUnowned, it also inherits the - * floating reference. Be aware that functions such as gst_bin_add() and - * gst_element_add_pad() take ownership of the floating reference. - * - * In contrast to #GObject instances, #GstObject adds a name property. The functions - * gst_object_set_name() and gst_object_get_name() are used to set/get the name - * of the object. - * - * ## controlled properties - * - * Controlled properties offers a lightweight way to adjust gobject properties - * over stream-time. It works by using time-stamped value pairs that are queued - * for element-properties. At run-time the elements continuously pull value - * changes for the current stream-time. - * - * What needs to be changed in a #GstElement? - * Very little - it is just two steps to make a plugin controllable! - * - * * mark gobject-properties paramspecs that make sense to be controlled, - * by GST_PARAM_CONTROLLABLE. - * - * * when processing data (get, chain, loop function) at the beginning call - * gst_object_sync_values(element,timestamp). - * This will make the controller update all GObject properties that are - * under its control with the current values based on the timestamp. - * - * What needs to be done in applications? Again it's not a lot to change. - * - * * create a #GstControlSource. - * csource = gst_interpolation_control_source_new (); - * g_object_set (csource, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL); - * - * * Attach the #GstControlSource on the controller to a property. - * gst_object_add_control_binding (object, gst_direct_control_binding_new (object, "prop1", csource)); - * - * * Set the control values - * gst_timed_value_control_source_set ((GstTimedValueControlSource *)csource,0 * GST_SECOND, value1); - * gst_timed_value_control_source_set ((GstTimedValueControlSource *)csource,1 * GST_SECOND, value2); - * - * * start your pipeline - */ -public class ObjectGst : ObjectG -{ - /** the main Gtk struct */ - protected GstObject* gstObject; - - /** Get the main Gtk struct */ - public GstObject* getObjectGstStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstObject; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstObject; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstObject* gstObject, bool ownedRef = false) - { - this.gstObject = gstObject; - super(cast(GObject*)gstObject, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_object_get_type(); - } - - /** - * Checks to see if there is any object named @name in @list. This function - * does not do any locking of any kind. You might want to protect the - * provided list with the lock of the owner of the list. This function - * will lock each #GstObject in the list to compare the name, so be - * careful when passing a list with a locked object. - * - * Params: - * list = a list of #GstObject to - * check through - * name = the name to search for - * - * Returns: %TRUE if a #GstObject named @name does not appear in @list, - * %FALSE if it does. - * - * MT safe. Grabs and releases the LOCK of each object in the list. - */ - public static bool checkUniqueness(ListG list, string name) - { - return gst_object_check_uniqueness((list is null) ? null : list.getListGStruct(), Str.toStringz(name)) != 0; - } - - /** - * A default deep_notify signal callback for an object. The user data - * should contain a pointer to an array of strings that should be excluded - * from the notify. The default handler will print the new value of the property - * using g_print. - * - * MT safe. This function grabs and releases @object's LOCK for getting its - * path string. - * - * Params: - * object = the #GObject that signalled the notify. - * orig = a #GstObject that initiated the notify. - * pspec = a #GParamSpec of the property. - * excludedProps = a set of user-specified properties to exclude or %NULL to show - * all changes. - */ - public static void defaultDeepNotify(ObjectG object, ObjectGst orig, ParamSpec pspec, string[] excludedProps) - { - gst_object_default_deep_notify((object is null) ? null : object.getObjectGStruct(), (orig is null) ? null : orig.getObjectGstStruct(), (pspec is null) ? null : pspec.getParamSpecStruct(), Str.toStringzArray(excludedProps)); - } - - /** - * Increase the reference count of @object, and possibly remove the floating - * reference, if @object has a floating reference. - * - * In other words, if the object is floating, then this call "assumes ownership" - * of the floating reference, converting it to a normal reference by clearing - * the floating flag while leaving the reference count unchanged. If the object - * is not floating, then this call adds a new normal reference increasing the - * reference count by one. - * - * For more background on "floating references" please see the #GObject - * documentation. - * - * Params: - * object = a #GstObject to sink - */ - public static void* refSink(void* object) - { - return gst_object_ref_sink(object); - } - - /** - * Atomically modifies a pointer to point to a new object. - * The reference count of @oldobj is decreased and the reference count of - * @newobj is increased. - * - * Either @newobj and the value pointed to by @oldobj may be %NULL. - * - * Params: - * oldobj = pointer to a place of - * a #GstObject to replace - * newobj = a new #GstObject - * - * Returns: %TRUE if @newobj was different from @oldobj - */ - public static bool replace(ref ObjectGst oldobj, ObjectGst newobj) - { - GstObject* outoldobj = oldobj.getObjectGstStruct(); - - auto __p = gst_object_replace(&outoldobj, (newobj is null) ? null : newobj.getObjectGstStruct()) != 0; - - oldobj = ObjectG.getDObject!(ObjectGst)(outoldobj); - - return __p; - } - - /** - * Attach the #GstControlBinding to the object. If there already was a - * #GstControlBinding for this property it will be replaced. - * - * The object's reference count will be incremented, and any floating - * reference will be removed (see gst_object_ref_sink()) - * - * Params: - * binding = the #GstControlBinding that should be used - * - * Returns: %FALSE if the given @binding has not been setup for this object or - * has been setup for a non suitable property, %TRUE otherwise. - */ - public bool addControlBinding(ControlBinding binding) - { - return gst_object_add_control_binding(gstObject, (binding is null) ? null : binding.getControlBindingStruct()) != 0; - } - - /** - * A default error function that uses g_printerr() to display the error message - * and the optional debug string.. - * - * The default handler will simply print the error string using g_print. - * - * Params: - * error = the GError. - * debug_ = an additional debug information string, or %NULL - */ - public void defaultError(ErrorG error, string debug_) - { - gst_object_default_error(gstObject, (error is null) ? null : error.getErrorGStruct(), Str.toStringz(debug_)); - } - - /** - * Gets the corresponding #GstControlBinding for the property. This should be - * unreferenced again after use. - * - * Params: - * propertyName = name of the property - * - * Returns: the #GstControlBinding for - * @property_name or %NULL if the property is not controlled. - */ - public ControlBinding getControlBinding(string propertyName) - { - auto __p = gst_object_get_control_binding(gstObject, Str.toStringz(propertyName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ControlBinding)(cast(GstControlBinding*) __p, true); - } - - /** - * Obtain the control-rate for this @object. Audio processing #GstElement - * objects will use this rate to sub-divide their processing loop and call - * gst_object_sync_values() in between. The length of the processing segment - * should be up to @control-rate nanoseconds. - * - * If the @object is not under property control, this will return - * %GST_CLOCK_TIME_NONE. This allows the element to avoid the sub-dividing. - * - * The control-rate is not expected to change if the element is in - * %GST_STATE_PAUSED or %GST_STATE_PLAYING. - * - * Returns: the control rate in nanoseconds - */ - public GstClockTime getControlRate() - { - return gst_object_get_control_rate(gstObject); - } - - /** - * Gets a number of #GValues for the given controlled property starting at the - * requested time. The array @values need to hold enough space for @n_values of - * #GValue. - * - * This function is useful if one wants to e.g. draw a graph of the control - * curve or apply a control curve sample by sample. - * - * Params: - * propertyName = the name of the property to get - * timestamp = the time that should be processed - * interval = the time spacing between subsequent values - * values = array to put control-values in - * - * Returns: %TRUE if the given array could be filled, %FALSE otherwise - */ - public bool getGValueArray(string propertyName, GstClockTime timestamp, GstClockTime interval, Value[] values) - { - GValue[] valuesArray = new GValue[values.length]; - for ( int i = 0; i < values.length; i++ ) - { - valuesArray[i] = *(values[i].getValueStruct()); - } - - return gst_object_get_g_value_array(gstObject, Str.toStringz(propertyName), timestamp, interval, cast(uint)values.length, valuesArray.ptr) != 0; - } - - /** - * Returns a copy of the name of @object. - * Caller should g_free() the return value after usage. - * For a nameless object, this returns %NULL, which you can safely g_free() - * as well. - * - * Free-function: g_free - * - * Returns: the name of @object. g_free() - * after usage. - * - * MT safe. This function grabs and releases @object's LOCK. - */ - public string getName() - { - auto retStr = gst_object_get_name(gstObject); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Returns the parent of @object. This function increases the refcount - * of the parent object so you should gst_object_unref() it after usage. - * - * Returns: parent of @object, this can be - * %NULL if @object has no parent. unref after usage. - * - * MT safe. Grabs and releases @object's LOCK. - */ - public ObjectGst getParent() - { - auto __p = gst_object_get_parent(gstObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectGst)(cast(GstObject*) __p, true); - } - - /** - * Generates a string describing the path of @object in - * the object hierarchy. Only useful (or used) for debugging. - * - * Free-function: g_free - * - * Returns: a string describing the path of @object. You must - * g_free() the string after usage. - * - * MT safe. Grabs and releases the #GstObject's LOCK for all objects - * in the hierarchy. - */ - public string getPathString() - { - auto retStr = gst_object_get_path_string(gstObject); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the value for the given controlled property at the requested time. - * - * Params: - * propertyName = the name of the property to get - * timestamp = the time the control-change should be read from - * - * Returns: the GValue of the property at the given time, - * or %NULL if the property isn't controlled. - */ - public Value getValue(string propertyName, GstClockTime timestamp) - { - auto __p = gst_object_get_value(gstObject, Str.toStringz(propertyName), timestamp); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p, true); - } - - /** - * Gets a number of values for the given controlled property starting at the - * requested time. The array @values need to hold enough space for @n_values of - * the same type as the objects property's type. - * - * This function is useful if one wants to e.g. draw a graph of the control - * curve or apply a control curve sample by sample. - * - * The values are unboxed and ready to be used. The similar function - * gst_object_get_g_value_array() returns the array as #GValues and is - * better suites for bindings. - * - * Params: - * propertyName = the name of the property to get - * timestamp = the time that should be processed - * interval = the time spacing between subsequent values - * nValues = the number of values - * values = array to put control-values in - * - * Returns: %TRUE if the given array could be filled, %FALSE otherwise - */ - public bool getValueArray(string propertyName, GstClockTime timestamp, GstClockTime interval, uint nValues, void* values) - { - return gst_object_get_value_array(gstObject, Str.toStringz(propertyName), timestamp, interval, nValues, values) != 0; - } - - /** - * Check if the @object has active controlled properties. - * - * Returns: %TRUE if the object has active controlled properties - */ - public bool hasActiveControlBindings() - { - return gst_object_has_active_control_bindings(gstObject) != 0; - } - - /** - * Check if @object has an ancestor @ancestor somewhere up in - * the hierarchy. One can e.g. check if a #GstElement is inside a #GstPipeline. - * - * Deprecated: Use gst_object_has_as_ancestor() instead. - * - * MT safe. Grabs and releases @object's locks. - * - * Params: - * ancestor = a #GstObject to check as ancestor - * - * Returns: %TRUE if @ancestor is an ancestor of @object. - */ - public bool hasAncestor(ObjectGst ancestor) - { - return gst_object_has_ancestor(gstObject, (ancestor is null) ? null : ancestor.getObjectGstStruct()) != 0; - } - - /** - * Check if @object has an ancestor @ancestor somewhere up in - * the hierarchy. One can e.g. check if a #GstElement is inside a #GstPipeline. - * - * Params: - * ancestor = a #GstObject to check as ancestor - * - * Returns: %TRUE if @ancestor is an ancestor of @object. - * - * MT safe. Grabs and releases @object's locks. - */ - public bool hasAsAncestor(ObjectGst ancestor) - { - return gst_object_has_as_ancestor(gstObject, (ancestor is null) ? null : ancestor.getObjectGstStruct()) != 0; - } - - /** - * Check if @parent is the parent of @object. - * E.g. a #GstElement can check if it owns a given #GstPad. - * - * Params: - * parent = a #GstObject to check as parent - * - * Returns: %FALSE if either @object or @parent is %NULL. %TRUE if @parent is - * the parent of @object. Otherwise %FALSE. - * - * MT safe. Grabs and releases @object's locks. - * - * Since: 1.6 - */ - public bool hasAsParent(ObjectGst parent) - { - return gst_object_has_as_parent(gstObject, (parent is null) ? null : parent.getObjectGstStruct()) != 0; - } - - alias doref = ref_; - /** - * Increments the reference count on @object. This function - * does not take the lock on @object because it relies on - * atomic refcounting. - * - * This object returns the input parameter to ease writing - * constructs like : - * result = gst_object_ref (object->parent); - * - * Returns: A pointer to @object - */ - public override ObjectGst ref_() - { - auto __p = gst_object_ref(gstObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectGst)(cast(GstObject*) __p, true); - } - - /** - * Removes the corresponding #GstControlBinding. If it was the - * last ref of the binding, it will be disposed. - * - * Params: - * binding = the binding - * - * Returns: %TRUE if the binding could be removed. - */ - public bool removeControlBinding(ControlBinding binding) - { - return gst_object_remove_control_binding(gstObject, (binding is null) ? null : binding.getControlBindingStruct()) != 0; - } - - /** - * This function is used to disable the control bindings on a property for - * some time, i.e. gst_object_sync_values() will do nothing for the - * property. - * - * Params: - * propertyName = property to disable - * disabled = boolean that specifies whether to disable the controller - * or not. - */ - public void setControlBindingDisabled(string propertyName, bool disabled) - { - gst_object_set_control_binding_disabled(gstObject, Str.toStringz(propertyName), disabled); - } - - /** - * This function is used to disable all controlled properties of the @object for - * some time, i.e. gst_object_sync_values() will do nothing. - * - * Params: - * disabled = boolean that specifies whether to disable the controller - * or not. - */ - public void setControlBindingsDisabled(bool disabled) - { - gst_object_set_control_bindings_disabled(gstObject, disabled); - } - - /** - * Change the control-rate for this @object. Audio processing #GstElement - * objects will use this rate to sub-divide their processing loop and call - * gst_object_sync_values() in between. The length of the processing segment - * should be up to @control-rate nanoseconds. - * - * The control-rate should not change if the element is in %GST_STATE_PAUSED or - * %GST_STATE_PLAYING. - * - * Params: - * controlRate = the new control-rate in nanoseconds. - */ - public void setControlRate(GstClockTime controlRate) - { - gst_object_set_control_rate(gstObject, controlRate); - } - - /** - * Sets the name of @object, or gives @object a guaranteed unique - * name (if @name is %NULL). - * This function makes a copy of the provided name, so the caller - * retains ownership of the name it sent. - * - * Params: - * name = new name of object - * - * Returns: %TRUE if the name could be set. Since Objects that have - * a parent cannot be renamed, this function returns %FALSE in those - * cases. - * - * MT safe. This function grabs and releases @object's LOCK. - */ - public bool setName(string name) - { - return gst_object_set_name(gstObject, Str.toStringz(name)) != 0; - } - - /** - * Sets the parent of @object to @parent. The object's reference count will - * be incremented, and any floating reference will be removed (see gst_object_ref_sink()). - * - * Params: - * parent = new parent of object - * - * Returns: %TRUE if @parent could be set or %FALSE when @object - * already had a parent or @object and @parent are the same. - * - * MT safe. Grabs and releases @object's LOCK. - */ - public bool setParent(ObjectGst parent) - { - return gst_object_set_parent(gstObject, (parent is null) ? null : parent.getObjectGstStruct()) != 0; - } - - /** - * Returns a suggestion for timestamps where buffers should be split - * to get best controller results. - * - * Returns: Returns the suggested timestamp or %GST_CLOCK_TIME_NONE - * if no control-rate was set. - */ - public GstClockTime suggestNextSync() - { - return gst_object_suggest_next_sync(gstObject); - } - - /** - * Sets the properties of the object, according to the #GstControlSources that - * (maybe) handle them and for the given timestamp. - * - * If this function fails, it is most likely the application developers fault. - * Most probably the control sources are not setup correctly. - * - * Params: - * timestamp = the time that should be processed - * - * Returns: %TRUE if the controller values could be applied to the object - * properties, %FALSE otherwise - */ - public bool syncValues(GstClockTime timestamp) - { - return gst_object_sync_values(gstObject, timestamp) != 0; - } - - /** - * Clear the parent of @object, removing the associated reference. - * This function decreases the refcount of @object. - * - * MT safe. Grabs and releases @object's lock. - */ - public void unparent() - { - gst_object_unparent(gstObject); - } - - /** - * Decrements the reference count on @object. If reference count hits - * zero, destroy @object. This function does not take the lock - * on @object as it relies on atomic refcounting. - * - * The unref method should never be called with the LOCK held since - * this might deadlock the dispose function. - */ - public override void unref() - { - gst_object_unref(gstObject); - } - - /** - * The deep notify signal is used to be notified of property changes. It is - * typically attached to the toplevel bin to receive notifications from all - * the elements contained in that bin. - * - * Params: - * propObject = the object that originated the signal - * prop = the property that changed - */ - gulong addOnDeepNotify(void delegate(ObjectGst, ParamSpec, ObjectGst) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "deep-notify", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/Pad.d b/generated/gstreamer/gstreamer/Pad.d deleted file mode 100644 index 120cc6d51..000000000 --- a/generated/gstreamer/gstreamer/Pad.d +++ /dev/null @@ -1,1875 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Pad; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.Buffer; -private import gstreamer.BufferList; -private import gstreamer.Caps; -private import gstreamer.Element; -private import gstreamer.Event; -private import gstreamer.Iterator; -private import gstreamer.ObjectGst; -private import gstreamer.PadTemplate; -private import gstreamer.Query; -private import gstreamer.StaticPadTemplate; -private import gstreamer.Stream; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * A #GstElement is linked to other elements via "pads", which are extremely - * light-weight generic link points. - * - * Pads have a #GstPadDirection, source pads produce data, sink pads consume - * data. - * - * Pads are typically created from a #GstPadTemplate with - * gst_pad_new_from_template() and are then added to a #GstElement. This usually - * happens when the element is created but it can also happen dynamically based - * on the data that the element is processing or based on the pads that the - * application requests. - * - * Pads without pad templates can be created with gst_pad_new(), - * which takes a direction and a name as an argument. If the name is %NULL, - * then a guaranteed unique name will be assigned to it. - * - * A #GstElement creating a pad will typically use the various - * gst_pad_set_*_function\() calls to register callbacks for events, queries or - * dataflow on the pads. - * - * gst_pad_get_parent() will retrieve the #GstElement that owns the pad. - * - * After two pads are retrieved from an element by gst_element_get_static_pad(), - * the pads can be linked with gst_pad_link(). (For quick links, - * you can also use gst_element_link(), which will make the obvious - * link for you if it's straightforward.). Pads can be unlinked again with - * gst_pad_unlink(). gst_pad_get_peer() can be used to check what the pad is - * linked to. - * - * Before dataflow is possible on the pads, they need to be activated with - * gst_pad_set_active(). - * - * gst_pad_query() and gst_pad_peer_query() can be used to query various - * properties of the pad and the stream. - * - * To send a #GstEvent on a pad, use gst_pad_send_event() and - * gst_pad_push_event(). Some events will be sticky on the pad, meaning that - * after they pass on the pad they can be queried later with - * gst_pad_get_sticky_event() and gst_pad_sticky_events_foreach(). - * gst_pad_get_current_caps() and gst_pad_has_current_caps() are convenience - * functions to query the current sticky CAPS event on a pad. - * - * GstElements will use gst_pad_push() and gst_pad_pull_range() to push out - * or pull in a buffer. - * - * The dataflow, events and queries that happen on a pad can be monitored with - * probes that can be installed with gst_pad_add_probe(). gst_pad_is_blocked() - * can be used to check if a block probe is installed on the pad. - * gst_pad_is_blocking() checks if the blocking probe is currently blocking the - * pad. gst_pad_remove_probe() is used to remove a previously installed probe - * and unblock blocking probes if any. - * - * Pad have an offset that can be retrieved with gst_pad_get_offset(). This - * offset will be applied to the running_time of all data passing over the pad. - * gst_pad_set_offset() can be used to change the offset. - * - * Convenience functions exist to start, pause and stop the task on a pad with - * gst_pad_start_task(), gst_pad_pause_task() and gst_pad_stop_task() - * respectively. - */ -public class Pad : ObjectGst -{ - /** the main Gtk struct */ - protected GstPad* gstPad; - - /** Get the main Gtk struct */ - public GstPad* getPadStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPad; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstPad; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPad* gstPad, bool ownedRef = false) - { - this.gstPad = gstPad; - super(cast(GstObject*)gstPad, ownedRef); - } - - /** - * Queries a pad for the stream position. - * This is a convenience function for gstreamerD. - * Returns: - * The current position in nanoseconds - GstFormat.TIME. - */ - public long queryPosition() - { - long cur_pos; - queryPosition( GstFormat.TIME, cur_pos ); - return cur_pos; - } - - /** - * Queries a pad for the stream duration. - * This is a convenience function for gstreamerD. - * Returns: - * The duration in nanoseconds - GstFormat.TIME. - */ - public long queryDuration() - { - long cur_dur; - queryDuration( GstFormat.TIME, cur_dur ); - return cur_dur; - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_pad_get_type(); - } - - /** - * Creates a new pad with the given name in the given direction. - * If name is %NULL, a guaranteed unique name (across all pads) - * will be assigned. - * This function makes a copy of the name so you can safely free the name. - * - * Params: - * name = the name of the new pad. - * direction = the #GstPadDirection of the pad. - * - * Returns: a new #GstPad. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, GstPadDirection direction) - { - auto __p = gst_pad_new(Str.toStringz(name), direction); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstPad*) __p); - } - - /** - * Creates a new pad with the given name from the given static template. - * If name is %NULL, a guaranteed unique name (across all pads) - * will be assigned. - * This function makes a copy of the name so you can safely free the name. - * - * Params: - * templ = the #GstStaticPadTemplate to use - * name = the name of the pad - * - * Returns: a new #GstPad. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(StaticPadTemplate templ, string name) - { - auto __p = gst_pad_new_from_static_template((templ is null) ? null : templ.getStaticPadTemplateStruct(), Str.toStringz(name)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_static_template"); - } - - this(cast(GstPad*) __p); - } - - /** - * Creates a new pad with the given name from the given template. - * If name is %NULL, a guaranteed unique name (across all pads) - * will be assigned. - * This function makes a copy of the name so you can safely free the name. - * - * Params: - * templ = the pad template to use - * name = the name of the pad - * - * Returns: a new #GstPad. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(PadTemplate templ, string name) - { - auto __p = gst_pad_new_from_template((templ is null) ? null : templ.getPadTemplateStruct(), Str.toStringz(name)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_template"); - } - - this(cast(GstPad*) __p); - } - - /** - * Gets a string representing the given pad-link return. - * - * Params: - * ret = a #GstPadLinkReturn to get the name of. - * - * Returns: a static string with the name of the pad-link return. - * - * Since: 1.4 - */ - public static string linkGetName(GstPadLinkReturn ret) - { - return Str.toString(gst_pad_link_get_name(ret)); - } - - /** - * Activates or deactivates the given pad in @mode via dispatching to the - * pad's activatemodefunc. For use from within pad activation functions only. - * - * If you don't know what this is, you probably don't want to call it. - * - * Params: - * mode = the requested activation mode - * active = whether or not the pad should be active. - * - * Returns: %TRUE if the operation was successful. - * - * MT safe. - */ - public bool activateMode(GstPadMode mode, bool active) - { - return gst_pad_activate_mode(gstPad, mode, active) != 0; - } - - /** - * Be notified of different states of pads. The provided callback is called for - * every state that matches @mask. - * - * Probes are called in groups: First GST_PAD_PROBE_TYPE_BLOCK probes are - * called, then others, then finally GST_PAD_PROBE_TYPE_IDLE. The only - * exception here are GST_PAD_PROBE_TYPE_IDLE probes that are called - * immediately if the pad is already idle while calling gst_pad_add_probe(). - * In each of the groups, probes are called in the order in which they were - * added. - * - * Params: - * mask = the probe mask - * callback = #GstPadProbeCallback that will be called with notifications of - * the pad state - * userData = user data passed to the callback - * destroyData = #GDestroyNotify for user_data - * - * Returns: an id or 0 if no probe is pending. The id can be used to remove the - * probe with gst_pad_remove_probe(). When using GST_PAD_PROBE_TYPE_IDLE it can - * happen that the probe can be run immediately and if the probe returns - * GST_PAD_PROBE_REMOVE this functions returns 0. - * - * MT safe. - */ - public gulong addProbe(GstPadProbeType mask, GstPadProbeCallback callback, void* userData, GDestroyNotify destroyData) - { - return gst_pad_add_probe(gstPad, mask, callback, userData, destroyData); - } - - /** - * Checks if the source pad and the sink pad are compatible so they can be - * linked. - * - * Params: - * sinkpad = the sink #GstPad. - * - * Returns: %TRUE if the pads can be linked. - */ - public bool canLink(Pad sinkpad) - { - return gst_pad_can_link(gstPad, (sinkpad is null) ? null : sinkpad.getPadStruct()) != 0; - } - - /** - * Chain a buffer to @pad. - * - * The function returns #GST_FLOW_FLUSHING if the pad was flushing. - * - * If the buffer type is not acceptable for @pad (as negotiated with a - * preceding GST_EVENT_CAPS event), this function returns - * #GST_FLOW_NOT_NEGOTIATED. - * - * The function proceeds calling the chain function installed on @pad (see - * gst_pad_set_chain_function()) and the return value of that function is - * returned to the caller. #GST_FLOW_NOT_SUPPORTED is returned if @pad has no - * chain function. - * - * In all cases, success or failure, the caller loses its reference to @buffer - * after calling this function. - * - * Params: - * buffer = the #GstBuffer to send, return GST_FLOW_ERROR - * if not. - * - * Returns: a #GstFlowReturn from the pad. - * - * MT safe. - */ - public GstFlowReturn chain(Buffer buffer) - { - return gst_pad_chain(gstPad, (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * Chain a bufferlist to @pad. - * - * The function returns #GST_FLOW_FLUSHING if the pad was flushing. - * - * If @pad was not negotiated properly with a CAPS event, this function - * returns #GST_FLOW_NOT_NEGOTIATED. - * - * The function proceeds calling the chainlist function installed on @pad (see - * gst_pad_set_chain_list_function()) and the return value of that function is - * returned to the caller. #GST_FLOW_NOT_SUPPORTED is returned if @pad has no - * chainlist function. - * - * In all cases, success or failure, the caller loses its reference to @list - * after calling this function. - * - * MT safe. - * - * Params: - * list = the #GstBufferList to send, return GST_FLOW_ERROR - * if not. - * - * Returns: a #GstFlowReturn from the pad. - */ - public GstFlowReturn chainList(BufferList list) - { - return gst_pad_chain_list(gstPad, (list is null) ? null : list.getBufferListStruct()); - } - - /** - * Check and clear the #GST_PAD_FLAG_NEED_RECONFIGURE flag on @pad and return %TRUE - * if the flag was set. - * - * Returns: %TRUE is the GST_PAD_FLAG_NEED_RECONFIGURE flag was set on @pad. - */ - public bool checkReconfigure() - { - return gst_pad_check_reconfigure(gstPad) != 0; - } - - /** - * Creates a stream-id for the source #GstPad @pad by combining the - * upstream information with the optional @stream_id of the stream - * of @pad. @pad must have a parent #GstElement and which must have zero - * or one sinkpad. @stream_id can only be %NULL if the parent element - * of @pad has only a single source pad. - * - * This function generates an unique stream-id by getting the upstream - * stream-start event stream ID and appending @stream_id to it. If the - * element has no sinkpad it will generate an upstream stream-id by - * doing an URI query on the element and in the worst case just uses - * a random number. Source elements that don't implement the URI - * handler interface should ideally generate a unique, deterministic - * stream-id manually instead. - * - * Since stream IDs are sorted alphabetically, any numbers in the - * stream ID should be printed with a fixed number of characters, - * preceded by 0's, such as by using the format \%03u instead of \%u. - * - * Params: - * parent = Parent #GstElement of @pad - * streamId = The stream-id - * - * Returns: A stream-id for @pad. g_free() after usage. - */ - public string createStreamId(Element parent, string streamId) - { - auto retStr = gst_pad_create_stream_id(gstPad, (parent is null) ? null : parent.getElementStruct(), Str.toStringz(streamId)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Creates a stream-id for the source #GstPad @pad by combining the - * upstream information with the optional @stream_id of the stream - * of @pad. @pad must have a parent #GstElement and which must have zero - * or one sinkpad. @stream_id can only be %NULL if the parent element - * of @pad has only a single source pad. - * - * This function generates an unique stream-id by getting the upstream - * stream-start event stream ID and appending @stream_id to it. If the - * element has no sinkpad it will generate an upstream stream-id by - * doing an URI query on the element and in the worst case just uses - * a random number. Source elements that don't implement the URI - * handler interface should ideally generate a unique, deterministic - * stream-id manually instead. - * - * Params: - * parent = Parent #GstElement of @pad - * streamId = The stream-id - * varArgs = parameters for the @stream_id format string - * - * Returns: A stream-id for @pad. g_free() after usage. - */ - public string createStreamIdPrintfValist(Element parent, string streamId, void* varArgs) - { - auto retStr = gst_pad_create_stream_id_printf_valist(gstPad, (parent is null) ? null : parent.getElementStruct(), Str.toStringz(streamId), varArgs); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Invokes the default event handler for the given pad. - * - * The EOS event will pause the task associated with @pad before it is forwarded - * to all internally linked pads, - * - * The event is sent to all pads internally linked to @pad. This function - * takes ownership of @event. - * - * Params: - * parent = the parent of @pad or %NULL - * event = the #GstEvent to handle. - * - * Returns: %TRUE if the event was sent successfully. - */ - public bool eventDefault(ObjectGst parent, Event event) - { - return gst_pad_event_default(gstPad, (parent is null) ? null : parent.getObjectGstStruct(), (event is null) ? null : event.getEventStruct()) != 0; - } - - /** - * Calls @forward for all internally linked pads of @pad. This function deals with - * dynamically changing internal pads and will make sure that the @forward - * function is only called once for each pad. - * - * When @forward returns %TRUE, no further pads will be processed. - * - * Params: - * forward = a #GstPadForwardFunction - * userData = user data passed to @forward - * - * Returns: %TRUE if one of the dispatcher functions returned %TRUE. - */ - public bool forward(GstPadForwardFunction forward, void* userData) - { - return gst_pad_forward(gstPad, forward, userData) != 0; - } - - /** - * Gets the capabilities of the allowed media types that can flow through - * @pad and its peer. - * - * The allowed capabilities is calculated as the intersection of the results of - * calling gst_pad_query_caps() on @pad and its peer. The caller owns a reference - * on the resulting caps. - * - * Returns: the allowed #GstCaps of the - * pad link. Unref the caps when you no longer need it. This - * function returns %NULL when @pad has no peer. - * - * MT safe. - */ - public Caps getAllowedCaps() - { - auto __p = gst_pad_get_allowed_caps(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Gets the capabilities currently configured on @pad with the last - * #GST_EVENT_CAPS event. - * - * Returns: the current caps of the pad with - * incremented ref-count or %NULL when pad has no caps. Unref after usage. - */ - public Caps getCurrentCaps() - { - auto __p = gst_pad_get_current_caps(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Gets the direction of the pad. The direction of the pad is - * decided at construction time so this function does not take - * the LOCK. - * - * Returns: the #GstPadDirection of the pad. - * - * MT safe. - */ - public GstPadDirection getDirection() - { - return gst_pad_get_direction(gstPad); - } - - /** - * Gets the private data of a pad. - * No locking is performed in this function. - * - * Returns: a #gpointer to the private data. - */ - public void* getElementPrivate() - { - return gst_pad_get_element_private(gstPad); - } - - /** - * Gets the #GstFlowReturn return from the last data passed by this pad. - * - * Since: 1.4 - */ - public GstFlowReturn getLastFlowReturn() - { - return gst_pad_get_last_flow_return(gstPad); - } - - /** - * Get the offset applied to the running time of @pad. @pad has to be a source - * pad. - * - * Returns: the offset. - */ - public long getOffset() - { - return gst_pad_get_offset(gstPad); - } - - /** - * Gets the template for @pad. - * - * Returns: the #GstPadTemplate from which - * this pad was instantiated, or %NULL if this pad has no - * template. Unref after usage. - */ - public PadTemplate getPadTemplate() - { - auto __p = gst_pad_get_pad_template(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PadTemplate)(cast(GstPadTemplate*) __p, true); - } - - /** - * Gets the capabilities for @pad's template. - * - * Returns: the #GstCaps of this pad template. - * Unref after usage. - */ - public Caps getPadTemplateCaps() - { - auto __p = gst_pad_get_pad_template_caps(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Gets the parent of @pad, cast to a #GstElement. If a @pad has no parent or - * its parent is not an element, return %NULL. - * - * Returns: the parent of the pad. The - * caller has a reference on the parent, so unref when you're finished - * with it. - * - * MT safe. - */ - public Element getParentElement() - { - auto __p = gst_pad_get_parent_element(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p, true); - } - - /** - * Gets the peer of @pad. This function refs the peer pad so - * you need to unref it after use. - * - * Returns: the peer #GstPad. Unref after usage. - * - * MT safe. - */ - public Pad getPeer() - { - auto __p = gst_pad_get_peer(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * When @pad is flushing this function returns #GST_FLOW_FLUSHING - * immediately and @buffer is %NULL. - * - * Calls the getrange function of @pad, see #GstPadGetRangeFunction for a - * description of a getrange function. If @pad has no getrange function - * installed (see gst_pad_set_getrange_function()) this function returns - * #GST_FLOW_NOT_SUPPORTED. - * - * If @buffer points to a variable holding %NULL, a valid new #GstBuffer will be - * placed in @buffer when this function returns #GST_FLOW_OK. The new buffer - * must be freed with gst_buffer_unref() after usage. - * - * When @buffer points to a variable that points to a valid #GstBuffer, the - * buffer will be filled with the result data when this function returns - * #GST_FLOW_OK. If the provided buffer is larger than @size, only - * @size bytes will be filled in the result buffer and its size will be updated - * accordingly. - * - * Note that less than @size bytes can be returned in @buffer when, for example, - * an EOS condition is near or when @buffer is not large enough to hold @size - * bytes. The caller should check the result buffer size to get the result size. - * - * When this function returns any other result value than #GST_FLOW_OK, @buffer - * will be unchanged. - * - * This is a lowlevel function. Usually gst_pad_pull_range() is used. - * - * Params: - * offset = The start offset of the buffer - * size = The length of the buffer - * buffer = a pointer to hold the #GstBuffer, - * returns #GST_FLOW_ERROR if %NULL. - * - * Returns: a #GstFlowReturn from the pad. - * - * MT safe. - */ - public GstFlowReturn getRange(ulong offset, uint size, out Buffer buffer) - { - GstBuffer* outbuffer = null; - - auto __p = gst_pad_get_range(gstPad, offset, size, &outbuffer); - - buffer = ObjectG.getDObject!(Buffer)(outbuffer); - - return __p; - } - - /** - * If there is a single internal link of the given pad, this function will - * return it. Otherwise, it will return NULL. - * - * Returns: a #GstPad, or %NULL if @pad has none - * or more than one internal links. Unref returned pad with - * gst_object_unref(). - * - * Since: 1.18 - */ - public Pad getSingleInternalLink() - { - auto __p = gst_pad_get_single_internal_link(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pad)(cast(GstPad*) __p, true); - } - - /** - * Returns a new reference of the sticky event of type @event_type - * from the event. - * - * Params: - * eventType = the #GstEventType that should be retrieved. - * idx = the index of the event - * - * Returns: a #GstEvent of type - * @event_type or %NULL when no event of @event_type was on - * @pad. Unref after usage. - */ - public Event getStickyEvent(GstEventType eventType, uint idx) - { - auto __p = gst_pad_get_sticky_event(gstPad, eventType, idx); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Event)(cast(GstEvent*) __p, true); - } - - /** - * Returns the current #GstStream for the @pad, or %NULL if none has been - * set yet, i.e. the pad has not received a stream-start event yet. - * - * This is a convenience wrapper around gst_pad_get_sticky_event() and - * gst_event_parse_stream(). - * - * Returns: the current #GstStream for @pad, or %NULL. - * unref the returned stream when no longer needed. - * - * Since: 1.10 - */ - public Stream getStream() - { - auto __p = gst_pad_get_stream(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Stream)(cast(GstStream*) __p, true); - } - - /** - * Returns the current stream-id for the @pad, or %NULL if none has been - * set yet, i.e. the pad has not received a stream-start event yet. - * - * This is a convenience wrapper around gst_pad_get_sticky_event() and - * gst_event_parse_stream_start(). - * - * The returned stream-id string should be treated as an opaque string, its - * contents should not be interpreted. - * - * Returns: a newly-allocated copy of the stream-id for - * @pad, or %NULL. g_free() the returned string when no longer - * needed. - * - * Since: 1.2 - */ - public string getStreamId() - { - auto retStr = gst_pad_get_stream_id(gstPad); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Get @pad task state. If no task is currently - * set, #GST_TASK_STOPPED is returned. - * - * Returns: The current state of @pad's task. - * - * Since: 1.12 - */ - public GstTaskState getTaskState() - { - return gst_pad_get_task_state(gstPad); - } - - /** - * Check if @pad has caps set on it with a #GST_EVENT_CAPS event. - * - * Returns: %TRUE when @pad has caps associated with it. - */ - public bool hasCurrentCaps() - { - return gst_pad_has_current_caps(gstPad) != 0; - } - - /** - * Query if a pad is active - * - * Returns: %TRUE if the pad is active. - * - * MT safe. - */ - public bool isActive() - { - return gst_pad_is_active(gstPad) != 0; - } - - /** - * Checks if the pad is blocked or not. This function returns the - * last requested state of the pad. It is not certain that the pad - * is actually blocking at this point (see gst_pad_is_blocking()). - * - * Returns: %TRUE if the pad is blocked. - * - * MT safe. - */ - public bool isBlocked() - { - return gst_pad_is_blocked(gstPad) != 0; - } - - /** - * Checks if the pad is blocking or not. This is a guaranteed state - * of whether the pad is actually blocking on a #GstBuffer or a #GstEvent. - * - * Returns: %TRUE if the pad is blocking. - * - * MT safe. - */ - public bool isBlocking() - { - return gst_pad_is_blocking(gstPad) != 0; - } - - /** - * Checks if a @pad is linked to another pad or not. - * - * Returns: %TRUE if the pad is linked, %FALSE otherwise. - * - * MT safe. - */ - public bool isLinked() - { - return gst_pad_is_linked(gstPad) != 0; - } - - /** - * Gets an iterator for the pads to which the given pad is linked to inside - * of the parent element. - * - * Each #GstPad element yielded by the iterator will have its refcount increased, - * so unref after use. - * - * Free-function: gst_iterator_free - * - * Returns: a new #GstIterator of #GstPad - * or %NULL when the pad does not have an iterator function - * configured. Use gst_iterator_free() after usage. - */ - public Iterator iterateInternalLinks() - { - auto __p = gst_pad_iterate_internal_links(gstPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Iterate the list of pads to which the given pad is linked to inside of - * the parent element. - * This is the default handler, and thus returns an iterator of all of the - * pads inside the parent element with opposite direction. - * - * The caller must free this iterator after use with gst_iterator_free(). - * - * Params: - * parent = the parent of @pad or %NULL - * - * Returns: a #GstIterator of #GstPad, or %NULL if @pad - * has no parent. Unref each returned pad with gst_object_unref(). - */ - public Iterator iterateInternalLinksDefault(ObjectGst parent) - { - auto __p = gst_pad_iterate_internal_links_default(gstPad, (parent is null) ? null : parent.getObjectGstStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Links the source pad and the sink pad. - * - * Params: - * sinkpad = the sink #GstPad to link. - * - * Returns: A result code indicating if the connection worked or - * what went wrong. - * - * MT Safe. - */ - public GstPadLinkReturn link(Pad sinkpad) - { - return gst_pad_link(gstPad, (sinkpad is null) ? null : sinkpad.getPadStruct()); - } - - /** - * Links the source pad and the sink pad. - * - * This variant of #gst_pad_link provides a more granular control on the - * checks being done when linking. While providing some considerable speedups - * the caller of this method must be aware that wrong usage of those flags - * can cause severe issues. Refer to the documentation of #GstPadLinkCheck - * for more information. - * - * MT Safe. - * - * Params: - * sinkpad = the sink #GstPad to link. - * flags = the checks to validate when linking - * - * Returns: A result code indicating if the connection worked or - * what went wrong. - */ - public GstPadLinkReturn linkFull(Pad sinkpad, GstPadLinkCheck flags) - { - return gst_pad_link_full(gstPad, (sinkpad is null) ? null : sinkpad.getPadStruct(), flags); - } - - /** - * Links @src to @sink, creating any #GstGhostPad's in between as necessary. - * - * This is a convenience function to save having to create and add intermediate - * #GstGhostPad's as required for linking across #GstBin boundaries. - * - * If @src or @sink pads don't have parent elements or do not share a common - * ancestor, the link will fail. - * - * Params: - * sink = a #GstPad - * - * Returns: whether the link succeeded. - * - * Since: 1.10 - */ - public bool linkMaybeGhosting(Pad sink) - { - return gst_pad_link_maybe_ghosting(gstPad, (sink is null) ? null : sink.getPadStruct()) != 0; - } - - /** - * Links @src to @sink, creating any #GstGhostPad's in between as necessary. - * - * This is a convenience function to save having to create and add intermediate - * #GstGhostPad's as required for linking across #GstBin boundaries. - * - * If @src or @sink pads don't have parent elements or do not share a common - * ancestor, the link will fail. - * - * Calling gst_pad_link_maybe_ghosting_full() with - * @flags == %GST_PAD_LINK_CHECK_DEFAULT is the recommended way of linking - * pads with safety checks applied. - * - * Params: - * sink = a #GstPad - * flags = some #GstPadLinkCheck flags - * - * Returns: whether the link succeeded. - * - * Since: 1.10 - */ - public bool linkMaybeGhostingFull(Pad sink, GstPadLinkCheck flags) - { - return gst_pad_link_maybe_ghosting_full(gstPad, (sink is null) ? null : sink.getPadStruct(), flags) != 0; - } - - /** - * Mark a pad for needing reconfiguration. The next call to - * gst_pad_check_reconfigure() will return %TRUE after this call. - */ - public void markReconfigure() - { - gst_pad_mark_reconfigure(gstPad); - } - - /** - * Check the #GST_PAD_FLAG_NEED_RECONFIGURE flag on @pad and return %TRUE - * if the flag was set. - * - * Returns: %TRUE is the GST_PAD_FLAG_NEED_RECONFIGURE flag is set on @pad. - */ - public bool needsReconfigure() - { - return gst_pad_needs_reconfigure(gstPad) != 0; - } - - /** - * Pause the task of @pad. This function will also wait until the - * function executed by the task is finished if this function is not - * called from the task function. - * - * Returns: a %TRUE if the task could be paused or %FALSE when the pad - * has no task. - */ - public bool pauseTask() - { - return gst_pad_pause_task(gstPad) != 0; - } - - /** - * Performs gst_pad_query() on the peer of @pad. - * - * The caller is responsible for both the allocation and deallocation of - * the query structure. - * - * Params: - * query = the #GstQuery to perform. - * - * Returns: %TRUE if the query could be performed. This function returns %FALSE - * if @pad has no peer. - */ - public bool peerQuery(Query query) - { - return gst_pad_peer_query(gstPad, (query is null) ? null : query.getQueryStruct()) != 0; - } - - /** - * Check if the peer of @pad accepts @caps. If @pad has no peer, this function - * returns %TRUE. - * - * Params: - * caps = a #GstCaps to check on the pad - * - * Returns: %TRUE if the peer of @pad can accept the caps or @pad has no peer. - */ - public bool peerQueryAcceptCaps(Caps caps) - { - return gst_pad_peer_query_accept_caps(gstPad, (caps is null) ? null : caps.getCapsStruct()) != 0; - } - - /** - * Gets the capabilities of the peer connected to this pad. Similar to - * gst_pad_query_caps(). - * - * When called on srcpads @filter contains the caps that - * upstream could produce in the order preferred by upstream. When - * called on sinkpads @filter contains the caps accepted by - * downstream in the preferred order. @filter might be %NULL but - * if it is not %NULL the returned caps will be a subset of @filter. - * - * Params: - * filter = a #GstCaps filter, or %NULL. - * - * Returns: the caps of the peer pad with incremented - * ref-count. When there is no peer pad, this function returns @filter or, - * when @filter is %NULL, ANY caps. - */ - public Caps peerQueryCaps(Caps filter) - { - auto __p = gst_pad_peer_query_caps(gstPad, (filter is null) ? null : filter.getCapsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Queries the peer pad of a given sink pad to convert @src_val in @src_format - * to @dest_format. - * - * Params: - * srcFormat = a #GstFormat to convert from. - * srcVal = a value to convert. - * destFormat = the #GstFormat to convert to. - * destVal = a pointer to the result. - * - * Returns: %TRUE if the query could be performed. - */ - public bool peerQueryConvert(GstFormat srcFormat, long srcVal, GstFormat destFormat, out long destVal) - { - return gst_pad_peer_query_convert(gstPad, srcFormat, srcVal, destFormat, &destVal) != 0; - } - - /** - * Queries the peer pad of a given sink pad for the total stream duration. - * - * Params: - * format = the #GstFormat requested - * duration = a location in which to store the total - * duration, or %NULL. - * - * Returns: %TRUE if the query could be performed. - */ - public bool peerQueryDuration(GstFormat format, out long duration) - { - return gst_pad_peer_query_duration(gstPad, format, &duration) != 0; - } - - /** - * Queries the peer of a given sink pad for the stream position. - * - * Params: - * format = the #GstFormat requested - * cur = a location in which to store the current - * position, or %NULL. - * - * Returns: %TRUE if the query could be performed. - */ - public bool peerQueryPosition(GstFormat format, out long cur) - { - return gst_pad_peer_query_position(gstPad, format, &cur) != 0; - } - - /** - * Checks if all internally linked pads of @pad accepts the caps in @query and - * returns the intersection of the results. - * - * This function is useful as a default accept caps query function for an element - * that can handle any stream format, but requires caps that are acceptable for - * all opposite pads. - * - * Params: - * query = an ACCEPT_CAPS #GstQuery. - * - * Returns: %TRUE if @query could be executed - */ - public bool proxyQueryAcceptCaps(Query query) - { - return gst_pad_proxy_query_accept_caps(gstPad, (query is null) ? null : query.getQueryStruct()) != 0; - } - - /** - * Calls gst_pad_query_caps() for all internally linked pads of @pad and returns - * the intersection of the results. - * - * This function is useful as a default caps query function for an element - * that can handle any stream format, but requires all its pads to have - * the same caps. Two such elements are tee and adder. - * - * Params: - * query = a CAPS #GstQuery. - * - * Returns: %TRUE if @query could be executed - */ - public bool proxyQueryCaps(Query query) - { - return gst_pad_proxy_query_caps(gstPad, (query is null) ? null : query.getQueryStruct()) != 0; - } - - /** - * Pulls a @buffer from the peer pad or fills up a provided buffer. - * - * This function will first trigger the pad block signal if it was - * installed. - * - * When @pad is not linked #GST_FLOW_NOT_LINKED is returned else this - * function returns the result of gst_pad_get_range() on the peer pad. - * See gst_pad_get_range() for a list of return values and for the - * semantics of the arguments of this function. - * - * If @buffer points to a variable holding %NULL, a valid new #GstBuffer will be - * placed in @buffer when this function returns #GST_FLOW_OK. The new buffer - * must be freed with gst_buffer_unref() after usage. When this function - * returns any other result value, @buffer will still point to %NULL. - * - * When @buffer points to a variable that points to a valid #GstBuffer, the - * buffer will be filled with the result data when this function returns - * #GST_FLOW_OK. When this function returns any other result value, - * @buffer will be unchanged. If the provided buffer is larger than @size, only - * @size bytes will be filled in the result buffer and its size will be updated - * accordingly. - * - * Note that less than @size bytes can be returned in @buffer when, for example, - * an EOS condition is near or when @buffer is not large enough to hold @size - * bytes. The caller should check the result buffer size to get the result size. - * - * Params: - * offset = The start offset of the buffer - * size = The length of the buffer - * buffer = a pointer to hold the #GstBuffer, returns - * GST_FLOW_ERROR if %NULL. - * - * Returns: a #GstFlowReturn from the peer pad. - * - * MT safe. - */ - public GstFlowReturn pullRange(ulong offset, uint size, out Buffer buffer) - { - GstBuffer* outbuffer = null; - - auto __p = gst_pad_pull_range(gstPad, offset, size, &outbuffer); - - buffer = ObjectG.getDObject!(Buffer)(outbuffer); - - return __p; - } - - /** - * Pushes a buffer to the peer of @pad. - * - * This function will call installed block probes before triggering any - * installed data probes. - * - * The function proceeds calling gst_pad_chain() on the peer pad and returns - * the value from that function. If @pad has no peer, #GST_FLOW_NOT_LINKED will - * be returned. - * - * In all cases, success or failure, the caller loses its reference to @buffer - * after calling this function. - * - * Params: - * buffer = the #GstBuffer to push returns GST_FLOW_ERROR - * if not. - * - * Returns: a #GstFlowReturn from the peer pad. - * - * MT safe. - */ - public GstFlowReturn push(Buffer buffer) - { - return gst_pad_push(gstPad, (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * Sends the event to the peer of the given pad. This function is - * mainly used by elements to send events to their peer - * elements. - * - * This function takes ownership of the provided event so you should - * gst_event_ref() it if you want to reuse the event after this call. - * - * Params: - * event = the #GstEvent to send to the pad. - * - * Returns: %TRUE if the event was handled. - * - * MT safe. - */ - public bool pushEvent(Event event) - { - return gst_pad_push_event(gstPad, (event is null) ? null : event.getEventStruct()) != 0; - } - - /** - * Pushes a buffer list to the peer of @pad. - * - * This function will call installed block probes before triggering any - * installed data probes. - * - * The function proceeds calling the chain function on the peer pad and returns - * the value from that function. If @pad has no peer, #GST_FLOW_NOT_LINKED will - * be returned. If the peer pad does not have any installed chainlist function - * every group buffer of the list will be merged into a normal #GstBuffer and - * chained via gst_pad_chain(). - * - * In all cases, success or failure, the caller loses its reference to @list - * after calling this function. - * - * Params: - * list = the #GstBufferList to push returns GST_FLOW_ERROR - * if not. - * - * Returns: a #GstFlowReturn from the peer pad. - * - * MT safe. - */ - public GstFlowReturn pushList(BufferList list) - { - return gst_pad_push_list(gstPad, (list is null) ? null : list.getBufferListStruct()); - } - - /** - * Dispatches a query to a pad. The query should have been allocated by the - * caller via one of the type-specific allocation functions. The element that - * the pad belongs to is responsible for filling the query with an appropriate - * response, which should then be parsed with a type-specific query parsing - * function. - * - * Again, the caller is responsible for both the allocation and deallocation of - * the query structure. - * - * Please also note that some queries might need a running pipeline to work. - * - * Params: - * query = the #GstQuery to perform. - * - * Returns: %TRUE if the query could be performed. - */ - public bool query(Query query) - { - return gst_pad_query(gstPad, (query is null) ? null : query.getQueryStruct()) != 0; - } - - /** - * Check if the given pad accepts the caps. - * - * Params: - * caps = a #GstCaps to check on the pad - * - * Returns: %TRUE if the pad can accept the caps. - */ - public bool queryAcceptCaps(Caps caps) - { - return gst_pad_query_accept_caps(gstPad, (caps is null) ? null : caps.getCapsStruct()) != 0; - } - - /** - * Gets the capabilities this pad can produce or consume. - * Note that this method doesn't necessarily return the caps set by sending a - * gst_event_new_caps() - use gst_pad_get_current_caps() for that instead. - * gst_pad_query_caps returns all possible caps a pad can operate with, using - * the pad's CAPS query function, If the query fails, this function will return - * @filter, if not %NULL, otherwise ANY. - * - * When called on sinkpads @filter contains the caps that - * upstream could produce in the order preferred by upstream. When - * called on srcpads @filter contains the caps accepted by - * downstream in the preferred order. @filter might be %NULL but - * if it is not %NULL the returned caps will be a subset of @filter. - * - * Note that this function does not return writable #GstCaps, use - * gst_caps_make_writable() before modifying the caps. - * - * Params: - * filter = suggested #GstCaps, or %NULL - * - * Returns: the caps of the pad with incremented ref-count. - */ - public Caps queryCaps(Caps filter) - { - auto __p = gst_pad_query_caps(gstPad, (filter is null) ? null : filter.getCapsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Queries a pad to convert @src_val in @src_format to @dest_format. - * - * Params: - * srcFormat = a #GstFormat to convert from. - * srcVal = a value to convert. - * destFormat = the #GstFormat to convert to. - * destVal = a pointer to the result. - * - * Returns: %TRUE if the query could be performed. - */ - public bool queryConvert(GstFormat srcFormat, long srcVal, GstFormat destFormat, out long destVal) - { - return gst_pad_query_convert(gstPad, srcFormat, srcVal, destFormat, &destVal) != 0; - } - - /** - * Invokes the default query handler for the given pad. - * The query is sent to all pads internally linked to @pad. Note that - * if there are many possible sink pads that are internally linked to - * @pad, only one will be sent the query. - * Multi-sinkpad elements should implement custom query handlers. - * - * Params: - * parent = the parent of @pad or %NULL - * query = the #GstQuery to handle. - * - * Returns: %TRUE if the query was performed successfully. - */ - public bool queryDefault(ObjectGst parent, Query query) - { - return gst_pad_query_default(gstPad, (parent is null) ? null : parent.getObjectGstStruct(), (query is null) ? null : query.getQueryStruct()) != 0; - } - - /** - * Queries a pad for the total stream duration. - * - * Params: - * format = the #GstFormat requested - * duration = a location in which to store the total - * duration, or %NULL. - * - * Returns: %TRUE if the query could be performed. - */ - public bool queryDuration(GstFormat format, out long duration) - { - return gst_pad_query_duration(gstPad, format, &duration) != 0; - } - - /** - * Queries a pad for the stream position. - * - * Params: - * format = the #GstFormat requested - * cur = A location in which to store the current position, or %NULL. - * - * Returns: %TRUE if the query could be performed. - */ - public bool queryPosition(GstFormat format, out long cur) - { - return gst_pad_query_position(gstPad, format, &cur) != 0; - } - - /** - * Remove the probe with @id from @pad. - * - * MT safe. - * - * Params: - * id = the probe id to remove - */ - public void removeProbe(gulong id) - { - gst_pad_remove_probe(gstPad, id); - } - - /** - * Sends the event to the pad. This function can be used - * by applications to send events in the pipeline. - * - * If @pad is a source pad, @event should be an upstream event. If @pad is a - * sink pad, @event should be a downstream event. For example, you would not - * send a #GST_EVENT_EOS on a src pad; EOS events only propagate downstream. - * Furthermore, some downstream events have to be serialized with data flow, - * like EOS, while some can travel out-of-band, like #GST_EVENT_FLUSH_START. If - * the event needs to be serialized with data flow, this function will take the - * pad's stream lock while calling its event function. - * - * To find out whether an event type is upstream, downstream, or downstream and - * serialized, see #GstEventTypeFlags, gst_event_type_get_flags(), - * #GST_EVENT_IS_UPSTREAM, #GST_EVENT_IS_DOWNSTREAM, and - * #GST_EVENT_IS_SERIALIZED. Note that in practice that an application or - * plugin doesn't need to bother itself with this information; the core handles - * all necessary locks and checks. - * - * This function takes ownership of the provided event so you should - * gst_event_ref() it if you want to reuse the event after this call. - * - * Params: - * event = the #GstEvent to send to the pad. - * - * Returns: %TRUE if the event was handled. - */ - public bool sendEvent(Event event) - { - return gst_pad_send_event(gstPad, (event is null) ? null : event.getEventStruct()) != 0; - } - - /** - * Sets the given activate function for @pad. The activate function will - * dispatch to gst_pad_activate_mode() to perform the actual activation. - * Only makes sense to set on sink pads. - * - * Call this function if your sink pad can start a pull-based task. - * - * Params: - * activate = the #GstPadActivateFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @activate will not be used anymore. - */ - public void setActivateFunctionFull(GstPadActivateFunction activate, void* userData, GDestroyNotify notify) - { - gst_pad_set_activate_function_full(gstPad, activate, userData, notify); - } - - /** - * Sets the given activate_mode function for the pad. An activate_mode function - * prepares the element for data passing. - * - * Params: - * activatemode = the #GstPadActivateModeFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @activatemode will not be used anymore. - */ - public void setActivatemodeFunctionFull(GstPadActivateModeFunction activatemode, void* userData, GDestroyNotify notify) - { - gst_pad_set_activatemode_function_full(gstPad, activatemode, userData, notify); - } - - /** - * Activates or deactivates the given pad. - * Normally called from within core state change functions. - * - * If @active, makes sure the pad is active. If it is already active, either in - * push or pull mode, just return. Otherwise dispatches to the pad's activate - * function to perform the actual activation. - * - * If not @active, calls gst_pad_activate_mode() with the pad's current mode - * and a %FALSE argument. - * - * Params: - * active = whether or not the pad should be active. - * - * Returns: %TRUE if the operation was successful. - * - * MT safe. - */ - public bool setActive(bool active) - { - return gst_pad_set_active(gstPad, active) != 0; - } - - /** - * Sets the given chain function for the pad. The chain function is called to - * process a #GstBuffer input buffer. see #GstPadChainFunction for more details. - * - * Params: - * chain = the #GstPadChainFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @chain will not be used anymore. - */ - public void setChainFunctionFull(GstPadChainFunction chain, void* userData, GDestroyNotify notify) - { - gst_pad_set_chain_function_full(gstPad, chain, userData, notify); - } - - /** - * Sets the given chain list function for the pad. The chainlist function is - * called to process a #GstBufferList input buffer list. See - * #GstPadChainListFunction for more details. - * - * Params: - * chainlist = the #GstPadChainListFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @chainlist will not be used anymore. - */ - public void setChainListFunctionFull(GstPadChainListFunction chainlist, void* userData, GDestroyNotify notify) - { - gst_pad_set_chain_list_function_full(gstPad, chainlist, userData, notify); - } - - /** - * Set the given private data gpointer on the pad. - * This function can only be used by the element that owns the pad. - * No locking is performed in this function. - * - * Params: - * priv = The private data to attach to the pad. - */ - public void setElementPrivate(void* priv) - { - gst_pad_set_element_private(gstPad, priv); - } - - /** - * Sets the given event handler for the pad. - * - * Params: - * event = the #GstPadEventFullFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @event will not be used anymore. - * - * Since: 1.8 - */ - public void setEventFullFunctionFull(GstPadEventFullFunction event, void* userData, GDestroyNotify notify) - { - gst_pad_set_event_full_function_full(gstPad, event, userData, notify); - } - - /** - * Sets the given event handler for the pad. - * - * Params: - * event = the #GstPadEventFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @event will not be used anymore. - */ - public void setEventFunctionFull(GstPadEventFunction event, void* userData, GDestroyNotify notify) - { - gst_pad_set_event_function_full(gstPad, event, userData, notify); - } - - /** - * Sets the given getrange function for the pad. The getrange function is - * called to produce a new #GstBuffer to start the processing pipeline. see - * #GstPadGetRangeFunction for a description of the getrange function. - * - * Params: - * get = the #GstPadGetRangeFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @get will not be used anymore. - */ - public void setGetrangeFunctionFull(GstPadGetRangeFunction get, void* userData, GDestroyNotify notify) - { - gst_pad_set_getrange_function_full(gstPad, get, userData, notify); - } - - /** - * Sets the given internal link iterator function for the pad. - * - * Params: - * iterintlink = the #GstPadIterIntLinkFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @iterintlink will not be used anymore. - */ - public void setIterateInternalLinksFunctionFull(GstPadIterIntLinkFunction iterintlink, void* userData, GDestroyNotify notify) - { - gst_pad_set_iterate_internal_links_function_full(gstPad, iterintlink, userData, notify); - } - - /** - * Sets the given link function for the pad. It will be called when - * the pad is linked with another pad. - * - * The return value #GST_PAD_LINK_OK should be used when the connection can be - * made. - * - * The return value #GST_PAD_LINK_REFUSED should be used when the connection - * cannot be made for some reason. - * - * If @link is installed on a source pad, it should call the #GstPadLinkFunction - * of the peer sink pad, if present. - * - * Params: - * link = the #GstPadLinkFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @link will not be used anymore. - */ - public void setLinkFunctionFull(GstPadLinkFunction link, void* userData, GDestroyNotify notify) - { - gst_pad_set_link_function_full(gstPad, link, userData, notify); - } - - /** - * Set the offset that will be applied to the running time of @pad. - * - * Params: - * offset = the offset - */ - public void setOffset(long offset) - { - gst_pad_set_offset(gstPad, offset); - } - - /** - * Set the given query function for the pad. - * - * Params: - * query = the #GstPadQueryFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @query will not be used anymore. - */ - public void setQueryFunctionFull(GstPadQueryFunction query, void* userData, GDestroyNotify notify) - { - gst_pad_set_query_function_full(gstPad, query, userData, notify); - } - - /** - * Sets the given unlink function for the pad. It will be called - * when the pad is unlinked. - * - * Note that the pad's lock is already held when the unlink - * function is called, so most pad functions cannot be called - * from within the callback. - * - * Params: - * unlink = the #GstPadUnlinkFunction to set. - * userData = user_data passed to @notify - * notify = notify called when @unlink will not be used anymore. - */ - public void setUnlinkFunctionFull(GstPadUnlinkFunction unlink, void* userData, GDestroyNotify notify) - { - gst_pad_set_unlink_function_full(gstPad, unlink, userData, notify); - } - - /** - * Starts a task that repeatedly calls @func with @user_data. This function - * is mostly used in pad activation functions to start the dataflow. - * The #GST_PAD_STREAM_LOCK of @pad will automatically be acquired - * before @func is called. - * - * Params: - * func = the task function to call - * userData = user data passed to the task function - * notify = called when @user_data is no longer referenced - * - * Returns: a %TRUE if the task could be started. - */ - public bool startTask(GstTaskFunction func, void* userData, GDestroyNotify notify) - { - return gst_pad_start_task(gstPad, func, userData, notify) != 0; - } - - /** - * Iterates all sticky events on @pad and calls @foreach_func for every - * event. If @foreach_func returns %FALSE the iteration is immediately stopped. - * - * Params: - * foreachFunc = the #GstPadStickyEventsForeachFunction that - * should be called for every event. - * userData = the optional user data. - */ - public void stickyEventsForeach(GstPadStickyEventsForeachFunction foreachFunc, void* userData) - { - gst_pad_sticky_events_foreach(gstPad, foreachFunc, userData); - } - - /** - * Stop the task of @pad. This function will also make sure that the - * function executed by the task will effectively stop if not called - * from the GstTaskFunction. - * - * This function will deadlock if called from the GstTaskFunction of - * the task. Use gst_task_pause() instead. - * - * Regardless of whether the pad has a task, the stream lock is acquired and - * released so as to ensure that streaming through this pad has finished. - * - * Returns: a %TRUE if the task could be stopped or %FALSE on error. - */ - public bool stopTask() - { - return gst_pad_stop_task(gstPad) != 0; - } - - /** - * Store the sticky @event on @pad - * - * Params: - * event = a #GstEvent - * - * Returns: #GST_FLOW_OK on success, #GST_FLOW_FLUSHING when the pad - * was flushing or #GST_FLOW_EOS when the pad was EOS. - * - * Since: 1.2 - */ - public GstFlowReturn storeStickyEvent(Event event) - { - return gst_pad_store_sticky_event(gstPad, (event is null) ? null : event.getEventStruct()); - } - - /** - * Unlinks the source pad from the sink pad. Will emit the #GstPad::unlinked - * signal on both pads. - * - * Params: - * sinkpad = the sink #GstPad to unlink. - * - * Returns: %TRUE if the pads were unlinked. This function returns %FALSE if - * the pads were not linked together. - * - * MT safe. - */ - public bool unlink(Pad sinkpad) - { - return gst_pad_unlink(gstPad, (sinkpad is null) ? null : sinkpad.getPadStruct()) != 0; - } - - /** - * A helper function you can use that sets the FIXED_CAPS flag - * This way the default CAPS query will always return the negotiated caps - * or in case the pad is not negotiated, the padtemplate caps. - * - * The negotiated caps are the caps of the last CAPS event that passed on the - * pad. Use this function on a pad that, once it negotiated to a CAPS, cannot - * be renegotiated to something else. - */ - public void useFixedCaps() - { - gst_pad_use_fixed_caps(gstPad); - } - - /** - * Signals that a pad has been linked to the peer pad. - * - * Params: - * peer = the peer pad that has been connected - */ - gulong addOnLinked(void delegate(Pad, Pad) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "linked", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signals that a pad has been unlinked from the peer pad. - * - * Params: - * peer = the peer pad that has been disconnected - */ - gulong addOnUnlinked(void delegate(Pad, Pad) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "unlinked", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Gets a string representing the given flow return. - * - * Params: - * ret = a #GstFlowReturn to get the name of. - * - * Returns: a static string with the name of the flow return. - */ - public static string flowGetName(GstFlowReturn ret) - { - return Str.toString(gst_flow_get_name(ret)); - } - - /** - * Get the unique quark for the given GstFlowReturn. - * - * Params: - * ret = a #GstFlowReturn to get the quark of. - * - * Returns: the quark associated with the flow return or 0 if an - * invalid return was specified. - */ - public static GQuark flowToQuark(GstFlowReturn ret) - { - return gst_flow_to_quark(ret); - } - - /** - * Return the name of a pad mode, for use in debug messages mostly. - * - * Params: - * mode = the pad mode - * - * Returns: short mnemonic for pad mode @mode - */ - public static string modeGetName(GstPadMode mode) - { - return Str.toString(gst_pad_mode_get_name(mode)); - } -} diff --git a/generated/gstreamer/gstreamer/PadProbeInfo.d b/generated/gstreamer/gstreamer/PadProbeInfo.d deleted file mode 100644 index 01262d5dd..000000000 --- a/generated/gstreamer/gstreamer/PadProbeInfo.d +++ /dev/null @@ -1,128 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.PadProbeInfo; - -private import gobject.ObjectG; -private import gstreamer.Buffer; -private import gstreamer.BufferList; -private import gstreamer.Event; -private import gstreamer.Query; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Info passed in the #GstPadProbeCallback. - */ -public class PadProbeInfo -{ - /** the main Gtk struct */ - protected GstPadProbeInfo* gstPadProbeInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstPadProbeInfo* getPadProbeInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPadProbeInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstPadProbeInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPadProbeInfo* gstPadProbeInfo, bool ownedRef = false) - { - this.gstPadProbeInfo = gstPadProbeInfo; - this.ownedRef = ownedRef; - } - - - /** - * Returns: The #GstBuffer from the probe - */ - public Buffer getBuffer() - { - auto __p = gst_pad_probe_info_get_buffer(gstPadProbeInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p); - } - - /** - * Returns: The #GstBufferList from the probe - */ - public BufferList getBufferList() - { - auto __p = gst_pad_probe_info_get_buffer_list(gstPadProbeInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferList)(cast(GstBufferList*) __p); - } - - /** - * Returns: The #GstEvent from the probe - */ - public Event getEvent() - { - auto __p = gst_pad_probe_info_get_event(gstPadProbeInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Event)(cast(GstEvent*) __p); - } - - /** - * Returns: The #GstQuery from the probe - */ - public Query getQuery() - { - auto __p = gst_pad_probe_info_get_query(gstPadProbeInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Query)(cast(GstQuery*) __p); - } -} diff --git a/generated/gstreamer/gstreamer/PadTemplate.d b/generated/gstreamer/gstreamer/PadTemplate.d deleted file mode 100644 index 202f82483..000000000 --- a/generated/gstreamer/gstreamer/PadTemplate.d +++ /dev/null @@ -1,292 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.PadTemplate; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.Caps; -private import gstreamer.ObjectGst; -private import gstreamer.Pad; -private import gstreamer.StaticPadTemplate; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * Padtemplates describe the possible media types a pad or an elementfactory can - * handle. This allows for both inspection of handled types before loading the - * element plugin as well as identifying pads on elements that are not yet - * created (request or sometimes pads). - * - * Pad and PadTemplates have #GstCaps attached to it to describe the media type - * they are capable of dealing with. gst_pad_template_get_caps() or - * GST_PAD_TEMPLATE_CAPS() are used to get the caps of a padtemplate. It's not - * possible to modify the caps of a padtemplate after creation. - * - * PadTemplates have a #GstPadPresence property which identifies the lifetime - * of the pad and that can be retrieved with GST_PAD_TEMPLATE_PRESENCE(). Also - * the direction of the pad can be retrieved from the #GstPadTemplate with - * GST_PAD_TEMPLATE_DIRECTION(). - * - * The GST_PAD_TEMPLATE_NAME_TEMPLATE () is important for GST_PAD_REQUEST pads - * because it has to be used as the name in the gst_element_get_request_pad() - * call to instantiate a pad from this template. - * - * Padtemplates can be created with gst_pad_template_new() or with - * gst_static_pad_template_get (), which creates a #GstPadTemplate from a - * #GstStaticPadTemplate that can be filled with the - * convenient GST_STATIC_PAD_TEMPLATE() macro. - * - * A padtemplate can be used to create a pad (see gst_pad_new_from_template() - * or gst_pad_new_from_static_template ()) or to add to an element class - * (see gst_element_class_add_static_pad_template ()). - * - * The following code example shows the code to create a pad from a padtemplate. - * |[ - * GstStaticPadTemplate my_template = - * GST_STATIC_PAD_TEMPLATE ( - * "sink", // the name of the pad - * GST_PAD_SINK, // the direction of the pad - * GST_PAD_ALWAYS, // when this pad will be present - * GST_STATIC_CAPS ( // the capabilities of the padtemplate - * "audio/x-raw, " - * "channels = (int) [ 1, 6 ]" - * ) - * ); - * void - * my_method (void) - * { - * GstPad *pad; - * pad = gst_pad_new_from_static_template (&my_template, "sink"); - * ... - * } - * ]| - * - * The following example shows you how to add the padtemplate to an - * element class, this is usually done in the class_init of the class: - * |[ - * static void - * my_element_class_init (GstMyElementClass *klass) - * { - * GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass); - * - * gst_element_class_add_static_pad_template (gstelement_class, &my_template); - * } - * ]| - */ -public class PadTemplate : ObjectGst -{ - /** the main Gtk struct */ - protected GstPadTemplate* gstPadTemplate; - - /** Get the main Gtk struct */ - public GstPadTemplate* getPadTemplateStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPadTemplate; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstPadTemplate; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPadTemplate* gstPadTemplate, bool ownedRef = false) - { - this.gstPadTemplate = gstPadTemplate; - super(cast(GstObject*)gstPadTemplate, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_pad_template_get_type(); - } - - /** - * Creates a new pad template with a name according to the given template - * and with the given arguments. - * - * Params: - * nameTemplate = the name template. - * direction = the #GstPadDirection of the template. - * presence = the #GstPadPresence of the pad. - * caps = a #GstCaps set for the template. - * - * Returns: a new #GstPadTemplate. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string nameTemplate, GstPadDirection direction, GstPadPresence presence, Caps caps) - { - auto __p = gst_pad_template_new(Str.toStringz(nameTemplate), direction, presence, (caps is null) ? null : caps.getCapsStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstPadTemplate*) __p); - } - - /** - * Converts a #GstStaticPadTemplate into a #GstPadTemplate with a type. - * - * Params: - * padTemplate = the static pad template - * padType = The #GType of the pad to create - * - * Returns: a new #GstPadTemplate. - * - * Since: 1.14 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(StaticPadTemplate padTemplate, GType padType) - { - auto __p = gst_pad_template_new_from_static_pad_template_with_gtype((padTemplate is null) ? null : padTemplate.getStaticPadTemplateStruct(), padType); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_static_pad_template_with_gtype"); - } - - this(cast(GstPadTemplate*) __p); - } - - /** - * Creates a new pad template with a name according to the given template - * and with the given arguments. - * - * Params: - * nameTemplate = the name template. - * direction = the #GstPadDirection of the template. - * presence = the #GstPadPresence of the pad. - * caps = a #GstCaps set for the template. - * padType = The #GType of the pad to create - * - * Returns: a new #GstPadTemplate. - * - * Since: 1.14 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string nameTemplate, GstPadDirection direction, GstPadPresence presence, Caps caps, GType padType) - { - auto __p = gst_pad_template_new_with_gtype(Str.toStringz(nameTemplate), direction, presence, (caps is null) ? null : caps.getCapsStruct(), padType); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_gtype"); - } - - this(cast(GstPadTemplate*) __p); - } - - /** - * Gets the capabilities of the pad template. - * - * Returns: the #GstCaps of the pad template. - * Unref after usage. - */ - public Caps getCaps() - { - auto __p = gst_pad_template_get_caps(gstPadTemplate); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * See gst_pad_template_set_documentation_caps(). - * - * Returns: The caps to document. For convenience, this will return - * gst_pad_template_get_caps() when no documentation caps were set. - * - * Since: 1.18 - */ - public Caps getDocumentationCaps() - { - auto __p = gst_pad_template_get_documentation_caps(gstPadTemplate); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Emit the pad-created signal for this template when created by this pad. - * - * Params: - * pad = the #GstPad that created it - */ - public void padCreated(Pad pad) - { - gst_pad_template_pad_created(gstPadTemplate, (pad is null) ? null : pad.getPadStruct()); - } - - /** - * Certain elements will dynamically construct the caps of their - * pad templates. In order not to let environment-specific information - * into the documentation, element authors should use this method to - * expose "stable" caps to the reader. - * - * Params: - * caps = the documented capabilities - * - * Since: 1.18 - */ - public void setDocumentationCaps(Caps caps) - { - gst_pad_template_set_documentation_caps(gstPadTemplate, (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * This signal is fired when an element creates a pad from this template. - * - * Params: - * pad = the pad that was created. - */ - gulong addOnPadCreated(void delegate(Pad, PadTemplate) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "pad-created", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/ParamSpecFraction.d b/generated/gstreamer/gstreamer/ParamSpecFraction.d deleted file mode 100644 index 829ba2c7a..000000000 --- a/generated/gstreamer/gstreamer/ParamSpecFraction.d +++ /dev/null @@ -1,96 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ParamSpecFraction; - -private import glib.ConstructionException; -private import glib.Str; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A GParamSpec derived structure that contains the meta data for fractional - * properties. - */ -public class ParamSpecFraction -{ - /** the main Gtk struct */ - protected GstParamSpecFraction* gstParamSpecFraction; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstParamSpecFraction* getParamSpecFractionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstParamSpecFraction; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstParamSpecFraction; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstParamSpecFraction* gstParamSpecFraction, bool ownedRef = false) - { - this.gstParamSpecFraction = gstParamSpecFraction; - this.ownedRef = ownedRef; - } - - /** - * This function creates a fraction GParamSpec for use by objects/elements - * that want to expose properties of fraction type. This function is typically - * used in connection with g_object_class_install_property() in a GObjects's - * instance_init function. - * Params: - * name = canonical name of the property specified - * nick = nick name for the property specified - * blurb = description of the property specified - * minNum = minimum value (fraction numerator) - * minDenom = minimum value (fraction denominator) - * maxNum = maximum value (fraction numerator) - * maxDenom = maximum value (fraction denominator) - * defaultNum = default value (fraction numerator) - * defaultDenom = default value (fraction denominator) - * flags = flags for the property specified - * Returns: a newly created parameter specification. [transfer full] - */ - public this(string name, string nick, string blurb, int minNum, int minDenom, int maxNum, int maxDenom, int defaultNum, int defaultDenom, GParamFlags flags) - { - auto p = gst_param_spec_fraction(Str.toStringz(name), Str.toStringz(nick), Str.toStringz(blurb), minNum, minDenom, maxNum, maxDenom, defaultNum, defaultDenom, flags); - if(p is null) - { - throw new ConstructionException("null returned by gst_param_spec_fraction"); - } - this(cast(GstParamSpecFraction*) p); - } - - /** - */ -} diff --git a/generated/gstreamer/gstreamer/ParentBufferMeta.d b/generated/gstreamer/gstreamer/ParentBufferMeta.d deleted file mode 100644 index 711ac209d..000000000 --- a/generated/gstreamer/gstreamer/ParentBufferMeta.d +++ /dev/null @@ -1,63 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ParentBufferMeta; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The #GstParentBufferMeta is a #GstMeta which can be attached to a #GstBuffer - * to hold a reference to another buffer that is only released when the child - * #GstBuffer is released. - * - * Typically, #GstParentBufferMeta is used when the child buffer is directly - * using the #GstMemory of the parent buffer, and wants to prevent the parent - * buffer from being returned to a buffer pool until the #GstMemory is available - * for re-use. - * - * Since: 1.6 - */ -public struct ParentBufferMeta -{ - - /** - * Get the global #GstMetaInfo describing the #GstParentBufferMeta meta. - * - * Returns: The #GstMetaInfo - * - * Since: 1.6 - */ - public static GstMetaInfo* getInfo() - { - return gst_parent_buffer_meta_get_info(); - } - - /** */ - public static GType getType() - { - return gst_parent_buffer_meta_api_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/Parse.d b/generated/gstreamer/gstreamer/Parse.d deleted file mode 100644 index 4bd5bc35f..000000000 --- a/generated/gstreamer/gstreamer/Parse.d +++ /dev/null @@ -1,286 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Parse; - -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; -private import gstreamer.Bin; -private import gstreamer.Element; -private import gstreamer.ParseContext; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct Parse -{ - - /** - * This is a convenience wrapper around gst_parse_launch() to create a - * #GstBin from a gst-launch-style pipeline description. See - * gst_parse_launch() and the gst-launch man page for details about the - * syntax. Ghost pads on the bin for unlinked source or sink pads - * within the bin can automatically be created (but only a maximum of - * one ghost pad for each direction will be created; if you expect - * multiple unlinked source pads or multiple unlinked sink pads - * and want them all ghosted, you will have to create the ghost pads - * yourself). - * - * Params: - * binDescription = command line describing the bin - * ghostUnlinkedPads = whether to automatically create ghost pads - * for unlinked source or sink pads within the bin - * - * Returns: a - * newly-created bin, or %NULL if an error occurred. - * - * Throws: GException on failure. - */ - public static Bin binFromDescription(string binDescription, bool ghostUnlinkedPads) - { - GError* err = null; - - auto __p = gst_parse_bin_from_description(Str.toStringz(binDescription), ghostUnlinkedPads, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Bin)(cast(GstBin*) __p); - } - - /** - * This is a convenience wrapper around gst_parse_launch() to create a - * #GstBin from a gst-launch-style pipeline description. See - * gst_parse_launch() and the gst-launch man page for details about the - * syntax. Ghost pads on the bin for unlinked source or sink pads - * within the bin can automatically be created (but only a maximum of - * one ghost pad for each direction will be created; if you expect - * multiple unlinked source pads or multiple unlinked sink pads - * and want them all ghosted, you will have to create the ghost pads - * yourself). - * - * Params: - * binDescription = command line describing the bin - * ghostUnlinkedPads = whether to automatically create ghost pads - * for unlinked source or sink pads within the bin - * context = a parse context allocated with - * gst_parse_context_new(), or %NULL - * flags = parsing options, or #GST_PARSE_FLAG_NONE - * - * Returns: a newly-created - * element, which is guaranteed to be a bin unless - * #GST_PARSE_FLAG_NO_SINGLE_ELEMENT_BINS was passed, or %NULL if an error - * occurred. - * - * Throws: GException on failure. - */ - public static Element binFromDescriptionFull(string binDescription, bool ghostUnlinkedPads, ParseContext context, GstParseFlags flags) - { - GError* err = null; - - auto __p = gst_parse_bin_from_description_full(Str.toStringz(binDescription), ghostUnlinkedPads, (context is null) ? null : context.getParseContextStruct(), flags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Get the error quark used by the parsing subsystem. - * - * Returns: the quark of the parse errors. - */ - public static GQuark errorQuark() - { - return gst_parse_error_quark(); - } - - /** - * Create a new pipeline based on command line syntax. - * Please note that you might get a return value that is not %NULL even though - * the @error is set. In this case there was a recoverable parsing error and you - * can try to play the pipeline. - * - * To create a sub-pipeline (bin) for embedding into an existing pipeline - * use gst_parse_bin_from_description(). - * - * Params: - * pipelineDescription = the command line describing the pipeline - * - * Returns: a new element on success, %NULL on - * failure. If more than one toplevel element is specified by the - * @pipeline_description, all elements are put into a #GstPipeline, which - * than is returned. - * - * Throws: GException on failure. - */ - public static Element launch(string pipelineDescription) - { - GError* err = null; - - auto __p = gst_parse_launch(Str.toStringz(pipelineDescription), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Create a new pipeline based on command line syntax. - * Please note that you might get a return value that is not %NULL even though - * the @error is set. In this case there was a recoverable parsing error and you - * can try to play the pipeline. - * - * To create a sub-pipeline (bin) for embedding into an existing pipeline - * use gst_parse_bin_from_description_full(). - * - * Params: - * pipelineDescription = the command line describing the pipeline - * context = a parse context allocated with - * gst_parse_context_new(), or %NULL - * flags = parsing options, or #GST_PARSE_FLAG_NONE - * - * Returns: a new element on success, %NULL on - * failure. If more than one toplevel element is specified by the - * @pipeline_description, all elements are put into a #GstPipeline, which - * then is returned (unless the GST_PARSE_FLAG_PLACE_IN_BIN flag is set, in - * which case they are put in a #GstBin instead). - * - * Throws: GException on failure. - */ - public static Element launchFull(string pipelineDescription, ParseContext context, GstParseFlags flags) - { - GError* err = null; - - auto __p = gst_parse_launch_full(Str.toStringz(pipelineDescription), (context is null) ? null : context.getParseContextStruct(), flags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Create a new element based on command line syntax. - * @error will contain an error message if an erroneous pipeline is specified. - * An error does not mean that the pipeline could not be constructed. - * - * Params: - * argv = null-terminated array of arguments - * - * Returns: a new element on success and %NULL - * on failure. - * - * Throws: GException on failure. - */ - public static Element launchv(string[] argv) - { - GError* err = null; - - auto __p = gst_parse_launchv(Str.toStringzArray(argv), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } - - /** - * Create a new element based on command line syntax. - * @error will contain an error message if an erroneous pipeline is specified. - * An error does not mean that the pipeline could not be constructed. - * - * Params: - * argv = null-terminated array of arguments - * context = a parse context allocated with - * gst_parse_context_new(), or %NULL - * flags = parsing options, or #GST_PARSE_FLAG_NONE - * - * Returns: a new element on success; on - * failure, either %NULL or a partially-constructed bin or element will be - * returned and @error will be set (unless you passed - * #GST_PARSE_FLAG_FATAL_ERRORS in @flags, then %NULL will always be returned - * on failure) - * - * Throws: GException on failure. - */ - public static Element launchvFull(string[] argv, ParseContext context, GstParseFlags flags) - { - GError* err = null; - - auto __p = gst_parse_launchv_full(Str.toStringzArray(argv), (context is null) ? null : context.getParseContextStruct(), flags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Element)(cast(GstElement*) __p); - } -} diff --git a/generated/gstreamer/gstreamer/ParseContext.d b/generated/gstreamer/gstreamer/ParseContext.d deleted file mode 100644 index 96c043b96..000000000 --- a/generated/gstreamer/gstreamer/ParseContext.d +++ /dev/null @@ -1,148 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ParseContext; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * Opaque structure. - */ -public class ParseContext -{ - /** the main Gtk struct */ - protected GstParseContext* gstParseContext; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstParseContext* getParseContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstParseContext; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstParseContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstParseContext* gstParseContext, bool ownedRef = false) - { - this.gstParseContext = gstParseContext; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_parse_context_free(gstParseContext); - } - - - /** */ - public static GType getType() - { - return gst_parse_context_get_type(); - } - - /** - * Allocates a parse context for use with gst_parse_launch_full() or - * gst_parse_launchv_full(). - * - * Free-function: gst_parse_context_free - * - * Returns: a newly-allocated parse context. Free - * with gst_parse_context_free() when no longer needed. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_parse_context_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstParseContext*) __p); - } - - /** - * Copies the @context. - * - * Returns: A copied #GstParseContext - * - * Since: 1.12.1 - */ - public ParseContext copy() - { - auto __p = gst_parse_context_copy(gstParseContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ParseContext)(cast(GstParseContext*) __p, true); - } - - /** - * Frees a parse context previously allocated with gst_parse_context_new(). - */ - public void free() - { - gst_parse_context_free(gstParseContext); - ownedRef = false; - } - - /** - * Retrieve missing elements from a previous run of gst_parse_launch_full() - * or gst_parse_launchv_full(). Will only return results if an error code - * of %GST_PARSE_ERROR_NO_SUCH_ELEMENT was returned. - * - * Returns: a - * %NULL-terminated array of element factory name strings of missing - * elements. Free with g_strfreev() when no longer needed. - */ - public string[] getMissingElements() - { - auto retStr = gst_parse_context_get_missing_elements(gstParseContext); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } -} diff --git a/generated/gstreamer/gstreamer/Pipeline.d b/generated/gstreamer/gstreamer/Pipeline.d deleted file mode 100644 index f6e1155ab..000000000 --- a/generated/gstreamer/gstreamer/Pipeline.d +++ /dev/null @@ -1,360 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Pipeline; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gstreamer.Bin; -private import gstreamer.Bus; -private import gstreamer.Clock; -private import gstreamer.Element; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A #GstPipeline is a special #GstBin used as the toplevel container for - * the filter graph. The #GstPipeline will manage the selection and - * distribution of a global #GstClock as well as provide a #GstBus to the - * application. - * - * gst_pipeline_new() is used to create a pipeline. when you are done with - * the pipeline, use gst_object_unref() to free its resources including all - * added #GstElement objects (if not otherwise referenced). - * - * Elements are added and removed from the pipeline using the #GstBin - * methods like gst_bin_add() and gst_bin_remove() (see #GstBin). - * - * Before changing the state of the #GstPipeline (see #GstElement) a #GstBus - * can be retrieved with gst_pipeline_get_bus(). This bus can then be - * used to receive #GstMessage from the elements in the pipeline. - * - * By default, a #GstPipeline will automatically flush the pending #GstBus - * messages when going to the NULL state to ensure that no circular - * references exist when no messages are read from the #GstBus. This - * behaviour can be changed with gst_pipeline_set_auto_flush_bus(). - * - * When the #GstPipeline performs the PAUSED to PLAYING state change it will - * select a clock for the elements. The clock selection algorithm will by - * default select a clock provided by an element that is most upstream - * (closest to the source). For live pipelines (ones that return - * #GST_STATE_CHANGE_NO_PREROLL from the gst_element_set_state() call) this - * will select the clock provided by the live source. For normal pipelines - * this will select a clock provided by the sinks (most likely the audio - * sink). If no element provides a clock, a default #GstSystemClock is used. - * - * The clock selection can be controlled with the gst_pipeline_use_clock() - * method, which will enforce a given clock on the pipeline. With - * gst_pipeline_auto_clock() the default clock selection algorithm can be - * restored. - * - * A #GstPipeline maintains a running time for the elements. The running - * time is defined as the difference between the current clock time and - * the base time. When the pipeline goes to READY or a flushing seek is - * performed on it, the running time is reset to 0. When the pipeline is - * set from PLAYING to PAUSED, the current clock time is sampled and used to - * configure the base time for the elements when the pipeline is set - * to PLAYING again. The effect is that the running time (as the difference - * between the clock time and the base time) will count how much time was spent - * in the PLAYING state. This default behaviour can be changed with the - * gst_element_set_start_time() method. - */ -public class Pipeline : Bin -{ - /** the main Gtk struct */ - protected GstPipeline* gstPipeline; - - /** Get the main Gtk struct */ - public GstPipeline* getPipelineStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPipeline; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstPipeline; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPipeline* gstPipeline, bool ownedRef = false) - { - this.gstPipeline = gstPipeline; - super(cast(GstBin*)gstPipeline, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_pipeline_get_type(); - } - - /** - * Create a new pipeline with the given name. - * - * Params: - * name = name of new pipeline - * - * Returns: newly created GstPipeline - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name) - { - auto __p = gst_pipeline_new(Str.toStringz(name)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstPipeline*) __p); - } - - /** - * Let @pipeline select a clock automatically. This is the default - * behaviour. - * - * Use this function if you previous forced a fixed clock with - * gst_pipeline_use_clock() and want to restore the default - * pipeline clock selection algorithm. - * - * MT safe. - */ - public void autoClock() - { - gst_pipeline_auto_clock(gstPipeline); - } - - /** - * Check if @pipeline will automatically flush messages when going to - * the NULL state. - * - * Returns: whether the pipeline will automatically flush its bus when - * going from READY to NULL state or not. - * - * MT safe. - */ - public bool getAutoFlushBus() - { - return gst_pipeline_get_auto_flush_bus(gstPipeline) != 0; - } - - /** - * Gets the #GstBus of @pipeline. The bus allows applications to receive - * #GstMessage packets. - * - * Returns: a #GstBus, unref after usage. - * - * MT safe. - */ - public override Bus getBus() - { - auto __p = gst_pipeline_get_bus(gstPipeline); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Bus)(cast(GstBus*) __p, true); - } - - /** - * Gets the current clock used by @pipeline. Users of object - * oriented languages should use gst_pipeline_get_pipeline_clock() - * to avoid confusion with gst_element_get_clock() which has a different behavior. - * - * Unlike gst_element_get_clock(), this function will always return a - * clock, even if the pipeline is not in the PLAYING state. - * - * Returns: a #GstClock, unref after usage. - */ - public override Clock getClock() - { - auto __p = gst_pipeline_get_clock(gstPipeline); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clock)(cast(GstClock*) __p, true); - } - - /** - * Get the configured delay (see gst_pipeline_set_delay()). - * - * Returns: The configured delay. - * - * MT safe. - */ - public GstClockTime getDelay() - { - return gst_pipeline_get_delay(gstPipeline); - } - - /** - * Gets the latency that should be configured on the pipeline. See - * gst_pipeline_set_latency(). - * - * Returns: Latency to configure on the pipeline or GST_CLOCK_TIME_NONE - * - * Since: 1.6 - */ - public GstClockTime getLatency() - { - return gst_pipeline_get_latency(gstPipeline); - } - - /** - * Gets the current clock used by @pipeline. - * - * Unlike gst_element_get_clock(), this function will always return a - * clock, even if the pipeline is not in the PLAYING state. - * - * Returns: a #GstClock, unref after usage. - * - * Since: 1.6 - */ - public Clock getPipelineClock() - { - auto __p = gst_pipeline_get_pipeline_clock(gstPipeline); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clock)(cast(GstClock*) __p, true); - } - - /** - * Usually, when a pipeline goes from READY to NULL state, it automatically - * flushes all pending messages on the bus, which is done for refcounting - * purposes, to break circular references. - * - * This means that applications that update state using (async) bus messages - * (e.g. do certain things when a pipeline goes from PAUSED to READY) might - * not get to see messages when the pipeline is shut down, because they might - * be flushed before they can be dispatched in the main thread. This behaviour - * can be disabled using this function. - * - * It is important that all messages on the bus are handled when the - * automatic flushing is disabled else memory leaks will be introduced. - * - * MT safe. - * - * Params: - * autoFlush = whether or not to automatically flush the bus when - * the pipeline goes from READY to NULL state - */ - public void setAutoFlushBus(bool autoFlush) - { - gst_pipeline_set_auto_flush_bus(gstPipeline, autoFlush); - } - - /** - * Set the clock for @pipeline. The clock will be distributed - * to all the elements managed by the pipeline. - * - * Params: - * clock = the clock to set - * - * Returns: %TRUE if the clock could be set on the pipeline. %FALSE if - * some element did not accept the clock. - * - * MT safe. - */ - public override bool setClock(Clock clock) - { - return gst_pipeline_set_clock(gstPipeline, (clock is null) ? null : clock.getClockStruct()) != 0; - } - - /** - * Set the expected delay needed for all elements to perform the - * PAUSED to PLAYING state change. @delay will be added to the - * base time of the elements so that they wait an additional @delay - * amount of time before starting to process buffers and cannot be - * #GST_CLOCK_TIME_NONE. - * - * This option is used for tuning purposes and should normally not be - * used. - * - * MT safe. - * - * Params: - * delay = the delay - */ - public void setDelay(GstClockTime delay) - { - gst_pipeline_set_delay(gstPipeline, delay); - } - - /** - * Sets the latency that should be configured on the pipeline. Setting - * GST_CLOCK_TIME_NONE will restore the default behaviour of using the minimum - * latency from the LATENCY query. Setting this is usually not required and - * the pipeline will figure out an appropriate latency automatically. - * - * Setting a too low latency, especially lower than the minimum latency from - * the LATENCY query, will most likely cause the pipeline to fail. - * - * Params: - * latency = latency to configure - * - * Since: 1.6 - */ - public void setLatency(GstClockTime latency) - { - gst_pipeline_set_latency(gstPipeline, latency); - } - - /** - * Force @pipeline to use the given @clock. The pipeline will - * always use the given clock even if new clock providers are added - * to this pipeline. - * - * If @clock is %NULL all clocking will be disabled which will make - * the pipeline run as fast as possible. - * - * MT safe. - * - * Params: - * clock = the clock to use - */ - public void useClock(Clock clock) - { - gst_pipeline_use_clock(gstPipeline, (clock is null) ? null : clock.getClockStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/Plugin.d b/generated/gstreamer/gstreamer/Plugin.d deleted file mode 100644 index 57d9313c4..000000000 --- a/generated/gstreamer/gstreamer/Plugin.d +++ /dev/null @@ -1,464 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Plugin; - -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.ObjectGst; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * GStreamer is extensible, so #GstElement instances can be loaded at runtime. - * A plugin system can provide one or more of the basic GStreamer - * #GstPluginFeature subclasses. - * - * A plugin should export a symbol `gst_plugin_desc` that is a - * struct of type #GstPluginDesc. - * the plugin loader will check the version of the core library the plugin was - * linked against and will create a new #GstPlugin. It will then call the - * #GstPluginInitFunc function that was provided in the - * `gst_plugin_desc`. - * - * Once you have a handle to a #GstPlugin (e.g. from the #GstRegistry), you - * can add any object that subclasses #GstPluginFeature. - * - * Usually plugins are always automatically loaded so you don't need to call - * gst_plugin_load() explicitly to bring it into memory. There are options to - * statically link plugins to an app or even use GStreamer without a plugin - * repository in which case gst_plugin_load() can be needed to bring the plugin - * into memory. - */ -public class Plugin : ObjectGst -{ - /** the main Gtk struct */ - protected GstPlugin* gstPlugin; - - /** Get the main Gtk struct */ - public GstPlugin* getPluginStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPlugin; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstPlugin; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPlugin* gstPlugin, bool ownedRef = false) - { - this.gstPlugin = gstPlugin; - super(cast(GstObject*)gstPlugin, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_plugin_get_type(); - } - - /** - * Unrefs each member of @list, then frees the list. - * - * Params: - * list = list of #GstPlugin - */ - public static void listFree(ListG list) - { - gst_plugin_list_free((list is null) ? null : list.getListGStruct()); - } - - /** - * Load the named plugin. Refs the plugin. - * - * Params: - * name = name of plugin to load - * - * Returns: a reference to a loaded plugin, or - * %NULL on error. - */ - public static Plugin loadByName(string name) - { - auto __p = gst_plugin_load_by_name(Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Plugin)(cast(GstPlugin*) __p, true); - } - - /** - * Loads the given plugin and refs it. Caller needs to unref after use. - * - * Params: - * filename = the plugin filename to load - * - * Returns: a reference to the existing loaded GstPlugin, a - * reference to the newly-loaded GstPlugin, or %NULL if an error occurred. - * - * Throws: GException on failure. - */ - public static Plugin loadFile(string filename) - { - GError* err = null; - - auto __p = gst_plugin_load_file(Str.toStringz(filename), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Plugin)(cast(GstPlugin*) __p, true); - } - - /** - * Registers a static plugin, ie. a plugin which is private to an application - * or library and contained within the application or library (as opposed to - * being shipped as a separate module file). - * - * You must make sure that GStreamer has been initialised (with gst_init() or - * via gst_init_get_option_group()) before calling this function. - * - * Params: - * majorVersion = the major version number of the GStreamer core that the - * plugin was compiled for, you can just use GST_VERSION_MAJOR here - * minorVersion = the minor version number of the GStreamer core that the - * plugin was compiled for, you can just use GST_VERSION_MINOR here - * name = a unique name of the plugin (ideally prefixed with an application- or - * library-specific namespace prefix in order to avoid name conflicts in - * case a similar plugin with the same name ever gets added to GStreamer) - * description = description of the plugin - * initFunc = pointer to the init function of this plugin. - * version_ = version string of the plugin - * license = effective license of plugin. Must be one of the approved licenses - * (see #GstPluginDesc above) or the plugin will not be registered. - * source = source module plugin belongs to - * package_ = shipped package plugin belongs to - * origin = URL to provider of plugin - * - * Returns: %TRUE if the plugin was registered correctly, otherwise %FALSE. - */ - public static bool registerStatic(int majorVersion, int minorVersion, string name, string description, GstPluginInitFunc initFunc, string version_, string license, string source, string package_, string origin) - { - return gst_plugin_register_static(majorVersion, minorVersion, Str.toStringz(name), Str.toStringz(description), initFunc, Str.toStringz(version_), Str.toStringz(license), Str.toStringz(source), Str.toStringz(package_), Str.toStringz(origin)) != 0; - } - - /** - * Registers a static plugin, ie. a plugin which is private to an application - * or library and contained within the application or library (as opposed to - * being shipped as a separate module file) with a #GstPluginInitFullFunc - * which allows user data to be passed to the callback function (useful - * for bindings). - * - * You must make sure that GStreamer has been initialised (with gst_init() or - * via gst_init_get_option_group()) before calling this function. - * - * Params: - * majorVersion = the major version number of the GStreamer core that the - * plugin was compiled for, you can just use GST_VERSION_MAJOR here - * minorVersion = the minor version number of the GStreamer core that the - * plugin was compiled for, you can just use GST_VERSION_MINOR here - * name = a unique name of the plugin (ideally prefixed with an application- or - * library-specific namespace prefix in order to avoid name conflicts in - * case a similar plugin with the same name ever gets added to GStreamer) - * description = description of the plugin - * initFullFunc = pointer to the init function with user data - * of this plugin. - * version_ = version string of the plugin - * license = effective license of plugin. Must be one of the approved licenses - * (see #GstPluginDesc above) or the plugin will not be registered. - * source = source module plugin belongs to - * package_ = shipped package plugin belongs to - * origin = URL to provider of plugin - * userData = gpointer to user data - * - * Returns: %TRUE if the plugin was registered correctly, otherwise %FALSE. - */ - public static bool registerStaticFull(int majorVersion, int minorVersion, string name, string description, GstPluginInitFullFunc initFullFunc, string version_, string license, string source, string package_, string origin, void* userData) - { - return gst_plugin_register_static_full(majorVersion, minorVersion, Str.toStringz(name), Str.toStringz(description), initFullFunc, Str.toStringz(version_), Str.toStringz(license), Str.toStringz(source), Str.toStringz(package_), Str.toStringz(origin), userData) != 0; - } - - /** - * Make GStreamer aware of external dependencies which affect the feature - * set of this plugin (ie. the elements or typefinders associated with it). - * - * GStreamer will re-inspect plugins with external dependencies whenever any - * of the external dependencies change. This is useful for plugins which wrap - * other plugin systems, e.g. a plugin which wraps a plugin-based visualisation - * library and makes visualisations available as GStreamer elements, or a - * codec loader which exposes elements and/or caps dependent on what external - * codec libraries are currently installed. - * - * Params: - * envVars = %NULL-terminated array of environment variables affecting the - * feature set of the plugin (e.g. an environment variable containing - * paths where to look for additional modules/plugins of a library), - * or %NULL. Environment variable names may be followed by a path component - * which will be added to the content of the environment variable, e.g. - * "HOME/.mystuff/plugins". - * paths = %NULL-terminated array of directories/paths where dependent files - * may be, or %NULL. - * names = %NULL-terminated array of file names (or file name suffixes, - * depending on @flags) to be used in combination with the paths from - * @paths and/or the paths extracted from the environment variables in - * @env_vars, or %NULL. - * flags = optional flags, or #GST_PLUGIN_DEPENDENCY_FLAG_NONE - */ - public void addDependency(string[] envVars, string[] paths, string[] names, GstPluginDependencyFlags flags) - { - gst_plugin_add_dependency(gstPlugin, Str.toStringzArray(envVars), Str.toStringzArray(paths), Str.toStringzArray(names), flags); - } - - /** - * Make GStreamer aware of external dependencies which affect the feature - * set of this plugin (ie. the elements or typefinders associated with it). - * - * GStreamer will re-inspect plugins with external dependencies whenever any - * of the external dependencies change. This is useful for plugins which wrap - * other plugin systems, e.g. a plugin which wraps a plugin-based visualisation - * library and makes visualisations available as GStreamer elements, or a - * codec loader which exposes elements and/or caps dependent on what external - * codec libraries are currently installed. - * - * Convenience wrapper function for gst_plugin_add_dependency() which - * takes simple strings as arguments instead of string arrays, with multiple - * arguments separated by predefined delimiters (see above). - * - * Params: - * envVars = one or more environment variables (separated by ':', ';' or ','), - * or %NULL. Environment variable names may be followed by a path component - * which will be added to the content of the environment variable, e.g. - * "HOME/.mystuff/plugins:MYSTUFF_PLUGINS_PATH" - * paths = one ore more directory paths (separated by ':' or ';' or ','), - * or %NULL. Example: "/usr/lib/mystuff/plugins" - * names = one or more file names or file name suffixes (separated by commas), - * or %NULL - * flags = optional flags, or #GST_PLUGIN_DEPENDENCY_FLAG_NONE - */ - public void addDependencySimple(string envVars, string paths, string names, GstPluginDependencyFlags flags) - { - gst_plugin_add_dependency_simple(gstPlugin, Str.toStringz(envVars), Str.toStringz(paths), Str.toStringz(names), flags); - } - - /** - * Gets the plugin specific data cache. If it is %NULL there is no cached data - * stored. This is the case when the registry is getting rebuilt. - * - * Returns: The cached data as a - * #GstStructure or %NULL. - */ - public Structure getCacheData() - { - auto __p = gst_plugin_get_cache_data(gstPlugin); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Get the long descriptive name of the plugin - * - * Returns: the long name of the plugin - */ - public string getDescription() - { - return Str.toString(gst_plugin_get_description(gstPlugin)); - } - - /** - * get the filename of the plugin - * - * Returns: the filename of the plugin - */ - public string getFilename() - { - return Str.toString(gst_plugin_get_filename(gstPlugin)); - } - - /** - * get the license of the plugin - * - * Returns: the license of the plugin - */ - public string getLicense() - { - return Str.toString(gst_plugin_get_license(gstPlugin)); - } - - /** - * Get the short name of the plugin - * - * Returns: the name of the plugin - */ - public override string getName() - { - return Str.toString(gst_plugin_get_name(gstPlugin)); - } - - /** - * get the URL where the plugin comes from - * - * Returns: the origin of the plugin - */ - public string getOrigin() - { - return Str.toString(gst_plugin_get_origin(gstPlugin)); - } - - /** - * get the package the plugin belongs to. - * - * Returns: the package of the plugin - */ - public string getPackage() - { - return Str.toString(gst_plugin_get_package(gstPlugin)); - } - - /** - * Get the release date (and possibly time) in form of a string, if available. - * - * For normal GStreamer plugin releases this will usually just be a date in - * the form of "YYYY-MM-DD", while pre-releases and builds from git may contain - * a time component after the date as well, in which case the string will be - * formatted like "YYYY-MM-DDTHH:MMZ" (e.g. "2012-04-30T09:30Z"). - * - * There may be plugins that do not have a valid release date set on them. - * - * Returns: the date string of the plugin, or %NULL if not - * available. - */ - public string getReleaseDateString() - { - return Str.toString(gst_plugin_get_release_date_string(gstPlugin)); - } - - /** - * get the source module the plugin belongs to. - * - * Returns: the source of the plugin - */ - public string getSource() - { - return Str.toString(gst_plugin_get_source(gstPlugin)); - } - - /** - * get the version of the plugin - * - * Returns: the version of the plugin - */ - public string getVersion() - { - return Str.toString(gst_plugin_get_version(gstPlugin)); - } - - /** - * queries if the plugin is loaded into memory - * - * Returns: %TRUE is loaded, %FALSE otherwise - */ - public bool isLoaded() - { - return gst_plugin_is_loaded(gstPlugin) != 0; - } - - /** - * Loads @plugin. Note that the *return value* is the loaded plugin; @plugin is - * untouched. The normal use pattern of this function goes like this: - * - * |[ - * GstPlugin *loaded_plugin; - * loaded_plugin = gst_plugin_load (plugin); - * // presumably, we're no longer interested in the potentially-unloaded plugin - * gst_object_unref (plugin); - * plugin = loaded_plugin; - * ]| - * - * Returns: a reference to a loaded plugin, or - * %NULL on error. - */ - public Plugin load() - { - auto __p = gst_plugin_load(gstPlugin); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Plugin)(cast(GstPlugin*) __p, true); - } - - /** - * Adds plugin specific data to cache. Passes the ownership of the structure to - * the @plugin. - * - * The cache is flushed every time the registry is rebuilt. - * - * Params: - * cacheData = a structure containing the data to cache - */ - public void setCacheData(Structure cacheData) - { - gst_plugin_set_cache_data(gstPlugin, (cacheData is null) ? null : cacheData.getStructureStruct(true)); - } - - /** - * Get the error quark. - * - * Returns: The error quark used in GError messages - */ - public static GQuark pluginErrorQuark() - { - return gst_plugin_error_quark(); - } -} diff --git a/generated/gstreamer/gstreamer/PluginFeature.d b/generated/gstreamer/gstreamer/PluginFeature.d deleted file mode 100644 index 6d8b0e631..000000000 --- a/generated/gstreamer/gstreamer/PluginFeature.d +++ /dev/null @@ -1,240 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.PluginFeature; - -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.ObjectGst; -private import gstreamer.Plugin; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * This is a base class for anything that can be added to a #GstPlugin. - */ -public class PluginFeature : ObjectGst -{ - /** the main Gtk struct */ - protected GstPluginFeature* gstPluginFeature; - - /** Get the main Gtk struct */ - public GstPluginFeature* getPluginFeatureStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPluginFeature; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstPluginFeature; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPluginFeature* gstPluginFeature, bool ownedRef = false) - { - this.gstPluginFeature = gstPluginFeature; - super(cast(GstObject*)gstPluginFeature, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_plugin_feature_get_type(); - } - - /** - * Copies the list of features. Caller should call @gst_plugin_feature_list_free - * when done with the list. - * - * Params: - * list = list - * of #GstPluginFeature - * - * Returns: a copy of @list, - * with each feature's reference count incremented. - */ - public static ListG listCopy(ListG list) - { - auto __p = gst_plugin_feature_list_copy((list is null) ? null : list.getListGStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Debug the plugin feature names in @list. - * - * Params: - * list = a #GList of - * plugin features - */ - public static void listDebug(ListG list) - { - gst_plugin_feature_list_debug((list is null) ? null : list.getListGStruct()); - } - - /** - * Unrefs each member of @list, then frees the list. - * - * Params: - * list = list - * of #GstPluginFeature - */ - public static void listFree(ListG list) - { - gst_plugin_feature_list_free((list is null) ? null : list.getListGStruct()); - } - - /** - * Compares the two given #GstPluginFeature instances. This function can be - * used as a #GCompareFunc when sorting by rank and then by name. - * - * Params: - * p1 = a #GstPluginFeature - * p2 = a #GstPluginFeature - * - * Returns: negative value if the rank of p1 > the rank of p2 or the ranks are - * equal but the name of p1 comes before the name of p2; zero if the rank - * and names are equal; positive value if the rank of p1 < the rank of p2 or the - * ranks are equal but the name of p2 comes before the name of p1 - */ - public static int rankCompareFunc(void* p1, void* p2) - { - return gst_plugin_feature_rank_compare_func(p1, p2); - } - - /** - * Checks whether the given plugin feature is at least - * the required version - * - * Params: - * minMajor = minimum required major version - * minMinor = minimum required minor version - * minMicro = minimum required micro version - * - * Returns: %TRUE if the plugin feature has at least - * the required version, otherwise %FALSE. - */ - public bool checkVersion(uint minMajor, uint minMinor, uint minMicro) - { - return gst_plugin_feature_check_version(gstPluginFeature, minMajor, minMinor, minMicro) != 0; - } - - /** - * Get the plugin that provides this feature. - * - * Returns: the plugin that provides this - * feature, or %NULL. Unref with gst_object_unref() when no - * longer needed. - */ - public Plugin getPlugin() - { - auto __p = gst_plugin_feature_get_plugin(gstPluginFeature); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Plugin)(cast(GstPlugin*) __p, true); - } - - /** - * Get the name of the plugin that provides this feature. - * - * Returns: the name of the plugin that provides this - * feature, or %NULL if the feature is not associated with a - * plugin. - * - * Since: 1.2 - */ - public string getPluginName() - { - return Str.toString(gst_plugin_feature_get_plugin_name(gstPluginFeature)); - } - - /** - * Gets the rank of a plugin feature. - * - * Returns: The rank of the feature - */ - public uint getRank() - { - return gst_plugin_feature_get_rank(gstPluginFeature); - } - - /** - * Loads the plugin containing @feature if it's not already loaded. @feature is - * unaffected; use the return value instead. - * - * Normally this function is used like this: - * |[ - * GstPluginFeature *loaded_feature; - * - * loaded_feature = gst_plugin_feature_load (feature); - * // presumably, we're no longer interested in the potentially-unloaded feature - * gst_object_unref (feature); - * feature = loaded_feature; - * ]| - * - * Returns: a reference to the loaded - * feature, or %NULL on error - */ - public PluginFeature load() - { - auto __p = gst_plugin_feature_load(gstPluginFeature); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PluginFeature)(cast(GstPluginFeature*) __p, true); - } - - /** - * Specifies a rank for a plugin feature, so that autoplugging uses - * the most appropriate feature. - * - * Params: - * rank = rank value - higher number means more priority rank - */ - public void setRank(uint rank) - { - gst_plugin_feature_set_rank(gstPluginFeature, rank); - } -} diff --git a/generated/gstreamer/gstreamer/Poll.d b/generated/gstreamer/gstreamer/Poll.d deleted file mode 100644 index 911fbdab2..000000000 --- a/generated/gstreamer/gstreamer/Poll.d +++ /dev/null @@ -1,442 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Poll; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gstreamer.PollFD; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * A #GstPoll keeps track of file descriptors much like fd_set (used with - * select ()) or a struct pollfd array (used with poll ()). Once created with - * gst_poll_new(), the set can be used to wait for file descriptors to be - * readable and/or writable. It is possible to make this wait be controlled - * by specifying %TRUE for the @controllable flag when creating the set (or - * later calling gst_poll_set_controllable()). - * - * New file descriptors are added to the set using gst_poll_add_fd(), and - * removed using gst_poll_remove_fd(). Controlling which file descriptors - * should be waited for to become readable and/or writable are done using - * gst_poll_fd_ctl_read(), gst_poll_fd_ctl_write() and gst_poll_fd_ctl_pri(). - * - * Use gst_poll_wait() to wait for the file descriptors to actually become - * readable and/or writable, or to timeout if no file descriptor is available - * in time. The wait can be controlled by calling gst_poll_restart() and - * gst_poll_set_flushing(). - * - * Once the file descriptor set has been waited for, one can use - * gst_poll_fd_has_closed() to see if the file descriptor has been closed, - * gst_poll_fd_has_error() to see if it has generated an error, - * gst_poll_fd_can_read() to see if it is possible to read from the file - * descriptor, and gst_poll_fd_can_write() to see if it is possible to - * write to it. - */ -public class Poll -{ - /** the main Gtk struct */ - protected GstPoll* gstPoll; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstPoll* getPollStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPoll; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstPoll; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPoll* gstPoll, bool ownedRef = false) - { - this.gstPoll = gstPoll; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_poll_free(gstPoll); - } - - - /** - * Add a file descriptor to the file descriptor set. - * - * Params: - * fd = a file descriptor. - * - * Returns: %TRUE if the file descriptor was successfully added to the set. - */ - public bool addFd(PollFD fd) - { - return gst_poll_add_fd(gstPoll, (fd is null) ? null : fd.getPollFDStruct()) != 0; - } - - /** - * Check if @fd in @set has data to be read. - * - * Params: - * fd = a file descriptor. - * - * Returns: %TRUE if the descriptor has data to be read. - */ - public bool fdCanRead(PollFD fd) - { - return gst_poll_fd_can_read(gstPoll, (fd is null) ? null : fd.getPollFDStruct()) != 0; - } - - /** - * Check if @fd in @set can be used for writing. - * - * Params: - * fd = a file descriptor. - * - * Returns: %TRUE if the descriptor can be used for writing. - */ - public bool fdCanWrite(PollFD fd) - { - return gst_poll_fd_can_write(gstPoll, (fd is null) ? null : fd.getPollFDStruct()) != 0; - } - - /** - * Control whether the descriptor @fd in @set will be monitored for - * exceptional conditions (POLLPRI). - * - * Not implemented on Windows (will just return %FALSE there). - * - * Params: - * fd = a file descriptor. - * active = a new status. - * - * Returns: %TRUE if the descriptor was successfully updated. - * - * Since: 1.16 - */ - public bool fdCtlPri(PollFD fd, bool active) - { - return gst_poll_fd_ctl_pri(gstPoll, (fd is null) ? null : fd.getPollFDStruct(), active) != 0; - } - - /** - * Control whether the descriptor @fd in @set will be monitored for - * readability. - * - * Params: - * fd = a file descriptor. - * active = a new status. - * - * Returns: %TRUE if the descriptor was successfully updated. - */ - public bool fdCtlRead(PollFD fd, bool active) - { - return gst_poll_fd_ctl_read(gstPoll, (fd is null) ? null : fd.getPollFDStruct(), active) != 0; - } - - /** - * Control whether the descriptor @fd in @set will be monitored for - * writability. - * - * Params: - * fd = a file descriptor. - * active = a new status. - * - * Returns: %TRUE if the descriptor was successfully updated. - */ - public bool fdCtlWrite(PollFD fd, bool active) - { - return gst_poll_fd_ctl_write(gstPoll, (fd is null) ? null : fd.getPollFDStruct(), active) != 0; - } - - /** - * Check if @fd in @set has closed the connection. - * - * Params: - * fd = a file descriptor. - * - * Returns: %TRUE if the connection was closed. - */ - public bool fdHasClosed(PollFD fd) - { - return gst_poll_fd_has_closed(gstPoll, (fd is null) ? null : fd.getPollFDStruct()) != 0; - } - - /** - * Check if @fd in @set has an error. - * - * Params: - * fd = a file descriptor. - * - * Returns: %TRUE if the descriptor has an error. - */ - public bool fdHasError(PollFD fd) - { - return gst_poll_fd_has_error(gstPoll, (fd is null) ? null : fd.getPollFDStruct()) != 0; - } - - /** - * Check if @fd in @set has an exceptional condition (POLLPRI). - * - * Not implemented on Windows (will just return %FALSE there). - * - * Params: - * fd = a file descriptor. - * - * Returns: %TRUE if the descriptor has an exceptional condition. - * - * Since: 1.16 - */ - public bool fdHasPri(PollFD fd) - { - return gst_poll_fd_has_pri(gstPoll, (fd is null) ? null : fd.getPollFDStruct()) != 0; - } - - /** - * Mark @fd as ignored so that the next call to gst_poll_wait() will yield - * the same result for @fd as last time. This function must be called if no - * operation (read/write/recv/send/etc.) will be performed on @fd before - * the next call to gst_poll_wait(). - * - * The reason why this is needed is because the underlying implementation - * might not allow querying the fd more than once between calls to one of - * the re-enabling operations. - * - * Params: - * fd = a file descriptor. - */ - public void fdIgnored(PollFD fd) - { - gst_poll_fd_ignored(gstPoll, (fd is null) ? null : fd.getPollFDStruct()); - } - - /** - * Free a file descriptor set. - */ - public void free() - { - gst_poll_free(gstPoll); - ownedRef = false; - } - - /** - * Get a GPollFD for the reading part of the control socket. This is useful when - * integrating with a GSource and GMainLoop. - * - * Params: - * fd = a #GPollFD - */ - public void getReadGpollfd(GPollFD* fd) - { - gst_poll_get_read_gpollfd(gstPoll, fd); - } - - /** - * Read a byte from the control socket of the controllable @set. - * - * This function only works for timer #GstPoll objects created with - * gst_poll_new_timer(). - * - * Returns: %TRUE on success. %FALSE when when there was no byte to read or - * reading the byte failed. If there was no byte to read, and only then, errno - * will contain EWOULDBLOCK or EAGAIN. For all other values of errno this always signals a - * critical error. - */ - public bool readControl() - { - return gst_poll_read_control(gstPoll) != 0; - } - - /** - * Remove a file descriptor from the file descriptor set. - * - * Params: - * fd = a file descriptor. - * - * Returns: %TRUE if the file descriptor was successfully removed from the set. - */ - public bool removeFd(PollFD fd) - { - return gst_poll_remove_fd(gstPoll, (fd is null) ? null : fd.getPollFDStruct()) != 0; - } - - /** - * Restart any gst_poll_wait() that is in progress. This function is typically - * used after adding or removing descriptors to @set. - * - * If @set is not controllable, then this call will have no effect. - * - * This function only works for non-timer #GstPoll objects created with - * gst_poll_new(). - */ - public void restart() - { - gst_poll_restart(gstPoll); - } - - /** - * When @controllable is %TRUE, this function ensures that future calls to - * gst_poll_wait() will be affected by gst_poll_restart() and - * gst_poll_set_flushing(). - * - * This function only works for non-timer #GstPoll objects created with - * gst_poll_new(). - * - * Params: - * controllable = new controllable state. - * - * Returns: %TRUE if the controllability of @set could be updated. - */ - public bool setControllable(bool controllable) - { - return gst_poll_set_controllable(gstPoll, controllable) != 0; - } - - /** - * When @flushing is %TRUE, this function ensures that current and future calls - * to gst_poll_wait() will return -1, with errno set to EBUSY. - * - * Unsetting the flushing state will restore normal operation of @set. - * - * This function only works for non-timer #GstPoll objects created with - * gst_poll_new(). - * - * Params: - * flushing = new flushing state. - */ - public void setFlushing(bool flushing) - { - gst_poll_set_flushing(gstPoll, flushing); - } - - /** - * Wait for activity on the file descriptors in @set. This function waits up to - * the specified @timeout. A timeout of #GST_CLOCK_TIME_NONE waits forever. - * - * For #GstPoll objects created with gst_poll_new(), this function can only be - * called from a single thread at a time. If called from multiple threads, - * -1 will be returned with errno set to EPERM. - * - * This is not true for timer #GstPoll objects created with - * gst_poll_new_timer(), where it is allowed to have multiple threads waiting - * simultaneously. - * - * Params: - * timeout = a timeout in nanoseconds. - * - * Returns: The number of #GstPollFD in @set that have activity or 0 when no - * activity was detected after @timeout. If an error occurs, -1 is returned - * and errno is set. - */ - public int wait(GstClockTime timeout) - { - return gst_poll_wait(gstPoll, timeout); - } - - /** - * Write a byte to the control socket of the controllable @set. - * This function is mostly useful for timer #GstPoll objects created with - * gst_poll_new_timer(). - * - * It will make any current and future gst_poll_wait() function return with - * 1, meaning the control socket is set. After an equal amount of calls to - * gst_poll_read_control() have been performed, calls to gst_poll_wait() will - * block again until their timeout expired. - * - * This function only works for timer #GstPoll objects created with - * gst_poll_new_timer(). - * - * Returns: %TRUE on success. %FALSE when when the byte could not be written. - * errno contains the detailed error code but will never be EAGAIN, EINTR or - * EWOULDBLOCK. %FALSE always signals a critical error. - */ - public bool writeControl() - { - return gst_poll_write_control(gstPoll) != 0; - } - - /** - * Create a new file descriptor set. If @controllable, it - * is possible to restart or flush a call to gst_poll_wait() with - * gst_poll_restart() and gst_poll_set_flushing() respectively. - * - * Free-function: gst_poll_free - * - * Params: - * controllable = whether it should be possible to control a wait. - * - * Returns: a new #GstPoll, or %NULL in - * case of an error. Free with gst_poll_free(). - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(bool controllable) - { - auto __p = gst_poll_new(controllable); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstPoll*) __p); - } - - /** - * Create a new poll object that can be used for scheduling cancellable - * timeouts. - * - * A timeout is performed with gst_poll_wait(). Multiple timeouts can be - * performed from different threads. - * - * Free-function: gst_poll_free - * - * Returns: a new #GstPoll, or %NULL in - * case of an error. Free with gst_poll_free(). - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_poll_new_timer(); - - if(__p is null) - { - throw new ConstructionException("null returned by new_timer"); - } - - this(cast(GstPoll*) __p); - } -} diff --git a/generated/gstreamer/gstreamer/PollFD.d b/generated/gstreamer/gstreamer/PollFD.d deleted file mode 100644 index 8a7581806..000000000 --- a/generated/gstreamer/gstreamer/PollFD.d +++ /dev/null @@ -1,72 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.PollFD; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A file descriptor object. - */ -public class PollFD -{ - /** the main Gtk struct */ - protected GstPollFD* gstPollFD; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstPollFD* getPollFDStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPollFD; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstPollFD; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPollFD* gstPollFD, bool ownedRef = false) - { - this.gstPollFD = gstPollFD; - this.ownedRef = ownedRef; - } - - - /** - * Initializes @fd. Alternatively you can initialize it with - * #GST_POLL_FD_INIT. - */ - public void init() - { - gst_poll_fd_init(gstPollFD); - } -} diff --git a/generated/gstreamer/gstreamer/PresetIF.d b/generated/gstreamer/gstreamer/PresetIF.d deleted file mode 100644 index 0c065ecce..000000000 --- a/generated/gstreamer/gstreamer/PresetIF.d +++ /dev/null @@ -1,193 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.PresetIF; - -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * This interface offers methods to query and manipulate parameter preset sets. - * A preset is a bunch of property settings, together with meta data and a name. - * The name of a preset serves as key for subsequent method calls to manipulate - * single presets. - * All instances of one type will share the list of presets. The list is created - * on demand, if presets are not used, the list is not created. - * - * The interface comes with a default implementation that serves most plugins. - * Wrapper plugins will override most methods to implement support for the - * native preset format of those wrapped plugins. - * One method that is useful to be overridden is gst_preset_get_property_names(). - * With that one can control which properties are saved and in which order. - * When implementing support for read-only presets, one should set the vmethods - * for gst_preset_save_preset() and gst_preset_delete_preset() to %NULL. - * Applications can use gst_preset_is_editable() to check for that. - * - * The default implementation supports presets located in a system directory, - * application specific directory and in the users home directory. When getting - * a list of presets individual presets are read and overlaid in 1) system, - * 2) application and 3) user order. Whenever an earlier entry is newer, the - * later entries will be updated. Since 1.8 you can also provide extra paths - * where to find presets through the GST_PRESET_PATH environment variable. - * Presets found in those paths will be considered as "app presets". - */ -public interface PresetIF{ - /** Get the main Gtk struct */ - public GstPreset* getPresetStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gst_preset_get_type(); - } - - /** - * Gets the directory for application specific presets if set by the - * application. - * - * Returns: the directory or %NULL, don't free or modify - * the string - */ - public static string getAppDir() - { - return Str.toString(gst_preset_get_app_dir()); - } - - /** - * Sets an extra directory as an absolute path that should be considered when - * looking for presets. Any presets in the application dir will shadow the - * system presets. - * - * Params: - * appDir = the application specific preset dir - * - * Returns: %TRUE for success, %FALSE if the dir already has been set - */ - public static bool setAppDir(string appDir) - { - return gst_preset_set_app_dir(Str.toStringz(appDir)) != 0; - } - - /** - * Delete the given preset. - * - * Params: - * name = preset name to remove - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - public bool deletePreset(string name); - - /** - * Gets the @value for an existing meta data @tag. Meta data @tag names can be - * something like e.g. "comment". Returned values need to be released when done. - * - * Params: - * name = preset name - * tag = meta data item name - * value = value - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - * or no value for the given @tag - */ - public bool getMeta(string name, string tag, out string value); - - /** - * Get a copy of preset names as a %NULL terminated string array. - * - * Returns: list with names, use g_strfreev() after usage. - */ - public string[] getPresetNames(); - - /** - * Get a the names of the GObject properties that can be used for presets. - * - * Returns: an - * array of property names which should be freed with g_strfreev() after use. - */ - public string[] getPropertyNames(); - - /** - * Check if one can add new presets, change existing ones and remove presets. - * - * Returns: %TRUE if presets are editable or %FALSE if they are static - * - * Since: 1.6 - */ - public bool isEditable(); - - /** - * Load the given preset. - * - * Params: - * name = preset name to load - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - public bool loadPreset(string name); - - /** - * Renames a preset. If there is already a preset by the @new_name it will be - * overwritten. - * - * Params: - * oldName = current preset name - * newName = new preset name - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with @old_name - */ - public bool renamePreset(string oldName, string newName); - - /** - * Save the current object settings as a preset under the given name. If there - * is already a preset by this @name it will be overwritten. - * - * Params: - * name = preset name to save - * - * Returns: %TRUE for success, %FALSE - */ - public bool savePreset(string name); - - /** - * Sets a new @value for an existing meta data item or adds a new item. Meta - * data @tag names can be something like e.g. "comment". Supplying %NULL for the - * @value will unset an existing value. - * - * Params: - * name = preset name - * tag = meta data item name - * value = new value - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - public bool setMeta(string name, string tag, string value); -} diff --git a/generated/gstreamer/gstreamer/PresetT.d b/generated/gstreamer/gstreamer/PresetT.d deleted file mode 100644 index 7bf3a7156..000000000 --- a/generated/gstreamer/gstreamer/PresetT.d +++ /dev/null @@ -1,202 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.PresetT; - -public import glib.Str; -public import glib.c.functions; -public import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * This interface offers methods to query and manipulate parameter preset sets. - * A preset is a bunch of property settings, together with meta data and a name. - * The name of a preset serves as key for subsequent method calls to manipulate - * single presets. - * All instances of one type will share the list of presets. The list is created - * on demand, if presets are not used, the list is not created. - * - * The interface comes with a default implementation that serves most plugins. - * Wrapper plugins will override most methods to implement support for the - * native preset format of those wrapped plugins. - * One method that is useful to be overridden is gst_preset_get_property_names(). - * With that one can control which properties are saved and in which order. - * When implementing support for read-only presets, one should set the vmethods - * for gst_preset_save_preset() and gst_preset_delete_preset() to %NULL. - * Applications can use gst_preset_is_editable() to check for that. - * - * The default implementation supports presets located in a system directory, - * application specific directory and in the users home directory. When getting - * a list of presets individual presets are read and overlaid in 1) system, - * 2) application and 3) user order. Whenever an earlier entry is newer, the - * later entries will be updated. Since 1.8 you can also provide extra paths - * where to find presets through the GST_PRESET_PATH environment variable. - * Presets found in those paths will be considered as "app presets". - */ -public template PresetT(TStruct) -{ - /** Get the main Gtk struct */ - public GstPreset* getPresetStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GstPreset*)getStruct(); - } - - - /** - * Delete the given preset. - * - * Params: - * name = preset name to remove - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - public bool deletePreset(string name) - { - return gst_preset_delete_preset(getPresetStruct(), Str.toStringz(name)) != 0; - } - - /** - * Gets the @value for an existing meta data @tag. Meta data @tag names can be - * something like e.g. "comment". Returned values need to be released when done. - * - * Params: - * name = preset name - * tag = meta data item name - * value = value - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - * or no value for the given @tag - */ - public bool getMeta(string name, string tag, out string value) - { - char* outvalue = null; - - auto __p = gst_preset_get_meta(getPresetStruct(), Str.toStringz(name), Str.toStringz(tag), &outvalue) != 0; - - value = Str.toString(outvalue); - - return __p; - } - - /** - * Get a copy of preset names as a %NULL terminated string array. - * - * Returns: list with names, use g_strfreev() after usage. - */ - public string[] getPresetNames() - { - auto retStr = gst_preset_get_preset_names(getPresetStruct()); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Get a the names of the GObject properties that can be used for presets. - * - * Returns: an - * array of property names which should be freed with g_strfreev() after use. - */ - public string[] getPropertyNames() - { - auto retStr = gst_preset_get_property_names(getPresetStruct()); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Check if one can add new presets, change existing ones and remove presets. - * - * Returns: %TRUE if presets are editable or %FALSE if they are static - * - * Since: 1.6 - */ - public bool isEditable() - { - return gst_preset_is_editable(getPresetStruct()) != 0; - } - - /** - * Load the given preset. - * - * Params: - * name = preset name to load - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - public bool loadPreset(string name) - { - return gst_preset_load_preset(getPresetStruct(), Str.toStringz(name)) != 0; - } - - /** - * Renames a preset. If there is already a preset by the @new_name it will be - * overwritten. - * - * Params: - * oldName = current preset name - * newName = new preset name - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with @old_name - */ - public bool renamePreset(string oldName, string newName) - { - return gst_preset_rename_preset(getPresetStruct(), Str.toStringz(oldName), Str.toStringz(newName)) != 0; - } - - /** - * Save the current object settings as a preset under the given name. If there - * is already a preset by this @name it will be overwritten. - * - * Params: - * name = preset name to save - * - * Returns: %TRUE for success, %FALSE - */ - public bool savePreset(string name) - { - return gst_preset_save_preset(getPresetStruct(), Str.toStringz(name)) != 0; - } - - /** - * Sets a new @value for an existing meta data item or adds a new item. Meta - * data @tag names can be something like e.g. "comment". Supplying %NULL for the - * @value will unset an existing value. - * - * Params: - * name = preset name - * tag = meta data item name - * value = new value - * - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - public bool setMeta(string name, string tag, string value) - { - return gst_preset_set_meta(getPresetStruct(), Str.toStringz(name), Str.toStringz(tag), Str.toStringz(value)) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/Promise.d b/generated/gstreamer/gstreamer/Promise.d deleted file mode 100644 index 7f7987a40..000000000 --- a/generated/gstreamer/gstreamer/Promise.d +++ /dev/null @@ -1,249 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Promise; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The #GstPromise object implements the container for values that may - * be available later. i.e. a Future or a Promise in - * . - * As with all Future/Promise-like functionality, there is the concept of the - * producer of the value and the consumer of the value. - * - * A #GstPromise is created with gst_promise_new() by the consumer and passed - * to the producer to avoid thread safety issues with the change callback. - * A #GstPromise can be replied to with a value (or an error) by the producer - * with gst_promise_reply(). The exact value returned is defined by the API - * contract of the producer and %NULL may be a valid reply. - * gst_promise_interrupt() is for the consumer to - * indicate to the producer that the value is not needed anymore and producing - * that value can stop. The @GST_PROMISE_RESULT_EXPIRED state set by a call - * to gst_promise_expire() indicates to the consumer that a value will never - * be produced and is intended to be called by a third party that implements - * some notion of message handling such as #GstBus. - * A callback can also be installed at #GstPromise creation for - * result changes with gst_promise_new_with_change_func(). - * The change callback can be used to chain #GstPromises's together as in the - * following example. - * |[ - * const GstStructure *reply; - * GstPromise *p; - * if (gst_promise_wait (promise) != GST_PROMISE_RESULT_REPLIED) - * return; // interrupted or expired value - * reply = gst_promise_get_reply (promise); - * if (error in reply) - * return; // propagate error - * p = gst_promise_new_with_change_func (another_promise_change_func, user_data, notify); - * pass p to promise-using API - * ]| - * - * Each #GstPromise starts out with a #GstPromiseResult of - * %GST_PROMISE_RESULT_PENDING and only ever transitions once - * into one of the other #GstPromiseResult's. - * - * In order to support multi-threaded code, gst_promise_reply(), - * gst_promise_interrupt() and gst_promise_expire() may all be from - * different threads with some restrictions and the final result of the promise - * is whichever call is made first. There are two restrictions on ordering: - * - * 1. That gst_promise_reply() and gst_promise_interrupt() cannot be called - * after gst_promise_expire() - * 2. That gst_promise_reply() and gst_promise_interrupt() - * cannot be called twice. - * - * The change function set with gst_promise_new_with_change_func() is - * called directly from either the gst_promise_reply(), - * gst_promise_interrupt() or gst_promise_expire() and can be called - * from an arbitrary thread. #GstPromise using APIs can restrict this to - * a single thread or a subset of threads but that is entirely up to the API - * that uses #GstPromise. - * - * Since: 1.14 - */ -public class Promise -{ - /** the main Gtk struct */ - protected GstPromise* gstPromise; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstPromise* getPromiseStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstPromise; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstPromise; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstPromise* gstPromise, bool ownedRef = false) - { - this.gstPromise = gstPromise; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_promise_get_type(); - } - - /** - * Returns: a new #GstPromise - * - * Since: 1.14 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_promise_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstPromise*) __p); - } - - /** - * @func will be called exactly once when transitioning out of - * %GST_PROMISE_RESULT_PENDING into any of the other #GstPromiseResult - * states. - * - * Params: - * func = a #GstPromiseChangeFunc to call - * userData = argument to call @func with - * notify = notification function that @user_data is no longer needed - * - * Returns: a new #GstPromise - * - * Since: 1.14 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstPromiseChangeFunc func, void* userData, GDestroyNotify notify) - { - auto __p = gst_promise_new_with_change_func(func, userData, notify); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_change_func"); - } - - this(cast(GstPromise*) __p); - } - - /** - * Expire a @promise. This will wake up any waiters with - * %GST_PROMISE_RESULT_EXPIRED. Called by a message loop when the parent - * message is handled and/or destroyed (possibly unanswered). - * - * Since: 1.14 - */ - public void expire() - { - gst_promise_expire(gstPromise); - } - - /** - * Retrieve the reply set on @promise. @promise must be in - * %GST_PROMISE_RESULT_REPLIED and the returned structure is owned by @promise - * - * Returns: The reply set on @promise - * - * Since: 1.14 - */ - public Structure getReply() - { - auto __p = gst_promise_get_reply(gstPromise); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Interrupt waiting for a @promise. This will wake up any waiters with - * %GST_PROMISE_RESULT_INTERRUPTED. Called when the consumer does not want - * the value produced anymore. - * - * Since: 1.14 - */ - public void interrupt() - { - gst_promise_interrupt(gstPromise); - } - - /** - * Set a reply on @promise. This will wake up any waiters with - * %GST_PROMISE_RESULT_REPLIED. Called by the producer of the value to - * indicate success (or failure). - * - * If @promise has already been interrupted by the consumer, then this reply - * is not visible to the consumer. - * - * Params: - * s = a #GstStructure with the the reply contents - * - * Since: 1.14 - */ - public void reply(Structure s) - { - gst_promise_reply(gstPromise, (s is null) ? null : s.getStructureStruct(true)); - } - - /** - * Wait for @promise to move out of the %GST_PROMISE_RESULT_PENDING state. - * If @promise is not in %GST_PROMISE_RESULT_PENDING then it will return - * immediately with the current result. - * - * Returns: the result of the promise - * - * Since: 1.14 - */ - public GstPromiseResult wait() - { - return gst_promise_wait(gstPromise); - } -} diff --git a/generated/gstreamer/gstreamer/ProtectionMeta.d b/generated/gstreamer/gstreamer/ProtectionMeta.d deleted file mode 100644 index 2c095f9a0..000000000 --- a/generated/gstreamer/gstreamer/ProtectionMeta.d +++ /dev/null @@ -1,102 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ProtectionMeta; - -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Metadata type that holds information about a sample from a protection-protected - * track, including the information needed to decrypt it (if it is encrypted). - * - * Since: 1.6 - */ -public class ProtectionMeta -{ - /** the main Gtk struct */ - protected GstProtectionMeta* gstProtectionMeta; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstProtectionMeta* getProtectionMetaStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstProtectionMeta; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstProtectionMeta; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstProtectionMeta* gstProtectionMeta, bool ownedRef = false) - { - this.gstProtectionMeta = gstProtectionMeta; - this.ownedRef = ownedRef; - } - - - /** */ - public static GstMetaInfo* getInfo() - { - return gst_protection_meta_get_info(); - } - - /** */ - public static GType getType() - { - return gst_protection_meta_api_get_type(); - } - - /** - * Iterates the supplied list of UUIDs and checks the GstRegistry for - * an element that supports one of the supplied UUIDs. If more than one - * element matches, the system ID of the highest ranked element is selected. - * - * Params: - * systemIdentifiers = A null terminated array of strings - * that contains the UUID values of each protection system that is to be - * checked. - * - * Returns: One of the strings from - * @system_identifiers that indicates the highest ranked element that - * implements the protection system indicated by that system ID, or %NULL if no - * element has been found. - * - * Since: 1.6 - */ - public static string protectionSelectSystem(string[] systemIdentifiers) - { - return Str.toString(gst_protection_select_system(Str.toStringzArray(systemIdentifiers))); - } -} diff --git a/generated/gstreamer/gstreamer/ProxyPad.d b/generated/gstreamer/gstreamer/ProxyPad.d deleted file mode 100644 index af73f7c33..000000000 --- a/generated/gstreamer/gstreamer/ProxyPad.d +++ /dev/null @@ -1,171 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ProxyPad; - -private import gobject.ObjectG; -private import gstreamer.Buffer; -private import gstreamer.BufferList; -private import gstreamer.Iterator; -private import gstreamer.ObjectGst; -private import gstreamer.Pad; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public class ProxyPad : Pad -{ - /** the main Gtk struct */ - protected GstProxyPad* gstProxyPad; - - /** Get the main Gtk struct */ - public GstProxyPad* getProxyPadStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstProxyPad; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstProxyPad; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstProxyPad* gstProxyPad, bool ownedRef = false) - { - this.gstProxyPad = gstProxyPad; - super(cast(GstPad*)gstProxyPad, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_proxy_pad_get_type(); - } - - /** - * Invoke the default chain function of the proxy pad. - * - * Params: - * pad = a sink #GstPad, returns GST_FLOW_ERROR if not. - * parent = the parent of @pad or %NULL - * buffer = the #GstBuffer to send, return GST_FLOW_ERROR - * if not. - * - * Returns: a #GstFlowReturn from the pad. - */ - public static GstFlowReturn chainDefault(Pad pad, ObjectGst parent, Buffer buffer) - { - return gst_proxy_pad_chain_default((pad is null) ? null : pad.getPadStruct(), (parent is null) ? null : parent.getObjectGstStruct(), (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * Invoke the default chain list function of the proxy pad. - * - * Params: - * pad = a sink #GstPad, returns GST_FLOW_ERROR if not. - * parent = the parent of @pad or %NULL - * list = the #GstBufferList to send, return GST_FLOW_ERROR - * if not. - * - * Returns: a #GstFlowReturn from the pad. - */ - public static GstFlowReturn chainListDefault(Pad pad, ObjectGst parent, BufferList list) - { - return gst_proxy_pad_chain_list_default((pad is null) ? null : pad.getPadStruct(), (parent is null) ? null : parent.getObjectGstStruct(), (list is null) ? null : list.getBufferListStruct()); - } - - /** - * Invoke the default getrange function of the proxy pad. - * - * Params: - * pad = a src #GstPad, returns #GST_FLOW_ERROR if not. - * parent = the parent of @pad - * offset = The start offset of the buffer - * size = The length of the buffer - * buffer = a pointer to hold the #GstBuffer, - * returns #GST_FLOW_ERROR if %NULL. - * - * Returns: a #GstFlowReturn from the pad. - */ - public static GstFlowReturn getrangeDefault(Pad pad, ObjectGst parent, ulong offset, uint size, out Buffer buffer) - { - GstBuffer* outbuffer = null; - - auto __p = gst_proxy_pad_getrange_default((pad is null) ? null : pad.getPadStruct(), (parent is null) ? null : parent.getObjectGstStruct(), offset, size, &outbuffer); - - buffer = ObjectG.getDObject!(Buffer)(outbuffer); - - return __p; - } - - /** - * Invoke the default iterate internal links function of the proxy pad. - * - * Params: - * pad = the #GstPad to get the internal links of. - * parent = the parent of @pad or %NULL - * - * Returns: a #GstIterator of #GstPad, or %NULL if @pad - * has no parent. Unref each returned pad with gst_object_unref(). - */ - public static Iterator iterateInternalLinksDefault(Pad pad, ObjectGst parent) - { - auto __p = gst_proxy_pad_iterate_internal_links_default((pad is null) ? null : pad.getPadStruct(), (parent is null) ? null : parent.getObjectGstStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Iterator)(cast(GstIterator*) __p, true); - } - - /** - * Get the internal pad of @pad. Unref target pad after usage. - * - * The internal pad of a #GstGhostPad is the internally used - * pad of opposite direction, which is used to link to the target. - * - * Returns: the target #GstProxyPad, can - * be %NULL. Unref target pad after usage. - */ - public ProxyPad getInternal() - { - auto __p = gst_proxy_pad_get_internal(gstProxyPad); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ProxyPad)(cast(GstProxyPad*) __p, true); - } -} diff --git a/generated/gstreamer/gstreamer/Query.d b/generated/gstreamer/gstreamer/Query.d deleted file mode 100644 index 63b4479c2..000000000 --- a/generated/gstreamer/gstreamer/Query.d +++ /dev/null @@ -1,1535 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Query; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.AllocationParams; -private import gstreamer.Allocator; -private import gstreamer.BufferPool; -private import gstreamer.Caps; -private import gstreamer.Context; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Queries can be performed on pads (gst_pad_query()) and elements - * (gst_element_query()). Please note that some queries might need a running - * pipeline to work. - * - * Queries can be created using the gst_query_new_*() functions. - * Query values can be set using gst_query_set_*(), and parsed using - * gst_query_parse_*() helpers. - * - * The following example shows how to query the duration of a pipeline: - * |[ - * GstQuery *query; - * gboolean res; - * query = gst_query_new_duration (GST_FORMAT_TIME); - * res = gst_element_query (pipeline, query); - * if (res) { - * gint64 duration; - * gst_query_parse_duration (query, NULL, &duration); - * g_print ("duration = %"GST_TIME_FORMAT, GST_TIME_ARGS (duration)); - * } else { - * g_print ("duration query failed..."); - * } - * gst_query_unref (query); - * ]| - */ -public class Query -{ - /** the main Gtk struct */ - protected GstQuery* gstQuery; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstQuery* getQueryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstQuery; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstQuery; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstQuery* gstQuery, bool ownedRef = false) - { - this.gstQuery = gstQuery; - this.ownedRef = ownedRef; - } - - /** - * Constructs a new query stream position query object. Use gst_query_unref() - * when done with it. A position query is used to query the current position - * of playback in the streams, in some format. - * Params: - * format = the default GstFormat for the new query - * Returns: - * A GstQuery - */ - public static Query newPosition(GstFormat format) - { - auto p = gst_query_new_position(format); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_position"); - } - - return new Query( cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new stream duration query object to query in the given format. - * Use gst_query_unref() when done with it. A duration query will give the - * total length of the stream. - * Params: - * format = the GstFormat for this duration query - * Returns: - * A GstQuery - */ - public static Query newDuration(GstFormat format) - { - auto p = gst_query_new_duration(format); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_duration"); - } - - return new Query( cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new query object for querying seeking properties of - * the stream. - * Params: - * format = the default GstFormat for the new query - * Returns: - * A GstQuery - */ - public static Query newSeeking(GstFormat format) - { - auto p = gst_query_new_seeking(format); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_seeking"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new query object for querying formats of - * the stream. - * Returns: - * A GstQuery - */ - public static Query newFormats() - { - auto p = gst_query_new_formats(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_formats"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new segment query object. Use gst_query_unref() - * when done with it. A segment query is used to discover information about the - * currently configured segment for playback. - * Params: - * format = the GstFormat for the new query - * Returns: - * a GstQuery - */ - public static Query newSegment(GstFormat format) - { - auto p = gst_query_new_segment(format); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_segment"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new latency query object. - * Use gst_query_unref() when done with it. A latency query is usually performed - * by sinks to compensate for additional latency introduced by elements in the - * pipeline. - * Free-function: gst_query_unref - */ - public static Query newLatency() - { - auto p = gst_query_new_latency(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_latency()"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new query URI query object. Use gst_query_unref() - * when done with it. An URI query is used to query the current URI - * that is used by the source or sink. - * Free-function: gst_query_unref - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Query newUri() - { - auto p = gst_query_new_uri(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_uri()"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new query object for querying the scheduling properties. - * Free-function: gst_query_unref - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Query newScheduling() - { - auto p = gst_query_new_scheduling(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_scheduling()"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new query object for querying the drain state. - * Free-function: gst_query_unref - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Query newDrain() - { - auto p = gst_query_new_drain(); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_drain()"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - * Constructs a new query object for querying if caps are accepted. - * Free-function: gst_query_unref - * Params: - * caps = a fixed GstCaps - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static Query newAcceptCaps(Caps caps) - { - auto p = gst_query_new_accept_caps((caps is null) ? null : caps.getCapsStruct()); - - if(p is null) - { - throw new ConstructionException("null returned by gst_query_new_accept_caps((caps is null) ? null : caps.getCapsStruct())"); - } - - return new Query(cast(GstQuery*)p); //, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_query_get_type(); - } - - /** - * Constructs a new query object for querying the allocation properties. - * - * Free-function: gst_query_unref() - * - * Params: - * caps = the negotiated caps - * needPool = return a pool - * - * Returns: a new #GstQuery - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Caps caps, bool needPool) - { - auto __p = gst_query_new_allocation((caps is null) ? null : caps.getCapsStruct(), needPool); - - if(__p is null) - { - throw new ConstructionException("null returned by new_allocation"); - } - - this(cast(GstQuery*) __p); - } - - /** - * Constructs a new query object for querying the bitrate. - * - * Free-function: gst_query_unref() - * - * Returns: a new #GstQuery - * - * Since: 1.16 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_query_new_bitrate(); - - if(__p is null) - { - throw new ConstructionException("null returned by new_bitrate"); - } - - this(cast(GstQuery*) __p); - } - - /** - * Constructs a new query object for querying the buffering status of - * a stream. - * - * Free-function: gst_query_unref() - * - * Params: - * format = the default #GstFormat for the new query - * - * Returns: a new #GstQuery - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstFormat format) - { - auto __p = gst_query_new_buffering(format); - - if(__p is null) - { - throw new ConstructionException("null returned by new_buffering"); - } - - this(cast(GstQuery*) __p); - } - - /** - * Constructs a new query object for querying the caps. - * - * The CAPS query should return the allowable caps for a pad in the context - * of the element's state, its link to other elements, and the devices or files - * it has opened. These caps must be a subset of the pad template caps. In the - * NULL state with no links, the CAPS query should ideally return the same caps - * as the pad template. In rare circumstances, an object property can affect - * the caps returned by the CAPS query, but this is discouraged. - * - * For most filters, the caps returned by CAPS query is directly affected by the - * allowed caps on other pads. For demuxers and decoders, the caps returned by - * the srcpad's getcaps function is directly related to the stream data. Again, - * the CAPS query should return the most specific caps it reasonably can, since this - * helps with autoplugging. - * - * The @filter is used to restrict the result caps, only the caps matching - * @filter should be returned from the CAPS query. Specifying a filter might - * greatly reduce the amount of processing an element needs to do. - * - * Free-function: gst_query_unref() - * - * Params: - * filter = a filter - * - * Returns: a new #GstQuery - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Caps filter) - { - auto __p = gst_query_new_caps((filter is null) ? null : filter.getCapsStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_caps"); - } - - this(cast(GstQuery*) __p); - } - - /** - * Constructs a new query object for querying the pipeline-local context. - * - * Free-function: gst_query_unref() - * - * Params: - * contextType = Context type to query - * - * Returns: a new #GstQuery - * - * Since: 1.2 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string contextType) - { - auto __p = gst_query_new_context(Str.toStringz(contextType)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_context"); - } - - this(cast(GstQuery*) __p); - } - - /** - * Constructs a new convert query object. Use gst_query_unref() - * when done with it. A convert query is used to ask for a conversion between - * one format and another. - * - * Free-function: gst_query_unref() - * - * Params: - * srcFormat = the source #GstFormat for the new query - * value = the value to convert - * destFormat = the target #GstFormat - * - * Returns: a #GstQuery - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstFormat srcFormat, long value, GstFormat destFormat) - { - auto __p = gst_query_new_convert(srcFormat, value, destFormat); - - if(__p is null) - { - throw new ConstructionException("null returned by new_convert"); - } - - this(cast(GstQuery*) __p); - } - - /** - * Constructs a new custom query object. Use gst_query_unref() - * when done with it. - * - * Free-function: gst_query_unref() - * - * Params: - * type = the query type - * structure = a structure for the query - * - * Returns: a new #GstQuery - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstQueryType type, Structure structure) - { - auto __p = gst_query_new_custom(type, (structure is null) ? null : structure.getStructureStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_custom"); - } - - this(cast(GstQuery*) __p); - } - - /** - * Add @api with @params as one of the supported metadata API to @query. - * - * Params: - * api = the metadata API - * params = API specific parameters - */ - public void addAllocationMeta(GType api, Structure params) - { - gst_query_add_allocation_meta(gstQuery, api, (params is null) ? null : params.getStructureStruct()); - } - - /** - * Add @allocator and its @params as a supported memory allocator. - * - * Params: - * allocator = the memory allocator - * params = a #GstAllocationParams - */ - public void addAllocationParam(Allocator allocator, AllocationParams params) - { - gst_query_add_allocation_param(gstQuery, (allocator is null) ? null : allocator.getAllocatorStruct(), (params is null) ? null : params.getAllocationParamsStruct()); - } - - /** - * Set the pool parameters in @query. - * - * Params: - * pool = the #GstBufferPool - * size = the buffer size - * minBuffers = the min buffers - * maxBuffers = the max buffers - */ - public void addAllocationPool(BufferPool pool, uint size, uint minBuffers, uint maxBuffers) - { - gst_query_add_allocation_pool(gstQuery, (pool is null) ? null : pool.getBufferPoolStruct(), size, minBuffers, maxBuffers); - } - - /** - * Set the buffering-ranges array field in @query. The current last - * start position of the array should be inferior to @start. - * - * Params: - * start = start position of the range - * stop = stop position of the range - * - * Returns: a #gboolean indicating if the range was added or not. - */ - public bool addBufferingRange(long start, long stop) - { - return gst_query_add_buffering_range(gstQuery, start, stop) != 0; - } - - /** - * Add @mode as one of the supported scheduling modes to @query. - * - * Params: - * mode = a #GstPadMode - */ - public void addSchedulingMode(GstPadMode mode) - { - gst_query_add_scheduling_mode(gstQuery, mode); - } - - /** - * Check if @query has metadata @api set. When this function returns %TRUE, - * @index will contain the index where the requested API and the parameters - * can be found. - * - * Params: - * api = the metadata API - * index = the index - * - * Returns: %TRUE when @api is in the list of metadata. - */ - public bool findAllocationMeta(GType api, out uint index) - { - return gst_query_find_allocation_meta(gstQuery, api, &index) != 0; - } - - /** - * Retrieve the number of values currently stored in the - * meta API array of the query's structure. - * - * Returns: the metadata API array size as a #guint. - */ - public uint getNAllocationMetas() - { - return gst_query_get_n_allocation_metas(gstQuery); - } - - /** - * Retrieve the number of values currently stored in the - * allocator params array of the query's structure. - * - * If no memory allocator is specified, the downstream element can handle - * the default memory allocator. The first memory allocator in the query - * should be generic and allow mapping to system memory, all following - * allocators should be ordered by preference with the preferred one first. - * - * Returns: the allocator array size as a #guint. - */ - public uint getNAllocationParams() - { - return gst_query_get_n_allocation_params(gstQuery); - } - - /** - * Retrieve the number of values currently stored in the - * pool array of the query's structure. - * - * Returns: the pool array size as a #guint. - */ - public uint getNAllocationPools() - { - return gst_query_get_n_allocation_pools(gstQuery); - } - - /** - * Retrieve the number of values currently stored in the - * buffered-ranges array of the query's structure. - * - * Returns: the range array size as a #guint. - */ - public uint getNBufferingRanges() - { - return gst_query_get_n_buffering_ranges(gstQuery); - } - - /** - * Retrieve the number of values currently stored in the - * scheduling mode array of the query's structure. - * - * Returns: the scheduling mode array size as a #guint. - */ - public uint getNSchedulingModes() - { - return gst_query_get_n_scheduling_modes(gstQuery); - } - - /** - * Get the structure of a query. - * - * Returns: the #GstStructure of the query. The - * structure is still owned by the query and will therefore be freed when the - * query is unreffed. - */ - public Structure getStructure() - { - auto __p = gst_query_get_structure(gstQuery); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Check if @query has scheduling mode set. - * - * > When checking if upstream supports pull mode, it is usually not - * > enough to just check for GST_PAD_MODE_PULL with this function, you - * > also want to check whether the scheduling flags returned by - * > gst_query_parse_scheduling() have the seeking flag set (meaning - * > random access is supported, not only sequential pulls). - * - * Params: - * mode = the scheduling mode - * - * Returns: %TRUE when @mode is in the list of scheduling modes. - */ - public bool hasSchedulingMode(GstPadMode mode) - { - return gst_query_has_scheduling_mode(gstQuery, mode) != 0; - } - - /** - * Check if @query has scheduling mode set and @flags is set in - * query scheduling flags. - * - * Params: - * mode = the scheduling mode - * flags = #GstSchedulingFlags - * - * Returns: %TRUE when @mode is in the list of scheduling modes - * and @flags are compatible with query flags. - */ - public bool hasSchedulingModeWithFlags(GstPadMode mode, GstSchedulingFlags flags) - { - return gst_query_has_scheduling_mode_with_flags(gstQuery, mode, flags) != 0; - } - - /** - * Get the caps from @query. The caps remains valid as long as @query remains - * valid. - * - * Params: - * caps = A pointer to the caps - */ - public void parseAcceptCaps(out Caps caps) - { - GstCaps* outcaps = null; - - gst_query_parse_accept_caps(gstQuery, &outcaps); - - caps = ObjectG.getDObject!(Caps)(outcaps); - } - - /** - * Parse the result from @query and store in @result. - * - * Params: - * result = location for the result - */ - public void parseAcceptCapsResult(ref bool result) - { - int outresult = (result ? 1 : 0); - - gst_query_parse_accept_caps_result(gstQuery, &outresult); - - result = (outresult == 1); - } - - /** - * Parse an allocation query, writing the requested caps in @caps and - * whether a pool is needed in @need_pool, if the respective parameters - * are non-%NULL. - * - * Pool details can be retrieved using gst_query_get_n_allocation_pools() and - * gst_query_parse_nth_allocation_pool(). - * - * Params: - * caps = The #GstCaps - * needPool = Whether a #GstBufferPool is needed - */ - public void parseAllocation(out Caps caps, out bool needPool) - { - GstCaps* outcaps = null; - int outneedPool; - - gst_query_parse_allocation(gstQuery, &outcaps, &outneedPool); - - caps = ObjectG.getDObject!(Caps)(outcaps); - needPool = (outneedPool == 1); - } - - /** - * Get the results of a bitrate query. See also gst_query_set_bitrate(). - * - * Params: - * nominalBitrate = The resulting bitrate in bits per second - * - * Since: 1.16 - */ - public void parseBitrate(out uint nominalBitrate) - { - gst_query_parse_bitrate(gstQuery, &nominalBitrate); - } - - /** - * Get the percentage of buffered data. This is a value between 0 and 100. - * The @busy indicator is %TRUE when the buffering is in progress. - * - * Params: - * busy = if buffering is busy, or %NULL - * percent = a buffering percent, or %NULL - */ - public void parseBufferingPercent(out bool busy, out int percent) - { - int outbusy; - - gst_query_parse_buffering_percent(gstQuery, &outbusy, &percent); - - busy = (outbusy == 1); - } - - /** - * Parse an available query, writing the format into @format, and - * other results into the passed parameters, if the respective parameters - * are non-%NULL - * - * Params: - * format = the format to set for the @segment_start - * and @segment_end values, or %NULL - * start = the start to set, or %NULL - * stop = the stop to set, or %NULL - * estimatedTotal = estimated total amount of download - * time remaining in milliseconds, or %NULL - */ - public void parseBufferingRange(out GstFormat format, out long start, out long stop, out long estimatedTotal) - { - gst_query_parse_buffering_range(gstQuery, &format, &start, &stop, &estimatedTotal); - } - - /** - * Extracts the buffering stats values from @query. - * - * Params: - * mode = a buffering mode, or %NULL - * avgIn = the average input rate, or %NULL - * avgOut = the average output rat, or %NULL - * bufferingLeft = amount of buffering time left in - * milliseconds, or %NULL - */ - public void parseBufferingStats(out GstBufferingMode mode, out int avgIn, out int avgOut, out long bufferingLeft) - { - gst_query_parse_buffering_stats(gstQuery, &mode, &avgIn, &avgOut, &bufferingLeft); - } - - /** - * Get the filter from the caps @query. The caps remains valid as long as - * @query remains valid. - * - * Params: - * filter = A pointer to the caps filter - */ - public void parseCaps(out Caps filter) - { - GstCaps* outfilter = null; - - gst_query_parse_caps(gstQuery, &outfilter); - - filter = ObjectG.getDObject!(Caps)(outfilter); - } - - /** - * Get the caps result from @query. The caps remains valid as long as - * @query remains valid. - * - * Params: - * caps = A pointer to the caps - */ - public void parseCapsResult(out Caps caps) - { - GstCaps* outcaps = null; - - gst_query_parse_caps_result(gstQuery, &outcaps); - - caps = ObjectG.getDObject!(Caps)(outcaps); - } - - /** - * Get the context from the context @query. The context remains valid as long as - * @query remains valid. - * - * Params: - * context = A pointer to store the #GstContext - * - * Since: 1.2 - */ - public void parseContext(out Context context) - { - GstContext* outcontext = null; - - gst_query_parse_context(gstQuery, &outcontext); - - context = ObjectG.getDObject!(Context)(outcontext); - } - - /** - * Parse a context type from an existing GST_QUERY_CONTEXT query. - * - * Params: - * contextType = the context type, or %NULL - * - * Returns: a #gboolean indicating if the parsing succeeded. - * - * Since: 1.2 - */ - public bool parseContextType(out string contextType) - { - char* outcontextType = null; - - auto __p = gst_query_parse_context_type(gstQuery, &outcontextType) != 0; - - contextType = Str.toString(outcontextType); - - return __p; - } - - /** - * Parse a convert query answer. Any of @src_format, @src_value, @dest_format, - * and @dest_value may be %NULL, in which case that value is omitted. - * - * Params: - * srcFormat = the storage for the #GstFormat of the - * source value, or %NULL - * srcValue = the storage for the source value, or %NULL - * destFormat = the storage for the #GstFormat of the - * destination value, or %NULL - * destValue = the storage for the destination value, - * or %NULL - */ - public void parseConvert(out GstFormat srcFormat, out long srcValue, out GstFormat destFormat, out long destValue) - { - gst_query_parse_convert(gstQuery, &srcFormat, &srcValue, &destFormat, &destValue); - } - - /** - * Parse a duration query answer. Write the format of the duration into @format, - * and the value into @duration, if the respective variables are non-%NULL. - * - * Params: - * format = the storage for the #GstFormat of the duration - * value, or %NULL. - * duration = the storage for the total duration, or %NULL. - */ - public void parseDuration(out GstFormat format, out long duration) - { - gst_query_parse_duration(gstQuery, &format, &duration); - } - - /** - * Parse a latency query answer. - * - * Params: - * live = storage for live or %NULL - * minLatency = the storage for the min latency or %NULL - * maxLatency = the storage for the max latency or %NULL - */ - public void parseLatency(out bool live, out GstClockTime minLatency, out GstClockTime maxLatency) - { - int outlive; - - gst_query_parse_latency(gstQuery, &outlive, &minLatency, &maxLatency); - - live = (outlive == 1); - } - - /** - * Parse the number of formats in the formats @query. - * - * Params: - * nFormats = the number of formats in this query. - */ - public void parseNFormats(out uint nFormats) - { - gst_query_parse_n_formats(gstQuery, &nFormats); - } - - /** - * Parse an available query and get the metadata API - * at @index of the metadata API array. - * - * Params: - * index = position in the metadata API array to read - * params = API specific parameters - * - * Returns: a #GType of the metadata API at @index. - */ - public GType parseNthAllocationMeta(uint index, out Structure params) - { - GstStructure* outparams = null; - - auto __p = gst_query_parse_nth_allocation_meta(gstQuery, index, &outparams); - - params = ObjectG.getDObject!(Structure)(outparams); - - return __p; - } - - /** - * Parse an available query and get the allocator and its params - * at @index of the allocator array. - * - * Params: - * index = position in the allocator array to read - * allocator = variable to hold the result - * params = parameters for the allocator - */ - public void parseNthAllocationParam(uint index, out Allocator allocator, out AllocationParams params) - { - GstAllocator* outallocator = null; - GstAllocationParams* outparams = sliceNew!GstAllocationParams(); - - gst_query_parse_nth_allocation_param(gstQuery, index, &outallocator, outparams); - - allocator = ObjectG.getDObject!(Allocator)(outallocator); - params = ObjectG.getDObject!(AllocationParams)(outparams, true); - } - - /** - * Get the pool parameters in @query. - * - * Unref @pool with gst_object_unref() when it's not needed any more. - * - * Params: - * index = index to parse - * pool = the #GstBufferPool - * size = the buffer size - * minBuffers = the min buffers - * maxBuffers = the max buffers - */ - public void parseNthAllocationPool(uint index, out BufferPool pool, out uint size, out uint minBuffers, out uint maxBuffers) - { - GstBufferPool* outpool = null; - - gst_query_parse_nth_allocation_pool(gstQuery, index, &outpool, &size, &minBuffers, &maxBuffers); - - pool = ObjectG.getDObject!(BufferPool)(outpool); - } - - /** - * Parse an available query and get the start and stop values stored - * at the @index of the buffered ranges array. - * - * Params: - * index = position in the buffered-ranges array to read - * start = the start position to set, or %NULL - * stop = the stop position to set, or %NULL - * - * Returns: a #gboolean indicating if the parsing succeeded. - */ - public bool parseNthBufferingRange(uint index, out long start, out long stop) - { - return gst_query_parse_nth_buffering_range(gstQuery, index, &start, &stop) != 0; - } - - /** - * Parse the format query and retrieve the @nth format from it into - * @format. If the list contains less elements than @nth, @format will be - * set to GST_FORMAT_UNDEFINED. - * - * Params: - * nth = the nth format to retrieve. - * format = a pointer to store the nth format - */ - public void parseNthFormat(uint nth, out GstFormat format) - { - gst_query_parse_nth_format(gstQuery, nth, &format); - } - - /** - * Parse an available query and get the scheduling mode - * at @index of the scheduling modes array. - * - * Params: - * index = position in the scheduling modes array to read - * - * Returns: a #GstPadMode of the scheduling mode at @index. - */ - public GstPadMode parseNthSchedulingMode(uint index) - { - return gst_query_parse_nth_scheduling_mode(gstQuery, index); - } - - /** - * Parse a position query, writing the format into @format, and the position - * into @cur, if the respective parameters are non-%NULL. - * - * Params: - * format = the storage for the #GstFormat of the - * position values (may be %NULL) - * cur = the storage for the current position (may be %NULL) - */ - public void parsePosition(out GstFormat format, out long cur) - { - gst_query_parse_position(gstQuery, &format, &cur); - } - - /** - * Set the scheduling properties. - * - * Params: - * flags = #GstSchedulingFlags - * minsize = the suggested minimum size of pull requests - * maxsize = the suggested maximum size of pull requests: - * align_ = the suggested alignment of pull requests - */ - public void parseScheduling(out GstSchedulingFlags flags, out int minsize, out int maxsize, out int align_) - { - gst_query_parse_scheduling(gstQuery, &flags, &minsize, &maxsize, &align_); - } - - /** - * Parse a seeking query, writing the format into @format, and - * other results into the passed parameters, if the respective parameters - * are non-%NULL - * - * Params: - * format = the format to set for the @segment_start - * and @segment_end values, or %NULL - * seekable = the seekable flag to set, or %NULL - * segmentStart = the segment_start to set, or %NULL - * segmentEnd = the segment_end to set, or %NULL - */ - public void parseSeeking(out GstFormat format, out bool seekable, out long segmentStart, out long segmentEnd) - { - int outseekable; - - gst_query_parse_seeking(gstQuery, &format, &outseekable, &segmentStart, &segmentEnd); - - seekable = (outseekable == 1); - } - - /** - * Parse a segment query answer. Any of @rate, @format, @start_value, and - * @stop_value may be %NULL, which will cause this value to be omitted. - * - * See gst_query_set_segment() for an explanation of the function arguments. - * - * Params: - * rate = the storage for the rate of the segment, or %NULL - * format = the storage for the #GstFormat of the values, - * or %NULL - * startValue = the storage for the start value, or %NULL - * stopValue = the storage for the stop value, or %NULL - */ - public void parseSegment(out double rate, out GstFormat format, out long startValue, out long stopValue) - { - gst_query_parse_segment(gstQuery, &rate, &format, &startValue, &stopValue); - } - - /** - * Parse an URI query, writing the URI into @uri as a newly - * allocated string, if the respective parameters are non-%NULL. - * Free the string with g_free() after usage. - * - * Params: - * uri = the storage for the current URI - * (may be %NULL) - */ - public void parseUri(out string uri) - { - char* outuri = null; - - gst_query_parse_uri(gstQuery, &outuri); - - uri = Str.toString(outuri); - } - - /** - * Parse an URI query, writing the URI into @uri as a newly - * allocated string, if the respective parameters are non-%NULL. - * Free the string with g_free() after usage. - * - * Params: - * uri = the storage for the redirect URI - * (may be %NULL) - * - * Since: 1.2 - */ - public void parseUriRedirection(out string uri) - { - char* outuri = null; - - gst_query_parse_uri_redirection(gstQuery, &outuri); - - uri = Str.toString(outuri); - } - - /** - * Parse an URI query, and set @permanent to %TRUE if there is a redirection - * and it should be considered permanent. If a redirection is permanent, - * applications should update their internal storage of the URI, otherwise - * they should make all future requests to the original URI. - * - * Params: - * permanent = if the URI redirection is permanent - * (may be %NULL) - * - * Since: 1.4 - */ - public void parseUriRedirectionPermanent(out bool permanent) - { - int outpermanent; - - gst_query_parse_uri_redirection_permanent(gstQuery, &outpermanent); - - permanent = (outpermanent == 1); - } - - /** - * Remove the metadata API at @index of the metadata API array. - * - * Params: - * index = position in the metadata API array to remove - */ - public void removeNthAllocationMeta(uint index) - { - gst_query_remove_nth_allocation_meta(gstQuery, index); - } - - /** - * Remove the allocation param at @index of the allocation param array. - * - * Params: - * index = position in the allocation param array to remove - * - * Since: 1.2 - */ - public void removeNthAllocationParam(uint index) - { - gst_query_remove_nth_allocation_param(gstQuery, index); - } - - /** - * Remove the allocation pool at @index of the allocation pool array. - * - * Params: - * index = position in the allocation pool array to remove - * - * Since: 1.2 - */ - public void removeNthAllocationPool(uint index) - { - gst_query_remove_nth_allocation_pool(gstQuery, index); - } - - /** - * Set @result as the result for the @query. - * - * Params: - * result = the result to set - */ - public void setAcceptCapsResult(bool result) - { - gst_query_set_accept_caps_result(gstQuery, result); - } - - /** - * Set the results of a bitrate query. The nominal bitrate is the average - * bitrate expected over the length of the stream as advertised in file - * headers (or similar). - * - * Params: - * nominalBitrate = the nominal bitrate in bits per second - * - * Since: 1.16 - */ - public void setBitrate(uint nominalBitrate) - { - gst_query_set_bitrate(gstQuery, nominalBitrate); - } - - /** - * Set the percentage of buffered data. This is a value between 0 and 100. - * The @busy indicator is %TRUE when the buffering is in progress. - * - * Params: - * busy = if buffering is busy - * percent = a buffering percent - */ - public void setBufferingPercent(bool busy, int percent) - { - gst_query_set_buffering_percent(gstQuery, busy, percent); - } - - /** - * Set the available query result fields in @query. - * - * Params: - * format = the format to set for the @start and @stop values - * start = the start to set - * stop = the stop to set - * estimatedTotal = estimated total amount of download time remaining in - * milliseconds - */ - public void setBufferingRange(GstFormat format, long start, long stop, long estimatedTotal) - { - gst_query_set_buffering_range(gstQuery, format, start, stop, estimatedTotal); - } - - /** - * Configures the buffering stats values in @query. - * - * Params: - * mode = a buffering mode - * avgIn = the average input rate - * avgOut = the average output rate - * bufferingLeft = amount of buffering time left in milliseconds - */ - public void setBufferingStats(GstBufferingMode mode, int avgIn, int avgOut, long bufferingLeft) - { - gst_query_set_buffering_stats(gstQuery, mode, avgIn, avgOut, bufferingLeft); - } - - /** - * Set the @caps result in @query. - * - * Params: - * caps = A pointer to the caps - */ - public void setCapsResult(Caps caps) - { - gst_query_set_caps_result(gstQuery, (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * Answer a context query by setting the requested context. - * - * Params: - * context = the requested #GstContext - * - * Since: 1.2 - */ - public void setContext(Context context) - { - gst_query_set_context(gstQuery, (context is null) ? null : context.getContextStruct()); - } - - /** - * Answer a convert query by setting the requested values. - * - * Params: - * srcFormat = the source #GstFormat - * srcValue = the source value - * destFormat = the destination #GstFormat - * destValue = the destination value - */ - public void setConvert(GstFormat srcFormat, long srcValue, GstFormat destFormat, long destValue) - { - gst_query_set_convert(gstQuery, srcFormat, srcValue, destFormat, destValue); - } - - /** - * Answer a duration query by setting the requested value in the given format. - * - * Params: - * format = the #GstFormat for the duration - * duration = the duration of the stream - */ - public void setDuration(GstFormat format, long duration) - { - gst_query_set_duration(gstQuery, format, duration); - } - - /** - * Set the formats query result fields in @query. The number of formats passed - * in the @formats array must be equal to @n_formats. - * - * Params: - * formats = an array containing @n_formats - * @GstFormat values. - */ - public void setFormatsv(GstFormat[] formats) - { - gst_query_set_formatsv(gstQuery, cast(int)formats.length, formats.ptr); - } - - /** - * Answer a latency query by setting the requested values in the given format. - * - * Params: - * live = if there is a live element upstream - * minLatency = the minimal latency of the upstream elements - * maxLatency = the maximal latency of the upstream elements - */ - public void setLatency(bool live, GstClockTime minLatency, GstClockTime maxLatency) - { - gst_query_set_latency(gstQuery, live, minLatency, maxLatency); - } - - /** - * Parse an available query and get the allocator and its params - * at @index of the allocator array. - * - * Params: - * index = position in the allocator array to set - * allocator = new allocator to set - * params = parameters for the allocator - */ - public void setNthAllocationParam(uint index, Allocator allocator, AllocationParams params) - { - gst_query_set_nth_allocation_param(gstQuery, index, (allocator is null) ? null : allocator.getAllocatorStruct(), (params is null) ? null : params.getAllocationParamsStruct()); - } - - /** - * Set the pool parameters in @query. - * - * Params: - * index = index to modify - * pool = the #GstBufferPool - * size = the buffer size - * minBuffers = the min buffers - * maxBuffers = the max buffers - */ - public void setNthAllocationPool(uint index, BufferPool pool, uint size, uint minBuffers, uint maxBuffers) - { - gst_query_set_nth_allocation_pool(gstQuery, index, (pool is null) ? null : pool.getBufferPoolStruct(), size, minBuffers, maxBuffers); - } - - /** - * Answer a position query by setting the requested value in the given format. - * - * Params: - * format = the requested #GstFormat - * cur = the position to set - */ - public void setPosition(GstFormat format, long cur) - { - gst_query_set_position(gstQuery, format, cur); - } - - /** - * Set the scheduling properties. - * - * Params: - * flags = #GstSchedulingFlags - * minsize = the suggested minimum size of pull requests - * maxsize = the suggested maximum size of pull requests - * align_ = the suggested alignment of pull requests - */ - public void setScheduling(GstSchedulingFlags flags, int minsize, int maxsize, int align_) - { - gst_query_set_scheduling(gstQuery, flags, minsize, maxsize, align_); - } - - /** - * Set the seeking query result fields in @query. - * - * Params: - * format = the format to set for the @segment_start and @segment_end values - * seekable = the seekable flag to set - * segmentStart = the segment_start to set - * segmentEnd = the segment_end to set - */ - public void setSeeking(GstFormat format, bool seekable, long segmentStart, long segmentEnd) - { - gst_query_set_seeking(gstQuery, format, seekable, segmentStart, segmentEnd); - } - - /** - * Answer a segment query by setting the requested values. The normal - * playback segment of a pipeline is 0 to duration at the default rate of - * 1.0. If a seek was performed on the pipeline to play a different - * segment, this query will return the range specified in the last seek. - * - * @start_value and @stop_value will respectively contain the configured - * playback range start and stop values expressed in @format. - * The values are always between 0 and the duration of the media and - * @start_value <= @stop_value. @rate will contain the playback rate. For - * negative rates, playback will actually happen from @stop_value to - * @start_value. - * - * Params: - * rate = the rate of the segment - * format = the #GstFormat of the segment values (@start_value and @stop_value) - * startValue = the start value - * stopValue = the stop value - */ - public void setSegment(double rate, GstFormat format, long startValue, long stopValue) - { - gst_query_set_segment(gstQuery, rate, format, startValue, stopValue); - } - - /** - * Answer a URI query by setting the requested URI. - * - * Params: - * uri = the URI to set - */ - public void setUri(string uri) - { - gst_query_set_uri(gstQuery, Str.toStringz(uri)); - } - - /** - * Answer a URI query by setting the requested URI redirection. - * - * Params: - * uri = the URI to set - * - * Since: 1.2 - */ - public void setUriRedirection(string uri) - { - gst_query_set_uri_redirection(gstQuery, Str.toStringz(uri)); - } - - /** - * Answer a URI query by setting the requested URI redirection - * to permanent or not. - * - * Params: - * permanent = whether the redirect is permanent or not - * - * Since: 1.4 - */ - public void setUriRedirectionPermanent(bool permanent) - { - gst_query_set_uri_redirection_permanent(gstQuery, permanent); - } - - /** - * Get the structure of a query. This method should be called with a writable - * @query so that the returned structure is guaranteed to be writable. - * - * Returns: the #GstStructure of the query. The structure is - * still owned by the query and will therefore be freed when the query - * is unreffed. - */ - public Structure writableStructure() - { - auto __p = gst_query_writable_structure(gstQuery); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Gets the #GstQueryTypeFlags associated with @type. - * - * Params: - * type = a #GstQueryType - * - * Returns: a #GstQueryTypeFlags. - */ - public static GstQueryTypeFlags typeGetFlags(GstQueryType type) - { - return gst_query_type_get_flags(type); - } - - /** - * Get a printable name for the given query type. Do not modify or free. - * - * Params: - * type = the query type - * - * Returns: a reference to the static name of the query. - */ - public static string typeGetName(GstQueryType type) - { - return Str.toString(gst_query_type_get_name(type)); - } - - /** - * Get the unique quark for the given query type. - * - * Params: - * type = the query type - * - * Returns: the quark associated with the query type - */ - public static GQuark typeToQuark(GstQueryType type) - { - return gst_query_type_to_quark(type); - } -} diff --git a/generated/gstreamer/gstreamer/ReferenceTimestampMeta.d b/generated/gstreamer/gstreamer/ReferenceTimestampMeta.d deleted file mode 100644 index 697c909cc..000000000 --- a/generated/gstreamer/gstreamer/ReferenceTimestampMeta.d +++ /dev/null @@ -1,59 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ReferenceTimestampMeta; - -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * #GstReferenceTimestampMeta can be used to attach alternative timestamps and - * possibly durations to a #GstBuffer. These are generally not according to - * the pipeline clock and could be e.g. the NTP timestamp when the media was - * captured. - * - * The reference is stored as a #GstCaps in @reference. Examples of valid - * references would be "timestamp/x-drivername-stream" for timestamps that are locally - * generated by some driver named "drivername" when generating the stream, - * e.g. based on a frame counter, or "timestamp/x-ntp, host=pool.ntp.org, - * port=123" for timestamps based on a specific NTP server. - * - * Since: 1.14 - */ -public struct ReferenceTimestampMeta -{ - - /** - * Get the global #GstMetaInfo describing the #GstReferenceTimestampMeta meta. - * - * Returns: The #GstMetaInfo - * - * Since: 1.14 - */ - public static GstMetaInfo* getInfo() - { - return gst_reference_timestamp_meta_get_info(); - } -} diff --git a/generated/gstreamer/gstreamer/Registry.d b/generated/gstreamer/gstreamer/Registry.d deleted file mode 100644 index 16b0caba6..000000000 --- a/generated/gstreamer/gstreamer/Registry.d +++ /dev/null @@ -1,528 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Registry; - -private import glib.ListG; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import gstreamer.ObjectGst; -private import gstreamer.Plugin; -private import gstreamer.PluginFeature; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * One registry holds the metadata of a set of plugins. - * - * Design: - * - * The #GstRegistry object is a list of plugins and some functions for dealing - * with them. Each #GstPlugin is matched 1-1 with a file on disk, and may or may - * not be loaded at a given time. - * - * The primary source, at all times, of plugin information is each plugin file - * itself. Thus, if an application wants information about a particular plugin, - * or wants to search for a feature that satisfies given criteria, the primary - * means of doing so is to load every plugin and look at the resulting - * information that is gathered in the default registry. Clearly, this is a time - * consuming process, so we cache information in the registry file. The format - * and location of the cache file is internal to gstreamer. - * - * On startup, plugins are searched for in the plugin search path. The following - * locations are checked in this order: - * - * * location from --gst-plugin-path commandline option. - * * the GST_PLUGIN_PATH environment variable. - * * the GST_PLUGIN_SYSTEM_PATH environment variable. - * * default locations (if GST_PLUGIN_SYSTEM_PATH is not set). - * Those default locations are: - * `$XDG_DATA_HOME/gstreamer-$GST_API_VERSION/plugins/` - * and `$prefix/libs/gstreamer-$GST_API_VERSION/`. - * [$XDG_DATA_HOME](http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html) defaults to - * `$HOME/.local/share`. - * - * The registry cache file is loaded from - * `$XDG_CACHE_HOME/gstreamer-$GST_API_VERSION/registry-$ARCH.bin` - * (where $XDG_CACHE_HOME defaults to `$HOME/.cache`) or the file listed in the `GST_REGISTRY` - * env var. One reason to change the registry location is for testing. - * - * For each plugin that is found in the plugin search path, there could be 3 - * possibilities for cached information: - * - * * the cache may not contain information about a given file. - * * the cache may have stale information. - * * the cache may have current information. - * - * In the first two cases, the plugin is loaded and the cache updated. In - * addition to these cases, the cache may have entries for plugins that are not - * relevant to the current process. These are marked as not available to the - * current process. If the cache is updated for whatever reason, it is marked - * dirty. - * - * A dirty cache is written out at the end of initialization. Each entry is - * checked to make sure the information is minimally valid. If not, the entry is - * simply dropped. - * - * ## Implementation notes: - * - * The "cache" and "registry" are different concepts and can represent - * different sets of plugins. For various reasons, at init time, the cache is - * stored in the default registry, and plugins not relevant to the current - * process are marked with the %GST_PLUGIN_FLAG_CACHED bit. These plugins are - * removed at the end of initialization. - */ -public class Registry : ObjectGst -{ - /** the main Gtk struct */ - protected GstRegistry* gstRegistry; - - /** Get the main Gtk struct */ - public GstRegistry* getRegistryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstRegistry; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstRegistry; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstRegistry* gstRegistry, bool ownedRef = false) - { - this.gstRegistry = gstRegistry; - super(cast(GstObject*)gstRegistry, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_registry_get_type(); - } - - /** - * By default GStreamer will perform scanning and rebuilding of the - * registry file using a helper child process. - * - * Applications might want to disable this behaviour with the - * gst_registry_fork_set_enabled() function, in which case new plugins - * are scanned (and loaded) into the application process. - * - * Returns: %TRUE if GStreamer will use the child helper process when - * rebuilding the registry. - */ - public static bool forkIsEnabled() - { - return gst_registry_fork_is_enabled() != 0; - } - - /** - * Applications might want to disable/enable spawning of a child helper process - * when rebuilding the registry. See gst_registry_fork_is_enabled() for more - * information. - * - * Params: - * enabled = whether rebuilding the registry can use a temporary child helper process. - */ - public static void forkSetEnabled(bool enabled) - { - gst_registry_fork_set_enabled(enabled); - } - - /** - * Retrieves the singleton plugin registry. The caller does not own a - * reference on the registry, as it is alive as long as GStreamer is - * initialized. - * - * Returns: the #GstRegistry. - */ - public static Registry get() - { - auto __p = gst_registry_get(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Registry)(cast(GstRegistry*) __p); - } - - /** - * Add the feature to the registry. The feature-added signal will be emitted. - * - * @feature's reference count will be incremented, and any floating - * reference will be removed (see gst_object_ref_sink()) - * - * Params: - * feature = the feature to add - * - * Returns: %TRUE on success. - * - * MT safe. - */ - public bool addFeature(PluginFeature feature) - { - return gst_registry_add_feature(gstRegistry, (feature is null) ? null : feature.getPluginFeatureStruct()) != 0; - } - - /** - * Add the plugin to the registry. The plugin-added signal will be emitted. - * - * @plugin's reference count will be incremented, and any floating - * reference will be removed (see gst_object_ref_sink()) - * - * Params: - * plugin = the plugin to add - * - * Returns: %TRUE on success. - * - * MT safe. - */ - public bool addPlugin(Plugin plugin) - { - return gst_registry_add_plugin(gstRegistry, (plugin is null) ? null : plugin.getPluginStruct()) != 0; - } - - /** - * Checks whether a plugin feature by the given name exists in - * @registry and whether its version is at least the - * version required. - * - * Params: - * featureName = the name of the feature (e.g. "oggdemux") - * minMajor = the minimum major version number - * minMinor = the minimum minor version number - * minMicro = the minimum micro version number - * - * Returns: %TRUE if the feature could be found and the version is - * the same as the required version or newer, and %FALSE otherwise. - */ - public bool checkFeatureVersion(string featureName, uint minMajor, uint minMinor, uint minMicro) - { - return gst_registry_check_feature_version(gstRegistry, Str.toStringz(featureName), minMajor, minMinor, minMicro) != 0; - } - - /** - * Runs a filter against all features of the plugins in the registry - * and returns a GList with the results. - * If the first flag is set, only the first match is - * returned (as a list with a single object). - * - * Params: - * filter = the filter to use - * first = only return first match - * userData = user data passed to the filter function - * - * Returns: a #GList of - * #GstPluginFeature. Use gst_plugin_feature_list_free() after usage. - * - * MT safe. - */ - public ListG featureFilter(GstPluginFeatureFilter filter, bool first, void* userData) - { - auto __p = gst_registry_feature_filter(gstRegistry, filter, first, userData); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Find the pluginfeature with the given name and type in the registry. - * - * Params: - * name = the pluginfeature name to find - * type = the pluginfeature type to find - * - * Returns: the pluginfeature with the - * given name and type or %NULL if the plugin was not - * found. gst_object_unref() after usage. - * - * MT safe. - */ - public PluginFeature findFeature(string name, GType type) - { - auto __p = gst_registry_find_feature(gstRegistry, Str.toStringz(name), type); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PluginFeature)(cast(GstPluginFeature*) __p, true); - } - - /** - * Find the plugin with the given name in the registry. - * The plugin will be reffed; caller is responsible for unreffing. - * - * Params: - * name = the plugin name to find - * - * Returns: the plugin with the given name - * or %NULL if the plugin was not found. gst_object_unref() after - * usage. - * - * MT safe. - */ - public Plugin findPlugin(string name) - { - auto __p = gst_registry_find_plugin(gstRegistry, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Plugin)(cast(GstPlugin*) __p, true); - } - - /** - * Retrieves a #GList of #GstPluginFeature of @type. - * - * Params: - * type = a #GType. - * - * Returns: a #GList of - * #GstPluginFeature of @type. Use gst_plugin_feature_list_free() after use - * - * MT safe. - */ - public ListG getFeatureList(GType type) - { - auto __p = gst_registry_get_feature_list(gstRegistry, type); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Retrieves a #GList of features of the plugin with name @name. - * - * Params: - * name = a plugin name. - * - * Returns: a #GList of - * #GstPluginFeature. Use gst_plugin_feature_list_free() after usage. - */ - public ListG getFeatureListByPlugin(string name) - { - auto __p = gst_registry_get_feature_list_by_plugin(gstRegistry, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Returns the registry's feature list cookie. This changes - * every time a feature is added or removed from the registry. - * - * Returns: the feature list cookie. - */ - public uint getFeatureListCookie() - { - return gst_registry_get_feature_list_cookie(gstRegistry); - } - - /** - * Get a copy of all plugins registered in the given registry. The refcount - * of each element in the list in incremented. - * - * Returns: a #GList of #GstPlugin. - * Use gst_plugin_list_free() after usage. - * - * MT safe. - */ - public ListG getPluginList() - { - auto __p = gst_registry_get_plugin_list(gstRegistry); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Look up a plugin in the given registry with the given filename. - * If found, plugin is reffed. - * - * Params: - * filename = the name of the file to look up - * - * Returns: the #GstPlugin if found, or - * %NULL if not. gst_object_unref() after usage. - */ - public Plugin lookup(string filename) - { - auto __p = gst_registry_lookup(gstRegistry, Str.toStringz(filename)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Plugin)(cast(GstPlugin*) __p, true); - } - - /** - * Find a #GstPluginFeature with @name in @registry. - * - * Params: - * name = a #GstPluginFeature name - * - * Returns: a #GstPluginFeature with its refcount incremented, - * use gst_object_unref() after usage. - * - * MT safe. - */ - public PluginFeature lookupFeature(string name) - { - auto __p = gst_registry_lookup_feature(gstRegistry, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PluginFeature)(cast(GstPluginFeature*) __p, true); - } - - /** - * Runs a filter against all plugins in the registry and returns a #GList with - * the results. If the first flag is set, only the first match is - * returned (as a list with a single object). - * Every plugin is reffed; use gst_plugin_list_free() after use, which - * will unref again. - * - * Params: - * filter = the filter to use - * first = only return first match - * userData = user data passed to the filter function - * - * Returns: a #GList of #GstPlugin. - * Use gst_plugin_list_free() after usage. - * - * MT safe. - */ - public ListG pluginFilter(GstPluginFilter filter, bool first, void* userData) - { - auto __p = gst_registry_plugin_filter(gstRegistry, filter, first, userData); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Remove the feature from the registry. - * - * MT safe. - * - * Params: - * feature = the feature to remove - */ - public void removeFeature(PluginFeature feature) - { - gst_registry_remove_feature(gstRegistry, (feature is null) ? null : feature.getPluginFeatureStruct()); - } - - /** - * Remove the plugin from the registry. - * - * MT safe. - * - * Params: - * plugin = the plugin to remove - */ - public void removePlugin(Plugin plugin) - { - gst_registry_remove_plugin(gstRegistry, (plugin is null) ? null : plugin.getPluginStruct()); - } - - /** - * Scan the given path for plugins to add to the registry. The syntax of the - * path is specific to the registry. - * - * Params: - * path = the path to scan - * - * Returns: %TRUE if registry changed - */ - public bool scanPath(string path) - { - return gst_registry_scan_path(gstRegistry, Str.toStringz(path)) != 0; - } - - /** - * Signals that a feature has been added to the registry (possibly - * replacing a previously-added one by the same name) - * - * Params: - * feature = the feature that has been added - */ - gulong addOnFeatureAdded(void delegate(PluginFeature, Registry) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "feature-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signals that a plugin has been added to the registry (possibly - * replacing a previously-added one by the same name) - * - * Params: - * plugin = the plugin that has been added - */ - gulong addOnPluginAdded(void delegate(Plugin, Registry) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "plugin-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/Sample.d b/generated/gstreamer/gstreamer/Sample.d deleted file mode 100644 index 4583cc33e..000000000 --- a/generated/gstreamer/gstreamer/Sample.d +++ /dev/null @@ -1,269 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Sample; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gstreamer.Buffer; -private import gstreamer.BufferList; -private import gstreamer.Caps; -private import gstreamer.Segment; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A #GstSample is a small object containing data, a type, timing and - * extra arbitrary information. - */ -public class Sample -{ - /** the main Gtk struct */ - protected GstSample* gstSample; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstSample* getSampleStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstSample; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstSample; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstSample* gstSample, bool ownedRef = false) - { - this.gstSample = gstSample; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_sample_get_type(); - } - - /** - * Create a new #GstSample with the provided details. - * - * Free-function: gst_sample_unref - * - * Params: - * buffer = a #GstBuffer, or %NULL - * caps = a #GstCaps, or %NULL - * segment = a #GstSegment, or %NULL - * info = a #GstStructure, or %NULL - * - * Returns: the new #GstSample. gst_sample_unref() - * after usage. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Buffer buffer, Caps caps, Segment segment, Structure info) - { - auto __p = gst_sample_new((buffer is null) ? null : buffer.getBufferStruct(), (caps is null) ? null : caps.getCapsStruct(), (segment is null) ? null : segment.getSegmentStruct(), (info is null) ? null : info.getStructureStruct(true)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstSample*) __p); - } - - /** - * Get the buffer associated with @sample - * - * Returns: the buffer of @sample or %NULL - * when there is no buffer. The buffer remains valid as long as - * @sample is valid. If you need to hold on to it for longer than - * that, take a ref to the buffer with gst_buffer_ref(). - */ - public Buffer getBuffer() - { - auto __p = gst_sample_get_buffer(gstSample); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Buffer)(cast(GstBuffer*) __p); - } - - /** - * Get the buffer list associated with @sample - * - * Returns: the buffer list of @sample or %NULL - * when there is no buffer list. The buffer list remains valid as long as - * @sample is valid. If you need to hold on to it for longer than - * that, take a ref to the buffer list with gst_mini_object_ref (). - * - * Since: 1.6 - */ - public BufferList getBufferList() - { - auto __p = gst_sample_get_buffer_list(gstSample); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(BufferList)(cast(GstBufferList*) __p); - } - - /** - * Get the caps associated with @sample - * - * Returns: the caps of @sample or %NULL - * when there is no caps. The caps remain valid as long as @sample is - * valid. If you need to hold on to the caps for longer than that, - * take a ref to the caps with gst_caps_ref(). - */ - public Caps getCaps() - { - auto __p = gst_sample_get_caps(gstSample); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p); - } - - /** - * Get extra information associated with @sample. - * - * Returns: the extra info of @sample. - * The info remains valid as long as @sample is valid. - */ - public Structure getInfo() - { - auto __p = gst_sample_get_info(gstSample); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Get the segment associated with @sample - * - * Returns: the segment of @sample. - * The segment remains valid as long as @sample is valid. - */ - public Segment getSegment() - { - auto __p = gst_sample_get_segment(gstSample); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Segment)(cast(GstSegment*) __p); - } - - /** - * Set the buffer associated with @sample. @sample must be writable. - * - * Params: - * buffer = A #GstBuffer - * - * Since: 1.16 - */ - public void setBuffer(Buffer buffer) - { - gst_sample_set_buffer(gstSample, (buffer is null) ? null : buffer.getBufferStruct()); - } - - /** - * Set the buffer list associated with @sample. @sample must be writable. - * - * Params: - * bufferList = a #GstBufferList - * - * Since: 1.6 - */ - public void setBufferList(BufferList bufferList) - { - gst_sample_set_buffer_list(gstSample, (bufferList is null) ? null : bufferList.getBufferListStruct()); - } - - /** - * Set the caps associated with @sample. @sample must be writable. - * - * Params: - * caps = A #GstCaps - * - * Since: 1.16 - */ - public void setCaps(Caps caps) - { - gst_sample_set_caps(gstSample, (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * Set the info structure associated with @sample. @sample must be writable, - * and @info must not have a parent set already. - * - * Params: - * info = A #GstStructure - * - * Since: 1.16 - */ - public bool setInfo(Structure info) - { - return gst_sample_set_info(gstSample, (info is null) ? null : info.getStructureStruct(true)) != 0; - } - - /** - * Set the segment associated with @sample. @sample must be writable. - * - * Params: - * segment = A #GstSegment - * - * Since: 1.16 - */ - public void setSegment(Segment segment) - { - gst_sample_set_segment(gstSample, (segment is null) ? null : segment.getSegmentStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/Segment.d b/generated/gstreamer/gstreamer/Segment.d deleted file mode 100644 index 12a135bbd..000000000 --- a/generated/gstreamer/gstreamer/Segment.d +++ /dev/null @@ -1,560 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Segment; - -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * This helper structure holds the relevant values for tracking the region of - * interest in a media file, called a segment. - * - * The structure can be used for two purposes: - * - * * performing seeks (handling seek events) - * * tracking playback regions (handling newsegment events) - * - * The segment is usually configured by the application with a seek event which - * is propagated upstream and eventually handled by an element that performs the seek. - * - * The configured segment is then propagated back downstream with a newsegment event. - * This information is then used to clip media to the segment boundaries. - * - * A segment structure is initialized with gst_segment_init(), which takes a #GstFormat - * that will be used as the format of the segment values. The segment will be configured - * with a start value of 0 and a stop/duration of -1, which is undefined. The default - * rate and applied_rate is 1.0. - * - * The public duration field contains the duration of the segment. When using - * the segment for seeking, the start and time members should normally be left - * to their default 0 value. The stop position is left to -1 unless explicitly - * configured to a different value after a seek event. - * - * The current position in the segment should be set by changing the position - * member in the structure. - * - * For elements that perform seeks, the current segment should be updated with the - * gst_segment_do_seek() and the values from the seek event. This method will update - * all the segment fields. The position field will contain the new playback position. - * If the start_type was different from GST_SEEK_TYPE_NONE, playback continues from - * the position position, possibly with updated flags or rate. - * - * For elements that want to use #GstSegment to track the playback region, - * update the segment fields with the information from the newsegment event. - * The gst_segment_clip() method can be used to check and clip - * the media data to the segment boundaries. - * - * For elements that want to synchronize to the pipeline clock, gst_segment_to_running_time() - * can be used to convert a timestamp to a value that can be used to synchronize - * to the clock. This function takes into account the base as well as - * any rate or applied_rate conversions. - * - * For elements that need to perform operations on media data in stream_time, - * gst_segment_to_stream_time() can be used to convert a timestamp and the segment - * info to stream time (which is always between 0 and the duration of the stream). - */ -public class Segment -{ - /** the main Gtk struct */ - protected GstSegment* gstSegment; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstSegment* getSegmentStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstSegment; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstSegment; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstSegment* gstSegment, bool ownedRef = false) - { - this.gstSegment = gstSegment; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_segment_free(gstSegment); - } - - - /** */ - public static GType getType() - { - return gst_segment_get_type(); - } - - /** - * Allocate a new #GstSegment structure and initialize it using - * gst_segment_init(). - * - * Free-function: gst_segment_free - * - * Returns: a new #GstSegment, free with gst_segment_free(). - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_segment_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstSegment*) __p); - } - - /** - * Clip the given @start and @stop values to the segment boundaries given - * in @segment. @start and @stop are compared and clipped to @segment - * start and stop values. - * - * If the function returns %FALSE, @start and @stop are known to fall - * outside of @segment and @clip_start and @clip_stop are not updated. - * - * When the function returns %TRUE, @clip_start and @clip_stop will be - * updated. If @clip_start or @clip_stop are different from @start or @stop - * respectively, the region fell partially in the segment. - * - * Note that when @stop is -1, @clip_stop will be set to the end of the - * segment. Depending on the use case, this may or may not be what you want. - * - * Params: - * format = the format of the segment. - * start = the start position in the segment - * stop = the stop position in the segment - * clipStart = the clipped start position in the segment - * clipStop = the clipped stop position in the segment - * - * Returns: %TRUE if the given @start and @stop times fall partially or - * completely in @segment, %FALSE if the values are completely outside - * of the segment. - */ - public bool clip(GstFormat format, ulong start, ulong stop, out ulong clipStart, out ulong clipStop) - { - return gst_segment_clip(gstSegment, format, start, stop, &clipStart, &clipStop) != 0; - } - - /** - * Create a copy of given @segment. - * - * Free-function: gst_segment_free - * - * Returns: a new #GstSegment, free with gst_segment_free(). - */ - public Segment copy() - { - auto __p = gst_segment_copy(gstSegment); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Segment)(cast(GstSegment*) __p, true); - } - - /** - * Copy the contents of @src into @dest. - * - * Params: - * dest = a #GstSegment - */ - public void copyInto(Segment dest) - { - gst_segment_copy_into(gstSegment, (dest is null) ? null : dest.getSegmentStruct()); - } - - /** - * Update the segment structure with the field values of a seek event (see - * gst_event_new_seek()). - * - * After calling this method, the segment field position and time will - * contain the requested new position in the segment. The new requested - * position in the segment depends on @rate and @start_type and @stop_type. - * - * For positive @rate, the new position in the segment is the new @segment - * start field when it was updated with a @start_type different from - * #GST_SEEK_TYPE_NONE. If no update was performed on @segment start position - * (#GST_SEEK_TYPE_NONE), @start is ignored and @segment position is - * unmodified. - * - * For negative @rate, the new position in the segment is the new @segment - * stop field when it was updated with a @stop_type different from - * #GST_SEEK_TYPE_NONE. If no stop was previously configured in the segment, the - * duration of the segment will be used to update the stop position. - * If no update was performed on @segment stop position (#GST_SEEK_TYPE_NONE), - * @stop is ignored and @segment position is unmodified. - * - * The applied rate of the segment will be set to 1.0 by default. - * If the caller can apply a rate change, it should update @segment - * rate and applied_rate after calling this function. - * - * @update will be set to %TRUE if a seek should be performed to the segment - * position field. This field can be %FALSE if, for example, only the @rate - * has been changed but not the playback position. - * - * Params: - * rate = the rate of the segment. - * format = the format of the segment. - * flags = the segment flags for the segment - * startType = the seek method - * start = the seek start value - * stopType = the seek method - * stop = the seek stop value - * update = boolean holding whether position was updated. - * - * Returns: %TRUE if the seek could be performed. - */ - public bool doSeek(double rate, GstFormat format, GstSeekFlags flags, GstSeekType startType, ulong start, GstSeekType stopType, ulong stop, ref bool update) - { - int outupdate = (update ? 1 : 0); - - auto __p = gst_segment_do_seek(gstSegment, rate, format, flags, startType, start, stopType, stop, &outupdate) != 0; - - update = (outupdate == 1); - - return __p; - } - - /** - * Free the allocated segment @segment. - */ - public void free() - { - gst_segment_free(gstSegment); - ownedRef = false; - } - - /** - * The start/position fields are set to 0 and the stop/duration - * fields are set to -1 (unknown). The default rate of 1.0 and no - * flags are set. - * - * Initialize @segment to its default values. - * - * Params: - * format = the format of the segment. - */ - public void init(GstFormat format) - { - gst_segment_init(gstSegment, format); - } - - /** - * Checks for two segments being equal. Equality here is defined - * as perfect equality, including floating point values. - * - * Params: - * s1 = a #GstSegment structure. - * - * Returns: %TRUE if the segments are equal, %FALSE otherwise. - * - * Since: 1.6 - */ - public bool isEqual(Segment s1) - { - return gst_segment_is_equal(gstSegment, (s1 is null) ? null : s1.getSegmentStruct()) != 0; - } - - /** - * Adjust the values in @segment so that @offset is applied to all - * future running-time calculations. - * - * Params: - * format = the format of the segment. - * offset = the offset to apply in the segment - * - * Returns: %TRUE if the segment could be updated successfully. If %FALSE is - * returned, @offset is not in @segment. - * - * Since: 1.2.3 - */ - public bool offsetRunningTime(GstFormat format, long offset) - { - return gst_segment_offset_running_time(gstSegment, format, offset) != 0; - } - - /** - * Convert @running_time into a position in the segment so that - * gst_segment_to_running_time() with that position returns @running_time. - * - * Params: - * format = the format of the segment. - * runningTime = the running_time in the segment - * - * Returns: the position in the segment for @running_time. This function returns - * -1 when @running_time is -1 or when it is not inside @segment. - * - * Since: 1.8 - */ - public ulong positionFromRunningTime(GstFormat format, ulong runningTime) - { - return gst_segment_position_from_running_time(gstSegment, format, runningTime); - } - - /** - * Translate @running_time to the segment position using the currently configured - * segment. Compared to gst_segment_position_from_running_time() this function can - * return negative segment position. - * - * This function is typically used by elements that need to synchronize buffers - * against the clock or each other. - * - * @running_time can be any value and the result of this function for values - * outside of the segment is extrapolated. - * - * When 1 is returned, @running_time resulted in a positive position returned - * in @position. - * - * When this function returns -1, the returned @position was < 0, and the value - * in the position variable should be negated to get the real negative segment - * position. - * - * Params: - * format = the format of the segment. - * runningTime = the running-time - * position = the resulting position in the segment - * - * Returns: a 1 or -1 on success, 0 on failure. - * - * Since: 1.8 - */ - public int positionFromRunningTimeFull(GstFormat format, ulong runningTime, out ulong position) - { - return gst_segment_position_from_running_time_full(gstSegment, format, runningTime, &position); - } - - /** - * Convert @stream_time into a position in the segment so that - * gst_segment_to_stream_time() with that position returns @stream_time. - * - * Params: - * format = the format of the segment. - * streamTime = the stream_time in the segment - * - * Returns: the position in the segment for @stream_time. This function returns - * -1 when @stream_time is -1 or when it is not inside @segment. - * - * Since: 1.8 - */ - public ulong positionFromStreamTime(GstFormat format, ulong streamTime) - { - return gst_segment_position_from_stream_time(gstSegment, format, streamTime); - } - - /** - * Translate @stream_time to the segment position using the currently configured - * segment. Compared to gst_segment_position_from_stream_time() this function can - * return negative segment position. - * - * This function is typically used by elements that need to synchronize buffers - * against the clock or each other. - * - * @stream_time can be any value and the result of this function for values outside - * of the segment is extrapolated. - * - * When 1 is returned, @stream_time resulted in a positive position returned - * in @position. - * - * When this function returns -1, the returned @position should be negated - * to get the real negative segment position. - * - * Params: - * format = the format of the segment. - * streamTime = the stream-time - * position = the resulting position in the segment - * - * Returns: a 1 or -1 on success, 0 on failure. - * - * Since: 1.8 - */ - public int positionFromStreamTimeFull(GstFormat format, ulong streamTime, out ulong position) - { - return gst_segment_position_from_stream_time_full(gstSegment, format, streamTime, &position); - } - - /** - * Adjust the start/stop and base values of @segment such that the next valid - * buffer will be one with @running_time. - * - * Params: - * format = the format of the segment. - * runningTime = the running_time in the segment - * - * Returns: %TRUE if the segment could be updated successfully. If %FALSE is - * returned, @running_time is -1 or not in @segment. - */ - public bool setRunningTime(GstFormat format, ulong runningTime) - { - return gst_segment_set_running_time(gstSegment, format, runningTime) != 0; - } - - /** - * Convert @running_time into a position in the segment so that - * gst_segment_to_running_time() with that position returns @running_time. - * - * Deprecated: Use gst_segment_position_from_running_time() instead. - * - * Params: - * format = the format of the segment. - * runningTime = the running_time in the segment - * - * Returns: the position in the segment for @running_time. This function returns - * -1 when @running_time is -1 or when it is not inside @segment. - */ - public ulong toPosition(GstFormat format, ulong runningTime) - { - return gst_segment_to_position(gstSegment, format, runningTime); - } - - /** - * Translate @position to the total running time using the currently configured - * segment. Position is a value between @segment start and stop time. - * - * This function is typically used by elements that need to synchronize to the - * global clock in a pipeline. The running time is a constantly increasing value - * starting from 0. When gst_segment_init() is called, this value will reset to - * 0. - * - * This function returns -1 if the position is outside of @segment start and stop. - * - * Params: - * format = the format of the segment. - * position = the position in the segment - * - * Returns: the position as the total running time or -1 when an invalid position - * was given. - */ - public ulong toRunningTime(GstFormat format, ulong position) - { - return gst_segment_to_running_time(gstSegment, format, position); - } - - /** - * Translate @position to the total running time using the currently configured - * segment. Compared to gst_segment_to_running_time() this function can return - * negative running-time. - * - * This function is typically used by elements that need to synchronize buffers - * against the clock or each other. - * - * @position can be any value and the result of this function for values outside - * of the segment is extrapolated. - * - * When 1 is returned, @position resulted in a positive running-time returned - * in @running_time. - * - * When this function returns -1, the returned @running_time should be negated - * to get the real negative running time. - * - * Params: - * format = the format of the segment. - * position = the position in the segment - * runningTime = result running-time - * - * Returns: a 1 or -1 on success, 0 on failure. - * - * Since: 1.6 - */ - public int toRunningTimeFull(GstFormat format, ulong position, out ulong runningTime) - { - return gst_segment_to_running_time_full(gstSegment, format, position, &runningTime); - } - - /** - * Translate @position to stream time using the currently configured - * segment. The @position value must be between @segment start and - * stop value. - * - * This function is typically used by elements that need to operate on - * the stream time of the buffers it receives, such as effect plugins. - * In those use cases, @position is typically the buffer timestamp or - * clock time that one wants to convert to the stream time. - * The stream time is always between 0 and the total duration of the - * media stream. - * - * Params: - * format = the format of the segment. - * position = the position in the segment - * - * Returns: the position in stream_time or -1 when an invalid position - * was given. - * - * Since: 1.8 - */ - public ulong toStreamTime(GstFormat format, ulong position) - { - return gst_segment_to_stream_time(gstSegment, format, position); - } - - /** - * Translate @position to the total stream time using the currently configured - * segment. Compared to gst_segment_to_stream_time() this function can return - * negative stream-time. - * - * This function is typically used by elements that need to synchronize buffers - * against the clock or each other. - * - * @position can be any value and the result of this function for values outside - * of the segment is extrapolated. - * - * When 1 is returned, @position resulted in a positive stream-time returned - * in @stream_time. - * - * When this function returns -1, the returned @stream_time should be negated - * to get the real negative stream time. - * - * Params: - * format = the format of the segment. - * position = the position in the segment - * streamTime = result stream-time - * - * Returns: a 1 or -1 on success, 0 on failure. - * - * Since: 1.8 - */ - public int toStreamTimeFull(GstFormat format, ulong position, out ulong streamTime) - { - return gst_segment_to_stream_time_full(gstSegment, format, position, &streamTime); - } -} diff --git a/generated/gstreamer/gstreamer/StaticCaps.d b/generated/gstreamer/gstreamer/StaticCaps.d deleted file mode 100644 index 6d92e583f..000000000 --- a/generated/gstreamer/gstreamer/StaticCaps.d +++ /dev/null @@ -1,95 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.StaticCaps; - -private import gobject.ObjectG; -private import gstreamer.Caps; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Datastructure to initialize #GstCaps from a string description usually - * used in conjunction with GST_STATIC_CAPS() and gst_static_caps_get() to - * instantiate a #GstCaps. - */ -public class StaticCaps -{ - /** the main Gtk struct */ - protected GstStaticCaps* gstStaticCaps; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstStaticCaps* getStaticCapsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstStaticCaps; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstStaticCaps; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstStaticCaps* gstStaticCaps, bool ownedRef = false) - { - this.gstStaticCaps = gstStaticCaps; - this.ownedRef = ownedRef; - } - - - /** - * Clean up the cached caps contained in @static_caps. - */ - public void cleanup() - { - gst_static_caps_cleanup(gstStaticCaps); - } - - /** - * Converts a #GstStaticCaps to a #GstCaps. - * - * Returns: a pointer to the #GstCaps. Unref - * after usage. Since the core holds an additional ref to the - * returned caps, use gst_caps_make_writable() on the returned caps - * to modify it. - */ - public Caps get() - { - auto __p = gst_static_caps_get(gstStaticCaps); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } -} diff --git a/generated/gstreamer/gstreamer/StaticPadTemplate.d b/generated/gstreamer/gstreamer/StaticPadTemplate.d deleted file mode 100644 index 637bb62e9..000000000 --- a/generated/gstreamer/gstreamer/StaticPadTemplate.d +++ /dev/null @@ -1,170 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.StaticPadTemplate; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Caps; -private import gstreamer.PadTemplate; -private import gstreamer.StaticCaps; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * Structure describing the #GstStaticPadTemplate. - */ -public final class StaticPadTemplate -{ - /** the main Gtk struct */ - protected GstStaticPadTemplate* gstStaticPadTemplate; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstStaticPadTemplate* getStaticPadTemplateStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstStaticPadTemplate; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstStaticPadTemplate; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstStaticPadTemplate* gstStaticPadTemplate, bool ownedRef = false) - { - this.gstStaticPadTemplate = gstStaticPadTemplate; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - sliceFree(gstStaticPadTemplate); - } - - - /** - * the name of the template - */ - public @property string nameTemplate() - { - return Str.toString(gstStaticPadTemplate.nameTemplate); - } - - /** Ditto */ - public @property void nameTemplate(string value) - { - gstStaticPadTemplate.nameTemplate = Str.toStringz(value); - } - - /** - * the direction of the template - */ - public @property GstPadDirection direction() - { - return gstStaticPadTemplate.direction; - } - - /** Ditto */ - public @property void direction(GstPadDirection value) - { - gstStaticPadTemplate.direction = value; - } - - /** - * the presence of the template - */ - public @property GstPadPresence presence() - { - return gstStaticPadTemplate.presence; - } - - /** Ditto */ - public @property void presence(GstPadPresence value) - { - gstStaticPadTemplate.presence = value; - } - - /** - * the caps of the template. - */ - public @property GstStaticCaps staticCaps() - { - return gstStaticPadTemplate.staticCaps; - } - - /** Ditto */ - public @property void staticCaps(GstStaticCaps value) - { - gstStaticPadTemplate.staticCaps = value; - } - - /** - * Converts a #GstStaticPadTemplate into a #GstPadTemplate. - * - * Returns: a new #GstPadTemplate. - */ - public PadTemplate get() - { - auto __p = gst_static_pad_template_get(gstStaticPadTemplate); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PadTemplate)(cast(GstPadTemplate*) __p); - } - - /** - * Gets the capabilities of the static pad template. - * - * Returns: the #GstCaps of the static pad template. - * Unref after usage. Since the core holds an additional - * ref to the returned caps, use gst_caps_make_writable() - * on the returned caps to modify it. - */ - public Caps getCaps() - { - auto __p = gst_static_pad_template_get_caps(gstStaticPadTemplate); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } -} diff --git a/generated/gstreamer/gstreamer/Stream.d b/generated/gstreamer/gstreamer/Stream.d deleted file mode 100644 index e2313ebab..000000000 --- a/generated/gstreamer/gstreamer/Stream.d +++ /dev/null @@ -1,244 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Stream; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Caps; -private import gstreamer.ObjectGst; -private import gstreamer.TagList; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A high-level object representing a single stream. It might be backed, or - * not, by an actual flow of data in a pipeline (#GstPad). - * - * A #GstStream does not care about data changes (such as decoding, encoding, - * parsing,...) as long as the underlying data flow corresponds to the same - * high-level flow (ex: a certain audio track). - * - * A #GstStream contains all the information pertinent to a stream, such as - * stream-id, tags, caps, type, ... - * - * Elements can subclass a #GstStream for internal usage (to contain information - * pertinent to streams of data). - * - * Since: 1.10 - */ -public class Stream : ObjectGst -{ - /** the main Gtk struct */ - protected GstStream* gstStream; - - /** Get the main Gtk struct */ - public GstStream* getStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstStream* gstStream, bool ownedRef = false) - { - this.gstStream = gstStream; - super(cast(GstObject*)gstStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_stream_get_type(); - } - - /** - * Create a new #GstStream for the given @stream_id, @caps, @type - * and @flags - * - * Params: - * streamId = the id for the new stream. If %NULL, - * a new one will be automatically generated - * caps = the #GstCaps of the stream - * type = the #GstStreamType of the stream - * flags = the #GstStreamFlags of the stream - * - * Returns: The new #GstStream - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string streamId, Caps caps, GstStreamType type, GstStreamFlags flags) - { - auto __p = gst_stream_new(Str.toStringz(streamId), (caps is null) ? null : caps.getCapsStruct(), type, flags); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstStream*) __p, true); - } - - /** - * Retrieve the caps for @stream, if any - * - * Returns: The #GstCaps for @stream - * - * Since: 1.10 - */ - public Caps getCaps() - { - auto __p = gst_stream_get_caps(gstStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p, true); - } - - /** - * Retrieve the current stream flags for @stream - * - * Returns: The #GstStreamFlags for @stream - * - * Since: 1.10 - */ - public GstStreamFlags getStreamFlags() - { - return gst_stream_get_stream_flags(gstStream); - } - - /** - * Returns the stream ID of @stream. - * - * Returns: the stream ID of @stream. Only valid - * during the lifetime of @stream. - * - * Since: 1.10 - */ - public string getStreamId() - { - return Str.toString(gst_stream_get_stream_id(gstStream)); - } - - /** - * Retrieve the stream type for @stream - * - * Returns: The #GstStreamType for @stream - * - * Since: 1.10 - */ - public GstStreamType getStreamType() - { - return gst_stream_get_stream_type(gstStream); - } - - /** - * Retrieve the tags for @stream, if any - * - * Returns: The #GstTagList for @stream - * - * Since: 1.10 - */ - public TagList getTags() - { - auto __p = gst_stream_get_tags(gstStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TagList)(cast(GstTagList*) __p, true); - } - - /** - * Set the caps for the #GstStream - * - * Params: - * caps = a #GstCaps - * - * Since: 1.10 - */ - public void setCaps(Caps caps) - { - gst_stream_set_caps(gstStream, (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * Set the @flags for the @stream. - * - * Params: - * flags = the flags to set on @stream - * - * Since: 1.10 - */ - public void setStreamFlags(GstStreamFlags flags) - { - gst_stream_set_stream_flags(gstStream, flags); - } - - /** - * Set the stream type of @stream - * - * Params: - * streamType = the type to set on @stream - * - * Since: 1.10 - */ - public void setStreamType(GstStreamType streamType) - { - gst_stream_set_stream_type(gstStream, streamType); - } - - /** - * Set the tags for the #GstStream - * - * Params: - * tags = a #GstTagList - * - * Since: 1.10 - */ - public void setTags(TagList tags) - { - gst_stream_set_tags(gstStream, (tags is null) ? null : tags.getTagListStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/StreamCollection.d b/generated/gstreamer/gstreamer/StreamCollection.d deleted file mode 100644 index 9840d02b7..000000000 --- a/generated/gstreamer/gstreamer/StreamCollection.d +++ /dev/null @@ -1,187 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.StreamCollection; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.ParamSpec; -private import gobject.Signals; -private import gstreamer.ObjectGst; -private import gstreamer.Stream; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import std.algorithm; - - -/** - * A collection of #GstStream that are available. - * - * A #GstStreamCollection will be provided by elements that can make those - * streams available. Applications can use the collection to show the user - * what streams are available by using %gst_stream_collection_get_stream() - * - * Once posted, a #GstStreamCollection is immutable. Updates are made by sending - * a new #GstStreamCollection message, which may or may not share some of - * the #GstStream objects from the collection it replaces. The receiver can check - * the sender of a stream collection message to know which collection is - * obsoleted. - * - * Several elements in a pipeline can provide #GstStreamCollection. - * - * Applications can activate streams from a collection by using the - * #GST_EVENT_SELECT_STREAMS event on a pipeline, bin or element. - * - * Since: 1.10 - */ -public class StreamCollection : ObjectGst -{ - /** the main Gtk struct */ - protected GstStreamCollection* gstStreamCollection; - - /** Get the main Gtk struct */ - public GstStreamCollection* getStreamCollectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstStreamCollection; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstStreamCollection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstStreamCollection* gstStreamCollection, bool ownedRef = false) - { - this.gstStreamCollection = gstStreamCollection; - super(cast(GstObject*)gstStreamCollection, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_stream_collection_get_type(); - } - - /** - * Create a new #GstStreamCollection. - * - * Params: - * upstreamId = The stream id of the parent stream - * - * Returns: The new #GstStreamCollection. - * - * Since: 1.10 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string upstreamId) - { - auto __p = gst_stream_collection_new(Str.toStringz(upstreamId)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstStreamCollection*) __p, true); - } - - /** - * Add the given @stream to the @collection. - * - * Params: - * stream = the #GstStream to add - * - * Returns: %TRUE if the @stream was properly added, else %FALSE - * - * Since: 1.10 - */ - public bool addStream(Stream stream) - { - return gst_stream_collection_add_stream(gstStreamCollection, (stream is null) ? null : stream.getStreamStruct()) != 0; - } - - /** - * Get the number of streams this collection contains - * - * Returns: The number of streams that @collection contains - * - * Since: 1.10 - */ - public uint getSize() - { - return gst_stream_collection_get_size(gstStreamCollection); - } - - /** - * Retrieve the #GstStream with index @index from the collection. - * - * The caller should not modify the returned #GstStream - * - * Params: - * index = Index of the stream to retrieve - * - * Returns: A #GstStream - * - * Since: 1.10 - */ - public Stream getStream(uint index) - { - auto __p = gst_stream_collection_get_stream(gstStreamCollection, index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Stream)(cast(GstStream*) __p); - } - - /** - * Returns the upstream id of the @collection. - * - * Returns: The upstream id - * - * Since: 1.10 - */ - public string getUpstreamId() - { - return Str.toString(gst_stream_collection_get_upstream_id(gstStreamCollection)); - } - - /** */ - gulong addOnStreamNotify(void delegate(Stream, ParamSpec, StreamCollection) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "stream-notify", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gstreamer/gstreamer/Structure.d b/generated/gstreamer/gstreamer/Structure.d deleted file mode 100644 index e23819fd3..000000000 --- a/generated/gstreamer/gstreamer/Structure.d +++ /dev/null @@ -1,1306 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Structure; - -private import glib.ConstructionException; -private import glib.Date; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; -private import gobject.ValueArray; -private import gstreamer.DateTime; -private import gstreamer.c.functions; -public import gstreamer.c.types; -private import gtkd.Loader; - - -/** - * A #GstStructure is a collection of key/value pairs. The keys are expressed as - * GQuarks and the values can be of any GType. - * - * In addition to the key/value pairs, a #GstStructure also has a name. The name - * starts with a letter and can be filled by letters, numbers and any of - * "/-_.:". - * - * #GstStructure is used by various GStreamer subsystems to store information in - * a flexible and extensible way. A #GstStructure does not have a refcount - * because it usually is part of a higher level object such as #GstCaps, - * #GstMessage, #GstEvent, #GstQuery. It provides a means to enforce mutability - * using the refcount of the parent with the gst_structure_set_parent_refcount() - * method. - * - * A #GstStructure can be created with gst_structure_new_empty() or - * gst_structure_new(), which both take a name and an optional set of key/value - * pairs along with the types of the values. - * - * Field values can be changed with gst_structure_set_value() or - * gst_structure_set(). - * - * Field values can be retrieved with gst_structure_get_value() or the more - * convenient gst_structure_get_*() functions. - * - * Fields can be removed with gst_structure_remove_field() or - * gst_structure_remove_fields(). - * - * Strings in structures must be ASCII or UTF-8 encoded. Other encodings are not - * allowed. Strings may be %NULL however. - * - * ## The serialization format - * - * GstStructure serialization format serialize the GstStructure name, - * keys/GType/values in a comma separated list with the structure name as first - * field without value followed by separated key/value pairs in the form - * `key=value`, for example: - * - * ``` - * a-structure, key=value - * ```` - * - * The values type will be inferred if not explicitly specified with the - * `(GTypeName)value` syntax, for example the following struct will have one - * field called 'is-string' which has the string 'true' as a value: - * - * ``` - * a-struct, field-is-string=(string)true, field-is-boolean=true - * ``` - * - * *Note*: without specifying `(string), `field-is-string` type would have been - * inferred as boolean. - * - * *Note*: we specified `(string)` as a type even if `gchararray` is the actual - * GType name as for convenience some well known types have been aliased or - * abbreviated. - * - * To avoid specifying the type, you can give some hints to the "type system". - * For example to specify a value as a double, you should add a decimal (ie. `1` - * is an `int` while `1.0` is a `double`). - * - * *Note*: when a structure is serialized with #gst_structure_to_string, all - * values are explicitly typed. - * - * Some types have special delimiters: - * - * - [GstValueArray](GST_TYPE_ARRAY) are inside curly brackets (`{` and `}`). - * For example `a-structure, array={1, 2, 3}` - * - Ranges are inside brackets (`[` and `]`). For example `a-structure, - * range=[1, 6, 2]` 1 being the min value, 6 the maximum and 2 the step. To - * specify a #GST_TYPE_INT64_RANGE you need to explicitly specify it like: - * `a-structure, a-int64-range=(gint64) [1, 5]` - * - [GstValueList](GST_TYPE_LIST) are inside "less and greater than" (`<` and - * `>`). For example `a-structure, list=<1, 2, 3> - * - * Structures are delimited either by a null character `\0` or a semicolumn `;` - * the latter allowing to store multiple structures in the same string (see - * #GstCaps). - * - * Quotes are used as "default" delimiters and can be used around any types that - * don't use other delimiters (for example `a-struct, i=(int)"1"`). They are use - * to allow adding spaces or special characters (such as delimiters, - * semicolumns, etc..) inside strings and you can use backslashes `\` to escape - * characters inside them, for example: - * - * ``` - * a-struct, special="\"{[(;)]}\" can be used inside quotes" - * ``` - * - * They also allow for nested structure, such as: - * - * ``` - * a-struct, nested=(GstStructure)"nested-struct, nested=true" - * ``` - * - * > *Note*: Be aware that the current #GstCaps / #GstStructure serialization - * > into string has limited support for nested #GstCaps / #GstStructure fields. - * > It can only support one level of nesting. Using more levels will lead to - * > unexpected behavior when using serialization features, such as - * > gst_caps_to_string() or gst_value_serialize() and their counterparts. - */ -public class Structure -{ - /** the main Gtk struct */ - protected GstStructure* gstStructure; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstStructure* getStructureStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstStructure; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstStructure; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstStructure* gstStructure, bool ownedRef = false) - { - this.gstStructure = gstStructure; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GSTREAMER) && ownedRef ) - gst_structure_free(gstStructure); - } - - public static Structure fromString(string name) - { - auto p = gst_structure_new_from_string(Str.toStringz(name)); - - if(p is null) - { - throw new ConstructionException("null returned by gst_structure_new_from_string(Str.toStringz(name))"); - } - - return new Structure(cast(GstStructure*)p); //, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return gst_structure_get_type(); - } - - /** - * Creates a #GstStructure from a string representation. - * If end is not %NULL, a pointer to the place inside the given string - * where parsing ended will be returned. - * - * Free-function: gst_structure_free - * - * Params: - * string_ = a string representation of a #GstStructure. - * end = pointer to store the end of the string in. - * - * Returns: a new #GstStructure or %NULL - * when the string could not be parsed. Free with - * gst_structure_free() after use. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string string_, out string end) - { - char* outend = null; - - auto __p = gst_structure_from_string(Str.toStringz(string_), &outend); - - if(__p is null) - { - throw new ConstructionException("null returned by from_string"); - } - - end = Str.toString(outend); - - this(cast(GstStructure*) __p); - } - - /** - * Creates a new, empty #GstStructure with the given @name. - * - * See gst_structure_set_name() for constraints on the @name parameter. - * - * Free-function: gst_structure_free - * - * Params: - * name = name of new structure - * - * Returns: a new, empty #GstStructure - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name) - { - auto __p = gst_structure_new_empty(Str.toStringz(name)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_empty"); - } - - this(cast(GstStructure*) __p); - } - - /** - * Creates a new, empty #GstStructure with the given name as a GQuark. - * - * Free-function: gst_structure_free - * - * Params: - * quark = name of new structure - * - * Returns: a new, empty #GstStructure - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GQuark quark) - { - auto __p = gst_structure_new_id_empty(quark); - - if(__p is null) - { - throw new ConstructionException("null returned by new_id_empty"); - } - - this(cast(GstStructure*) __p); - } - - /** - * Creates a new #GstStructure with the given @name. Structure fields - * are set according to the varargs in a manner similar to - * gst_structure_new(). - * - * See gst_structure_set_name() for constraints on the @name parameter. - * - * Free-function: gst_structure_free - * - * Params: - * name = name of new structure - * firstfield = name of first field to set - * varargs = variable argument list - * - * Returns: a new #GstStructure - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, string firstfield, void* varargs) - { - auto __p = gst_structure_new_valist(Str.toStringz(name), Str.toStringz(firstfield), varargs); - - if(__p is null) - { - throw new ConstructionException("null returned by new_valist"); - } - - this(cast(GstStructure*) __p); - } - - /** - * Tries intersecting @struct1 and @struct2 and reports whether the result - * would not be empty. - * - * Params: - * struct2 = a #GstStructure - * - * Returns: %TRUE if intersection would not be empty - */ - public bool canIntersect(Structure struct2) - { - return gst_structure_can_intersect(gstStructure, (struct2 is null) ? null : struct2.getStructureStruct()) != 0; - } - - /** - * Duplicates a #GstStructure and all its fields and values. - * - * Free-function: gst_structure_free - * - * Returns: a new #GstStructure. - */ - public Structure copy() - { - auto __p = gst_structure_copy(gstStructure); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p, true); - } - - /** - * Calls the provided function once for each field in the #GstStructure. In - * contrast to gst_structure_foreach(), the function may modify the fields. - * In contrast to gst_structure_map_in_place(), the field is removed from - * the structure if %FALSE is returned from the function. - * The structure must be mutable. - * - * Params: - * func = a function to call for each field - * userData = private data - * - * Since: 1.6 - */ - public void filterAndMapInPlace(GstStructureFilterMapFunc func, void* userData) - { - gst_structure_filter_and_map_in_place(gstStructure, func, userData); - } - - /** - * Fixate all values in @structure using gst_value_fixate(). - * @structure will be modified in-place and should be writable. - */ - public void fixate() - { - gst_structure_fixate(gstStructure); - } - - /** - * Fixates a #GstStructure by changing the given field with its fixated value. - * - * Params: - * fieldName = a field in @structure - * - * Returns: %TRUE if the structure field could be fixated - */ - public bool fixateField(string fieldName) - { - return gst_structure_fixate_field(gstStructure, Str.toStringz(fieldName)) != 0; - } - - /** - * Fixates a #GstStructure by changing the given @field_name field to the given - * @target boolean if that field is not fixed yet. - * - * Params: - * fieldName = a field in @structure - * target = the target value of the fixation - * - * Returns: %TRUE if the structure could be fixated - */ - public bool fixateFieldBoolean(string fieldName, bool target) - { - return gst_structure_fixate_field_boolean(gstStructure, Str.toStringz(fieldName), target) != 0; - } - - /** - * Fixates a #GstStructure by changing the given field to the nearest - * double to @target that is a subset of the existing field. - * - * Params: - * fieldName = a field in @structure - * target = the target value of the fixation - * - * Returns: %TRUE if the structure could be fixated - */ - public bool fixateFieldNearestDouble(string fieldName, double target) - { - return gst_structure_fixate_field_nearest_double(gstStructure, Str.toStringz(fieldName), target) != 0; - } - - /** - * Fixates a #GstStructure by changing the given field to the nearest - * fraction to @target_numerator/@target_denominator that is a subset - * of the existing field. - * - * Params: - * fieldName = a field in @structure - * targetNumerator = The numerator of the target value of the fixation - * targetDenominator = The denominator of the target value of the fixation - * - * Returns: %TRUE if the structure could be fixated - */ - public bool fixateFieldNearestFraction(string fieldName, int targetNumerator, int targetDenominator) - { - return gst_structure_fixate_field_nearest_fraction(gstStructure, Str.toStringz(fieldName), targetNumerator, targetDenominator) != 0; - } - - /** - * Fixates a #GstStructure by changing the given field to the nearest - * integer to @target that is a subset of the existing field. - * - * Params: - * fieldName = a field in @structure - * target = the target value of the fixation - * - * Returns: %TRUE if the structure could be fixated - */ - public bool fixateFieldNearestInt(string fieldName, int target) - { - return gst_structure_fixate_field_nearest_int(gstStructure, Str.toStringz(fieldName), target) != 0; - } - - /** - * Fixates a #GstStructure by changing the given @field_name field to the given - * @target string if that field is not fixed yet. - * - * Params: - * fieldName = a field in @structure - * target = the target value of the fixation - * - * Returns: %TRUE if the structure could be fixated - */ - public bool fixateFieldString(string fieldName, string target) - { - return gst_structure_fixate_field_string(gstStructure, Str.toStringz(fieldName), Str.toStringz(target)) != 0; - } - - alias foreac = foreach_; - /** - * Calls the provided function once for each field in the #GstStructure. The - * function must not modify the fields. Also see gst_structure_map_in_place() - * and gst_structure_filter_and_map_in_place(). - * - * Params: - * func = a function to call for each field - * userData = private data - * - * Returns: %TRUE if the supplied function returns %TRUE For each of the fields, - * %FALSE otherwise. - */ - public bool foreach_(GstStructureForeachFunc func, void* userData) - { - return gst_structure_foreach(gstStructure, func, userData) != 0; - } - - /** - * Frees a #GstStructure and all its fields and values. The structure must not - * have a parent when this function is called. - */ - public void free() - { - gst_structure_free(gstStructure); - ownedRef = false; - } - - /** - * This is useful in language bindings where unknown #GValue types are not - * supported. This function will convert the %GST_TYPE_ARRAY into a newly - * allocated #GValueArray and return it through @array. Be aware that this is - * slower then getting the #GValue directly. - * - * Params: - * fieldname = the name of a field - * array = a pointer to a #GValueArray - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a %GST_TYPE_ARRAY, - * this function returns %FALSE. - * - * Since: 1.12 - */ - public bool getArray(string fieldname, out ValueArray array) - { - GValueArray* outarray = null; - - auto __p = gst_structure_get_array(gstStructure, Str.toStringz(fieldname), &outarray) != 0; - - array = ObjectG.getDObject!(ValueArray)(outarray); - - return __p; - } - - /** - * Sets the boolean pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Params: - * fieldname = the name of a field - * value = a pointer to a #gboolean to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a boolean, this - * function returns %FALSE. - */ - public bool getBoolean(string fieldname, out bool value) - { - int outvalue; - - auto __p = gst_structure_get_boolean(gstStructure, Str.toStringz(fieldname), &outvalue) != 0; - - value = (outvalue == 1); - - return __p; - } - - /** - * Sets the clock time pointed to by @value corresponding to the clock time - * of the given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Params: - * fieldname = the name of a field - * value = a pointer to a #GstClockTime to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a #GstClockTime, this - * function returns %FALSE. - */ - public bool getClockTime(string fieldname, out GstClockTime value) - { - return gst_structure_get_clock_time(gstStructure, Str.toStringz(fieldname), &value) != 0; - } - - /** - * Sets the date pointed to by @value corresponding to the date of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * On success @value will point to a newly-allocated copy of the date which - * should be freed with g_date_free() when no longer needed (note: this is - * inconsistent with e.g. gst_structure_get_string() which doesn't return a - * copy of the string). - * - * Params: - * fieldname = the name of a field - * value = a pointer to a #GDate to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a data, this function - * returns %FALSE. - */ - public bool getDate(string fieldname, out Date value) - { - GDate* outvalue = null; - - auto __p = gst_structure_get_date(gstStructure, Str.toStringz(fieldname), &outvalue) != 0; - - value = new Date(outvalue); - - return __p; - } - - /** - * Sets the datetime pointed to by @value corresponding to the datetime of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * On success @value will point to a reference of the datetime which - * should be unreffed with gst_date_time_unref() when no longer needed - * (note: this is inconsistent with e.g. gst_structure_get_string() - * which doesn't return a copy of the string). - * - * Params: - * fieldname = the name of a field - * value = a pointer to a #GstDateTime to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a data, this function - * returns %FALSE. - */ - public bool getDateTime(string fieldname, out DateTime value) - { - GstDateTime* outvalue = null; - - auto __p = gst_structure_get_date_time(gstStructure, Str.toStringz(fieldname), &outvalue) != 0; - - value = ObjectG.getDObject!(DateTime)(outvalue); - - return __p; - } - - /** - * Sets the double pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Params: - * fieldname = the name of a field - * value = a pointer to a gdouble to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a double, this - * function returns %FALSE. - */ - public bool getDouble(string fieldname, out double value) - { - return gst_structure_get_double(gstStructure, Str.toStringz(fieldname), &value) != 0; - } - - /** - * Sets the int pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists, - * has the correct type and that the enumtype is correct. - * - * Params: - * fieldname = the name of a field - * enumtype = the enum type of a field - * value = a pointer to an int to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain an enum of the given - * type, this function returns %FALSE. - */ - public bool getEnum(string fieldname, GType enumtype, out int value) - { - return gst_structure_get_enum(gstStructure, Str.toStringz(fieldname), enumtype, &value) != 0; - } - - /** - * Finds the field with the given name, and returns the type of the - * value it contains. If the field is not found, G_TYPE_INVALID is - * returned. - * - * Params: - * fieldname = the name of the field - * - * Returns: the #GValue of the field - */ - public GType getFieldType(string fieldname) - { - return gst_structure_get_field_type(gstStructure, Str.toStringz(fieldname)); - } - - /** - * Read the GstFlagSet flags and mask out of the structure into the - * provided pointers. - * - * Params: - * fieldname = the name of a field - * valueFlags = a pointer to a guint for the flags field - * valueMask = a pointer to a guint for the mask field - * - * Returns: %TRUE if the values could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a GstFlagSet, this - * function returns %FALSE. - * - * Since: 1.6 - */ - public bool getFlagset(string fieldname, out uint valueFlags, out uint valueMask) - { - return gst_structure_get_flagset(gstStructure, Str.toStringz(fieldname), &valueFlags, &valueMask) != 0; - } - - /** - * Sets the integers pointed to by @value_numerator and @value_denominator - * corresponding to the value of the given field. Caller is responsible - * for making sure the field exists and has the correct type. - * - * Params: - * fieldname = the name of a field - * valueNumerator = a pointer to an int to set - * valueDenominator = a pointer to an int to set - * - * Returns: %TRUE if the values could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a GstFraction, this - * function returns %FALSE. - */ - public bool getFraction(string fieldname, out int valueNumerator, out int valueDenominator) - { - return gst_structure_get_fraction(gstStructure, Str.toStringz(fieldname), &valueNumerator, &valueDenominator) != 0; - } - - /** - * Sets the int pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Params: - * fieldname = the name of a field - * value = a pointer to an int to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain an int, this function - * returns %FALSE. - */ - public bool getInt(string fieldname, out int value) - { - return gst_structure_get_int(gstStructure, Str.toStringz(fieldname), &value) != 0; - } - - /** - * Sets the #gint64 pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Params: - * fieldname = the name of a field - * value = a pointer to a #gint64 to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a #gint64, this function - * returns %FALSE. - * - * Since: 1.4 - */ - public bool getInt64(string fieldname, out long value) - { - return gst_structure_get_int64(gstStructure, Str.toStringz(fieldname), &value) != 0; - } - - /** - * This is useful in language bindings where unknown #GValue types are not - * supported. This function will convert the %GST_TYPE_LIST into a newly - * allocated GValueArray and return it through @array. Be aware that this is - * slower then getting the #GValue directly. - * - * Params: - * fieldname = the name of a field - * array = a pointer to a #GValueArray - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a %GST_TYPE_LIST, this - * function returns %FALSE. - * - * Since: 1.12 - */ - public bool getList(string fieldname, out ValueArray array) - { - GValueArray* outarray = null; - - auto __p = gst_structure_get_list(gstStructure, Str.toStringz(fieldname), &outarray) != 0; - - array = ObjectG.getDObject!(ValueArray)(outarray); - - return __p; - } - - /** - * Get the name of @structure as a string. - * - * Returns: the name of the structure. - */ - public string getName() - { - return Str.toString(gst_structure_get_name(gstStructure)); - } - - /** - * Get the name of @structure as a GQuark. - * - * Returns: the quark representing the name of the structure. - */ - public GQuark getNameId() - { - return gst_structure_get_name_id(gstStructure); - } - - /** - * Finds the field corresponding to @fieldname, and returns the string - * contained in the field's value. Caller is responsible for making - * sure the field exists and has the correct type. - * - * The string should not be modified, and remains valid until the next - * call to a gst_structure_*() function with the given structure. - * - * Params: - * fieldname = the name of a field - * - * Returns: a pointer to the string or %NULL when the - * field did not exist or did not contain a string. - */ - public string getString(string fieldname) - { - return Str.toString(gst_structure_get_string(gstStructure, Str.toStringz(fieldname))); - } - - /** - * Sets the uint pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Params: - * fieldname = the name of a field - * value = a pointer to a uint to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a uint, this function - * returns %FALSE. - */ - public bool getUint(string fieldname, out uint value) - { - return gst_structure_get_uint(gstStructure, Str.toStringz(fieldname), &value) != 0; - } - - /** - * Sets the #guint64 pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Params: - * fieldname = the name of a field - * value = a pointer to a #guint64 to set - * - * Returns: %TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a #guint64, this function - * returns %FALSE. - * - * Since: 1.4 - */ - public bool getUint64(string fieldname, out ulong value) - { - return gst_structure_get_uint64(gstStructure, Str.toStringz(fieldname), &value) != 0; - } - - /** - * Parses the variable arguments and reads fields from @structure accordingly. - * valist-variant of gst_structure_get(). Look at the documentation of - * gst_structure_get() for more details. - * - * Params: - * firstFieldname = the name of the first field to read - * args = variable arguments - * - * Returns: %TRUE, or %FALSE if there was a problem reading any of the fields - */ - public bool getValist(string firstFieldname, void* args) - { - return gst_structure_get_valist(gstStructure, Str.toStringz(firstFieldname), args) != 0; - } - - /** - * Get the value of the field with name @fieldname. - * - * Params: - * fieldname = the name of the field to get - * - * Returns: the #GValue corresponding to the field with the given - * name. - */ - public Value getValue(string fieldname) - { - auto __p = gst_structure_get_value(gstStructure, Str.toStringz(fieldname)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Check if @structure contains a field named @fieldname. - * - * Params: - * fieldname = the name of a field - * - * Returns: %TRUE if the structure contains a field with the given name - */ - public bool hasField(string fieldname) - { - return gst_structure_has_field(gstStructure, Str.toStringz(fieldname)) != 0; - } - - /** - * Check if @structure contains a field named @fieldname and with GType @type. - * - * Params: - * fieldname = the name of a field - * type = the type of a value - * - * Returns: %TRUE if the structure contains a field with the given name and type - */ - public bool hasFieldTyped(string fieldname, GType type) - { - return gst_structure_has_field_typed(gstStructure, Str.toStringz(fieldname), type) != 0; - } - - /** - * Checks if the structure has the given name - * - * Params: - * name = structure name to check for - * - * Returns: %TRUE if @name matches the name of the structure. - */ - public bool hasName(string name) - { - return gst_structure_has_name(gstStructure, Str.toStringz(name)) != 0; - } - - /** - * Parses the variable arguments and reads fields from @structure accordingly. - * valist-variant of gst_structure_id_get(). Look at the documentation of - * gst_structure_id_get() for more details. - * - * Params: - * firstFieldId = the quark of the first field to read - * args = variable arguments - * - * Returns: %TRUE, or %FALSE if there was a problem reading any of the fields - */ - public bool idGetValist(GQuark firstFieldId, void* args) - { - return gst_structure_id_get_valist(gstStructure, firstFieldId, args) != 0; - } - - /** - * Get the value of the field with GQuark @field. - * - * Params: - * field = the #GQuark of the field to get - * - * Returns: the #GValue corresponding to the field with the given - * name identifier. - */ - public Value idGetValue(GQuark field) - { - auto __p = gst_structure_id_get_value(gstStructure, field); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Check if @structure contains a field named @field. - * - * Params: - * field = #GQuark of the field name - * - * Returns: %TRUE if the structure contains a field with the given name - */ - public bool idHasField(GQuark field) - { - return gst_structure_id_has_field(gstStructure, field) != 0; - } - - /** - * Check if @structure contains a field named @field and with GType @type. - * - * Params: - * field = #GQuark of the field name - * type = the type of a value - * - * Returns: %TRUE if the structure contains a field with the given name and type - */ - public bool idHasFieldTyped(GQuark field, GType type) - { - return gst_structure_id_has_field_typed(gstStructure, field, type) != 0; - } - - /** - * va_list form of gst_structure_id_set(). - * - * Params: - * fieldname = the name of the field to set - * varargs = variable arguments - */ - public void idSetValist(GQuark fieldname, void* varargs) - { - gst_structure_id_set_valist(gstStructure, fieldname, varargs); - } - - /** - * Sets the field with the given GQuark @field to @value. If the field - * does not exist, it is created. If the field exists, the previous - * value is replaced and freed. - * - * Params: - * field = a #GQuark representing a field - * value = the new value of the field - */ - public void idSetValue(GQuark field, Value value) - { - gst_structure_id_set_value(gstStructure, field, (value is null) ? null : value.getValueStruct()); - } - - /** - * Sets the field with the given GQuark @field to @value. If the field - * does not exist, it is created. If the field exists, the previous - * value is replaced and freed. - * - * Params: - * field = a #GQuark representing a field - * value = the new value of the field - */ - public void idTakeValue(GQuark field, Value value) - { - gst_structure_id_take_value(gstStructure, field, (value is null) ? null : value.getValueStruct()); - } - - /** - * Intersects @struct1 and @struct2 and returns the intersection. - * - * Params: - * struct2 = a #GstStructure - * - * Returns: Intersection of @struct1 and @struct2 - */ - public Structure intersect(Structure struct2) - { - auto __p = gst_structure_intersect(gstStructure, (struct2 is null) ? null : struct2.getStructureStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p, true); - } - - /** - * Tests if the two #GstStructure are equal. - * - * Params: - * structure2 = a #GstStructure. - * - * Returns: %TRUE if the two structures have the same name and field. - */ - public bool isEqual(Structure structure2) - { - return gst_structure_is_equal(gstStructure, (structure2 is null) ? null : structure2.getStructureStruct()) != 0; - } - - /** - * Checks if @subset is a subset of @superset, i.e. has the same - * structure name and for all fields that are existing in @superset, - * @subset has a value that is a subset of the value in @superset. - * - * Params: - * superset = a potentially greater #GstStructure - * - * Returns: %TRUE if @subset is a subset of @superset - */ - public bool isSubset(Structure superset) - { - return gst_structure_is_subset(gstStructure, (superset is null) ? null : superset.getStructureStruct()) != 0; - } - - /** - * Calls the provided function once for each field in the #GstStructure. In - * contrast to gst_structure_foreach(), the function may modify but not delete the - * fields. The structure must be mutable. - * - * Params: - * func = a function to call for each field - * userData = private data - * - * Returns: %TRUE if the supplied function returns %TRUE For each of the fields, - * %FALSE otherwise. - */ - public bool mapInPlace(GstStructureMapFunc func, void* userData) - { - return gst_structure_map_in_place(gstStructure, func, userData) != 0; - } - - /** - * Get the number of fields in the structure. - * - * Returns: the number of fields in the structure - */ - public int nFields() - { - return gst_structure_n_fields(gstStructure); - } - - /** - * Get the name of the given field number, counting from 0 onwards. - * - * Params: - * index = the index to get the name of - * - * Returns: the name of the given field number - */ - public string nthFieldName(uint index) - { - return Str.toString(gst_structure_nth_field_name(gstStructure, index)); - } - - /** - * Removes all fields in a GstStructure. - */ - public void removeAllFields() - { - gst_structure_remove_all_fields(gstStructure); - } - - /** - * Removes the field with the given name. If the field with the given - * name does not exist, the structure is unchanged. - * - * Params: - * fieldname = the name of the field to remove - */ - public void removeField(string fieldname) - { - gst_structure_remove_field(gstStructure, Str.toStringz(fieldname)); - } - - /** - * va_list form of gst_structure_remove_fields(). - * - * Params: - * fieldname = the name of the field to remove - * varargs = %NULL-terminated list of more fieldnames to remove - */ - public void removeFieldsValist(string fieldname, void* varargs) - { - gst_structure_remove_fields_valist(gstStructure, Str.toStringz(fieldname), varargs); - } - - /** - * This is useful in language bindings where unknown GValue types are not - * supported. This function will convert a @array to %GST_TYPE_ARRAY and set - * the field specified by @fieldname. Be aware that this is slower then using - * %GST_TYPE_ARRAY in a #GValue directly. - * - * Params: - * fieldname = the name of a field - * array = a pointer to a #GValueArray - * - * Since: 1.12 - */ - public void setArray(string fieldname, ValueArray array) - { - gst_structure_set_array(gstStructure, Str.toStringz(fieldname), (array is null) ? null : array.getValueArrayStruct()); - } - - /** - * This is useful in language bindings where unknown GValue types are not - * supported. This function will convert a @array to %GST_TYPE_LIST and set - * the field specified by @fieldname. Be aware that this is slower then using - * %GST_TYPE_LIST in a #GValue directly. - * - * Params: - * fieldname = the name of a field - * array = a pointer to a #GValueArray - * - * Since: 1.12 - */ - public void setList(string fieldname, ValueArray array) - { - gst_structure_set_list(gstStructure, Str.toStringz(fieldname), (array is null) ? null : array.getValueArrayStruct()); - } - - /** - * Sets the name of the structure to the given @name. The string - * provided is copied before being used. It must not be empty, start with a - * letter and can be followed by letters, numbers and any of "/-_.:". - * - * Params: - * name = the new name of the structure - */ - public void setName(string name) - { - gst_structure_set_name(gstStructure, Str.toStringz(name)); - } - - /** - * Sets the parent_refcount field of #GstStructure. This field is used to - * determine whether a structure is mutable or not. This function should only be - * called by code implementing parent objects of #GstStructure, as described in - * the MT Refcounting section of the design documents. - * - * Params: - * refcount = a pointer to the parent's refcount - * - * Returns: %TRUE if the parent refcount could be set. - */ - public bool setParentRefcount(int* refcount) - { - return gst_structure_set_parent_refcount(gstStructure, refcount) != 0; - } - - /** - * va_list form of gst_structure_set(). - * - * Params: - * fieldname = the name of the field to set - * varargs = variable arguments - */ - public void setValist(string fieldname, void* varargs) - { - gst_structure_set_valist(gstStructure, Str.toStringz(fieldname), varargs); - } - - /** - * Sets the field with the given name @field to @value. If the field - * does not exist, it is created. If the field exists, the previous - * value is replaced and freed. - * - * Params: - * fieldname = the name of the field to set - * value = the new value of the field - */ - public void setValue(string fieldname, Value value) - { - gst_structure_set_value(gstStructure, Str.toStringz(fieldname), (value is null) ? null : value.getValueStruct()); - } - - /** - * Sets the field with the given name @field to @value. If the field - * does not exist, it is created. If the field exists, the previous - * value is replaced and freed. The function will take ownership of @value. - * - * Params: - * fieldname = the name of the field to set - * value = the new value of the field - */ - public void takeValue(string fieldname, Value value) - { - gst_structure_take_value(gstStructure, Str.toStringz(fieldname), (value is null) ? null : value.getValueStruct()); - } - - /** - * Converts @structure to a human-readable string representation. - * - * For debugging purposes its easier to do something like this: - * |[ - * GST_LOG ("structure is %" GST_PTR_FORMAT, structure); - * ]| - * This prints the structure in human readable form. - * - * The current implementation of serialization will lead to unexpected results - * when there are nested #GstCaps / #GstStructure deeper than one level. - * - * Free-function: g_free - * - * Returns: a pointer to string allocated by g_malloc(). - * g_free() after usage. - */ - public override string toString() - { - auto retStr = gst_structure_to_string(gstStructure); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Atomically modifies a pointer to point to a new structure. - * The #GstStructure @oldstr_ptr is pointing to is freed and - * @newstr is taken ownership over. - * - * Either @newstr and the value pointed to by @oldstr_ptr may be %NULL. - * - * It is a programming error if both @newstr and the value pointed to by - * @oldstr_ptr refer to the same, non-%NULL structure. - * - * Params: - * oldstrPtr = pointer to a place of - * a #GstStructure to take - * newstr = a new #GstStructure - * - * Returns: %TRUE if @newstr was different from @oldstr_ptr - * - * Since: 1.18 - */ - public static bool take(ref Structure oldstrPtr, Structure newstr) - { - GstStructure* outoldstrPtr = oldstrPtr.getStructureStruct(); - - auto __p = gst_structure_take(&outoldstrPtr, (newstr is null) ? null : newstr.getStructureStruct(true)) != 0; - - oldstrPtr = ObjectG.getDObject!(Structure)(outoldstrPtr); - - return __p; - } -} diff --git a/generated/gstreamer/gstreamer/SystemClock.d b/generated/gstreamer/gstreamer/SystemClock.d deleted file mode 100644 index 1ade8dd48..000000000 --- a/generated/gstreamer/gstreamer/SystemClock.d +++ /dev/null @@ -1,119 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.SystemClock; - -private import gobject.ObjectG; -private import gstreamer.Clock; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The GStreamer core provides a GstSystemClock based on the system time. - * Asynchronous callbacks are scheduled from an internal thread. - * - * Clock implementors are encouraged to subclass this systemclock as it - * implements the async notification. - * - * Subclasses can however override all of the important methods for sync and - * async notifications to implement their own callback methods or blocking - * wait operations. - */ -public class SystemClock : Clock -{ - /** the main Gtk struct */ - protected GstSystemClock* gstSystemClock; - - /** Get the main Gtk struct */ - public GstSystemClock* getSystemClockStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstSystemClock; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstSystemClock; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstSystemClock* gstSystemClock, bool ownedRef = false) - { - this.gstSystemClock = gstSystemClock; - super(cast(GstClock*)gstSystemClock, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_system_clock_get_type(); - } - - /** - * Get a handle to the default system clock. The refcount of the - * clock will be increased so you need to unref the clock after - * usage. - * - * Returns: the default clock. - * - * MT safe. - */ - public static Clock obtain() - { - auto __p = gst_system_clock_obtain(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clock)(cast(GstClock*) __p, true); - } - - /** - * Sets the default system clock that can be obtained with - * gst_system_clock_obtain(). - * - * This is mostly used for testing and debugging purposes when you - * want to have control over the time reported by the default system - * clock. - * - * MT safe. - * - * Params: - * newClock = a #GstClock - * - * Since: 1.4 - */ - public static void setDefault(Clock newClock) - { - gst_system_clock_set_default((newClock is null) ? null : newClock.getClockStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/TagList.d b/generated/gstreamer/gstreamer/TagList.d deleted file mode 100644 index 5fc56af98..000000000 --- a/generated/gstreamer/gstreamer/TagList.d +++ /dev/null @@ -1,1112 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TagList; - -private import glib.ConstructionException; -private import glib.Date; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.DateTime; -private import gstreamer.Sample; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * List of tags and values used to describe media metadata. - * - * Strings in structures must be ASCII or UTF-8 encoded. Other encodings are - * not allowed. Strings must not be empty or %NULL. - */ -public class TagList -{ - /** the main Gtk struct */ - protected GstTagList* gstTagList; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstTagList* getTagListStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTagList; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstTagList; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTagList* gstTagList, bool ownedRef = false) - { - this.gstTagList = gstTagList; - this.ownedRef = ownedRef; - } - - - /** - * Gets the #GType used for this tag. - * - * Params: - * tag = the tag - * - * Returns: the #GType of this tag - */ - public static GType getType(string tag) - { - return gst_tag_get_type(Str.toStringz(tag)); - } - - /** - * Creates a new empty GstTagList. - * - * Free-function: gst_tag_list_unref - * - * Returns: An empty tag list - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_tag_list_new_empty(); - - if(__p is null) - { - throw new ConstructionException("null returned by new_empty"); - } - - this(cast(GstTagList*) __p); - } - - /** - * Deserializes a tag list. - * - * Params: - * str = a string created with gst_tag_list_to_string() - * - * Returns: a new #GstTagList, or %NULL in case of an - * error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string str) - { - auto __p = gst_tag_list_new_from_string(Str.toStringz(str)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_string"); - } - - this(cast(GstTagList*) __p); - } - - /** - * Just like gst_tag_list_new(), only that it takes a va_list argument. - * Useful mostly for language bindings. - * - * Free-function: gst_tag_list_unref - * - * Params: - * varArgs = tag / value pairs to set - * - * Returns: a new #GstTagList. Free with gst_tag_list_unref() - * when no longer needed. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(void* varArgs) - { - auto __p = gst_tag_list_new_valist(varArgs); - - if(__p is null) - { - throw new ConstructionException("null returned by new_valist"); - } - - this(cast(GstTagList*) __p); - } - - /** - * Sets the values for the given tags using the specified mode. - * - * Params: - * mode = the mode to use - * tag = tag - * varArgs = tag / value pairs to set - */ - public void addValist(GstTagMergeMode mode, string tag, void* varArgs) - { - gst_tag_list_add_valist(gstTagList, mode, Str.toStringz(tag), varArgs); - } - - /** - * Sets the GValues for the given tags using the specified mode. - * - * Params: - * mode = the mode to use - * tag = tag - * varArgs = tag / GValue pairs to set - */ - public void addValistValues(GstTagMergeMode mode, string tag, void* varArgs) - { - gst_tag_list_add_valist_values(gstTagList, mode, Str.toStringz(tag), varArgs); - } - - /** - * Sets the GValue for a given tag using the specified mode. - * - * Params: - * mode = the mode to use - * tag = tag - * value = GValue for this tag - */ - public void addValue(GstTagMergeMode mode, string tag, Value value) - { - gst_tag_list_add_value(gstTagList, mode, Str.toStringz(tag), (value is null) ? null : value.getValueStruct()); - } - - /** - * Creates a new #GstTagList as a copy of the old @taglist. The new taglist - * will have a refcount of 1, owned by the caller, and will be writable as - * a result. - * - * Note that this function is the semantic equivalent of a gst_tag_list_ref() - * followed by a gst_tag_list_make_writable(). If you only want to hold on to a - * reference to the data, you should use gst_tag_list_ref(). - * - * When you are finished with the taglist, call gst_tag_list_unref() on it. - * - * Returns: the new #GstTagList - */ - public TagList copy() - { - auto __p = gst_tag_list_copy(gstTagList); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TagList)(cast(GstTagList*) __p, true); - } - - alias foreac = foreach_; - /** - * Calls the given function for each tag inside the tag list. Note that if there - * is no tag, the function won't be called at all. - * - * Params: - * func = function to be called for each tag - * userData = user specified data - */ - public void foreach_(GstTagForeachFunc func, void* userData) - { - gst_tag_list_foreach(gstTagList, func, userData); - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getBoolean(string tag, out bool value) - { - int outvalue; - - auto __p = gst_tag_list_get_boolean(gstTagList, Str.toStringz(tag), &outvalue) != 0; - - value = (outvalue == 1); - - return __p; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getBooleanIndex(string tag, uint index, out bool value) - { - int outvalue; - - auto __p = gst_tag_list_get_boolean_index(gstTagList, Str.toStringz(tag), index, &outvalue) != 0; - - value = (outvalue == 1); - - return __p; - } - - /** - * Copies the first date for the given tag in the taglist into the variable - * pointed to by @value. Free the date with g_date_free() when it is no longer - * needed. - * - * Free-function: g_date_free - * - * Params: - * tag = tag to read out - * value = address of a GDate pointer - * variable to store the result into - * - * Returns: %TRUE, if a date was copied, %FALSE if the tag didn't exist in the - * given list or if it was %NULL. - */ - public bool getDate(string tag, out Date value) - { - GDate* outvalue = null; - - auto __p = gst_tag_list_get_date(gstTagList, Str.toStringz(tag), &outvalue) != 0; - - value = new Date(outvalue); - - return __p; - } - - /** - * Gets the date that is at the given index for the given tag in the given - * list and copies it into the variable pointed to by @value. Free the date - * with g_date_free() when it is no longer needed. - * - * Free-function: g_date_free - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list or if it was %NULL. - */ - public bool getDateIndex(string tag, uint index, out Date value) - { - GDate* outvalue = null; - - auto __p = gst_tag_list_get_date_index(gstTagList, Str.toStringz(tag), index, &outvalue) != 0; - - value = new Date(outvalue); - - return __p; - } - - /** - * Copies the first datetime for the given tag in the taglist into the variable - * pointed to by @value. Unref the date with gst_date_time_unref() when - * it is no longer needed. - * - * Free-function: gst_date_time_unref - * - * Params: - * tag = tag to read out - * value = address of a #GstDateTime - * pointer variable to store the result into - * - * Returns: %TRUE, if a datetime was copied, %FALSE if the tag didn't exist in - * the given list or if it was %NULL. - */ - public bool getDateTime(string tag, out DateTime value) - { - GstDateTime* outvalue = null; - - auto __p = gst_tag_list_get_date_time(gstTagList, Str.toStringz(tag), &outvalue) != 0; - - value = ObjectG.getDObject!(DateTime)(outvalue); - - return __p; - } - - /** - * Gets the datetime that is at the given index for the given tag in the given - * list and copies it into the variable pointed to by @value. Unref the datetime - * with gst_date_time_unref() when it is no longer needed. - * - * Free-function: gst_date_time_unref - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list or if it was %NULL. - */ - public bool getDateTimeIndex(string tag, uint index, out DateTime value) - { - GstDateTime* outvalue = null; - - auto __p = gst_tag_list_get_date_time_index(gstTagList, Str.toStringz(tag), index, &outvalue) != 0; - - value = ObjectG.getDObject!(DateTime)(outvalue); - - return __p; - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getDouble(string tag, out double value) - { - return gst_tag_list_get_double(gstTagList, Str.toStringz(tag), &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getDoubleIndex(string tag, uint index, out double value) - { - return gst_tag_list_get_double_index(gstTagList, Str.toStringz(tag), index, &value) != 0; - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getFloat(string tag, out float value) - { - return gst_tag_list_get_float(gstTagList, Str.toStringz(tag), &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getFloatIndex(string tag, uint index, out float value) - { - return gst_tag_list_get_float_index(gstTagList, Str.toStringz(tag), index, &value) != 0; - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getInt(string tag, out int value) - { - return gst_tag_list_get_int(gstTagList, Str.toStringz(tag), &value) != 0; - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getInt64(string tag, out long value) - { - return gst_tag_list_get_int64(gstTagList, Str.toStringz(tag), &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getInt64Index(string tag, uint index, out long value) - { - return gst_tag_list_get_int64_index(gstTagList, Str.toStringz(tag), index, &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getIntIndex(string tag, uint index, out int value) - { - return gst_tag_list_get_int_index(gstTagList, Str.toStringz(tag), index, &value) != 0; - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getPointer(string tag, out void* value) - { - return gst_tag_list_get_pointer(gstTagList, Str.toStringz(tag), &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getPointerIndex(string tag, uint index, out void* value) - { - return gst_tag_list_get_pointer_index(gstTagList, Str.toStringz(tag), index, &value) != 0; - } - - /** - * Copies the first sample for the given tag in the taglist into the variable - * pointed to by @sample. Free the sample with gst_sample_unref() when it is - * no longer needed. You can retrieve the buffer from the sample using - * gst_sample_get_buffer() and the associated caps (if any) with - * gst_sample_get_caps(). - * - * Free-function: gst_sample_unref - * - * Params: - * tag = tag to read out - * sample = address of a GstSample - * pointer variable to store the result into - * - * Returns: %TRUE, if a sample was returned, %FALSE if the tag didn't exist in - * the given list or if it was %NULL. - */ - public bool getSample(string tag, out Sample sample) - { - GstSample* outsample = null; - - auto __p = gst_tag_list_get_sample(gstTagList, Str.toStringz(tag), &outsample) != 0; - - sample = ObjectG.getDObject!(Sample)(outsample); - - return __p; - } - - /** - * Gets the sample that is at the given index for the given tag in the given - * list and copies it into the variable pointed to by @sample. Free the sample - * with gst_sample_unref() when it is no longer needed. You can retrieve the - * buffer from the sample using gst_sample_get_buffer() and the associated - * caps (if any) with gst_sample_get_caps(). - * - * Free-function: gst_sample_unref - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * sample = address of a GstSample - * pointer variable to store the result into - * - * Returns: %TRUE, if a sample was copied, %FALSE if the tag didn't exist in the - * given list or if it was %NULL. - */ - public bool getSampleIndex(string tag, uint index, out Sample sample) - { - GstSample* outsample = null; - - auto __p = gst_tag_list_get_sample_index(gstTagList, Str.toStringz(tag), index, &outsample) != 0; - - sample = ObjectG.getDObject!(Sample)(outsample); - - return __p; - } - - /** - * Gets the scope of @list. - * - * Returns: The scope of @list - */ - public GstTagScope getScope() - { - return gst_tag_list_get_scope(gstTagList); - } - - /** - * Copies the contents for the given tag into the value, possibly merging - * multiple values into one if multiple values are associated with the tag. - * - * Use gst_tag_list_get_string_index (list, tag, 0, value) if you want - * to retrieve the first string associated with this tag unmodified. - * - * The resulting string in @value will be in UTF-8 encoding and should be - * freed by the caller using g_free when no longer needed. The - * returned string is also guaranteed to be non-%NULL and non-empty. - * - * Free-function: g_free - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getString(string tag, out string value) - { - char* outvalue = null; - - auto __p = gst_tag_list_get_string(gstTagList, Str.toStringz(tag), &outvalue) != 0; - - value = Str.toString(outvalue); - - return __p; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * The resulting string in @value will be in UTF-8 encoding and should be - * freed by the caller using g_free when no longer needed. The - * returned string is also guaranteed to be non-%NULL and non-empty. - * - * Free-function: g_free - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getStringIndex(string tag, uint index, out string value) - { - char* outvalue = null; - - auto __p = gst_tag_list_get_string_index(gstTagList, Str.toStringz(tag), index, &outvalue) != 0; - - value = Str.toString(outvalue); - - return __p; - } - - /** - * Checks how many value are stored in this tag list for the given tag. - * - * Params: - * tag = the tag to query - * - * Returns: The number of tags stored - */ - public uint getTagSize(string tag) - { - return gst_tag_list_get_tag_size(gstTagList, Str.toStringz(tag)); - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getUint(string tag, out uint value) - { - return gst_tag_list_get_uint(gstTagList, Str.toStringz(tag), &value) != 0; - } - - /** - * Copies the contents for the given tag into the value, merging multiple values - * into one if multiple values are associated with the tag. - * - * Params: - * tag = tag to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getUint64(string tag, out ulong value) - { - return gst_tag_list_get_uint64(gstTagList, Str.toStringz(tag), &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getUint64Index(string tag, uint index, out ulong value) - { - return gst_tag_list_get_uint64_index(gstTagList, Str.toStringz(tag), index, &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public bool getUintIndex(string tag, uint index, out uint value) - { - return gst_tag_list_get_uint_index(gstTagList, Str.toStringz(tag), index, &value) != 0; - } - - /** - * Gets the value that is at the given index for the given tag in the given - * list. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * - * Returns: The GValue for the specified - * entry or %NULL if the tag wasn't available or the tag - * doesn't have as many entries - */ - public Value getValueIndex(string tag, uint index) - { - auto __p = gst_tag_list_get_value_index(gstTagList, Str.toStringz(tag), index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Inserts the tags of the @from list into the first list using the given mode. - * - * Params: - * from = list to merge from - * mode = the mode to use - */ - public void insert(TagList from, GstTagMergeMode mode) - { - gst_tag_list_insert(gstTagList, (from is null) ? null : from.getTagListStruct(), mode); - } - - /** - * Checks if the given taglist is empty. - * - * Returns: %TRUE if the taglist is empty, otherwise %FALSE. - */ - public bool isEmpty() - { - return gst_tag_list_is_empty(gstTagList) != 0; - } - - /** - * Checks if the two given taglists are equal. - * - * Params: - * list2 = a #GstTagList. - * - * Returns: %TRUE if the taglists are equal, otherwise %FALSE - */ - public bool isEqual(TagList list2) - { - return gst_tag_list_is_equal(gstTagList, (list2 is null) ? null : list2.getTagListStruct()) != 0; - } - - /** - * Merges the two given lists into a new list. If one of the lists is %NULL, a - * copy of the other is returned. If both lists are %NULL, %NULL is returned. - * - * Free-function: gst_tag_list_unref - * - * Params: - * list2 = second list to merge - * mode = the mode to use - * - * Returns: the new list - */ - public TagList merge(TagList list2, GstTagMergeMode mode) - { - auto __p = gst_tag_list_merge(gstTagList, (list2 is null) ? null : list2.getTagListStruct(), mode); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TagList)(cast(GstTagList*) __p, true); - } - - /** - * Get the number of tags in @list. - * - * Returns: The number of tags in @list. - */ - public int nTags() - { - return gst_tag_list_n_tags(gstTagList); - } - - /** - * Get the name of the tag in @list at @index. - * - * Params: - * index = the index - * - * Returns: The name of the tag at @index. - */ - public string nthTagName(uint index) - { - return Str.toString(gst_tag_list_nth_tag_name(gstTagList, index)); - } - - /** - * Peeks at the value that is at the given index for the given tag in the given - * list. - * - * The resulting string in @value will be in UTF-8 encoding and doesn't need - * to be freed by the caller. The returned string is also guaranteed to - * be non-%NULL and non-empty. - * - * Params: - * tag = tag to read out - * index = number of entry to read out - * value = location for the result - * - * Returns: %TRUE, if a value was set, %FALSE if the tag didn't exist in the - * given list. - */ - public bool peekStringIndex(string tag, uint index, out string value) - { - char* outvalue = null; - - auto __p = gst_tag_list_peek_string_index(gstTagList, Str.toStringz(tag), index, &outvalue) != 0; - - value = Str.toString(outvalue); - - return __p; - } - - /** - * Removes the given tag from the taglist. - * - * Params: - * tag = tag to remove - */ - public void removeTag(string tag) - { - gst_tag_list_remove_tag(gstTagList, Str.toStringz(tag)); - } - - /** - * Sets the scope of @list to @scope. By default the scope - * of a taglist is stream scope. - * - * Params: - * scope_ = new scope for @list - */ - public void setScope(GstTagScope scope_) - { - gst_tag_list_set_scope(gstTagList, scope_); - } - - /** - * Serializes a tag list to a string. - * - * Returns: a newly-allocated string, or %NULL in case of - * an error. The string must be freed with g_free() when no longer - * needed. - */ - public override string toString() - { - auto retStr = gst_tag_list_to_string(gstTagList); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Copies the contents for the given tag into the value, - * merging multiple values into one if multiple values are associated - * with the tag. - * You must g_value_unset() the value after use. - * - * Params: - * dest = uninitialized #GValue to copy into - * list = list to get the tag from - * tag = tag to read out - * - * Returns: %TRUE, if a value was copied, %FALSE if the tag didn't exist in the - * given list. - */ - public static bool copyValue(out Value dest, TagList list, string tag) - { - GValue* outdest = sliceNew!GValue(); - - auto __p = gst_tag_list_copy_value(outdest, (list is null) ? null : list.getTagListStruct(), Str.toStringz(tag)) != 0; - - dest = ObjectG.getDObject!(Value)(outdest, true); - - return __p; - } - - /** - * Checks if the given type is already registered. - * - * Params: - * tag = name of the tag - * - * Returns: %TRUE if the type is already registered - */ - public static bool exists(string tag) - { - return gst_tag_exists(Str.toStringz(tag)) != 0; - } - - /** - * Returns the human-readable description of this tag, You must not change or - * free this string. - * - * Params: - * tag = the tag - * - * Returns: the human-readable description of this tag - */ - public static string getDescription(string tag) - { - return Str.toString(gst_tag_get_description(Str.toStringz(tag))); - } - - /** - * Gets the flag of @tag. - * - * Params: - * tag = the tag - * - * Returns: the flag of this tag. - */ - public static GstTagFlag getFlag(string tag) - { - return gst_tag_get_flag(Str.toStringz(tag)); - } - - /** - * Returns the human-readable name of this tag, You must not change or free - * this string. - * - * Params: - * tag = the tag - * - * Returns: the human-readable name of this tag - */ - public static string getNick(string tag) - { - return Str.toString(gst_tag_get_nick(Str.toStringz(tag))); - } - - /** - * Checks if the given tag is fixed. A fixed tag can only contain one value. - * Unfixed tags can contain lists of values. - * - * Params: - * tag = tag to check - * - * Returns: %TRUE, if the given tag is fixed. - */ - public static bool isFixed(string tag) - { - return gst_tag_is_fixed(Str.toStringz(tag)) != 0; - } - - /** - * This is a convenience function for the func argument of gst_tag_register(). - * It concatenates all given strings using a comma. The tag must be registered - * as a G_TYPE_STRING or this function will fail. - * - * Params: - * dest = uninitialized GValue to store result in - * src = GValue to copy from - */ - public static void mergeStringsWithComma(out Value dest, Value src) - { - GValue* outdest = sliceNew!GValue(); - - gst_tag_merge_strings_with_comma(outdest, (src is null) ? null : src.getValueStruct()); - - dest = ObjectG.getDObject!(Value)(outdest, true); - } - - /** - * This is a convenience function for the func argument of gst_tag_register(). - * It creates a copy of the first value from the list. - * - * Params: - * dest = uninitialized GValue to store result in - * src = GValue to copy from - */ - public static void mergeUseFirst(out Value dest, Value src) - { - GValue* outdest = sliceNew!GValue(); - - gst_tag_merge_use_first(outdest, (src is null) ? null : src.getValueStruct()); - - dest = ObjectG.getDObject!(Value)(outdest, true); - } - - /** - * Registers a new tag type for the use with GStreamer's type system. If a type - * with that name is already registered, that one is used. - * The old registration may have used a different type however. So don't rely - * on your supplied values. - * - * Important: if you do not supply a merge function the implication will be - * that there can only be one single value for this tag in a tag list and - * any additional values will silently be discarded when being added (unless - * #GST_TAG_MERGE_REPLACE, #GST_TAG_MERGE_REPLACE_ALL, or - * #GST_TAG_MERGE_PREPEND is used as merge mode, in which case the new - * value will replace the old one in the list). - * - * The merge function will be called from gst_tag_list_copy_value() when - * it is required that one or more values for a tag be condensed into - * one single value. This may happen from gst_tag_list_get_string(), - * gst_tag_list_get_int(), gst_tag_list_get_double() etc. What will happen - * exactly in that case depends on how the tag was registered and if a - * merge function was supplied and if so which one. - * - * Two default merge functions are provided: gst_tag_merge_use_first() and - * gst_tag_merge_strings_with_comma(). - * - * Params: - * name = the name or identifier string - * flag = a flag describing the type of tag info - * type = the type this data is in - * nick = human-readable name - * blurb = a human-readable description about this tag - * func = function for merging multiple values of this tag, or %NULL - */ - public static void register(string name, GstTagFlag flag, GType type, string nick, string blurb, GstTagMergeFunc func) - { - gst_tag_register(Str.toStringz(name), flag, type, Str.toStringz(nick), Str.toStringz(blurb), func); - } - - /** - * Registers a new tag type for the use with GStreamer's type system. - * - * Same as gst_tag_register(), but @name, @nick, and @blurb must be - * static strings or inlined strings, as they will not be copied. (GStreamer - * plugins will be made resident once loaded, so this function can be used - * even from dynamically loaded plugins.) - * - * Params: - * name = the name or identifier string (string constant) - * flag = a flag describing the type of tag info - * type = the type this data is in - * nick = human-readable name or short description (string constant) - * blurb = a human-readable description for this tag (string constant) - * func = function for merging multiple values of this tag, or %NULL - */ - public static void registerStatic(string name, GstTagFlag flag, GType type, string nick, string blurb, GstTagMergeFunc func) - { - gst_tag_register_static(Str.toStringz(name), flag, type, Str.toStringz(nick), Str.toStringz(blurb), func); - } -} diff --git a/generated/gstreamer/gstreamer/TagSetterIF.d b/generated/gstreamer/gstreamer/TagSetterIF.d deleted file mode 100644 index 42cc206c8..000000000 --- a/generated/gstreamer/gstreamer/TagSetterIF.d +++ /dev/null @@ -1,166 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TagSetterIF; - -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.TagList; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Element interface that allows setting of media metadata. - * - * Elements that support changing a stream's metadata will implement this - * interface. Examples of such elements are 'vorbisenc', 'theoraenc' and - * 'id3v2mux'. - * - * If you just want to retrieve metadata in your application then all you - * need to do is watch for tag messages on your pipeline's bus. This - * interface is only for setting metadata, not for extracting it. To set tags - * from the application, find tagsetter elements and set tags using e.g. - * gst_tag_setter_merge_tags() or gst_tag_setter_add_tags(). Also consider - * setting the #GstTagMergeMode that is used for tag events that arrive at the - * tagsetter element (default mode is to keep existing tags). - * The application should do that before the element goes to %GST_STATE_PAUSED. - * - * Elements implementing the #GstTagSetter interface often have to merge - * any tags received from upstream and the tags set by the application via - * the interface. This can be done like this: - * - * |[ - * GstTagMergeMode merge_mode; - * const GstTagList *application_tags; - * const GstTagList *event_tags; - * GstTagSetter *tagsetter; - * GstTagList *result; - * - * tagsetter = GST_TAG_SETTER (element); - * - * merge_mode = gst_tag_setter_get_tag_merge_mode (tagsetter); - * application_tags = gst_tag_setter_get_tag_list (tagsetter); - * event_tags = (const GstTagList *) element->event_tags; - * - * GST_LOG_OBJECT (tagsetter, "merging tags, merge mode = %d", merge_mode); - * GST_LOG_OBJECT (tagsetter, "event tags: %" GST_PTR_FORMAT, event_tags); - * GST_LOG_OBJECT (tagsetter, "set tags: %" GST_PTR_FORMAT, application_tags); - * - * result = gst_tag_list_merge (application_tags, event_tags, merge_mode); - * - * GST_LOG_OBJECT (tagsetter, "final tags: %" GST_PTR_FORMAT, result); - * ]| - */ -public interface TagSetterIF{ - /** Get the main Gtk struct */ - public GstTagSetter* getTagSetterStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gst_tag_setter_get_type(); - } - - /** - * Adds the given tag / value pairs on the setter using the given merge mode. - * The list must be terminated with %NULL. - * - * Params: - * mode = the mode to use - * tag = tag to set - * varArgs = tag / value pairs to set - */ - public void addTagValist(GstTagMergeMode mode, string tag, void* varArgs); - - /** - * Adds the given tag / GValue pairs on the setter using the given merge mode. - * The list must be terminated with %NULL. - * - * Params: - * mode = the mode to use - * tag = tag to set - * varArgs = tag / GValue pairs to set - */ - public void addTagValistValues(GstTagMergeMode mode, string tag, void* varArgs); - - /** - * Adds the given tag / GValue pair on the setter using the given merge mode. - * - * Params: - * mode = the mode to use - * tag = tag to set - * value = GValue to set for the tag - */ - public void addTagValue(GstTagMergeMode mode, string tag, Value value); - - /** - * Returns the current list of tags the setter uses. The list should not be - * modified or freed. - * - * This function is not thread-safe. - * - * Returns: a current snapshot of the - * taglist used in the setter or %NULL if none is used. - */ - public TagList getTagList(); - - /** - * Queries the mode by which tags inside the setter are overwritten by tags - * from events - * - * Returns: the merge mode used inside the element. - */ - public GstTagMergeMode getTagMergeMode(); - - /** - * Merges the given list into the setter's list using the given mode. - * - * Params: - * list = a tag list to merge from - * mode = the mode to merge with - */ - public void mergeTags(TagList list, GstTagMergeMode mode); - - /** - * Reset the internal taglist. Elements should call this from within the - * state-change handler. - */ - public void resetTags(); - - /** - * Sets the given merge mode that is used for adding tags from events to tags - * specified by this interface. The default is #GST_TAG_MERGE_KEEP, which keeps - * the tags set with this interface and discards tags from events. - * - * Params: - * mode = The mode with which tags are added - */ - public void setTagMergeMode(GstTagMergeMode mode); -} diff --git a/generated/gstreamer/gstreamer/TagSetterT.d b/generated/gstreamer/gstreamer/TagSetterT.d deleted file mode 100644 index a0829b7d0..000000000 --- a/generated/gstreamer/gstreamer/TagSetterT.d +++ /dev/null @@ -1,194 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TagSetterT; - -public import glib.Str; -public import gobject.ObjectG; -public import gobject.Value; -public import gstreamer.TagList; -public import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Element interface that allows setting of media metadata. - * - * Elements that support changing a stream's metadata will implement this - * interface. Examples of such elements are 'vorbisenc', 'theoraenc' and - * 'id3v2mux'. - * - * If you just want to retrieve metadata in your application then all you - * need to do is watch for tag messages on your pipeline's bus. This - * interface is only for setting metadata, not for extracting it. To set tags - * from the application, find tagsetter elements and set tags using e.g. - * gst_tag_setter_merge_tags() or gst_tag_setter_add_tags(). Also consider - * setting the #GstTagMergeMode that is used for tag events that arrive at the - * tagsetter element (default mode is to keep existing tags). - * The application should do that before the element goes to %GST_STATE_PAUSED. - * - * Elements implementing the #GstTagSetter interface often have to merge - * any tags received from upstream and the tags set by the application via - * the interface. This can be done like this: - * - * |[ - * GstTagMergeMode merge_mode; - * const GstTagList *application_tags; - * const GstTagList *event_tags; - * GstTagSetter *tagsetter; - * GstTagList *result; - * - * tagsetter = GST_TAG_SETTER (element); - * - * merge_mode = gst_tag_setter_get_tag_merge_mode (tagsetter); - * application_tags = gst_tag_setter_get_tag_list (tagsetter); - * event_tags = (const GstTagList *) element->event_tags; - * - * GST_LOG_OBJECT (tagsetter, "merging tags, merge mode = %d", merge_mode); - * GST_LOG_OBJECT (tagsetter, "event tags: %" GST_PTR_FORMAT, event_tags); - * GST_LOG_OBJECT (tagsetter, "set tags: %" GST_PTR_FORMAT, application_tags); - * - * result = gst_tag_list_merge (application_tags, event_tags, merge_mode); - * - * GST_LOG_OBJECT (tagsetter, "final tags: %" GST_PTR_FORMAT, result); - * ]| - */ -public template TagSetterT(TStruct) -{ - /** Get the main Gtk struct */ - public GstTagSetter* getTagSetterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GstTagSetter*)getStruct(); - } - - - /** - * Adds the given tag / value pairs on the setter using the given merge mode. - * The list must be terminated with %NULL. - * - * Params: - * mode = the mode to use - * tag = tag to set - * varArgs = tag / value pairs to set - */ - public void addTagValist(GstTagMergeMode mode, string tag, void* varArgs) - { - gst_tag_setter_add_tag_valist(getTagSetterStruct(), mode, Str.toStringz(tag), varArgs); - } - - /** - * Adds the given tag / GValue pairs on the setter using the given merge mode. - * The list must be terminated with %NULL. - * - * Params: - * mode = the mode to use - * tag = tag to set - * varArgs = tag / GValue pairs to set - */ - public void addTagValistValues(GstTagMergeMode mode, string tag, void* varArgs) - { - gst_tag_setter_add_tag_valist_values(getTagSetterStruct(), mode, Str.toStringz(tag), varArgs); - } - - /** - * Adds the given tag / GValue pair on the setter using the given merge mode. - * - * Params: - * mode = the mode to use - * tag = tag to set - * value = GValue to set for the tag - */ - public void addTagValue(GstTagMergeMode mode, string tag, Value value) - { - gst_tag_setter_add_tag_value(getTagSetterStruct(), mode, Str.toStringz(tag), (value is null) ? null : value.getValueStruct()); - } - - /** - * Returns the current list of tags the setter uses. The list should not be - * modified or freed. - * - * This function is not thread-safe. - * - * Returns: a current snapshot of the - * taglist used in the setter or %NULL if none is used. - */ - public TagList getTagList() - { - auto __p = gst_tag_setter_get_tag_list(getTagSetterStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TagList)(cast(GstTagList*) __p); - } - - /** - * Queries the mode by which tags inside the setter are overwritten by tags - * from events - * - * Returns: the merge mode used inside the element. - */ - public GstTagMergeMode getTagMergeMode() - { - return gst_tag_setter_get_tag_merge_mode(getTagSetterStruct()); - } - - /** - * Merges the given list into the setter's list using the given mode. - * - * Params: - * list = a tag list to merge from - * mode = the mode to merge with - */ - public void mergeTags(TagList list, GstTagMergeMode mode) - { - gst_tag_setter_merge_tags(getTagSetterStruct(), (list is null) ? null : list.getTagListStruct(), mode); - } - - /** - * Reset the internal taglist. Elements should call this from within the - * state-change handler. - */ - public void resetTags() - { - gst_tag_setter_reset_tags(getTagSetterStruct()); - } - - /** - * Sets the given merge mode that is used for adding tags from events to tags - * specified by this interface. The default is #GST_TAG_MERGE_KEEP, which keeps - * the tags set with this interface and discards tags from events. - * - * Params: - * mode = The mode with which tags are added - */ - public void setTagMergeMode(GstTagMergeMode mode) - { - gst_tag_setter_set_tag_merge_mode(getTagSetterStruct(), mode); - } -} diff --git a/generated/gstreamer/gstreamer/Task.d b/generated/gstreamer/gstreamer/Task.d deleted file mode 100644 index e23d38fa1..000000000 --- a/generated/gstreamer/gstreamer/Task.d +++ /dev/null @@ -1,349 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Task; - -private import glib.ConstructionException; -private import glib.RecMutex; -private import gobject.ObjectG; -private import gstreamer.ObjectGst; -private import gstreamer.TaskPool; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * #GstTask is used by #GstElement and #GstPad to provide the data passing - * threads in a #GstPipeline. - * - * A #GstPad will typically start a #GstTask to push or pull data to/from the - * peer pads. Most source elements start a #GstTask to push data. In some cases - * a demuxer element can start a #GstTask to pull data from a peer element. This - * is typically done when the demuxer can perform random access on the upstream - * peer element for improved performance. - * - * Although convenience functions exist on #GstPad to start/pause/stop tasks, it - * might sometimes be needed to create a #GstTask manually if it is not related to - * a #GstPad. - * - * Before the #GstTask can be run, it needs a #GRecMutex that can be set with - * gst_task_set_lock(). - * - * The task can be started, paused and stopped with gst_task_start(), gst_task_pause() - * and gst_task_stop() respectively or with the gst_task_set_state() function. - * - * A #GstTask will repeatedly call the #GstTaskFunction with the user data - * that was provided when creating the task with gst_task_new(). While calling - * the function it will acquire the provided lock. The provided lock is released - * when the task pauses or stops. - * - * Stopping a task with gst_task_stop() will not immediately make sure the task is - * not running anymore. Use gst_task_join() to make sure the task is completely - * stopped and the thread is stopped. - * - * After creating a #GstTask, use gst_object_unref() to free its resources. This can - * only be done when the task is not running anymore. - * - * Task functions can send a #GstMessage to send out-of-band data to the - * application. The application can receive messages from the #GstBus in its - * mainloop. - * - * For debugging purposes, the task will configure its object name as the thread - * name on Linux. Please note that the object name should be configured before the - * task is started; changing the object name after the task has been started, has - * no effect on the thread name. - */ -public class Task : ObjectGst -{ - /** the main Gtk struct */ - protected GstTask* gstTask; - - /** Get the main Gtk struct */ - public GstTask* getTaskStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTask; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstTask; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTask* gstTask, bool ownedRef = false) - { - this.gstTask = gstTask; - super(cast(GstObject*)gstTask, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_task_get_type(); - } - - /** - * Create a new Task that will repeatedly call the provided @func - * with @user_data as a parameter. Typically the task will run in - * a new thread. - * - * The function cannot be changed after the task has been created. You - * must create a new #GstTask to change the function. - * - * This function will not yet create and start a thread. Use gst_task_start() or - * gst_task_pause() to create and start the GThread. - * - * Before the task can be used, a #GRecMutex must be configured using the - * gst_task_set_lock() function. This lock will always be acquired while - * @func is called. - * - * Params: - * func = The #GstTaskFunction to use - * userData = User data to pass to @func - * notify = the function to call when @user_data is no longer needed. - * - * Returns: A new #GstTask. - * - * MT safe. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstTaskFunction func, void* userData, GDestroyNotify notify) - { - auto __p = gst_task_new(func, userData, notify); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstTask*) __p, true); - } - - /** - * Wait for all tasks to be stopped. This is mainly used internally - * to ensure proper cleanup of internal data structures in test suites. - * - * MT safe. - */ - public static void cleanupAll() - { - gst_task_cleanup_all(); - } - - /** - * Get the #GstTaskPool that this task will use for its streaming - * threads. - * - * MT safe. - * - * Returns: the #GstTaskPool used by @task. gst_object_unref() - * after usage. - */ - public TaskPool getPool() - { - auto __p = gst_task_get_pool(gstTask); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TaskPool)(cast(GstTaskPool*) __p, true); - } - - /** - * Get the current state of the task. - * - * Returns: The #GstTaskState of the task - * - * MT safe. - */ - public GstTaskState getState() - { - return gst_task_get_state(gstTask); - } - - /** - * Joins @task. After this call, it is safe to unref the task - * and clean up the lock set with gst_task_set_lock(). - * - * The task will automatically be stopped with this call. - * - * This function cannot be called from within a task function as this - * would cause a deadlock. The function will detect this and print a - * g_warning. - * - * Returns: %TRUE if the task could be joined. - * - * MT safe. - */ - public bool join() - { - return gst_task_join(gstTask) != 0; - } - - /** - * Pauses @task. This method can also be called on a task in the - * stopped state, in which case a thread will be started and will remain - * in the paused state. This function does not wait for the task to complete - * the paused state. - * - * Returns: %TRUE if the task could be paused. - * - * MT safe. - */ - public bool pause() - { - return gst_task_pause(gstTask) != 0; - } - - /** - * Resume @task in case it was paused. If the task was stopped, it will - * remain in that state and this function will return %FALSE. - * - * Returns: %TRUE if the task could be resumed. - * - * MT safe. - * - * Since: 1.18 - */ - public bool resume() - { - return gst_task_resume(gstTask) != 0; - } - - /** - * Call @enter_func when the task function of @task is entered. @user_data will - * be passed to @enter_func and @notify will be called when @user_data is no - * longer referenced. - * - * Params: - * enterFunc = a #GstTaskThreadFunc - * userData = user data passed to @enter_func - * notify = called when @user_data is no longer referenced - */ - public void setEnterCallback(GstTaskThreadFunc enterFunc, void* userData, GDestroyNotify notify) - { - gst_task_set_enter_callback(gstTask, enterFunc, userData, notify); - } - - /** - * Call @leave_func when the task function of @task is left. @user_data will - * be passed to @leave_func and @notify will be called when @user_data is no - * longer referenced. - * - * Params: - * leaveFunc = a #GstTaskThreadFunc - * userData = user data passed to @leave_func - * notify = called when @user_data is no longer referenced - */ - public void setLeaveCallback(GstTaskThreadFunc leaveFunc, void* userData, GDestroyNotify notify) - { - gst_task_set_leave_callback(gstTask, leaveFunc, userData, notify); - } - - /** - * Set the mutex used by the task. The mutex will be acquired before - * calling the #GstTaskFunction. - * - * This function has to be called before calling gst_task_pause() or - * gst_task_start(). - * - * MT safe. - * - * Params: - * mutex = The #GRecMutex to use - */ - public void setLock(RecMutex mutex) - { - gst_task_set_lock(gstTask, (mutex is null) ? null : mutex.getRecMutexStruct()); - } - - /** - * Set @pool as the new GstTaskPool for @task. Any new streaming threads that - * will be created by @task will now use @pool. - * - * MT safe. - * - * Params: - * pool = a #GstTaskPool - */ - public void setPool(TaskPool pool) - { - gst_task_set_pool(gstTask, (pool is null) ? null : pool.getTaskPoolStruct()); - } - - /** - * Sets the state of @task to @state. - * - * The @task must have a lock associated with it using - * gst_task_set_lock() when going to GST_TASK_STARTED or GST_TASK_PAUSED or - * this function will return %FALSE. - * - * MT safe. - * - * Params: - * state = the new task state - * - * Returns: %TRUE if the state could be changed. - */ - public bool setState(GstTaskState state) - { - return gst_task_set_state(gstTask, state) != 0; - } - - /** - * Starts @task. The @task must have a lock associated with it using - * gst_task_set_lock() or this function will return %FALSE. - * - * Returns: %TRUE if the task could be started. - * - * MT safe. - */ - public bool start() - { - return gst_task_start(gstTask) != 0; - } - - /** - * Stops @task. This method merely schedules the task to stop and - * will not wait for the task to have completely stopped. Use - * gst_task_join() to stop and wait for completion. - * - * Returns: %TRUE if the task could be stopped. - * - * MT safe. - */ - public bool stop() - { - return gst_task_stop(gstTask) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/TaskPool.d b/generated/gstreamer/gstreamer/TaskPool.d deleted file mode 100644 index b6a443bf6..000000000 --- a/generated/gstreamer/gstreamer/TaskPool.d +++ /dev/null @@ -1,165 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TaskPool; - -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * This object provides an abstraction for creating threads. The default - * implementation uses a regular GThreadPool to start tasks. - * - * Subclasses can be made to create custom threads. - */ -public class TaskPool : ObjectGst -{ - /** the main Gtk struct */ - protected GstTaskPool* gstTaskPool; - - /** Get the main Gtk struct */ - public GstTaskPool* getTaskPoolStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTaskPool; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstTaskPool; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTaskPool* gstTaskPool, bool ownedRef = false) - { - this.gstTaskPool = gstTaskPool; - super(cast(GstObject*)gstTaskPool, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_task_pool_get_type(); - } - - /** - * Create a new default task pool. The default task pool will use a regular - * GThreadPool for threads. - * - * Returns: a new #GstTaskPool. gst_object_unref() after usage. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gst_task_pool_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstTaskPool*) __p, true); - } - - /** - * Wait for all tasks to be stopped. This is mainly used internally - * to ensure proper cleanup of internal data structures in test suites. - * - * MT safe. - */ - public void cleanup() - { - gst_task_pool_cleanup(gstTaskPool); - } - - /** - * Join a task and/or return it to the pool. @id is the id obtained from - * gst_task_pool_push(). - * - * Params: - * id = the id - */ - public void join(void* id) - { - gst_task_pool_join(gstTaskPool, id); - } - - /** - * Prepare the taskpool for accepting gst_task_pool_push() operations. - * - * MT safe. - * - * Throws: GException on failure. - */ - public void prepare() - { - GError* err = null; - - gst_task_pool_prepare(gstTaskPool, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - } - - /** - * Start the execution of a new thread from @pool. - * - * Params: - * func = the function to call - * userData = data to pass to @func - * - * Returns: a pointer that should be used - * for the gst_task_pool_join function. This pointer can be %NULL, you - * must check @error to detect errors. - * - * Throws: GException on failure. - */ - public void* push(GstTaskPoolFunction func, void* userData) - { - GError* err = null; - - auto __p = gst_task_pool_push(gstTaskPool, func, userData, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gstreamer/gstreamer/Toc.d b/generated/gstreamer/gstreamer/Toc.d deleted file mode 100644 index 9d0c705f9..000000000 --- a/generated/gstreamer/gstreamer/Toc.d +++ /dev/null @@ -1,245 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Toc; - -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import gobject.ObjectG; -private import gstreamer.TagList; -private import gstreamer.TocEntry; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * #GstToc functions are used to create/free #GstToc and #GstTocEntry structures. - * Also they are used to convert #GstToc into #GstStructure and vice versa. - * - * #GstToc lets you to inform other elements in pipeline or application that playing - * source has some kind of table of contents (TOC). These may be chapters, editions, - * angles or other types. For example: DVD chapters, Matroska chapters or cue sheet - * TOC. Such TOC will be useful for applications to display instead of just a - * playlist. - * - * Using TOC is very easy. Firstly, create #GstToc structure which represents root - * contents of the source. You can also attach TOC-specific tags to it. Then fill - * it with #GstTocEntry entries by appending them to the #GstToc using - * gst_toc_append_entry(), and appending subentries to a #GstTocEntry using - * gst_toc_entry_append_sub_entry(). - * - * Note that root level of the TOC can contain only either editions or chapters. You - * should not mix them together at the same level. Otherwise you will get serialization - * /deserialization errors. Make sure that no one of the entries has negative start and - * stop values. - * - * Use gst_event_new_toc() to create a new TOC #GstEvent, and gst_event_parse_toc() to - * parse received TOC event. Use gst_event_new_toc_select() to create a new TOC select #GstEvent, - * and gst_event_parse_toc_select() to parse received TOC select event. The same rule for - * the #GstMessage: gst_message_new_toc() to create new TOC #GstMessage, and - * gst_message_parse_toc() to parse received TOC message. - * - * TOCs can have global scope or current scope. Global scope TOCs contain - * all entries that can possibly be selected using a toc select event, and - * are what an application is usually interested in. TOCs with current scope - * only contain the parts of the TOC relevant to the currently selected/playing - * stream; the current scope TOC is used by downstream elements such as muxers - * to write correct TOC entries when transcoding files, for example. When - * playing a DVD, the global TOC would contain a hierarchy of all titles, - * chapters and angles, for example, while the current TOC would only contain - * the chapters for the currently playing title if playback of a specific - * title was requested. - * - * Applications and plugins should not rely on TOCs having a certain kind of - * structure, but should allow for different alternatives. For example, a - * simple CUE sheet embedded in a file may be presented as a flat list of - * track entries, or could have a top-level edition node (or some other - * alternative type entry) with track entries underneath that node; or even - * multiple top-level edition nodes (or some other alternative type entries) - * each with track entries underneath, in case the source file has extracted - * a track listing from different sources). - */ -public class Toc -{ - /** the main Gtk struct */ - protected GstToc* gstToc; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstToc* getTocStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstToc; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstToc; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstToc* gstToc, bool ownedRef = false) - { - this.gstToc = gstToc; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_toc_get_type(); - } - - /** - * Create a new #GstToc structure. - * - * Params: - * scope_ = scope of this TOC - * - * Returns: newly allocated #GstToc structure, free it - * with gst_toc_unref(). - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstTocScope scope_) - { - auto __p = gst_toc_new(scope_); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstToc*) __p); - } - - /** - * Appends the #GstTocEntry @entry to @toc. - * - * Params: - * entry = A #GstTocEntry - */ - public void appendEntry(TocEntry entry) - { - gst_toc_append_entry(gstToc, (entry is null) ? null : entry.getTocEntryStruct()); - } - - /** */ - public void dump() - { - gst_toc_dump(gstToc); - } - - /** - * Find #GstTocEntry with given @uid in the @toc. - * - * Params: - * uid = UID to find #GstTocEntry with. - * - * Returns: #GstTocEntry with specified - * @uid from the @toc, or %NULL if not found. - */ - public TocEntry findEntry(string uid) - { - auto __p = gst_toc_find_entry(gstToc, Str.toStringz(uid)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TocEntry)(cast(GstTocEntry*) __p); - } - - /** - * Gets the list of #GstTocEntry of @toc. - * - * Returns: A #GList of #GstTocEntry for @entry - */ - public ListG getEntries() - { - auto __p = gst_toc_get_entries(gstToc); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Returns: scope of @toc - */ - public GstTocScope getScope() - { - return gst_toc_get_scope(gstToc); - } - - /** - * Gets the tags for @toc. - * - * Returns: A #GstTagList for @entry - */ - public TagList getTags() - { - auto __p = gst_toc_get_tags(gstToc); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TagList)(cast(GstTagList*) __p); - } - - /** - * Merge @tags into the existing tags of @toc using @mode. - * - * Params: - * tags = A #GstTagList or %NULL - * mode = A #GstTagMergeMode - */ - public void mergeTags(TagList tags, GstTagMergeMode mode) - { - gst_toc_merge_tags(gstToc, (tags is null) ? null : tags.getTagListStruct(), mode); - } - - /** - * Set a #GstTagList with tags for the complete @toc. - * - * Params: - * tags = A #GstTagList or %NULL - */ - public void setTags(TagList tags) - { - gst_toc_set_tags(gstToc, (tags is null) ? null : tags.getTagListStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/TocEntry.d b/generated/gstreamer/gstreamer/TocEntry.d deleted file mode 100644 index fa424d9ae..000000000 --- a/generated/gstreamer/gstreamer/TocEntry.d +++ /dev/null @@ -1,299 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TocEntry; - -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.TagList; -private import gstreamer.Toc; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public class TocEntry -{ - /** the main Gtk struct */ - protected GstTocEntry* gstTocEntry; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstTocEntry* getTocEntryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTocEntry; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstTocEntry; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTocEntry* gstTocEntry, bool ownedRef = false) - { - this.gstTocEntry = gstTocEntry; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_toc_entry_get_type(); - } - - /** - * Create new #GstTocEntry structure. - * - * Params: - * type = entry type. - * uid = unique ID (UID) in the whole TOC. - * - * Returns: newly allocated #GstTocEntry structure, free it with gst_toc_entry_unref(). - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GstTocEntryType type, string uid) - { - auto __p = gst_toc_entry_new(type, Str.toStringz(uid)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstTocEntry*) __p); - } - - /** - * Appends the #GstTocEntry @subentry to @entry. - * - * Params: - * subentry = A #GstTocEntry - */ - public void appendSubEntry(TocEntry subentry) - { - gst_toc_entry_append_sub_entry(gstTocEntry, (subentry is null) ? null : subentry.getTocEntryStruct()); - } - - /** - * Returns: @entry's entry type - */ - public GstTocEntryType getEntryType() - { - return gst_toc_entry_get_entry_type(gstTocEntry); - } - - /** - * Get @loop_type and @repeat_count values from the @entry and write them into - * appropriate storages. Loops are e.g. used by sampled instruments. GStreamer - * is not automatically applying the loop. The application can process this - * meta data and use it e.g. to send a seek-event to loop a section. - * - * Params: - * loopType = the storage for the loop_type - * value, leave %NULL if not need. - * repeatCount = the storage for the repeat_count - * value, leave %NULL if not need. - * - * Returns: %TRUE if all non-%NULL storage pointers were filled with appropriate - * values, %FALSE otherwise. - * - * Since: 1.4 - */ - public bool getLoop(out GstTocLoopType loopType, out int repeatCount) - { - return gst_toc_entry_get_loop(gstTocEntry, &loopType, &repeatCount) != 0; - } - - /** - * Gets the parent #GstTocEntry of @entry. - * - * Returns: The parent #GstTocEntry of @entry - */ - public TocEntry getParent() - { - auto __p = gst_toc_entry_get_parent(gstTocEntry); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TocEntry)(cast(GstTocEntry*) __p); - } - - /** - * Get @start and @stop values from the @entry and write them into appropriate - * storages. - * - * Params: - * start = the storage for the start value, leave - * %NULL if not need. - * stop = the storage for the stop value, leave - * %NULL if not need. - * - * Returns: %TRUE if all non-%NULL storage pointers were filled with appropriate - * values, %FALSE otherwise. - */ - public bool getStartStopTimes(out long start, out long stop) - { - return gst_toc_entry_get_start_stop_times(gstTocEntry, &start, &stop) != 0; - } - - /** - * Gets the sub-entries of @entry. - * - * Returns: A #GList of #GstTocEntry of @entry - */ - public ListG getSubEntries() - { - auto __p = gst_toc_entry_get_sub_entries(gstTocEntry); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Gets the tags for @entry. - * - * Returns: A #GstTagList for @entry - */ - public TagList getTags() - { - auto __p = gst_toc_entry_get_tags(gstTocEntry); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TagList)(cast(GstTagList*) __p); - } - - /** - * Gets the parent #GstToc of @entry. - * - * Returns: The parent #GstToc of @entry - */ - public Toc getToc() - { - auto __p = gst_toc_entry_get_toc(gstTocEntry); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Toc)(cast(GstToc*) __p); - } - - /** - * Gets the UID of @entry. - * - * Returns: The UID of @entry - */ - public string getUid() - { - return Str.toString(gst_toc_entry_get_uid(gstTocEntry)); - } - - /** - * Returns: %TRUE if @entry's type is an alternative type, otherwise %FALSE - */ - public bool isAlternative() - { - return gst_toc_entry_is_alternative(gstTocEntry) != 0; - } - - /** - * Returns: %TRUE if @entry's type is a sequence type, otherwise %FALSE - */ - public bool isSequence() - { - return gst_toc_entry_is_sequence(gstTocEntry) != 0; - } - - /** - * Merge @tags into the existing tags of @entry using @mode. - * - * Params: - * tags = A #GstTagList or %NULL - * mode = A #GstTagMergeMode - */ - public void mergeTags(TagList tags, GstTagMergeMode mode) - { - gst_toc_entry_merge_tags(gstTocEntry, (tags is null) ? null : tags.getTagListStruct(), mode); - } - - /** - * Set @loop_type and @repeat_count values for the @entry. - * - * Params: - * loopType = loop_type value to set. - * repeatCount = repeat_count value to set. - * - * Since: 1.4 - */ - public void setLoop(GstTocLoopType loopType, int repeatCount) - { - gst_toc_entry_set_loop(gstTocEntry, loopType, repeatCount); - } - - /** - * Set @start and @stop values for the @entry. - * - * Params: - * start = start value to set. - * stop = stop value to set. - */ - public void setStartStopTimes(long start, long stop) - { - gst_toc_entry_set_start_stop_times(gstTocEntry, start, stop); - } - - /** - * Set a #GstTagList with tags for the complete @entry. - * - * Params: - * tags = A #GstTagList or %NULL - */ - public void setTags(TagList tags) - { - gst_toc_entry_set_tags(gstTocEntry, (tags is null) ? null : tags.getTagListStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/TocSetterIF.d b/generated/gstreamer/gstreamer/TocSetterIF.d deleted file mode 100644 index 5d86369f0..000000000 --- a/generated/gstreamer/gstreamer/TocSetterIF.d +++ /dev/null @@ -1,86 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TocSetterIF; - -private import gobject.ObjectG; -private import gstreamer.Toc; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Element interface that allows setting of the TOC. - * - * Elements that support some kind of chapters or editions (or tracks like in - * the FLAC cue sheet) will implement this interface. - * - * If you just want to retrieve the TOC in your application then all you - * need to do is watch for TOC messages on your pipeline's bus (or you can - * perform TOC query). This interface is only for setting TOC data, not for - * extracting it. To set TOC from the application, find proper tocsetter element - * and set TOC using gst_toc_setter_set_toc(). - * - * Elements implementing the #GstTocSetter interface can extend existing TOC - * by getting extend UID for that (you can use gst_toc_find_entry() to retrieve it) - * with any TOC entries received from downstream. - */ -public interface TocSetterIF{ - /** Get the main Gtk struct */ - public GstTocSetter* getTocSetterStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gst_toc_setter_get_type(); - } - - /** - * Return current TOC the setter uses. The TOC should not be - * modified without making it writable first. - * - * Returns: TOC set, or %NULL. Unref with - * gst_toc_unref() when no longer needed - */ - public Toc getToc(); - - /** - * Reset the internal TOC. Elements should call this from within the - * state-change handler. - */ - public void reset(); - - /** - * Set the given TOC on the setter. Previously set TOC will be - * unreffed before setting a new one. - * - * Params: - * toc = a #GstToc to set. - */ - public void setToc(Toc toc); -} diff --git a/generated/gstreamer/gstreamer/TocSetterT.d b/generated/gstreamer/gstreamer/TocSetterT.d deleted file mode 100644 index 45d97ae6e..000000000 --- a/generated/gstreamer/gstreamer/TocSetterT.d +++ /dev/null @@ -1,99 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TocSetterT; - -public import gobject.ObjectG; -public import gstreamer.Toc; -public import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Element interface that allows setting of the TOC. - * - * Elements that support some kind of chapters or editions (or tracks like in - * the FLAC cue sheet) will implement this interface. - * - * If you just want to retrieve the TOC in your application then all you - * need to do is watch for TOC messages on your pipeline's bus (or you can - * perform TOC query). This interface is only for setting TOC data, not for - * extracting it. To set TOC from the application, find proper tocsetter element - * and set TOC using gst_toc_setter_set_toc(). - * - * Elements implementing the #GstTocSetter interface can extend existing TOC - * by getting extend UID for that (you can use gst_toc_find_entry() to retrieve it) - * with any TOC entries received from downstream. - */ -public template TocSetterT(TStruct) -{ - /** Get the main Gtk struct */ - public GstTocSetter* getTocSetterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GstTocSetter*)getStruct(); - } - - - /** - * Return current TOC the setter uses. The TOC should not be - * modified without making it writable first. - * - * Returns: TOC set, or %NULL. Unref with - * gst_toc_unref() when no longer needed - */ - public Toc getToc() - { - auto __p = gst_toc_setter_get_toc(getTocSetterStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Toc)(cast(GstToc*) __p, true); - } - - /** - * Reset the internal TOC. Elements should call this from within the - * state-change handler. - */ - public void reset() - { - gst_toc_setter_reset(getTocSetterStruct()); - } - - /** - * Set the given TOC on the setter. Previously set TOC will be - * unreffed before setting a new one. - * - * Params: - * toc = a #GstToc to set. - */ - public void setToc(Toc toc) - { - gst_toc_setter_set_toc(getTocSetterStruct(), (toc is null) ? null : toc.getTocStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/Tracer.d b/generated/gstreamer/gstreamer/Tracer.d deleted file mode 100644 index 4b0c774bb..000000000 --- a/generated/gstreamer/gstreamer/Tracer.d +++ /dev/null @@ -1,92 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Tracer; - -private import glib.Str; -private import gstreamer.ObjectGst; -private import gstreamer.Plugin; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Tracing modules will subclass #GstTracer and register through - * gst_tracer_register(). Modules can attach to various hook-types - see - * gst_tracing_register_hook(). When invoked they receive hook specific - * contextual data, which they must not modify. - * - * Since: 1.8 - */ -public class Tracer : ObjectGst -{ - /** the main Gtk struct */ - protected GstTracer* gstTracer; - - /** Get the main Gtk struct */ - public GstTracer* getTracerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTracer; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstTracer; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTracer* gstTracer, bool ownedRef = false) - { - this.gstTracer = gstTracer; - super(cast(GstObject*)gstTracer, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_tracer_get_type(); - } - - /** - * Create a new tracer-factory capable of instantiating objects of the - * @type and add the factory to @plugin. - * - * Params: - * plugin = A #GstPlugin, or %NULL for a static typefind function - * name = The name for registering - * type = GType of tracer to register - * - * Returns: %TRUE, if the registering succeeded, %FALSE on error - */ - public static bool register(Plugin plugin, string name, GType type) - { - return gst_tracer_register((plugin is null) ? null : plugin.getPluginStruct(), Str.toStringz(name), type) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/TracerFactory.d b/generated/gstreamer/gstreamer/TracerFactory.d deleted file mode 100644 index 3d6bc1e9c..000000000 --- a/generated/gstreamer/gstreamer/TracerFactory.d +++ /dev/null @@ -1,113 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TracerFactory; - -private import glib.ListG; -private import gstreamer.PluginFeature; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Use gst_tracer_factory_get_list() to get a list of tracer factories known to - * GStreamer. - * - * Since: 1.8 - */ -public class TracerFactory : PluginFeature -{ - /** the main Gtk struct */ - protected GstTracerFactory* gstTracerFactory; - - /** Get the main Gtk struct */ - public GstTracerFactory* getTracerFactoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTracerFactory; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstTracerFactory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTracerFactory* gstTracerFactory, bool ownedRef = false) - { - this.gstTracerFactory = gstTracerFactory; - super(cast(GstPluginFeature*)gstTracerFactory, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_tracer_factory_get_type(); - } - - /** - * Gets the list of all registered tracer factories. You must free the - * list using gst_plugin_feature_list_free(). - * - * The returned factories are sorted by factory name. - * - * Free-function: gst_plugin_feature_list_free - * - * Returns: the list of all - * registered #GstTracerFactory. - * - * Since: 1.8 - */ - public static ListG getList() - { - auto __p = gst_tracer_factory_get_list(); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Get the #GType for elements managed by this factory. The type can - * only be retrieved if the element factory is loaded, which can be - * assured with gst_plugin_feature_load(). - * - * Returns: the #GType for tracers managed by this factory or 0 if - * the factory is not loaded. - * - * Since: 1.14 - */ - public GType getTracerType() - { - return gst_tracer_factory_get_tracer_type(gstTracerFactory); - } -} diff --git a/generated/gstreamer/gstreamer/TracerRecord.d b/generated/gstreamer/gstreamer/TracerRecord.d deleted file mode 100644 index b7cdfb6d8..000000000 --- a/generated/gstreamer/gstreamer/TracerRecord.d +++ /dev/null @@ -1,75 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TracerRecord; - -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gstreamer.ObjectGst; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * Tracing modules will create instances of this class to announce the data they - * will log and create a log formatter. - * - * Since: 1.8 - */ -public class TracerRecord : ObjectGst -{ - /** the main Gtk struct */ - protected GstTracerRecord* gstTracerRecord; - - /** Get the main Gtk struct */ - public GstTracerRecord* getTracerRecordStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTracerRecord; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstTracerRecord; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTracerRecord* gstTracerRecord, bool ownedRef = false) - { - this.gstTracerRecord = gstTracerRecord; - super(cast(GstObject*)gstTracerRecord, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_tracer_record_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/TypeFind.d b/generated/gstreamer/gstreamer/TypeFind.d deleted file mode 100644 index b4c98358f..000000000 --- a/generated/gstreamer/gstreamer/TypeFind.d +++ /dev/null @@ -1,144 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TypeFind; - -private import glib.Str; -private import gstreamer.Caps; -private import gstreamer.Plugin; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The following functions allow you to detect the media type of an unknown - * stream. - */ -public class TypeFind -{ - /** the main Gtk struct */ - protected GstTypeFind* gstTypeFind; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstTypeFind* getTypeFindStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTypeFind; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstTypeFind; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTypeFind* gstTypeFind, bool ownedRef = false) - { - this.gstTypeFind = gstTypeFind; - this.ownedRef = ownedRef; - } - - /** - * Returns the size bytes of the stream to identify beginning at offset. If - * offset is a positive number, the offset is relative to the beginning of the - * stream, if offset is a negative number the offset is relative to the end of - * the stream. The returned memory is valid until the typefinding function - * returns and must not be freed. - * Params: - * offset = The offset - * size = The number of bytes to return - * Returns: the requested data, or NULL if that data is not available. - */ - public ubyte[] peek(long offset, uint size) - { - ubyte* buff = gst_type_find_peek(gstTypeFind, offset, size); - - return buff[0 .. size]; - } - - /** - */ - - /** - * Get the length of the data stream. - * - * Returns: The length of the data stream, or 0 if it is not available. - */ - public ulong getLength() - { - return gst_type_find_get_length(gstTypeFind); - } - - /** - * If a #GstTypeFindFunction calls this function it suggests the caps with the - * given probability. A #GstTypeFindFunction may supply different suggestions - * in one call. - * It is up to the caller of the #GstTypeFindFunction to interpret these values. - * - * Params: - * probability = The probability in percent that the suggestion is right - * caps = The fixed #GstCaps to suggest - */ - public void suggest(uint probability, Caps caps) - { - gst_type_find_suggest(gstTypeFind, probability, (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * Registers a new typefind function to be used for typefinding. After - * registering this function will be available for typefinding. - * This function is typically called during an element's plugin initialization. - * - * Params: - * plugin = A #GstPlugin, or %NULL for a static typefind function - * name = The name for registering - * rank = The rank (or importance) of this typefind function - * func = The #GstTypeFindFunction to use - * extensions = Optional comma-separated list of extensions - * that could belong to this type - * possibleCaps = Optionally the caps that could be returned when typefinding - * succeeds - * data = Optional user data. This user data must be available until the plugin - * is unloaded. - * dataNotify = a #GDestroyNotify that will be called on @data when the plugin - * is unloaded. - * - * Returns: %TRUE on success, %FALSE otherwise - */ - public static bool register(Plugin plugin, string name, uint rank, GstTypeFindFunction func, string extensions, Caps possibleCaps, void* data, GDestroyNotify dataNotify) - { - return gst_type_find_register((plugin is null) ? null : plugin.getPluginStruct(), Str.toStringz(name), rank, func, Str.toStringz(extensions), (possibleCaps is null) ? null : possibleCaps.getCapsStruct(), data, dataNotify) != 0; - } - - /** */ - public static GType typeFindGetType() - { - return gst_type_find_get_type(); - } -} diff --git a/generated/gstreamer/gstreamer/TypeFindFactory.d b/generated/gstreamer/gstreamer/TypeFindFactory.d deleted file mode 100644 index 58ab331b5..000000000 --- a/generated/gstreamer/gstreamer/TypeFindFactory.d +++ /dev/null @@ -1,201 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.TypeFindFactory; - -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.Caps; -private import gstreamer.PluginFeature; -private import gstreamer.TypeFind; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * These functions allow querying information about registered typefind - * functions. How to create and register these functions is described in - * the section - * "Writing typefind functions". - * - * The following example shows how to write a very simple typefinder that - * identifies the given data. You can get quite a bit more complicated than - * that though. - * |[ - * typedef struct { - * guint8 *data; - * guint size; - * guint probability; - * GstCaps *data; - * } MyTypeFind; - * static void - * my_peek (gpointer data, gint64 offset, guint size) - * { - * MyTypeFind *find = (MyTypeFind *) data; - * if (offset >= 0 && offset + size <= find->size) { - * return find->data + offset; - * } - * return NULL; - * } - * static void - * my_suggest (gpointer data, guint probability, GstCaps *caps) - * { - * MyTypeFind *find = (MyTypeFind *) data; - * if (probability > find->probability) { - * find->probability = probability; - * gst_caps_replace (&find->caps, caps); - * } - * } - * static GstCaps * - * find_type (guint8 *data, guint size) - * { - * GList *walk, *type_list; - * MyTypeFind find = {data, size, 0, NULL}; - * GstTypeFind gst_find = {my_peek, my_suggest, &find, }; - * walk = type_list = gst_type_find_factory_get_list (); - * while (walk) { - * GstTypeFindFactory *factory = GST_TYPE_FIND_FACTORY (walk->data); - * walk = g_list_next (walk) - * gst_type_find_factory_call_function (factory, &gst_find); - * } - * g_list_free (type_list); - * return find.caps; - * }; - * ]| - */ -public class TypeFindFactory : PluginFeature -{ - /** the main Gtk struct */ - protected GstTypeFindFactory* gstTypeFindFactory; - - /** Get the main Gtk struct */ - public GstTypeFindFactory* getTypeFindFactoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstTypeFindFactory; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gstTypeFindFactory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstTypeFindFactory* gstTypeFindFactory, bool ownedRef = false) - { - this.gstTypeFindFactory = gstTypeFindFactory; - super(cast(GstPluginFeature*)gstTypeFindFactory, ownedRef); - } - - - /** */ - public static GType getType() - { - return gst_type_find_factory_get_type(); - } - - /** - * Gets the list of all registered typefind factories. You must free the - * list using gst_plugin_feature_list_free(). - * - * The returned factories are sorted by highest rank first, and then by - * factory name. - * - * Free-function: gst_plugin_feature_list_free - * - * Returns: the list of all - * registered #GstTypeFindFactory. - */ - public static ListG getList() - { - auto __p = gst_type_find_factory_get_list(); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Calls the #GstTypeFindFunction associated with this factory. - * - * Params: - * find = a properly setup #GstTypeFind entry. The get_data - * and suggest_type members must be set. - */ - public void callFunction(TypeFind find) - { - gst_type_find_factory_call_function(gstTypeFindFactory, (find is null) ? null : find.getTypeFindStruct()); - } - - /** - * Gets the #GstCaps associated with a typefind factory. - * - * Returns: the #GstCaps associated with this factory - */ - public Caps getCaps() - { - auto __p = gst_type_find_factory_get_caps(gstTypeFindFactory); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p); - } - - /** - * Gets the extensions associated with a #GstTypeFindFactory. The returned - * array should not be changed. If you need to change stuff in it, you should - * copy it using g_strdupv(). This function may return %NULL to indicate - * a 0-length list. - * - * Returns: a %NULL-terminated array of extensions associated with this factory - */ - public string[] getExtensions() - { - return Str.toStringArray(gst_type_find_factory_get_extensions(gstTypeFindFactory)); - } - - /** - * Check whether the factory has a typefind function. Typefind factories - * without typefind functions are a last-effort fallback mechanism to - * e.g. assume a certain media type based on the file extension. - * - * Returns: %TRUE if the factory has a typefind functions set, otherwise %FALSE - */ - public bool hasFunction() - { - return gst_type_find_factory_has_function(gstTypeFindFactory) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/URIHandlerIF.d b/generated/gstreamer/gstreamer/URIHandlerIF.d deleted file mode 100644 index ef4120cdb..000000000 --- a/generated/gstreamer/gstreamer/URIHandlerIF.d +++ /dev/null @@ -1,99 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.URIHandlerIF; - -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The #GstURIHandler is an interface that is implemented by Source and Sink - * #GstElement to unify handling of URI. - * - * An application can use the following functions to quickly get an element - * that handles the given URI for reading or writing - * (gst_element_make_from_uri()). - * - * Source and Sink plugins should implement this interface when possible. - */ -public interface URIHandlerIF{ - /** Get the main Gtk struct */ - public GstURIHandler* getURIHandlerStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gst_uri_handler_get_type(); - } - - /** - * Gets the list of protocols supported by @handler. This list may not be - * modified. - * - * Returns: the - * supported protocols. Returns %NULL if the @handler isn't - * implemented properly, or the @handler doesn't support any - * protocols. - */ - public string[] getProtocols(); - - /** - * Gets the currently handled URI. - * - * Returns: the URI currently handled by - * the @handler. Returns %NULL if there are no URI currently - * handled. The returned string must be freed with g_free() when no - * longer needed. - */ - public string getUri(); - - /** - * Gets the type of the given URI handler - * - * Returns: the #GstURIType of the URI handler. - * Returns #GST_URI_UNKNOWN if the @handler isn't implemented correctly. - */ - public GstURIType getUriType(); - - /** - * Tries to set the URI of the given handler. - * - * Params: - * uri = URI to set - * - * Returns: %TRUE if the URI was set successfully, else %FALSE. - * - * Throws: GException on failure. - */ - public bool setUri(string uri); -} diff --git a/generated/gstreamer/gstreamer/URIHandlerT.d b/generated/gstreamer/gstreamer/URIHandlerT.d deleted file mode 100644 index 614e9ef09..000000000 --- a/generated/gstreamer/gstreamer/URIHandlerT.d +++ /dev/null @@ -1,120 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.URIHandlerT; - -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.c.functions; -public import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * The #GstURIHandler is an interface that is implemented by Source and Sink - * #GstElement to unify handling of URI. - * - * An application can use the following functions to quickly get an element - * that handles the given URI for reading or writing - * (gst_element_make_from_uri()). - * - * Source and Sink plugins should implement this interface when possible. - */ -public template URIHandlerT(TStruct) -{ - /** Get the main Gtk struct */ - public GstURIHandler* getURIHandlerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GstURIHandler*)getStruct(); - } - - - /** - * Gets the list of protocols supported by @handler. This list may not be - * modified. - * - * Returns: the - * supported protocols. Returns %NULL if the @handler isn't - * implemented properly, or the @handler doesn't support any - * protocols. - */ - public string[] getProtocols() - { - return Str.toStringArray(gst_uri_handler_get_protocols(getURIHandlerStruct())); - } - - /** - * Gets the currently handled URI. - * - * Returns: the URI currently handled by - * the @handler. Returns %NULL if there are no URI currently - * handled. The returned string must be freed with g_free() when no - * longer needed. - */ - public string getUri() - { - auto retStr = gst_uri_handler_get_uri(getURIHandlerStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the type of the given URI handler - * - * Returns: the #GstURIType of the URI handler. - * Returns #GST_URI_UNKNOWN if the @handler isn't implemented correctly. - */ - public GstURIType getUriType() - { - return gst_uri_handler_get_uri_type(getURIHandlerStruct()); - } - - /** - * Tries to set the URI of the given handler. - * - * Params: - * uri = URI to set - * - * Returns: %TRUE if the URI was set successfully, else %FALSE. - * - * Throws: GException on failure. - */ - public bool setUri(string uri) - { - GError* err = null; - - auto __p = gst_uri_handler_set_uri(getURIHandlerStruct(), Str.toStringz(uri), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gstreamer/gstreamer/Uri.d b/generated/gstreamer/gstreamer/Uri.d deleted file mode 100644 index 1923e864d..000000000 --- a/generated/gstreamer/gstreamer/Uri.d +++ /dev/null @@ -1,999 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Uri; - -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.HashTable; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A #GstUri object can be used to parse and split a URI string into its - * constituent parts. Two #GstUri objects can be joined to make a new #GstUri - * using the algorithm described in RFC3986. - */ -public class Uri -{ - /** the main Gtk struct */ - protected GstUri* gstUri; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstUri* getUriStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstUri; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstUri; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstUri* gstUri, bool ownedRef = false) - { - this.gstUri = gstUri; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_uri_get_type(); - } - - /** - * Creates a new #GstUri object with the given URI parts. The path and query - * strings will be broken down into their elements. All strings should not be - * escaped except where indicated. - * - * Params: - * scheme = The scheme for the new URI. - * userinfo = The user-info for the new URI. - * host = The host name for the new URI. - * port = The port number for the new URI or %GST_URI_NO_PORT. - * path = The path for the new URI with '/' separating path - * elements. - * query = The query string for the new URI with '&' separating - * query elements. Elements containing '&' characters - * should encode them as "%26". - * fragment = The fragment name for the new URI. - * - * Returns: A new #GstUri object. - * - * Since: 1.6 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string scheme, string userinfo, string host, uint port, string path, string query, string fragment) - { - auto __p = gst_uri_new(Str.toStringz(scheme), Str.toStringz(userinfo), Str.toStringz(host), port, Str.toStringz(path), Str.toStringz(query), Str.toStringz(fragment)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GstUri*) __p); - } - - /** - * Append a path onto the end of the path in the URI. The path is not - * normalized, call #gst_uri_normalize() to normalize the path. - * - * Params: - * relativePath = Relative path to append to the end of the current path. - * - * Returns: %TRUE if the path was appended successfully. - * - * Since: 1.6 - */ - public bool appendPath(string relativePath) - { - return gst_uri_append_path(gstUri, Str.toStringz(relativePath)) != 0; - } - - /** - * Append a single path segment onto the end of the URI path. - * - * Params: - * pathSegment = The path segment string to append to the URI path. - * - * Returns: %TRUE if the path was appended successfully. - * - * Since: 1.6 - */ - public bool appendPathSegment(string pathSegment) - { - return gst_uri_append_path_segment(gstUri, Str.toStringz(pathSegment)) != 0; - } - - /** - * Compares two #GstUri objects to see if they represent the same normalized - * URI. - * - * Params: - * second = Second #GstUri to compare. - * - * Returns: %TRUE if the normalized versions of the two URI's would be equal. - * - * Since: 1.6 - */ - public bool equal(Uri second) - { - return gst_uri_equal(gstUri, (second is null) ? null : second.getUriStruct()) != 0; - } - - /** - * Like gst_uri_from_string() but also joins with a base URI. - * - * Params: - * uri = The URI string to parse. - * - * Returns: A new #GstUri object. - * - * Since: 1.6 - */ - public Uri fromStringWithBase(string uri) - { - auto __p = gst_uri_from_string_with_base(gstUri, Str.toStringz(uri)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Uri)(cast(GstUri*) __p, true); - } - - /** - * Get the fragment name from the URI or %NULL if it doesn't exist. - * If @uri is %NULL then returns %NULL. - * - * Returns: The host name from the #GstUri object or %NULL. - * - * Since: 1.6 - */ - public string getFragment() - { - return Str.toString(gst_uri_get_fragment(gstUri)); - } - - /** - * Get the host name from the URI or %NULL if it doesn't exist. - * If @uri is %NULL then returns %NULL. - * - * Returns: The host name from the #GstUri object or %NULL. - * - * Since: 1.6 - */ - public string getHost() - { - return Str.toString(gst_uri_get_host(gstUri)); - } - - /** - * Get the media fragment table from the URI, as defined by "Media Fragments URI 1.0". - * Hash table returned by this API is a list of "key-value" pairs, and the each - * pair is generated by splitting "URI fragment" per "&" sub-delims, then "key" - * and "value" are split by "=" sub-delims. The "key" returned by this API may - * be undefined keyword by standard. - * A value may be %NULL to indicate that the key should appear in the fragment - * string in the URI, but does not have a value. Free the returned #GHashTable - * with #g_hash_table_unref() when it is no longer required. - * Modifying this hash table does not affect the fragment in the URI. - * - * See more about Media Fragments URI 1.0 (W3C) at https://www.w3.org/TR/media-frags/ - * - * Returns: The - * fragment hash table from the URI. - * - * Since: 1.12 - */ - public HashTable getMediaFragmentTable() - { - auto __p = gst_uri_get_media_fragment_table(gstUri); - - if(__p is null) - { - return null; - } - - return new HashTable(cast(GHashTable*) __p, true); - } - - /** - * Extract the path string from the URI object. - * - * Returns: The path from the URI. Once finished - * with the string should be g_free()'d. - * - * Since: 1.6 - */ - public string getPath() - { - auto retStr = gst_uri_get_path(gstUri); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Get a list of path segments from the URI. - * - * Returns: A #GList of path segment - * strings or %NULL if no path segments are available. Free the list - * when no longer needed with g_list_free_full(list, g_free). - * - * Since: 1.6 - */ - public ListG getPathSegments() - { - auto __p = gst_uri_get_path_segments(gstUri); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Extract the path string from the URI object as a percent encoded URI path. - * - * Returns: The path from the URI. Once finished - * with the string should be g_free()'d. - * - * Since: 1.6 - */ - public string getPathString() - { - auto retStr = gst_uri_get_path_string(gstUri); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Get the port number from the URI or %GST_URI_NO_PORT if it doesn't exist. - * If @uri is %NULL then returns %GST_URI_NO_PORT. - * - * Returns: The port number from the #GstUri object or %GST_URI_NO_PORT. - * - * Since: 1.6 - */ - public uint getPort() - { - return gst_uri_get_port(gstUri); - } - - /** - * Get a list of the query keys from the URI. - * - * Returns: A list of keys from - * the URI query. Free the list with g_list_free(). - * - * Since: 1.6 - */ - public ListG getQueryKeys() - { - auto __p = gst_uri_get_query_keys(gstUri); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Get a percent encoded URI query string from the @uri. - * - * Returns: A percent encoded query string. Use - * g_free() when no longer needed. - * - * Since: 1.6 - */ - public string getQueryString() - { - auto retStr = gst_uri_get_query_string(gstUri); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Get the query table from the URI. Keys and values in the table are freed - * with g_free when they are deleted. A value may be %NULL to indicate that - * the key should appear in the query string in the URI, but does not have a - * value. Free the returned #GHashTable with #g_hash_table_unref() when it is - * no longer required. Modifying this hash table will modify the query in the - * URI. - * - * Returns: The query - * hash table from the URI. - * - * Since: 1.6 - */ - public HashTable getQueryTable() - { - auto __p = gst_uri_get_query_table(gstUri); - - if(__p is null) - { - return null; - } - - return new HashTable(cast(GHashTable*) __p, true); - } - - /** - * Get the value associated with the @query_key key. Will return %NULL if the - * key has no value or if the key does not exist in the URI query table. Because - * %NULL is returned for both missing keys and keys with no value, you should - * use gst_uri_query_has_key() to determine if a key is present in the URI - * query. - * - * Params: - * queryKey = The key to lookup. - * - * Returns: The value for the given key, or %NULL if not found. - * - * Since: 1.6 - */ - public string getQueryValue(string queryKey) - { - return Str.toString(gst_uri_get_query_value(gstUri, Str.toStringz(queryKey))); - } - - /** - * Get the scheme name from the URI or %NULL if it doesn't exist. - * If @uri is %NULL then returns %NULL. - * - * Returns: The scheme from the #GstUri object or %NULL. - */ - public string getScheme() - { - return Str.toString(gst_uri_get_scheme(gstUri)); - } - - /** - * Get the userinfo (usually in the form "username:password") from the URI - * or %NULL if it doesn't exist. If @uri is %NULL then returns %NULL. - * - * Returns: The userinfo from the #GstUri object or %NULL. - * - * Since: 1.6 - */ - public string getUserinfo() - { - return Str.toString(gst_uri_get_userinfo(gstUri)); - } - - /** - * Tests the @uri to see if it is normalized. A %NULL @uri is considered to be - * normalized. - * - * Returns: TRUE if the URI is normalized or is %NULL. - * - * Since: 1.6 - */ - public bool isNormalized() - { - return gst_uri_is_normalized(gstUri) != 0; - } - - /** - * Check if it is safe to write to this #GstUri. - * - * Check if the refcount of @uri is exactly 1, meaning that no other - * reference exists to the #GstUri and that the #GstUri is therefore writable. - * - * Modification of a #GstUri should only be done after verifying that it is - * writable. - * - * Returns: %TRUE if it is safe to write to the object. - * - * Since: 1.6 - */ - public bool isWritable() - { - return gst_uri_is_writable(gstUri) != 0; - } - - /** - * Join a reference URI onto a base URI using the method from RFC 3986. - * If either URI is %NULL then the other URI will be returned with the ref count - * increased. - * - * Params: - * refUri = The reference URI to join onto the - * base URI. - * - * Returns: A #GstUri which represents the base - * with the reference URI joined on. - * - * Since: 1.6 - */ - public Uri join(Uri refUri) - { - auto __p = gst_uri_join(gstUri, (refUri is null) ? null : refUri.getUriStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Uri)(cast(GstUri*) __p, true); - } - - /** - * Make the #GstUri writable. - * - * Checks if @uri is writable, and if so the original object is returned. If - * not, then a writable copy is made and returned. This gives away the - * reference to @uri and returns a reference to the new #GstUri. - * If @uri is %NULL then %NULL is returned. - * - * Returns: A writable version of @uri. - * - * Since: 1.6 - */ - public Uri makeWritable() - { - auto __p = gst_uri_make_writable(gstUri); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Uri)(cast(GstUri*) __p, true); - } - - /** - * Like gst_uri_new(), but joins the new URI onto a base URI. - * - * Params: - * scheme = The scheme for the new URI. - * userinfo = The user-info for the new URI. - * host = The host name for the new URI. - * port = The port number for the new URI or %GST_URI_NO_PORT. - * path = The path for the new URI with '/' separating path - * elements. - * query = The query string for the new URI with '&' separating - * query elements. Elements containing '&' characters - * should encode them as "%26". - * fragment = The fragment name for the new URI. - * - * Returns: The new URI joined onto @base. - * - * Since: 1.6 - */ - public Uri newWithBase(string scheme, string userinfo, string host, uint port, string path, string query, string fragment) - { - auto __p = gst_uri_new_with_base(gstUri, Str.toStringz(scheme), Str.toStringz(userinfo), Str.toStringz(host), port, Str.toStringz(path), Str.toStringz(query), Str.toStringz(fragment)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Uri)(cast(GstUri*) __p, true); - } - - /** - * Normalization will remove extra path segments ("." and "..") from the URI. It - * will also convert the scheme and host name to lower case and any - * percent-encoded values to uppercase. - * - * The #GstUri object must be writable. Check with gst_uri_is_writable() or use - * gst_uri_make_writable() first. - * - * Returns: TRUE if the URI was modified. - * - * Since: 1.6 - */ - public bool normalize() - { - return gst_uri_normalize(gstUri) != 0; - } - - /** - * Check if there is a query table entry for the @query_key key. - * - * Params: - * queryKey = The key to lookup. - * - * Returns: %TRUE if @query_key exists in the URI query table. - * - * Since: 1.6 - */ - public bool queryHasKey(string queryKey) - { - return gst_uri_query_has_key(gstUri, Str.toStringz(queryKey)) != 0; - } - - /** - * Remove an entry from the query table by key. - * - * Params: - * queryKey = The key to remove. - * - * Returns: %TRUE if the key existed in the table and was removed. - * - * Since: 1.6 - */ - public bool removeQueryKey(string queryKey) - { - return gst_uri_remove_query_key(gstUri, Str.toStringz(queryKey)) != 0; - } - - /** - * Sets the fragment string in the URI. Use a value of %NULL in @fragment to - * unset the fragment string. - * - * Params: - * fragment = The fragment string to set. - * - * Returns: %TRUE if the fragment was set/unset successfully. - * - * Since: 1.6 - */ - public bool setFragment(string fragment) - { - return gst_uri_set_fragment(gstUri, Str.toStringz(fragment)) != 0; - } - - /** - * Set or unset the host for the URI. - * - * Params: - * host = The new host string to set or %NULL to unset. - * - * Returns: %TRUE if the host was set/unset successfully. - * - * Since: 1.6 - */ - public bool setHost(string host) - { - return gst_uri_set_host(gstUri, Str.toStringz(host)) != 0; - } - - /** - * Sets or unsets the path in the URI. - * - * Params: - * path = The new path to set with path segments separated by '/', or use %NULL - * to unset the path. - * - * Returns: %TRUE if the path was set successfully. - * - * Since: 1.6 - */ - public bool setPath(string path) - { - return gst_uri_set_path(gstUri, Str.toStringz(path)) != 0; - } - - /** - * Replace the path segments list in the URI. - * - * Params: - * pathSegments = The new - * path list to set. - * - * Returns: %TRUE if the path segments were set successfully. - * - * Since: 1.6 - */ - public bool setPathSegments(ListG pathSegments) - { - return gst_uri_set_path_segments(gstUri, (pathSegments is null) ? null : pathSegments.getListGStruct()) != 0; - } - - /** - * Sets or unsets the path in the URI. - * - * Params: - * path = The new percent encoded path to set with path segments separated by - * '/', or use %NULL to unset the path. - * - * Returns: %TRUE if the path was set successfully. - * - * Since: 1.6 - */ - public bool setPathString(string path) - { - return gst_uri_set_path_string(gstUri, Str.toStringz(path)) != 0; - } - - /** - * Set or unset the port number for the URI. - * - * Params: - * port = The new port number to set or %GST_URI_NO_PORT to unset. - * - * Returns: %TRUE if the port number was set/unset successfully. - * - * Since: 1.6 - */ - public bool setPort(uint port) - { - return gst_uri_set_port(gstUri, port) != 0; - } - - /** - * Sets or unsets the query table in the URI. - * - * Params: - * query = The new percent encoded query string to use to populate the query - * table, or use %NULL to unset the query table. - * - * Returns: %TRUE if the query table was set successfully. - * - * Since: 1.6 - */ - public bool setQueryString(string query) - { - return gst_uri_set_query_string(gstUri, Str.toStringz(query)) != 0; - } - - /** - * Set the query table to use in the URI. The old table is unreferenced and a - * reference to the new one is used instead. A value if %NULL for @query_table - * will remove the query string from the URI. - * - * Params: - * queryTable = The new - * query table to use. - * - * Returns: %TRUE if the new table was successfully used for the query table. - * - * Since: 1.6 - */ - public bool setQueryTable(HashTable queryTable) - { - return gst_uri_set_query_table(gstUri, (queryTable is null) ? null : queryTable.getHashTableStruct()) != 0; - } - - /** - * This inserts or replaces a key in the query table. A @query_value of %NULL - * indicates that the key has no associated value, but will still be present in - * the query string. - * - * Params: - * queryKey = The key for the query entry. - * queryValue = The value for the key. - * - * Returns: %TRUE if the query table was successfully updated. - * - * Since: 1.6 - */ - public bool setQueryValue(string queryKey, string queryValue) - { - return gst_uri_set_query_value(gstUri, Str.toStringz(queryKey), Str.toStringz(queryValue)) != 0; - } - - /** - * Set or unset the scheme for the URI. - * - * Params: - * scheme = The new scheme to set or %NULL to unset the scheme. - * - * Returns: %TRUE if the scheme was set/unset successfully. - * - * Since: 1.6 - */ - public bool setScheme(string scheme) - { - return gst_uri_set_scheme(gstUri, Str.toStringz(scheme)) != 0; - } - - /** - * Set or unset the user information for the URI. - * - * Params: - * userinfo = The new user-information string to set or %NULL to unset. - * - * Returns: %TRUE if the user information was set/unset successfully. - * - * Since: 1.6 - */ - public bool setUserinfo(string userinfo) - { - return gst_uri_set_userinfo(gstUri, Str.toStringz(userinfo)) != 0; - } - - /** - * Convert the URI to a string. - * - * Returns the URI as held in this object as a #gchar* nul-terminated string. - * The caller should g_free() the string once they are finished with it. - * The string is put together as described in RFC 3986. - * - * Returns: The string version of the URI. - * - * Since: 1.6 - */ - public override string toString() - { - auto retStr = gst_uri_to_string(gstUri); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Constructs a URI for a given valid protocol and location. - * - * Free-function: g_free - * - * Deprecated: Use GstURI instead. - * - * Params: - * protocol = Protocol for URI - * location = Location for URI - * - * Returns: a new string for this URI. Returns %NULL if the - * given URI protocol is not valid, or the given location is %NULL. - */ - public static string construct(string protocol, string location) - { - auto retStr = gst_uri_construct(Str.toStringz(protocol), Str.toStringz(location)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Parses a URI string into a new #GstUri object. Will return NULL if the URI - * cannot be parsed. - * - * Params: - * uri = The URI string to parse. - * - * Returns: A new #GstUri object, or NULL. - * - * Since: 1.6 - */ - public static Uri fromString(string uri) - { - auto __p = gst_uri_from_string(Str.toStringz(uri)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Uri)(cast(GstUri*) __p, true); - } - - /** - * Parses a URI string into a new #GstUri object. Will return NULL if the URI - * cannot be parsed. This is identical to gst_uri_from_string() except that - * the userinfo and fragment components of the URI will not be unescaped while - * parsing. - * - * Use this when you need to extract a username and password from the userinfo - * such as https://user:password@example.com since either may contain - * a URI-escaped ':' character. gst_uri_from_string() will unescape the entire - * userinfo component, which will make it impossible to know which ':' - * delineates the username and password. - * - * The same applies to the fragment component of the URI, such as - * https://example.com/path#fragment which may contain a URI-escaped '#'. - * - * Params: - * uri = The URI string to parse. - * - * Returns: A new #GstUri object, or NULL. - * - * Since: 1.18 - */ - public static Uri fromStringEscaped(string uri) - { - auto __p = gst_uri_from_string_escaped(Str.toStringz(uri)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Uri)(cast(GstUri*) __p, true); - } - - /** - * Extracts the location out of a given valid URI, ie. the protocol and "://" - * are stripped from the URI, which means that the location returned includes - * the hostname if one is specified. The returned string must be freed using - * g_free(). - * - * Free-function: g_free - * - * Params: - * uri = A URI string - * - * Returns: the location for this URI. Returns - * %NULL if the URI isn't valid. If the URI does not contain a location, an - * empty string is returned. - */ - public static string getLocation(string uri) - { - auto retStr = gst_uri_get_location(Str.toStringz(uri)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Extracts the protocol out of a given valid URI. The returned string must be - * freed using g_free(). - * - * Params: - * uri = A URI string - * - * Returns: The protocol for this URI. - */ - public static string getProtocol(string uri) - { - auto retStr = gst_uri_get_protocol(Str.toStringz(uri)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Checks if the protocol of a given valid URI matches @protocol. - * - * Params: - * uri = a URI string - * protocol = a protocol string (e.g. "http") - * - * Returns: %TRUE if the protocol matches. - */ - public static bool hasProtocol(string uri, string protocol) - { - return gst_uri_has_protocol(Str.toStringz(uri), Str.toStringz(protocol)) != 0; - } - - /** - * Tests if the given string is a valid URI identifier. URIs start with a valid - * scheme followed by ":" and maybe a string identifying the location. - * - * Params: - * uri = A URI string - * - * Returns: %TRUE if the string is a valid URI - */ - public static bool isValid(string uri) - { - return gst_uri_is_valid(Str.toStringz(uri)) != 0; - } - - /** - * This is a convenience function to join two URI strings and return the result. - * The returned string should be g_free()'d after use. - * - * Params: - * baseUri = The percent-encoded base URI. - * refUri = The percent-encoded reference URI to join to the @base_uri. - * - * Returns: A string representing the percent-encoded join of - * the two URIs. - * - * Since: 1.6 - */ - public static string joinStrings(string baseUri, string refUri) - { - auto retStr = gst_uri_join_strings(Str.toStringz(baseUri), Str.toStringz(refUri)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Checks if an element exists that supports the given URI protocol. Note - * that a positive return value does not imply that a subsequent call to - * gst_element_make_from_uri() is guaranteed to work. - * - * Params: - * type = Whether to check for a source or a sink - * protocol = Protocol that should be checked for (e.g. "http" or "smb") - * - * Returns: %TRUE - */ - public static bool protocolIsSupported(GstURIType type, string protocol) - { - return gst_uri_protocol_is_supported(type, Str.toStringz(protocol)) != 0; - } - - /** - * Tests if the given string is a valid protocol identifier. Protocols - * must consist of alphanumeric characters, '+', '-' and '.' and must - * start with a alphabetic character. See RFC 3986 Section 3.1. - * - * Params: - * protocol = A string - * - * Returns: %TRUE if the string is a valid protocol identifier, %FALSE otherwise. - */ - public static bool protocolIsValid(string protocol) - { - return gst_uri_protocol_is_valid(Str.toStringz(protocol)) != 0; - } - - /** - * Similar to g_filename_to_uri(), but attempts to handle relative file paths - * as well. Before converting @filename into an URI, it will be prefixed by - * the current working directory if it is a relative path, and then the path - * will be canonicalised so that it doesn't contain any './' or '../' segments. - * - * On Windows @filename should be in UTF-8 encoding. - * - * Params: - * filename = absolute or relative file name path - * - * Returns: newly-allocated URI string, or NULL on error. The caller must - * free the URI string with g_free() when no longer needed. - * - * Throws: GException on failure. - */ - public static string filenameToUri(string filename) - { - GError* err = null; - - auto retStr = gst_filename_to_uri(Str.toStringz(filename), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** */ - public static GQuark uriErrorQuark() - { - return gst_uri_error_quark(); - } -} diff --git a/generated/gstreamer/gstreamer/Utils.d b/generated/gstreamer/gstreamer/Utils.d deleted file mode 100644 index b1b2ceee1..000000000 --- a/generated/gstreamer/gstreamer/Utils.d +++ /dev/null @@ -1,540 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.Utils; - -private import glib.MemorySlice; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Value; -private import gobject.ValueArray; -private import gstreamer.Plugin; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct Utils -{ - - /** - * Searches inside @array for @search_data by using the comparison function - * @search_func. @array must be sorted ascending. - * - * As @search_data is always passed as second argument to @search_func it's - * not required that @search_data has the same type as the array elements. - * - * The complexity of this search function is O(log (num_elements)). - * - * Params: - * array = the sorted input array - * numElements = number of elements in the array - * elementSize = size of every element in bytes - * searchFunc = function to compare two elements, @search_data will always be passed as second argument - * mode = search mode that should be used - * searchData = element that should be found - * userData = data to pass to @search_func - * - * Returns: The address of the found - * element or %NULL if nothing was found - */ - public static void* arrayBinarySearch(void* array, uint numElements, size_t elementSize, GCompareDataFunc searchFunc, GstSearchMode mode, void* searchData, void* userData) - { - return gst_util_array_binary_search(array, numElements, elementSize, searchFunc, mode, searchData, userData); - } - - /** - * Transforms a #gdouble to a fraction and simplifies - * the result. - * - * Params: - * src = #gdouble to transform - * destN = pointer to a #gint to hold the result numerator - * destD = pointer to a #gint to hold the result denominator - */ - public static void doubleToFraction(double src, out int destN, out int destD) - { - gst_util_double_to_fraction(src, &destN, &destD); - } - - /** - * Dumps the memory block into a hex representation. Useful for debugging. - * - * Params: - * mem = a pointer to the memory to dump - */ - public static void dumpMem(char[] mem) - { - gst_util_dump_mem(mem.ptr, cast(uint)mem.length); - } - - /** - * Adds the fractions @a_n/@a_d and @b_n/@b_d and stores - * the result in @res_n and @res_d. - * - * Params: - * aN = Numerator of first value - * aD = Denominator of first value - * bN = Numerator of second value - * bD = Denominator of second value - * resN = Pointer to #gint to hold the result numerator - * resD = Pointer to #gint to hold the result denominator - * - * Returns: %FALSE on overflow, %TRUE otherwise. - */ - public static bool fractionAdd(int aN, int aD, int bN, int bD, out int resN, out int resD) - { - return gst_util_fraction_add(aN, aD, bN, bD, &resN, &resD) != 0; - } - - /** - * Compares the fractions @a_n/@a_d and @b_n/@b_d and returns - * -1 if a < b, 0 if a = b and 1 if a > b. - * - * Params: - * aN = Numerator of first value - * aD = Denominator of first value - * bN = Numerator of second value - * bD = Denominator of second value - * - * Returns: -1 if a < b; 0 if a = b; 1 if a > b. - */ - public static int fractionCompare(int aN, int aD, int bN, int bD) - { - return gst_util_fraction_compare(aN, aD, bN, bD); - } - - /** - * Multiplies the fractions @a_n/@a_d and @b_n/@b_d and stores - * the result in @res_n and @res_d. - * - * Params: - * aN = Numerator of first value - * aD = Denominator of first value - * bN = Numerator of second value - * bD = Denominator of second value - * resN = Pointer to #gint to hold the result numerator - * resD = Pointer to #gint to hold the result denominator - * - * Returns: %FALSE on overflow, %TRUE otherwise. - */ - public static bool fractionMultiply(int aN, int aD, int bN, int bD, out int resN, out int resD) - { - return gst_util_fraction_multiply(aN, aD, bN, bD, &resN, &resD) != 0; - } - - /** - * Transforms a fraction to a #gdouble. - * - * Params: - * srcN = Fraction numerator as #gint - * srcD = Fraction denominator #gint - * dest = pointer to a #gdouble for the result - */ - public static void fractionToDouble(int srcN, int srcD, out double dest) - { - gst_util_fraction_to_double(srcN, srcD, &dest); - } - - /** - * - * Params: - * value = The #gdouble value to convert guint64 double - * Returns: @value casted to #guint64 - */ - public static ulong gdoubleToGuint64(double value) - { - return gst_util_gdouble_to_guint64(value); - } - - /** - * Get a timestamp as GstClockTime to be used for interval measurements. - * The timestamp should not be interpreted in any other way. - * - * Returns: the timestamp - */ - public static GstClockTime getTimestamp() - { - return gst_util_get_timestamp(); - } - - /** - * Calculates the greatest common divisor of @a - * and @b. - * - * Params: - * a = First value as #gint - * b = Second value as #gint - * - * Returns: Greatest common divisor of @a and @b - */ - public static int greatestCommonDivisor(int a, int b) - { - return gst_util_greatest_common_divisor(a, b); - } - - /** - * Calculates the greatest common divisor of @a - * and @b. - * - * Params: - * a = First value as #gint64 - * b = Second value as #gint64 - * - * Returns: Greatest common divisor of @a and @b - */ - public static long greatestCommonDivisorInt64(long a, long b) - { - return gst_util_greatest_common_divisor_int64(a, b); - } - - /** - * Return a constantly incrementing group id. - * - * This function is used to generate a new group-id for the - * stream-start event. - * - * This function never returns %GST_GROUP_ID_INVALID (which is 0) - * - * Returns: A constantly incrementing unsigned integer, which might - * overflow back to 0 at some point. - */ - public static uint groupIdNext() - { - return gst_util_group_id_next(); - } - - /** - * - * Params: - * value = The #guint64 value to convert to double - * Returns: @value casted to #gdouble - */ - public static double guint64ToGdouble(ulong value) - { - return gst_util_guint64_to_gdouble(value); - } - - /** - * Compare two sequence numbers, handling wraparound. - * - * The current implementation just returns (gint32)(@s1 - @s2). - * - * Params: - * s1 = A sequence number. - * s2 = Another sequence number. - * - * Returns: A negative number if @s1 is before @s2, 0 if they are equal, or a - * positive number if @s1 is after @s2. - */ - public static int seqnumCompare(uint s1, uint s2) - { - return gst_util_seqnum_compare(s1, s2); - } - - /** - * Return a constantly incrementing sequence number. - * - * This function is used internally to GStreamer to be able to determine which - * events and messages are "the same". For example, elements may set the seqnum - * on a segment-done message to be the same as that of the last seek event, to - * indicate that event and the message correspond to the same segment. - * - * This function never returns %GST_SEQNUM_INVALID (which is 0). - * - * Returns: A constantly incrementing 32-bit unsigned integer, which might - * overflow at some point. Use gst_util_seqnum_compare() to make sure - * you handle wraparound correctly. - */ - public static uint seqnumNext() - { - return gst_util_seqnum_next(); - } - - /** - * Converts the string value to the type of the objects argument and - * sets the argument with it. - * - * Note that this function silently returns if @object has no property named - * @name or when @value cannot be converted to the type of the property. - * - * Params: - * object = the object to set the argument of - * name = the name of the argument to set - * value = the string value to set - */ - public static void setObjectArg(ObjectG object, string name, string value) - { - gst_util_set_object_arg((object is null) ? null : object.getObjectGStruct(), Str.toStringz(name), Str.toStringz(value)); - } - - /** - * Converts the string to the type of the value and - * sets the value with it. - * - * Note that this function is dangerous as it does not return any indication - * if the conversion worked or not. - * - * Params: - * value = the value to set - * valueStr = the string to get the value from - */ - public static void setValueFromString(out Value value, string valueStr) - { - GValue* outvalue = sliceNew!GValue(); - - gst_util_set_value_from_string(outvalue, Str.toStringz(valueStr)); - - value = ObjectG.getDObject!(Value)(outvalue, true); - } - - /** - * Scale @val by the rational number @num / @denom, avoiding overflows and - * underflows and without loss of precision. - * - * This function can potentially be very slow if val and num are both - * greater than G_MAXUINT32. - * - * Params: - * val = the number to scale - * num = the numerator of the scale ratio - * denom = the denominator of the scale ratio - * - * Returns: @val * @num / @denom. In the case of an overflow, this - * function returns G_MAXUINT64. If the result is not exactly - * representable as an integer it is truncated. See also - * gst_util_uint64_scale_round(), gst_util_uint64_scale_ceil(), - * gst_util_uint64_scale_int(), gst_util_uint64_scale_int_round(), - * gst_util_uint64_scale_int_ceil(). - */ - public static ulong uint64Scale(ulong val, ulong num, ulong denom) - { - return gst_util_uint64_scale(val, num, denom); - } - - /** - * Scale @val by the rational number @num / @denom, avoiding overflows and - * underflows and without loss of precision. - * - * This function can potentially be very slow if val and num are both - * greater than G_MAXUINT32. - * - * Params: - * val = the number to scale - * num = the numerator of the scale ratio - * denom = the denominator of the scale ratio - * - * Returns: @val * @num / @denom. In the case of an overflow, this - * function returns G_MAXUINT64. If the result is not exactly - * representable as an integer, it is rounded up. See also - * gst_util_uint64_scale(), gst_util_uint64_scale_round(), - * gst_util_uint64_scale_int(), gst_util_uint64_scale_int_round(), - * gst_util_uint64_scale_int_ceil(). - */ - public static ulong uint64ScaleCeil(ulong val, ulong num, ulong denom) - { - return gst_util_uint64_scale_ceil(val, num, denom); - } - - /** - * Scale @val by the rational number @num / @denom, avoiding overflows and - * underflows and without loss of precision. @num must be non-negative and - * @denom must be positive. - * - * Params: - * val = guint64 (such as a #GstClockTime) to scale. - * num = numerator of the scale factor. - * denom = denominator of the scale factor. - * - * Returns: @val * @num / @denom. In the case of an overflow, this - * function returns G_MAXUINT64. If the result is not exactly - * representable as an integer, it is truncated. See also - * gst_util_uint64_scale_int_round(), gst_util_uint64_scale_int_ceil(), - * gst_util_uint64_scale(), gst_util_uint64_scale_round(), - * gst_util_uint64_scale_ceil(). - */ - public static ulong uint64ScaleInt(ulong val, int num, int denom) - { - return gst_util_uint64_scale_int(val, num, denom); - } - - /** - * Scale @val by the rational number @num / @denom, avoiding overflows and - * underflows and without loss of precision. @num must be non-negative and - * @denom must be positive. - * - * Params: - * val = guint64 (such as a #GstClockTime) to scale. - * num = numerator of the scale factor. - * denom = denominator of the scale factor. - * - * Returns: @val * @num / @denom. In the case of an overflow, this - * function returns G_MAXUINT64. If the result is not exactly - * representable as an integer, it is rounded up. See also - * gst_util_uint64_scale_int(), gst_util_uint64_scale_int_round(), - * gst_util_uint64_scale(), gst_util_uint64_scale_round(), - * gst_util_uint64_scale_ceil(). - */ - public static ulong uint64ScaleIntCeil(ulong val, int num, int denom) - { - return gst_util_uint64_scale_int_ceil(val, num, denom); - } - - /** - * Scale @val by the rational number @num / @denom, avoiding overflows and - * underflows and without loss of precision. @num must be non-negative and - * @denom must be positive. - * - * Params: - * val = guint64 (such as a #GstClockTime) to scale. - * num = numerator of the scale factor. - * denom = denominator of the scale factor. - * - * Returns: @val * @num / @denom. In the case of an overflow, this - * function returns G_MAXUINT64. If the result is not exactly - * representable as an integer, it is rounded to the nearest integer - * (half-way cases are rounded up). See also gst_util_uint64_scale_int(), - * gst_util_uint64_scale_int_ceil(), gst_util_uint64_scale(), - * gst_util_uint64_scale_round(), gst_util_uint64_scale_ceil(). - */ - public static ulong uint64ScaleIntRound(ulong val, int num, int denom) - { - return gst_util_uint64_scale_int_round(val, num, denom); - } - - /** - * Scale @val by the rational number @num / @denom, avoiding overflows and - * underflows and without loss of precision. - * - * This function can potentially be very slow if val and num are both - * greater than G_MAXUINT32. - * - * Params: - * val = the number to scale - * num = the numerator of the scale ratio - * denom = the denominator of the scale ratio - * - * Returns: @val * @num / @denom. In the case of an overflow, this - * function returns G_MAXUINT64. If the result is not exactly - * representable as an integer, it is rounded to the nearest integer - * (half-way cases are rounded up). See also gst_util_uint64_scale(), - * gst_util_uint64_scale_ceil(), gst_util_uint64_scale_int(), - * gst_util_uint64_scale_int_round(), gst_util_uint64_scale_int_ceil(). - */ - public static ulong uint64ScaleRound(ulong val, ulong num, ulong denom) - { - return gst_util_uint64_scale_round(val, num, denom); - } - - /** - * Calculates the linear regression of the values @xy and places the - * result in @m_num, @m_denom, @b and @xbase, representing the function - * y(x) = m_num/m_denom * (x - xbase) + b - * that has the least-square distance from all points @x and @y. - * - * @r_squared will contain the remaining error. - * - * If @temp is not %NULL, it will be used as temporary space for the function, - * in which case the function works without any allocation at all. If @temp is - * %NULL, an allocation will take place. @temp should have at least the same - * amount of memory allocated as @xy, i.e. 2*n*sizeof(GstClockTime). - * - * > This function assumes (x,y) values with reasonable large differences - * > between them. It will not calculate the exact results if the differences - * > between neighbouring values are too small due to not being able to - * > represent sub-integer values during the calculations. - * - * Params: - * xy = Pairs of (x,y) values - * temp = Temporary scratch space used by the function - * n = number of (x,y) pairs - * mNum = numerator of calculated slope - * mDenom = denominator of calculated slope - * b = Offset at Y-axis - * xbase = Offset at X-axis - * rSquared = R-squared - * - * Returns: %TRUE if the linear regression was successfully calculated - * - * Since: 1.12 - */ - public static bool calculateLinearRegression(GstClockTime* xy, GstClockTime* temp, uint n, out GstClockTime mNum, out GstClockTime mDenom, out GstClockTime b, out GstClockTime xbase, out double rSquared) - { - return gst_calculate_linear_regression(xy, temp, n, &mNum, &mDenom, &b, &xbase, &rSquared) != 0; - } - - /** - * Registers a new #GstDynamicTypeFactory in the registry - * - * Params: - * plugin = The #GstPlugin to register @dyn_type for - * type = The #GType to register dynamically - * - * Since: 1.12 - */ - public static bool dynamicTypeRegister(Plugin plugin, GType type) - { - return gst_dynamic_type_register((plugin is null) ? null : plugin.getPluginStruct(), type) != 0; - } - - /** - * Get a property of type %GST_TYPE_ARRAY and transform it into a - * #GValueArray. This allow language bindings to get GST_TYPE_ARRAY - * properties which are otherwise not an accessible type. - * - * Params: - * object = the object to set the array to - * name = the name of the property to set - * array = a return #GValueArray - * - * Since: 1.12 - */ - public static bool getObjectArray(ObjectG object, string name, out ValueArray array) - { - GValueArray* outarray = null; - - auto __p = gst_util_get_object_array((object is null) ? null : object.getObjectGStruct(), Str.toStringz(name), &outarray) != 0; - - array = ObjectG.getDObject!(ValueArray)(outarray); - - return __p; - } - - /** - * Transfer a #GValueArray to %GST_TYPE_ARRAY and set this value on the - * specified property name. This allow language bindings to set GST_TYPE_ARRAY - * properties which are otherwise not an accessible type. - * - * Params: - * object = the object to set the array to - * name = the name of the property to set - * array = a #GValueArray containing the values - * - * Since: 1.12 - */ - public static bool setObjectArray(ObjectG object, string name, ValueArray array) - { - return gst_util_set_object_array((object is null) ? null : object.getObjectGStruct(), Str.toStringz(name), (array is null) ? null : array.getValueArrayStruct()) != 0; - } -} diff --git a/generated/gstreamer/gstreamer/ValueArray.d b/generated/gstreamer/gstreamer/ValueArray.d deleted file mode 100644 index 18d916fb9..000000000 --- a/generated/gstreamer/gstreamer/ValueArray.d +++ /dev/null @@ -1,167 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ValueArray; - -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes an ordered list of #GValue - */ -public class ValueArray -{ - /** the main Gtk struct */ - protected GstValueArray* gstValueArray; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstValueArray* getValueArrayStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstValueArray; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstValueArray; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstValueArray* gstValueArray, bool ownedRef = false) - { - this.gstValueArray = gstValueArray; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_value_array_get_type(); - } - - /** - * Appends @append_value to the GstValueArray in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_ARRAY - * appendValue = the value to append - * - * Since: 1.2 - */ - public static void appendAndTakeValue(Value value, Value appendValue) - { - gst_value_array_append_and_take_value((value is null) ? null : value.getValueStruct(), (appendValue is null) ? null : appendValue.getValueStruct()); - } - - /** - * Appends @append_value to the GstValueArray in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_ARRAY - * appendValue = the value to append - */ - public static void appendValue(Value value, Value appendValue) - { - gst_value_array_append_value((value is null) ? null : value.getValueStruct(), (appendValue is null) ? null : appendValue.getValueStruct()); - } - - /** - * Gets the number of values contained in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_ARRAY - * - * Returns: the number of values - */ - public static uint getSize(Value value) - { - return gst_value_array_get_size((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the value that is a member of the array contained in @value and - * has the index @index. - * - * Params: - * value = a #GValue of type #GST_TYPE_ARRAY - * index = index of value to get from the array - * - * Returns: the value at the given index - */ - public static Value getValue(Value value, uint index) - { - auto __p = gst_value_array_get_value((value is null) ? null : value.getValueStruct(), index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Initializes and pre-allocates a #GValue of type #GST_VALUE_ARRAY. - * - * Params: - * value = A zero-filled (uninitialized) #GValue structure - * prealloc = The number of entries to pre-allocate in the array - * - * Returns: The #GValue structure that has been passed in - * - * Since: 1.18 - */ - public static Value init(Value value, uint prealloc) - { - auto __p = gst_value_array_init((value is null) ? null : value.getValueStruct(), prealloc); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Prepends @prepend_value to the GstValueArray in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_ARRAY - * prependValue = the value to prepend - */ - public static void prependValue(Value value, Value prependValue) - { - gst_value_array_prepend_value((value is null) ? null : value.getValueStruct(), (prependValue is null) ? null : prependValue.getValueStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/ValueGst.d b/generated/gstreamer/gstreamer/ValueGst.d deleted file mode 100644 index 876d72a0d..000000000 --- a/generated/gstreamer/gstreamer/ValueGst.d +++ /dev/null @@ -1,799 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ValueGst; - -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.Caps; -private import gstreamer.CapsFeatures; -private import gstreamer.Structure; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** */ -public struct ValueGst -{ - - /** - * Determines if @value1 and @value2 can be compared. - * - * Params: - * value1 = a value to compare - * value2 = another value to compare - * - * Returns: %TRUE if the values can be compared - */ - public static bool canCompare(Value value1, Value value2) - { - return gst_value_can_compare((value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()) != 0; - } - - /** - * Determines if intersecting two values will produce a valid result. - * Two values will produce a valid intersection if they have the same - * type. - * - * Params: - * value1 = a value to intersect - * value2 = another value to intersect - * - * Returns: %TRUE if the values can intersect - */ - public static bool canIntersect(Value value1, Value value2) - { - return gst_value_can_intersect((value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()) != 0; - } - - /** - * Checks if it's possible to subtract @subtrahend from @minuend. - * - * Params: - * minuend = the value to subtract from - * subtrahend = the value to subtract - * - * Returns: %TRUE if a subtraction is possible - */ - public static bool canSubtract(Value minuend, Value subtrahend) - { - return gst_value_can_subtract((minuend is null) ? null : minuend.getValueStruct(), (subtrahend is null) ? null : subtrahend.getValueStruct()) != 0; - } - - /** - * Determines if @value1 and @value2 can be non-trivially unioned. - * Any two values can be trivially unioned by adding both of them - * to a GstValueList. However, certain types have the possibility - * to be unioned in a simpler way. For example, an integer range - * and an integer can be unioned if the integer is a subset of the - * integer range. If there is the possibility that two values can - * be unioned, this function returns %TRUE. - * - * Params: - * value1 = a value to union - * value2 = another value to union - * - * Returns: %TRUE if there is a function allowing the two values to - * be unioned. - */ - public static bool canUnion(Value value1, Value value2) - { - return gst_value_can_union((value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()) != 0; - } - - /** - * Compares @value1 and @value2. If @value1 and @value2 cannot be - * compared, the function returns GST_VALUE_UNORDERED. Otherwise, - * if @value1 is greater than @value2, GST_VALUE_GREATER_THAN is returned. - * If @value1 is less than @value2, GST_VALUE_LESS_THAN is returned. - * If the values are equal, GST_VALUE_EQUAL is returned. - * - * Params: - * value1 = a value to compare - * value2 = another value to compare - * - * Returns: comparison result - */ - public static int compare(Value value1, Value value2) - { - return gst_value_compare((value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()); - } - - /** - * Tries to deserialize a string into the type specified by the given GValue. - * If the operation succeeds, %TRUE is returned, %FALSE otherwise. - * - * Params: - * dest = #GValue to fill with contents of - * deserialization - * src = string to deserialize - * - * Returns: %TRUE on success - */ - public static bool deserialize(out Value dest, string src) - { - GValue* outdest = sliceNew!GValue(); - - auto __p = gst_value_deserialize(outdest, Str.toStringz(src)) != 0; - - dest = ObjectG.getDObject!(Value)(outdest, true); - - return __p; - } - - /** - * Fixate @src into a new value @dest. - * For ranges, the first element is taken. For lists and arrays, the - * first item is fixated and returned. - * If @src is already fixed, this function returns %FALSE. - * - * Params: - * dest = the #GValue destination - * src = the #GValue to fixate - * - * Returns: %TRUE if @dest contains a fixated version of @src. - */ - public static bool fixate(Value dest, Value src) - { - return gst_value_fixate((dest is null) ? null : dest.getValueStruct(), (src is null) ? null : src.getValueStruct()) != 0; - } - - /** - * Multiplies the two #GValue items containing a #GST_TYPE_FRACTION and sets - * @product to the product of the two fractions. - * - * Params: - * product = a GValue initialized to #GST_TYPE_FRACTION - * factor1 = a GValue initialized to #GST_TYPE_FRACTION - * factor2 = a GValue initialized to #GST_TYPE_FRACTION - * - * Returns: %FALSE in case of an error (like integer overflow), %TRUE otherwise. - */ - public static bool fractionMultiply(Value product, Value factor1, Value factor2) - { - return gst_value_fraction_multiply((product is null) ? null : product.getValueStruct(), (factor1 is null) ? null : factor1.getValueStruct(), (factor2 is null) ? null : factor2.getValueStruct()) != 0; - } - - /** - * Subtracts the @subtrahend from the @minuend and sets @dest to the result. - * - * Params: - * dest = a GValue initialized to #GST_TYPE_FRACTION - * minuend = a GValue initialized to #GST_TYPE_FRACTION - * subtrahend = a GValue initialized to #GST_TYPE_FRACTION - * - * Returns: %FALSE in case of an error (like integer overflow), %TRUE otherwise. - */ - public static bool fractionSubtract(Value dest, Value minuend, Value subtrahend) - { - return gst_value_fraction_subtract((dest is null) ? null : dest.getValueStruct(), (minuend is null) ? null : minuend.getValueStruct(), (subtrahend is null) ? null : subtrahend.getValueStruct()) != 0; - } - - /** - * Gets the bitmask specified by @value. - * - * Params: - * value = a GValue initialized to #GST_TYPE_BITMASK - * - * Returns: the bitmask. - */ - public static ulong getBitmask(Value value) - { - return gst_value_get_bitmask((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the contents of @value. The reference count of the returned - * #GstCaps will not be modified, therefore the caller must take one - * before getting rid of the @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_CAPS - * - * Returns: the contents of @value - */ - public static Caps getCaps(Value value) - { - auto __p = gst_value_get_caps((value is null) ? null : value.getValueStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Caps)(cast(GstCaps*) __p); - } - - /** - * Gets the contents of @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_CAPS_FEATURES - * - * Returns: the contents of @value - */ - public static CapsFeatures getCapsFeatures(Value value) - { - auto __p = gst_value_get_caps_features((value is null) ? null : value.getValueStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(CapsFeatures)(cast(GstCapsFeatures*) __p); - } - - /** - * Gets the maximum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_DOUBLE_RANGE - * - * Returns: the maximum of the range - */ - public static double getDoubleRangeMax(Value value) - { - return gst_value_get_double_range_max((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the minimum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_DOUBLE_RANGE - * - * Returns: the minimum of the range - */ - public static double getDoubleRangeMin(Value value) - { - return gst_value_get_double_range_min((value is null) ? null : value.getValueStruct()); - } - - /** - * Retrieve the flags field of a GstFlagSet @value. - * - * Params: - * value = a GValue initialized to #GST_TYPE_FLAG_SET - * - * Returns: the flags field of the flagset instance. - * - * Since: 1.6 - */ - public static uint getFlagsetFlags(Value value) - { - return gst_value_get_flagset_flags((value is null) ? null : value.getValueStruct()); - } - - /** - * Retrieve the mask field of a GstFlagSet @value. - * - * Params: - * value = a GValue initialized to #GST_TYPE_FLAG_SET - * - * Returns: the mask field of the flagset instance. - * - * Since: 1.6 - */ - public static uint getFlagsetMask(Value value) - { - return gst_value_get_flagset_mask((value is null) ? null : value.getValueStruct()); - } - - /** - * Sets @value to the flags and mask values provided in @flags and @mask. - * The @flags value indicates the values of flags, the @mask represents - * which bits in the flag value have been set, and which are "don't care" - * - * Params: - * value = a GValue initialized to %GST_TYPE_FLAG_SET - * flags = The value of the flags set or unset - * mask = The mask indicate which flags bits must match for comparisons - * - * Since: 1.6 - */ - public static void setFlagset(Value value, uint flags, uint mask) - { - gst_value_set_flagset((value is null) ? null : value.getValueStruct(), flags, mask); - } - - /** - * Gets the denominator of the fraction specified by @value. - * - * Params: - * value = a GValue initialized to #GST_TYPE_FRACTION - * - * Returns: the denominator of the fraction. - */ - public static int getFractionDenominator(Value value) - { - return gst_value_get_fraction_denominator((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the numerator of the fraction specified by @value. - * - * Params: - * value = a GValue initialized to #GST_TYPE_FRACTION - * - * Returns: the numerator of the fraction. - */ - public static int getFractionNumerator(Value value) - { - return gst_value_get_fraction_numerator((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the maximum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_FRACTION_RANGE - * - * Returns: the maximum of the range - */ - public static Value getFractionRangeMax(Value value) - { - auto __p = gst_value_get_fraction_range_max((value is null) ? null : value.getValueStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Gets the minimum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_FRACTION_RANGE - * - * Returns: the minimum of the range - */ - public static Value getFractionRangeMin(Value value) - { - auto __p = gst_value_get_fraction_range_min((value is null) ? null : value.getValueStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Gets the maximum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT64_RANGE - * - * Returns: the maximum of the range - */ - public static long getInt64RangeMax(Value value) - { - return gst_value_get_int64_range_max((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the minimum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT64_RANGE - * - * Returns: the minimum of the range - */ - public static long getInt64RangeMin(Value value) - { - return gst_value_get_int64_range_min((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the step of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT64_RANGE - * - * Returns: the step of the range - */ - public static long getInt64RangeStep(Value value) - { - return gst_value_get_int64_range_step((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the maximum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT_RANGE - * - * Returns: the maximum of the range - */ - public static int getIntRangeMax(Value value) - { - return gst_value_get_int_range_max((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the minimum of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT_RANGE - * - * Returns: the minimum of the range - */ - public static int getIntRangeMin(Value value) - { - return gst_value_get_int_range_min((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the step of the range specified by @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT_RANGE - * - * Returns: the step of the range - */ - public static int getIntRangeStep(Value value) - { - return gst_value_get_int_range_step((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the contents of @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_STRUCTURE - * - * Returns: the contents of @value - */ - public static Structure getStructure(Value value) - { - auto __p = gst_value_get_structure((value is null) ? null : value.getValueStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Structure)(cast(GstStructure*) __p); - } - - /** - * Initialises the target value to be of the same type as source and then copies - * the contents from source to target. - * - * Params: - * dest = the target value - * src = the source value - */ - public static void initAndCopy(out Value dest, Value src) - { - GValue* outdest = sliceNew!GValue(); - - gst_value_init_and_copy(outdest, (src is null) ? null : src.getValueStruct()); - - dest = ObjectG.getDObject!(Value)(outdest, true); - } - - /** - * Calculates the intersection of two values. If the values have - * a non-empty intersection, the value representing the intersection - * is placed in @dest, unless %NULL. If the intersection is non-empty, - * @dest is not modified. - * - * Params: - * dest = a uninitialized #GValue that will hold the calculated - * intersection value. May be %NULL if the resulting set if not - * needed. - * value1 = a value to intersect - * value2 = another value to intersect - * - * Returns: %TRUE if the intersection is non-empty - */ - public static bool intersect(out Value dest, Value value1, Value value2) - { - GValue* outdest = sliceNew!GValue(); - - auto __p = gst_value_intersect(outdest, (value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()) != 0; - - dest = ObjectG.getDObject!(Value)(outdest, true); - - return __p; - } - - /** - * Tests if the given GValue, if available in a GstStructure (or any other - * container) contains a "fixed" (which means: one value) or an "unfixed" - * (which means: multiple possible values, such as data lists or data - * ranges) value. - * - * Params: - * value = the #GValue to check - * - * Returns: true if the value is "fixed". - */ - public static bool isFixed(Value value) - { - return gst_value_is_fixed((value is null) ? null : value.getValueStruct()) != 0; - } - - /** - * Check that @value1 is a subset of @value2. - * - * Params: - * value1 = a #GValue - * value2 = a #GValue - * - * Returns: %TRUE is @value1 is a subset of @value2 - */ - public static bool isSubset(Value value1, Value value2) - { - return gst_value_is_subset((value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()) != 0; - } - - /** - * Registers functions to perform calculations on #GValue items of a given - * type. Each type can only be added once. - * - * Params: - * table = structure containing functions to register - */ - public static void register(GstValueTable* table) - { - gst_value_register(table); - } - - /** - * tries to transform the given @value into a string representation that allows - * getting back this string later on using gst_value_deserialize(). - * - * Free-function: g_free - * - * Params: - * value = a #GValue to serialize - * - * Returns: the serialization for @value - * or %NULL if none exists - */ - public static string serialize(Value value) - { - auto retStr = gst_value_serialize((value is null) ? null : value.getValueStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Sets @value to the bitmask specified by @bitmask. - * - * Params: - * value = a GValue initialized to #GST_TYPE_BITMASK - * bitmask = the bitmask - */ - public static void setBitmask(Value value, ulong bitmask) - { - gst_value_set_bitmask((value is null) ? null : value.getValueStruct(), bitmask); - } - - /** - * Sets the contents of @value to @caps. A reference to the - * provided @caps will be taken by the @value. - * - * Params: - * value = a GValue initialized to GST_TYPE_CAPS - * caps = the caps to set the value to - */ - public static void setCaps(Value value, Caps caps) - { - gst_value_set_caps((value is null) ? null : value.getValueStruct(), (caps is null) ? null : caps.getCapsStruct()); - } - - /** - * Sets the contents of @value to @features. - * - * Params: - * value = a GValue initialized to GST_TYPE_CAPS_FEATURES - * features = the features to set the value to - */ - public static void setCapsFeatures(Value value, CapsFeatures features) - { - gst_value_set_caps_features((value is null) ? null : value.getValueStruct(), (features is null) ? null : features.getCapsFeaturesStruct()); - } - - /** - * Sets @value to the range specified by @start and @end. - * - * Params: - * value = a GValue initialized to GST_TYPE_DOUBLE_RANGE - * start = the start of the range - * end = the end of the range - */ - public static void setDoubleRange(Value value, double start, double end) - { - gst_value_set_double_range((value is null) ? null : value.getValueStruct(), start, end); - } - - /** - * Sets @value to the fraction specified by @numerator over @denominator. - * The fraction gets reduced to the smallest numerator and denominator, - * and if necessary the sign is moved to the numerator. - * - * Params: - * value = a GValue initialized to #GST_TYPE_FRACTION - * numerator = the numerator of the fraction - * denominator = the denominator of the fraction - */ - public static void setFraction(Value value, int numerator, int denominator) - { - gst_value_set_fraction((value is null) ? null : value.getValueStruct(), numerator, denominator); - } - - /** - * Sets @value to the range specified by @start and @end. - * - * Params: - * value = a GValue initialized to GST_TYPE_FRACTION_RANGE - * start = the start of the range (a GST_TYPE_FRACTION GValue) - * end = the end of the range (a GST_TYPE_FRACTION GValue) - */ - public static void setFractionRange(Value value, Value start, Value end) - { - gst_value_set_fraction_range((value is null) ? null : value.getValueStruct(), (start is null) ? null : start.getValueStruct(), (end is null) ? null : end.getValueStruct()); - } - - /** - * Sets @value to the range specified by @numerator_start/@denominator_start - * and @numerator_end/@denominator_end. - * - * Params: - * value = a GValue initialized to GST_TYPE_FRACTION_RANGE - * numeratorStart = the numerator start of the range - * denominatorStart = the denominator start of the range - * numeratorEnd = the numerator end of the range - * denominatorEnd = the denominator end of the range - */ - public static void setFractionRangeFull(Value value, int numeratorStart, int denominatorStart, int numeratorEnd, int denominatorEnd) - { - gst_value_set_fraction_range_full((value is null) ? null : value.getValueStruct(), numeratorStart, denominatorStart, numeratorEnd, denominatorEnd); - } - - /** - * Sets @value to the range specified by @start and @end. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT64_RANGE - * start = the start of the range - * end = the end of the range - */ - public static void setInt64Range(Value value, long start, long end) - { - gst_value_set_int64_range((value is null) ? null : value.getValueStruct(), start, end); - } - - /** - * Sets @value to the range specified by @start, @end and @step. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT64_RANGE - * start = the start of the range - * end = the end of the range - * step = the step of the range - */ - public static void setInt64RangeStep(Value value, long start, long end, long step) - { - gst_value_set_int64_range_step((value is null) ? null : value.getValueStruct(), start, end, step); - } - - /** - * Sets @value to the range specified by @start and @end. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT_RANGE - * start = the start of the range - * end = the end of the range - */ - public static void setIntRange(Value value, int start, int end) - { - gst_value_set_int_range((value is null) ? null : value.getValueStruct(), start, end); - } - - /** - * Sets @value to the range specified by @start, @end and @step. - * - * Params: - * value = a GValue initialized to GST_TYPE_INT_RANGE - * start = the start of the range - * end = the end of the range - * step = the step of the range - */ - public static void setIntRangeStep(Value value, int start, int end, int step) - { - gst_value_set_int_range_step((value is null) ? null : value.getValueStruct(), start, end, step); - } - - /** - * Sets the contents of @value to @structure. - * - * Params: - * value = a GValue initialized to GST_TYPE_STRUCTURE - * structure = the structure to set the value to - */ - public static void setStructure(Value value, Structure structure) - { - gst_value_set_structure((value is null) ? null : value.getValueStruct(), (structure is null) ? null : structure.getStructureStruct()); - } - - /** - * Subtracts @subtrahend from @minuend and stores the result in @dest. - * Note that this means subtraction as in sets, not as in mathematics. - * - * Params: - * dest = the destination value - * for the result if the subtraction is not empty. May be %NULL, - * in which case the resulting set will not be computed, which can - * give a fair speedup. - * minuend = the value to subtract from - * subtrahend = the value to subtract - * - * Returns: %TRUE if the subtraction is not empty - */ - public static bool subtract(out Value dest, Value minuend, Value subtrahend) - { - GValue* outdest = sliceNew!GValue(); - - auto __p = gst_value_subtract(outdest, (minuend is null) ? null : minuend.getValueStruct(), (subtrahend is null) ? null : subtrahend.getValueStruct()) != 0; - - dest = ObjectG.getDObject!(Value)(outdest, true); - - return __p; - } - - alias unio = union_; - /** - * Creates a GValue corresponding to the union of @value1 and @value2. - * - * Params: - * dest = the destination value - * value1 = a value to union - * value2 = another value to union - * - * Returns: %TRUE if the union succeeded. - */ - public static bool union_(out Value dest, Value value1, Value value2) - { - GValue* outdest = sliceNew!GValue(); - - auto __p = gst_value_union(outdest, (value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()) != 0; - - dest = ObjectG.getDObject!(Value)(outdest, true); - - return __p; - } -} diff --git a/generated/gstreamer/gstreamer/ValueList.d b/generated/gstreamer/gstreamer/ValueList.d deleted file mode 100644 index 899f3eb0b..000000000 --- a/generated/gstreamer/gstreamer/ValueList.d +++ /dev/null @@ -1,209 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.ValueList; - -private import glib.MemorySlice; -private import gobject.ObjectG; -private import gobject.Value; -private import gstreamer.c.functions; -public import gstreamer.c.types; - - -/** - * A fundamental type that describes an unordered list of #GValue - */ -public class ValueList -{ - /** the main Gtk struct */ - protected GstValueList* gstValueList; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GstValueList* getValueListStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gstValueList; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gstValueList; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GstValueList* gstValueList, bool ownedRef = false) - { - this.gstValueList = gstValueList; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return gst_value_list_get_type(); - } - - /** - * Appends @append_value to the GstValueList in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_LIST - * appendValue = the value to append - * - * Since: 1.2 - */ - public static void appendAndTakeValue(Value value, Value appendValue) - { - gst_value_list_append_and_take_value((value is null) ? null : value.getValueStruct(), (appendValue is null) ? null : appendValue.getValueStruct()); - } - - /** - * Appends @append_value to the GstValueList in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_LIST - * appendValue = the value to append - */ - public static void appendValue(Value value, Value appendValue) - { - gst_value_list_append_value((value is null) ? null : value.getValueStruct(), (appendValue is null) ? null : appendValue.getValueStruct()); - } - - /** - * Concatenates copies of @value1 and @value2 into a list. Values that are not - * of type #GST_TYPE_LIST are treated as if they were lists of length 1. - * @dest will be initialized to the type #GST_TYPE_LIST. - * - * Params: - * dest = an uninitialized #GValue to take the result - * value1 = a #GValue - * value2 = a #GValue - */ - public static void concat(out Value dest, Value value1, Value value2) - { - GValue* outdest = sliceNew!GValue(); - - gst_value_list_concat(outdest, (value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()); - - dest = ObjectG.getDObject!(Value)(outdest, true); - } - - /** - * Gets the number of values contained in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_LIST - * - * Returns: the number of values - */ - public static uint getSize(Value value) - { - return gst_value_list_get_size((value is null) ? null : value.getValueStruct()); - } - - /** - * Gets the value that is a member of the list contained in @value and - * has the index @index. - * - * Params: - * value = a #GValue of type #GST_TYPE_LIST - * index = index of value to get from the list - * - * Returns: the value at the given index - */ - public static Value getValue(Value value, uint index) - { - auto __p = gst_value_list_get_value((value is null) ? null : value.getValueStruct(), index); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Initializes and pre-allocates a #GValue of type #GST_VALUE_LIST. - * - * Params: - * value = A zero-filled (uninitialized) #GValue structure - * prealloc = The number of entries to pre-allocate in the list - * - * Returns: The #GValue structure that has been passed in - * - * Since: 1.18 - */ - public static Value init(Value value, uint prealloc) - { - auto __p = gst_value_list_init((value is null) ? null : value.getValueStruct(), prealloc); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Merges copies of @value1 and @value2. Values that are not - * of type #GST_TYPE_LIST are treated as if they were lists of length 1. - * - * The result will be put into @dest and will either be a list that will not - * contain any duplicates, or a non-list type (if @value1 and @value2 - * were equal). - * - * Params: - * dest = an uninitialized #GValue to take the result - * value1 = a #GValue - * value2 = a #GValue - */ - public static void merge(out Value dest, Value value1, Value value2) - { - GValue* outdest = sliceNew!GValue(); - - gst_value_list_merge(outdest, (value1 is null) ? null : value1.getValueStruct(), (value2 is null) ? null : value2.getValueStruct()); - - dest = ObjectG.getDObject!(Value)(outdest, true); - } - - /** - * Prepends @prepend_value to the GstValueList in @value. - * - * Params: - * value = a #GValue of type #GST_TYPE_LIST - * prependValue = the value to prepend - */ - public static void prependValue(Value value, Value prependValue) - { - gst_value_list_prepend_value((value is null) ? null : value.getValueStruct(), (prependValue is null) ? null : prependValue.getValueStruct()); - } -} diff --git a/generated/gstreamer/gstreamer/c/functions.d b/generated/gstreamer/gstreamer/c/functions.d deleted file mode 100644 index 79c875699..000000000 --- a/generated/gstreamer/gstreamer/c/functions.d +++ /dev/null @@ -1,5483 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.c.functions; - -import std.stdio; -import gstreamer.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GSTREAMER = ["libgstreamer-1.0-0.dll;gstreamer-1.0-0.dll;gstreamer-1.dll"]; -else version (OSX) - static immutable LIBRARY_GSTREAMER = ["libgstreamer-1.0.0.dylib"]; -else - static immutable LIBRARY_GSTREAMER = ["libgstreamer-1.0.so.0"]; - -shared static this() -{ - // gstreamer.AllocationParams - - Linker.link(gst_allocation_params_get_type, "gst_allocation_params_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_allocation_params_copy, "gst_allocation_params_copy", LIBRARY_GSTREAMER); - Linker.link(gst_allocation_params_free, "gst_allocation_params_free", LIBRARY_GSTREAMER); - Linker.link(gst_allocation_params_init, "gst_allocation_params_init", LIBRARY_GSTREAMER); - - // gstreamer.Allocator - - Linker.link(gst_allocator_get_type, "gst_allocator_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_allocator_find, "gst_allocator_find", LIBRARY_GSTREAMER); - Linker.link(gst_allocator_register, "gst_allocator_register", LIBRARY_GSTREAMER); - Linker.link(gst_allocator_alloc, "gst_allocator_alloc", LIBRARY_GSTREAMER); - Linker.link(gst_allocator_free, "gst_allocator_free", LIBRARY_GSTREAMER); - Linker.link(gst_allocator_set_default, "gst_allocator_set_default", LIBRARY_GSTREAMER); - - // gstreamer.AtomicQueue - - Linker.link(gst_atomic_queue_get_type, "gst_atomic_queue_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_atomic_queue_new, "gst_atomic_queue_new", LIBRARY_GSTREAMER); - Linker.link(gst_atomic_queue_length, "gst_atomic_queue_length", LIBRARY_GSTREAMER); - Linker.link(gst_atomic_queue_peek, "gst_atomic_queue_peek", LIBRARY_GSTREAMER); - Linker.link(gst_atomic_queue_pop, "gst_atomic_queue_pop", LIBRARY_GSTREAMER); - Linker.link(gst_atomic_queue_push, "gst_atomic_queue_push", LIBRARY_GSTREAMER); - Linker.link(gst_atomic_queue_ref, "gst_atomic_queue_ref", LIBRARY_GSTREAMER); - Linker.link(gst_atomic_queue_unref, "gst_atomic_queue_unref", LIBRARY_GSTREAMER); - - // gstreamer.Bin - - Linker.link(gst_bin_get_type, "gst_bin_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_bin_new, "gst_bin_new", LIBRARY_GSTREAMER); - Linker.link(gst_bin_add, "gst_bin_add", LIBRARY_GSTREAMER); - Linker.link(gst_bin_add_many, "gst_bin_add_many", LIBRARY_GSTREAMER); - Linker.link(gst_bin_find_unlinked_pad, "gst_bin_find_unlinked_pad", LIBRARY_GSTREAMER); - Linker.link(gst_bin_get_by_interface, "gst_bin_get_by_interface", LIBRARY_GSTREAMER); - Linker.link(gst_bin_get_by_name, "gst_bin_get_by_name", LIBRARY_GSTREAMER); - Linker.link(gst_bin_get_by_name_recurse_up, "gst_bin_get_by_name_recurse_up", LIBRARY_GSTREAMER); - Linker.link(gst_bin_get_suppressed_flags, "gst_bin_get_suppressed_flags", LIBRARY_GSTREAMER); - Linker.link(gst_bin_iterate_all_by_element_factory_name, "gst_bin_iterate_all_by_element_factory_name", LIBRARY_GSTREAMER); - Linker.link(gst_bin_iterate_all_by_interface, "gst_bin_iterate_all_by_interface", LIBRARY_GSTREAMER); - Linker.link(gst_bin_iterate_elements, "gst_bin_iterate_elements", LIBRARY_GSTREAMER); - Linker.link(gst_bin_iterate_recurse, "gst_bin_iterate_recurse", LIBRARY_GSTREAMER); - Linker.link(gst_bin_iterate_sinks, "gst_bin_iterate_sinks", LIBRARY_GSTREAMER); - Linker.link(gst_bin_iterate_sorted, "gst_bin_iterate_sorted", LIBRARY_GSTREAMER); - Linker.link(gst_bin_iterate_sources, "gst_bin_iterate_sources", LIBRARY_GSTREAMER); - Linker.link(gst_bin_recalculate_latency, "gst_bin_recalculate_latency", LIBRARY_GSTREAMER); - Linker.link(gst_bin_remove, "gst_bin_remove", LIBRARY_GSTREAMER); - Linker.link(gst_bin_remove_many, "gst_bin_remove_many", LIBRARY_GSTREAMER); - Linker.link(gst_bin_set_suppressed_flags, "gst_bin_set_suppressed_flags", LIBRARY_GSTREAMER); - Linker.link(gst_bin_sync_children_states, "gst_bin_sync_children_states", LIBRARY_GSTREAMER); - - // gstreamer.Bitmask - - Linker.link(gst_bitmask_get_type, "gst_bitmask_get_type", LIBRARY_GSTREAMER); - - // gstreamer.Buffer - - Linker.link(gst_buffer_get_type, "gst_buffer_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_new, "gst_buffer_new", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_new_allocate, "gst_buffer_new_allocate", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_new_wrapped, "gst_buffer_new_wrapped", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_new_wrapped_bytes, "gst_buffer_new_wrapped_bytes", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_new_wrapped_full, "gst_buffer_new_wrapped_full", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_add_meta, "gst_buffer_add_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_add_parent_buffer_meta, "gst_buffer_add_parent_buffer_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_add_protection_meta, "gst_buffer_add_protection_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_add_reference_timestamp_meta, "gst_buffer_add_reference_timestamp_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_append, "gst_buffer_append", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_append_memory, "gst_buffer_append_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_append_region, "gst_buffer_append_region", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_copy_deep, "gst_buffer_copy_deep", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_copy_into, "gst_buffer_copy_into", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_copy_region, "gst_buffer_copy_region", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_extract, "gst_buffer_extract", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_extract_dup, "gst_buffer_extract_dup", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_fill, "gst_buffer_fill", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_find_memory, "gst_buffer_find_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_foreach_meta, "gst_buffer_foreach_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_all_memory, "gst_buffer_get_all_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_flags, "gst_buffer_get_flags", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_memory, "gst_buffer_get_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_memory_range, "gst_buffer_get_memory_range", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_meta, "gst_buffer_get_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_n_meta, "gst_buffer_get_n_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_reference_timestamp_meta, "gst_buffer_get_reference_timestamp_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_size, "gst_buffer_get_size", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_sizes, "gst_buffer_get_sizes", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_sizes_range, "gst_buffer_get_sizes_range", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_has_flags, "gst_buffer_has_flags", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_insert_memory, "gst_buffer_insert_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_is_all_memory_writable, "gst_buffer_is_all_memory_writable", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_is_memory_range_writable, "gst_buffer_is_memory_range_writable", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_iterate_meta, "gst_buffer_iterate_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_iterate_meta_filtered, "gst_buffer_iterate_meta_filtered", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_map, "gst_buffer_map", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_map_range, "gst_buffer_map_range", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_memcmp, "gst_buffer_memcmp", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_memset, "gst_buffer_memset", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_n_memory, "gst_buffer_n_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_peek_memory, "gst_buffer_peek_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_prepend_memory, "gst_buffer_prepend_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_remove_all_memory, "gst_buffer_remove_all_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_remove_memory, "gst_buffer_remove_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_remove_memory_range, "gst_buffer_remove_memory_range", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_remove_meta, "gst_buffer_remove_meta", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_replace_all_memory, "gst_buffer_replace_all_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_replace_memory, "gst_buffer_replace_memory", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_replace_memory_range, "gst_buffer_replace_memory_range", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_resize, "gst_buffer_resize", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_resize_range, "gst_buffer_resize_range", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_set_flags, "gst_buffer_set_flags", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_set_size, "gst_buffer_set_size", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_unmap, "gst_buffer_unmap", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_unset_flags, "gst_buffer_unset_flags", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_get_max_memory, "gst_buffer_get_max_memory", LIBRARY_GSTREAMER); - - // gstreamer.BufferList - - Linker.link(gst_buffer_list_get_type, "gst_buffer_list_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_new, "gst_buffer_list_new", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_new_sized, "gst_buffer_list_new_sized", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_calculate_size, "gst_buffer_list_calculate_size", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_copy_deep, "gst_buffer_list_copy_deep", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_foreach, "gst_buffer_list_foreach", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_get, "gst_buffer_list_get", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_get_writable, "gst_buffer_list_get_writable", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_insert, "gst_buffer_list_insert", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_length, "gst_buffer_list_length", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_list_remove, "gst_buffer_list_remove", LIBRARY_GSTREAMER); - - // gstreamer.BufferPool - - Linker.link(gst_buffer_pool_get_type, "gst_buffer_pool_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_new, "gst_buffer_pool_new", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_add_option, "gst_buffer_pool_config_add_option", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_get_allocator, "gst_buffer_pool_config_get_allocator", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_get_option, "gst_buffer_pool_config_get_option", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_get_params, "gst_buffer_pool_config_get_params", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_has_option, "gst_buffer_pool_config_has_option", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_n_options, "gst_buffer_pool_config_n_options", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_set_allocator, "gst_buffer_pool_config_set_allocator", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_set_params, "gst_buffer_pool_config_set_params", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_config_validate_params, "gst_buffer_pool_config_validate_params", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_acquire_buffer, "gst_buffer_pool_acquire_buffer", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_get_config, "gst_buffer_pool_get_config", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_get_options, "gst_buffer_pool_get_options", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_has_option, "gst_buffer_pool_has_option", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_is_active, "gst_buffer_pool_is_active", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_release_buffer, "gst_buffer_pool_release_buffer", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_set_active, "gst_buffer_pool_set_active", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_set_config, "gst_buffer_pool_set_config", LIBRARY_GSTREAMER); - Linker.link(gst_buffer_pool_set_flushing, "gst_buffer_pool_set_flushing", LIBRARY_GSTREAMER); - - // gstreamer.Bus - - Linker.link(gst_bus_get_type, "gst_bus_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_bus_new, "gst_bus_new", LIBRARY_GSTREAMER); - Linker.link(gst_bus_add_signal_watch, "gst_bus_add_signal_watch", LIBRARY_GSTREAMER); - Linker.link(gst_bus_add_signal_watch_full, "gst_bus_add_signal_watch_full", LIBRARY_GSTREAMER); - Linker.link(gst_bus_add_watch, "gst_bus_add_watch", LIBRARY_GSTREAMER); - Linker.link(gst_bus_add_watch_full, "gst_bus_add_watch_full", LIBRARY_GSTREAMER); - Linker.link(gst_bus_async_signal_func, "gst_bus_async_signal_func", LIBRARY_GSTREAMER); - Linker.link(gst_bus_create_watch, "gst_bus_create_watch", LIBRARY_GSTREAMER); - Linker.link(gst_bus_disable_sync_message_emission, "gst_bus_disable_sync_message_emission", LIBRARY_GSTREAMER); - Linker.link(gst_bus_enable_sync_message_emission, "gst_bus_enable_sync_message_emission", LIBRARY_GSTREAMER); - Linker.link(gst_bus_get_pollfd, "gst_bus_get_pollfd", LIBRARY_GSTREAMER); - Linker.link(gst_bus_have_pending, "gst_bus_have_pending", LIBRARY_GSTREAMER); - Linker.link(gst_bus_peek, "gst_bus_peek", LIBRARY_GSTREAMER); - Linker.link(gst_bus_poll, "gst_bus_poll", LIBRARY_GSTREAMER); - Linker.link(gst_bus_pop, "gst_bus_pop", LIBRARY_GSTREAMER); - Linker.link(gst_bus_pop_filtered, "gst_bus_pop_filtered", LIBRARY_GSTREAMER); - Linker.link(gst_bus_post, "gst_bus_post", LIBRARY_GSTREAMER); - Linker.link(gst_bus_remove_signal_watch, "gst_bus_remove_signal_watch", LIBRARY_GSTREAMER); - Linker.link(gst_bus_remove_watch, "gst_bus_remove_watch", LIBRARY_GSTREAMER); - Linker.link(gst_bus_set_flushing, "gst_bus_set_flushing", LIBRARY_GSTREAMER); - Linker.link(gst_bus_set_sync_handler, "gst_bus_set_sync_handler", LIBRARY_GSTREAMER); - Linker.link(gst_bus_sync_signal_handler, "gst_bus_sync_signal_handler", LIBRARY_GSTREAMER); - Linker.link(gst_bus_timed_pop, "gst_bus_timed_pop", LIBRARY_GSTREAMER); - Linker.link(gst_bus_timed_pop_filtered, "gst_bus_timed_pop_filtered", LIBRARY_GSTREAMER); - - // gstreamer.Caps - - Linker.link(gst_caps_get_type, "gst_caps_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_caps_new_any, "gst_caps_new_any", LIBRARY_GSTREAMER); - Linker.link(gst_caps_new_empty, "gst_caps_new_empty", LIBRARY_GSTREAMER); - Linker.link(gst_caps_new_empty_simple, "gst_caps_new_empty_simple", LIBRARY_GSTREAMER); - Linker.link(gst_caps_new_full, "gst_caps_new_full", LIBRARY_GSTREAMER); - Linker.link(gst_caps_new_full_valist, "gst_caps_new_full_valist", LIBRARY_GSTREAMER); - Linker.link(gst_caps_new_simple, "gst_caps_new_simple", LIBRARY_GSTREAMER); - Linker.link(gst_caps_append, "gst_caps_append", LIBRARY_GSTREAMER); - Linker.link(gst_caps_append_structure, "gst_caps_append_structure", LIBRARY_GSTREAMER); - Linker.link(gst_caps_append_structure_full, "gst_caps_append_structure_full", LIBRARY_GSTREAMER); - Linker.link(gst_caps_can_intersect, "gst_caps_can_intersect", LIBRARY_GSTREAMER); - Linker.link(gst_caps_copy, "gst_caps_copy", LIBRARY_GSTREAMER); - Linker.link(gst_caps_copy_nth, "gst_caps_copy_nth", LIBRARY_GSTREAMER); - Linker.link(gst_caps_filter_and_map_in_place, "gst_caps_filter_and_map_in_place", LIBRARY_GSTREAMER); - Linker.link(gst_caps_fixate, "gst_caps_fixate", LIBRARY_GSTREAMER); - Linker.link(gst_caps_foreach, "gst_caps_foreach", LIBRARY_GSTREAMER); - Linker.link(gst_caps_get_features, "gst_caps_get_features", LIBRARY_GSTREAMER); - Linker.link(gst_caps_get_size, "gst_caps_get_size", LIBRARY_GSTREAMER); - Linker.link(gst_caps_get_structure, "gst_caps_get_structure", LIBRARY_GSTREAMER); - Linker.link(gst_caps_intersect, "gst_caps_intersect", LIBRARY_GSTREAMER); - Linker.link(gst_caps_intersect_full, "gst_caps_intersect_full", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_always_compatible, "gst_caps_is_always_compatible", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_any, "gst_caps_is_any", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_empty, "gst_caps_is_empty", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_equal, "gst_caps_is_equal", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_equal_fixed, "gst_caps_is_equal_fixed", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_fixed, "gst_caps_is_fixed", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_strictly_equal, "gst_caps_is_strictly_equal", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_subset, "gst_caps_is_subset", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_subset_structure, "gst_caps_is_subset_structure", LIBRARY_GSTREAMER); - Linker.link(gst_caps_is_subset_structure_full, "gst_caps_is_subset_structure_full", LIBRARY_GSTREAMER); - Linker.link(gst_caps_map_in_place, "gst_caps_map_in_place", LIBRARY_GSTREAMER); - Linker.link(gst_caps_merge, "gst_caps_merge", LIBRARY_GSTREAMER); - Linker.link(gst_caps_merge_structure, "gst_caps_merge_structure", LIBRARY_GSTREAMER); - Linker.link(gst_caps_merge_structure_full, "gst_caps_merge_structure_full", LIBRARY_GSTREAMER); - Linker.link(gst_caps_normalize, "gst_caps_normalize", LIBRARY_GSTREAMER); - Linker.link(gst_caps_remove_structure, "gst_caps_remove_structure", LIBRARY_GSTREAMER); - Linker.link(gst_caps_set_features, "gst_caps_set_features", LIBRARY_GSTREAMER); - Linker.link(gst_caps_set_features_simple, "gst_caps_set_features_simple", LIBRARY_GSTREAMER); - Linker.link(gst_caps_set_simple, "gst_caps_set_simple", LIBRARY_GSTREAMER); - Linker.link(gst_caps_set_simple_valist, "gst_caps_set_simple_valist", LIBRARY_GSTREAMER); - Linker.link(gst_caps_set_value, "gst_caps_set_value", LIBRARY_GSTREAMER); - Linker.link(gst_caps_simplify, "gst_caps_simplify", LIBRARY_GSTREAMER); - Linker.link(gst_caps_steal_structure, "gst_caps_steal_structure", LIBRARY_GSTREAMER); - Linker.link(gst_caps_subtract, "gst_caps_subtract", LIBRARY_GSTREAMER); - Linker.link(gst_caps_to_string, "gst_caps_to_string", LIBRARY_GSTREAMER); - Linker.link(gst_caps_truncate, "gst_caps_truncate", LIBRARY_GSTREAMER); - Linker.link(gst_caps_from_string, "gst_caps_from_string", LIBRARY_GSTREAMER); - - // gstreamer.CapsFeatures - - Linker.link(gst_caps_features_get_type, "gst_caps_features_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_new, "gst_caps_features_new", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_new_any, "gst_caps_features_new_any", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_new_empty, "gst_caps_features_new_empty", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_new_id, "gst_caps_features_new_id", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_new_id_valist, "gst_caps_features_new_id_valist", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_new_valist, "gst_caps_features_new_valist", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_add, "gst_caps_features_add", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_add_id, "gst_caps_features_add_id", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_contains, "gst_caps_features_contains", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_contains_id, "gst_caps_features_contains_id", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_copy, "gst_caps_features_copy", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_free, "gst_caps_features_free", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_get_nth, "gst_caps_features_get_nth", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_get_nth_id, "gst_caps_features_get_nth_id", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_get_size, "gst_caps_features_get_size", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_is_any, "gst_caps_features_is_any", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_is_equal, "gst_caps_features_is_equal", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_remove, "gst_caps_features_remove", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_remove_id, "gst_caps_features_remove_id", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_set_parent_refcount, "gst_caps_features_set_parent_refcount", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_to_string, "gst_caps_features_to_string", LIBRARY_GSTREAMER); - Linker.link(gst_caps_features_from_string, "gst_caps_features_from_string", LIBRARY_GSTREAMER); - - // gstreamer.ChildProxy - - Linker.link(gst_child_proxy_get_type, "gst_child_proxy_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_child_added, "gst_child_proxy_child_added", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_child_removed, "gst_child_proxy_child_removed", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_get, "gst_child_proxy_get", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_get_child_by_index, "gst_child_proxy_get_child_by_index", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_get_child_by_name, "gst_child_proxy_get_child_by_name", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_get_children_count, "gst_child_proxy_get_children_count", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_get_property, "gst_child_proxy_get_property", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_get_valist, "gst_child_proxy_get_valist", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_lookup, "gst_child_proxy_lookup", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_set, "gst_child_proxy_set", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_set_property, "gst_child_proxy_set_property", LIBRARY_GSTREAMER); - Linker.link(gst_child_proxy_set_valist, "gst_child_proxy_set_valist", LIBRARY_GSTREAMER); - - // gstreamer.Clock - - Linker.link(gst_clock_get_type, "gst_clock_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_compare_func, "gst_clock_id_compare_func", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_get_clock, "gst_clock_id_get_clock", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_get_time, "gst_clock_id_get_time", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_ref, "gst_clock_id_ref", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_unref, "gst_clock_id_unref", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_unschedule, "gst_clock_id_unschedule", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_uses_clock, "gst_clock_id_uses_clock", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_wait, "gst_clock_id_wait", LIBRARY_GSTREAMER); - Linker.link(gst_clock_id_wait_async, "gst_clock_id_wait_async", LIBRARY_GSTREAMER); - Linker.link(gst_clock_add_observation, "gst_clock_add_observation", LIBRARY_GSTREAMER); - Linker.link(gst_clock_add_observation_unapplied, "gst_clock_add_observation_unapplied", LIBRARY_GSTREAMER); - Linker.link(gst_clock_adjust_unlocked, "gst_clock_adjust_unlocked", LIBRARY_GSTREAMER); - Linker.link(gst_clock_adjust_with_calibration, "gst_clock_adjust_with_calibration", LIBRARY_GSTREAMER); - Linker.link(gst_clock_get_calibration, "gst_clock_get_calibration", LIBRARY_GSTREAMER); - Linker.link(gst_clock_get_internal_time, "gst_clock_get_internal_time", LIBRARY_GSTREAMER); - Linker.link(gst_clock_get_master, "gst_clock_get_master", LIBRARY_GSTREAMER); - Linker.link(gst_clock_get_resolution, "gst_clock_get_resolution", LIBRARY_GSTREAMER); - Linker.link(gst_clock_get_time, "gst_clock_get_time", LIBRARY_GSTREAMER); - Linker.link(gst_clock_get_timeout, "gst_clock_get_timeout", LIBRARY_GSTREAMER); - Linker.link(gst_clock_is_synced, "gst_clock_is_synced", LIBRARY_GSTREAMER); - Linker.link(gst_clock_new_periodic_id, "gst_clock_new_periodic_id", LIBRARY_GSTREAMER); - Linker.link(gst_clock_new_single_shot_id, "gst_clock_new_single_shot_id", LIBRARY_GSTREAMER); - Linker.link(gst_clock_periodic_id_reinit, "gst_clock_periodic_id_reinit", LIBRARY_GSTREAMER); - Linker.link(gst_clock_set_calibration, "gst_clock_set_calibration", LIBRARY_GSTREAMER); - Linker.link(gst_clock_set_master, "gst_clock_set_master", LIBRARY_GSTREAMER); - Linker.link(gst_clock_set_resolution, "gst_clock_set_resolution", LIBRARY_GSTREAMER); - Linker.link(gst_clock_set_synced, "gst_clock_set_synced", LIBRARY_GSTREAMER); - Linker.link(gst_clock_set_timeout, "gst_clock_set_timeout", LIBRARY_GSTREAMER); - Linker.link(gst_clock_single_shot_id_reinit, "gst_clock_single_shot_id_reinit", LIBRARY_GSTREAMER); - Linker.link(gst_clock_unadjust_unlocked, "gst_clock_unadjust_unlocked", LIBRARY_GSTREAMER); - Linker.link(gst_clock_unadjust_with_calibration, "gst_clock_unadjust_with_calibration", LIBRARY_GSTREAMER); - Linker.link(gst_clock_wait_for_sync, "gst_clock_wait_for_sync", LIBRARY_GSTREAMER); - - // gstreamer.Context - - Linker.link(gst_context_get_type, "gst_context_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_context_new, "gst_context_new", LIBRARY_GSTREAMER); - Linker.link(gst_context_get_context_type, "gst_context_get_context_type", LIBRARY_GSTREAMER); - Linker.link(gst_context_get_structure, "gst_context_get_structure", LIBRARY_GSTREAMER); - Linker.link(gst_context_has_context_type, "gst_context_has_context_type", LIBRARY_GSTREAMER); - Linker.link(gst_context_is_persistent, "gst_context_is_persistent", LIBRARY_GSTREAMER); - Linker.link(gst_context_writable_structure, "gst_context_writable_structure", LIBRARY_GSTREAMER); - - // gstreamer.ControlBinding - - Linker.link(gst_control_binding_get_type, "gst_control_binding_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_control_binding_get_g_value_array, "gst_control_binding_get_g_value_array", LIBRARY_GSTREAMER); - Linker.link(gst_control_binding_get_value, "gst_control_binding_get_value", LIBRARY_GSTREAMER); - Linker.link(gst_control_binding_get_value_array, "gst_control_binding_get_value_array", LIBRARY_GSTREAMER); - Linker.link(gst_control_binding_is_disabled, "gst_control_binding_is_disabled", LIBRARY_GSTREAMER); - Linker.link(gst_control_binding_set_disabled, "gst_control_binding_set_disabled", LIBRARY_GSTREAMER); - Linker.link(gst_control_binding_sync_values, "gst_control_binding_sync_values", LIBRARY_GSTREAMER); - - // gstreamer.ControlSource - - Linker.link(gst_control_source_get_type, "gst_control_source_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_control_source_get_value, "gst_control_source_get_value", LIBRARY_GSTREAMER); - Linker.link(gst_control_source_get_value_array, "gst_control_source_get_value_array", LIBRARY_GSTREAMER); - - // gstreamer.DateTime - - Linker.link(gst_date_time_get_type, "gst_date_time_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new, "gst_date_time_new", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_from_g_date_time, "gst_date_time_new_from_g_date_time", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_from_iso8601_string, "gst_date_time_new_from_iso8601_string", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_from_unix_epoch_local_time, "gst_date_time_new_from_unix_epoch_local_time", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_from_unix_epoch_local_time_usecs, "gst_date_time_new_from_unix_epoch_local_time_usecs", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_from_unix_epoch_utc, "gst_date_time_new_from_unix_epoch_utc", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_from_unix_epoch_utc_usecs, "gst_date_time_new_from_unix_epoch_utc_usecs", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_local_time, "gst_date_time_new_local_time", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_now_local_time, "gst_date_time_new_now_local_time", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_now_utc, "gst_date_time_new_now_utc", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_y, "gst_date_time_new_y", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_ym, "gst_date_time_new_ym", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_new_ymd, "gst_date_time_new_ymd", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_day, "gst_date_time_get_day", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_hour, "gst_date_time_get_hour", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_microsecond, "gst_date_time_get_microsecond", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_minute, "gst_date_time_get_minute", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_month, "gst_date_time_get_month", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_second, "gst_date_time_get_second", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_time_zone_offset, "gst_date_time_get_time_zone_offset", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_get_year, "gst_date_time_get_year", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_has_day, "gst_date_time_has_day", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_has_month, "gst_date_time_has_month", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_has_second, "gst_date_time_has_second", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_has_time, "gst_date_time_has_time", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_has_year, "gst_date_time_has_year", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_ref, "gst_date_time_ref", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_to_g_date_time, "gst_date_time_to_g_date_time", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_to_iso8601_string, "gst_date_time_to_iso8601_string", LIBRARY_GSTREAMER); - Linker.link(gst_date_time_unref, "gst_date_time_unref", LIBRARY_GSTREAMER); - - // gstreamer.DebugCategory - - Linker.link(gst_debug_category_free, "gst_debug_category_free", LIBRARY_GSTREAMER); - Linker.link(gst_debug_category_get_color, "gst_debug_category_get_color", LIBRARY_GSTREAMER); - Linker.link(gst_debug_category_get_description, "gst_debug_category_get_description", LIBRARY_GSTREAMER); - Linker.link(gst_debug_category_get_name, "gst_debug_category_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_debug_category_get_threshold, "gst_debug_category_get_threshold", LIBRARY_GSTREAMER); - Linker.link(gst_debug_category_reset_threshold, "gst_debug_category_reset_threshold", LIBRARY_GSTREAMER); - Linker.link(gst_debug_category_set_threshold, "gst_debug_category_set_threshold", LIBRARY_GSTREAMER); - - // gstreamer.DebugMessage - - Linker.link(gst_debug_message_get, "gst_debug_message_get", LIBRARY_GSTREAMER); - - // gstreamer.Device - - Linker.link(gst_device_get_type, "gst_device_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_device_create_element, "gst_device_create_element", LIBRARY_GSTREAMER); - Linker.link(gst_device_get_caps, "gst_device_get_caps", LIBRARY_GSTREAMER); - Linker.link(gst_device_get_device_class, "gst_device_get_device_class", LIBRARY_GSTREAMER); - Linker.link(gst_device_get_display_name, "gst_device_get_display_name", LIBRARY_GSTREAMER); - Linker.link(gst_device_get_properties, "gst_device_get_properties", LIBRARY_GSTREAMER); - Linker.link(gst_device_has_classes, "gst_device_has_classes", LIBRARY_GSTREAMER); - Linker.link(gst_device_has_classesv, "gst_device_has_classesv", LIBRARY_GSTREAMER); - Linker.link(gst_device_reconfigure_element, "gst_device_reconfigure_element", LIBRARY_GSTREAMER); - - // gstreamer.DeviceMonitor - - Linker.link(gst_device_monitor_get_type, "gst_device_monitor_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_new, "gst_device_monitor_new", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_add_filter, "gst_device_monitor_add_filter", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_get_bus, "gst_device_monitor_get_bus", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_get_devices, "gst_device_monitor_get_devices", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_get_providers, "gst_device_monitor_get_providers", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_get_show_all_devices, "gst_device_monitor_get_show_all_devices", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_remove_filter, "gst_device_monitor_remove_filter", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_set_show_all_devices, "gst_device_monitor_set_show_all_devices", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_start, "gst_device_monitor_start", LIBRARY_GSTREAMER); - Linker.link(gst_device_monitor_stop, "gst_device_monitor_stop", LIBRARY_GSTREAMER); - - // gstreamer.DeviceProvider - - Linker.link(gst_device_provider_get_type, "gst_device_provider_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_register, "gst_device_provider_register", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_can_monitor, "gst_device_provider_can_monitor", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_device_add, "gst_device_provider_device_add", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_device_changed, "gst_device_provider_device_changed", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_device_remove, "gst_device_provider_device_remove", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_get_bus, "gst_device_provider_get_bus", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_get_devices, "gst_device_provider_get_devices", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_get_factory, "gst_device_provider_get_factory", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_get_hidden_providers, "gst_device_provider_get_hidden_providers", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_get_metadata, "gst_device_provider_get_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_hide_provider, "gst_device_provider_hide_provider", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_start, "gst_device_provider_start", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_stop, "gst_device_provider_stop", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_unhide_provider, "gst_device_provider_unhide_provider", LIBRARY_GSTREAMER); - - // gstreamer.DeviceProviderClass - - Linker.link(gst_device_provider_class_add_metadata, "gst_device_provider_class_add_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_class_add_static_metadata, "gst_device_provider_class_add_static_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_class_get_metadata, "gst_device_provider_class_get_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_class_set_metadata, "gst_device_provider_class_set_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_class_set_static_metadata, "gst_device_provider_class_set_static_metadata", LIBRARY_GSTREAMER); - - // gstreamer.DeviceProviderFactory - - Linker.link(gst_device_provider_factory_get_type, "gst_device_provider_factory_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_find, "gst_device_provider_factory_find", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_get_by_name, "gst_device_provider_factory_get_by_name", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_list_get_device_providers, "gst_device_provider_factory_list_get_device_providers", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_get, "gst_device_provider_factory_get", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_get_device_provider_type, "gst_device_provider_factory_get_device_provider_type", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_get_metadata, "gst_device_provider_factory_get_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_get_metadata_keys, "gst_device_provider_factory_get_metadata_keys", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_has_classes, "gst_device_provider_factory_has_classes", LIBRARY_GSTREAMER); - Linker.link(gst_device_provider_factory_has_classesv, "gst_device_provider_factory_has_classesv", LIBRARY_GSTREAMER); - - // gstreamer.DoubleRange - - Linker.link(gst_double_range_get_type, "gst_double_range_get_type", LIBRARY_GSTREAMER); - - // gstreamer.DynamicTypeFactory - - Linker.link(gst_dynamic_type_factory_get_type, "gst_dynamic_type_factory_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_dynamic_type_factory_load, "gst_dynamic_type_factory_load", LIBRARY_GSTREAMER); - - // gstreamer.Element - - Linker.link(gst_element_get_type, "gst_element_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_element_make_from_uri, "gst_element_make_from_uri", LIBRARY_GSTREAMER); - Linker.link(gst_element_register, "gst_element_register", LIBRARY_GSTREAMER); - Linker.link(gst_element_state_change_return_get_name, "gst_element_state_change_return_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_element_state_get_name, "gst_element_state_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_element_abort_state, "gst_element_abort_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_add_pad, "gst_element_add_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_add_property_deep_notify_watch, "gst_element_add_property_deep_notify_watch", LIBRARY_GSTREAMER); - Linker.link(gst_element_add_property_notify_watch, "gst_element_add_property_notify_watch", LIBRARY_GSTREAMER); - Linker.link(gst_element_call_async, "gst_element_call_async", LIBRARY_GSTREAMER); - Linker.link(gst_element_change_state, "gst_element_change_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_continue_state, "gst_element_continue_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_create_all_pads, "gst_element_create_all_pads", LIBRARY_GSTREAMER); - Linker.link(gst_element_foreach_pad, "gst_element_foreach_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_foreach_sink_pad, "gst_element_foreach_sink_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_foreach_src_pad, "gst_element_foreach_src_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_base_time, "gst_element_get_base_time", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_bus, "gst_element_get_bus", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_clock, "gst_element_get_clock", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_compatible_pad, "gst_element_get_compatible_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_compatible_pad_template, "gst_element_get_compatible_pad_template", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_context, "gst_element_get_context", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_context_unlocked, "gst_element_get_context_unlocked", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_contexts, "gst_element_get_contexts", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_current_clock_time, "gst_element_get_current_clock_time", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_current_running_time, "gst_element_get_current_running_time", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_factory, "gst_element_get_factory", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_metadata, "gst_element_get_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_pad_template, "gst_element_get_pad_template", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_pad_template_list, "gst_element_get_pad_template_list", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_request_pad, "gst_element_get_request_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_start_time, "gst_element_get_start_time", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_state, "gst_element_get_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_get_static_pad, "gst_element_get_static_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_is_locked_state, "gst_element_is_locked_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_iterate_pads, "gst_element_iterate_pads", LIBRARY_GSTREAMER); - Linker.link(gst_element_iterate_sink_pads, "gst_element_iterate_sink_pads", LIBRARY_GSTREAMER); - Linker.link(gst_element_iterate_src_pads, "gst_element_iterate_src_pads", LIBRARY_GSTREAMER); - Linker.link(gst_element_link, "gst_element_link", LIBRARY_GSTREAMER); - Linker.link(gst_element_link_filtered, "gst_element_link_filtered", LIBRARY_GSTREAMER); - Linker.link(gst_element_link_many, "gst_element_link_many", LIBRARY_GSTREAMER); - Linker.link(gst_element_link_pads, "gst_element_link_pads", LIBRARY_GSTREAMER); - Linker.link(gst_element_link_pads_filtered, "gst_element_link_pads_filtered", LIBRARY_GSTREAMER); - Linker.link(gst_element_link_pads_full, "gst_element_link_pads_full", LIBRARY_GSTREAMER); - Linker.link(gst_element_lost_state, "gst_element_lost_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_message_full, "gst_element_message_full", LIBRARY_GSTREAMER); - Linker.link(gst_element_message_full_with_details, "gst_element_message_full_with_details", LIBRARY_GSTREAMER); - Linker.link(gst_element_no_more_pads, "gst_element_no_more_pads", LIBRARY_GSTREAMER); - Linker.link(gst_element_post_message, "gst_element_post_message", LIBRARY_GSTREAMER); - Linker.link(gst_element_provide_clock, "gst_element_provide_clock", LIBRARY_GSTREAMER); - Linker.link(gst_element_query, "gst_element_query", LIBRARY_GSTREAMER); - Linker.link(gst_element_query_convert, "gst_element_query_convert", LIBRARY_GSTREAMER); - Linker.link(gst_element_query_duration, "gst_element_query_duration", LIBRARY_GSTREAMER); - Linker.link(gst_element_query_position, "gst_element_query_position", LIBRARY_GSTREAMER); - Linker.link(gst_element_release_request_pad, "gst_element_release_request_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_remove_pad, "gst_element_remove_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_remove_property_notify_watch, "gst_element_remove_property_notify_watch", LIBRARY_GSTREAMER); - Linker.link(gst_element_request_pad, "gst_element_request_pad", LIBRARY_GSTREAMER); - Linker.link(gst_element_seek, "gst_element_seek", LIBRARY_GSTREAMER); - Linker.link(gst_element_seek_simple, "gst_element_seek_simple", LIBRARY_GSTREAMER); - Linker.link(gst_element_send_event, "gst_element_send_event", LIBRARY_GSTREAMER); - Linker.link(gst_element_set_base_time, "gst_element_set_base_time", LIBRARY_GSTREAMER); - Linker.link(gst_element_set_bus, "gst_element_set_bus", LIBRARY_GSTREAMER); - Linker.link(gst_element_set_clock, "gst_element_set_clock", LIBRARY_GSTREAMER); - Linker.link(gst_element_set_context, "gst_element_set_context", LIBRARY_GSTREAMER); - Linker.link(gst_element_set_locked_state, "gst_element_set_locked_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_set_start_time, "gst_element_set_start_time", LIBRARY_GSTREAMER); - Linker.link(gst_element_set_state, "gst_element_set_state", LIBRARY_GSTREAMER); - Linker.link(gst_element_sync_state_with_parent, "gst_element_sync_state_with_parent", LIBRARY_GSTREAMER); - Linker.link(gst_element_unlink, "gst_element_unlink", LIBRARY_GSTREAMER); - Linker.link(gst_element_unlink_many, "gst_element_unlink_many", LIBRARY_GSTREAMER); - Linker.link(gst_element_unlink_pads, "gst_element_unlink_pads", LIBRARY_GSTREAMER); - - // gstreamer.ElementClass - - Linker.link(gst_element_class_add_metadata, "gst_element_class_add_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_add_pad_template, "gst_element_class_add_pad_template", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_add_static_metadata, "gst_element_class_add_static_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_add_static_pad_template, "gst_element_class_add_static_pad_template", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_add_static_pad_template_with_gtype, "gst_element_class_add_static_pad_template_with_gtype", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_get_metadata, "gst_element_class_get_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_get_pad_template, "gst_element_class_get_pad_template", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_get_pad_template_list, "gst_element_class_get_pad_template_list", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_set_metadata, "gst_element_class_set_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_element_class_set_static_metadata, "gst_element_class_set_static_metadata", LIBRARY_GSTREAMER); - - // gstreamer.ElementFactory - - Linker.link(gst_element_factory_get_type, "gst_element_factory_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_find, "gst_element_factory_find", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_list_filter, "gst_element_factory_list_filter", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_list_get_elements, "gst_element_factory_list_get_elements", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_make, "gst_element_factory_make", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_can_sink_all_caps, "gst_element_factory_can_sink_all_caps", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_can_sink_any_caps, "gst_element_factory_can_sink_any_caps", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_can_src_all_caps, "gst_element_factory_can_src_all_caps", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_can_src_any_caps, "gst_element_factory_can_src_any_caps", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_create, "gst_element_factory_create", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_get_element_type, "gst_element_factory_get_element_type", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_get_metadata, "gst_element_factory_get_metadata", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_get_metadata_keys, "gst_element_factory_get_metadata_keys", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_get_num_pad_templates, "gst_element_factory_get_num_pad_templates", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_get_static_pad_templates, "gst_element_factory_get_static_pad_templates", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_get_uri_protocols, "gst_element_factory_get_uri_protocols", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_get_uri_type, "gst_element_factory_get_uri_type", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_has_interface, "gst_element_factory_has_interface", LIBRARY_GSTREAMER); - Linker.link(gst_element_factory_list_is_type, "gst_element_factory_list_is_type", LIBRARY_GSTREAMER); - - // gstreamer.Event - - Linker.link(gst_event_get_type, "gst_event_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_buffer_size, "gst_event_new_buffer_size", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_caps, "gst_event_new_caps", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_custom, "gst_event_new_custom", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_eos, "gst_event_new_eos", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_flush_start, "gst_event_new_flush_start", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_flush_stop, "gst_event_new_flush_stop", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_gap, "gst_event_new_gap", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_instant_rate_change, "gst_event_new_instant_rate_change", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_instant_rate_sync_time, "gst_event_new_instant_rate_sync_time", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_latency, "gst_event_new_latency", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_navigation, "gst_event_new_navigation", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_protection, "gst_event_new_protection", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_qos, "gst_event_new_qos", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_reconfigure, "gst_event_new_reconfigure", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_seek, "gst_event_new_seek", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_segment, "gst_event_new_segment", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_segment_done, "gst_event_new_segment_done", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_select_streams, "gst_event_new_select_streams", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_sink_message, "gst_event_new_sink_message", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_step, "gst_event_new_step", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_stream_collection, "gst_event_new_stream_collection", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_stream_group_done, "gst_event_new_stream_group_done", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_stream_start, "gst_event_new_stream_start", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_tag, "gst_event_new_tag", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_toc, "gst_event_new_toc", LIBRARY_GSTREAMER); - Linker.link(gst_event_new_toc_select, "gst_event_new_toc_select", LIBRARY_GSTREAMER); - Linker.link(gst_event_copy_segment, "gst_event_copy_segment", LIBRARY_GSTREAMER); - Linker.link(gst_event_get_running_time_offset, "gst_event_get_running_time_offset", LIBRARY_GSTREAMER); - Linker.link(gst_event_get_seqnum, "gst_event_get_seqnum", LIBRARY_GSTREAMER); - Linker.link(gst_event_get_structure, "gst_event_get_structure", LIBRARY_GSTREAMER); - Linker.link(gst_event_has_name, "gst_event_has_name", LIBRARY_GSTREAMER); - Linker.link(gst_event_has_name_id, "gst_event_has_name_id", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_buffer_size, "gst_event_parse_buffer_size", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_caps, "gst_event_parse_caps", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_flush_stop, "gst_event_parse_flush_stop", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_gap, "gst_event_parse_gap", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_group_id, "gst_event_parse_group_id", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_instant_rate_change, "gst_event_parse_instant_rate_change", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_instant_rate_sync_time, "gst_event_parse_instant_rate_sync_time", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_latency, "gst_event_parse_latency", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_protection, "gst_event_parse_protection", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_qos, "gst_event_parse_qos", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_seek, "gst_event_parse_seek", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_seek_trickmode_interval, "gst_event_parse_seek_trickmode_interval", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_segment, "gst_event_parse_segment", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_segment_done, "gst_event_parse_segment_done", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_select_streams, "gst_event_parse_select_streams", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_sink_message, "gst_event_parse_sink_message", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_step, "gst_event_parse_step", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_stream, "gst_event_parse_stream", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_stream_collection, "gst_event_parse_stream_collection", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_stream_flags, "gst_event_parse_stream_flags", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_stream_group_done, "gst_event_parse_stream_group_done", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_stream_start, "gst_event_parse_stream_start", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_tag, "gst_event_parse_tag", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_toc, "gst_event_parse_toc", LIBRARY_GSTREAMER); - Linker.link(gst_event_parse_toc_select, "gst_event_parse_toc_select", LIBRARY_GSTREAMER); - Linker.link(gst_event_set_group_id, "gst_event_set_group_id", LIBRARY_GSTREAMER); - Linker.link(gst_event_set_running_time_offset, "gst_event_set_running_time_offset", LIBRARY_GSTREAMER); - Linker.link(gst_event_set_seek_trickmode_interval, "gst_event_set_seek_trickmode_interval", LIBRARY_GSTREAMER); - Linker.link(gst_event_set_seqnum, "gst_event_set_seqnum", LIBRARY_GSTREAMER); - Linker.link(gst_event_set_stream, "gst_event_set_stream", LIBRARY_GSTREAMER); - Linker.link(gst_event_set_stream_flags, "gst_event_set_stream_flags", LIBRARY_GSTREAMER); - Linker.link(gst_event_writable_structure, "gst_event_writable_structure", LIBRARY_GSTREAMER); - Linker.link(gst_event_type_get_flags, "gst_event_type_get_flags", LIBRARY_GSTREAMER); - Linker.link(gst_event_type_get_name, "gst_event_type_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_event_type_to_quark, "gst_event_type_to_quark", LIBRARY_GSTREAMER); - - // gstreamer.FlagSet - - Linker.link(gst_flagset_get_type, "gst_flagset_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_flagset_register, "gst_flagset_register", LIBRARY_GSTREAMER); - - // gstreamer.Fraction - - Linker.link(gst_fraction_get_type, "gst_fraction_get_type", LIBRARY_GSTREAMER); - - // gstreamer.FractionRange - - Linker.link(gst_fraction_range_get_type, "gst_fraction_range_get_type", LIBRARY_GSTREAMER); - - // gstreamer.GhostPad - - Linker.link(gst_ghost_pad_get_type, "gst_ghost_pad_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_new, "gst_ghost_pad_new", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_new_from_template, "gst_ghost_pad_new_from_template", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_new_no_target, "gst_ghost_pad_new_no_target", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_new_no_target_from_template, "gst_ghost_pad_new_no_target_from_template", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_activate_mode_default, "gst_ghost_pad_activate_mode_default", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_internal_activate_mode_default, "gst_ghost_pad_internal_activate_mode_default", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_construct, "gst_ghost_pad_construct", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_get_target, "gst_ghost_pad_get_target", LIBRARY_GSTREAMER); - Linker.link(gst_ghost_pad_set_target, "gst_ghost_pad_set_target", LIBRARY_GSTREAMER); - - // gstreamer.Int64Range - - Linker.link(gst_int64_range_get_type, "gst_int64_range_get_type", LIBRARY_GSTREAMER); - - // gstreamer.IntRange - - Linker.link(gst_int_range_get_type, "gst_int_range_get_type", LIBRARY_GSTREAMER); - - // gstreamer.Iterator - - Linker.link(gst_iterator_get_type, "gst_iterator_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_new, "gst_iterator_new", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_new_list, "gst_iterator_new_list", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_new_single, "gst_iterator_new_single", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_copy, "gst_iterator_copy", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_filter, "gst_iterator_filter", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_find_custom, "gst_iterator_find_custom", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_fold, "gst_iterator_fold", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_foreach, "gst_iterator_foreach", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_free, "gst_iterator_free", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_next, "gst_iterator_next", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_push, "gst_iterator_push", LIBRARY_GSTREAMER); - Linker.link(gst_iterator_resync, "gst_iterator_resync", LIBRARY_GSTREAMER); - - // gstreamer.Memory - - Linker.link(gst_memory_get_type, "gst_memory_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_memory_new_wrapped, "gst_memory_new_wrapped", LIBRARY_GSTREAMER); - Linker.link(gst_memory_copy, "gst_memory_copy", LIBRARY_GSTREAMER); - Linker.link(gst_memory_get_sizes, "gst_memory_get_sizes", LIBRARY_GSTREAMER); - Linker.link(gst_memory_init, "gst_memory_init", LIBRARY_GSTREAMER); - Linker.link(gst_memory_is_span, "gst_memory_is_span", LIBRARY_GSTREAMER); - Linker.link(gst_memory_is_type, "gst_memory_is_type", LIBRARY_GSTREAMER); - Linker.link(gst_memory_make_mapped, "gst_memory_make_mapped", LIBRARY_GSTREAMER); - Linker.link(gst_memory_map, "gst_memory_map", LIBRARY_GSTREAMER); - Linker.link(gst_memory_resize, "gst_memory_resize", LIBRARY_GSTREAMER); - Linker.link(gst_memory_share, "gst_memory_share", LIBRARY_GSTREAMER); - Linker.link(gst_memory_unmap, "gst_memory_unmap", LIBRARY_GSTREAMER); - - // gstreamer.Message - - Linker.link(gst_message_get_type, "gst_message_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_application, "gst_message_new_application", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_async_done, "gst_message_new_async_done", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_async_start, "gst_message_new_async_start", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_buffering, "gst_message_new_buffering", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_clock_lost, "gst_message_new_clock_lost", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_clock_provide, "gst_message_new_clock_provide", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_custom, "gst_message_new_custom", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_device_added, "gst_message_new_device_added", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_device_changed, "gst_message_new_device_changed", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_device_removed, "gst_message_new_device_removed", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_duration_changed, "gst_message_new_duration_changed", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_element, "gst_message_new_element", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_eos, "gst_message_new_eos", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_error, "gst_message_new_error", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_error_with_details, "gst_message_new_error_with_details", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_have_context, "gst_message_new_have_context", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_info, "gst_message_new_info", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_info_with_details, "gst_message_new_info_with_details", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_instant_rate_request, "gst_message_new_instant_rate_request", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_latency, "gst_message_new_latency", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_need_context, "gst_message_new_need_context", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_new_clock, "gst_message_new_new_clock", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_progress, "gst_message_new_progress", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_property_notify, "gst_message_new_property_notify", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_qos, "gst_message_new_qos", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_redirect, "gst_message_new_redirect", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_request_state, "gst_message_new_request_state", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_reset_time, "gst_message_new_reset_time", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_segment_done, "gst_message_new_segment_done", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_segment_start, "gst_message_new_segment_start", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_state_changed, "gst_message_new_state_changed", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_state_dirty, "gst_message_new_state_dirty", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_step_done, "gst_message_new_step_done", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_step_start, "gst_message_new_step_start", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_stream_collection, "gst_message_new_stream_collection", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_stream_start, "gst_message_new_stream_start", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_stream_status, "gst_message_new_stream_status", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_streams_selected, "gst_message_new_streams_selected", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_structure_change, "gst_message_new_structure_change", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_tag, "gst_message_new_tag", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_toc, "gst_message_new_toc", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_warning, "gst_message_new_warning", LIBRARY_GSTREAMER); - Linker.link(gst_message_new_warning_with_details, "gst_message_new_warning_with_details", LIBRARY_GSTREAMER); - Linker.link(gst_message_add_redirect_entry, "gst_message_add_redirect_entry", LIBRARY_GSTREAMER); - Linker.link(gst_message_copy, "gst_message_copy", LIBRARY_GSTREAMER); - Linker.link(gst_message_get_num_redirect_entries, "gst_message_get_num_redirect_entries", LIBRARY_GSTREAMER); - Linker.link(gst_message_get_seqnum, "gst_message_get_seqnum", LIBRARY_GSTREAMER); - Linker.link(gst_message_get_stream_status_object, "gst_message_get_stream_status_object", LIBRARY_GSTREAMER); - Linker.link(gst_message_get_structure, "gst_message_get_structure", LIBRARY_GSTREAMER); - Linker.link(gst_message_has_name, "gst_message_has_name", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_async_done, "gst_message_parse_async_done", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_buffering, "gst_message_parse_buffering", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_buffering_stats, "gst_message_parse_buffering_stats", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_clock_lost, "gst_message_parse_clock_lost", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_clock_provide, "gst_message_parse_clock_provide", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_context_type, "gst_message_parse_context_type", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_device_added, "gst_message_parse_device_added", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_device_changed, "gst_message_parse_device_changed", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_device_removed, "gst_message_parse_device_removed", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_error, "gst_message_parse_error", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_error_details, "gst_message_parse_error_details", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_group_id, "gst_message_parse_group_id", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_have_context, "gst_message_parse_have_context", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_info, "gst_message_parse_info", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_info_details, "gst_message_parse_info_details", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_instant_rate_request, "gst_message_parse_instant_rate_request", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_new_clock, "gst_message_parse_new_clock", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_progress, "gst_message_parse_progress", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_property_notify, "gst_message_parse_property_notify", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_qos, "gst_message_parse_qos", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_qos_stats, "gst_message_parse_qos_stats", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_qos_values, "gst_message_parse_qos_values", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_redirect_entry, "gst_message_parse_redirect_entry", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_request_state, "gst_message_parse_request_state", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_reset_time, "gst_message_parse_reset_time", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_segment_done, "gst_message_parse_segment_done", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_segment_start, "gst_message_parse_segment_start", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_state_changed, "gst_message_parse_state_changed", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_step_done, "gst_message_parse_step_done", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_step_start, "gst_message_parse_step_start", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_stream_collection, "gst_message_parse_stream_collection", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_stream_status, "gst_message_parse_stream_status", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_streams_selected, "gst_message_parse_streams_selected", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_structure_change, "gst_message_parse_structure_change", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_tag, "gst_message_parse_tag", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_toc, "gst_message_parse_toc", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_warning, "gst_message_parse_warning", LIBRARY_GSTREAMER); - Linker.link(gst_message_parse_warning_details, "gst_message_parse_warning_details", LIBRARY_GSTREAMER); - Linker.link(gst_message_set_buffering_stats, "gst_message_set_buffering_stats", LIBRARY_GSTREAMER); - Linker.link(gst_message_set_group_id, "gst_message_set_group_id", LIBRARY_GSTREAMER); - Linker.link(gst_message_set_qos_stats, "gst_message_set_qos_stats", LIBRARY_GSTREAMER); - Linker.link(gst_message_set_qos_values, "gst_message_set_qos_values", LIBRARY_GSTREAMER); - Linker.link(gst_message_set_seqnum, "gst_message_set_seqnum", LIBRARY_GSTREAMER); - Linker.link(gst_message_set_stream_status_object, "gst_message_set_stream_status_object", LIBRARY_GSTREAMER); - Linker.link(gst_message_streams_selected_add, "gst_message_streams_selected_add", LIBRARY_GSTREAMER); - Linker.link(gst_message_streams_selected_get_size, "gst_message_streams_selected_get_size", LIBRARY_GSTREAMER); - Linker.link(gst_message_streams_selected_get_stream, "gst_message_streams_selected_get_stream", LIBRARY_GSTREAMER); - Linker.link(gst_message_writable_structure, "gst_message_writable_structure", LIBRARY_GSTREAMER); - Linker.link(gst_message_replace, "gst_message_replace", LIBRARY_GSTREAMER); - Linker.link(gst_message_type_get_name, "gst_message_type_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_message_type_to_quark, "gst_message_type_to_quark", LIBRARY_GSTREAMER); - - // gstreamer.Meta - - Linker.link(gst_meta_compare_seqnum, "gst_meta_compare_seqnum", LIBRARY_GSTREAMER); - Linker.link(gst_meta_get_seqnum, "gst_meta_get_seqnum", LIBRARY_GSTREAMER); - Linker.link(gst_meta_api_type_get_tags, "gst_meta_api_type_get_tags", LIBRARY_GSTREAMER); - Linker.link(gst_meta_api_type_has_tag, "gst_meta_api_type_has_tag", LIBRARY_GSTREAMER); - Linker.link(gst_meta_api_type_register, "gst_meta_api_type_register", LIBRARY_GSTREAMER); - Linker.link(gst_meta_get_info, "gst_meta_get_info", LIBRARY_GSTREAMER); - Linker.link(gst_meta_register, "gst_meta_register", LIBRARY_GSTREAMER); - - // gstreamer.MiniObject - - Linker.link(gst_mini_object_add_parent, "gst_mini_object_add_parent", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_copy, "gst_mini_object_copy", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_get_qdata, "gst_mini_object_get_qdata", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_init, "gst_mini_object_init", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_is_writable, "gst_mini_object_is_writable", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_lock, "gst_mini_object_lock", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_make_writable, "gst_mini_object_make_writable", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_ref, "gst_mini_object_ref", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_remove_parent, "gst_mini_object_remove_parent", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_set_qdata, "gst_mini_object_set_qdata", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_steal_qdata, "gst_mini_object_steal_qdata", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_unlock, "gst_mini_object_unlock", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_unref, "gst_mini_object_unref", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_weak_ref, "gst_mini_object_weak_ref", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_weak_unref, "gst_mini_object_weak_unref", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_replace, "gst_mini_object_replace", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_steal, "gst_mini_object_steal", LIBRARY_GSTREAMER); - Linker.link(gst_mini_object_take, "gst_mini_object_take", LIBRARY_GSTREAMER); - - // gstreamer.ObjectGst - - Linker.link(gst_object_get_type, "gst_object_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_object_check_uniqueness, "gst_object_check_uniqueness", LIBRARY_GSTREAMER); - Linker.link(gst_object_default_deep_notify, "gst_object_default_deep_notify", LIBRARY_GSTREAMER); - Linker.link(gst_object_ref_sink, "gst_object_ref_sink", LIBRARY_GSTREAMER); - Linker.link(gst_object_replace, "gst_object_replace", LIBRARY_GSTREAMER); - Linker.link(gst_object_add_control_binding, "gst_object_add_control_binding", LIBRARY_GSTREAMER); - Linker.link(gst_object_default_error, "gst_object_default_error", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_control_binding, "gst_object_get_control_binding", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_control_rate, "gst_object_get_control_rate", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_g_value_array, "gst_object_get_g_value_array", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_name, "gst_object_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_parent, "gst_object_get_parent", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_path_string, "gst_object_get_path_string", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_value, "gst_object_get_value", LIBRARY_GSTREAMER); - Linker.link(gst_object_get_value_array, "gst_object_get_value_array", LIBRARY_GSTREAMER); - Linker.link(gst_object_has_active_control_bindings, "gst_object_has_active_control_bindings", LIBRARY_GSTREAMER); - Linker.link(gst_object_has_ancestor, "gst_object_has_ancestor", LIBRARY_GSTREAMER); - Linker.link(gst_object_has_as_ancestor, "gst_object_has_as_ancestor", LIBRARY_GSTREAMER); - Linker.link(gst_object_has_as_parent, "gst_object_has_as_parent", LIBRARY_GSTREAMER); - Linker.link(gst_object_ref, "gst_object_ref", LIBRARY_GSTREAMER); - Linker.link(gst_object_remove_control_binding, "gst_object_remove_control_binding", LIBRARY_GSTREAMER); - Linker.link(gst_object_set_control_binding_disabled, "gst_object_set_control_binding_disabled", LIBRARY_GSTREAMER); - Linker.link(gst_object_set_control_bindings_disabled, "gst_object_set_control_bindings_disabled", LIBRARY_GSTREAMER); - Linker.link(gst_object_set_control_rate, "gst_object_set_control_rate", LIBRARY_GSTREAMER); - Linker.link(gst_object_set_name, "gst_object_set_name", LIBRARY_GSTREAMER); - Linker.link(gst_object_set_parent, "gst_object_set_parent", LIBRARY_GSTREAMER); - Linker.link(gst_object_suggest_next_sync, "gst_object_suggest_next_sync", LIBRARY_GSTREAMER); - Linker.link(gst_object_sync_values, "gst_object_sync_values", LIBRARY_GSTREAMER); - Linker.link(gst_object_unparent, "gst_object_unparent", LIBRARY_GSTREAMER); - Linker.link(gst_object_unref, "gst_object_unref", LIBRARY_GSTREAMER); - - // gstreamer.Pad - - Linker.link(gst_pad_get_type, "gst_pad_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_pad_new, "gst_pad_new", LIBRARY_GSTREAMER); - Linker.link(gst_pad_new_from_static_template, "gst_pad_new_from_static_template", LIBRARY_GSTREAMER); - Linker.link(gst_pad_new_from_template, "gst_pad_new_from_template", LIBRARY_GSTREAMER); - Linker.link(gst_pad_link_get_name, "gst_pad_link_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_pad_activate_mode, "gst_pad_activate_mode", LIBRARY_GSTREAMER); - Linker.link(gst_pad_add_probe, "gst_pad_add_probe", LIBRARY_GSTREAMER); - Linker.link(gst_pad_can_link, "gst_pad_can_link", LIBRARY_GSTREAMER); - Linker.link(gst_pad_chain, "gst_pad_chain", LIBRARY_GSTREAMER); - Linker.link(gst_pad_chain_list, "gst_pad_chain_list", LIBRARY_GSTREAMER); - Linker.link(gst_pad_check_reconfigure, "gst_pad_check_reconfigure", LIBRARY_GSTREAMER); - Linker.link(gst_pad_create_stream_id, "gst_pad_create_stream_id", LIBRARY_GSTREAMER); - Linker.link(gst_pad_create_stream_id_printf, "gst_pad_create_stream_id_printf", LIBRARY_GSTREAMER); - Linker.link(gst_pad_create_stream_id_printf_valist, "gst_pad_create_stream_id_printf_valist", LIBRARY_GSTREAMER); - Linker.link(gst_pad_event_default, "gst_pad_event_default", LIBRARY_GSTREAMER); - Linker.link(gst_pad_forward, "gst_pad_forward", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_allowed_caps, "gst_pad_get_allowed_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_current_caps, "gst_pad_get_current_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_direction, "gst_pad_get_direction", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_element_private, "gst_pad_get_element_private", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_last_flow_return, "gst_pad_get_last_flow_return", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_offset, "gst_pad_get_offset", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_pad_template, "gst_pad_get_pad_template", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_pad_template_caps, "gst_pad_get_pad_template_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_parent_element, "gst_pad_get_parent_element", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_peer, "gst_pad_get_peer", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_range, "gst_pad_get_range", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_single_internal_link, "gst_pad_get_single_internal_link", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_sticky_event, "gst_pad_get_sticky_event", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_stream, "gst_pad_get_stream", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_stream_id, "gst_pad_get_stream_id", LIBRARY_GSTREAMER); - Linker.link(gst_pad_get_task_state, "gst_pad_get_task_state", LIBRARY_GSTREAMER); - Linker.link(gst_pad_has_current_caps, "gst_pad_has_current_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_is_active, "gst_pad_is_active", LIBRARY_GSTREAMER); - Linker.link(gst_pad_is_blocked, "gst_pad_is_blocked", LIBRARY_GSTREAMER); - Linker.link(gst_pad_is_blocking, "gst_pad_is_blocking", LIBRARY_GSTREAMER); - Linker.link(gst_pad_is_linked, "gst_pad_is_linked", LIBRARY_GSTREAMER); - Linker.link(gst_pad_iterate_internal_links, "gst_pad_iterate_internal_links", LIBRARY_GSTREAMER); - Linker.link(gst_pad_iterate_internal_links_default, "gst_pad_iterate_internal_links_default", LIBRARY_GSTREAMER); - Linker.link(gst_pad_link, "gst_pad_link", LIBRARY_GSTREAMER); - Linker.link(gst_pad_link_full, "gst_pad_link_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_link_maybe_ghosting, "gst_pad_link_maybe_ghosting", LIBRARY_GSTREAMER); - Linker.link(gst_pad_link_maybe_ghosting_full, "gst_pad_link_maybe_ghosting_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_mark_reconfigure, "gst_pad_mark_reconfigure", LIBRARY_GSTREAMER); - Linker.link(gst_pad_needs_reconfigure, "gst_pad_needs_reconfigure", LIBRARY_GSTREAMER); - Linker.link(gst_pad_pause_task, "gst_pad_pause_task", LIBRARY_GSTREAMER); - Linker.link(gst_pad_peer_query, "gst_pad_peer_query", LIBRARY_GSTREAMER); - Linker.link(gst_pad_peer_query_accept_caps, "gst_pad_peer_query_accept_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_peer_query_caps, "gst_pad_peer_query_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_peer_query_convert, "gst_pad_peer_query_convert", LIBRARY_GSTREAMER); - Linker.link(gst_pad_peer_query_duration, "gst_pad_peer_query_duration", LIBRARY_GSTREAMER); - Linker.link(gst_pad_peer_query_position, "gst_pad_peer_query_position", LIBRARY_GSTREAMER); - Linker.link(gst_pad_proxy_query_accept_caps, "gst_pad_proxy_query_accept_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_proxy_query_caps, "gst_pad_proxy_query_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_pull_range, "gst_pad_pull_range", LIBRARY_GSTREAMER); - Linker.link(gst_pad_push, "gst_pad_push", LIBRARY_GSTREAMER); - Linker.link(gst_pad_push_event, "gst_pad_push_event", LIBRARY_GSTREAMER); - Linker.link(gst_pad_push_list, "gst_pad_push_list", LIBRARY_GSTREAMER); - Linker.link(gst_pad_query, "gst_pad_query", LIBRARY_GSTREAMER); - Linker.link(gst_pad_query_accept_caps, "gst_pad_query_accept_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_query_caps, "gst_pad_query_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_query_convert, "gst_pad_query_convert", LIBRARY_GSTREAMER); - Linker.link(gst_pad_query_default, "gst_pad_query_default", LIBRARY_GSTREAMER); - Linker.link(gst_pad_query_duration, "gst_pad_query_duration", LIBRARY_GSTREAMER); - Linker.link(gst_pad_query_position, "gst_pad_query_position", LIBRARY_GSTREAMER); - Linker.link(gst_pad_remove_probe, "gst_pad_remove_probe", LIBRARY_GSTREAMER); - Linker.link(gst_pad_send_event, "gst_pad_send_event", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_activate_function_full, "gst_pad_set_activate_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_activatemode_function_full, "gst_pad_set_activatemode_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_active, "gst_pad_set_active", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_chain_function_full, "gst_pad_set_chain_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_chain_list_function_full, "gst_pad_set_chain_list_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_element_private, "gst_pad_set_element_private", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_event_full_function_full, "gst_pad_set_event_full_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_event_function_full, "gst_pad_set_event_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_getrange_function_full, "gst_pad_set_getrange_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_iterate_internal_links_function_full, "gst_pad_set_iterate_internal_links_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_link_function_full, "gst_pad_set_link_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_offset, "gst_pad_set_offset", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_query_function_full, "gst_pad_set_query_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_set_unlink_function_full, "gst_pad_set_unlink_function_full", LIBRARY_GSTREAMER); - Linker.link(gst_pad_start_task, "gst_pad_start_task", LIBRARY_GSTREAMER); - Linker.link(gst_pad_sticky_events_foreach, "gst_pad_sticky_events_foreach", LIBRARY_GSTREAMER); - Linker.link(gst_pad_stop_task, "gst_pad_stop_task", LIBRARY_GSTREAMER); - Linker.link(gst_pad_store_sticky_event, "gst_pad_store_sticky_event", LIBRARY_GSTREAMER); - Linker.link(gst_pad_unlink, "gst_pad_unlink", LIBRARY_GSTREAMER); - Linker.link(gst_pad_use_fixed_caps, "gst_pad_use_fixed_caps", LIBRARY_GSTREAMER); - Linker.link(gst_flow_get_name, "gst_flow_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_flow_to_quark, "gst_flow_to_quark", LIBRARY_GSTREAMER); - Linker.link(gst_pad_mode_get_name, "gst_pad_mode_get_name", LIBRARY_GSTREAMER); - - // gstreamer.PadProbeInfo - - Linker.link(gst_pad_probe_info_get_buffer, "gst_pad_probe_info_get_buffer", LIBRARY_GSTREAMER); - Linker.link(gst_pad_probe_info_get_buffer_list, "gst_pad_probe_info_get_buffer_list", LIBRARY_GSTREAMER); - Linker.link(gst_pad_probe_info_get_event, "gst_pad_probe_info_get_event", LIBRARY_GSTREAMER); - Linker.link(gst_pad_probe_info_get_query, "gst_pad_probe_info_get_query", LIBRARY_GSTREAMER); - - // gstreamer.PadTemplate - - Linker.link(gst_pad_template_get_type, "gst_pad_template_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_pad_template_new, "gst_pad_template_new", LIBRARY_GSTREAMER); - Linker.link(gst_pad_template_new_from_static_pad_template_with_gtype, "gst_pad_template_new_from_static_pad_template_with_gtype", LIBRARY_GSTREAMER); - Linker.link(gst_pad_template_new_with_gtype, "gst_pad_template_new_with_gtype", LIBRARY_GSTREAMER); - Linker.link(gst_pad_template_get_caps, "gst_pad_template_get_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_template_get_documentation_caps, "gst_pad_template_get_documentation_caps", LIBRARY_GSTREAMER); - Linker.link(gst_pad_template_pad_created, "gst_pad_template_pad_created", LIBRARY_GSTREAMER); - Linker.link(gst_pad_template_set_documentation_caps, "gst_pad_template_set_documentation_caps", LIBRARY_GSTREAMER); - - // gstreamer.ParamArray - - Linker.link(gst_param_spec_array_get_type, "gst_param_spec_array_get_type", LIBRARY_GSTREAMER); - - // gstreamer.ParamFraction - - Linker.link(gst_param_spec_fraction_get_type, "gst_param_spec_fraction_get_type", LIBRARY_GSTREAMER); - - // gstreamer.ParamSpecFraction - - Linker.link(gst_param_spec_fraction, "gst_param_spec_fraction", LIBRARY_GSTREAMER); - - // gstreamer.ParentBufferMeta - - Linker.link(gst_parent_buffer_meta_get_info, "gst_parent_buffer_meta_get_info", LIBRARY_GSTREAMER); - Linker.link(gst_parent_buffer_meta_api_get_type, "gst_parent_buffer_meta_api_get_type", LIBRARY_GSTREAMER); - - // gstreamer.ParseContext - - Linker.link(gst_parse_context_get_type, "gst_parse_context_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_parse_context_new, "gst_parse_context_new", LIBRARY_GSTREAMER); - Linker.link(gst_parse_context_copy, "gst_parse_context_copy", LIBRARY_GSTREAMER); - Linker.link(gst_parse_context_free, "gst_parse_context_free", LIBRARY_GSTREAMER); - Linker.link(gst_parse_context_get_missing_elements, "gst_parse_context_get_missing_elements", LIBRARY_GSTREAMER); - - // gstreamer.Pipeline - - Linker.link(gst_pipeline_get_type, "gst_pipeline_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_new, "gst_pipeline_new", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_auto_clock, "gst_pipeline_auto_clock", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_get_auto_flush_bus, "gst_pipeline_get_auto_flush_bus", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_get_bus, "gst_pipeline_get_bus", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_get_clock, "gst_pipeline_get_clock", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_get_delay, "gst_pipeline_get_delay", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_get_latency, "gst_pipeline_get_latency", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_get_pipeline_clock, "gst_pipeline_get_pipeline_clock", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_set_auto_flush_bus, "gst_pipeline_set_auto_flush_bus", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_set_clock, "gst_pipeline_set_clock", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_set_delay, "gst_pipeline_set_delay", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_set_latency, "gst_pipeline_set_latency", LIBRARY_GSTREAMER); - Linker.link(gst_pipeline_use_clock, "gst_pipeline_use_clock", LIBRARY_GSTREAMER); - - // gstreamer.Plugin - - Linker.link(gst_plugin_get_type, "gst_plugin_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_list_free, "gst_plugin_list_free", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_load_by_name, "gst_plugin_load_by_name", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_load_file, "gst_plugin_load_file", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_register_static, "gst_plugin_register_static", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_register_static_full, "gst_plugin_register_static_full", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_add_dependency, "gst_plugin_add_dependency", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_add_dependency_simple, "gst_plugin_add_dependency_simple", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_cache_data, "gst_plugin_get_cache_data", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_description, "gst_plugin_get_description", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_filename, "gst_plugin_get_filename", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_license, "gst_plugin_get_license", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_name, "gst_plugin_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_origin, "gst_plugin_get_origin", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_package, "gst_plugin_get_package", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_release_date_string, "gst_plugin_get_release_date_string", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_source, "gst_plugin_get_source", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_get_version, "gst_plugin_get_version", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_is_loaded, "gst_plugin_is_loaded", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_load, "gst_plugin_load", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_set_cache_data, "gst_plugin_set_cache_data", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_error_quark, "gst_plugin_error_quark", LIBRARY_GSTREAMER); - - // gstreamer.PluginFeature - - Linker.link(gst_plugin_feature_get_type, "gst_plugin_feature_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_list_copy, "gst_plugin_feature_list_copy", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_list_debug, "gst_plugin_feature_list_debug", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_list_free, "gst_plugin_feature_list_free", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_rank_compare_func, "gst_plugin_feature_rank_compare_func", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_check_version, "gst_plugin_feature_check_version", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_get_plugin, "gst_plugin_feature_get_plugin", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_get_plugin_name, "gst_plugin_feature_get_plugin_name", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_get_rank, "gst_plugin_feature_get_rank", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_load, "gst_plugin_feature_load", LIBRARY_GSTREAMER); - Linker.link(gst_plugin_feature_set_rank, "gst_plugin_feature_set_rank", LIBRARY_GSTREAMER); - - // gstreamer.Poll - - Linker.link(gst_poll_add_fd, "gst_poll_add_fd", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_can_read, "gst_poll_fd_can_read", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_can_write, "gst_poll_fd_can_write", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_ctl_pri, "gst_poll_fd_ctl_pri", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_ctl_read, "gst_poll_fd_ctl_read", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_ctl_write, "gst_poll_fd_ctl_write", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_has_closed, "gst_poll_fd_has_closed", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_has_error, "gst_poll_fd_has_error", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_has_pri, "gst_poll_fd_has_pri", LIBRARY_GSTREAMER); - Linker.link(gst_poll_fd_ignored, "gst_poll_fd_ignored", LIBRARY_GSTREAMER); - Linker.link(gst_poll_free, "gst_poll_free", LIBRARY_GSTREAMER); - Linker.link(gst_poll_get_read_gpollfd, "gst_poll_get_read_gpollfd", LIBRARY_GSTREAMER); - Linker.link(gst_poll_read_control, "gst_poll_read_control", LIBRARY_GSTREAMER); - Linker.link(gst_poll_remove_fd, "gst_poll_remove_fd", LIBRARY_GSTREAMER); - Linker.link(gst_poll_restart, "gst_poll_restart", LIBRARY_GSTREAMER); - Linker.link(gst_poll_set_controllable, "gst_poll_set_controllable", LIBRARY_GSTREAMER); - Linker.link(gst_poll_set_flushing, "gst_poll_set_flushing", LIBRARY_GSTREAMER); - Linker.link(gst_poll_wait, "gst_poll_wait", LIBRARY_GSTREAMER); - Linker.link(gst_poll_write_control, "gst_poll_write_control", LIBRARY_GSTREAMER); - Linker.link(gst_poll_new, "gst_poll_new", LIBRARY_GSTREAMER); - Linker.link(gst_poll_new_timer, "gst_poll_new_timer", LIBRARY_GSTREAMER); - - // gstreamer.PollFD - - Linker.link(gst_poll_fd_init, "gst_poll_fd_init", LIBRARY_GSTREAMER); - - // gstreamer.Preset - - Linker.link(gst_preset_get_type, "gst_preset_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_preset_get_app_dir, "gst_preset_get_app_dir", LIBRARY_GSTREAMER); - Linker.link(gst_preset_set_app_dir, "gst_preset_set_app_dir", LIBRARY_GSTREAMER); - Linker.link(gst_preset_delete_preset, "gst_preset_delete_preset", LIBRARY_GSTREAMER); - Linker.link(gst_preset_get_meta, "gst_preset_get_meta", LIBRARY_GSTREAMER); - Linker.link(gst_preset_get_preset_names, "gst_preset_get_preset_names", LIBRARY_GSTREAMER); - Linker.link(gst_preset_get_property_names, "gst_preset_get_property_names", LIBRARY_GSTREAMER); - Linker.link(gst_preset_is_editable, "gst_preset_is_editable", LIBRARY_GSTREAMER); - Linker.link(gst_preset_load_preset, "gst_preset_load_preset", LIBRARY_GSTREAMER); - Linker.link(gst_preset_rename_preset, "gst_preset_rename_preset", LIBRARY_GSTREAMER); - Linker.link(gst_preset_save_preset, "gst_preset_save_preset", LIBRARY_GSTREAMER); - Linker.link(gst_preset_set_meta, "gst_preset_set_meta", LIBRARY_GSTREAMER); - - // gstreamer.Promise - - Linker.link(gst_promise_get_type, "gst_promise_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_promise_new, "gst_promise_new", LIBRARY_GSTREAMER); - Linker.link(gst_promise_new_with_change_func, "gst_promise_new_with_change_func", LIBRARY_GSTREAMER); - Linker.link(gst_promise_expire, "gst_promise_expire", LIBRARY_GSTREAMER); - Linker.link(gst_promise_get_reply, "gst_promise_get_reply", LIBRARY_GSTREAMER); - Linker.link(gst_promise_interrupt, "gst_promise_interrupt", LIBRARY_GSTREAMER); - Linker.link(gst_promise_reply, "gst_promise_reply", LIBRARY_GSTREAMER); - Linker.link(gst_promise_wait, "gst_promise_wait", LIBRARY_GSTREAMER); - - // gstreamer.ProtectionMeta - - Linker.link(gst_protection_meta_get_info, "gst_protection_meta_get_info", LIBRARY_GSTREAMER); - Linker.link(gst_protection_meta_api_get_type, "gst_protection_meta_api_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_protection_select_system, "gst_protection_select_system", LIBRARY_GSTREAMER); - - // gstreamer.ProxyPad - - Linker.link(gst_proxy_pad_get_type, "gst_proxy_pad_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_proxy_pad_chain_default, "gst_proxy_pad_chain_default", LIBRARY_GSTREAMER); - Linker.link(gst_proxy_pad_chain_list_default, "gst_proxy_pad_chain_list_default", LIBRARY_GSTREAMER); - Linker.link(gst_proxy_pad_getrange_default, "gst_proxy_pad_getrange_default", LIBRARY_GSTREAMER); - Linker.link(gst_proxy_pad_iterate_internal_links_default, "gst_proxy_pad_iterate_internal_links_default", LIBRARY_GSTREAMER); - Linker.link(gst_proxy_pad_get_internal, "gst_proxy_pad_get_internal", LIBRARY_GSTREAMER); - - // gstreamer.Query - - Linker.link(gst_query_get_type, "gst_query_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_accept_caps, "gst_query_new_accept_caps", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_allocation, "gst_query_new_allocation", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_bitrate, "gst_query_new_bitrate", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_buffering, "gst_query_new_buffering", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_caps, "gst_query_new_caps", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_context, "gst_query_new_context", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_convert, "gst_query_new_convert", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_custom, "gst_query_new_custom", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_drain, "gst_query_new_drain", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_duration, "gst_query_new_duration", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_formats, "gst_query_new_formats", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_latency, "gst_query_new_latency", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_position, "gst_query_new_position", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_scheduling, "gst_query_new_scheduling", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_seeking, "gst_query_new_seeking", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_segment, "gst_query_new_segment", LIBRARY_GSTREAMER); - Linker.link(gst_query_new_uri, "gst_query_new_uri", LIBRARY_GSTREAMER); - Linker.link(gst_query_add_allocation_meta, "gst_query_add_allocation_meta", LIBRARY_GSTREAMER); - Linker.link(gst_query_add_allocation_param, "gst_query_add_allocation_param", LIBRARY_GSTREAMER); - Linker.link(gst_query_add_allocation_pool, "gst_query_add_allocation_pool", LIBRARY_GSTREAMER); - Linker.link(gst_query_add_buffering_range, "gst_query_add_buffering_range", LIBRARY_GSTREAMER); - Linker.link(gst_query_add_scheduling_mode, "gst_query_add_scheduling_mode", LIBRARY_GSTREAMER); - Linker.link(gst_query_find_allocation_meta, "gst_query_find_allocation_meta", LIBRARY_GSTREAMER); - Linker.link(gst_query_get_n_allocation_metas, "gst_query_get_n_allocation_metas", LIBRARY_GSTREAMER); - Linker.link(gst_query_get_n_allocation_params, "gst_query_get_n_allocation_params", LIBRARY_GSTREAMER); - Linker.link(gst_query_get_n_allocation_pools, "gst_query_get_n_allocation_pools", LIBRARY_GSTREAMER); - Linker.link(gst_query_get_n_buffering_ranges, "gst_query_get_n_buffering_ranges", LIBRARY_GSTREAMER); - Linker.link(gst_query_get_n_scheduling_modes, "gst_query_get_n_scheduling_modes", LIBRARY_GSTREAMER); - Linker.link(gst_query_get_structure, "gst_query_get_structure", LIBRARY_GSTREAMER); - Linker.link(gst_query_has_scheduling_mode, "gst_query_has_scheduling_mode", LIBRARY_GSTREAMER); - Linker.link(gst_query_has_scheduling_mode_with_flags, "gst_query_has_scheduling_mode_with_flags", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_accept_caps, "gst_query_parse_accept_caps", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_accept_caps_result, "gst_query_parse_accept_caps_result", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_allocation, "gst_query_parse_allocation", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_bitrate, "gst_query_parse_bitrate", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_buffering_percent, "gst_query_parse_buffering_percent", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_buffering_range, "gst_query_parse_buffering_range", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_buffering_stats, "gst_query_parse_buffering_stats", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_caps, "gst_query_parse_caps", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_caps_result, "gst_query_parse_caps_result", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_context, "gst_query_parse_context", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_context_type, "gst_query_parse_context_type", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_convert, "gst_query_parse_convert", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_duration, "gst_query_parse_duration", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_latency, "gst_query_parse_latency", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_n_formats, "gst_query_parse_n_formats", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_nth_allocation_meta, "gst_query_parse_nth_allocation_meta", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_nth_allocation_param, "gst_query_parse_nth_allocation_param", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_nth_allocation_pool, "gst_query_parse_nth_allocation_pool", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_nth_buffering_range, "gst_query_parse_nth_buffering_range", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_nth_format, "gst_query_parse_nth_format", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_nth_scheduling_mode, "gst_query_parse_nth_scheduling_mode", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_position, "gst_query_parse_position", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_scheduling, "gst_query_parse_scheduling", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_seeking, "gst_query_parse_seeking", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_segment, "gst_query_parse_segment", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_uri, "gst_query_parse_uri", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_uri_redirection, "gst_query_parse_uri_redirection", LIBRARY_GSTREAMER); - Linker.link(gst_query_parse_uri_redirection_permanent, "gst_query_parse_uri_redirection_permanent", LIBRARY_GSTREAMER); - Linker.link(gst_query_remove_nth_allocation_meta, "gst_query_remove_nth_allocation_meta", LIBRARY_GSTREAMER); - Linker.link(gst_query_remove_nth_allocation_param, "gst_query_remove_nth_allocation_param", LIBRARY_GSTREAMER); - Linker.link(gst_query_remove_nth_allocation_pool, "gst_query_remove_nth_allocation_pool", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_accept_caps_result, "gst_query_set_accept_caps_result", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_bitrate, "gst_query_set_bitrate", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_buffering_percent, "gst_query_set_buffering_percent", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_buffering_range, "gst_query_set_buffering_range", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_buffering_stats, "gst_query_set_buffering_stats", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_caps_result, "gst_query_set_caps_result", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_context, "gst_query_set_context", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_convert, "gst_query_set_convert", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_duration, "gst_query_set_duration", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_formats, "gst_query_set_formats", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_formatsv, "gst_query_set_formatsv", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_latency, "gst_query_set_latency", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_nth_allocation_param, "gst_query_set_nth_allocation_param", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_nth_allocation_pool, "gst_query_set_nth_allocation_pool", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_position, "gst_query_set_position", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_scheduling, "gst_query_set_scheduling", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_seeking, "gst_query_set_seeking", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_segment, "gst_query_set_segment", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_uri, "gst_query_set_uri", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_uri_redirection, "gst_query_set_uri_redirection", LIBRARY_GSTREAMER); - Linker.link(gst_query_set_uri_redirection_permanent, "gst_query_set_uri_redirection_permanent", LIBRARY_GSTREAMER); - Linker.link(gst_query_writable_structure, "gst_query_writable_structure", LIBRARY_GSTREAMER); - Linker.link(gst_query_type_get_flags, "gst_query_type_get_flags", LIBRARY_GSTREAMER); - Linker.link(gst_query_type_get_name, "gst_query_type_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_query_type_to_quark, "gst_query_type_to_quark", LIBRARY_GSTREAMER); - - // gstreamer.ReferenceTimestampMeta - - Linker.link(gst_reference_timestamp_meta_get_info, "gst_reference_timestamp_meta_get_info", LIBRARY_GSTREAMER); - - // gstreamer.Registry - - Linker.link(gst_registry_get_type, "gst_registry_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_registry_fork_is_enabled, "gst_registry_fork_is_enabled", LIBRARY_GSTREAMER); - Linker.link(gst_registry_fork_set_enabled, "gst_registry_fork_set_enabled", LIBRARY_GSTREAMER); - Linker.link(gst_registry_get, "gst_registry_get", LIBRARY_GSTREAMER); - Linker.link(gst_registry_add_feature, "gst_registry_add_feature", LIBRARY_GSTREAMER); - Linker.link(gst_registry_add_plugin, "gst_registry_add_plugin", LIBRARY_GSTREAMER); - Linker.link(gst_registry_check_feature_version, "gst_registry_check_feature_version", LIBRARY_GSTREAMER); - Linker.link(gst_registry_feature_filter, "gst_registry_feature_filter", LIBRARY_GSTREAMER); - Linker.link(gst_registry_find_feature, "gst_registry_find_feature", LIBRARY_GSTREAMER); - Linker.link(gst_registry_find_plugin, "gst_registry_find_plugin", LIBRARY_GSTREAMER); - Linker.link(gst_registry_get_feature_list, "gst_registry_get_feature_list", LIBRARY_GSTREAMER); - Linker.link(gst_registry_get_feature_list_by_plugin, "gst_registry_get_feature_list_by_plugin", LIBRARY_GSTREAMER); - Linker.link(gst_registry_get_feature_list_cookie, "gst_registry_get_feature_list_cookie", LIBRARY_GSTREAMER); - Linker.link(gst_registry_get_plugin_list, "gst_registry_get_plugin_list", LIBRARY_GSTREAMER); - Linker.link(gst_registry_lookup, "gst_registry_lookup", LIBRARY_GSTREAMER); - Linker.link(gst_registry_lookup_feature, "gst_registry_lookup_feature", LIBRARY_GSTREAMER); - Linker.link(gst_registry_plugin_filter, "gst_registry_plugin_filter", LIBRARY_GSTREAMER); - Linker.link(gst_registry_remove_feature, "gst_registry_remove_feature", LIBRARY_GSTREAMER); - Linker.link(gst_registry_remove_plugin, "gst_registry_remove_plugin", LIBRARY_GSTREAMER); - Linker.link(gst_registry_scan_path, "gst_registry_scan_path", LIBRARY_GSTREAMER); - - // gstreamer.Sample - - Linker.link(gst_sample_get_type, "gst_sample_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_sample_new, "gst_sample_new", LIBRARY_GSTREAMER); - Linker.link(gst_sample_get_buffer, "gst_sample_get_buffer", LIBRARY_GSTREAMER); - Linker.link(gst_sample_get_buffer_list, "gst_sample_get_buffer_list", LIBRARY_GSTREAMER); - Linker.link(gst_sample_get_caps, "gst_sample_get_caps", LIBRARY_GSTREAMER); - Linker.link(gst_sample_get_info, "gst_sample_get_info", LIBRARY_GSTREAMER); - Linker.link(gst_sample_get_segment, "gst_sample_get_segment", LIBRARY_GSTREAMER); - Linker.link(gst_sample_set_buffer, "gst_sample_set_buffer", LIBRARY_GSTREAMER); - Linker.link(gst_sample_set_buffer_list, "gst_sample_set_buffer_list", LIBRARY_GSTREAMER); - Linker.link(gst_sample_set_caps, "gst_sample_set_caps", LIBRARY_GSTREAMER); - Linker.link(gst_sample_set_info, "gst_sample_set_info", LIBRARY_GSTREAMER); - Linker.link(gst_sample_set_segment, "gst_sample_set_segment", LIBRARY_GSTREAMER); - - // gstreamer.Segment - - Linker.link(gst_segment_get_type, "gst_segment_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_segment_new, "gst_segment_new", LIBRARY_GSTREAMER); - Linker.link(gst_segment_clip, "gst_segment_clip", LIBRARY_GSTREAMER); - Linker.link(gst_segment_copy, "gst_segment_copy", LIBRARY_GSTREAMER); - Linker.link(gst_segment_copy_into, "gst_segment_copy_into", LIBRARY_GSTREAMER); - Linker.link(gst_segment_do_seek, "gst_segment_do_seek", LIBRARY_GSTREAMER); - Linker.link(gst_segment_free, "gst_segment_free", LIBRARY_GSTREAMER); - Linker.link(gst_segment_init, "gst_segment_init", LIBRARY_GSTREAMER); - Linker.link(gst_segment_is_equal, "gst_segment_is_equal", LIBRARY_GSTREAMER); - Linker.link(gst_segment_offset_running_time, "gst_segment_offset_running_time", LIBRARY_GSTREAMER); - Linker.link(gst_segment_position_from_running_time, "gst_segment_position_from_running_time", LIBRARY_GSTREAMER); - Linker.link(gst_segment_position_from_running_time_full, "gst_segment_position_from_running_time_full", LIBRARY_GSTREAMER); - Linker.link(gst_segment_position_from_stream_time, "gst_segment_position_from_stream_time", LIBRARY_GSTREAMER); - Linker.link(gst_segment_position_from_stream_time_full, "gst_segment_position_from_stream_time_full", LIBRARY_GSTREAMER); - Linker.link(gst_segment_set_running_time, "gst_segment_set_running_time", LIBRARY_GSTREAMER); - Linker.link(gst_segment_to_position, "gst_segment_to_position", LIBRARY_GSTREAMER); - Linker.link(gst_segment_to_running_time, "gst_segment_to_running_time", LIBRARY_GSTREAMER); - Linker.link(gst_segment_to_running_time_full, "gst_segment_to_running_time_full", LIBRARY_GSTREAMER); - Linker.link(gst_segment_to_stream_time, "gst_segment_to_stream_time", LIBRARY_GSTREAMER); - Linker.link(gst_segment_to_stream_time_full, "gst_segment_to_stream_time_full", LIBRARY_GSTREAMER); - - // gstreamer.StaticCaps - - Linker.link(gst_static_caps_cleanup, "gst_static_caps_cleanup", LIBRARY_GSTREAMER); - Linker.link(gst_static_caps_get, "gst_static_caps_get", LIBRARY_GSTREAMER); - - // gstreamer.StaticPadTemplate - - Linker.link(gst_static_pad_template_get, "gst_static_pad_template_get", LIBRARY_GSTREAMER); - Linker.link(gst_static_pad_template_get_caps, "gst_static_pad_template_get_caps", LIBRARY_GSTREAMER); - - // gstreamer.Stream - - Linker.link(gst_stream_get_type, "gst_stream_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_stream_new, "gst_stream_new", LIBRARY_GSTREAMER); - Linker.link(gst_stream_get_caps, "gst_stream_get_caps", LIBRARY_GSTREAMER); - Linker.link(gst_stream_get_stream_flags, "gst_stream_get_stream_flags", LIBRARY_GSTREAMER); - Linker.link(gst_stream_get_stream_id, "gst_stream_get_stream_id", LIBRARY_GSTREAMER); - Linker.link(gst_stream_get_stream_type, "gst_stream_get_stream_type", LIBRARY_GSTREAMER); - Linker.link(gst_stream_get_tags, "gst_stream_get_tags", LIBRARY_GSTREAMER); - Linker.link(gst_stream_set_caps, "gst_stream_set_caps", LIBRARY_GSTREAMER); - Linker.link(gst_stream_set_stream_flags, "gst_stream_set_stream_flags", LIBRARY_GSTREAMER); - Linker.link(gst_stream_set_stream_type, "gst_stream_set_stream_type", LIBRARY_GSTREAMER); - Linker.link(gst_stream_set_tags, "gst_stream_set_tags", LIBRARY_GSTREAMER); - - // gstreamer.StreamCollection - - Linker.link(gst_stream_collection_get_type, "gst_stream_collection_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_stream_collection_new, "gst_stream_collection_new", LIBRARY_GSTREAMER); - Linker.link(gst_stream_collection_add_stream, "gst_stream_collection_add_stream", LIBRARY_GSTREAMER); - Linker.link(gst_stream_collection_get_size, "gst_stream_collection_get_size", LIBRARY_GSTREAMER); - Linker.link(gst_stream_collection_get_stream, "gst_stream_collection_get_stream", LIBRARY_GSTREAMER); - Linker.link(gst_stream_collection_get_upstream_id, "gst_stream_collection_get_upstream_id", LIBRARY_GSTREAMER); - - // gstreamer.Structure - - Linker.link(gst_structure_get_type, "gst_structure_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_structure_from_string, "gst_structure_from_string", LIBRARY_GSTREAMER); - Linker.link(gst_structure_new, "gst_structure_new", LIBRARY_GSTREAMER); - Linker.link(gst_structure_new_empty, "gst_structure_new_empty", LIBRARY_GSTREAMER); - Linker.link(gst_structure_new_from_string, "gst_structure_new_from_string", LIBRARY_GSTREAMER); - Linker.link(gst_structure_new_id, "gst_structure_new_id", LIBRARY_GSTREAMER); - Linker.link(gst_structure_new_id_empty, "gst_structure_new_id_empty", LIBRARY_GSTREAMER); - Linker.link(gst_structure_new_valist, "gst_structure_new_valist", LIBRARY_GSTREAMER); - Linker.link(gst_structure_can_intersect, "gst_structure_can_intersect", LIBRARY_GSTREAMER); - Linker.link(gst_structure_copy, "gst_structure_copy", LIBRARY_GSTREAMER); - Linker.link(gst_structure_filter_and_map_in_place, "gst_structure_filter_and_map_in_place", LIBRARY_GSTREAMER); - Linker.link(gst_structure_fixate, "gst_structure_fixate", LIBRARY_GSTREAMER); - Linker.link(gst_structure_fixate_field, "gst_structure_fixate_field", LIBRARY_GSTREAMER); - Linker.link(gst_structure_fixate_field_boolean, "gst_structure_fixate_field_boolean", LIBRARY_GSTREAMER); - Linker.link(gst_structure_fixate_field_nearest_double, "gst_structure_fixate_field_nearest_double", LIBRARY_GSTREAMER); - Linker.link(gst_structure_fixate_field_nearest_fraction, "gst_structure_fixate_field_nearest_fraction", LIBRARY_GSTREAMER); - Linker.link(gst_structure_fixate_field_nearest_int, "gst_structure_fixate_field_nearest_int", LIBRARY_GSTREAMER); - Linker.link(gst_structure_fixate_field_string, "gst_structure_fixate_field_string", LIBRARY_GSTREAMER); - Linker.link(gst_structure_foreach, "gst_structure_foreach", LIBRARY_GSTREAMER); - Linker.link(gst_structure_free, "gst_structure_free", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get, "gst_structure_get", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_array, "gst_structure_get_array", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_boolean, "gst_structure_get_boolean", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_clock_time, "gst_structure_get_clock_time", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_date, "gst_structure_get_date", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_date_time, "gst_structure_get_date_time", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_double, "gst_structure_get_double", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_enum, "gst_structure_get_enum", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_field_type, "gst_structure_get_field_type", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_flagset, "gst_structure_get_flagset", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_fraction, "gst_structure_get_fraction", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_int, "gst_structure_get_int", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_int64, "gst_structure_get_int64", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_list, "gst_structure_get_list", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_name, "gst_structure_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_name_id, "gst_structure_get_name_id", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_string, "gst_structure_get_string", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_uint, "gst_structure_get_uint", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_uint64, "gst_structure_get_uint64", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_valist, "gst_structure_get_valist", LIBRARY_GSTREAMER); - Linker.link(gst_structure_get_value, "gst_structure_get_value", LIBRARY_GSTREAMER); - Linker.link(gst_structure_has_field, "gst_structure_has_field", LIBRARY_GSTREAMER); - Linker.link(gst_structure_has_field_typed, "gst_structure_has_field_typed", LIBRARY_GSTREAMER); - Linker.link(gst_structure_has_name, "gst_structure_has_name", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_get, "gst_structure_id_get", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_get_valist, "gst_structure_id_get_valist", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_get_value, "gst_structure_id_get_value", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_has_field, "gst_structure_id_has_field", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_has_field_typed, "gst_structure_id_has_field_typed", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_set, "gst_structure_id_set", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_set_valist, "gst_structure_id_set_valist", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_set_value, "gst_structure_id_set_value", LIBRARY_GSTREAMER); - Linker.link(gst_structure_id_take_value, "gst_structure_id_take_value", LIBRARY_GSTREAMER); - Linker.link(gst_structure_intersect, "gst_structure_intersect", LIBRARY_GSTREAMER); - Linker.link(gst_structure_is_equal, "gst_structure_is_equal", LIBRARY_GSTREAMER); - Linker.link(gst_structure_is_subset, "gst_structure_is_subset", LIBRARY_GSTREAMER); - Linker.link(gst_structure_map_in_place, "gst_structure_map_in_place", LIBRARY_GSTREAMER); - Linker.link(gst_structure_n_fields, "gst_structure_n_fields", LIBRARY_GSTREAMER); - Linker.link(gst_structure_nth_field_name, "gst_structure_nth_field_name", LIBRARY_GSTREAMER); - Linker.link(gst_structure_remove_all_fields, "gst_structure_remove_all_fields", LIBRARY_GSTREAMER); - Linker.link(gst_structure_remove_field, "gst_structure_remove_field", LIBRARY_GSTREAMER); - Linker.link(gst_structure_remove_fields, "gst_structure_remove_fields", LIBRARY_GSTREAMER); - Linker.link(gst_structure_remove_fields_valist, "gst_structure_remove_fields_valist", LIBRARY_GSTREAMER); - Linker.link(gst_structure_set, "gst_structure_set", LIBRARY_GSTREAMER); - Linker.link(gst_structure_set_array, "gst_structure_set_array", LIBRARY_GSTREAMER); - Linker.link(gst_structure_set_list, "gst_structure_set_list", LIBRARY_GSTREAMER); - Linker.link(gst_structure_set_name, "gst_structure_set_name", LIBRARY_GSTREAMER); - Linker.link(gst_structure_set_parent_refcount, "gst_structure_set_parent_refcount", LIBRARY_GSTREAMER); - Linker.link(gst_structure_set_valist, "gst_structure_set_valist", LIBRARY_GSTREAMER); - Linker.link(gst_structure_set_value, "gst_structure_set_value", LIBRARY_GSTREAMER); - Linker.link(gst_structure_take_value, "gst_structure_take_value", LIBRARY_GSTREAMER); - Linker.link(gst_structure_to_string, "gst_structure_to_string", LIBRARY_GSTREAMER); - Linker.link(gst_structure_take, "gst_structure_take", LIBRARY_GSTREAMER); - - // gstreamer.SystemClock - - Linker.link(gst_system_clock_get_type, "gst_system_clock_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_system_clock_obtain, "gst_system_clock_obtain", LIBRARY_GSTREAMER); - Linker.link(gst_system_clock_set_default, "gst_system_clock_set_default", LIBRARY_GSTREAMER); - - // gstreamer.TagList - - Linker.link(gst_tag_get_type, "gst_tag_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_new, "gst_tag_list_new", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_new_empty, "gst_tag_list_new_empty", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_new_from_string, "gst_tag_list_new_from_string", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_new_valist, "gst_tag_list_new_valist", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_add, "gst_tag_list_add", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_add_valist, "gst_tag_list_add_valist", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_add_valist_values, "gst_tag_list_add_valist_values", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_add_value, "gst_tag_list_add_value", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_add_values, "gst_tag_list_add_values", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_copy, "gst_tag_list_copy", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_foreach, "gst_tag_list_foreach", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_boolean, "gst_tag_list_get_boolean", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_boolean_index, "gst_tag_list_get_boolean_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_date, "gst_tag_list_get_date", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_date_index, "gst_tag_list_get_date_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_date_time, "gst_tag_list_get_date_time", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_date_time_index, "gst_tag_list_get_date_time_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_double, "gst_tag_list_get_double", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_double_index, "gst_tag_list_get_double_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_float, "gst_tag_list_get_float", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_float_index, "gst_tag_list_get_float_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_int, "gst_tag_list_get_int", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_int64, "gst_tag_list_get_int64", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_int64_index, "gst_tag_list_get_int64_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_int_index, "gst_tag_list_get_int_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_pointer, "gst_tag_list_get_pointer", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_pointer_index, "gst_tag_list_get_pointer_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_sample, "gst_tag_list_get_sample", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_sample_index, "gst_tag_list_get_sample_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_scope, "gst_tag_list_get_scope", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_string, "gst_tag_list_get_string", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_string_index, "gst_tag_list_get_string_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_tag_size, "gst_tag_list_get_tag_size", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_uint, "gst_tag_list_get_uint", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_uint64, "gst_tag_list_get_uint64", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_uint64_index, "gst_tag_list_get_uint64_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_uint_index, "gst_tag_list_get_uint_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_get_value_index, "gst_tag_list_get_value_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_insert, "gst_tag_list_insert", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_is_empty, "gst_tag_list_is_empty", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_is_equal, "gst_tag_list_is_equal", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_merge, "gst_tag_list_merge", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_n_tags, "gst_tag_list_n_tags", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_nth_tag_name, "gst_tag_list_nth_tag_name", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_peek_string_index, "gst_tag_list_peek_string_index", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_remove_tag, "gst_tag_list_remove_tag", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_set_scope, "gst_tag_list_set_scope", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_to_string, "gst_tag_list_to_string", LIBRARY_GSTREAMER); - Linker.link(gst_tag_list_copy_value, "gst_tag_list_copy_value", LIBRARY_GSTREAMER); - Linker.link(gst_tag_exists, "gst_tag_exists", LIBRARY_GSTREAMER); - Linker.link(gst_tag_get_description, "gst_tag_get_description", LIBRARY_GSTREAMER); - Linker.link(gst_tag_get_flag, "gst_tag_get_flag", LIBRARY_GSTREAMER); - Linker.link(gst_tag_get_nick, "gst_tag_get_nick", LIBRARY_GSTREAMER); - Linker.link(gst_tag_is_fixed, "gst_tag_is_fixed", LIBRARY_GSTREAMER); - Linker.link(gst_tag_merge_strings_with_comma, "gst_tag_merge_strings_with_comma", LIBRARY_GSTREAMER); - Linker.link(gst_tag_merge_use_first, "gst_tag_merge_use_first", LIBRARY_GSTREAMER); - Linker.link(gst_tag_register, "gst_tag_register", LIBRARY_GSTREAMER); - Linker.link(gst_tag_register_static, "gst_tag_register_static", LIBRARY_GSTREAMER); - - // gstreamer.TagSetter - - Linker.link(gst_tag_setter_get_type, "gst_tag_setter_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_add_tag_valist, "gst_tag_setter_add_tag_valist", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_add_tag_valist_values, "gst_tag_setter_add_tag_valist_values", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_add_tag_value, "gst_tag_setter_add_tag_value", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_add_tag_values, "gst_tag_setter_add_tag_values", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_add_tags, "gst_tag_setter_add_tags", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_get_tag_list, "gst_tag_setter_get_tag_list", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_get_tag_merge_mode, "gst_tag_setter_get_tag_merge_mode", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_merge_tags, "gst_tag_setter_merge_tags", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_reset_tags, "gst_tag_setter_reset_tags", LIBRARY_GSTREAMER); - Linker.link(gst_tag_setter_set_tag_merge_mode, "gst_tag_setter_set_tag_merge_mode", LIBRARY_GSTREAMER); - - // gstreamer.Task - - Linker.link(gst_task_get_type, "gst_task_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_task_new, "gst_task_new", LIBRARY_GSTREAMER); - Linker.link(gst_task_cleanup_all, "gst_task_cleanup_all", LIBRARY_GSTREAMER); - Linker.link(gst_task_get_pool, "gst_task_get_pool", LIBRARY_GSTREAMER); - Linker.link(gst_task_get_state, "gst_task_get_state", LIBRARY_GSTREAMER); - Linker.link(gst_task_join, "gst_task_join", LIBRARY_GSTREAMER); - Linker.link(gst_task_pause, "gst_task_pause", LIBRARY_GSTREAMER); - Linker.link(gst_task_resume, "gst_task_resume", LIBRARY_GSTREAMER); - Linker.link(gst_task_set_enter_callback, "gst_task_set_enter_callback", LIBRARY_GSTREAMER); - Linker.link(gst_task_set_leave_callback, "gst_task_set_leave_callback", LIBRARY_GSTREAMER); - Linker.link(gst_task_set_lock, "gst_task_set_lock", LIBRARY_GSTREAMER); - Linker.link(gst_task_set_pool, "gst_task_set_pool", LIBRARY_GSTREAMER); - Linker.link(gst_task_set_state, "gst_task_set_state", LIBRARY_GSTREAMER); - Linker.link(gst_task_start, "gst_task_start", LIBRARY_GSTREAMER); - Linker.link(gst_task_stop, "gst_task_stop", LIBRARY_GSTREAMER); - - // gstreamer.TaskPool - - Linker.link(gst_task_pool_get_type, "gst_task_pool_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_task_pool_new, "gst_task_pool_new", LIBRARY_GSTREAMER); - Linker.link(gst_task_pool_cleanup, "gst_task_pool_cleanup", LIBRARY_GSTREAMER); - Linker.link(gst_task_pool_join, "gst_task_pool_join", LIBRARY_GSTREAMER); - Linker.link(gst_task_pool_prepare, "gst_task_pool_prepare", LIBRARY_GSTREAMER); - Linker.link(gst_task_pool_push, "gst_task_pool_push", LIBRARY_GSTREAMER); - - // gstreamer.Toc - - Linker.link(gst_toc_get_type, "gst_toc_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_toc_new, "gst_toc_new", LIBRARY_GSTREAMER); - Linker.link(gst_toc_append_entry, "gst_toc_append_entry", LIBRARY_GSTREAMER); - Linker.link(gst_toc_dump, "gst_toc_dump", LIBRARY_GSTREAMER); - Linker.link(gst_toc_find_entry, "gst_toc_find_entry", LIBRARY_GSTREAMER); - Linker.link(gst_toc_get_entries, "gst_toc_get_entries", LIBRARY_GSTREAMER); - Linker.link(gst_toc_get_scope, "gst_toc_get_scope", LIBRARY_GSTREAMER); - Linker.link(gst_toc_get_tags, "gst_toc_get_tags", LIBRARY_GSTREAMER); - Linker.link(gst_toc_merge_tags, "gst_toc_merge_tags", LIBRARY_GSTREAMER); - Linker.link(gst_toc_set_tags, "gst_toc_set_tags", LIBRARY_GSTREAMER); - - // gstreamer.TocEntry - - Linker.link(gst_toc_entry_get_type, "gst_toc_entry_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_new, "gst_toc_entry_new", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_append_sub_entry, "gst_toc_entry_append_sub_entry", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_entry_type, "gst_toc_entry_get_entry_type", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_loop, "gst_toc_entry_get_loop", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_parent, "gst_toc_entry_get_parent", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_start_stop_times, "gst_toc_entry_get_start_stop_times", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_sub_entries, "gst_toc_entry_get_sub_entries", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_tags, "gst_toc_entry_get_tags", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_toc, "gst_toc_entry_get_toc", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_get_uid, "gst_toc_entry_get_uid", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_is_alternative, "gst_toc_entry_is_alternative", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_is_sequence, "gst_toc_entry_is_sequence", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_merge_tags, "gst_toc_entry_merge_tags", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_set_loop, "gst_toc_entry_set_loop", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_set_start_stop_times, "gst_toc_entry_set_start_stop_times", LIBRARY_GSTREAMER); - Linker.link(gst_toc_entry_set_tags, "gst_toc_entry_set_tags", LIBRARY_GSTREAMER); - - // gstreamer.TocSetter - - Linker.link(gst_toc_setter_get_type, "gst_toc_setter_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_toc_setter_get_toc, "gst_toc_setter_get_toc", LIBRARY_GSTREAMER); - Linker.link(gst_toc_setter_reset, "gst_toc_setter_reset", LIBRARY_GSTREAMER); - Linker.link(gst_toc_setter_set_toc, "gst_toc_setter_set_toc", LIBRARY_GSTREAMER); - - // gstreamer.Tracer - - Linker.link(gst_tracer_get_type, "gst_tracer_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_tracer_register, "gst_tracer_register", LIBRARY_GSTREAMER); - - // gstreamer.TracerFactory - - Linker.link(gst_tracer_factory_get_type, "gst_tracer_factory_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_tracer_factory_get_list, "gst_tracer_factory_get_list", LIBRARY_GSTREAMER); - Linker.link(gst_tracer_factory_get_tracer_type, "gst_tracer_factory_get_tracer_type", LIBRARY_GSTREAMER); - - // gstreamer.TracerRecord - - Linker.link(gst_tracer_record_get_type, "gst_tracer_record_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_tracer_record_new, "gst_tracer_record_new", LIBRARY_GSTREAMER); - Linker.link(gst_tracer_record_log, "gst_tracer_record_log", LIBRARY_GSTREAMER); - - // gstreamer.TypeFind - - Linker.link(gst_type_find_get_length, "gst_type_find_get_length", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_peek, "gst_type_find_peek", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_suggest, "gst_type_find_suggest", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_suggest_simple, "gst_type_find_suggest_simple", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_register, "gst_type_find_register", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_get_type, "gst_type_find_get_type", LIBRARY_GSTREAMER); - - // gstreamer.TypeFindFactory - - Linker.link(gst_type_find_factory_get_type, "gst_type_find_factory_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_factory_get_list, "gst_type_find_factory_get_list", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_factory_call_function, "gst_type_find_factory_call_function", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_factory_get_caps, "gst_type_find_factory_get_caps", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_factory_get_extensions, "gst_type_find_factory_get_extensions", LIBRARY_GSTREAMER); - Linker.link(gst_type_find_factory_has_function, "gst_type_find_factory_has_function", LIBRARY_GSTREAMER); - - // gstreamer.URIHandler - - Linker.link(gst_uri_handler_get_type, "gst_uri_handler_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_uri_handler_get_protocols, "gst_uri_handler_get_protocols", LIBRARY_GSTREAMER); - Linker.link(gst_uri_handler_get_uri, "gst_uri_handler_get_uri", LIBRARY_GSTREAMER); - Linker.link(gst_uri_handler_get_uri_type, "gst_uri_handler_get_uri_type", LIBRARY_GSTREAMER); - Linker.link(gst_uri_handler_set_uri, "gst_uri_handler_set_uri", LIBRARY_GSTREAMER); - - // gstreamer.Uri - - Linker.link(gst_uri_get_type, "gst_uri_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_uri_new, "gst_uri_new", LIBRARY_GSTREAMER); - Linker.link(gst_uri_append_path, "gst_uri_append_path", LIBRARY_GSTREAMER); - Linker.link(gst_uri_append_path_segment, "gst_uri_append_path_segment", LIBRARY_GSTREAMER); - Linker.link(gst_uri_equal, "gst_uri_equal", LIBRARY_GSTREAMER); - Linker.link(gst_uri_from_string_with_base, "gst_uri_from_string_with_base", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_fragment, "gst_uri_get_fragment", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_host, "gst_uri_get_host", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_media_fragment_table, "gst_uri_get_media_fragment_table", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_path, "gst_uri_get_path", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_path_segments, "gst_uri_get_path_segments", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_path_string, "gst_uri_get_path_string", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_port, "gst_uri_get_port", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_query_keys, "gst_uri_get_query_keys", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_query_string, "gst_uri_get_query_string", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_query_table, "gst_uri_get_query_table", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_query_value, "gst_uri_get_query_value", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_scheme, "gst_uri_get_scheme", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_userinfo, "gst_uri_get_userinfo", LIBRARY_GSTREAMER); - Linker.link(gst_uri_is_normalized, "gst_uri_is_normalized", LIBRARY_GSTREAMER); - Linker.link(gst_uri_is_writable, "gst_uri_is_writable", LIBRARY_GSTREAMER); - Linker.link(gst_uri_join, "gst_uri_join", LIBRARY_GSTREAMER); - Linker.link(gst_uri_make_writable, "gst_uri_make_writable", LIBRARY_GSTREAMER); - Linker.link(gst_uri_new_with_base, "gst_uri_new_with_base", LIBRARY_GSTREAMER); - Linker.link(gst_uri_normalize, "gst_uri_normalize", LIBRARY_GSTREAMER); - Linker.link(gst_uri_query_has_key, "gst_uri_query_has_key", LIBRARY_GSTREAMER); - Linker.link(gst_uri_remove_query_key, "gst_uri_remove_query_key", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_fragment, "gst_uri_set_fragment", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_host, "gst_uri_set_host", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_path, "gst_uri_set_path", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_path_segments, "gst_uri_set_path_segments", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_path_string, "gst_uri_set_path_string", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_port, "gst_uri_set_port", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_query_string, "gst_uri_set_query_string", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_query_table, "gst_uri_set_query_table", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_query_value, "gst_uri_set_query_value", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_scheme, "gst_uri_set_scheme", LIBRARY_GSTREAMER); - Linker.link(gst_uri_set_userinfo, "gst_uri_set_userinfo", LIBRARY_GSTREAMER); - Linker.link(gst_uri_to_string, "gst_uri_to_string", LIBRARY_GSTREAMER); - Linker.link(gst_uri_construct, "gst_uri_construct", LIBRARY_GSTREAMER); - Linker.link(gst_uri_from_string, "gst_uri_from_string", LIBRARY_GSTREAMER); - Linker.link(gst_uri_from_string_escaped, "gst_uri_from_string_escaped", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_location, "gst_uri_get_location", LIBRARY_GSTREAMER); - Linker.link(gst_uri_get_protocol, "gst_uri_get_protocol", LIBRARY_GSTREAMER); - Linker.link(gst_uri_has_protocol, "gst_uri_has_protocol", LIBRARY_GSTREAMER); - Linker.link(gst_uri_is_valid, "gst_uri_is_valid", LIBRARY_GSTREAMER); - Linker.link(gst_uri_join_strings, "gst_uri_join_strings", LIBRARY_GSTREAMER); - Linker.link(gst_uri_protocol_is_supported, "gst_uri_protocol_is_supported", LIBRARY_GSTREAMER); - Linker.link(gst_uri_protocol_is_valid, "gst_uri_protocol_is_valid", LIBRARY_GSTREAMER); - Linker.link(gst_filename_to_uri, "gst_filename_to_uri", LIBRARY_GSTREAMER); - Linker.link(gst_uri_error_quark, "gst_uri_error_quark", LIBRARY_GSTREAMER); - - // gstreamer.ValueArray - - Linker.link(gst_value_array_get_type, "gst_value_array_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_value_array_append_and_take_value, "gst_value_array_append_and_take_value", LIBRARY_GSTREAMER); - Linker.link(gst_value_array_append_value, "gst_value_array_append_value", LIBRARY_GSTREAMER); - Linker.link(gst_value_array_get_size, "gst_value_array_get_size", LIBRARY_GSTREAMER); - Linker.link(gst_value_array_get_value, "gst_value_array_get_value", LIBRARY_GSTREAMER); - Linker.link(gst_value_array_init, "gst_value_array_init", LIBRARY_GSTREAMER); - Linker.link(gst_value_array_prepend_value, "gst_value_array_prepend_value", LIBRARY_GSTREAMER); - - // gstreamer.ValueList - - Linker.link(gst_value_list_get_type, "gst_value_list_get_type", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_append_and_take_value, "gst_value_list_append_and_take_value", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_append_value, "gst_value_list_append_value", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_concat, "gst_value_list_concat", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_get_size, "gst_value_list_get_size", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_get_value, "gst_value_list_get_value", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_init, "gst_value_list_init", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_merge, "gst_value_list_merge", LIBRARY_GSTREAMER); - Linker.link(gst_value_list_prepend_value, "gst_value_list_prepend_value", LIBRARY_GSTREAMER); - - // gstreamer.Debug - - Linker.link(gst_debug_add_log_function, "gst_debug_add_log_function", LIBRARY_GSTREAMER); - Linker.link(gst_debug_bin_to_dot_data, "gst_debug_bin_to_dot_data", LIBRARY_GSTREAMER); - Linker.link(gst_debug_bin_to_dot_file, "gst_debug_bin_to_dot_file", LIBRARY_GSTREAMER); - Linker.link(gst_debug_bin_to_dot_file_with_ts, "gst_debug_bin_to_dot_file_with_ts", LIBRARY_GSTREAMER); - Linker.link(gst_debug_construct_term_color, "gst_debug_construct_term_color", LIBRARY_GSTREAMER); - Linker.link(gst_debug_construct_win_color, "gst_debug_construct_win_color", LIBRARY_GSTREAMER); - Linker.link(gst_debug_get_all_categories, "gst_debug_get_all_categories", LIBRARY_GSTREAMER); - Linker.link(gst_debug_get_color_mode, "gst_debug_get_color_mode", LIBRARY_GSTREAMER); - Linker.link(gst_debug_get_default_threshold, "gst_debug_get_default_threshold", LIBRARY_GSTREAMER); - Linker.link(gst_debug_is_active, "gst_debug_is_active", LIBRARY_GSTREAMER); - Linker.link(gst_debug_is_colored, "gst_debug_is_colored", LIBRARY_GSTREAMER); - Linker.link(gst_debug_level_get_name, "gst_debug_level_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_debug_log, "gst_debug_log", LIBRARY_GSTREAMER); - Linker.link(gst_debug_log_default, "gst_debug_log_default", LIBRARY_GSTREAMER); - Linker.link(gst_debug_log_valist, "gst_debug_log_valist", LIBRARY_GSTREAMER); - Linker.link(gst_debug_print_stack_trace, "gst_debug_print_stack_trace", LIBRARY_GSTREAMER); - Linker.link(gst_debug_remove_log_function, "gst_debug_remove_log_function", LIBRARY_GSTREAMER); - Linker.link(gst_debug_remove_log_function_by_data, "gst_debug_remove_log_function_by_data", LIBRARY_GSTREAMER); - Linker.link(gst_debug_set_active, "gst_debug_set_active", LIBRARY_GSTREAMER); - Linker.link(gst_debug_set_color_mode, "gst_debug_set_color_mode", LIBRARY_GSTREAMER); - Linker.link(gst_debug_set_color_mode_from_string, "gst_debug_set_color_mode_from_string", LIBRARY_GSTREAMER); - Linker.link(gst_debug_set_colored, "gst_debug_set_colored", LIBRARY_GSTREAMER); - Linker.link(gst_debug_set_default_threshold, "gst_debug_set_default_threshold", LIBRARY_GSTREAMER); - Linker.link(gst_debug_set_threshold_for_name, "gst_debug_set_threshold_for_name", LIBRARY_GSTREAMER); - Linker.link(gst_debug_set_threshold_from_string, "gst_debug_set_threshold_from_string", LIBRARY_GSTREAMER); - Linker.link(gst_debug_unset_threshold_for_name, "gst_debug_unset_threshold_for_name", LIBRARY_GSTREAMER); - - // gstreamer.GError - - Linker.link(gst_error_get_message, "gst_error_get_message", LIBRARY_GSTREAMER); - - // gstreamer.Format - - Linker.link(gst_format_get_by_nick, "gst_format_get_by_nick", LIBRARY_GSTREAMER); - Linker.link(gst_format_get_details, "gst_format_get_details", LIBRARY_GSTREAMER); - Linker.link(gst_format_get_name, "gst_format_get_name", LIBRARY_GSTREAMER); - Linker.link(gst_format_iterate_definitions, "gst_format_iterate_definitions", LIBRARY_GSTREAMER); - Linker.link(gst_format_register, "gst_format_register", LIBRARY_GSTREAMER); - Linker.link(gst_format_to_quark, "gst_format_to_quark", LIBRARY_GSTREAMER); - Linker.link(gst_formats_contains, "gst_formats_contains", LIBRARY_GSTREAMER); - - // gstreamer.GStreamer - - Linker.link(gst_deinit, "gst_deinit", LIBRARY_GSTREAMER); - Linker.link(gst_init, "gst_init", LIBRARY_GSTREAMER); - Linker.link(gst_init_check, "gst_init_check", LIBRARY_GSTREAMER); - Linker.link(gst_init_get_option_group, "gst_init_get_option_group", LIBRARY_GSTREAMER); - Linker.link(gst_is_initialized, "gst_is_initialized", LIBRARY_GSTREAMER); - Linker.link(gst_segtrap_is_enabled, "gst_segtrap_is_enabled", LIBRARY_GSTREAMER); - Linker.link(gst_segtrap_set_enabled, "gst_segtrap_set_enabled", LIBRARY_GSTREAMER); - Linker.link(gst_update_registry, "gst_update_registry", LIBRARY_GSTREAMER); - Linker.link(gst_version, "gst_version", LIBRARY_GSTREAMER); - Linker.link(gst_version_string, "gst_version_string", LIBRARY_GSTREAMER); - - // gstreamer.Parse - - Linker.link(gst_parse_bin_from_description, "gst_parse_bin_from_description", LIBRARY_GSTREAMER); - Linker.link(gst_parse_bin_from_description_full, "gst_parse_bin_from_description_full", LIBRARY_GSTREAMER); - Linker.link(gst_parse_error_quark, "gst_parse_error_quark", LIBRARY_GSTREAMER); - Linker.link(gst_parse_launch, "gst_parse_launch", LIBRARY_GSTREAMER); - Linker.link(gst_parse_launch_full, "gst_parse_launch_full", LIBRARY_GSTREAMER); - Linker.link(gst_parse_launchv, "gst_parse_launchv", LIBRARY_GSTREAMER); - Linker.link(gst_parse_launchv_full, "gst_parse_launchv_full", LIBRARY_GSTREAMER); - - // gstreamer.Utils - - Linker.link(gst_util_array_binary_search, "gst_util_array_binary_search", LIBRARY_GSTREAMER); - Linker.link(gst_util_double_to_fraction, "gst_util_double_to_fraction", LIBRARY_GSTREAMER); - Linker.link(gst_util_dump_mem, "gst_util_dump_mem", LIBRARY_GSTREAMER); - Linker.link(gst_util_fraction_add, "gst_util_fraction_add", LIBRARY_GSTREAMER); - Linker.link(gst_util_fraction_compare, "gst_util_fraction_compare", LIBRARY_GSTREAMER); - Linker.link(gst_util_fraction_multiply, "gst_util_fraction_multiply", LIBRARY_GSTREAMER); - Linker.link(gst_util_fraction_to_double, "gst_util_fraction_to_double", LIBRARY_GSTREAMER); - Linker.link(gst_util_gdouble_to_guint64, "gst_util_gdouble_to_guint64", LIBRARY_GSTREAMER); - Linker.link(gst_util_get_timestamp, "gst_util_get_timestamp", LIBRARY_GSTREAMER); - Linker.link(gst_util_greatest_common_divisor, "gst_util_greatest_common_divisor", LIBRARY_GSTREAMER); - Linker.link(gst_util_greatest_common_divisor_int64, "gst_util_greatest_common_divisor_int64", LIBRARY_GSTREAMER); - Linker.link(gst_util_group_id_next, "gst_util_group_id_next", LIBRARY_GSTREAMER); - Linker.link(gst_util_guint64_to_gdouble, "gst_util_guint64_to_gdouble", LIBRARY_GSTREAMER); - Linker.link(gst_util_seqnum_compare, "gst_util_seqnum_compare", LIBRARY_GSTREAMER); - Linker.link(gst_util_seqnum_next, "gst_util_seqnum_next", LIBRARY_GSTREAMER); - Linker.link(gst_util_set_object_arg, "gst_util_set_object_arg", LIBRARY_GSTREAMER); - Linker.link(gst_util_set_value_from_string, "gst_util_set_value_from_string", LIBRARY_GSTREAMER); - Linker.link(gst_util_uint64_scale, "gst_util_uint64_scale", LIBRARY_GSTREAMER); - Linker.link(gst_util_uint64_scale_ceil, "gst_util_uint64_scale_ceil", LIBRARY_GSTREAMER); - Linker.link(gst_util_uint64_scale_int, "gst_util_uint64_scale_int", LIBRARY_GSTREAMER); - Linker.link(gst_util_uint64_scale_int_ceil, "gst_util_uint64_scale_int_ceil", LIBRARY_GSTREAMER); - Linker.link(gst_util_uint64_scale_int_round, "gst_util_uint64_scale_int_round", LIBRARY_GSTREAMER); - Linker.link(gst_util_uint64_scale_round, "gst_util_uint64_scale_round", LIBRARY_GSTREAMER); - Linker.link(gst_calculate_linear_regression, "gst_calculate_linear_regression", LIBRARY_GSTREAMER); - Linker.link(gst_dynamic_type_register, "gst_dynamic_type_register", LIBRARY_GSTREAMER); - Linker.link(gst_util_get_object_array, "gst_util_get_object_array", LIBRARY_GSTREAMER); - Linker.link(gst_util_set_object_array, "gst_util_set_object_array", LIBRARY_GSTREAMER); - - // gstreamer.ValueGst - - Linker.link(gst_value_can_compare, "gst_value_can_compare", LIBRARY_GSTREAMER); - Linker.link(gst_value_can_intersect, "gst_value_can_intersect", LIBRARY_GSTREAMER); - Linker.link(gst_value_can_subtract, "gst_value_can_subtract", LIBRARY_GSTREAMER); - Linker.link(gst_value_can_union, "gst_value_can_union", LIBRARY_GSTREAMER); - Linker.link(gst_value_compare, "gst_value_compare", LIBRARY_GSTREAMER); - Linker.link(gst_value_deserialize, "gst_value_deserialize", LIBRARY_GSTREAMER); - Linker.link(gst_value_fixate, "gst_value_fixate", LIBRARY_GSTREAMER); - Linker.link(gst_value_fraction_multiply, "gst_value_fraction_multiply", LIBRARY_GSTREAMER); - Linker.link(gst_value_fraction_subtract, "gst_value_fraction_subtract", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_bitmask, "gst_value_get_bitmask", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_caps, "gst_value_get_caps", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_caps_features, "gst_value_get_caps_features", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_double_range_max, "gst_value_get_double_range_max", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_double_range_min, "gst_value_get_double_range_min", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_flagset_flags, "gst_value_get_flagset_flags", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_flagset_mask, "gst_value_get_flagset_mask", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_flagset, "gst_value_set_flagset", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_fraction_denominator, "gst_value_get_fraction_denominator", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_fraction_numerator, "gst_value_get_fraction_numerator", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_fraction_range_max, "gst_value_get_fraction_range_max", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_fraction_range_min, "gst_value_get_fraction_range_min", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_int64_range_max, "gst_value_get_int64_range_max", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_int64_range_min, "gst_value_get_int64_range_min", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_int64_range_step, "gst_value_get_int64_range_step", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_int_range_max, "gst_value_get_int_range_max", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_int_range_min, "gst_value_get_int_range_min", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_int_range_step, "gst_value_get_int_range_step", LIBRARY_GSTREAMER); - Linker.link(gst_value_get_structure, "gst_value_get_structure", LIBRARY_GSTREAMER); - Linker.link(gst_value_init_and_copy, "gst_value_init_and_copy", LIBRARY_GSTREAMER); - Linker.link(gst_value_intersect, "gst_value_intersect", LIBRARY_GSTREAMER); - Linker.link(gst_value_is_fixed, "gst_value_is_fixed", LIBRARY_GSTREAMER); - Linker.link(gst_value_is_subset, "gst_value_is_subset", LIBRARY_GSTREAMER); - Linker.link(gst_value_register, "gst_value_register", LIBRARY_GSTREAMER); - Linker.link(gst_value_serialize, "gst_value_serialize", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_bitmask, "gst_value_set_bitmask", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_caps, "gst_value_set_caps", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_caps_features, "gst_value_set_caps_features", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_double_range, "gst_value_set_double_range", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_fraction, "gst_value_set_fraction", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_fraction_range, "gst_value_set_fraction_range", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_fraction_range_full, "gst_value_set_fraction_range_full", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_int64_range, "gst_value_set_int64_range", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_int64_range_step, "gst_value_set_int64_range_step", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_int_range, "gst_value_set_int_range", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_int_range_step, "gst_value_set_int_range_step", LIBRARY_GSTREAMER); - Linker.link(gst_value_set_structure, "gst_value_set_structure", LIBRARY_GSTREAMER); - Linker.link(gst_value_subtract, "gst_value_subtract", LIBRARY_GSTREAMER); - Linker.link(gst_value_union, "gst_value_union", LIBRARY_GSTREAMER); -} - -__gshared extern(C) -{ - - // gstreamer.AllocationParams - - GType function() c_gst_allocation_params_get_type; - GstAllocationParams* function(GstAllocationParams* params) c_gst_allocation_params_copy; - void function(GstAllocationParams* params) c_gst_allocation_params_free; - void function(GstAllocationParams* params) c_gst_allocation_params_init; - - // gstreamer.Allocator - - GType function() c_gst_allocator_get_type; - GstAllocator* function(const(char)* name) c_gst_allocator_find; - void function(const(char)* name, GstAllocator* allocator) c_gst_allocator_register; - GstMemory* function(GstAllocator* allocator, size_t size, GstAllocationParams* params) c_gst_allocator_alloc; - void function(GstAllocator* allocator, GstMemory* memory) c_gst_allocator_free; - void function(GstAllocator* allocator) c_gst_allocator_set_default; - - // gstreamer.AtomicQueue - - GType function() c_gst_atomic_queue_get_type; - GstAtomicQueue* function(uint initialSize) c_gst_atomic_queue_new; - uint function(GstAtomicQueue* queue) c_gst_atomic_queue_length; - void* function(GstAtomicQueue* queue) c_gst_atomic_queue_peek; - void* function(GstAtomicQueue* queue) c_gst_atomic_queue_pop; - void function(GstAtomicQueue* queue, void* data) c_gst_atomic_queue_push; - void function(GstAtomicQueue* queue) c_gst_atomic_queue_ref; - void function(GstAtomicQueue* queue) c_gst_atomic_queue_unref; - - // gstreamer.Bin - - GType function() c_gst_bin_get_type; - GstElement* function(const(char)* name) c_gst_bin_new; - int function(GstBin* bin, GstElement* element) c_gst_bin_add; - void function(GstBin* bin, GstElement* element1, ... ) c_gst_bin_add_many; - GstPad* function(GstBin* bin, GstPadDirection direction) c_gst_bin_find_unlinked_pad; - GstElement* function(GstBin* bin, GType iface) c_gst_bin_get_by_interface; - GstElement* function(GstBin* bin, const(char)* name) c_gst_bin_get_by_name; - GstElement* function(GstBin* bin, const(char)* name) c_gst_bin_get_by_name_recurse_up; - GstElementFlags function(GstBin* bin) c_gst_bin_get_suppressed_flags; - GstIterator* function(GstBin* bin, const(char)* factoryName) c_gst_bin_iterate_all_by_element_factory_name; - GstIterator* function(GstBin* bin, GType iface) c_gst_bin_iterate_all_by_interface; - GstIterator* function(GstBin* bin) c_gst_bin_iterate_elements; - GstIterator* function(GstBin* bin) c_gst_bin_iterate_recurse; - GstIterator* function(GstBin* bin) c_gst_bin_iterate_sinks; - GstIterator* function(GstBin* bin) c_gst_bin_iterate_sorted; - GstIterator* function(GstBin* bin) c_gst_bin_iterate_sources; - int function(GstBin* bin) c_gst_bin_recalculate_latency; - int function(GstBin* bin, GstElement* element) c_gst_bin_remove; - void function(GstBin* bin, GstElement* element1, ... ) c_gst_bin_remove_many; - void function(GstBin* bin, GstElementFlags flags) c_gst_bin_set_suppressed_flags; - int function(GstBin* bin) c_gst_bin_sync_children_states; - - // gstreamer.Bitmask - - GType function() c_gst_bitmask_get_type; - - // gstreamer.Buffer - - GType function() c_gst_buffer_get_type; - GstBuffer* function() c_gst_buffer_new; - GstBuffer* function(GstAllocator* allocator, size_t size, GstAllocationParams* params) c_gst_buffer_new_allocate; - GstBuffer* function(void* data, size_t size) c_gst_buffer_new_wrapped; - GstBuffer* function(GBytes* bytes) c_gst_buffer_new_wrapped_bytes; - GstBuffer* function(GstMemoryFlags flags, void* data, size_t maxsize, size_t offset, size_t size, void* userData, GDestroyNotify notify) c_gst_buffer_new_wrapped_full; - GstMeta* function(GstBuffer* buffer, GstMetaInfo* info, void* params) c_gst_buffer_add_meta; - GstParentBufferMeta* function(GstBuffer* buffer, GstBuffer* ref_) c_gst_buffer_add_parent_buffer_meta; - GstProtectionMeta* function(GstBuffer* buffer, GstStructure* info) c_gst_buffer_add_protection_meta; - GstReferenceTimestampMeta* function(GstBuffer* buffer, GstCaps* reference, GstClockTime timestamp, GstClockTime duration) c_gst_buffer_add_reference_timestamp_meta; - GstBuffer* function(GstBuffer* buf1, GstBuffer* buf2) c_gst_buffer_append; - void function(GstBuffer* buffer, GstMemory* mem) c_gst_buffer_append_memory; - GstBuffer* function(GstBuffer* buf1, GstBuffer* buf2, ptrdiff_t offset, ptrdiff_t size) c_gst_buffer_append_region; - GstBuffer* function(GstBuffer* buf) c_gst_buffer_copy_deep; - int function(GstBuffer* dest, GstBuffer* src, GstBufferCopyFlags flags, size_t offset, size_t size) c_gst_buffer_copy_into; - GstBuffer* function(GstBuffer* parent, GstBufferCopyFlags flags, size_t offset, size_t size) c_gst_buffer_copy_region; - size_t function(GstBuffer* buffer, size_t offset, void* dest, size_t size) c_gst_buffer_extract; - void function(GstBuffer* buffer, size_t offset, size_t size, void** dest, size_t* destSize) c_gst_buffer_extract_dup; - size_t function(GstBuffer* buffer, size_t offset, void* src, size_t size) c_gst_buffer_fill; - int function(GstBuffer* buffer, size_t offset, size_t size, uint* idx, uint* length, size_t* skip) c_gst_buffer_find_memory; - int function(GstBuffer* buffer, GstBufferForeachMetaFunc func, void* userData) c_gst_buffer_foreach_meta; - GstMemory* function(GstBuffer* buffer) c_gst_buffer_get_all_memory; - GstBufferFlags function(GstBuffer* buffer) c_gst_buffer_get_flags; - GstMemory* function(GstBuffer* buffer, uint idx) c_gst_buffer_get_memory; - GstMemory* function(GstBuffer* buffer, uint idx, int length) c_gst_buffer_get_memory_range; - GstMeta* function(GstBuffer* buffer, GType api) c_gst_buffer_get_meta; - uint function(GstBuffer* buffer, GType apiType) c_gst_buffer_get_n_meta; - GstReferenceTimestampMeta* function(GstBuffer* buffer, GstCaps* reference) c_gst_buffer_get_reference_timestamp_meta; - size_t function(GstBuffer* buffer) c_gst_buffer_get_size; - size_t function(GstBuffer* buffer, size_t* offset, size_t* maxsize) c_gst_buffer_get_sizes; - size_t function(GstBuffer* buffer, uint idx, int length, size_t* offset, size_t* maxsize) c_gst_buffer_get_sizes_range; - int function(GstBuffer* buffer, GstBufferFlags flags) c_gst_buffer_has_flags; - void function(GstBuffer* buffer, int idx, GstMemory* mem) c_gst_buffer_insert_memory; - int function(GstBuffer* buffer) c_gst_buffer_is_all_memory_writable; - int function(GstBuffer* buffer, uint idx, int length) c_gst_buffer_is_memory_range_writable; - GstMeta* function(GstBuffer* buffer, void** state) c_gst_buffer_iterate_meta; - GstMeta* function(GstBuffer* buffer, void** state, GType metaApiType) c_gst_buffer_iterate_meta_filtered; - int function(GstBuffer* buffer, GstMapInfo* info, GstMapFlags flags) c_gst_buffer_map; - int function(GstBuffer* buffer, uint idx, int length, GstMapInfo* info, GstMapFlags flags) c_gst_buffer_map_range; - int function(GstBuffer* buffer, size_t offset, void* mem, size_t size) c_gst_buffer_memcmp; - size_t function(GstBuffer* buffer, size_t offset, ubyte val, size_t size) c_gst_buffer_memset; - uint function(GstBuffer* buffer) c_gst_buffer_n_memory; - GstMemory* function(GstBuffer* buffer, uint idx) c_gst_buffer_peek_memory; - void function(GstBuffer* buffer, GstMemory* mem) c_gst_buffer_prepend_memory; - void function(GstBuffer* buffer) c_gst_buffer_remove_all_memory; - void function(GstBuffer* buffer, uint idx) c_gst_buffer_remove_memory; - void function(GstBuffer* buffer, uint idx, int length) c_gst_buffer_remove_memory_range; - int function(GstBuffer* buffer, GstMeta* meta) c_gst_buffer_remove_meta; - void function(GstBuffer* buffer, GstMemory* mem) c_gst_buffer_replace_all_memory; - void function(GstBuffer* buffer, uint idx, GstMemory* mem) c_gst_buffer_replace_memory; - void function(GstBuffer* buffer, uint idx, int length, GstMemory* mem) c_gst_buffer_replace_memory_range; - void function(GstBuffer* buffer, ptrdiff_t offset, ptrdiff_t size) c_gst_buffer_resize; - int function(GstBuffer* buffer, uint idx, int length, ptrdiff_t offset, ptrdiff_t size) c_gst_buffer_resize_range; - int function(GstBuffer* buffer, GstBufferFlags flags) c_gst_buffer_set_flags; - void function(GstBuffer* buffer, ptrdiff_t size) c_gst_buffer_set_size; - void function(GstBuffer* buffer, GstMapInfo* info) c_gst_buffer_unmap; - int function(GstBuffer* buffer, GstBufferFlags flags) c_gst_buffer_unset_flags; - uint function() c_gst_buffer_get_max_memory; - - // gstreamer.BufferList - - GType function() c_gst_buffer_list_get_type; - GstBufferList* function() c_gst_buffer_list_new; - GstBufferList* function(uint size) c_gst_buffer_list_new_sized; - size_t function(GstBufferList* list) c_gst_buffer_list_calculate_size; - GstBufferList* function(GstBufferList* list) c_gst_buffer_list_copy_deep; - int function(GstBufferList* list, GstBufferListFunc func, void* userData) c_gst_buffer_list_foreach; - GstBuffer* function(GstBufferList* list, uint idx) c_gst_buffer_list_get; - GstBuffer* function(GstBufferList* list, uint idx) c_gst_buffer_list_get_writable; - void function(GstBufferList* list, int idx, GstBuffer* buffer) c_gst_buffer_list_insert; - uint function(GstBufferList* list) c_gst_buffer_list_length; - void function(GstBufferList* list, uint idx, uint length) c_gst_buffer_list_remove; - - // gstreamer.BufferPool - - GType function() c_gst_buffer_pool_get_type; - GstBufferPool* function() c_gst_buffer_pool_new; - void function(GstStructure* config, const(char)* option) c_gst_buffer_pool_config_add_option; - int function(GstStructure* config, GstAllocator** allocator, GstAllocationParams* params) c_gst_buffer_pool_config_get_allocator; - const(char)* function(GstStructure* config, uint index) c_gst_buffer_pool_config_get_option; - int function(GstStructure* config, GstCaps** caps, uint* size, uint* minBuffers, uint* maxBuffers) c_gst_buffer_pool_config_get_params; - int function(GstStructure* config, const(char)* option) c_gst_buffer_pool_config_has_option; - uint function(GstStructure* config) c_gst_buffer_pool_config_n_options; - void function(GstStructure* config, GstAllocator* allocator, GstAllocationParams* params) c_gst_buffer_pool_config_set_allocator; - void function(GstStructure* config, GstCaps* caps, uint size, uint minBuffers, uint maxBuffers) c_gst_buffer_pool_config_set_params; - int function(GstStructure* config, GstCaps* caps, uint size, uint minBuffers, uint maxBuffers) c_gst_buffer_pool_config_validate_params; - GstFlowReturn function(GstBufferPool* pool, GstBuffer** buffer, GstBufferPoolAcquireParams* params) c_gst_buffer_pool_acquire_buffer; - GstStructure* function(GstBufferPool* pool) c_gst_buffer_pool_get_config; - char** function(GstBufferPool* pool) c_gst_buffer_pool_get_options; - int function(GstBufferPool* pool, const(char)* option) c_gst_buffer_pool_has_option; - int function(GstBufferPool* pool) c_gst_buffer_pool_is_active; - void function(GstBufferPool* pool, GstBuffer* buffer) c_gst_buffer_pool_release_buffer; - int function(GstBufferPool* pool, int active) c_gst_buffer_pool_set_active; - int function(GstBufferPool* pool, GstStructure* config) c_gst_buffer_pool_set_config; - void function(GstBufferPool* pool, int flushing) c_gst_buffer_pool_set_flushing; - - // gstreamer.Bus - - GType function() c_gst_bus_get_type; - GstBus* function() c_gst_bus_new; - void function(GstBus* bus) c_gst_bus_add_signal_watch; - void function(GstBus* bus, int priority) c_gst_bus_add_signal_watch_full; - uint function(GstBus* bus, GstBusFunc func, void* userData) c_gst_bus_add_watch; - uint function(GstBus* bus, int priority, GstBusFunc func, void* userData, GDestroyNotify notify) c_gst_bus_add_watch_full; - int function(GstBus* bus, GstMessage* message, void* data) c_gst_bus_async_signal_func; - GSource* function(GstBus* bus) c_gst_bus_create_watch; - void function(GstBus* bus) c_gst_bus_disable_sync_message_emission; - void function(GstBus* bus) c_gst_bus_enable_sync_message_emission; - void function(GstBus* bus, GPollFD* fd) c_gst_bus_get_pollfd; - int function(GstBus* bus) c_gst_bus_have_pending; - GstMessage* function(GstBus* bus) c_gst_bus_peek; - GstMessage* function(GstBus* bus, GstMessageType events, GstClockTime timeout) c_gst_bus_poll; - GstMessage* function(GstBus* bus) c_gst_bus_pop; - GstMessage* function(GstBus* bus, GstMessageType types) c_gst_bus_pop_filtered; - int function(GstBus* bus, GstMessage* message) c_gst_bus_post; - void function(GstBus* bus) c_gst_bus_remove_signal_watch; - int function(GstBus* bus) c_gst_bus_remove_watch; - void function(GstBus* bus, int flushing) c_gst_bus_set_flushing; - void function(GstBus* bus, GstBusSyncHandler func, void* userData, GDestroyNotify notify) c_gst_bus_set_sync_handler; - GstBusSyncReply function(GstBus* bus, GstMessage* message, void* data) c_gst_bus_sync_signal_handler; - GstMessage* function(GstBus* bus, GstClockTime timeout) c_gst_bus_timed_pop; - GstMessage* function(GstBus* bus, GstClockTime timeout, GstMessageType types) c_gst_bus_timed_pop_filtered; - - // gstreamer.Caps - - GType function() c_gst_caps_get_type; - GstCaps* function() c_gst_caps_new_any; - GstCaps* function() c_gst_caps_new_empty; - GstCaps* function(const(char)* mediaType) c_gst_caps_new_empty_simple; - GstCaps* function(GstStructure* struct1, ... ) c_gst_caps_new_full; - GstCaps* function(GstStructure* structure, void* varArgs) c_gst_caps_new_full_valist; - GstCaps* function(const(char)* mediaType, const(char)* fieldname, ... ) c_gst_caps_new_simple; - void function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_append; - void function(GstCaps* caps, GstStructure* structure) c_gst_caps_append_structure; - void function(GstCaps* caps, GstStructure* structure, GstCapsFeatures* features) c_gst_caps_append_structure_full; - int function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_can_intersect; - GstCaps* function(GstCaps* caps) c_gst_caps_copy; - GstCaps* function(GstCaps* caps, uint nth) c_gst_caps_copy_nth; - void function(GstCaps* caps, GstCapsFilterMapFunc func, void* userData) c_gst_caps_filter_and_map_in_place; - GstCaps* function(GstCaps* caps) c_gst_caps_fixate; - int function(GstCaps* caps, GstCapsForeachFunc func, void* userData) c_gst_caps_foreach; - GstCapsFeatures* function(GstCaps* caps, uint index) c_gst_caps_get_features; - uint function(GstCaps* caps) c_gst_caps_get_size; - GstStructure* function(GstCaps* caps, uint index) c_gst_caps_get_structure; - GstCaps* function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_intersect; - GstCaps* function(GstCaps* caps1, GstCaps* caps2, GstCapsIntersectMode mode) c_gst_caps_intersect_full; - int function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_is_always_compatible; - int function(GstCaps* caps) c_gst_caps_is_any; - int function(GstCaps* caps) c_gst_caps_is_empty; - int function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_is_equal; - int function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_is_equal_fixed; - int function(GstCaps* caps) c_gst_caps_is_fixed; - int function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_is_strictly_equal; - int function(GstCaps* subset, GstCaps* superset) c_gst_caps_is_subset; - int function(GstCaps* caps, GstStructure* structure) c_gst_caps_is_subset_structure; - int function(GstCaps* caps, GstStructure* structure, GstCapsFeatures* features) c_gst_caps_is_subset_structure_full; - int function(GstCaps* caps, GstCapsMapFunc func, void* userData) c_gst_caps_map_in_place; - GstCaps* function(GstCaps* caps1, GstCaps* caps2) c_gst_caps_merge; - GstCaps* function(GstCaps* caps, GstStructure* structure) c_gst_caps_merge_structure; - GstCaps* function(GstCaps* caps, GstStructure* structure, GstCapsFeatures* features) c_gst_caps_merge_structure_full; - GstCaps* function(GstCaps* caps) c_gst_caps_normalize; - void function(GstCaps* caps, uint idx) c_gst_caps_remove_structure; - void function(GstCaps* caps, uint index, GstCapsFeatures* features) c_gst_caps_set_features; - void function(GstCaps* caps, GstCapsFeatures* features) c_gst_caps_set_features_simple; - void function(GstCaps* caps, const(char)* field, ... ) c_gst_caps_set_simple; - void function(GstCaps* caps, const(char)* field, void* varargs) c_gst_caps_set_simple_valist; - void function(GstCaps* caps, const(char)* field, GValue* value) c_gst_caps_set_value; - GstCaps* function(GstCaps* caps) c_gst_caps_simplify; - GstStructure* function(GstCaps* caps, uint index) c_gst_caps_steal_structure; - GstCaps* function(GstCaps* minuend, GstCaps* subtrahend) c_gst_caps_subtract; - char* function(GstCaps* caps) c_gst_caps_to_string; - GstCaps* function(GstCaps* caps) c_gst_caps_truncate; - GstCaps* function(const(char)* string_) c_gst_caps_from_string; - - // gstreamer.CapsFeatures - - GType function() c_gst_caps_features_get_type; - GstCapsFeatures* function(const(char)* feature1, ... ) c_gst_caps_features_new; - GstCapsFeatures* function() c_gst_caps_features_new_any; - GstCapsFeatures* function() c_gst_caps_features_new_empty; - GstCapsFeatures* function(GQuark feature1, ... ) c_gst_caps_features_new_id; - GstCapsFeatures* function(GQuark feature1, void* varargs) c_gst_caps_features_new_id_valist; - GstCapsFeatures* function(const(char)* feature1, void* varargs) c_gst_caps_features_new_valist; - void function(GstCapsFeatures* features, const(char)* feature) c_gst_caps_features_add; - void function(GstCapsFeatures* features, GQuark feature) c_gst_caps_features_add_id; - int function(GstCapsFeatures* features, const(char)* feature) c_gst_caps_features_contains; - int function(GstCapsFeatures* features, GQuark feature) c_gst_caps_features_contains_id; - GstCapsFeatures* function(GstCapsFeatures* features) c_gst_caps_features_copy; - void function(GstCapsFeatures* features) c_gst_caps_features_free; - const(char)* function(GstCapsFeatures* features, uint i) c_gst_caps_features_get_nth; - GQuark function(GstCapsFeatures* features, uint i) c_gst_caps_features_get_nth_id; - uint function(GstCapsFeatures* features) c_gst_caps_features_get_size; - int function(GstCapsFeatures* features) c_gst_caps_features_is_any; - int function(GstCapsFeatures* features1, GstCapsFeatures* features2) c_gst_caps_features_is_equal; - void function(GstCapsFeatures* features, const(char)* feature) c_gst_caps_features_remove; - void function(GstCapsFeatures* features, GQuark feature) c_gst_caps_features_remove_id; - int function(GstCapsFeatures* features, int* refcount) c_gst_caps_features_set_parent_refcount; - char* function(GstCapsFeatures* features) c_gst_caps_features_to_string; - GstCapsFeatures* function(const(char)* features) c_gst_caps_features_from_string; - - // gstreamer.ChildProxy - - GType function() c_gst_child_proxy_get_type; - void function(GstChildProxy* parent, GObject* child, const(char)* name) c_gst_child_proxy_child_added; - void function(GstChildProxy* parent, GObject* child, const(char)* name) c_gst_child_proxy_child_removed; - void function(GstChildProxy* object, const(char)* firstPropertyName, ... ) c_gst_child_proxy_get; - GObject* function(GstChildProxy* parent, uint index) c_gst_child_proxy_get_child_by_index; - GObject* function(GstChildProxy* parent, const(char)* name) c_gst_child_proxy_get_child_by_name; - uint function(GstChildProxy* parent) c_gst_child_proxy_get_children_count; - void function(GstChildProxy* object, const(char)* name, GValue* value) c_gst_child_proxy_get_property; - void function(GstChildProxy* object, const(char)* firstPropertyName, void* varArgs) c_gst_child_proxy_get_valist; - int function(GstChildProxy* object, const(char)* name, GObject** target, GParamSpec** pspec) c_gst_child_proxy_lookup; - void function(GstChildProxy* object, const(char)* firstPropertyName, ... ) c_gst_child_proxy_set; - void function(GstChildProxy* object, const(char)* name, GValue* value) c_gst_child_proxy_set_property; - void function(GstChildProxy* object, const(char)* firstPropertyName, void* varArgs) c_gst_child_proxy_set_valist; - - // gstreamer.Clock - - GType function() c_gst_clock_get_type; - int function(void* id1, void* id2) c_gst_clock_id_compare_func; - GstClock* function(GstClockID id) c_gst_clock_id_get_clock; - GstClockTime function(GstClockID id) c_gst_clock_id_get_time; - GstClockID function(GstClockID id) c_gst_clock_id_ref; - void function(GstClockID id) c_gst_clock_id_unref; - void function(GstClockID id) c_gst_clock_id_unschedule; - int function(GstClockID id, GstClock* clock) c_gst_clock_id_uses_clock; - GstClockReturn function(GstClockID id, GstClockTimeDiff* jitter) c_gst_clock_id_wait; - GstClockReturn function(GstClockID id, GstClockCallback func, void* userData, GDestroyNotify destroyData) c_gst_clock_id_wait_async; - int function(GstClock* clock, GstClockTime slave, GstClockTime master, double* rSquared) c_gst_clock_add_observation; - int function(GstClock* clock, GstClockTime slave, GstClockTime master, double* rSquared, GstClockTime* internal, GstClockTime* external, GstClockTime* rateNum, GstClockTime* rateDenom) c_gst_clock_add_observation_unapplied; - GstClockTime function(GstClock* clock, GstClockTime internal) c_gst_clock_adjust_unlocked; - GstClockTime function(GstClock* clock, GstClockTime internalTarget, GstClockTime cinternal, GstClockTime cexternal, GstClockTime cnum, GstClockTime cdenom) c_gst_clock_adjust_with_calibration; - void function(GstClock* clock, GstClockTime* internal, GstClockTime* external, GstClockTime* rateNum, GstClockTime* rateDenom) c_gst_clock_get_calibration; - GstClockTime function(GstClock* clock) c_gst_clock_get_internal_time; - GstClock* function(GstClock* clock) c_gst_clock_get_master; - GstClockTime function(GstClock* clock) c_gst_clock_get_resolution; - GstClockTime function(GstClock* clock) c_gst_clock_get_time; - GstClockTime function(GstClock* clock) c_gst_clock_get_timeout; - int function(GstClock* clock) c_gst_clock_is_synced; - GstClockID function(GstClock* clock, GstClockTime startTime, GstClockTime interval) c_gst_clock_new_periodic_id; - GstClockID function(GstClock* clock, GstClockTime time) c_gst_clock_new_single_shot_id; - int function(GstClock* clock, GstClockID id, GstClockTime startTime, GstClockTime interval) c_gst_clock_periodic_id_reinit; - void function(GstClock* clock, GstClockTime internal, GstClockTime external, GstClockTime rateNum, GstClockTime rateDenom) c_gst_clock_set_calibration; - int function(GstClock* clock, GstClock* master) c_gst_clock_set_master; - GstClockTime function(GstClock* clock, GstClockTime resolution) c_gst_clock_set_resolution; - void function(GstClock* clock, int synced) c_gst_clock_set_synced; - void function(GstClock* clock, GstClockTime timeout) c_gst_clock_set_timeout; - int function(GstClock* clock, GstClockID id, GstClockTime time) c_gst_clock_single_shot_id_reinit; - GstClockTime function(GstClock* clock, GstClockTime external) c_gst_clock_unadjust_unlocked; - GstClockTime function(GstClock* clock, GstClockTime externalTarget, GstClockTime cinternal, GstClockTime cexternal, GstClockTime cnum, GstClockTime cdenom) c_gst_clock_unadjust_with_calibration; - int function(GstClock* clock, GstClockTime timeout) c_gst_clock_wait_for_sync; - - // gstreamer.Context - - GType function() c_gst_context_get_type; - GstContext* function(const(char)* contextType, int persistent) c_gst_context_new; - const(char)* function(GstContext* context) c_gst_context_get_context_type; - GstStructure* function(GstContext* context) c_gst_context_get_structure; - int function(GstContext* context, const(char)* contextType) c_gst_context_has_context_type; - int function(GstContext* context) c_gst_context_is_persistent; - GstStructure* function(GstContext* context) c_gst_context_writable_structure; - - // gstreamer.ControlBinding - - GType function() c_gst_control_binding_get_type; - int function(GstControlBinding* binding, GstClockTime timestamp, GstClockTime interval, uint nValues, GValue* values) c_gst_control_binding_get_g_value_array; - GValue* function(GstControlBinding* binding, GstClockTime timestamp) c_gst_control_binding_get_value; - int function(GstControlBinding* binding, GstClockTime timestamp, GstClockTime interval, uint nValues, void* values) c_gst_control_binding_get_value_array; - int function(GstControlBinding* binding) c_gst_control_binding_is_disabled; - void function(GstControlBinding* binding, int disabled) c_gst_control_binding_set_disabled; - int function(GstControlBinding* binding, GstObject* object, GstClockTime timestamp, GstClockTime lastSync) c_gst_control_binding_sync_values; - - // gstreamer.ControlSource - - GType function() c_gst_control_source_get_type; - int function(GstControlSource* self, GstClockTime timestamp, double* value) c_gst_control_source_get_value; - int function(GstControlSource* self, GstClockTime timestamp, GstClockTime interval, uint nValues, double* values) c_gst_control_source_get_value_array; - - // gstreamer.DateTime - - GType function() c_gst_date_time_get_type; - GstDateTime* function(float tzoffset, int year, int month, int day, int hour, int minute, double seconds) c_gst_date_time_new; - GstDateTime* function(GDateTime* dt) c_gst_date_time_new_from_g_date_time; - GstDateTime* function(const(char)* string_) c_gst_date_time_new_from_iso8601_string; - GstDateTime* function(long secs) c_gst_date_time_new_from_unix_epoch_local_time; - GstDateTime* function(long usecs) c_gst_date_time_new_from_unix_epoch_local_time_usecs; - GstDateTime* function(long secs) c_gst_date_time_new_from_unix_epoch_utc; - GstDateTime* function(long usecs) c_gst_date_time_new_from_unix_epoch_utc_usecs; - GstDateTime* function(int year, int month, int day, int hour, int minute, double seconds) c_gst_date_time_new_local_time; - GstDateTime* function() c_gst_date_time_new_now_local_time; - GstDateTime* function() c_gst_date_time_new_now_utc; - GstDateTime* function(int year) c_gst_date_time_new_y; - GstDateTime* function(int year, int month) c_gst_date_time_new_ym; - GstDateTime* function(int year, int month, int day) c_gst_date_time_new_ymd; - int function(GstDateTime* datetime) c_gst_date_time_get_day; - int function(GstDateTime* datetime) c_gst_date_time_get_hour; - int function(GstDateTime* datetime) c_gst_date_time_get_microsecond; - int function(GstDateTime* datetime) c_gst_date_time_get_minute; - int function(GstDateTime* datetime) c_gst_date_time_get_month; - int function(GstDateTime* datetime) c_gst_date_time_get_second; - float function(GstDateTime* datetime) c_gst_date_time_get_time_zone_offset; - int function(GstDateTime* datetime) c_gst_date_time_get_year; - int function(GstDateTime* datetime) c_gst_date_time_has_day; - int function(GstDateTime* datetime) c_gst_date_time_has_month; - int function(GstDateTime* datetime) c_gst_date_time_has_second; - int function(GstDateTime* datetime) c_gst_date_time_has_time; - int function(GstDateTime* datetime) c_gst_date_time_has_year; - GstDateTime* function(GstDateTime* datetime) c_gst_date_time_ref; - GDateTime* function(GstDateTime* datetime) c_gst_date_time_to_g_date_time; - char* function(GstDateTime* datetime) c_gst_date_time_to_iso8601_string; - void function(GstDateTime* datetime) c_gst_date_time_unref; - - // gstreamer.DebugCategory - - void function(GstDebugCategory* category) c_gst_debug_category_free; - uint function(GstDebugCategory* category) c_gst_debug_category_get_color; - const(char)* function(GstDebugCategory* category) c_gst_debug_category_get_description; - const(char)* function(GstDebugCategory* category) c_gst_debug_category_get_name; - GstDebugLevel function(GstDebugCategory* category) c_gst_debug_category_get_threshold; - void function(GstDebugCategory* category) c_gst_debug_category_reset_threshold; - void function(GstDebugCategory* category, GstDebugLevel level) c_gst_debug_category_set_threshold; - - // gstreamer.DebugMessage - - const(char)* function(GstDebugMessage* message) c_gst_debug_message_get; - - // gstreamer.Device - - GType function() c_gst_device_get_type; - GstElement* function(GstDevice* device, const(char)* name) c_gst_device_create_element; - GstCaps* function(GstDevice* device) c_gst_device_get_caps; - char* function(GstDevice* device) c_gst_device_get_device_class; - char* function(GstDevice* device) c_gst_device_get_display_name; - GstStructure* function(GstDevice* device) c_gst_device_get_properties; - int function(GstDevice* device, const(char)* classes) c_gst_device_has_classes; - int function(GstDevice* device, char** classes) c_gst_device_has_classesv; - int function(GstDevice* device, GstElement* element) c_gst_device_reconfigure_element; - - // gstreamer.DeviceMonitor - - GType function() c_gst_device_monitor_get_type; - GstDeviceMonitor* function() c_gst_device_monitor_new; - uint function(GstDeviceMonitor* monitor, const(char)* classes, GstCaps* caps) c_gst_device_monitor_add_filter; - GstBus* function(GstDeviceMonitor* monitor) c_gst_device_monitor_get_bus; - GList* function(GstDeviceMonitor* monitor) c_gst_device_monitor_get_devices; - char** function(GstDeviceMonitor* monitor) c_gst_device_monitor_get_providers; - int function(GstDeviceMonitor* monitor) c_gst_device_monitor_get_show_all_devices; - int function(GstDeviceMonitor* monitor, uint filterId) c_gst_device_monitor_remove_filter; - void function(GstDeviceMonitor* monitor, int showAll) c_gst_device_monitor_set_show_all_devices; - int function(GstDeviceMonitor* monitor) c_gst_device_monitor_start; - void function(GstDeviceMonitor* monitor) c_gst_device_monitor_stop; - - // gstreamer.DeviceProvider - - GType function() c_gst_device_provider_get_type; - int function(GstPlugin* plugin, const(char)* name, uint rank, GType type) c_gst_device_provider_register; - int function(GstDeviceProvider* provider) c_gst_device_provider_can_monitor; - void function(GstDeviceProvider* provider, GstDevice* device) c_gst_device_provider_device_add; - void function(GstDeviceProvider* provider, GstDevice* device, GstDevice* changedDevice) c_gst_device_provider_device_changed; - void function(GstDeviceProvider* provider, GstDevice* device) c_gst_device_provider_device_remove; - GstBus* function(GstDeviceProvider* provider) c_gst_device_provider_get_bus; - GList* function(GstDeviceProvider* provider) c_gst_device_provider_get_devices; - GstDeviceProviderFactory* function(GstDeviceProvider* provider) c_gst_device_provider_get_factory; - char** function(GstDeviceProvider* provider) c_gst_device_provider_get_hidden_providers; - const(char)* function(GstDeviceProvider* provider, const(char)* key) c_gst_device_provider_get_metadata; - void function(GstDeviceProvider* provider, const(char)* name) c_gst_device_provider_hide_provider; - int function(GstDeviceProvider* provider) c_gst_device_provider_start; - void function(GstDeviceProvider* provider) c_gst_device_provider_stop; - void function(GstDeviceProvider* provider, const(char)* name) c_gst_device_provider_unhide_provider; - - // gstreamer.DeviceProviderClass - - void function(GstDeviceProviderClass* klass, const(char)* key, const(char)* value) c_gst_device_provider_class_add_metadata; - void function(GstDeviceProviderClass* klass, const(char)* key, const(char)* value) c_gst_device_provider_class_add_static_metadata; - const(char)* function(GstDeviceProviderClass* klass, const(char)* key) c_gst_device_provider_class_get_metadata; - void function(GstDeviceProviderClass* klass, const(char)* longname, const(char)* classification, const(char)* description, const(char)* author) c_gst_device_provider_class_set_metadata; - void function(GstDeviceProviderClass* klass, const(char)* longname, const(char)* classification, const(char)* description, const(char)* author) c_gst_device_provider_class_set_static_metadata; - - // gstreamer.DeviceProviderFactory - - GType function() c_gst_device_provider_factory_get_type; - GstDeviceProviderFactory* function(const(char)* name) c_gst_device_provider_factory_find; - GstDeviceProvider* function(const(char)* factoryname) c_gst_device_provider_factory_get_by_name; - GList* function(GstRank minrank) c_gst_device_provider_factory_list_get_device_providers; - GstDeviceProvider* function(GstDeviceProviderFactory* factory) c_gst_device_provider_factory_get; - GType function(GstDeviceProviderFactory* factory) c_gst_device_provider_factory_get_device_provider_type; - const(char)* function(GstDeviceProviderFactory* factory, const(char)* key) c_gst_device_provider_factory_get_metadata; - char** function(GstDeviceProviderFactory* factory) c_gst_device_provider_factory_get_metadata_keys; - int function(GstDeviceProviderFactory* factory, const(char)* classes) c_gst_device_provider_factory_has_classes; - int function(GstDeviceProviderFactory* factory, char** classes) c_gst_device_provider_factory_has_classesv; - - // gstreamer.DoubleRange - - GType function() c_gst_double_range_get_type; - - // gstreamer.DynamicTypeFactory - - GType function() c_gst_dynamic_type_factory_get_type; - GType function(const(char)* factoryname) c_gst_dynamic_type_factory_load; - - // gstreamer.Element - - GType function() c_gst_element_get_type; - GstElement* function(GstURIType type, const(char)* uri, const(char)* elementname, GError** err) c_gst_element_make_from_uri; - int function(GstPlugin* plugin, const(char)* name, uint rank, GType type) c_gst_element_register; - const(char)* function(GstStateChangeReturn stateRet) c_gst_element_state_change_return_get_name; - const(char)* function(GstState state) c_gst_element_state_get_name; - void function(GstElement* element) c_gst_element_abort_state; - int function(GstElement* element, GstPad* pad) c_gst_element_add_pad; - gulong function(GstElement* element, const(char)* propertyName, int includeValue) c_gst_element_add_property_deep_notify_watch; - gulong function(GstElement* element, const(char)* propertyName, int includeValue) c_gst_element_add_property_notify_watch; - void function(GstElement* element, GstElementCallAsyncFunc func, void* userData, GDestroyNotify destroyNotify) c_gst_element_call_async; - GstStateChangeReturn function(GstElement* element, GstStateChange transition) c_gst_element_change_state; - GstStateChangeReturn function(GstElement* element, GstStateChangeReturn ret) c_gst_element_continue_state; - void function(GstElement* element) c_gst_element_create_all_pads; - int function(GstElement* element, GstElementForeachPadFunc func, void* userData) c_gst_element_foreach_pad; - int function(GstElement* element, GstElementForeachPadFunc func, void* userData) c_gst_element_foreach_sink_pad; - int function(GstElement* element, GstElementForeachPadFunc func, void* userData) c_gst_element_foreach_src_pad; - GstClockTime function(GstElement* element) c_gst_element_get_base_time; - GstBus* function(GstElement* element) c_gst_element_get_bus; - GstClock* function(GstElement* element) c_gst_element_get_clock; - GstPad* function(GstElement* element, GstPad* pad, GstCaps* caps) c_gst_element_get_compatible_pad; - GstPadTemplate* function(GstElement* element, GstPadTemplate* compattempl) c_gst_element_get_compatible_pad_template; - GstContext* function(GstElement* element, const(char)* contextType) c_gst_element_get_context; - GstContext* function(GstElement* element, const(char)* contextType) c_gst_element_get_context_unlocked; - GList* function(GstElement* element) c_gst_element_get_contexts; - GstClockTime function(GstElement* element) c_gst_element_get_current_clock_time; - GstClockTime function(GstElement* element) c_gst_element_get_current_running_time; - GstElementFactory* function(GstElement* element) c_gst_element_get_factory; - const(char)* function(GstElement* element, const(char)* key) c_gst_element_get_metadata; - GstPadTemplate* function(GstElement* element, const(char)* name) c_gst_element_get_pad_template; - GList* function(GstElement* element) c_gst_element_get_pad_template_list; - GstPad* function(GstElement* element, const(char)* name) c_gst_element_get_request_pad; - GstClockTime function(GstElement* element) c_gst_element_get_start_time; - GstStateChangeReturn function(GstElement* element, GstState* state, GstState* pending, GstClockTime timeout) c_gst_element_get_state; - GstPad* function(GstElement* element, const(char)* name) c_gst_element_get_static_pad; - int function(GstElement* element) c_gst_element_is_locked_state; - GstIterator* function(GstElement* element) c_gst_element_iterate_pads; - GstIterator* function(GstElement* element) c_gst_element_iterate_sink_pads; - GstIterator* function(GstElement* element) c_gst_element_iterate_src_pads; - int function(GstElement* src, GstElement* dest) c_gst_element_link; - int function(GstElement* src, GstElement* dest, GstCaps* filter) c_gst_element_link_filtered; - int function(GstElement* element1, GstElement* element2, ... ) c_gst_element_link_many; - int function(GstElement* src, const(char)* srcpadname, GstElement* dest, const(char)* destpadname) c_gst_element_link_pads; - int function(GstElement* src, const(char)* srcpadname, GstElement* dest, const(char)* destpadname, GstCaps* filter) c_gst_element_link_pads_filtered; - int function(GstElement* src, const(char)* srcpadname, GstElement* dest, const(char)* destpadname, GstPadLinkCheck flags) c_gst_element_link_pads_full; - void function(GstElement* element) c_gst_element_lost_state; - void function(GstElement* element, GstMessageType type, GQuark domain, int code, char* text, char* debug_, const(char)* file, const(char)* function_, int line) c_gst_element_message_full; - void function(GstElement* element, GstMessageType type, GQuark domain, int code, char* text, char* debug_, const(char)* file, const(char)* function_, int line, GstStructure* structure) c_gst_element_message_full_with_details; - void function(GstElement* element) c_gst_element_no_more_pads; - int function(GstElement* element, GstMessage* message) c_gst_element_post_message; - GstClock* function(GstElement* element) c_gst_element_provide_clock; - int function(GstElement* element, GstQuery* query) c_gst_element_query; - int function(GstElement* element, GstFormat srcFormat, long srcVal, GstFormat destFormat, long* destVal) c_gst_element_query_convert; - int function(GstElement* element, GstFormat format, long* duration) c_gst_element_query_duration; - int function(GstElement* element, GstFormat format, long* cur) c_gst_element_query_position; - void function(GstElement* element, GstPad* pad) c_gst_element_release_request_pad; - int function(GstElement* element, GstPad* pad) c_gst_element_remove_pad; - void function(GstElement* element, gulong watchId) c_gst_element_remove_property_notify_watch; - GstPad* function(GstElement* element, GstPadTemplate* templ, const(char)* name, GstCaps* caps) c_gst_element_request_pad; - int function(GstElement* element, double rate, GstFormat format, GstSeekFlags flags, GstSeekType startType, long start, GstSeekType stopType, long stop) c_gst_element_seek; - int function(GstElement* element, GstFormat format, GstSeekFlags seekFlags, long seekPos) c_gst_element_seek_simple; - int function(GstElement* element, GstEvent* event) c_gst_element_send_event; - void function(GstElement* element, GstClockTime time) c_gst_element_set_base_time; - void function(GstElement* element, GstBus* bus) c_gst_element_set_bus; - int function(GstElement* element, GstClock* clock) c_gst_element_set_clock; - void function(GstElement* element, GstContext* context) c_gst_element_set_context; - int function(GstElement* element, int lockedState) c_gst_element_set_locked_state; - void function(GstElement* element, GstClockTime time) c_gst_element_set_start_time; - GstStateChangeReturn function(GstElement* element, GstState state) c_gst_element_set_state; - int function(GstElement* element) c_gst_element_sync_state_with_parent; - void function(GstElement* src, GstElement* dest) c_gst_element_unlink; - void function(GstElement* element1, GstElement* element2, ... ) c_gst_element_unlink_many; - void function(GstElement* src, const(char)* srcpadname, GstElement* dest, const(char)* destpadname) c_gst_element_unlink_pads; - - // gstreamer.ElementClass - - void function(GstElementClass* klass, const(char)* key, const(char)* value) c_gst_element_class_add_metadata; - void function(GstElementClass* klass, GstPadTemplate* templ) c_gst_element_class_add_pad_template; - void function(GstElementClass* klass, const(char)* key, const(char)* value) c_gst_element_class_add_static_metadata; - void function(GstElementClass* klass, GstStaticPadTemplate* staticTempl) c_gst_element_class_add_static_pad_template; - void function(GstElementClass* klass, GstStaticPadTemplate* staticTempl, GType padType) c_gst_element_class_add_static_pad_template_with_gtype; - const(char)* function(GstElementClass* klass, const(char)* key) c_gst_element_class_get_metadata; - GstPadTemplate* function(GstElementClass* elementClass, const(char)* name) c_gst_element_class_get_pad_template; - GList* function(GstElementClass* elementClass) c_gst_element_class_get_pad_template_list; - void function(GstElementClass* klass, const(char)* longname, const(char)* classification, const(char)* description, const(char)* author) c_gst_element_class_set_metadata; - void function(GstElementClass* klass, const(char)* longname, const(char)* classification, const(char)* description, const(char)* author) c_gst_element_class_set_static_metadata; - - // gstreamer.ElementFactory - - GType function() c_gst_element_factory_get_type; - GstElementFactory* function(const(char)* name) c_gst_element_factory_find; - GList* function(GList* list, GstCaps* caps, GstPadDirection direction, int subsetonly) c_gst_element_factory_list_filter; - GList* function(GstElementFactoryListType type, GstRank minrank) c_gst_element_factory_list_get_elements; - GstElement* function(const(char)* factoryname, const(char)* name) c_gst_element_factory_make; - int function(GstElementFactory* factory, GstCaps* caps) c_gst_element_factory_can_sink_all_caps; - int function(GstElementFactory* factory, GstCaps* caps) c_gst_element_factory_can_sink_any_caps; - int function(GstElementFactory* factory, GstCaps* caps) c_gst_element_factory_can_src_all_caps; - int function(GstElementFactory* factory, GstCaps* caps) c_gst_element_factory_can_src_any_caps; - GstElement* function(GstElementFactory* factory, const(char)* name) c_gst_element_factory_create; - GType function(GstElementFactory* factory) c_gst_element_factory_get_element_type; - const(char)* function(GstElementFactory* factory, const(char)* key) c_gst_element_factory_get_metadata; - char** function(GstElementFactory* factory) c_gst_element_factory_get_metadata_keys; - uint function(GstElementFactory* factory) c_gst_element_factory_get_num_pad_templates; - GList* function(GstElementFactory* factory) c_gst_element_factory_get_static_pad_templates; - char** function(GstElementFactory* factory) c_gst_element_factory_get_uri_protocols; - GstURIType function(GstElementFactory* factory) c_gst_element_factory_get_uri_type; - int function(GstElementFactory* factory, const(char)* interfacename) c_gst_element_factory_has_interface; - int function(GstElementFactory* factory, GstElementFactoryListType type) c_gst_element_factory_list_is_type; - - // gstreamer.Event - - GType function() c_gst_event_get_type; - GstEvent* function(GstFormat format, long minsize, long maxsize, int async) c_gst_event_new_buffer_size; - GstEvent* function(GstCaps* caps) c_gst_event_new_caps; - GstEvent* function(GstEventType type, GstStructure* structure) c_gst_event_new_custom; - GstEvent* function() c_gst_event_new_eos; - GstEvent* function() c_gst_event_new_flush_start; - GstEvent* function(int resetTime) c_gst_event_new_flush_stop; - GstEvent* function(GstClockTime timestamp, GstClockTime duration) c_gst_event_new_gap; - GstEvent* function(double rateMultiplier, GstSegmentFlags newFlags) c_gst_event_new_instant_rate_change; - GstEvent* function(double rateMultiplier, GstClockTime runningTime, GstClockTime upstreamRunningTime) c_gst_event_new_instant_rate_sync_time; - GstEvent* function(GstClockTime latency) c_gst_event_new_latency; - GstEvent* function(GstStructure* structure) c_gst_event_new_navigation; - GstEvent* function(const(char)* systemId, GstBuffer* data, const(char)* origin) c_gst_event_new_protection; - GstEvent* function(GstQOSType type, double proportion, GstClockTimeDiff diff, GstClockTime timestamp) c_gst_event_new_qos; - GstEvent* function() c_gst_event_new_reconfigure; - GstEvent* function(double rate, GstFormat format, GstSeekFlags flags, GstSeekType startType, long start, GstSeekType stopType, long stop) c_gst_event_new_seek; - GstEvent* function(GstSegment* segment) c_gst_event_new_segment; - GstEvent* function(GstFormat format, long position) c_gst_event_new_segment_done; - GstEvent* function(GList* streams) c_gst_event_new_select_streams; - GstEvent* function(const(char)* name, GstMessage* msg) c_gst_event_new_sink_message; - GstEvent* function(GstFormat format, ulong amount, double rate, int flush, int intermediate) c_gst_event_new_step; - GstEvent* function(GstStreamCollection* collection) c_gst_event_new_stream_collection; - GstEvent* function(uint groupId) c_gst_event_new_stream_group_done; - GstEvent* function(const(char)* streamId) c_gst_event_new_stream_start; - GstEvent* function(GstTagList* taglist) c_gst_event_new_tag; - GstEvent* function(GstToc* toc, int updated) c_gst_event_new_toc; - GstEvent* function(const(char)* uid) c_gst_event_new_toc_select; - void function(GstEvent* event, GstSegment* segment) c_gst_event_copy_segment; - long function(GstEvent* event) c_gst_event_get_running_time_offset; - uint function(GstEvent* event) c_gst_event_get_seqnum; - GstStructure* function(GstEvent* event) c_gst_event_get_structure; - int function(GstEvent* event, const(char)* name) c_gst_event_has_name; - int function(GstEvent* event, GQuark name) c_gst_event_has_name_id; - void function(GstEvent* event, GstFormat* format, long* minsize, long* maxsize, int* async) c_gst_event_parse_buffer_size; - void function(GstEvent* event, GstCaps** caps) c_gst_event_parse_caps; - void function(GstEvent* event, int* resetTime) c_gst_event_parse_flush_stop; - void function(GstEvent* event, GstClockTime* timestamp, GstClockTime* duration) c_gst_event_parse_gap; - int function(GstEvent* event, uint* groupId) c_gst_event_parse_group_id; - void function(GstEvent* event, double* rateMultiplier, GstSegmentFlags* newFlags) c_gst_event_parse_instant_rate_change; - void function(GstEvent* event, double* rateMultiplier, GstClockTime* runningTime, GstClockTime* upstreamRunningTime) c_gst_event_parse_instant_rate_sync_time; - void function(GstEvent* event, GstClockTime* latency) c_gst_event_parse_latency; - void function(GstEvent* event, char** systemId, GstBuffer** data, char** origin) c_gst_event_parse_protection; - void function(GstEvent* event, GstQOSType* type, double* proportion, GstClockTimeDiff* diff, GstClockTime* timestamp) c_gst_event_parse_qos; - void function(GstEvent* event, double* rate, GstFormat* format, GstSeekFlags* flags, GstSeekType* startType, long* start, GstSeekType* stopType, long* stop) c_gst_event_parse_seek; - void function(GstEvent* event, GstClockTime* interval) c_gst_event_parse_seek_trickmode_interval; - void function(GstEvent* event, GstSegment** segment) c_gst_event_parse_segment; - void function(GstEvent* event, GstFormat* format, long* position) c_gst_event_parse_segment_done; - void function(GstEvent* event, GList** streams) c_gst_event_parse_select_streams; - void function(GstEvent* event, GstMessage** msg) c_gst_event_parse_sink_message; - void function(GstEvent* event, GstFormat* format, ulong* amount, double* rate, int* flush, int* intermediate) c_gst_event_parse_step; - void function(GstEvent* event, GstStream** stream) c_gst_event_parse_stream; - void function(GstEvent* event, GstStreamCollection** collection) c_gst_event_parse_stream_collection; - void function(GstEvent* event, GstStreamFlags* flags) c_gst_event_parse_stream_flags; - void function(GstEvent* event, uint* groupId) c_gst_event_parse_stream_group_done; - void function(GstEvent* event, char** streamId) c_gst_event_parse_stream_start; - void function(GstEvent* event, GstTagList** taglist) c_gst_event_parse_tag; - void function(GstEvent* event, GstToc** toc, int* updated) c_gst_event_parse_toc; - void function(GstEvent* event, char** uid) c_gst_event_parse_toc_select; - void function(GstEvent* event, uint groupId) c_gst_event_set_group_id; - void function(GstEvent* event, long offset) c_gst_event_set_running_time_offset; - void function(GstEvent* event, GstClockTime interval) c_gst_event_set_seek_trickmode_interval; - void function(GstEvent* event, uint seqnum) c_gst_event_set_seqnum; - void function(GstEvent* event, GstStream* stream) c_gst_event_set_stream; - void function(GstEvent* event, GstStreamFlags flags) c_gst_event_set_stream_flags; - GstStructure* function(GstEvent* event) c_gst_event_writable_structure; - GstEventTypeFlags function(GstEventType type) c_gst_event_type_get_flags; - const(char)* function(GstEventType type) c_gst_event_type_get_name; - GQuark function(GstEventType type) c_gst_event_type_to_quark; - - // gstreamer.FlagSet - - GType function() c_gst_flagset_get_type; - GType function(GType flagsType) c_gst_flagset_register; - - // gstreamer.Fraction - - GType function() c_gst_fraction_get_type; - - // gstreamer.FractionRange - - GType function() c_gst_fraction_range_get_type; - - // gstreamer.GhostPad - - GType function() c_gst_ghost_pad_get_type; - GstPad* function(const(char)* name, GstPad* target) c_gst_ghost_pad_new; - GstPad* function(const(char)* name, GstPad* target, GstPadTemplate* templ) c_gst_ghost_pad_new_from_template; - GstPad* function(const(char)* name, GstPadDirection dir) c_gst_ghost_pad_new_no_target; - GstPad* function(const(char)* name, GstPadTemplate* templ) c_gst_ghost_pad_new_no_target_from_template; - int function(GstPad* pad, GstObject* parent, GstPadMode mode, int active) c_gst_ghost_pad_activate_mode_default; - int function(GstPad* pad, GstObject* parent, GstPadMode mode, int active) c_gst_ghost_pad_internal_activate_mode_default; - int function(GstGhostPad* gpad) c_gst_ghost_pad_construct; - GstPad* function(GstGhostPad* gpad) c_gst_ghost_pad_get_target; - int function(GstGhostPad* gpad, GstPad* newtarget) c_gst_ghost_pad_set_target; - - // gstreamer.Int64Range - - GType function() c_gst_int64_range_get_type; - - // gstreamer.IntRange - - GType function() c_gst_int_range_get_type; - - // gstreamer.Iterator - - GType function() c_gst_iterator_get_type; - GstIterator* function(uint size, GType type, GMutex* lock, uint* masterCookie, GstIteratorCopyFunction copy, GstIteratorNextFunction next, GstIteratorItemFunction item, GstIteratorResyncFunction resync, GstIteratorFreeFunction free) c_gst_iterator_new; - GstIterator* function(GType type, GMutex* lock, uint* masterCookie, GList** list, GObject* owner, GstIteratorItemFunction item) c_gst_iterator_new_list; - GstIterator* function(GType type, GValue* object) c_gst_iterator_new_single; - GstIterator* function(GstIterator* it) c_gst_iterator_copy; - GstIterator* function(GstIterator* it, GCompareFunc func, GValue* userData) c_gst_iterator_filter; - int function(GstIterator* it, GCompareFunc func, GValue* elem, void* userData) c_gst_iterator_find_custom; - GstIteratorResult function(GstIterator* it, GstIteratorFoldFunction func, GValue* ret, void* userData) c_gst_iterator_fold; - GstIteratorResult function(GstIterator* it, GstIteratorForeachFunction func, void* userData) c_gst_iterator_foreach; - void function(GstIterator* it) c_gst_iterator_free; - GstIteratorResult function(GstIterator* it, GValue* elem) c_gst_iterator_next; - void function(GstIterator* it, GstIterator* other) c_gst_iterator_push; - void function(GstIterator* it) c_gst_iterator_resync; - - // gstreamer.Memory - - GType function() c_gst_memory_get_type; - GstMemory* function(GstMemoryFlags flags, void* data, size_t maxsize, size_t offset, size_t size, void* userData, GDestroyNotify notify) c_gst_memory_new_wrapped; - GstMemory* function(GstMemory* mem, ptrdiff_t offset, ptrdiff_t size) c_gst_memory_copy; - size_t function(GstMemory* mem, size_t* offset, size_t* maxsize) c_gst_memory_get_sizes; - void function(GstMemory* mem, GstMemoryFlags flags, GstAllocator* allocator, GstMemory* parent, size_t maxsize, size_t align_, size_t offset, size_t size) c_gst_memory_init; - int function(GstMemory* mem1, GstMemory* mem2, size_t* offset) c_gst_memory_is_span; - int function(GstMemory* mem, const(char)* memType) c_gst_memory_is_type; - GstMemory* function(GstMemory* mem, GstMapInfo* info, GstMapFlags flags) c_gst_memory_make_mapped; - int function(GstMemory* mem, GstMapInfo* info, GstMapFlags flags) c_gst_memory_map; - void function(GstMemory* mem, ptrdiff_t offset, size_t size) c_gst_memory_resize; - GstMemory* function(GstMemory* mem, ptrdiff_t offset, ptrdiff_t size) c_gst_memory_share; - void function(GstMemory* mem, GstMapInfo* info) c_gst_memory_unmap; - - // gstreamer.Message - - GType function() c_gst_message_get_type; - GstMessage* function(GstObject* src, GstStructure* structure) c_gst_message_new_application; - GstMessage* function(GstObject* src, GstClockTime runningTime) c_gst_message_new_async_done; - GstMessage* function(GstObject* src) c_gst_message_new_async_start; - GstMessage* function(GstObject* src, int percent) c_gst_message_new_buffering; - GstMessage* function(GstObject* src, GstClock* clock) c_gst_message_new_clock_lost; - GstMessage* function(GstObject* src, GstClock* clock, int ready) c_gst_message_new_clock_provide; - GstMessage* function(GstMessageType type, GstObject* src, GstStructure* structure) c_gst_message_new_custom; - GstMessage* function(GstObject* src, GstDevice* device) c_gst_message_new_device_added; - GstMessage* function(GstObject* src, GstDevice* device, GstDevice* changedDevice) c_gst_message_new_device_changed; - GstMessage* function(GstObject* src, GstDevice* device) c_gst_message_new_device_removed; - GstMessage* function(GstObject* src) c_gst_message_new_duration_changed; - GstMessage* function(GstObject* src, GstStructure* structure) c_gst_message_new_element; - GstMessage* function(GstObject* src) c_gst_message_new_eos; - GstMessage* function(GstObject* src, GError* error, const(char)* debug_) c_gst_message_new_error; - GstMessage* function(GstObject* src, GError* error, const(char)* debug_, GstStructure* details) c_gst_message_new_error_with_details; - GstMessage* function(GstObject* src, GstContext* context) c_gst_message_new_have_context; - GstMessage* function(GstObject* src, GError* error, const(char)* debug_) c_gst_message_new_info; - GstMessage* function(GstObject* src, GError* error, const(char)* debug_, GstStructure* details) c_gst_message_new_info_with_details; - GstMessage* function(GstObject* src, double rateMultiplier) c_gst_message_new_instant_rate_request; - GstMessage* function(GstObject* src) c_gst_message_new_latency; - GstMessage* function(GstObject* src, const(char)* contextType) c_gst_message_new_need_context; - GstMessage* function(GstObject* src, GstClock* clock) c_gst_message_new_new_clock; - GstMessage* function(GstObject* src, GstProgressType type, const(char)* code, const(char)* text) c_gst_message_new_progress; - GstMessage* function(GstObject* src, const(char)* propertyName, GValue* val) c_gst_message_new_property_notify; - GstMessage* function(GstObject* src, int live, ulong runningTime, ulong streamTime, ulong timestamp, ulong duration) c_gst_message_new_qos; - GstMessage* function(GstObject* src, const(char)* location, GstTagList* tagList, GstStructure* entryStruct) c_gst_message_new_redirect; - GstMessage* function(GstObject* src, GstState state) c_gst_message_new_request_state; - GstMessage* function(GstObject* src, GstClockTime runningTime) c_gst_message_new_reset_time; - GstMessage* function(GstObject* src, GstFormat format, long position) c_gst_message_new_segment_done; - GstMessage* function(GstObject* src, GstFormat format, long position) c_gst_message_new_segment_start; - GstMessage* function(GstObject* src, GstState oldstate, GstState newstate, GstState pending) c_gst_message_new_state_changed; - GstMessage* function(GstObject* src) c_gst_message_new_state_dirty; - GstMessage* function(GstObject* src, GstFormat format, ulong amount, double rate, int flush, int intermediate, ulong duration, int eos) c_gst_message_new_step_done; - GstMessage* function(GstObject* src, int active, GstFormat format, ulong amount, double rate, int flush, int intermediate) c_gst_message_new_step_start; - GstMessage* function(GstObject* src, GstStreamCollection* collection) c_gst_message_new_stream_collection; - GstMessage* function(GstObject* src) c_gst_message_new_stream_start; - GstMessage* function(GstObject* src, GstStreamStatusType type, GstElement* owner) c_gst_message_new_stream_status; - GstMessage* function(GstObject* src, GstStreamCollection* collection) c_gst_message_new_streams_selected; - GstMessage* function(GstObject* src, GstStructureChangeType type, GstElement* owner, int busy) c_gst_message_new_structure_change; - GstMessage* function(GstObject* src, GstTagList* tagList) c_gst_message_new_tag; - GstMessage* function(GstObject* src, GstToc* toc, int updated) c_gst_message_new_toc; - GstMessage* function(GstObject* src, GError* error, const(char)* debug_) c_gst_message_new_warning; - GstMessage* function(GstObject* src, GError* error, const(char)* debug_, GstStructure* details) c_gst_message_new_warning_with_details; - void function(GstMessage* message, const(char)* location, GstTagList* tagList, GstStructure* entryStruct) c_gst_message_add_redirect_entry; - GstMessage* function(GstMessage* msg) c_gst_message_copy; - size_t function(GstMessage* message) c_gst_message_get_num_redirect_entries; - uint function(GstMessage* message) c_gst_message_get_seqnum; - GValue* function(GstMessage* message) c_gst_message_get_stream_status_object; - GstStructure* function(GstMessage* message) c_gst_message_get_structure; - int function(GstMessage* message, const(char)* name) c_gst_message_has_name; - void function(GstMessage* message, GstClockTime* runningTime) c_gst_message_parse_async_done; - void function(GstMessage* message, int* percent) c_gst_message_parse_buffering; - void function(GstMessage* message, GstBufferingMode* mode, int* avgIn, int* avgOut, long* bufferingLeft) c_gst_message_parse_buffering_stats; - void function(GstMessage* message, GstClock** clock) c_gst_message_parse_clock_lost; - void function(GstMessage* message, GstClock** clock, int* ready) c_gst_message_parse_clock_provide; - int function(GstMessage* message, char** contextType) c_gst_message_parse_context_type; - void function(GstMessage* message, GstDevice** device) c_gst_message_parse_device_added; - void function(GstMessage* message, GstDevice** device, GstDevice** changedDevice) c_gst_message_parse_device_changed; - void function(GstMessage* message, GstDevice** device) c_gst_message_parse_device_removed; - void function(GstMessage* message, GError** gerror, char** debug_) c_gst_message_parse_error; - void function(GstMessage* message, GstStructure** structure) c_gst_message_parse_error_details; - int function(GstMessage* message, uint* groupId) c_gst_message_parse_group_id; - void function(GstMessage* message, GstContext** context) c_gst_message_parse_have_context; - void function(GstMessage* message, GError** gerror, char** debug_) c_gst_message_parse_info; - void function(GstMessage* message, GstStructure** structure) c_gst_message_parse_info_details; - void function(GstMessage* message, double* rateMultiplier) c_gst_message_parse_instant_rate_request; - void function(GstMessage* message, GstClock** clock) c_gst_message_parse_new_clock; - void function(GstMessage* message, GstProgressType* type, char** code, char** text) c_gst_message_parse_progress; - void function(GstMessage* message, GstObject** object, char** propertyName, GValue** propertyValue) c_gst_message_parse_property_notify; - void function(GstMessage* message, int* live, ulong* runningTime, ulong* streamTime, ulong* timestamp, ulong* duration) c_gst_message_parse_qos; - void function(GstMessage* message, GstFormat* format, ulong* processed, ulong* dropped) c_gst_message_parse_qos_stats; - void function(GstMessage* message, long* jitter, double* proportion, int* quality) c_gst_message_parse_qos_values; - void function(GstMessage* message, size_t entryIndex, char** location, GstTagList** tagList, GstStructure** entryStruct) c_gst_message_parse_redirect_entry; - void function(GstMessage* message, GstState* state) c_gst_message_parse_request_state; - void function(GstMessage* message, GstClockTime* runningTime) c_gst_message_parse_reset_time; - void function(GstMessage* message, GstFormat* format, long* position) c_gst_message_parse_segment_done; - void function(GstMessage* message, GstFormat* format, long* position) c_gst_message_parse_segment_start; - void function(GstMessage* message, GstState* oldstate, GstState* newstate, GstState* pending) c_gst_message_parse_state_changed; - void function(GstMessage* message, GstFormat* format, ulong* amount, double* rate, int* flush, int* intermediate, ulong* duration, int* eos) c_gst_message_parse_step_done; - void function(GstMessage* message, int* active, GstFormat* format, ulong* amount, double* rate, int* flush, int* intermediate) c_gst_message_parse_step_start; - void function(GstMessage* message, GstStreamCollection** collection) c_gst_message_parse_stream_collection; - void function(GstMessage* message, GstStreamStatusType* type, GstElement** owner) c_gst_message_parse_stream_status; - void function(GstMessage* message, GstStreamCollection** collection) c_gst_message_parse_streams_selected; - void function(GstMessage* message, GstStructureChangeType* type, GstElement** owner, int* busy) c_gst_message_parse_structure_change; - void function(GstMessage* message, GstTagList** tagList) c_gst_message_parse_tag; - void function(GstMessage* message, GstToc** toc, int* updated) c_gst_message_parse_toc; - void function(GstMessage* message, GError** gerror, char** debug_) c_gst_message_parse_warning; - void function(GstMessage* message, GstStructure** structure) c_gst_message_parse_warning_details; - void function(GstMessage* message, GstBufferingMode mode, int avgIn, int avgOut, long bufferingLeft) c_gst_message_set_buffering_stats; - void function(GstMessage* message, uint groupId) c_gst_message_set_group_id; - void function(GstMessage* message, GstFormat format, ulong processed, ulong dropped) c_gst_message_set_qos_stats; - void function(GstMessage* message, long jitter, double proportion, int quality) c_gst_message_set_qos_values; - void function(GstMessage* message, uint seqnum) c_gst_message_set_seqnum; - void function(GstMessage* message, GValue* object) c_gst_message_set_stream_status_object; - void function(GstMessage* message, GstStream* stream) c_gst_message_streams_selected_add; - uint function(GstMessage* message) c_gst_message_streams_selected_get_size; - GstStream* function(GstMessage* message, uint idx) c_gst_message_streams_selected_get_stream; - GstStructure* function(GstMessage* message) c_gst_message_writable_structure; - int function(GstMessage** oldMessage, GstMessage* newMessage) c_gst_message_replace; - const(char)* function(GstMessageType type) c_gst_message_type_get_name; - GQuark function(GstMessageType type) c_gst_message_type_to_quark; - - // gstreamer.Meta - - int function(GstMeta* meta1, GstMeta* meta2) c_gst_meta_compare_seqnum; - ulong function(GstMeta* meta) c_gst_meta_get_seqnum; - char** function(GType api) c_gst_meta_api_type_get_tags; - int function(GType api, GQuark tag) c_gst_meta_api_type_has_tag; - GType function(const(char)* api, char** tags) c_gst_meta_api_type_register; - GstMetaInfo* function(const(char)* impl) c_gst_meta_get_info; - GstMetaInfo* function(GType api, const(char)* impl, size_t size, GstMetaInitFunction initFunc, GstMetaFreeFunction freeFunc, GstMetaTransformFunction transformFunc) c_gst_meta_register; - - // gstreamer.MiniObject - - void function(GstMiniObject* object, GstMiniObject* parent) c_gst_mini_object_add_parent; - GstMiniObject* function(GstMiniObject* miniObject) c_gst_mini_object_copy; - void* function(GstMiniObject* object, GQuark quark) c_gst_mini_object_get_qdata; - void function(GstMiniObject* miniObject, uint flags, GType type, GstMiniObjectCopyFunction copyFunc, GstMiniObjectDisposeFunction disposeFunc, GstMiniObjectFreeFunction freeFunc) c_gst_mini_object_init; - int function(GstMiniObject* miniObject) c_gst_mini_object_is_writable; - int function(GstMiniObject* object, GstLockFlags flags) c_gst_mini_object_lock; - GstMiniObject* function(GstMiniObject* miniObject) c_gst_mini_object_make_writable; - GstMiniObject* function(GstMiniObject* miniObject) c_gst_mini_object_ref; - void function(GstMiniObject* object, GstMiniObject* parent) c_gst_mini_object_remove_parent; - void function(GstMiniObject* object, GQuark quark, void* data, GDestroyNotify destroy) c_gst_mini_object_set_qdata; - void* function(GstMiniObject* object, GQuark quark) c_gst_mini_object_steal_qdata; - void function(GstMiniObject* object, GstLockFlags flags) c_gst_mini_object_unlock; - void function(GstMiniObject* miniObject) c_gst_mini_object_unref; - void function(GstMiniObject* object, GstMiniObjectNotify notify, void* data) c_gst_mini_object_weak_ref; - void function(GstMiniObject* object, GstMiniObjectNotify notify, void* data) c_gst_mini_object_weak_unref; - int function(GstMiniObject** olddata, GstMiniObject* newdata) c_gst_mini_object_replace; - GstMiniObject* function(GstMiniObject** olddata) c_gst_mini_object_steal; - int function(GstMiniObject** olddata, GstMiniObject* newdata) c_gst_mini_object_take; - - // gstreamer.ObjectGst - - GType function() c_gst_object_get_type; - int function(GList* list, const(char)* name) c_gst_object_check_uniqueness; - void function(GObject* object, GstObject* orig, GParamSpec* pspec, char** excludedProps) c_gst_object_default_deep_notify; - void* function(void* object) c_gst_object_ref_sink; - int function(GstObject** oldobj, GstObject* newobj) c_gst_object_replace; - int function(GstObject* object, GstControlBinding* binding) c_gst_object_add_control_binding; - void function(GstObject* source, GError* error, const(char)* debug_) c_gst_object_default_error; - GstControlBinding* function(GstObject* object, const(char)* propertyName) c_gst_object_get_control_binding; - GstClockTime function(GstObject* object) c_gst_object_get_control_rate; - int function(GstObject* object, const(char)* propertyName, GstClockTime timestamp, GstClockTime interval, uint nValues, GValue* values) c_gst_object_get_g_value_array; - char* function(GstObject* object) c_gst_object_get_name; - GstObject* function(GstObject* object) c_gst_object_get_parent; - char* function(GstObject* object) c_gst_object_get_path_string; - GValue* function(GstObject* object, const(char)* propertyName, GstClockTime timestamp) c_gst_object_get_value; - int function(GstObject* object, const(char)* propertyName, GstClockTime timestamp, GstClockTime interval, uint nValues, void* values) c_gst_object_get_value_array; - int function(GstObject* object) c_gst_object_has_active_control_bindings; - int function(GstObject* object, GstObject* ancestor) c_gst_object_has_ancestor; - int function(GstObject* object, GstObject* ancestor) c_gst_object_has_as_ancestor; - int function(GstObject* object, GstObject* parent) c_gst_object_has_as_parent; - void* function(void* object) c_gst_object_ref; - int function(GstObject* object, GstControlBinding* binding) c_gst_object_remove_control_binding; - void function(GstObject* object, const(char)* propertyName, int disabled) c_gst_object_set_control_binding_disabled; - void function(GstObject* object, int disabled) c_gst_object_set_control_bindings_disabled; - void function(GstObject* object, GstClockTime controlRate) c_gst_object_set_control_rate; - int function(GstObject* object, const(char)* name) c_gst_object_set_name; - int function(GstObject* object, GstObject* parent) c_gst_object_set_parent; - GstClockTime function(GstObject* object) c_gst_object_suggest_next_sync; - int function(GstObject* object, GstClockTime timestamp) c_gst_object_sync_values; - void function(GstObject* object) c_gst_object_unparent; - void function(void* object) c_gst_object_unref; - - // gstreamer.Pad - - GType function() c_gst_pad_get_type; - GstPad* function(const(char)* name, GstPadDirection direction) c_gst_pad_new; - GstPad* function(GstStaticPadTemplate* templ, const(char)* name) c_gst_pad_new_from_static_template; - GstPad* function(GstPadTemplate* templ, const(char)* name) c_gst_pad_new_from_template; - const(char)* function(GstPadLinkReturn ret) c_gst_pad_link_get_name; - int function(GstPad* pad, GstPadMode mode, int active) c_gst_pad_activate_mode; - gulong function(GstPad* pad, GstPadProbeType mask, GstPadProbeCallback callback, void* userData, GDestroyNotify destroyData) c_gst_pad_add_probe; - int function(GstPad* srcpad, GstPad* sinkpad) c_gst_pad_can_link; - GstFlowReturn function(GstPad* pad, GstBuffer* buffer) c_gst_pad_chain; - GstFlowReturn function(GstPad* pad, GstBufferList* list) c_gst_pad_chain_list; - int function(GstPad* pad) c_gst_pad_check_reconfigure; - char* function(GstPad* pad, GstElement* parent, const(char)* streamId) c_gst_pad_create_stream_id; - char* function(GstPad* pad, GstElement* parent, const(char)* streamId, ... ) c_gst_pad_create_stream_id_printf; - char* function(GstPad* pad, GstElement* parent, const(char)* streamId, void* varArgs) c_gst_pad_create_stream_id_printf_valist; - int function(GstPad* pad, GstObject* parent, GstEvent* event) c_gst_pad_event_default; - int function(GstPad* pad, GstPadForwardFunction forward, void* userData) c_gst_pad_forward; - GstCaps* function(GstPad* pad) c_gst_pad_get_allowed_caps; - GstCaps* function(GstPad* pad) c_gst_pad_get_current_caps; - GstPadDirection function(GstPad* pad) c_gst_pad_get_direction; - void* function(GstPad* pad) c_gst_pad_get_element_private; - GstFlowReturn function(GstPad* pad) c_gst_pad_get_last_flow_return; - long function(GstPad* pad) c_gst_pad_get_offset; - GstPadTemplate* function(GstPad* pad) c_gst_pad_get_pad_template; - GstCaps* function(GstPad* pad) c_gst_pad_get_pad_template_caps; - GstElement* function(GstPad* pad) c_gst_pad_get_parent_element; - GstPad* function(GstPad* pad) c_gst_pad_get_peer; - GstFlowReturn function(GstPad* pad, ulong offset, uint size, GstBuffer** buffer) c_gst_pad_get_range; - GstPad* function(GstPad* pad) c_gst_pad_get_single_internal_link; - GstEvent* function(GstPad* pad, GstEventType eventType, uint idx) c_gst_pad_get_sticky_event; - GstStream* function(GstPad* pad) c_gst_pad_get_stream; - char* function(GstPad* pad) c_gst_pad_get_stream_id; - GstTaskState function(GstPad* pad) c_gst_pad_get_task_state; - int function(GstPad* pad) c_gst_pad_has_current_caps; - int function(GstPad* pad) c_gst_pad_is_active; - int function(GstPad* pad) c_gst_pad_is_blocked; - int function(GstPad* pad) c_gst_pad_is_blocking; - int function(GstPad* pad) c_gst_pad_is_linked; - GstIterator* function(GstPad* pad) c_gst_pad_iterate_internal_links; - GstIterator* function(GstPad* pad, GstObject* parent) c_gst_pad_iterate_internal_links_default; - GstPadLinkReturn function(GstPad* srcpad, GstPad* sinkpad) c_gst_pad_link; - GstPadLinkReturn function(GstPad* srcpad, GstPad* sinkpad, GstPadLinkCheck flags) c_gst_pad_link_full; - int function(GstPad* src, GstPad* sink) c_gst_pad_link_maybe_ghosting; - int function(GstPad* src, GstPad* sink, GstPadLinkCheck flags) c_gst_pad_link_maybe_ghosting_full; - void function(GstPad* pad) c_gst_pad_mark_reconfigure; - int function(GstPad* pad) c_gst_pad_needs_reconfigure; - int function(GstPad* pad) c_gst_pad_pause_task; - int function(GstPad* pad, GstQuery* query) c_gst_pad_peer_query; - int function(GstPad* pad, GstCaps* caps) c_gst_pad_peer_query_accept_caps; - GstCaps* function(GstPad* pad, GstCaps* filter) c_gst_pad_peer_query_caps; - int function(GstPad* pad, GstFormat srcFormat, long srcVal, GstFormat destFormat, long* destVal) c_gst_pad_peer_query_convert; - int function(GstPad* pad, GstFormat format, long* duration) c_gst_pad_peer_query_duration; - int function(GstPad* pad, GstFormat format, long* cur) c_gst_pad_peer_query_position; - int function(GstPad* pad, GstQuery* query) c_gst_pad_proxy_query_accept_caps; - int function(GstPad* pad, GstQuery* query) c_gst_pad_proxy_query_caps; - GstFlowReturn function(GstPad* pad, ulong offset, uint size, GstBuffer** buffer) c_gst_pad_pull_range; - GstFlowReturn function(GstPad* pad, GstBuffer* buffer) c_gst_pad_push; - int function(GstPad* pad, GstEvent* event) c_gst_pad_push_event; - GstFlowReturn function(GstPad* pad, GstBufferList* list) c_gst_pad_push_list; - int function(GstPad* pad, GstQuery* query) c_gst_pad_query; - int function(GstPad* pad, GstCaps* caps) c_gst_pad_query_accept_caps; - GstCaps* function(GstPad* pad, GstCaps* filter) c_gst_pad_query_caps; - int function(GstPad* pad, GstFormat srcFormat, long srcVal, GstFormat destFormat, long* destVal) c_gst_pad_query_convert; - int function(GstPad* pad, GstObject* parent, GstQuery* query) c_gst_pad_query_default; - int function(GstPad* pad, GstFormat format, long* duration) c_gst_pad_query_duration; - int function(GstPad* pad, GstFormat format, long* cur) c_gst_pad_query_position; - void function(GstPad* pad, gulong id) c_gst_pad_remove_probe; - int function(GstPad* pad, GstEvent* event) c_gst_pad_send_event; - void function(GstPad* pad, GstPadActivateFunction activate, void* userData, GDestroyNotify notify) c_gst_pad_set_activate_function_full; - void function(GstPad* pad, GstPadActivateModeFunction activatemode, void* userData, GDestroyNotify notify) c_gst_pad_set_activatemode_function_full; - int function(GstPad* pad, int active) c_gst_pad_set_active; - void function(GstPad* pad, GstPadChainFunction chain, void* userData, GDestroyNotify notify) c_gst_pad_set_chain_function_full; - void function(GstPad* pad, GstPadChainListFunction chainlist, void* userData, GDestroyNotify notify) c_gst_pad_set_chain_list_function_full; - void function(GstPad* pad, void* priv) c_gst_pad_set_element_private; - void function(GstPad* pad, GstPadEventFullFunction event, void* userData, GDestroyNotify notify) c_gst_pad_set_event_full_function_full; - void function(GstPad* pad, GstPadEventFunction event, void* userData, GDestroyNotify notify) c_gst_pad_set_event_function_full; - void function(GstPad* pad, GstPadGetRangeFunction get, void* userData, GDestroyNotify notify) c_gst_pad_set_getrange_function_full; - void function(GstPad* pad, GstPadIterIntLinkFunction iterintlink, void* userData, GDestroyNotify notify) c_gst_pad_set_iterate_internal_links_function_full; - void function(GstPad* pad, GstPadLinkFunction link, void* userData, GDestroyNotify notify) c_gst_pad_set_link_function_full; - void function(GstPad* pad, long offset) c_gst_pad_set_offset; - void function(GstPad* pad, GstPadQueryFunction query, void* userData, GDestroyNotify notify) c_gst_pad_set_query_function_full; - void function(GstPad* pad, GstPadUnlinkFunction unlink, void* userData, GDestroyNotify notify) c_gst_pad_set_unlink_function_full; - int function(GstPad* pad, GstTaskFunction func, void* userData, GDestroyNotify notify) c_gst_pad_start_task; - void function(GstPad* pad, GstPadStickyEventsForeachFunction foreachFunc, void* userData) c_gst_pad_sticky_events_foreach; - int function(GstPad* pad) c_gst_pad_stop_task; - GstFlowReturn function(GstPad* pad, GstEvent* event) c_gst_pad_store_sticky_event; - int function(GstPad* srcpad, GstPad* sinkpad) c_gst_pad_unlink; - void function(GstPad* pad) c_gst_pad_use_fixed_caps; - const(char)* function(GstFlowReturn ret) c_gst_flow_get_name; - GQuark function(GstFlowReturn ret) c_gst_flow_to_quark; - const(char)* function(GstPadMode mode) c_gst_pad_mode_get_name; - - // gstreamer.PadProbeInfo - - GstBuffer* function(GstPadProbeInfo* info) c_gst_pad_probe_info_get_buffer; - GstBufferList* function(GstPadProbeInfo* info) c_gst_pad_probe_info_get_buffer_list; - GstEvent* function(GstPadProbeInfo* info) c_gst_pad_probe_info_get_event; - GstQuery* function(GstPadProbeInfo* info) c_gst_pad_probe_info_get_query; - - // gstreamer.PadTemplate - - GType function() c_gst_pad_template_get_type; - GstPadTemplate* function(const(char)* nameTemplate, GstPadDirection direction, GstPadPresence presence, GstCaps* caps) c_gst_pad_template_new; - GstPadTemplate* function(GstStaticPadTemplate* padTemplate, GType padType) c_gst_pad_template_new_from_static_pad_template_with_gtype; - GstPadTemplate* function(const(char)* nameTemplate, GstPadDirection direction, GstPadPresence presence, GstCaps* caps, GType padType) c_gst_pad_template_new_with_gtype; - GstCaps* function(GstPadTemplate* templ) c_gst_pad_template_get_caps; - GstCaps* function(GstPadTemplate* templ) c_gst_pad_template_get_documentation_caps; - void function(GstPadTemplate* templ, GstPad* pad) c_gst_pad_template_pad_created; - void function(GstPadTemplate* templ, GstCaps* caps) c_gst_pad_template_set_documentation_caps; - - // gstreamer.ParamArray - - GType function() c_gst_param_spec_array_get_type; - - // gstreamer.ParamFraction - - GType function() c_gst_param_spec_fraction_get_type; - - // gstreamer.ParamSpecFraction - - GParamSpec* function(const(char)* name, const(char)* nick, const(char)* blurb, int minNum, int minDenom, int maxNum, int maxDenom, int defaultNum, int defaultDenom, GParamFlags flags) c_gst_param_spec_fraction; - - // gstreamer.ParentBufferMeta - - GstMetaInfo* function() c_gst_parent_buffer_meta_get_info; - GType function() c_gst_parent_buffer_meta_api_get_type; - - // gstreamer.ParseContext - - GType function() c_gst_parse_context_get_type; - GstParseContext* function() c_gst_parse_context_new; - GstParseContext* function(GstParseContext* context) c_gst_parse_context_copy; - void function(GstParseContext* context) c_gst_parse_context_free; - char** function(GstParseContext* context) c_gst_parse_context_get_missing_elements; - - // gstreamer.Pipeline - - GType function() c_gst_pipeline_get_type; - GstElement* function(const(char)* name) c_gst_pipeline_new; - void function(GstPipeline* pipeline) c_gst_pipeline_auto_clock; - int function(GstPipeline* pipeline) c_gst_pipeline_get_auto_flush_bus; - GstBus* function(GstPipeline* pipeline) c_gst_pipeline_get_bus; - GstClock* function(GstPipeline* pipeline) c_gst_pipeline_get_clock; - GstClockTime function(GstPipeline* pipeline) c_gst_pipeline_get_delay; - GstClockTime function(GstPipeline* pipeline) c_gst_pipeline_get_latency; - GstClock* function(GstPipeline* pipeline) c_gst_pipeline_get_pipeline_clock; - void function(GstPipeline* pipeline, int autoFlush) c_gst_pipeline_set_auto_flush_bus; - int function(GstPipeline* pipeline, GstClock* clock) c_gst_pipeline_set_clock; - void function(GstPipeline* pipeline, GstClockTime delay) c_gst_pipeline_set_delay; - void function(GstPipeline* pipeline, GstClockTime latency) c_gst_pipeline_set_latency; - void function(GstPipeline* pipeline, GstClock* clock) c_gst_pipeline_use_clock; - - // gstreamer.Plugin - - GType function() c_gst_plugin_get_type; - void function(GList* list) c_gst_plugin_list_free; - GstPlugin* function(const(char)* name) c_gst_plugin_load_by_name; - GstPlugin* function(char* filename, GError** err) c_gst_plugin_load_file; - int function(int majorVersion, int minorVersion, const(char)* name, const(char)* description, GstPluginInitFunc initFunc, const(char)* version_, const(char)* license, const(char)* source, const(char)* package_, const(char)* origin) c_gst_plugin_register_static; - int function(int majorVersion, int minorVersion, const(char)* name, const(char)* description, GstPluginInitFullFunc initFullFunc, const(char)* version_, const(char)* license, const(char)* source, const(char)* package_, const(char)* origin, void* userData) c_gst_plugin_register_static_full; - void function(GstPlugin* plugin, char** envVars, char** paths, char** names, GstPluginDependencyFlags flags) c_gst_plugin_add_dependency; - void function(GstPlugin* plugin, const(char)* envVars, const(char)* paths, const(char)* names, GstPluginDependencyFlags flags) c_gst_plugin_add_dependency_simple; - GstStructure* function(GstPlugin* plugin) c_gst_plugin_get_cache_data; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_description; - char* function(GstPlugin* plugin) c_gst_plugin_get_filename; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_license; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_name; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_origin; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_package; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_release_date_string; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_source; - const(char)* function(GstPlugin* plugin) c_gst_plugin_get_version; - int function(GstPlugin* plugin) c_gst_plugin_is_loaded; - GstPlugin* function(GstPlugin* plugin) c_gst_plugin_load; - void function(GstPlugin* plugin, GstStructure* cacheData) c_gst_plugin_set_cache_data; - GQuark function() c_gst_plugin_error_quark; - - // gstreamer.PluginFeature - - GType function() c_gst_plugin_feature_get_type; - GList* function(GList* list) c_gst_plugin_feature_list_copy; - void function(GList* list) c_gst_plugin_feature_list_debug; - void function(GList* list) c_gst_plugin_feature_list_free; - int function(void* p1, void* p2) c_gst_plugin_feature_rank_compare_func; - int function(GstPluginFeature* feature, uint minMajor, uint minMinor, uint minMicro) c_gst_plugin_feature_check_version; - GstPlugin* function(GstPluginFeature* feature) c_gst_plugin_feature_get_plugin; - const(char)* function(GstPluginFeature* feature) c_gst_plugin_feature_get_plugin_name; - uint function(GstPluginFeature* feature) c_gst_plugin_feature_get_rank; - GstPluginFeature* function(GstPluginFeature* feature) c_gst_plugin_feature_load; - void function(GstPluginFeature* feature, uint rank) c_gst_plugin_feature_set_rank; - - // gstreamer.Poll - - int function(GstPoll* set, GstPollFD* fd) c_gst_poll_add_fd; - int function(GstPoll* set, GstPollFD* fd) c_gst_poll_fd_can_read; - int function(GstPoll* set, GstPollFD* fd) c_gst_poll_fd_can_write; - int function(GstPoll* set, GstPollFD* fd, int active) c_gst_poll_fd_ctl_pri; - int function(GstPoll* set, GstPollFD* fd, int active) c_gst_poll_fd_ctl_read; - int function(GstPoll* set, GstPollFD* fd, int active) c_gst_poll_fd_ctl_write; - int function(GstPoll* set, GstPollFD* fd) c_gst_poll_fd_has_closed; - int function(GstPoll* set, GstPollFD* fd) c_gst_poll_fd_has_error; - int function(GstPoll* set, GstPollFD* fd) c_gst_poll_fd_has_pri; - void function(GstPoll* set, GstPollFD* fd) c_gst_poll_fd_ignored; - void function(GstPoll* set) c_gst_poll_free; - void function(GstPoll* set, GPollFD* fd) c_gst_poll_get_read_gpollfd; - int function(GstPoll* set) c_gst_poll_read_control; - int function(GstPoll* set, GstPollFD* fd) c_gst_poll_remove_fd; - void function(GstPoll* set) c_gst_poll_restart; - int function(GstPoll* set, int controllable) c_gst_poll_set_controllable; - void function(GstPoll* set, int flushing) c_gst_poll_set_flushing; - int function(GstPoll* set, GstClockTime timeout) c_gst_poll_wait; - int function(GstPoll* set) c_gst_poll_write_control; - GstPoll* function(int controllable) c_gst_poll_new; - GstPoll* function() c_gst_poll_new_timer; - - // gstreamer.PollFD - - void function(GstPollFD* fd) c_gst_poll_fd_init; - - // gstreamer.Preset - - GType function() c_gst_preset_get_type; - char* function() c_gst_preset_get_app_dir; - int function(char* appDir) c_gst_preset_set_app_dir; - int function(GstPreset* preset, const(char)* name) c_gst_preset_delete_preset; - int function(GstPreset* preset, const(char)* name, const(char)* tag, char** value) c_gst_preset_get_meta; - char** function(GstPreset* preset) c_gst_preset_get_preset_names; - char** function(GstPreset* preset) c_gst_preset_get_property_names; - int function(GstPreset* preset) c_gst_preset_is_editable; - int function(GstPreset* preset, const(char)* name) c_gst_preset_load_preset; - int function(GstPreset* preset, const(char)* oldName, const(char)* newName) c_gst_preset_rename_preset; - int function(GstPreset* preset, const(char)* name) c_gst_preset_save_preset; - int function(GstPreset* preset, const(char)* name, const(char)* tag, const(char)* value) c_gst_preset_set_meta; - - // gstreamer.Promise - - GType function() c_gst_promise_get_type; - GstPromise* function() c_gst_promise_new; - GstPromise* function(GstPromiseChangeFunc func, void* userData, GDestroyNotify notify) c_gst_promise_new_with_change_func; - void function(GstPromise* promise) c_gst_promise_expire; - GstStructure* function(GstPromise* promise) c_gst_promise_get_reply; - void function(GstPromise* promise) c_gst_promise_interrupt; - void function(GstPromise* promise, GstStructure* s) c_gst_promise_reply; - GstPromiseResult function(GstPromise* promise) c_gst_promise_wait; - - // gstreamer.ProtectionMeta - - GstMetaInfo* function() c_gst_protection_meta_get_info; - GType function() c_gst_protection_meta_api_get_type; - const(char)* function(char** systemIdentifiers) c_gst_protection_select_system; - - // gstreamer.ProxyPad - - GType function() c_gst_proxy_pad_get_type; - GstFlowReturn function(GstPad* pad, GstObject* parent, GstBuffer* buffer) c_gst_proxy_pad_chain_default; - GstFlowReturn function(GstPad* pad, GstObject* parent, GstBufferList* list) c_gst_proxy_pad_chain_list_default; - GstFlowReturn function(GstPad* pad, GstObject* parent, ulong offset, uint size, GstBuffer** buffer) c_gst_proxy_pad_getrange_default; - GstIterator* function(GstPad* pad, GstObject* parent) c_gst_proxy_pad_iterate_internal_links_default; - GstProxyPad* function(GstProxyPad* pad) c_gst_proxy_pad_get_internal; - - // gstreamer.Query - - GType function() c_gst_query_get_type; - GstQuery* function(GstCaps* caps) c_gst_query_new_accept_caps; - GstQuery* function(GstCaps* caps, int needPool) c_gst_query_new_allocation; - GstQuery* function() c_gst_query_new_bitrate; - GstQuery* function(GstFormat format) c_gst_query_new_buffering; - GstQuery* function(GstCaps* filter) c_gst_query_new_caps; - GstQuery* function(const(char)* contextType) c_gst_query_new_context; - GstQuery* function(GstFormat srcFormat, long value, GstFormat destFormat) c_gst_query_new_convert; - GstQuery* function(GstQueryType type, GstStructure* structure) c_gst_query_new_custom; - GstQuery* function() c_gst_query_new_drain; - GstQuery* function(GstFormat format) c_gst_query_new_duration; - GstQuery* function() c_gst_query_new_formats; - GstQuery* function() c_gst_query_new_latency; - GstQuery* function(GstFormat format) c_gst_query_new_position; - GstQuery* function() c_gst_query_new_scheduling; - GstQuery* function(GstFormat format) c_gst_query_new_seeking; - GstQuery* function(GstFormat format) c_gst_query_new_segment; - GstQuery* function() c_gst_query_new_uri; - void function(GstQuery* query, GType api, GstStructure* params) c_gst_query_add_allocation_meta; - void function(GstQuery* query, GstAllocator* allocator, GstAllocationParams* params) c_gst_query_add_allocation_param; - void function(GstQuery* query, GstBufferPool* pool, uint size, uint minBuffers, uint maxBuffers) c_gst_query_add_allocation_pool; - int function(GstQuery* query, long start, long stop) c_gst_query_add_buffering_range; - void function(GstQuery* query, GstPadMode mode) c_gst_query_add_scheduling_mode; - int function(GstQuery* query, GType api, uint* index) c_gst_query_find_allocation_meta; - uint function(GstQuery* query) c_gst_query_get_n_allocation_metas; - uint function(GstQuery* query) c_gst_query_get_n_allocation_params; - uint function(GstQuery* query) c_gst_query_get_n_allocation_pools; - uint function(GstQuery* query) c_gst_query_get_n_buffering_ranges; - uint function(GstQuery* query) c_gst_query_get_n_scheduling_modes; - GstStructure* function(GstQuery* query) c_gst_query_get_structure; - int function(GstQuery* query, GstPadMode mode) c_gst_query_has_scheduling_mode; - int function(GstQuery* query, GstPadMode mode, GstSchedulingFlags flags) c_gst_query_has_scheduling_mode_with_flags; - void function(GstQuery* query, GstCaps** caps) c_gst_query_parse_accept_caps; - void function(GstQuery* query, int* result) c_gst_query_parse_accept_caps_result; - void function(GstQuery* query, GstCaps** caps, int* needPool) c_gst_query_parse_allocation; - void function(GstQuery* query, uint* nominalBitrate) c_gst_query_parse_bitrate; - void function(GstQuery* query, int* busy, int* percent) c_gst_query_parse_buffering_percent; - void function(GstQuery* query, GstFormat* format, long* start, long* stop, long* estimatedTotal) c_gst_query_parse_buffering_range; - void function(GstQuery* query, GstBufferingMode* mode, int* avgIn, int* avgOut, long* bufferingLeft) c_gst_query_parse_buffering_stats; - void function(GstQuery* query, GstCaps** filter) c_gst_query_parse_caps; - void function(GstQuery* query, GstCaps** caps) c_gst_query_parse_caps_result; - void function(GstQuery* query, GstContext** context) c_gst_query_parse_context; - int function(GstQuery* query, char** contextType) c_gst_query_parse_context_type; - void function(GstQuery* query, GstFormat* srcFormat, long* srcValue, GstFormat* destFormat, long* destValue) c_gst_query_parse_convert; - void function(GstQuery* query, GstFormat* format, long* duration) c_gst_query_parse_duration; - void function(GstQuery* query, int* live, GstClockTime* minLatency, GstClockTime* maxLatency) c_gst_query_parse_latency; - void function(GstQuery* query, uint* nFormats) c_gst_query_parse_n_formats; - GType function(GstQuery* query, uint index, GstStructure** params) c_gst_query_parse_nth_allocation_meta; - void function(GstQuery* query, uint index, GstAllocator** allocator, GstAllocationParams* params) c_gst_query_parse_nth_allocation_param; - void function(GstQuery* query, uint index, GstBufferPool** pool, uint* size, uint* minBuffers, uint* maxBuffers) c_gst_query_parse_nth_allocation_pool; - int function(GstQuery* query, uint index, long* start, long* stop) c_gst_query_parse_nth_buffering_range; - void function(GstQuery* query, uint nth, GstFormat* format) c_gst_query_parse_nth_format; - GstPadMode function(GstQuery* query, uint index) c_gst_query_parse_nth_scheduling_mode; - void function(GstQuery* query, GstFormat* format, long* cur) c_gst_query_parse_position; - void function(GstQuery* query, GstSchedulingFlags* flags, int* minsize, int* maxsize, int* align_) c_gst_query_parse_scheduling; - void function(GstQuery* query, GstFormat* format, int* seekable, long* segmentStart, long* segmentEnd) c_gst_query_parse_seeking; - void function(GstQuery* query, double* rate, GstFormat* format, long* startValue, long* stopValue) c_gst_query_parse_segment; - void function(GstQuery* query, char** uri) c_gst_query_parse_uri; - void function(GstQuery* query, char** uri) c_gst_query_parse_uri_redirection; - void function(GstQuery* query, int* permanent) c_gst_query_parse_uri_redirection_permanent; - void function(GstQuery* query, uint index) c_gst_query_remove_nth_allocation_meta; - void function(GstQuery* query, uint index) c_gst_query_remove_nth_allocation_param; - void function(GstQuery* query, uint index) c_gst_query_remove_nth_allocation_pool; - void function(GstQuery* query, int result) c_gst_query_set_accept_caps_result; - void function(GstQuery* query, uint nominalBitrate) c_gst_query_set_bitrate; - void function(GstQuery* query, int busy, int percent) c_gst_query_set_buffering_percent; - void function(GstQuery* query, GstFormat format, long start, long stop, long estimatedTotal) c_gst_query_set_buffering_range; - void function(GstQuery* query, GstBufferingMode mode, int avgIn, int avgOut, long bufferingLeft) c_gst_query_set_buffering_stats; - void function(GstQuery* query, GstCaps* caps) c_gst_query_set_caps_result; - void function(GstQuery* query, GstContext* context) c_gst_query_set_context; - void function(GstQuery* query, GstFormat srcFormat, long srcValue, GstFormat destFormat, long destValue) c_gst_query_set_convert; - void function(GstQuery* query, GstFormat format, long duration) c_gst_query_set_duration; - void function(GstQuery* query, int nFormats, ... ) c_gst_query_set_formats; - void function(GstQuery* query, int nFormats, GstFormat* formats) c_gst_query_set_formatsv; - void function(GstQuery* query, int live, GstClockTime minLatency, GstClockTime maxLatency) c_gst_query_set_latency; - void function(GstQuery* query, uint index, GstAllocator* allocator, GstAllocationParams* params) c_gst_query_set_nth_allocation_param; - void function(GstQuery* query, uint index, GstBufferPool* pool, uint size, uint minBuffers, uint maxBuffers) c_gst_query_set_nth_allocation_pool; - void function(GstQuery* query, GstFormat format, long cur) c_gst_query_set_position; - void function(GstQuery* query, GstSchedulingFlags flags, int minsize, int maxsize, int align_) c_gst_query_set_scheduling; - void function(GstQuery* query, GstFormat format, int seekable, long segmentStart, long segmentEnd) c_gst_query_set_seeking; - void function(GstQuery* query, double rate, GstFormat format, long startValue, long stopValue) c_gst_query_set_segment; - void function(GstQuery* query, const(char)* uri) c_gst_query_set_uri; - void function(GstQuery* query, const(char)* uri) c_gst_query_set_uri_redirection; - void function(GstQuery* query, int permanent) c_gst_query_set_uri_redirection_permanent; - GstStructure* function(GstQuery* query) c_gst_query_writable_structure; - GstQueryTypeFlags function(GstQueryType type) c_gst_query_type_get_flags; - const(char)* function(GstQueryType type) c_gst_query_type_get_name; - GQuark function(GstQueryType type) c_gst_query_type_to_quark; - - // gstreamer.ReferenceTimestampMeta - - GstMetaInfo* function() c_gst_reference_timestamp_meta_get_info; - - // gstreamer.Registry - - GType function() c_gst_registry_get_type; - int function() c_gst_registry_fork_is_enabled; - void function(int enabled) c_gst_registry_fork_set_enabled; - GstRegistry* function() c_gst_registry_get; - int function(GstRegistry* registry, GstPluginFeature* feature) c_gst_registry_add_feature; - int function(GstRegistry* registry, GstPlugin* plugin) c_gst_registry_add_plugin; - int function(GstRegistry* registry, const(char)* featureName, uint minMajor, uint minMinor, uint minMicro) c_gst_registry_check_feature_version; - GList* function(GstRegistry* registry, GstPluginFeatureFilter filter, int first, void* userData) c_gst_registry_feature_filter; - GstPluginFeature* function(GstRegistry* registry, const(char)* name, GType type) c_gst_registry_find_feature; - GstPlugin* function(GstRegistry* registry, const(char)* name) c_gst_registry_find_plugin; - GList* function(GstRegistry* registry, GType type) c_gst_registry_get_feature_list; - GList* function(GstRegistry* registry, const(char)* name) c_gst_registry_get_feature_list_by_plugin; - uint function(GstRegistry* registry) c_gst_registry_get_feature_list_cookie; - GList* function(GstRegistry* registry) c_gst_registry_get_plugin_list; - GstPlugin* function(GstRegistry* registry, const(char)* filename) c_gst_registry_lookup; - GstPluginFeature* function(GstRegistry* registry, const(char)* name) c_gst_registry_lookup_feature; - GList* function(GstRegistry* registry, GstPluginFilter filter, int first, void* userData) c_gst_registry_plugin_filter; - void function(GstRegistry* registry, GstPluginFeature* feature) c_gst_registry_remove_feature; - void function(GstRegistry* registry, GstPlugin* plugin) c_gst_registry_remove_plugin; - int function(GstRegistry* registry, char* path) c_gst_registry_scan_path; - - // gstreamer.Sample - - GType function() c_gst_sample_get_type; - GstSample* function(GstBuffer* buffer, GstCaps* caps, GstSegment* segment, GstStructure* info) c_gst_sample_new; - GstBuffer* function(GstSample* sample) c_gst_sample_get_buffer; - GstBufferList* function(GstSample* sample) c_gst_sample_get_buffer_list; - GstCaps* function(GstSample* sample) c_gst_sample_get_caps; - GstStructure* function(GstSample* sample) c_gst_sample_get_info; - GstSegment* function(GstSample* sample) c_gst_sample_get_segment; - void function(GstSample* sample, GstBuffer* buffer) c_gst_sample_set_buffer; - void function(GstSample* sample, GstBufferList* bufferList) c_gst_sample_set_buffer_list; - void function(GstSample* sample, GstCaps* caps) c_gst_sample_set_caps; - int function(GstSample* sample, GstStructure* info) c_gst_sample_set_info; - void function(GstSample* sample, GstSegment* segment) c_gst_sample_set_segment; - - // gstreamer.Segment - - GType function() c_gst_segment_get_type; - GstSegment* function() c_gst_segment_new; - int function(GstSegment* segment, GstFormat format, ulong start, ulong stop, ulong* clipStart, ulong* clipStop) c_gst_segment_clip; - GstSegment* function(GstSegment* segment) c_gst_segment_copy; - void function(GstSegment* src, GstSegment* dest) c_gst_segment_copy_into; - int function(GstSegment* segment, double rate, GstFormat format, GstSeekFlags flags, GstSeekType startType, ulong start, GstSeekType stopType, ulong stop, int* update) c_gst_segment_do_seek; - void function(GstSegment* segment) c_gst_segment_free; - void function(GstSegment* segment, GstFormat format) c_gst_segment_init; - int function(GstSegment* s0, GstSegment* s1) c_gst_segment_is_equal; - int function(GstSegment* segment, GstFormat format, long offset) c_gst_segment_offset_running_time; - ulong function(GstSegment* segment, GstFormat format, ulong runningTime) c_gst_segment_position_from_running_time; - int function(GstSegment* segment, GstFormat format, ulong runningTime, ulong* position) c_gst_segment_position_from_running_time_full; - ulong function(GstSegment* segment, GstFormat format, ulong streamTime) c_gst_segment_position_from_stream_time; - int function(GstSegment* segment, GstFormat format, ulong streamTime, ulong* position) c_gst_segment_position_from_stream_time_full; - int function(GstSegment* segment, GstFormat format, ulong runningTime) c_gst_segment_set_running_time; - ulong function(GstSegment* segment, GstFormat format, ulong runningTime) c_gst_segment_to_position; - ulong function(GstSegment* segment, GstFormat format, ulong position) c_gst_segment_to_running_time; - int function(GstSegment* segment, GstFormat format, ulong position, ulong* runningTime) c_gst_segment_to_running_time_full; - ulong function(GstSegment* segment, GstFormat format, ulong position) c_gst_segment_to_stream_time; - int function(GstSegment* segment, GstFormat format, ulong position, ulong* streamTime) c_gst_segment_to_stream_time_full; - - // gstreamer.StaticCaps - - void function(GstStaticCaps* staticCaps) c_gst_static_caps_cleanup; - GstCaps* function(GstStaticCaps* staticCaps) c_gst_static_caps_get; - - // gstreamer.StaticPadTemplate - - GstPadTemplate* function(GstStaticPadTemplate* padTemplate) c_gst_static_pad_template_get; - GstCaps* function(GstStaticPadTemplate* templ) c_gst_static_pad_template_get_caps; - - // gstreamer.Stream - - GType function() c_gst_stream_get_type; - GstStream* function(const(char)* streamId, GstCaps* caps, GstStreamType type, GstStreamFlags flags) c_gst_stream_new; - GstCaps* function(GstStream* stream) c_gst_stream_get_caps; - GstStreamFlags function(GstStream* stream) c_gst_stream_get_stream_flags; - const(char)* function(GstStream* stream) c_gst_stream_get_stream_id; - GstStreamType function(GstStream* stream) c_gst_stream_get_stream_type; - GstTagList* function(GstStream* stream) c_gst_stream_get_tags; - void function(GstStream* stream, GstCaps* caps) c_gst_stream_set_caps; - void function(GstStream* stream, GstStreamFlags flags) c_gst_stream_set_stream_flags; - void function(GstStream* stream, GstStreamType streamType) c_gst_stream_set_stream_type; - void function(GstStream* stream, GstTagList* tags) c_gst_stream_set_tags; - - // gstreamer.StreamCollection - - GType function() c_gst_stream_collection_get_type; - GstStreamCollection* function(const(char)* upstreamId) c_gst_stream_collection_new; - int function(GstStreamCollection* collection, GstStream* stream) c_gst_stream_collection_add_stream; - uint function(GstStreamCollection* collection) c_gst_stream_collection_get_size; - GstStream* function(GstStreamCollection* collection, uint index) c_gst_stream_collection_get_stream; - const(char)* function(GstStreamCollection* collection) c_gst_stream_collection_get_upstream_id; - - // gstreamer.Structure - - GType function() c_gst_structure_get_type; - GstStructure* function(const(char)* string_, char** end) c_gst_structure_from_string; - GstStructure* function(const(char)* name, const(char)* firstfield, ... ) c_gst_structure_new; - GstStructure* function(const(char)* name) c_gst_structure_new_empty; - GstStructure* function(const(char)* string_) c_gst_structure_new_from_string; - GstStructure* function(GQuark nameQuark, GQuark fieldQuark, ... ) c_gst_structure_new_id; - GstStructure* function(GQuark quark) c_gst_structure_new_id_empty; - GstStructure* function(const(char)* name, const(char)* firstfield, void* varargs) c_gst_structure_new_valist; - int function(GstStructure* struct1, GstStructure* struct2) c_gst_structure_can_intersect; - GstStructure* function(GstStructure* structure) c_gst_structure_copy; - void function(GstStructure* structure, GstStructureFilterMapFunc func, void* userData) c_gst_structure_filter_and_map_in_place; - void function(GstStructure* structure) c_gst_structure_fixate; - int function(GstStructure* structure, const(char)* fieldName) c_gst_structure_fixate_field; - int function(GstStructure* structure, const(char)* fieldName, int target) c_gst_structure_fixate_field_boolean; - int function(GstStructure* structure, const(char)* fieldName, double target) c_gst_structure_fixate_field_nearest_double; - int function(GstStructure* structure, const(char)* fieldName, int targetNumerator, int targetDenominator) c_gst_structure_fixate_field_nearest_fraction; - int function(GstStructure* structure, const(char)* fieldName, int target) c_gst_structure_fixate_field_nearest_int; - int function(GstStructure* structure, const(char)* fieldName, const(char)* target) c_gst_structure_fixate_field_string; - int function(GstStructure* structure, GstStructureForeachFunc func, void* userData) c_gst_structure_foreach; - void function(GstStructure* structure) c_gst_structure_free; - int function(GstStructure* structure, const(char)* firstFieldname, ... ) c_gst_structure_get; - int function(GstStructure* structure, const(char)* fieldname, GValueArray** array) c_gst_structure_get_array; - int function(GstStructure* structure, const(char)* fieldname, int* value) c_gst_structure_get_boolean; - int function(GstStructure* structure, const(char)* fieldname, GstClockTime* value) c_gst_structure_get_clock_time; - int function(GstStructure* structure, const(char)* fieldname, GDate** value) c_gst_structure_get_date; - int function(GstStructure* structure, const(char)* fieldname, GstDateTime** value) c_gst_structure_get_date_time; - int function(GstStructure* structure, const(char)* fieldname, double* value) c_gst_structure_get_double; - int function(GstStructure* structure, const(char)* fieldname, GType enumtype, int* value) c_gst_structure_get_enum; - GType function(GstStructure* structure, const(char)* fieldname) c_gst_structure_get_field_type; - int function(GstStructure* structure, const(char)* fieldname, uint* valueFlags, uint* valueMask) c_gst_structure_get_flagset; - int function(GstStructure* structure, const(char)* fieldname, int* valueNumerator, int* valueDenominator) c_gst_structure_get_fraction; - int function(GstStructure* structure, const(char)* fieldname, int* value) c_gst_structure_get_int; - int function(GstStructure* structure, const(char)* fieldname, long* value) c_gst_structure_get_int64; - int function(GstStructure* structure, const(char)* fieldname, GValueArray** array) c_gst_structure_get_list; - const(char)* function(GstStructure* structure) c_gst_structure_get_name; - GQuark function(GstStructure* structure) c_gst_structure_get_name_id; - const(char)* function(GstStructure* structure, const(char)* fieldname) c_gst_structure_get_string; - int function(GstStructure* structure, const(char)* fieldname, uint* value) c_gst_structure_get_uint; - int function(GstStructure* structure, const(char)* fieldname, ulong* value) c_gst_structure_get_uint64; - int function(GstStructure* structure, const(char)* firstFieldname, void* args) c_gst_structure_get_valist; - GValue* function(GstStructure* structure, const(char)* fieldname) c_gst_structure_get_value; - int function(GstStructure* structure, const(char)* fieldname) c_gst_structure_has_field; - int function(GstStructure* structure, const(char)* fieldname, GType type) c_gst_structure_has_field_typed; - int function(GstStructure* structure, const(char)* name) c_gst_structure_has_name; - int function(GstStructure* structure, GQuark firstFieldId, ... ) c_gst_structure_id_get; - int function(GstStructure* structure, GQuark firstFieldId, void* args) c_gst_structure_id_get_valist; - GValue* function(GstStructure* structure, GQuark field) c_gst_structure_id_get_value; - int function(GstStructure* structure, GQuark field) c_gst_structure_id_has_field; - int function(GstStructure* structure, GQuark field, GType type) c_gst_structure_id_has_field_typed; - void function(GstStructure* structure, GQuark fieldname, ... ) c_gst_structure_id_set; - void function(GstStructure* structure, GQuark fieldname, void* varargs) c_gst_structure_id_set_valist; - void function(GstStructure* structure, GQuark field, GValue* value) c_gst_structure_id_set_value; - void function(GstStructure* structure, GQuark field, GValue* value) c_gst_structure_id_take_value; - GstStructure* function(GstStructure* struct1, GstStructure* struct2) c_gst_structure_intersect; - int function(GstStructure* structure1, GstStructure* structure2) c_gst_structure_is_equal; - int function(GstStructure* subset, GstStructure* superset) c_gst_structure_is_subset; - int function(GstStructure* structure, GstStructureMapFunc func, void* userData) c_gst_structure_map_in_place; - int function(GstStructure* structure) c_gst_structure_n_fields; - const(char)* function(GstStructure* structure, uint index) c_gst_structure_nth_field_name; - void function(GstStructure* structure) c_gst_structure_remove_all_fields; - void function(GstStructure* structure, const(char)* fieldname) c_gst_structure_remove_field; - void function(GstStructure* structure, const(char)* fieldname, ... ) c_gst_structure_remove_fields; - void function(GstStructure* structure, const(char)* fieldname, void* varargs) c_gst_structure_remove_fields_valist; - void function(GstStructure* structure, const(char)* fieldname, ... ) c_gst_structure_set; - void function(GstStructure* structure, const(char)* fieldname, GValueArray* array) c_gst_structure_set_array; - void function(GstStructure* structure, const(char)* fieldname, GValueArray* array) c_gst_structure_set_list; - void function(GstStructure* structure, const(char)* name) c_gst_structure_set_name; - int function(GstStructure* structure, int* refcount) c_gst_structure_set_parent_refcount; - void function(GstStructure* structure, const(char)* fieldname, void* varargs) c_gst_structure_set_valist; - void function(GstStructure* structure, const(char)* fieldname, GValue* value) c_gst_structure_set_value; - void function(GstStructure* structure, const(char)* fieldname, GValue* value) c_gst_structure_take_value; - char* function(GstStructure* structure) c_gst_structure_to_string; - int function(GstStructure** oldstrPtr, GstStructure* newstr) c_gst_structure_take; - - // gstreamer.SystemClock - - GType function() c_gst_system_clock_get_type; - GstClock* function() c_gst_system_clock_obtain; - void function(GstClock* newClock) c_gst_system_clock_set_default; - - // gstreamer.TagList - - GType function(const(char)* tag) c_gst_tag_get_type; - GstTagList* function(const(char)* tag, ... ) c_gst_tag_list_new; - GstTagList* function() c_gst_tag_list_new_empty; - GstTagList* function(const(char)* str) c_gst_tag_list_new_from_string; - GstTagList* function(void* varArgs) c_gst_tag_list_new_valist; - void function(GstTagList* list, GstTagMergeMode mode, const(char)* tag, ... ) c_gst_tag_list_add; - void function(GstTagList* list, GstTagMergeMode mode, const(char)* tag, void* varArgs) c_gst_tag_list_add_valist; - void function(GstTagList* list, GstTagMergeMode mode, const(char)* tag, void* varArgs) c_gst_tag_list_add_valist_values; - void function(GstTagList* list, GstTagMergeMode mode, const(char)* tag, GValue* value) c_gst_tag_list_add_value; - void function(GstTagList* list, GstTagMergeMode mode, const(char)* tag, ... ) c_gst_tag_list_add_values; - GstTagList* function(GstTagList* taglist) c_gst_tag_list_copy; - void function(GstTagList* list, GstTagForeachFunc func, void* userData) c_gst_tag_list_foreach; - int function(GstTagList* list, const(char)* tag, int* value) c_gst_tag_list_get_boolean; - int function(GstTagList* list, const(char)* tag, uint index, int* value) c_gst_tag_list_get_boolean_index; - int function(GstTagList* list, const(char)* tag, GDate** value) c_gst_tag_list_get_date; - int function(GstTagList* list, const(char)* tag, uint index, GDate** value) c_gst_tag_list_get_date_index; - int function(GstTagList* list, const(char)* tag, GstDateTime** value) c_gst_tag_list_get_date_time; - int function(GstTagList* list, const(char)* tag, uint index, GstDateTime** value) c_gst_tag_list_get_date_time_index; - int function(GstTagList* list, const(char)* tag, double* value) c_gst_tag_list_get_double; - int function(GstTagList* list, const(char)* tag, uint index, double* value) c_gst_tag_list_get_double_index; - int function(GstTagList* list, const(char)* tag, float* value) c_gst_tag_list_get_float; - int function(GstTagList* list, const(char)* tag, uint index, float* value) c_gst_tag_list_get_float_index; - int function(GstTagList* list, const(char)* tag, int* value) c_gst_tag_list_get_int; - int function(GstTagList* list, const(char)* tag, long* value) c_gst_tag_list_get_int64; - int function(GstTagList* list, const(char)* tag, uint index, long* value) c_gst_tag_list_get_int64_index; - int function(GstTagList* list, const(char)* tag, uint index, int* value) c_gst_tag_list_get_int_index; - int function(GstTagList* list, const(char)* tag, void** value) c_gst_tag_list_get_pointer; - int function(GstTagList* list, const(char)* tag, uint index, void** value) c_gst_tag_list_get_pointer_index; - int function(GstTagList* list, const(char)* tag, GstSample** sample) c_gst_tag_list_get_sample; - int function(GstTagList* list, const(char)* tag, uint index, GstSample** sample) c_gst_tag_list_get_sample_index; - GstTagScope function(GstTagList* list) c_gst_tag_list_get_scope; - int function(GstTagList* list, const(char)* tag, char** value) c_gst_tag_list_get_string; - int function(GstTagList* list, const(char)* tag, uint index, char** value) c_gst_tag_list_get_string_index; - uint function(GstTagList* list, const(char)* tag) c_gst_tag_list_get_tag_size; - int function(GstTagList* list, const(char)* tag, uint* value) c_gst_tag_list_get_uint; - int function(GstTagList* list, const(char)* tag, ulong* value) c_gst_tag_list_get_uint64; - int function(GstTagList* list, const(char)* tag, uint index, ulong* value) c_gst_tag_list_get_uint64_index; - int function(GstTagList* list, const(char)* tag, uint index, uint* value) c_gst_tag_list_get_uint_index; - GValue* function(GstTagList* list, const(char)* tag, uint index) c_gst_tag_list_get_value_index; - void function(GstTagList* into, GstTagList* from, GstTagMergeMode mode) c_gst_tag_list_insert; - int function(GstTagList* list) c_gst_tag_list_is_empty; - int function(GstTagList* list1, GstTagList* list2) c_gst_tag_list_is_equal; - GstTagList* function(GstTagList* list1, GstTagList* list2, GstTagMergeMode mode) c_gst_tag_list_merge; - int function(GstTagList* list) c_gst_tag_list_n_tags; - const(char)* function(GstTagList* list, uint index) c_gst_tag_list_nth_tag_name; - int function(GstTagList* list, const(char)* tag, uint index, char** value) c_gst_tag_list_peek_string_index; - void function(GstTagList* list, const(char)* tag) c_gst_tag_list_remove_tag; - void function(GstTagList* list, GstTagScope scope_) c_gst_tag_list_set_scope; - char* function(GstTagList* list) c_gst_tag_list_to_string; - int function(GValue* dest, GstTagList* list, const(char)* tag) c_gst_tag_list_copy_value; - int function(const(char)* tag) c_gst_tag_exists; - const(char)* function(const(char)* tag) c_gst_tag_get_description; - GstTagFlag function(const(char)* tag) c_gst_tag_get_flag; - const(char)* function(const(char)* tag) c_gst_tag_get_nick; - int function(const(char)* tag) c_gst_tag_is_fixed; - void function(GValue* dest, GValue* src) c_gst_tag_merge_strings_with_comma; - void function(GValue* dest, GValue* src) c_gst_tag_merge_use_first; - void function(const(char)* name, GstTagFlag flag, GType type, const(char)* nick, const(char)* blurb, GstTagMergeFunc func) c_gst_tag_register; - void function(const(char)* name, GstTagFlag flag, GType type, const(char)* nick, const(char)* blurb, GstTagMergeFunc func) c_gst_tag_register_static; - - // gstreamer.TagSetter - - GType function() c_gst_tag_setter_get_type; - void function(GstTagSetter* setter, GstTagMergeMode mode, const(char)* tag, void* varArgs) c_gst_tag_setter_add_tag_valist; - void function(GstTagSetter* setter, GstTagMergeMode mode, const(char)* tag, void* varArgs) c_gst_tag_setter_add_tag_valist_values; - void function(GstTagSetter* setter, GstTagMergeMode mode, const(char)* tag, GValue* value) c_gst_tag_setter_add_tag_value; - void function(GstTagSetter* setter, GstTagMergeMode mode, const(char)* tag, ... ) c_gst_tag_setter_add_tag_values; - void function(GstTagSetter* setter, GstTagMergeMode mode, const(char)* tag, ... ) c_gst_tag_setter_add_tags; - GstTagList* function(GstTagSetter* setter) c_gst_tag_setter_get_tag_list; - GstTagMergeMode function(GstTagSetter* setter) c_gst_tag_setter_get_tag_merge_mode; - void function(GstTagSetter* setter, GstTagList* list, GstTagMergeMode mode) c_gst_tag_setter_merge_tags; - void function(GstTagSetter* setter) c_gst_tag_setter_reset_tags; - void function(GstTagSetter* setter, GstTagMergeMode mode) c_gst_tag_setter_set_tag_merge_mode; - - // gstreamer.Task - - GType function() c_gst_task_get_type; - GstTask* function(GstTaskFunction func, void* userData, GDestroyNotify notify) c_gst_task_new; - void function() c_gst_task_cleanup_all; - GstTaskPool* function(GstTask* task) c_gst_task_get_pool; - GstTaskState function(GstTask* task) c_gst_task_get_state; - int function(GstTask* task) c_gst_task_join; - int function(GstTask* task) c_gst_task_pause; - int function(GstTask* task) c_gst_task_resume; - void function(GstTask* task, GstTaskThreadFunc enterFunc, void* userData, GDestroyNotify notify) c_gst_task_set_enter_callback; - void function(GstTask* task, GstTaskThreadFunc leaveFunc, void* userData, GDestroyNotify notify) c_gst_task_set_leave_callback; - void function(GstTask* task, GRecMutex* mutex) c_gst_task_set_lock; - void function(GstTask* task, GstTaskPool* pool) c_gst_task_set_pool; - int function(GstTask* task, GstTaskState state) c_gst_task_set_state; - int function(GstTask* task) c_gst_task_start; - int function(GstTask* task) c_gst_task_stop; - - // gstreamer.TaskPool - - GType function() c_gst_task_pool_get_type; - GstTaskPool* function() c_gst_task_pool_new; - void function(GstTaskPool* pool) c_gst_task_pool_cleanup; - void function(GstTaskPool* pool, void* id) c_gst_task_pool_join; - void function(GstTaskPool* pool, GError** err) c_gst_task_pool_prepare; - void* function(GstTaskPool* pool, GstTaskPoolFunction func, void* userData, GError** err) c_gst_task_pool_push; - - // gstreamer.Toc - - GType function() c_gst_toc_get_type; - GstToc* function(GstTocScope scope_) c_gst_toc_new; - void function(GstToc* toc, GstTocEntry* entry) c_gst_toc_append_entry; - void function(GstToc* toc) c_gst_toc_dump; - GstTocEntry* function(GstToc* toc, const(char)* uid) c_gst_toc_find_entry; - GList* function(GstToc* toc) c_gst_toc_get_entries; - GstTocScope function(GstToc* toc) c_gst_toc_get_scope; - GstTagList* function(GstToc* toc) c_gst_toc_get_tags; - void function(GstToc* toc, GstTagList* tags, GstTagMergeMode mode) c_gst_toc_merge_tags; - void function(GstToc* toc, GstTagList* tags) c_gst_toc_set_tags; - - // gstreamer.TocEntry - - GType function() c_gst_toc_entry_get_type; - GstTocEntry* function(GstTocEntryType type, const(char)* uid) c_gst_toc_entry_new; - void function(GstTocEntry* entry, GstTocEntry* subentry) c_gst_toc_entry_append_sub_entry; - GstTocEntryType function(GstTocEntry* entry) c_gst_toc_entry_get_entry_type; - int function(GstTocEntry* entry, GstTocLoopType* loopType, int* repeatCount) c_gst_toc_entry_get_loop; - GstTocEntry* function(GstTocEntry* entry) c_gst_toc_entry_get_parent; - int function(GstTocEntry* entry, long* start, long* stop) c_gst_toc_entry_get_start_stop_times; - GList* function(GstTocEntry* entry) c_gst_toc_entry_get_sub_entries; - GstTagList* function(GstTocEntry* entry) c_gst_toc_entry_get_tags; - GstToc* function(GstTocEntry* entry) c_gst_toc_entry_get_toc; - const(char)* function(GstTocEntry* entry) c_gst_toc_entry_get_uid; - int function(GstTocEntry* entry) c_gst_toc_entry_is_alternative; - int function(GstTocEntry* entry) c_gst_toc_entry_is_sequence; - void function(GstTocEntry* entry, GstTagList* tags, GstTagMergeMode mode) c_gst_toc_entry_merge_tags; - void function(GstTocEntry* entry, GstTocLoopType loopType, int repeatCount) c_gst_toc_entry_set_loop; - void function(GstTocEntry* entry, long start, long stop) c_gst_toc_entry_set_start_stop_times; - void function(GstTocEntry* entry, GstTagList* tags) c_gst_toc_entry_set_tags; - - // gstreamer.TocSetter - - GType function() c_gst_toc_setter_get_type; - GstToc* function(GstTocSetter* setter) c_gst_toc_setter_get_toc; - void function(GstTocSetter* setter) c_gst_toc_setter_reset; - void function(GstTocSetter* setter, GstToc* toc) c_gst_toc_setter_set_toc; - - // gstreamer.Tracer - - GType function() c_gst_tracer_get_type; - int function(GstPlugin* plugin, const(char)* name, GType type) c_gst_tracer_register; - - // gstreamer.TracerFactory - - GType function() c_gst_tracer_factory_get_type; - GList* function() c_gst_tracer_factory_get_list; - GType function(GstTracerFactory* factory) c_gst_tracer_factory_get_tracer_type; - - // gstreamer.TracerRecord - - GType function() c_gst_tracer_record_get_type; - GstTracerRecord* function(const(char)* name, const(char)* firstfield, ... ) c_gst_tracer_record_new; - void function(GstTracerRecord* self, ... ) c_gst_tracer_record_log; - - // gstreamer.TypeFind - - ulong function(GstTypeFind* find) c_gst_type_find_get_length; - ubyte* function(GstTypeFind* find, long offset, uint size) c_gst_type_find_peek; - void function(GstTypeFind* find, uint probability, GstCaps* caps) c_gst_type_find_suggest; - void function(GstTypeFind* find, uint probability, const(char)* mediaType, const(char)* fieldname, ... ) c_gst_type_find_suggest_simple; - int function(GstPlugin* plugin, const(char)* name, uint rank, GstTypeFindFunction func, const(char)* extensions, GstCaps* possibleCaps, void* data, GDestroyNotify dataNotify) c_gst_type_find_register; - GType function() c_gst_type_find_get_type; - - // gstreamer.TypeFindFactory - - GType function() c_gst_type_find_factory_get_type; - GList* function() c_gst_type_find_factory_get_list; - void function(GstTypeFindFactory* factory, GstTypeFind* find) c_gst_type_find_factory_call_function; - GstCaps* function(GstTypeFindFactory* factory) c_gst_type_find_factory_get_caps; - char** function(GstTypeFindFactory* factory) c_gst_type_find_factory_get_extensions; - int function(GstTypeFindFactory* factory) c_gst_type_find_factory_has_function; - - // gstreamer.URIHandler - - GType function() c_gst_uri_handler_get_type; - char** function(GstURIHandler* handler) c_gst_uri_handler_get_protocols; - char* function(GstURIHandler* handler) c_gst_uri_handler_get_uri; - GstURIType function(GstURIHandler* handler) c_gst_uri_handler_get_uri_type; - int function(GstURIHandler* handler, const(char)* uri, GError** err) c_gst_uri_handler_set_uri; - - // gstreamer.Uri - - GType function() c_gst_uri_get_type; - GstUri* function(const(char)* scheme, const(char)* userinfo, const(char)* host, uint port, const(char)* path, const(char)* query, const(char)* fragment) c_gst_uri_new; - int function(GstUri* uri, const(char)* relativePath) c_gst_uri_append_path; - int function(GstUri* uri, const(char)* pathSegment) c_gst_uri_append_path_segment; - int function(GstUri* first, GstUri* second) c_gst_uri_equal; - GstUri* function(GstUri* base, const(char)* uri) c_gst_uri_from_string_with_base; - const(char)* function(GstUri* uri) c_gst_uri_get_fragment; - const(char)* function(GstUri* uri) c_gst_uri_get_host; - GHashTable* function(GstUri* uri) c_gst_uri_get_media_fragment_table; - char* function(GstUri* uri) c_gst_uri_get_path; - GList* function(GstUri* uri) c_gst_uri_get_path_segments; - char* function(GstUri* uri) c_gst_uri_get_path_string; - uint function(GstUri* uri) c_gst_uri_get_port; - GList* function(GstUri* uri) c_gst_uri_get_query_keys; - char* function(GstUri* uri) c_gst_uri_get_query_string; - GHashTable* function(GstUri* uri) c_gst_uri_get_query_table; - const(char)* function(GstUri* uri, const(char)* queryKey) c_gst_uri_get_query_value; - const(char)* function(GstUri* uri) c_gst_uri_get_scheme; - const(char)* function(GstUri* uri) c_gst_uri_get_userinfo; - int function(GstUri* uri) c_gst_uri_is_normalized; - int function(GstUri* uri) c_gst_uri_is_writable; - GstUri* function(GstUri* baseUri, GstUri* refUri) c_gst_uri_join; - GstUri* function(GstUri* uri) c_gst_uri_make_writable; - GstUri* function(GstUri* base, const(char)* scheme, const(char)* userinfo, const(char)* host, uint port, const(char)* path, const(char)* query, const(char)* fragment) c_gst_uri_new_with_base; - int function(GstUri* uri) c_gst_uri_normalize; - int function(GstUri* uri, const(char)* queryKey) c_gst_uri_query_has_key; - int function(GstUri* uri, const(char)* queryKey) c_gst_uri_remove_query_key; - int function(GstUri* uri, const(char)* fragment) c_gst_uri_set_fragment; - int function(GstUri* uri, const(char)* host) c_gst_uri_set_host; - int function(GstUri* uri, const(char)* path) c_gst_uri_set_path; - int function(GstUri* uri, GList* pathSegments) c_gst_uri_set_path_segments; - int function(GstUri* uri, const(char)* path) c_gst_uri_set_path_string; - int function(GstUri* uri, uint port) c_gst_uri_set_port; - int function(GstUri* uri, const(char)* query) c_gst_uri_set_query_string; - int function(GstUri* uri, GHashTable* queryTable) c_gst_uri_set_query_table; - int function(GstUri* uri, const(char)* queryKey, const(char)* queryValue) c_gst_uri_set_query_value; - int function(GstUri* uri, const(char)* scheme) c_gst_uri_set_scheme; - int function(GstUri* uri, const(char)* userinfo) c_gst_uri_set_userinfo; - char* function(GstUri* uri) c_gst_uri_to_string; - char* function(const(char)* protocol, const(char)* location) c_gst_uri_construct; - GstUri* function(const(char)* uri) c_gst_uri_from_string; - GstUri* function(const(char)* uri) c_gst_uri_from_string_escaped; - char* function(const(char)* uri) c_gst_uri_get_location; - char* function(const(char)* uri) c_gst_uri_get_protocol; - int function(const(char)* uri, const(char)* protocol) c_gst_uri_has_protocol; - int function(const(char)* uri) c_gst_uri_is_valid; - char* function(const(char)* baseUri, const(char)* refUri) c_gst_uri_join_strings; - int function(GstURIType type, const(char)* protocol) c_gst_uri_protocol_is_supported; - int function(const(char)* protocol) c_gst_uri_protocol_is_valid; - char* function(char* filename, GError** err) c_gst_filename_to_uri; - GQuark function() c_gst_uri_error_quark; - - // gstreamer.ValueArray - - GType function() c_gst_value_array_get_type; - void function(GValue* value, GValue* appendValue) c_gst_value_array_append_and_take_value; - void function(GValue* value, GValue* appendValue) c_gst_value_array_append_value; - uint function(GValue* value) c_gst_value_array_get_size; - GValue* function(GValue* value, uint index) c_gst_value_array_get_value; - GValue* function(GValue* value, uint prealloc) c_gst_value_array_init; - void function(GValue* value, GValue* prependValue) c_gst_value_array_prepend_value; - - // gstreamer.ValueList - - GType function() c_gst_value_list_get_type; - void function(GValue* value, GValue* appendValue) c_gst_value_list_append_and_take_value; - void function(GValue* value, GValue* appendValue) c_gst_value_list_append_value; - void function(GValue* dest, GValue* value1, GValue* value2) c_gst_value_list_concat; - uint function(GValue* value) c_gst_value_list_get_size; - GValue* function(GValue* value, uint index) c_gst_value_list_get_value; - GValue* function(GValue* value, uint prealloc) c_gst_value_list_init; - void function(GValue* dest, GValue* value1, GValue* value2) c_gst_value_list_merge; - void function(GValue* value, GValue* prependValue) c_gst_value_list_prepend_value; - - // gstreamer.Debug - - void function(GstLogFunction func, void* userData, GDestroyNotify notify) c_gst_debug_add_log_function; - char* function(GstBin* bin, GstDebugGraphDetails details) c_gst_debug_bin_to_dot_data; - void function(GstBin* bin, GstDebugGraphDetails details, char* fileName) c_gst_debug_bin_to_dot_file; - void function(GstBin* bin, GstDebugGraphDetails details, char* fileName) c_gst_debug_bin_to_dot_file_with_ts; - char* function(uint colorinfo) c_gst_debug_construct_term_color; - int function(uint colorinfo) c_gst_debug_construct_win_color; - GSList* function() c_gst_debug_get_all_categories; - GstDebugColorMode function() c_gst_debug_get_color_mode; - GstDebugLevel function() c_gst_debug_get_default_threshold; - int function() c_gst_debug_is_active; - int function() c_gst_debug_is_colored; - const(char)* function(GstDebugLevel level) c_gst_debug_level_get_name; - void function(GstDebugCategory* category, GstDebugLevel level, const(char)* file, const(char)* function_, int line, GObject* object, const(char)* format, ... ) c_gst_debug_log; - void function(GstDebugCategory* category, GstDebugLevel level, const(char)* file, const(char)* function_, int line, GObject* object, GstDebugMessage* message, void* userData) c_gst_debug_log_default; - void function(GstDebugCategory* category, GstDebugLevel level, const(char)* file, const(char)* function_, int line, GObject* object, const(char)* format, void* args) c_gst_debug_log_valist; - void function() c_gst_debug_print_stack_trace; - uint function(GstLogFunction func) c_gst_debug_remove_log_function; - uint function(void* data) c_gst_debug_remove_log_function_by_data; - void function(int active) c_gst_debug_set_active; - void function(GstDebugColorMode mode) c_gst_debug_set_color_mode; - void function(const(char)* mode) c_gst_debug_set_color_mode_from_string; - void function(int colored) c_gst_debug_set_colored; - void function(GstDebugLevel level) c_gst_debug_set_default_threshold; - void function(const(char)* name, GstDebugLevel level) c_gst_debug_set_threshold_for_name; - void function(const(char)* list, int reset) c_gst_debug_set_threshold_from_string; - void function(const(char)* name) c_gst_debug_unset_threshold_for_name; - - // gstreamer.GError - - char* function(GQuark domain, int code) c_gst_error_get_message; - - // gstreamer.Format - - GstFormat function(const(char)* nick) c_gst_format_get_by_nick; - GstFormatDefinition* function(GstFormat format) c_gst_format_get_details; - const(char)* function(GstFormat format) c_gst_format_get_name; - GstIterator* function() c_gst_format_iterate_definitions; - GstFormat function(const(char)* nick, const(char)* description) c_gst_format_register; - GQuark function(GstFormat format) c_gst_format_to_quark; - int function(GstFormat* formats, GstFormat format) c_gst_formats_contains; - - // gstreamer.GStreamer - - void function() c_gst_deinit; - void function(int* argc, char*** argv) c_gst_init; - int function(int* argc, char*** argv, GError** err) c_gst_init_check; - GOptionGroup* function() c_gst_init_get_option_group; - int function() c_gst_is_initialized; - int function() c_gst_segtrap_is_enabled; - void function(int enabled) c_gst_segtrap_set_enabled; - int function() c_gst_update_registry; - void function(uint* major, uint* minor, uint* micro, uint* nano) c_gst_version; - char* function() c_gst_version_string; - - // gstreamer.Parse - - GstElement* function(const(char)* binDescription, int ghostUnlinkedPads, GError** err) c_gst_parse_bin_from_description; - GstElement* function(const(char)* binDescription, int ghostUnlinkedPads, GstParseContext* context, GstParseFlags flags, GError** err) c_gst_parse_bin_from_description_full; - GQuark function() c_gst_parse_error_quark; - GstElement* function(const(char)* pipelineDescription, GError** err) c_gst_parse_launch; - GstElement* function(const(char)* pipelineDescription, GstParseContext* context, GstParseFlags flags, GError** err) c_gst_parse_launch_full; - GstElement* function(char** argv, GError** err) c_gst_parse_launchv; - GstElement* function(char** argv, GstParseContext* context, GstParseFlags flags, GError** err) c_gst_parse_launchv_full; - - // gstreamer.Utils - - void* function(void* array, uint numElements, size_t elementSize, GCompareDataFunc searchFunc, GstSearchMode mode, void* searchData, void* userData) c_gst_util_array_binary_search; - void function(double src, int* destN, int* destD) c_gst_util_double_to_fraction; - void function(char* mem, uint size) c_gst_util_dump_mem; - int function(int aN, int aD, int bN, int bD, int* resN, int* resD) c_gst_util_fraction_add; - int function(int aN, int aD, int bN, int bD) c_gst_util_fraction_compare; - int function(int aN, int aD, int bN, int bD, int* resN, int* resD) c_gst_util_fraction_multiply; - void function(int srcN, int srcD, double* dest) c_gst_util_fraction_to_double; - ulong function(double value) c_gst_util_gdouble_to_guint64; - GstClockTime function() c_gst_util_get_timestamp; - int function(int a, int b) c_gst_util_greatest_common_divisor; - long function(long a, long b) c_gst_util_greatest_common_divisor_int64; - uint function() c_gst_util_group_id_next; - double function(ulong value) c_gst_util_guint64_to_gdouble; - int function(uint s1, uint s2) c_gst_util_seqnum_compare; - uint function() c_gst_util_seqnum_next; - void function(GObject* object, const(char)* name, const(char)* value) c_gst_util_set_object_arg; - void function(GValue* value, const(char)* valueStr) c_gst_util_set_value_from_string; - ulong function(ulong val, ulong num, ulong denom) c_gst_util_uint64_scale; - ulong function(ulong val, ulong num, ulong denom) c_gst_util_uint64_scale_ceil; - ulong function(ulong val, int num, int denom) c_gst_util_uint64_scale_int; - ulong function(ulong val, int num, int denom) c_gst_util_uint64_scale_int_ceil; - ulong function(ulong val, int num, int denom) c_gst_util_uint64_scale_int_round; - ulong function(ulong val, ulong num, ulong denom) c_gst_util_uint64_scale_round; - int function(GstClockTime* xy, GstClockTime* temp, uint n, GstClockTime* mNum, GstClockTime* mDenom, GstClockTime* b, GstClockTime* xbase, double* rSquared) c_gst_calculate_linear_regression; - int function(GstPlugin* plugin, GType type) c_gst_dynamic_type_register; - int function(GObject* object, const(char)* name, GValueArray** array) c_gst_util_get_object_array; - int function(GObject* object, const(char)* name, GValueArray* array) c_gst_util_set_object_array; - - // gstreamer.ValueGst - - int function(GValue* value1, GValue* value2) c_gst_value_can_compare; - int function(GValue* value1, GValue* value2) c_gst_value_can_intersect; - int function(GValue* minuend, GValue* subtrahend) c_gst_value_can_subtract; - int function(GValue* value1, GValue* value2) c_gst_value_can_union; - int function(GValue* value1, GValue* value2) c_gst_value_compare; - int function(GValue* dest, const(char)* src) c_gst_value_deserialize; - int function(GValue* dest, GValue* src) c_gst_value_fixate; - int function(GValue* product, GValue* factor1, GValue* factor2) c_gst_value_fraction_multiply; - int function(GValue* dest, GValue* minuend, GValue* subtrahend) c_gst_value_fraction_subtract; - ulong function(GValue* value) c_gst_value_get_bitmask; - GstCaps* function(GValue* value) c_gst_value_get_caps; - GstCapsFeatures* function(GValue* value) c_gst_value_get_caps_features; - double function(GValue* value) c_gst_value_get_double_range_max; - double function(GValue* value) c_gst_value_get_double_range_min; - uint function(GValue* value) c_gst_value_get_flagset_flags; - uint function(GValue* value) c_gst_value_get_flagset_mask; - void function(GValue* value, uint flags, uint mask) c_gst_value_set_flagset; - int function(GValue* value) c_gst_value_get_fraction_denominator; - int function(GValue* value) c_gst_value_get_fraction_numerator; - GValue* function(GValue* value) c_gst_value_get_fraction_range_max; - GValue* function(GValue* value) c_gst_value_get_fraction_range_min; - long function(GValue* value) c_gst_value_get_int64_range_max; - long function(GValue* value) c_gst_value_get_int64_range_min; - long function(GValue* value) c_gst_value_get_int64_range_step; - int function(GValue* value) c_gst_value_get_int_range_max; - int function(GValue* value) c_gst_value_get_int_range_min; - int function(GValue* value) c_gst_value_get_int_range_step; - GstStructure* function(GValue* value) c_gst_value_get_structure; - void function(GValue* dest, GValue* src) c_gst_value_init_and_copy; - int function(GValue* dest, GValue* value1, GValue* value2) c_gst_value_intersect; - int function(GValue* value) c_gst_value_is_fixed; - int function(GValue* value1, GValue* value2) c_gst_value_is_subset; - void function(GstValueTable* table) c_gst_value_register; - char* function(GValue* value) c_gst_value_serialize; - void function(GValue* value, ulong bitmask) c_gst_value_set_bitmask; - void function(GValue* value, GstCaps* caps) c_gst_value_set_caps; - void function(GValue* value, GstCapsFeatures* features) c_gst_value_set_caps_features; - void function(GValue* value, double start, double end) c_gst_value_set_double_range; - void function(GValue* value, int numerator, int denominator) c_gst_value_set_fraction; - void function(GValue* value, GValue* start, GValue* end) c_gst_value_set_fraction_range; - void function(GValue* value, int numeratorStart, int denominatorStart, int numeratorEnd, int denominatorEnd) c_gst_value_set_fraction_range_full; - void function(GValue* value, long start, long end) c_gst_value_set_int64_range; - void function(GValue* value, long start, long end, long step) c_gst_value_set_int64_range_step; - void function(GValue* value, int start, int end) c_gst_value_set_int_range; - void function(GValue* value, int start, int end, int step) c_gst_value_set_int_range_step; - void function(GValue* value, GstStructure* structure) c_gst_value_set_structure; - int function(GValue* dest, GValue* minuend, GValue* subtrahend) c_gst_value_subtract; - int function(GValue* dest, GValue* value1, GValue* value2) c_gst_value_union; -} - - -// gstreamer.AllocationParams - -alias c_gst_allocation_params_get_type gst_allocation_params_get_type; -alias c_gst_allocation_params_copy gst_allocation_params_copy; -alias c_gst_allocation_params_free gst_allocation_params_free; -alias c_gst_allocation_params_init gst_allocation_params_init; - -// gstreamer.Allocator - -alias c_gst_allocator_get_type gst_allocator_get_type; -alias c_gst_allocator_find gst_allocator_find; -alias c_gst_allocator_register gst_allocator_register; -alias c_gst_allocator_alloc gst_allocator_alloc; -alias c_gst_allocator_free gst_allocator_free; -alias c_gst_allocator_set_default gst_allocator_set_default; - -// gstreamer.AtomicQueue - -alias c_gst_atomic_queue_get_type gst_atomic_queue_get_type; -alias c_gst_atomic_queue_new gst_atomic_queue_new; -alias c_gst_atomic_queue_length gst_atomic_queue_length; -alias c_gst_atomic_queue_peek gst_atomic_queue_peek; -alias c_gst_atomic_queue_pop gst_atomic_queue_pop; -alias c_gst_atomic_queue_push gst_atomic_queue_push; -alias c_gst_atomic_queue_ref gst_atomic_queue_ref; -alias c_gst_atomic_queue_unref gst_atomic_queue_unref; - -// gstreamer.Bin - -alias c_gst_bin_get_type gst_bin_get_type; -alias c_gst_bin_new gst_bin_new; -alias c_gst_bin_add gst_bin_add; -alias c_gst_bin_add_many gst_bin_add_many; -alias c_gst_bin_find_unlinked_pad gst_bin_find_unlinked_pad; -alias c_gst_bin_get_by_interface gst_bin_get_by_interface; -alias c_gst_bin_get_by_name gst_bin_get_by_name; -alias c_gst_bin_get_by_name_recurse_up gst_bin_get_by_name_recurse_up; -alias c_gst_bin_get_suppressed_flags gst_bin_get_suppressed_flags; -alias c_gst_bin_iterate_all_by_element_factory_name gst_bin_iterate_all_by_element_factory_name; -alias c_gst_bin_iterate_all_by_interface gst_bin_iterate_all_by_interface; -alias c_gst_bin_iterate_elements gst_bin_iterate_elements; -alias c_gst_bin_iterate_recurse gst_bin_iterate_recurse; -alias c_gst_bin_iterate_sinks gst_bin_iterate_sinks; -alias c_gst_bin_iterate_sorted gst_bin_iterate_sorted; -alias c_gst_bin_iterate_sources gst_bin_iterate_sources; -alias c_gst_bin_recalculate_latency gst_bin_recalculate_latency; -alias c_gst_bin_remove gst_bin_remove; -alias c_gst_bin_remove_many gst_bin_remove_many; -alias c_gst_bin_set_suppressed_flags gst_bin_set_suppressed_flags; -alias c_gst_bin_sync_children_states gst_bin_sync_children_states; - -// gstreamer.Bitmask - -alias c_gst_bitmask_get_type gst_bitmask_get_type; - -// gstreamer.Buffer - -alias c_gst_buffer_get_type gst_buffer_get_type; -alias c_gst_buffer_new gst_buffer_new; -alias c_gst_buffer_new_allocate gst_buffer_new_allocate; -alias c_gst_buffer_new_wrapped gst_buffer_new_wrapped; -alias c_gst_buffer_new_wrapped_bytes gst_buffer_new_wrapped_bytes; -alias c_gst_buffer_new_wrapped_full gst_buffer_new_wrapped_full; -alias c_gst_buffer_add_meta gst_buffer_add_meta; -alias c_gst_buffer_add_parent_buffer_meta gst_buffer_add_parent_buffer_meta; -alias c_gst_buffer_add_protection_meta gst_buffer_add_protection_meta; -alias c_gst_buffer_add_reference_timestamp_meta gst_buffer_add_reference_timestamp_meta; -alias c_gst_buffer_append gst_buffer_append; -alias c_gst_buffer_append_memory gst_buffer_append_memory; -alias c_gst_buffer_append_region gst_buffer_append_region; -alias c_gst_buffer_copy_deep gst_buffer_copy_deep; -alias c_gst_buffer_copy_into gst_buffer_copy_into; -alias c_gst_buffer_copy_region gst_buffer_copy_region; -alias c_gst_buffer_extract gst_buffer_extract; -alias c_gst_buffer_extract_dup gst_buffer_extract_dup; -alias c_gst_buffer_fill gst_buffer_fill; -alias c_gst_buffer_find_memory gst_buffer_find_memory; -alias c_gst_buffer_foreach_meta gst_buffer_foreach_meta; -alias c_gst_buffer_get_all_memory gst_buffer_get_all_memory; -alias c_gst_buffer_get_flags gst_buffer_get_flags; -alias c_gst_buffer_get_memory gst_buffer_get_memory; -alias c_gst_buffer_get_memory_range gst_buffer_get_memory_range; -alias c_gst_buffer_get_meta gst_buffer_get_meta; -alias c_gst_buffer_get_n_meta gst_buffer_get_n_meta; -alias c_gst_buffer_get_reference_timestamp_meta gst_buffer_get_reference_timestamp_meta; -alias c_gst_buffer_get_size gst_buffer_get_size; -alias c_gst_buffer_get_sizes gst_buffer_get_sizes; -alias c_gst_buffer_get_sizes_range gst_buffer_get_sizes_range; -alias c_gst_buffer_has_flags gst_buffer_has_flags; -alias c_gst_buffer_insert_memory gst_buffer_insert_memory; -alias c_gst_buffer_is_all_memory_writable gst_buffer_is_all_memory_writable; -alias c_gst_buffer_is_memory_range_writable gst_buffer_is_memory_range_writable; -alias c_gst_buffer_iterate_meta gst_buffer_iterate_meta; -alias c_gst_buffer_iterate_meta_filtered gst_buffer_iterate_meta_filtered; -alias c_gst_buffer_map gst_buffer_map; -alias c_gst_buffer_map_range gst_buffer_map_range; -alias c_gst_buffer_memcmp gst_buffer_memcmp; -alias c_gst_buffer_memset gst_buffer_memset; -alias c_gst_buffer_n_memory gst_buffer_n_memory; -alias c_gst_buffer_peek_memory gst_buffer_peek_memory; -alias c_gst_buffer_prepend_memory gst_buffer_prepend_memory; -alias c_gst_buffer_remove_all_memory gst_buffer_remove_all_memory; -alias c_gst_buffer_remove_memory gst_buffer_remove_memory; -alias c_gst_buffer_remove_memory_range gst_buffer_remove_memory_range; -alias c_gst_buffer_remove_meta gst_buffer_remove_meta; -alias c_gst_buffer_replace_all_memory gst_buffer_replace_all_memory; -alias c_gst_buffer_replace_memory gst_buffer_replace_memory; -alias c_gst_buffer_replace_memory_range gst_buffer_replace_memory_range; -alias c_gst_buffer_resize gst_buffer_resize; -alias c_gst_buffer_resize_range gst_buffer_resize_range; -alias c_gst_buffer_set_flags gst_buffer_set_flags; -alias c_gst_buffer_set_size gst_buffer_set_size; -alias c_gst_buffer_unmap gst_buffer_unmap; -alias c_gst_buffer_unset_flags gst_buffer_unset_flags; -alias c_gst_buffer_get_max_memory gst_buffer_get_max_memory; - -// gstreamer.BufferList - -alias c_gst_buffer_list_get_type gst_buffer_list_get_type; -alias c_gst_buffer_list_new gst_buffer_list_new; -alias c_gst_buffer_list_new_sized gst_buffer_list_new_sized; -alias c_gst_buffer_list_calculate_size gst_buffer_list_calculate_size; -alias c_gst_buffer_list_copy_deep gst_buffer_list_copy_deep; -alias c_gst_buffer_list_foreach gst_buffer_list_foreach; -alias c_gst_buffer_list_get gst_buffer_list_get; -alias c_gst_buffer_list_get_writable gst_buffer_list_get_writable; -alias c_gst_buffer_list_insert gst_buffer_list_insert; -alias c_gst_buffer_list_length gst_buffer_list_length; -alias c_gst_buffer_list_remove gst_buffer_list_remove; - -// gstreamer.BufferPool - -alias c_gst_buffer_pool_get_type gst_buffer_pool_get_type; -alias c_gst_buffer_pool_new gst_buffer_pool_new; -alias c_gst_buffer_pool_config_add_option gst_buffer_pool_config_add_option; -alias c_gst_buffer_pool_config_get_allocator gst_buffer_pool_config_get_allocator; -alias c_gst_buffer_pool_config_get_option gst_buffer_pool_config_get_option; -alias c_gst_buffer_pool_config_get_params gst_buffer_pool_config_get_params; -alias c_gst_buffer_pool_config_has_option gst_buffer_pool_config_has_option; -alias c_gst_buffer_pool_config_n_options gst_buffer_pool_config_n_options; -alias c_gst_buffer_pool_config_set_allocator gst_buffer_pool_config_set_allocator; -alias c_gst_buffer_pool_config_set_params gst_buffer_pool_config_set_params; -alias c_gst_buffer_pool_config_validate_params gst_buffer_pool_config_validate_params; -alias c_gst_buffer_pool_acquire_buffer gst_buffer_pool_acquire_buffer; -alias c_gst_buffer_pool_get_config gst_buffer_pool_get_config; -alias c_gst_buffer_pool_get_options gst_buffer_pool_get_options; -alias c_gst_buffer_pool_has_option gst_buffer_pool_has_option; -alias c_gst_buffer_pool_is_active gst_buffer_pool_is_active; -alias c_gst_buffer_pool_release_buffer gst_buffer_pool_release_buffer; -alias c_gst_buffer_pool_set_active gst_buffer_pool_set_active; -alias c_gst_buffer_pool_set_config gst_buffer_pool_set_config; -alias c_gst_buffer_pool_set_flushing gst_buffer_pool_set_flushing; - -// gstreamer.Bus - -alias c_gst_bus_get_type gst_bus_get_type; -alias c_gst_bus_new gst_bus_new; -alias c_gst_bus_add_signal_watch gst_bus_add_signal_watch; -alias c_gst_bus_add_signal_watch_full gst_bus_add_signal_watch_full; -alias c_gst_bus_add_watch gst_bus_add_watch; -alias c_gst_bus_add_watch_full gst_bus_add_watch_full; -alias c_gst_bus_async_signal_func gst_bus_async_signal_func; -alias c_gst_bus_create_watch gst_bus_create_watch; -alias c_gst_bus_disable_sync_message_emission gst_bus_disable_sync_message_emission; -alias c_gst_bus_enable_sync_message_emission gst_bus_enable_sync_message_emission; -alias c_gst_bus_get_pollfd gst_bus_get_pollfd; -alias c_gst_bus_have_pending gst_bus_have_pending; -alias c_gst_bus_peek gst_bus_peek; -alias c_gst_bus_poll gst_bus_poll; -alias c_gst_bus_pop gst_bus_pop; -alias c_gst_bus_pop_filtered gst_bus_pop_filtered; -alias c_gst_bus_post gst_bus_post; -alias c_gst_bus_remove_signal_watch gst_bus_remove_signal_watch; -alias c_gst_bus_remove_watch gst_bus_remove_watch; -alias c_gst_bus_set_flushing gst_bus_set_flushing; -alias c_gst_bus_set_sync_handler gst_bus_set_sync_handler; -alias c_gst_bus_sync_signal_handler gst_bus_sync_signal_handler; -alias c_gst_bus_timed_pop gst_bus_timed_pop; -alias c_gst_bus_timed_pop_filtered gst_bus_timed_pop_filtered; - -// gstreamer.Caps - -alias c_gst_caps_get_type gst_caps_get_type; -alias c_gst_caps_new_any gst_caps_new_any; -alias c_gst_caps_new_empty gst_caps_new_empty; -alias c_gst_caps_new_empty_simple gst_caps_new_empty_simple; -alias c_gst_caps_new_full gst_caps_new_full; -alias c_gst_caps_new_full_valist gst_caps_new_full_valist; -alias c_gst_caps_new_simple gst_caps_new_simple; -alias c_gst_caps_append gst_caps_append; -alias c_gst_caps_append_structure gst_caps_append_structure; -alias c_gst_caps_append_structure_full gst_caps_append_structure_full; -alias c_gst_caps_can_intersect gst_caps_can_intersect; -alias c_gst_caps_copy gst_caps_copy; -alias c_gst_caps_copy_nth gst_caps_copy_nth; -alias c_gst_caps_filter_and_map_in_place gst_caps_filter_and_map_in_place; -alias c_gst_caps_fixate gst_caps_fixate; -alias c_gst_caps_foreach gst_caps_foreach; -alias c_gst_caps_get_features gst_caps_get_features; -alias c_gst_caps_get_size gst_caps_get_size; -alias c_gst_caps_get_structure gst_caps_get_structure; -alias c_gst_caps_intersect gst_caps_intersect; -alias c_gst_caps_intersect_full gst_caps_intersect_full; -alias c_gst_caps_is_always_compatible gst_caps_is_always_compatible; -alias c_gst_caps_is_any gst_caps_is_any; -alias c_gst_caps_is_empty gst_caps_is_empty; -alias c_gst_caps_is_equal gst_caps_is_equal; -alias c_gst_caps_is_equal_fixed gst_caps_is_equal_fixed; -alias c_gst_caps_is_fixed gst_caps_is_fixed; -alias c_gst_caps_is_strictly_equal gst_caps_is_strictly_equal; -alias c_gst_caps_is_subset gst_caps_is_subset; -alias c_gst_caps_is_subset_structure gst_caps_is_subset_structure; -alias c_gst_caps_is_subset_structure_full gst_caps_is_subset_structure_full; -alias c_gst_caps_map_in_place gst_caps_map_in_place; -alias c_gst_caps_merge gst_caps_merge; -alias c_gst_caps_merge_structure gst_caps_merge_structure; -alias c_gst_caps_merge_structure_full gst_caps_merge_structure_full; -alias c_gst_caps_normalize gst_caps_normalize; -alias c_gst_caps_remove_structure gst_caps_remove_structure; -alias c_gst_caps_set_features gst_caps_set_features; -alias c_gst_caps_set_features_simple gst_caps_set_features_simple; -alias c_gst_caps_set_simple gst_caps_set_simple; -alias c_gst_caps_set_simple_valist gst_caps_set_simple_valist; -alias c_gst_caps_set_value gst_caps_set_value; -alias c_gst_caps_simplify gst_caps_simplify; -alias c_gst_caps_steal_structure gst_caps_steal_structure; -alias c_gst_caps_subtract gst_caps_subtract; -alias c_gst_caps_to_string gst_caps_to_string; -alias c_gst_caps_truncate gst_caps_truncate; -alias c_gst_caps_from_string gst_caps_from_string; - -// gstreamer.CapsFeatures - -alias c_gst_caps_features_get_type gst_caps_features_get_type; -alias c_gst_caps_features_new gst_caps_features_new; -alias c_gst_caps_features_new_any gst_caps_features_new_any; -alias c_gst_caps_features_new_empty gst_caps_features_new_empty; -alias c_gst_caps_features_new_id gst_caps_features_new_id; -alias c_gst_caps_features_new_id_valist gst_caps_features_new_id_valist; -alias c_gst_caps_features_new_valist gst_caps_features_new_valist; -alias c_gst_caps_features_add gst_caps_features_add; -alias c_gst_caps_features_add_id gst_caps_features_add_id; -alias c_gst_caps_features_contains gst_caps_features_contains; -alias c_gst_caps_features_contains_id gst_caps_features_contains_id; -alias c_gst_caps_features_copy gst_caps_features_copy; -alias c_gst_caps_features_free gst_caps_features_free; -alias c_gst_caps_features_get_nth gst_caps_features_get_nth; -alias c_gst_caps_features_get_nth_id gst_caps_features_get_nth_id; -alias c_gst_caps_features_get_size gst_caps_features_get_size; -alias c_gst_caps_features_is_any gst_caps_features_is_any; -alias c_gst_caps_features_is_equal gst_caps_features_is_equal; -alias c_gst_caps_features_remove gst_caps_features_remove; -alias c_gst_caps_features_remove_id gst_caps_features_remove_id; -alias c_gst_caps_features_set_parent_refcount gst_caps_features_set_parent_refcount; -alias c_gst_caps_features_to_string gst_caps_features_to_string; -alias c_gst_caps_features_from_string gst_caps_features_from_string; - -// gstreamer.ChildProxy - -alias c_gst_child_proxy_get_type gst_child_proxy_get_type; -alias c_gst_child_proxy_child_added gst_child_proxy_child_added; -alias c_gst_child_proxy_child_removed gst_child_proxy_child_removed; -alias c_gst_child_proxy_get gst_child_proxy_get; -alias c_gst_child_proxy_get_child_by_index gst_child_proxy_get_child_by_index; -alias c_gst_child_proxy_get_child_by_name gst_child_proxy_get_child_by_name; -alias c_gst_child_proxy_get_children_count gst_child_proxy_get_children_count; -alias c_gst_child_proxy_get_property gst_child_proxy_get_property; -alias c_gst_child_proxy_get_valist gst_child_proxy_get_valist; -alias c_gst_child_proxy_lookup gst_child_proxy_lookup; -alias c_gst_child_proxy_set gst_child_proxy_set; -alias c_gst_child_proxy_set_property gst_child_proxy_set_property; -alias c_gst_child_proxy_set_valist gst_child_proxy_set_valist; - -// gstreamer.Clock - -alias c_gst_clock_get_type gst_clock_get_type; -alias c_gst_clock_id_compare_func gst_clock_id_compare_func; -alias c_gst_clock_id_get_clock gst_clock_id_get_clock; -alias c_gst_clock_id_get_time gst_clock_id_get_time; -alias c_gst_clock_id_ref gst_clock_id_ref; -alias c_gst_clock_id_unref gst_clock_id_unref; -alias c_gst_clock_id_unschedule gst_clock_id_unschedule; -alias c_gst_clock_id_uses_clock gst_clock_id_uses_clock; -alias c_gst_clock_id_wait gst_clock_id_wait; -alias c_gst_clock_id_wait_async gst_clock_id_wait_async; -alias c_gst_clock_add_observation gst_clock_add_observation; -alias c_gst_clock_add_observation_unapplied gst_clock_add_observation_unapplied; -alias c_gst_clock_adjust_unlocked gst_clock_adjust_unlocked; -alias c_gst_clock_adjust_with_calibration gst_clock_adjust_with_calibration; -alias c_gst_clock_get_calibration gst_clock_get_calibration; -alias c_gst_clock_get_internal_time gst_clock_get_internal_time; -alias c_gst_clock_get_master gst_clock_get_master; -alias c_gst_clock_get_resolution gst_clock_get_resolution; -alias c_gst_clock_get_time gst_clock_get_time; -alias c_gst_clock_get_timeout gst_clock_get_timeout; -alias c_gst_clock_is_synced gst_clock_is_synced; -alias c_gst_clock_new_periodic_id gst_clock_new_periodic_id; -alias c_gst_clock_new_single_shot_id gst_clock_new_single_shot_id; -alias c_gst_clock_periodic_id_reinit gst_clock_periodic_id_reinit; -alias c_gst_clock_set_calibration gst_clock_set_calibration; -alias c_gst_clock_set_master gst_clock_set_master; -alias c_gst_clock_set_resolution gst_clock_set_resolution; -alias c_gst_clock_set_synced gst_clock_set_synced; -alias c_gst_clock_set_timeout gst_clock_set_timeout; -alias c_gst_clock_single_shot_id_reinit gst_clock_single_shot_id_reinit; -alias c_gst_clock_unadjust_unlocked gst_clock_unadjust_unlocked; -alias c_gst_clock_unadjust_with_calibration gst_clock_unadjust_with_calibration; -alias c_gst_clock_wait_for_sync gst_clock_wait_for_sync; - -// gstreamer.Context - -alias c_gst_context_get_type gst_context_get_type; -alias c_gst_context_new gst_context_new; -alias c_gst_context_get_context_type gst_context_get_context_type; -alias c_gst_context_get_structure gst_context_get_structure; -alias c_gst_context_has_context_type gst_context_has_context_type; -alias c_gst_context_is_persistent gst_context_is_persistent; -alias c_gst_context_writable_structure gst_context_writable_structure; - -// gstreamer.ControlBinding - -alias c_gst_control_binding_get_type gst_control_binding_get_type; -alias c_gst_control_binding_get_g_value_array gst_control_binding_get_g_value_array; -alias c_gst_control_binding_get_value gst_control_binding_get_value; -alias c_gst_control_binding_get_value_array gst_control_binding_get_value_array; -alias c_gst_control_binding_is_disabled gst_control_binding_is_disabled; -alias c_gst_control_binding_set_disabled gst_control_binding_set_disabled; -alias c_gst_control_binding_sync_values gst_control_binding_sync_values; - -// gstreamer.ControlSource - -alias c_gst_control_source_get_type gst_control_source_get_type; -alias c_gst_control_source_get_value gst_control_source_get_value; -alias c_gst_control_source_get_value_array gst_control_source_get_value_array; - -// gstreamer.DateTime - -alias c_gst_date_time_get_type gst_date_time_get_type; -alias c_gst_date_time_new gst_date_time_new; -alias c_gst_date_time_new_from_g_date_time gst_date_time_new_from_g_date_time; -alias c_gst_date_time_new_from_iso8601_string gst_date_time_new_from_iso8601_string; -alias c_gst_date_time_new_from_unix_epoch_local_time gst_date_time_new_from_unix_epoch_local_time; -alias c_gst_date_time_new_from_unix_epoch_local_time_usecs gst_date_time_new_from_unix_epoch_local_time_usecs; -alias c_gst_date_time_new_from_unix_epoch_utc gst_date_time_new_from_unix_epoch_utc; -alias c_gst_date_time_new_from_unix_epoch_utc_usecs gst_date_time_new_from_unix_epoch_utc_usecs; -alias c_gst_date_time_new_local_time gst_date_time_new_local_time; -alias c_gst_date_time_new_now_local_time gst_date_time_new_now_local_time; -alias c_gst_date_time_new_now_utc gst_date_time_new_now_utc; -alias c_gst_date_time_new_y gst_date_time_new_y; -alias c_gst_date_time_new_ym gst_date_time_new_ym; -alias c_gst_date_time_new_ymd gst_date_time_new_ymd; -alias c_gst_date_time_get_day gst_date_time_get_day; -alias c_gst_date_time_get_hour gst_date_time_get_hour; -alias c_gst_date_time_get_microsecond gst_date_time_get_microsecond; -alias c_gst_date_time_get_minute gst_date_time_get_minute; -alias c_gst_date_time_get_month gst_date_time_get_month; -alias c_gst_date_time_get_second gst_date_time_get_second; -alias c_gst_date_time_get_time_zone_offset gst_date_time_get_time_zone_offset; -alias c_gst_date_time_get_year gst_date_time_get_year; -alias c_gst_date_time_has_day gst_date_time_has_day; -alias c_gst_date_time_has_month gst_date_time_has_month; -alias c_gst_date_time_has_second gst_date_time_has_second; -alias c_gst_date_time_has_time gst_date_time_has_time; -alias c_gst_date_time_has_year gst_date_time_has_year; -alias c_gst_date_time_ref gst_date_time_ref; -alias c_gst_date_time_to_g_date_time gst_date_time_to_g_date_time; -alias c_gst_date_time_to_iso8601_string gst_date_time_to_iso8601_string; -alias c_gst_date_time_unref gst_date_time_unref; - -// gstreamer.DebugCategory - -alias c_gst_debug_category_free gst_debug_category_free; -alias c_gst_debug_category_get_color gst_debug_category_get_color; -alias c_gst_debug_category_get_description gst_debug_category_get_description; -alias c_gst_debug_category_get_name gst_debug_category_get_name; -alias c_gst_debug_category_get_threshold gst_debug_category_get_threshold; -alias c_gst_debug_category_reset_threshold gst_debug_category_reset_threshold; -alias c_gst_debug_category_set_threshold gst_debug_category_set_threshold; - -// gstreamer.DebugMessage - -alias c_gst_debug_message_get gst_debug_message_get; - -// gstreamer.Device - -alias c_gst_device_get_type gst_device_get_type; -alias c_gst_device_create_element gst_device_create_element; -alias c_gst_device_get_caps gst_device_get_caps; -alias c_gst_device_get_device_class gst_device_get_device_class; -alias c_gst_device_get_display_name gst_device_get_display_name; -alias c_gst_device_get_properties gst_device_get_properties; -alias c_gst_device_has_classes gst_device_has_classes; -alias c_gst_device_has_classesv gst_device_has_classesv; -alias c_gst_device_reconfigure_element gst_device_reconfigure_element; - -// gstreamer.DeviceMonitor - -alias c_gst_device_monitor_get_type gst_device_monitor_get_type; -alias c_gst_device_monitor_new gst_device_monitor_new; -alias c_gst_device_monitor_add_filter gst_device_monitor_add_filter; -alias c_gst_device_monitor_get_bus gst_device_monitor_get_bus; -alias c_gst_device_monitor_get_devices gst_device_monitor_get_devices; -alias c_gst_device_monitor_get_providers gst_device_monitor_get_providers; -alias c_gst_device_monitor_get_show_all_devices gst_device_monitor_get_show_all_devices; -alias c_gst_device_monitor_remove_filter gst_device_monitor_remove_filter; -alias c_gst_device_monitor_set_show_all_devices gst_device_monitor_set_show_all_devices; -alias c_gst_device_monitor_start gst_device_monitor_start; -alias c_gst_device_monitor_stop gst_device_monitor_stop; - -// gstreamer.DeviceProvider - -alias c_gst_device_provider_get_type gst_device_provider_get_type; -alias c_gst_device_provider_register gst_device_provider_register; -alias c_gst_device_provider_can_monitor gst_device_provider_can_monitor; -alias c_gst_device_provider_device_add gst_device_provider_device_add; -alias c_gst_device_provider_device_changed gst_device_provider_device_changed; -alias c_gst_device_provider_device_remove gst_device_provider_device_remove; -alias c_gst_device_provider_get_bus gst_device_provider_get_bus; -alias c_gst_device_provider_get_devices gst_device_provider_get_devices; -alias c_gst_device_provider_get_factory gst_device_provider_get_factory; -alias c_gst_device_provider_get_hidden_providers gst_device_provider_get_hidden_providers; -alias c_gst_device_provider_get_metadata gst_device_provider_get_metadata; -alias c_gst_device_provider_hide_provider gst_device_provider_hide_provider; -alias c_gst_device_provider_start gst_device_provider_start; -alias c_gst_device_provider_stop gst_device_provider_stop; -alias c_gst_device_provider_unhide_provider gst_device_provider_unhide_provider; - -// gstreamer.DeviceProviderClass - -alias c_gst_device_provider_class_add_metadata gst_device_provider_class_add_metadata; -alias c_gst_device_provider_class_add_static_metadata gst_device_provider_class_add_static_metadata; -alias c_gst_device_provider_class_get_metadata gst_device_provider_class_get_metadata; -alias c_gst_device_provider_class_set_metadata gst_device_provider_class_set_metadata; -alias c_gst_device_provider_class_set_static_metadata gst_device_provider_class_set_static_metadata; - -// gstreamer.DeviceProviderFactory - -alias c_gst_device_provider_factory_get_type gst_device_provider_factory_get_type; -alias c_gst_device_provider_factory_find gst_device_provider_factory_find; -alias c_gst_device_provider_factory_get_by_name gst_device_provider_factory_get_by_name; -alias c_gst_device_provider_factory_list_get_device_providers gst_device_provider_factory_list_get_device_providers; -alias c_gst_device_provider_factory_get gst_device_provider_factory_get; -alias c_gst_device_provider_factory_get_device_provider_type gst_device_provider_factory_get_device_provider_type; -alias c_gst_device_provider_factory_get_metadata gst_device_provider_factory_get_metadata; -alias c_gst_device_provider_factory_get_metadata_keys gst_device_provider_factory_get_metadata_keys; -alias c_gst_device_provider_factory_has_classes gst_device_provider_factory_has_classes; -alias c_gst_device_provider_factory_has_classesv gst_device_provider_factory_has_classesv; - -// gstreamer.DoubleRange - -alias c_gst_double_range_get_type gst_double_range_get_type; - -// gstreamer.DynamicTypeFactory - -alias c_gst_dynamic_type_factory_get_type gst_dynamic_type_factory_get_type; -alias c_gst_dynamic_type_factory_load gst_dynamic_type_factory_load; - -// gstreamer.Element - -alias c_gst_element_get_type gst_element_get_type; -alias c_gst_element_make_from_uri gst_element_make_from_uri; -alias c_gst_element_register gst_element_register; -alias c_gst_element_state_change_return_get_name gst_element_state_change_return_get_name; -alias c_gst_element_state_get_name gst_element_state_get_name; -alias c_gst_element_abort_state gst_element_abort_state; -alias c_gst_element_add_pad gst_element_add_pad; -alias c_gst_element_add_property_deep_notify_watch gst_element_add_property_deep_notify_watch; -alias c_gst_element_add_property_notify_watch gst_element_add_property_notify_watch; -alias c_gst_element_call_async gst_element_call_async; -alias c_gst_element_change_state gst_element_change_state; -alias c_gst_element_continue_state gst_element_continue_state; -alias c_gst_element_create_all_pads gst_element_create_all_pads; -alias c_gst_element_foreach_pad gst_element_foreach_pad; -alias c_gst_element_foreach_sink_pad gst_element_foreach_sink_pad; -alias c_gst_element_foreach_src_pad gst_element_foreach_src_pad; -alias c_gst_element_get_base_time gst_element_get_base_time; -alias c_gst_element_get_bus gst_element_get_bus; -alias c_gst_element_get_clock gst_element_get_clock; -alias c_gst_element_get_compatible_pad gst_element_get_compatible_pad; -alias c_gst_element_get_compatible_pad_template gst_element_get_compatible_pad_template; -alias c_gst_element_get_context gst_element_get_context; -alias c_gst_element_get_context_unlocked gst_element_get_context_unlocked; -alias c_gst_element_get_contexts gst_element_get_contexts; -alias c_gst_element_get_current_clock_time gst_element_get_current_clock_time; -alias c_gst_element_get_current_running_time gst_element_get_current_running_time; -alias c_gst_element_get_factory gst_element_get_factory; -alias c_gst_element_get_metadata gst_element_get_metadata; -alias c_gst_element_get_pad_template gst_element_get_pad_template; -alias c_gst_element_get_pad_template_list gst_element_get_pad_template_list; -alias c_gst_element_get_request_pad gst_element_get_request_pad; -alias c_gst_element_get_start_time gst_element_get_start_time; -alias c_gst_element_get_state gst_element_get_state; -alias c_gst_element_get_static_pad gst_element_get_static_pad; -alias c_gst_element_is_locked_state gst_element_is_locked_state; -alias c_gst_element_iterate_pads gst_element_iterate_pads; -alias c_gst_element_iterate_sink_pads gst_element_iterate_sink_pads; -alias c_gst_element_iterate_src_pads gst_element_iterate_src_pads; -alias c_gst_element_link gst_element_link; -alias c_gst_element_link_filtered gst_element_link_filtered; -alias c_gst_element_link_many gst_element_link_many; -alias c_gst_element_link_pads gst_element_link_pads; -alias c_gst_element_link_pads_filtered gst_element_link_pads_filtered; -alias c_gst_element_link_pads_full gst_element_link_pads_full; -alias c_gst_element_lost_state gst_element_lost_state; -alias c_gst_element_message_full gst_element_message_full; -alias c_gst_element_message_full_with_details gst_element_message_full_with_details; -alias c_gst_element_no_more_pads gst_element_no_more_pads; -alias c_gst_element_post_message gst_element_post_message; -alias c_gst_element_provide_clock gst_element_provide_clock; -alias c_gst_element_query gst_element_query; -alias c_gst_element_query_convert gst_element_query_convert; -alias c_gst_element_query_duration gst_element_query_duration; -alias c_gst_element_query_position gst_element_query_position; -alias c_gst_element_release_request_pad gst_element_release_request_pad; -alias c_gst_element_remove_pad gst_element_remove_pad; -alias c_gst_element_remove_property_notify_watch gst_element_remove_property_notify_watch; -alias c_gst_element_request_pad gst_element_request_pad; -alias c_gst_element_seek gst_element_seek; -alias c_gst_element_seek_simple gst_element_seek_simple; -alias c_gst_element_send_event gst_element_send_event; -alias c_gst_element_set_base_time gst_element_set_base_time; -alias c_gst_element_set_bus gst_element_set_bus; -alias c_gst_element_set_clock gst_element_set_clock; -alias c_gst_element_set_context gst_element_set_context; -alias c_gst_element_set_locked_state gst_element_set_locked_state; -alias c_gst_element_set_start_time gst_element_set_start_time; -alias c_gst_element_set_state gst_element_set_state; -alias c_gst_element_sync_state_with_parent gst_element_sync_state_with_parent; -alias c_gst_element_unlink gst_element_unlink; -alias c_gst_element_unlink_many gst_element_unlink_many; -alias c_gst_element_unlink_pads gst_element_unlink_pads; - -// gstreamer.ElementClass - -alias c_gst_element_class_add_metadata gst_element_class_add_metadata; -alias c_gst_element_class_add_pad_template gst_element_class_add_pad_template; -alias c_gst_element_class_add_static_metadata gst_element_class_add_static_metadata; -alias c_gst_element_class_add_static_pad_template gst_element_class_add_static_pad_template; -alias c_gst_element_class_add_static_pad_template_with_gtype gst_element_class_add_static_pad_template_with_gtype; -alias c_gst_element_class_get_metadata gst_element_class_get_metadata; -alias c_gst_element_class_get_pad_template gst_element_class_get_pad_template; -alias c_gst_element_class_get_pad_template_list gst_element_class_get_pad_template_list; -alias c_gst_element_class_set_metadata gst_element_class_set_metadata; -alias c_gst_element_class_set_static_metadata gst_element_class_set_static_metadata; - -// gstreamer.ElementFactory - -alias c_gst_element_factory_get_type gst_element_factory_get_type; -alias c_gst_element_factory_find gst_element_factory_find; -alias c_gst_element_factory_list_filter gst_element_factory_list_filter; -alias c_gst_element_factory_list_get_elements gst_element_factory_list_get_elements; -alias c_gst_element_factory_make gst_element_factory_make; -alias c_gst_element_factory_can_sink_all_caps gst_element_factory_can_sink_all_caps; -alias c_gst_element_factory_can_sink_any_caps gst_element_factory_can_sink_any_caps; -alias c_gst_element_factory_can_src_all_caps gst_element_factory_can_src_all_caps; -alias c_gst_element_factory_can_src_any_caps gst_element_factory_can_src_any_caps; -alias c_gst_element_factory_create gst_element_factory_create; -alias c_gst_element_factory_get_element_type gst_element_factory_get_element_type; -alias c_gst_element_factory_get_metadata gst_element_factory_get_metadata; -alias c_gst_element_factory_get_metadata_keys gst_element_factory_get_metadata_keys; -alias c_gst_element_factory_get_num_pad_templates gst_element_factory_get_num_pad_templates; -alias c_gst_element_factory_get_static_pad_templates gst_element_factory_get_static_pad_templates; -alias c_gst_element_factory_get_uri_protocols gst_element_factory_get_uri_protocols; -alias c_gst_element_factory_get_uri_type gst_element_factory_get_uri_type; -alias c_gst_element_factory_has_interface gst_element_factory_has_interface; -alias c_gst_element_factory_list_is_type gst_element_factory_list_is_type; - -// gstreamer.Event - -alias c_gst_event_get_type gst_event_get_type; -alias c_gst_event_new_buffer_size gst_event_new_buffer_size; -alias c_gst_event_new_caps gst_event_new_caps; -alias c_gst_event_new_custom gst_event_new_custom; -alias c_gst_event_new_eos gst_event_new_eos; -alias c_gst_event_new_flush_start gst_event_new_flush_start; -alias c_gst_event_new_flush_stop gst_event_new_flush_stop; -alias c_gst_event_new_gap gst_event_new_gap; -alias c_gst_event_new_instant_rate_change gst_event_new_instant_rate_change; -alias c_gst_event_new_instant_rate_sync_time gst_event_new_instant_rate_sync_time; -alias c_gst_event_new_latency gst_event_new_latency; -alias c_gst_event_new_navigation gst_event_new_navigation; -alias c_gst_event_new_protection gst_event_new_protection; -alias c_gst_event_new_qos gst_event_new_qos; -alias c_gst_event_new_reconfigure gst_event_new_reconfigure; -alias c_gst_event_new_seek gst_event_new_seek; -alias c_gst_event_new_segment gst_event_new_segment; -alias c_gst_event_new_segment_done gst_event_new_segment_done; -alias c_gst_event_new_select_streams gst_event_new_select_streams; -alias c_gst_event_new_sink_message gst_event_new_sink_message; -alias c_gst_event_new_step gst_event_new_step; -alias c_gst_event_new_stream_collection gst_event_new_stream_collection; -alias c_gst_event_new_stream_group_done gst_event_new_stream_group_done; -alias c_gst_event_new_stream_start gst_event_new_stream_start; -alias c_gst_event_new_tag gst_event_new_tag; -alias c_gst_event_new_toc gst_event_new_toc; -alias c_gst_event_new_toc_select gst_event_new_toc_select; -alias c_gst_event_copy_segment gst_event_copy_segment; -alias c_gst_event_get_running_time_offset gst_event_get_running_time_offset; -alias c_gst_event_get_seqnum gst_event_get_seqnum; -alias c_gst_event_get_structure gst_event_get_structure; -alias c_gst_event_has_name gst_event_has_name; -alias c_gst_event_has_name_id gst_event_has_name_id; -alias c_gst_event_parse_buffer_size gst_event_parse_buffer_size; -alias c_gst_event_parse_caps gst_event_parse_caps; -alias c_gst_event_parse_flush_stop gst_event_parse_flush_stop; -alias c_gst_event_parse_gap gst_event_parse_gap; -alias c_gst_event_parse_group_id gst_event_parse_group_id; -alias c_gst_event_parse_instant_rate_change gst_event_parse_instant_rate_change; -alias c_gst_event_parse_instant_rate_sync_time gst_event_parse_instant_rate_sync_time; -alias c_gst_event_parse_latency gst_event_parse_latency; -alias c_gst_event_parse_protection gst_event_parse_protection; -alias c_gst_event_parse_qos gst_event_parse_qos; -alias c_gst_event_parse_seek gst_event_parse_seek; -alias c_gst_event_parse_seek_trickmode_interval gst_event_parse_seek_trickmode_interval; -alias c_gst_event_parse_segment gst_event_parse_segment; -alias c_gst_event_parse_segment_done gst_event_parse_segment_done; -alias c_gst_event_parse_select_streams gst_event_parse_select_streams; -alias c_gst_event_parse_sink_message gst_event_parse_sink_message; -alias c_gst_event_parse_step gst_event_parse_step; -alias c_gst_event_parse_stream gst_event_parse_stream; -alias c_gst_event_parse_stream_collection gst_event_parse_stream_collection; -alias c_gst_event_parse_stream_flags gst_event_parse_stream_flags; -alias c_gst_event_parse_stream_group_done gst_event_parse_stream_group_done; -alias c_gst_event_parse_stream_start gst_event_parse_stream_start; -alias c_gst_event_parse_tag gst_event_parse_tag; -alias c_gst_event_parse_toc gst_event_parse_toc; -alias c_gst_event_parse_toc_select gst_event_parse_toc_select; -alias c_gst_event_set_group_id gst_event_set_group_id; -alias c_gst_event_set_running_time_offset gst_event_set_running_time_offset; -alias c_gst_event_set_seek_trickmode_interval gst_event_set_seek_trickmode_interval; -alias c_gst_event_set_seqnum gst_event_set_seqnum; -alias c_gst_event_set_stream gst_event_set_stream; -alias c_gst_event_set_stream_flags gst_event_set_stream_flags; -alias c_gst_event_writable_structure gst_event_writable_structure; -alias c_gst_event_type_get_flags gst_event_type_get_flags; -alias c_gst_event_type_get_name gst_event_type_get_name; -alias c_gst_event_type_to_quark gst_event_type_to_quark; - -// gstreamer.FlagSet - -alias c_gst_flagset_get_type gst_flagset_get_type; -alias c_gst_flagset_register gst_flagset_register; - -// gstreamer.Fraction - -alias c_gst_fraction_get_type gst_fraction_get_type; - -// gstreamer.FractionRange - -alias c_gst_fraction_range_get_type gst_fraction_range_get_type; - -// gstreamer.GhostPad - -alias c_gst_ghost_pad_get_type gst_ghost_pad_get_type; -alias c_gst_ghost_pad_new gst_ghost_pad_new; -alias c_gst_ghost_pad_new_from_template gst_ghost_pad_new_from_template; -alias c_gst_ghost_pad_new_no_target gst_ghost_pad_new_no_target; -alias c_gst_ghost_pad_new_no_target_from_template gst_ghost_pad_new_no_target_from_template; -alias c_gst_ghost_pad_activate_mode_default gst_ghost_pad_activate_mode_default; -alias c_gst_ghost_pad_internal_activate_mode_default gst_ghost_pad_internal_activate_mode_default; -alias c_gst_ghost_pad_construct gst_ghost_pad_construct; -alias c_gst_ghost_pad_get_target gst_ghost_pad_get_target; -alias c_gst_ghost_pad_set_target gst_ghost_pad_set_target; - -// gstreamer.Int64Range - -alias c_gst_int64_range_get_type gst_int64_range_get_type; - -// gstreamer.IntRange - -alias c_gst_int_range_get_type gst_int_range_get_type; - -// gstreamer.Iterator - -alias c_gst_iterator_get_type gst_iterator_get_type; -alias c_gst_iterator_new gst_iterator_new; -alias c_gst_iterator_new_list gst_iterator_new_list; -alias c_gst_iterator_new_single gst_iterator_new_single; -alias c_gst_iterator_copy gst_iterator_copy; -alias c_gst_iterator_filter gst_iterator_filter; -alias c_gst_iterator_find_custom gst_iterator_find_custom; -alias c_gst_iterator_fold gst_iterator_fold; -alias c_gst_iterator_foreach gst_iterator_foreach; -alias c_gst_iterator_free gst_iterator_free; -alias c_gst_iterator_next gst_iterator_next; -alias c_gst_iterator_push gst_iterator_push; -alias c_gst_iterator_resync gst_iterator_resync; - -// gstreamer.Memory - -alias c_gst_memory_get_type gst_memory_get_type; -alias c_gst_memory_new_wrapped gst_memory_new_wrapped; -alias c_gst_memory_copy gst_memory_copy; -alias c_gst_memory_get_sizes gst_memory_get_sizes; -alias c_gst_memory_init gst_memory_init; -alias c_gst_memory_is_span gst_memory_is_span; -alias c_gst_memory_is_type gst_memory_is_type; -alias c_gst_memory_make_mapped gst_memory_make_mapped; -alias c_gst_memory_map gst_memory_map; -alias c_gst_memory_resize gst_memory_resize; -alias c_gst_memory_share gst_memory_share; -alias c_gst_memory_unmap gst_memory_unmap; - -// gstreamer.Message - -alias c_gst_message_get_type gst_message_get_type; -alias c_gst_message_new_application gst_message_new_application; -alias c_gst_message_new_async_done gst_message_new_async_done; -alias c_gst_message_new_async_start gst_message_new_async_start; -alias c_gst_message_new_buffering gst_message_new_buffering; -alias c_gst_message_new_clock_lost gst_message_new_clock_lost; -alias c_gst_message_new_clock_provide gst_message_new_clock_provide; -alias c_gst_message_new_custom gst_message_new_custom; -alias c_gst_message_new_device_added gst_message_new_device_added; -alias c_gst_message_new_device_changed gst_message_new_device_changed; -alias c_gst_message_new_device_removed gst_message_new_device_removed; -alias c_gst_message_new_duration_changed gst_message_new_duration_changed; -alias c_gst_message_new_element gst_message_new_element; -alias c_gst_message_new_eos gst_message_new_eos; -alias c_gst_message_new_error gst_message_new_error; -alias c_gst_message_new_error_with_details gst_message_new_error_with_details; -alias c_gst_message_new_have_context gst_message_new_have_context; -alias c_gst_message_new_info gst_message_new_info; -alias c_gst_message_new_info_with_details gst_message_new_info_with_details; -alias c_gst_message_new_instant_rate_request gst_message_new_instant_rate_request; -alias c_gst_message_new_latency gst_message_new_latency; -alias c_gst_message_new_need_context gst_message_new_need_context; -alias c_gst_message_new_new_clock gst_message_new_new_clock; -alias c_gst_message_new_progress gst_message_new_progress; -alias c_gst_message_new_property_notify gst_message_new_property_notify; -alias c_gst_message_new_qos gst_message_new_qos; -alias c_gst_message_new_redirect gst_message_new_redirect; -alias c_gst_message_new_request_state gst_message_new_request_state; -alias c_gst_message_new_reset_time gst_message_new_reset_time; -alias c_gst_message_new_segment_done gst_message_new_segment_done; -alias c_gst_message_new_segment_start gst_message_new_segment_start; -alias c_gst_message_new_state_changed gst_message_new_state_changed; -alias c_gst_message_new_state_dirty gst_message_new_state_dirty; -alias c_gst_message_new_step_done gst_message_new_step_done; -alias c_gst_message_new_step_start gst_message_new_step_start; -alias c_gst_message_new_stream_collection gst_message_new_stream_collection; -alias c_gst_message_new_stream_start gst_message_new_stream_start; -alias c_gst_message_new_stream_status gst_message_new_stream_status; -alias c_gst_message_new_streams_selected gst_message_new_streams_selected; -alias c_gst_message_new_structure_change gst_message_new_structure_change; -alias c_gst_message_new_tag gst_message_new_tag; -alias c_gst_message_new_toc gst_message_new_toc; -alias c_gst_message_new_warning gst_message_new_warning; -alias c_gst_message_new_warning_with_details gst_message_new_warning_with_details; -alias c_gst_message_add_redirect_entry gst_message_add_redirect_entry; -alias c_gst_message_copy gst_message_copy; -alias c_gst_message_get_num_redirect_entries gst_message_get_num_redirect_entries; -alias c_gst_message_get_seqnum gst_message_get_seqnum; -alias c_gst_message_get_stream_status_object gst_message_get_stream_status_object; -alias c_gst_message_get_structure gst_message_get_structure; -alias c_gst_message_has_name gst_message_has_name; -alias c_gst_message_parse_async_done gst_message_parse_async_done; -alias c_gst_message_parse_buffering gst_message_parse_buffering; -alias c_gst_message_parse_buffering_stats gst_message_parse_buffering_stats; -alias c_gst_message_parse_clock_lost gst_message_parse_clock_lost; -alias c_gst_message_parse_clock_provide gst_message_parse_clock_provide; -alias c_gst_message_parse_context_type gst_message_parse_context_type; -alias c_gst_message_parse_device_added gst_message_parse_device_added; -alias c_gst_message_parse_device_changed gst_message_parse_device_changed; -alias c_gst_message_parse_device_removed gst_message_parse_device_removed; -alias c_gst_message_parse_error gst_message_parse_error; -alias c_gst_message_parse_error_details gst_message_parse_error_details; -alias c_gst_message_parse_group_id gst_message_parse_group_id; -alias c_gst_message_parse_have_context gst_message_parse_have_context; -alias c_gst_message_parse_info gst_message_parse_info; -alias c_gst_message_parse_info_details gst_message_parse_info_details; -alias c_gst_message_parse_instant_rate_request gst_message_parse_instant_rate_request; -alias c_gst_message_parse_new_clock gst_message_parse_new_clock; -alias c_gst_message_parse_progress gst_message_parse_progress; -alias c_gst_message_parse_property_notify gst_message_parse_property_notify; -alias c_gst_message_parse_qos gst_message_parse_qos; -alias c_gst_message_parse_qos_stats gst_message_parse_qos_stats; -alias c_gst_message_parse_qos_values gst_message_parse_qos_values; -alias c_gst_message_parse_redirect_entry gst_message_parse_redirect_entry; -alias c_gst_message_parse_request_state gst_message_parse_request_state; -alias c_gst_message_parse_reset_time gst_message_parse_reset_time; -alias c_gst_message_parse_segment_done gst_message_parse_segment_done; -alias c_gst_message_parse_segment_start gst_message_parse_segment_start; -alias c_gst_message_parse_state_changed gst_message_parse_state_changed; -alias c_gst_message_parse_step_done gst_message_parse_step_done; -alias c_gst_message_parse_step_start gst_message_parse_step_start; -alias c_gst_message_parse_stream_collection gst_message_parse_stream_collection; -alias c_gst_message_parse_stream_status gst_message_parse_stream_status; -alias c_gst_message_parse_streams_selected gst_message_parse_streams_selected; -alias c_gst_message_parse_structure_change gst_message_parse_structure_change; -alias c_gst_message_parse_tag gst_message_parse_tag; -alias c_gst_message_parse_toc gst_message_parse_toc; -alias c_gst_message_parse_warning gst_message_parse_warning; -alias c_gst_message_parse_warning_details gst_message_parse_warning_details; -alias c_gst_message_set_buffering_stats gst_message_set_buffering_stats; -alias c_gst_message_set_group_id gst_message_set_group_id; -alias c_gst_message_set_qos_stats gst_message_set_qos_stats; -alias c_gst_message_set_qos_values gst_message_set_qos_values; -alias c_gst_message_set_seqnum gst_message_set_seqnum; -alias c_gst_message_set_stream_status_object gst_message_set_stream_status_object; -alias c_gst_message_streams_selected_add gst_message_streams_selected_add; -alias c_gst_message_streams_selected_get_size gst_message_streams_selected_get_size; -alias c_gst_message_streams_selected_get_stream gst_message_streams_selected_get_stream; -alias c_gst_message_writable_structure gst_message_writable_structure; -alias c_gst_message_replace gst_message_replace; -alias c_gst_message_type_get_name gst_message_type_get_name; -alias c_gst_message_type_to_quark gst_message_type_to_quark; - -// gstreamer.Meta - -alias c_gst_meta_compare_seqnum gst_meta_compare_seqnum; -alias c_gst_meta_get_seqnum gst_meta_get_seqnum; -alias c_gst_meta_api_type_get_tags gst_meta_api_type_get_tags; -alias c_gst_meta_api_type_has_tag gst_meta_api_type_has_tag; -alias c_gst_meta_api_type_register gst_meta_api_type_register; -alias c_gst_meta_get_info gst_meta_get_info; -alias c_gst_meta_register gst_meta_register; - -// gstreamer.MiniObject - -alias c_gst_mini_object_add_parent gst_mini_object_add_parent; -alias c_gst_mini_object_copy gst_mini_object_copy; -alias c_gst_mini_object_get_qdata gst_mini_object_get_qdata; -alias c_gst_mini_object_init gst_mini_object_init; -alias c_gst_mini_object_is_writable gst_mini_object_is_writable; -alias c_gst_mini_object_lock gst_mini_object_lock; -alias c_gst_mini_object_make_writable gst_mini_object_make_writable; -alias c_gst_mini_object_ref gst_mini_object_ref; -alias c_gst_mini_object_remove_parent gst_mini_object_remove_parent; -alias c_gst_mini_object_set_qdata gst_mini_object_set_qdata; -alias c_gst_mini_object_steal_qdata gst_mini_object_steal_qdata; -alias c_gst_mini_object_unlock gst_mini_object_unlock; -alias c_gst_mini_object_unref gst_mini_object_unref; -alias c_gst_mini_object_weak_ref gst_mini_object_weak_ref; -alias c_gst_mini_object_weak_unref gst_mini_object_weak_unref; -alias c_gst_mini_object_replace gst_mini_object_replace; -alias c_gst_mini_object_steal gst_mini_object_steal; -alias c_gst_mini_object_take gst_mini_object_take; - -// gstreamer.ObjectGst - -alias c_gst_object_get_type gst_object_get_type; -alias c_gst_object_check_uniqueness gst_object_check_uniqueness; -alias c_gst_object_default_deep_notify gst_object_default_deep_notify; -alias c_gst_object_ref_sink gst_object_ref_sink; -alias c_gst_object_replace gst_object_replace; -alias c_gst_object_add_control_binding gst_object_add_control_binding; -alias c_gst_object_default_error gst_object_default_error; -alias c_gst_object_get_control_binding gst_object_get_control_binding; -alias c_gst_object_get_control_rate gst_object_get_control_rate; -alias c_gst_object_get_g_value_array gst_object_get_g_value_array; -alias c_gst_object_get_name gst_object_get_name; -alias c_gst_object_get_parent gst_object_get_parent; -alias c_gst_object_get_path_string gst_object_get_path_string; -alias c_gst_object_get_value gst_object_get_value; -alias c_gst_object_get_value_array gst_object_get_value_array; -alias c_gst_object_has_active_control_bindings gst_object_has_active_control_bindings; -alias c_gst_object_has_ancestor gst_object_has_ancestor; -alias c_gst_object_has_as_ancestor gst_object_has_as_ancestor; -alias c_gst_object_has_as_parent gst_object_has_as_parent; -alias c_gst_object_ref gst_object_ref; -alias c_gst_object_remove_control_binding gst_object_remove_control_binding; -alias c_gst_object_set_control_binding_disabled gst_object_set_control_binding_disabled; -alias c_gst_object_set_control_bindings_disabled gst_object_set_control_bindings_disabled; -alias c_gst_object_set_control_rate gst_object_set_control_rate; -alias c_gst_object_set_name gst_object_set_name; -alias c_gst_object_set_parent gst_object_set_parent; -alias c_gst_object_suggest_next_sync gst_object_suggest_next_sync; -alias c_gst_object_sync_values gst_object_sync_values; -alias c_gst_object_unparent gst_object_unparent; -alias c_gst_object_unref gst_object_unref; - -// gstreamer.Pad - -alias c_gst_pad_get_type gst_pad_get_type; -alias c_gst_pad_new gst_pad_new; -alias c_gst_pad_new_from_static_template gst_pad_new_from_static_template; -alias c_gst_pad_new_from_template gst_pad_new_from_template; -alias c_gst_pad_link_get_name gst_pad_link_get_name; -alias c_gst_pad_activate_mode gst_pad_activate_mode; -alias c_gst_pad_add_probe gst_pad_add_probe; -alias c_gst_pad_can_link gst_pad_can_link; -alias c_gst_pad_chain gst_pad_chain; -alias c_gst_pad_chain_list gst_pad_chain_list; -alias c_gst_pad_check_reconfigure gst_pad_check_reconfigure; -alias c_gst_pad_create_stream_id gst_pad_create_stream_id; -alias c_gst_pad_create_stream_id_printf gst_pad_create_stream_id_printf; -alias c_gst_pad_create_stream_id_printf_valist gst_pad_create_stream_id_printf_valist; -alias c_gst_pad_event_default gst_pad_event_default; -alias c_gst_pad_forward gst_pad_forward; -alias c_gst_pad_get_allowed_caps gst_pad_get_allowed_caps; -alias c_gst_pad_get_current_caps gst_pad_get_current_caps; -alias c_gst_pad_get_direction gst_pad_get_direction; -alias c_gst_pad_get_element_private gst_pad_get_element_private; -alias c_gst_pad_get_last_flow_return gst_pad_get_last_flow_return; -alias c_gst_pad_get_offset gst_pad_get_offset; -alias c_gst_pad_get_pad_template gst_pad_get_pad_template; -alias c_gst_pad_get_pad_template_caps gst_pad_get_pad_template_caps; -alias c_gst_pad_get_parent_element gst_pad_get_parent_element; -alias c_gst_pad_get_peer gst_pad_get_peer; -alias c_gst_pad_get_range gst_pad_get_range; -alias c_gst_pad_get_single_internal_link gst_pad_get_single_internal_link; -alias c_gst_pad_get_sticky_event gst_pad_get_sticky_event; -alias c_gst_pad_get_stream gst_pad_get_stream; -alias c_gst_pad_get_stream_id gst_pad_get_stream_id; -alias c_gst_pad_get_task_state gst_pad_get_task_state; -alias c_gst_pad_has_current_caps gst_pad_has_current_caps; -alias c_gst_pad_is_active gst_pad_is_active; -alias c_gst_pad_is_blocked gst_pad_is_blocked; -alias c_gst_pad_is_blocking gst_pad_is_blocking; -alias c_gst_pad_is_linked gst_pad_is_linked; -alias c_gst_pad_iterate_internal_links gst_pad_iterate_internal_links; -alias c_gst_pad_iterate_internal_links_default gst_pad_iterate_internal_links_default; -alias c_gst_pad_link gst_pad_link; -alias c_gst_pad_link_full gst_pad_link_full; -alias c_gst_pad_link_maybe_ghosting gst_pad_link_maybe_ghosting; -alias c_gst_pad_link_maybe_ghosting_full gst_pad_link_maybe_ghosting_full; -alias c_gst_pad_mark_reconfigure gst_pad_mark_reconfigure; -alias c_gst_pad_needs_reconfigure gst_pad_needs_reconfigure; -alias c_gst_pad_pause_task gst_pad_pause_task; -alias c_gst_pad_peer_query gst_pad_peer_query; -alias c_gst_pad_peer_query_accept_caps gst_pad_peer_query_accept_caps; -alias c_gst_pad_peer_query_caps gst_pad_peer_query_caps; -alias c_gst_pad_peer_query_convert gst_pad_peer_query_convert; -alias c_gst_pad_peer_query_duration gst_pad_peer_query_duration; -alias c_gst_pad_peer_query_position gst_pad_peer_query_position; -alias c_gst_pad_proxy_query_accept_caps gst_pad_proxy_query_accept_caps; -alias c_gst_pad_proxy_query_caps gst_pad_proxy_query_caps; -alias c_gst_pad_pull_range gst_pad_pull_range; -alias c_gst_pad_push gst_pad_push; -alias c_gst_pad_push_event gst_pad_push_event; -alias c_gst_pad_push_list gst_pad_push_list; -alias c_gst_pad_query gst_pad_query; -alias c_gst_pad_query_accept_caps gst_pad_query_accept_caps; -alias c_gst_pad_query_caps gst_pad_query_caps; -alias c_gst_pad_query_convert gst_pad_query_convert; -alias c_gst_pad_query_default gst_pad_query_default; -alias c_gst_pad_query_duration gst_pad_query_duration; -alias c_gst_pad_query_position gst_pad_query_position; -alias c_gst_pad_remove_probe gst_pad_remove_probe; -alias c_gst_pad_send_event gst_pad_send_event; -alias c_gst_pad_set_activate_function_full gst_pad_set_activate_function_full; -alias c_gst_pad_set_activatemode_function_full gst_pad_set_activatemode_function_full; -alias c_gst_pad_set_active gst_pad_set_active; -alias c_gst_pad_set_chain_function_full gst_pad_set_chain_function_full; -alias c_gst_pad_set_chain_list_function_full gst_pad_set_chain_list_function_full; -alias c_gst_pad_set_element_private gst_pad_set_element_private; -alias c_gst_pad_set_event_full_function_full gst_pad_set_event_full_function_full; -alias c_gst_pad_set_event_function_full gst_pad_set_event_function_full; -alias c_gst_pad_set_getrange_function_full gst_pad_set_getrange_function_full; -alias c_gst_pad_set_iterate_internal_links_function_full gst_pad_set_iterate_internal_links_function_full; -alias c_gst_pad_set_link_function_full gst_pad_set_link_function_full; -alias c_gst_pad_set_offset gst_pad_set_offset; -alias c_gst_pad_set_query_function_full gst_pad_set_query_function_full; -alias c_gst_pad_set_unlink_function_full gst_pad_set_unlink_function_full; -alias c_gst_pad_start_task gst_pad_start_task; -alias c_gst_pad_sticky_events_foreach gst_pad_sticky_events_foreach; -alias c_gst_pad_stop_task gst_pad_stop_task; -alias c_gst_pad_store_sticky_event gst_pad_store_sticky_event; -alias c_gst_pad_unlink gst_pad_unlink; -alias c_gst_pad_use_fixed_caps gst_pad_use_fixed_caps; -alias c_gst_flow_get_name gst_flow_get_name; -alias c_gst_flow_to_quark gst_flow_to_quark; -alias c_gst_pad_mode_get_name gst_pad_mode_get_name; - -// gstreamer.PadProbeInfo - -alias c_gst_pad_probe_info_get_buffer gst_pad_probe_info_get_buffer; -alias c_gst_pad_probe_info_get_buffer_list gst_pad_probe_info_get_buffer_list; -alias c_gst_pad_probe_info_get_event gst_pad_probe_info_get_event; -alias c_gst_pad_probe_info_get_query gst_pad_probe_info_get_query; - -// gstreamer.PadTemplate - -alias c_gst_pad_template_get_type gst_pad_template_get_type; -alias c_gst_pad_template_new gst_pad_template_new; -alias c_gst_pad_template_new_from_static_pad_template_with_gtype gst_pad_template_new_from_static_pad_template_with_gtype; -alias c_gst_pad_template_new_with_gtype gst_pad_template_new_with_gtype; -alias c_gst_pad_template_get_caps gst_pad_template_get_caps; -alias c_gst_pad_template_get_documentation_caps gst_pad_template_get_documentation_caps; -alias c_gst_pad_template_pad_created gst_pad_template_pad_created; -alias c_gst_pad_template_set_documentation_caps gst_pad_template_set_documentation_caps; - -// gstreamer.ParamArray - -alias c_gst_param_spec_array_get_type gst_param_spec_array_get_type; - -// gstreamer.ParamFraction - -alias c_gst_param_spec_fraction_get_type gst_param_spec_fraction_get_type; - -// gstreamer.ParamSpecFraction - -alias c_gst_param_spec_fraction gst_param_spec_fraction; - -// gstreamer.ParentBufferMeta - -alias c_gst_parent_buffer_meta_get_info gst_parent_buffer_meta_get_info; -alias c_gst_parent_buffer_meta_api_get_type gst_parent_buffer_meta_api_get_type; - -// gstreamer.ParseContext - -alias c_gst_parse_context_get_type gst_parse_context_get_type; -alias c_gst_parse_context_new gst_parse_context_new; -alias c_gst_parse_context_copy gst_parse_context_copy; -alias c_gst_parse_context_free gst_parse_context_free; -alias c_gst_parse_context_get_missing_elements gst_parse_context_get_missing_elements; - -// gstreamer.Pipeline - -alias c_gst_pipeline_get_type gst_pipeline_get_type; -alias c_gst_pipeline_new gst_pipeline_new; -alias c_gst_pipeline_auto_clock gst_pipeline_auto_clock; -alias c_gst_pipeline_get_auto_flush_bus gst_pipeline_get_auto_flush_bus; -alias c_gst_pipeline_get_bus gst_pipeline_get_bus; -alias c_gst_pipeline_get_clock gst_pipeline_get_clock; -alias c_gst_pipeline_get_delay gst_pipeline_get_delay; -alias c_gst_pipeline_get_latency gst_pipeline_get_latency; -alias c_gst_pipeline_get_pipeline_clock gst_pipeline_get_pipeline_clock; -alias c_gst_pipeline_set_auto_flush_bus gst_pipeline_set_auto_flush_bus; -alias c_gst_pipeline_set_clock gst_pipeline_set_clock; -alias c_gst_pipeline_set_delay gst_pipeline_set_delay; -alias c_gst_pipeline_set_latency gst_pipeline_set_latency; -alias c_gst_pipeline_use_clock gst_pipeline_use_clock; - -// gstreamer.Plugin - -alias c_gst_plugin_get_type gst_plugin_get_type; -alias c_gst_plugin_list_free gst_plugin_list_free; -alias c_gst_plugin_load_by_name gst_plugin_load_by_name; -alias c_gst_plugin_load_file gst_plugin_load_file; -alias c_gst_plugin_register_static gst_plugin_register_static; -alias c_gst_plugin_register_static_full gst_plugin_register_static_full; -alias c_gst_plugin_add_dependency gst_plugin_add_dependency; -alias c_gst_plugin_add_dependency_simple gst_plugin_add_dependency_simple; -alias c_gst_plugin_get_cache_data gst_plugin_get_cache_data; -alias c_gst_plugin_get_description gst_plugin_get_description; -alias c_gst_plugin_get_filename gst_plugin_get_filename; -alias c_gst_plugin_get_license gst_plugin_get_license; -alias c_gst_plugin_get_name gst_plugin_get_name; -alias c_gst_plugin_get_origin gst_plugin_get_origin; -alias c_gst_plugin_get_package gst_plugin_get_package; -alias c_gst_plugin_get_release_date_string gst_plugin_get_release_date_string; -alias c_gst_plugin_get_source gst_plugin_get_source; -alias c_gst_plugin_get_version gst_plugin_get_version; -alias c_gst_plugin_is_loaded gst_plugin_is_loaded; -alias c_gst_plugin_load gst_plugin_load; -alias c_gst_plugin_set_cache_data gst_plugin_set_cache_data; -alias c_gst_plugin_error_quark gst_plugin_error_quark; - -// gstreamer.PluginFeature - -alias c_gst_plugin_feature_get_type gst_plugin_feature_get_type; -alias c_gst_plugin_feature_list_copy gst_plugin_feature_list_copy; -alias c_gst_plugin_feature_list_debug gst_plugin_feature_list_debug; -alias c_gst_plugin_feature_list_free gst_plugin_feature_list_free; -alias c_gst_plugin_feature_rank_compare_func gst_plugin_feature_rank_compare_func; -alias c_gst_plugin_feature_check_version gst_plugin_feature_check_version; -alias c_gst_plugin_feature_get_plugin gst_plugin_feature_get_plugin; -alias c_gst_plugin_feature_get_plugin_name gst_plugin_feature_get_plugin_name; -alias c_gst_plugin_feature_get_rank gst_plugin_feature_get_rank; -alias c_gst_plugin_feature_load gst_plugin_feature_load; -alias c_gst_plugin_feature_set_rank gst_plugin_feature_set_rank; - -// gstreamer.Poll - -alias c_gst_poll_add_fd gst_poll_add_fd; -alias c_gst_poll_fd_can_read gst_poll_fd_can_read; -alias c_gst_poll_fd_can_write gst_poll_fd_can_write; -alias c_gst_poll_fd_ctl_pri gst_poll_fd_ctl_pri; -alias c_gst_poll_fd_ctl_read gst_poll_fd_ctl_read; -alias c_gst_poll_fd_ctl_write gst_poll_fd_ctl_write; -alias c_gst_poll_fd_has_closed gst_poll_fd_has_closed; -alias c_gst_poll_fd_has_error gst_poll_fd_has_error; -alias c_gst_poll_fd_has_pri gst_poll_fd_has_pri; -alias c_gst_poll_fd_ignored gst_poll_fd_ignored; -alias c_gst_poll_free gst_poll_free; -alias c_gst_poll_get_read_gpollfd gst_poll_get_read_gpollfd; -alias c_gst_poll_read_control gst_poll_read_control; -alias c_gst_poll_remove_fd gst_poll_remove_fd; -alias c_gst_poll_restart gst_poll_restart; -alias c_gst_poll_set_controllable gst_poll_set_controllable; -alias c_gst_poll_set_flushing gst_poll_set_flushing; -alias c_gst_poll_wait gst_poll_wait; -alias c_gst_poll_write_control gst_poll_write_control; -alias c_gst_poll_new gst_poll_new; -alias c_gst_poll_new_timer gst_poll_new_timer; - -// gstreamer.PollFD - -alias c_gst_poll_fd_init gst_poll_fd_init; - -// gstreamer.Preset - -alias c_gst_preset_get_type gst_preset_get_type; -alias c_gst_preset_get_app_dir gst_preset_get_app_dir; -alias c_gst_preset_set_app_dir gst_preset_set_app_dir; -alias c_gst_preset_delete_preset gst_preset_delete_preset; -alias c_gst_preset_get_meta gst_preset_get_meta; -alias c_gst_preset_get_preset_names gst_preset_get_preset_names; -alias c_gst_preset_get_property_names gst_preset_get_property_names; -alias c_gst_preset_is_editable gst_preset_is_editable; -alias c_gst_preset_load_preset gst_preset_load_preset; -alias c_gst_preset_rename_preset gst_preset_rename_preset; -alias c_gst_preset_save_preset gst_preset_save_preset; -alias c_gst_preset_set_meta gst_preset_set_meta; - -// gstreamer.Promise - -alias c_gst_promise_get_type gst_promise_get_type; -alias c_gst_promise_new gst_promise_new; -alias c_gst_promise_new_with_change_func gst_promise_new_with_change_func; -alias c_gst_promise_expire gst_promise_expire; -alias c_gst_promise_get_reply gst_promise_get_reply; -alias c_gst_promise_interrupt gst_promise_interrupt; -alias c_gst_promise_reply gst_promise_reply; -alias c_gst_promise_wait gst_promise_wait; - -// gstreamer.ProtectionMeta - -alias c_gst_protection_meta_get_info gst_protection_meta_get_info; -alias c_gst_protection_meta_api_get_type gst_protection_meta_api_get_type; -alias c_gst_protection_select_system gst_protection_select_system; - -// gstreamer.ProxyPad - -alias c_gst_proxy_pad_get_type gst_proxy_pad_get_type; -alias c_gst_proxy_pad_chain_default gst_proxy_pad_chain_default; -alias c_gst_proxy_pad_chain_list_default gst_proxy_pad_chain_list_default; -alias c_gst_proxy_pad_getrange_default gst_proxy_pad_getrange_default; -alias c_gst_proxy_pad_iterate_internal_links_default gst_proxy_pad_iterate_internal_links_default; -alias c_gst_proxy_pad_get_internal gst_proxy_pad_get_internal; - -// gstreamer.Query - -alias c_gst_query_get_type gst_query_get_type; -alias c_gst_query_new_accept_caps gst_query_new_accept_caps; -alias c_gst_query_new_allocation gst_query_new_allocation; -alias c_gst_query_new_bitrate gst_query_new_bitrate; -alias c_gst_query_new_buffering gst_query_new_buffering; -alias c_gst_query_new_caps gst_query_new_caps; -alias c_gst_query_new_context gst_query_new_context; -alias c_gst_query_new_convert gst_query_new_convert; -alias c_gst_query_new_custom gst_query_new_custom; -alias c_gst_query_new_drain gst_query_new_drain; -alias c_gst_query_new_duration gst_query_new_duration; -alias c_gst_query_new_formats gst_query_new_formats; -alias c_gst_query_new_latency gst_query_new_latency; -alias c_gst_query_new_position gst_query_new_position; -alias c_gst_query_new_scheduling gst_query_new_scheduling; -alias c_gst_query_new_seeking gst_query_new_seeking; -alias c_gst_query_new_segment gst_query_new_segment; -alias c_gst_query_new_uri gst_query_new_uri; -alias c_gst_query_add_allocation_meta gst_query_add_allocation_meta; -alias c_gst_query_add_allocation_param gst_query_add_allocation_param; -alias c_gst_query_add_allocation_pool gst_query_add_allocation_pool; -alias c_gst_query_add_buffering_range gst_query_add_buffering_range; -alias c_gst_query_add_scheduling_mode gst_query_add_scheduling_mode; -alias c_gst_query_find_allocation_meta gst_query_find_allocation_meta; -alias c_gst_query_get_n_allocation_metas gst_query_get_n_allocation_metas; -alias c_gst_query_get_n_allocation_params gst_query_get_n_allocation_params; -alias c_gst_query_get_n_allocation_pools gst_query_get_n_allocation_pools; -alias c_gst_query_get_n_buffering_ranges gst_query_get_n_buffering_ranges; -alias c_gst_query_get_n_scheduling_modes gst_query_get_n_scheduling_modes; -alias c_gst_query_get_structure gst_query_get_structure; -alias c_gst_query_has_scheduling_mode gst_query_has_scheduling_mode; -alias c_gst_query_has_scheduling_mode_with_flags gst_query_has_scheduling_mode_with_flags; -alias c_gst_query_parse_accept_caps gst_query_parse_accept_caps; -alias c_gst_query_parse_accept_caps_result gst_query_parse_accept_caps_result; -alias c_gst_query_parse_allocation gst_query_parse_allocation; -alias c_gst_query_parse_bitrate gst_query_parse_bitrate; -alias c_gst_query_parse_buffering_percent gst_query_parse_buffering_percent; -alias c_gst_query_parse_buffering_range gst_query_parse_buffering_range; -alias c_gst_query_parse_buffering_stats gst_query_parse_buffering_stats; -alias c_gst_query_parse_caps gst_query_parse_caps; -alias c_gst_query_parse_caps_result gst_query_parse_caps_result; -alias c_gst_query_parse_context gst_query_parse_context; -alias c_gst_query_parse_context_type gst_query_parse_context_type; -alias c_gst_query_parse_convert gst_query_parse_convert; -alias c_gst_query_parse_duration gst_query_parse_duration; -alias c_gst_query_parse_latency gst_query_parse_latency; -alias c_gst_query_parse_n_formats gst_query_parse_n_formats; -alias c_gst_query_parse_nth_allocation_meta gst_query_parse_nth_allocation_meta; -alias c_gst_query_parse_nth_allocation_param gst_query_parse_nth_allocation_param; -alias c_gst_query_parse_nth_allocation_pool gst_query_parse_nth_allocation_pool; -alias c_gst_query_parse_nth_buffering_range gst_query_parse_nth_buffering_range; -alias c_gst_query_parse_nth_format gst_query_parse_nth_format; -alias c_gst_query_parse_nth_scheduling_mode gst_query_parse_nth_scheduling_mode; -alias c_gst_query_parse_position gst_query_parse_position; -alias c_gst_query_parse_scheduling gst_query_parse_scheduling; -alias c_gst_query_parse_seeking gst_query_parse_seeking; -alias c_gst_query_parse_segment gst_query_parse_segment; -alias c_gst_query_parse_uri gst_query_parse_uri; -alias c_gst_query_parse_uri_redirection gst_query_parse_uri_redirection; -alias c_gst_query_parse_uri_redirection_permanent gst_query_parse_uri_redirection_permanent; -alias c_gst_query_remove_nth_allocation_meta gst_query_remove_nth_allocation_meta; -alias c_gst_query_remove_nth_allocation_param gst_query_remove_nth_allocation_param; -alias c_gst_query_remove_nth_allocation_pool gst_query_remove_nth_allocation_pool; -alias c_gst_query_set_accept_caps_result gst_query_set_accept_caps_result; -alias c_gst_query_set_bitrate gst_query_set_bitrate; -alias c_gst_query_set_buffering_percent gst_query_set_buffering_percent; -alias c_gst_query_set_buffering_range gst_query_set_buffering_range; -alias c_gst_query_set_buffering_stats gst_query_set_buffering_stats; -alias c_gst_query_set_caps_result gst_query_set_caps_result; -alias c_gst_query_set_context gst_query_set_context; -alias c_gst_query_set_convert gst_query_set_convert; -alias c_gst_query_set_duration gst_query_set_duration; -alias c_gst_query_set_formats gst_query_set_formats; -alias c_gst_query_set_formatsv gst_query_set_formatsv; -alias c_gst_query_set_latency gst_query_set_latency; -alias c_gst_query_set_nth_allocation_param gst_query_set_nth_allocation_param; -alias c_gst_query_set_nth_allocation_pool gst_query_set_nth_allocation_pool; -alias c_gst_query_set_position gst_query_set_position; -alias c_gst_query_set_scheduling gst_query_set_scheduling; -alias c_gst_query_set_seeking gst_query_set_seeking; -alias c_gst_query_set_segment gst_query_set_segment; -alias c_gst_query_set_uri gst_query_set_uri; -alias c_gst_query_set_uri_redirection gst_query_set_uri_redirection; -alias c_gst_query_set_uri_redirection_permanent gst_query_set_uri_redirection_permanent; -alias c_gst_query_writable_structure gst_query_writable_structure; -alias c_gst_query_type_get_flags gst_query_type_get_flags; -alias c_gst_query_type_get_name gst_query_type_get_name; -alias c_gst_query_type_to_quark gst_query_type_to_quark; - -// gstreamer.ReferenceTimestampMeta - -alias c_gst_reference_timestamp_meta_get_info gst_reference_timestamp_meta_get_info; - -// gstreamer.Registry - -alias c_gst_registry_get_type gst_registry_get_type; -alias c_gst_registry_fork_is_enabled gst_registry_fork_is_enabled; -alias c_gst_registry_fork_set_enabled gst_registry_fork_set_enabled; -alias c_gst_registry_get gst_registry_get; -alias c_gst_registry_add_feature gst_registry_add_feature; -alias c_gst_registry_add_plugin gst_registry_add_plugin; -alias c_gst_registry_check_feature_version gst_registry_check_feature_version; -alias c_gst_registry_feature_filter gst_registry_feature_filter; -alias c_gst_registry_find_feature gst_registry_find_feature; -alias c_gst_registry_find_plugin gst_registry_find_plugin; -alias c_gst_registry_get_feature_list gst_registry_get_feature_list; -alias c_gst_registry_get_feature_list_by_plugin gst_registry_get_feature_list_by_plugin; -alias c_gst_registry_get_feature_list_cookie gst_registry_get_feature_list_cookie; -alias c_gst_registry_get_plugin_list gst_registry_get_plugin_list; -alias c_gst_registry_lookup gst_registry_lookup; -alias c_gst_registry_lookup_feature gst_registry_lookup_feature; -alias c_gst_registry_plugin_filter gst_registry_plugin_filter; -alias c_gst_registry_remove_feature gst_registry_remove_feature; -alias c_gst_registry_remove_plugin gst_registry_remove_plugin; -alias c_gst_registry_scan_path gst_registry_scan_path; - -// gstreamer.Sample - -alias c_gst_sample_get_type gst_sample_get_type; -alias c_gst_sample_new gst_sample_new; -alias c_gst_sample_get_buffer gst_sample_get_buffer; -alias c_gst_sample_get_buffer_list gst_sample_get_buffer_list; -alias c_gst_sample_get_caps gst_sample_get_caps; -alias c_gst_sample_get_info gst_sample_get_info; -alias c_gst_sample_get_segment gst_sample_get_segment; -alias c_gst_sample_set_buffer gst_sample_set_buffer; -alias c_gst_sample_set_buffer_list gst_sample_set_buffer_list; -alias c_gst_sample_set_caps gst_sample_set_caps; -alias c_gst_sample_set_info gst_sample_set_info; -alias c_gst_sample_set_segment gst_sample_set_segment; - -// gstreamer.Segment - -alias c_gst_segment_get_type gst_segment_get_type; -alias c_gst_segment_new gst_segment_new; -alias c_gst_segment_clip gst_segment_clip; -alias c_gst_segment_copy gst_segment_copy; -alias c_gst_segment_copy_into gst_segment_copy_into; -alias c_gst_segment_do_seek gst_segment_do_seek; -alias c_gst_segment_free gst_segment_free; -alias c_gst_segment_init gst_segment_init; -alias c_gst_segment_is_equal gst_segment_is_equal; -alias c_gst_segment_offset_running_time gst_segment_offset_running_time; -alias c_gst_segment_position_from_running_time gst_segment_position_from_running_time; -alias c_gst_segment_position_from_running_time_full gst_segment_position_from_running_time_full; -alias c_gst_segment_position_from_stream_time gst_segment_position_from_stream_time; -alias c_gst_segment_position_from_stream_time_full gst_segment_position_from_stream_time_full; -alias c_gst_segment_set_running_time gst_segment_set_running_time; -alias c_gst_segment_to_position gst_segment_to_position; -alias c_gst_segment_to_running_time gst_segment_to_running_time; -alias c_gst_segment_to_running_time_full gst_segment_to_running_time_full; -alias c_gst_segment_to_stream_time gst_segment_to_stream_time; -alias c_gst_segment_to_stream_time_full gst_segment_to_stream_time_full; - -// gstreamer.StaticCaps - -alias c_gst_static_caps_cleanup gst_static_caps_cleanup; -alias c_gst_static_caps_get gst_static_caps_get; - -// gstreamer.StaticPadTemplate - -alias c_gst_static_pad_template_get gst_static_pad_template_get; -alias c_gst_static_pad_template_get_caps gst_static_pad_template_get_caps; - -// gstreamer.Stream - -alias c_gst_stream_get_type gst_stream_get_type; -alias c_gst_stream_new gst_stream_new; -alias c_gst_stream_get_caps gst_stream_get_caps; -alias c_gst_stream_get_stream_flags gst_stream_get_stream_flags; -alias c_gst_stream_get_stream_id gst_stream_get_stream_id; -alias c_gst_stream_get_stream_type gst_stream_get_stream_type; -alias c_gst_stream_get_tags gst_stream_get_tags; -alias c_gst_stream_set_caps gst_stream_set_caps; -alias c_gst_stream_set_stream_flags gst_stream_set_stream_flags; -alias c_gst_stream_set_stream_type gst_stream_set_stream_type; -alias c_gst_stream_set_tags gst_stream_set_tags; - -// gstreamer.StreamCollection - -alias c_gst_stream_collection_get_type gst_stream_collection_get_type; -alias c_gst_stream_collection_new gst_stream_collection_new; -alias c_gst_stream_collection_add_stream gst_stream_collection_add_stream; -alias c_gst_stream_collection_get_size gst_stream_collection_get_size; -alias c_gst_stream_collection_get_stream gst_stream_collection_get_stream; -alias c_gst_stream_collection_get_upstream_id gst_stream_collection_get_upstream_id; - -// gstreamer.Structure - -alias c_gst_structure_get_type gst_structure_get_type; -alias c_gst_structure_from_string gst_structure_from_string; -alias c_gst_structure_new gst_structure_new; -alias c_gst_structure_new_empty gst_structure_new_empty; -alias c_gst_structure_new_from_string gst_structure_new_from_string; -alias c_gst_structure_new_id gst_structure_new_id; -alias c_gst_structure_new_id_empty gst_structure_new_id_empty; -alias c_gst_structure_new_valist gst_structure_new_valist; -alias c_gst_structure_can_intersect gst_structure_can_intersect; -alias c_gst_structure_copy gst_structure_copy; -alias c_gst_structure_filter_and_map_in_place gst_structure_filter_and_map_in_place; -alias c_gst_structure_fixate gst_structure_fixate; -alias c_gst_structure_fixate_field gst_structure_fixate_field; -alias c_gst_structure_fixate_field_boolean gst_structure_fixate_field_boolean; -alias c_gst_structure_fixate_field_nearest_double gst_structure_fixate_field_nearest_double; -alias c_gst_structure_fixate_field_nearest_fraction gst_structure_fixate_field_nearest_fraction; -alias c_gst_structure_fixate_field_nearest_int gst_structure_fixate_field_nearest_int; -alias c_gst_structure_fixate_field_string gst_structure_fixate_field_string; -alias c_gst_structure_foreach gst_structure_foreach; -alias c_gst_structure_free gst_structure_free; -alias c_gst_structure_get gst_structure_get; -alias c_gst_structure_get_array gst_structure_get_array; -alias c_gst_structure_get_boolean gst_structure_get_boolean; -alias c_gst_structure_get_clock_time gst_structure_get_clock_time; -alias c_gst_structure_get_date gst_structure_get_date; -alias c_gst_structure_get_date_time gst_structure_get_date_time; -alias c_gst_structure_get_double gst_structure_get_double; -alias c_gst_structure_get_enum gst_structure_get_enum; -alias c_gst_structure_get_field_type gst_structure_get_field_type; -alias c_gst_structure_get_flagset gst_structure_get_flagset; -alias c_gst_structure_get_fraction gst_structure_get_fraction; -alias c_gst_structure_get_int gst_structure_get_int; -alias c_gst_structure_get_int64 gst_structure_get_int64; -alias c_gst_structure_get_list gst_structure_get_list; -alias c_gst_structure_get_name gst_structure_get_name; -alias c_gst_structure_get_name_id gst_structure_get_name_id; -alias c_gst_structure_get_string gst_structure_get_string; -alias c_gst_structure_get_uint gst_structure_get_uint; -alias c_gst_structure_get_uint64 gst_structure_get_uint64; -alias c_gst_structure_get_valist gst_structure_get_valist; -alias c_gst_structure_get_value gst_structure_get_value; -alias c_gst_structure_has_field gst_structure_has_field; -alias c_gst_structure_has_field_typed gst_structure_has_field_typed; -alias c_gst_structure_has_name gst_structure_has_name; -alias c_gst_structure_id_get gst_structure_id_get; -alias c_gst_structure_id_get_valist gst_structure_id_get_valist; -alias c_gst_structure_id_get_value gst_structure_id_get_value; -alias c_gst_structure_id_has_field gst_structure_id_has_field; -alias c_gst_structure_id_has_field_typed gst_structure_id_has_field_typed; -alias c_gst_structure_id_set gst_structure_id_set; -alias c_gst_structure_id_set_valist gst_structure_id_set_valist; -alias c_gst_structure_id_set_value gst_structure_id_set_value; -alias c_gst_structure_id_take_value gst_structure_id_take_value; -alias c_gst_structure_intersect gst_structure_intersect; -alias c_gst_structure_is_equal gst_structure_is_equal; -alias c_gst_structure_is_subset gst_structure_is_subset; -alias c_gst_structure_map_in_place gst_structure_map_in_place; -alias c_gst_structure_n_fields gst_structure_n_fields; -alias c_gst_structure_nth_field_name gst_structure_nth_field_name; -alias c_gst_structure_remove_all_fields gst_structure_remove_all_fields; -alias c_gst_structure_remove_field gst_structure_remove_field; -alias c_gst_structure_remove_fields gst_structure_remove_fields; -alias c_gst_structure_remove_fields_valist gst_structure_remove_fields_valist; -alias c_gst_structure_set gst_structure_set; -alias c_gst_structure_set_array gst_structure_set_array; -alias c_gst_structure_set_list gst_structure_set_list; -alias c_gst_structure_set_name gst_structure_set_name; -alias c_gst_structure_set_parent_refcount gst_structure_set_parent_refcount; -alias c_gst_structure_set_valist gst_structure_set_valist; -alias c_gst_structure_set_value gst_structure_set_value; -alias c_gst_structure_take_value gst_structure_take_value; -alias c_gst_structure_to_string gst_structure_to_string; -alias c_gst_structure_take gst_structure_take; - -// gstreamer.SystemClock - -alias c_gst_system_clock_get_type gst_system_clock_get_type; -alias c_gst_system_clock_obtain gst_system_clock_obtain; -alias c_gst_system_clock_set_default gst_system_clock_set_default; - -// gstreamer.TagList - -alias c_gst_tag_get_type gst_tag_get_type; -alias c_gst_tag_list_new gst_tag_list_new; -alias c_gst_tag_list_new_empty gst_tag_list_new_empty; -alias c_gst_tag_list_new_from_string gst_tag_list_new_from_string; -alias c_gst_tag_list_new_valist gst_tag_list_new_valist; -alias c_gst_tag_list_add gst_tag_list_add; -alias c_gst_tag_list_add_valist gst_tag_list_add_valist; -alias c_gst_tag_list_add_valist_values gst_tag_list_add_valist_values; -alias c_gst_tag_list_add_value gst_tag_list_add_value; -alias c_gst_tag_list_add_values gst_tag_list_add_values; -alias c_gst_tag_list_copy gst_tag_list_copy; -alias c_gst_tag_list_foreach gst_tag_list_foreach; -alias c_gst_tag_list_get_boolean gst_tag_list_get_boolean; -alias c_gst_tag_list_get_boolean_index gst_tag_list_get_boolean_index; -alias c_gst_tag_list_get_date gst_tag_list_get_date; -alias c_gst_tag_list_get_date_index gst_tag_list_get_date_index; -alias c_gst_tag_list_get_date_time gst_tag_list_get_date_time; -alias c_gst_tag_list_get_date_time_index gst_tag_list_get_date_time_index; -alias c_gst_tag_list_get_double gst_tag_list_get_double; -alias c_gst_tag_list_get_double_index gst_tag_list_get_double_index; -alias c_gst_tag_list_get_float gst_tag_list_get_float; -alias c_gst_tag_list_get_float_index gst_tag_list_get_float_index; -alias c_gst_tag_list_get_int gst_tag_list_get_int; -alias c_gst_tag_list_get_int64 gst_tag_list_get_int64; -alias c_gst_tag_list_get_int64_index gst_tag_list_get_int64_index; -alias c_gst_tag_list_get_int_index gst_tag_list_get_int_index; -alias c_gst_tag_list_get_pointer gst_tag_list_get_pointer; -alias c_gst_tag_list_get_pointer_index gst_tag_list_get_pointer_index; -alias c_gst_tag_list_get_sample gst_tag_list_get_sample; -alias c_gst_tag_list_get_sample_index gst_tag_list_get_sample_index; -alias c_gst_tag_list_get_scope gst_tag_list_get_scope; -alias c_gst_tag_list_get_string gst_tag_list_get_string; -alias c_gst_tag_list_get_string_index gst_tag_list_get_string_index; -alias c_gst_tag_list_get_tag_size gst_tag_list_get_tag_size; -alias c_gst_tag_list_get_uint gst_tag_list_get_uint; -alias c_gst_tag_list_get_uint64 gst_tag_list_get_uint64; -alias c_gst_tag_list_get_uint64_index gst_tag_list_get_uint64_index; -alias c_gst_tag_list_get_uint_index gst_tag_list_get_uint_index; -alias c_gst_tag_list_get_value_index gst_tag_list_get_value_index; -alias c_gst_tag_list_insert gst_tag_list_insert; -alias c_gst_tag_list_is_empty gst_tag_list_is_empty; -alias c_gst_tag_list_is_equal gst_tag_list_is_equal; -alias c_gst_tag_list_merge gst_tag_list_merge; -alias c_gst_tag_list_n_tags gst_tag_list_n_tags; -alias c_gst_tag_list_nth_tag_name gst_tag_list_nth_tag_name; -alias c_gst_tag_list_peek_string_index gst_tag_list_peek_string_index; -alias c_gst_tag_list_remove_tag gst_tag_list_remove_tag; -alias c_gst_tag_list_set_scope gst_tag_list_set_scope; -alias c_gst_tag_list_to_string gst_tag_list_to_string; -alias c_gst_tag_list_copy_value gst_tag_list_copy_value; -alias c_gst_tag_exists gst_tag_exists; -alias c_gst_tag_get_description gst_tag_get_description; -alias c_gst_tag_get_flag gst_tag_get_flag; -alias c_gst_tag_get_nick gst_tag_get_nick; -alias c_gst_tag_is_fixed gst_tag_is_fixed; -alias c_gst_tag_merge_strings_with_comma gst_tag_merge_strings_with_comma; -alias c_gst_tag_merge_use_first gst_tag_merge_use_first; -alias c_gst_tag_register gst_tag_register; -alias c_gst_tag_register_static gst_tag_register_static; - -// gstreamer.TagSetter - -alias c_gst_tag_setter_get_type gst_tag_setter_get_type; -alias c_gst_tag_setter_add_tag_valist gst_tag_setter_add_tag_valist; -alias c_gst_tag_setter_add_tag_valist_values gst_tag_setter_add_tag_valist_values; -alias c_gst_tag_setter_add_tag_value gst_tag_setter_add_tag_value; -alias c_gst_tag_setter_add_tag_values gst_tag_setter_add_tag_values; -alias c_gst_tag_setter_add_tags gst_tag_setter_add_tags; -alias c_gst_tag_setter_get_tag_list gst_tag_setter_get_tag_list; -alias c_gst_tag_setter_get_tag_merge_mode gst_tag_setter_get_tag_merge_mode; -alias c_gst_tag_setter_merge_tags gst_tag_setter_merge_tags; -alias c_gst_tag_setter_reset_tags gst_tag_setter_reset_tags; -alias c_gst_tag_setter_set_tag_merge_mode gst_tag_setter_set_tag_merge_mode; - -// gstreamer.Task - -alias c_gst_task_get_type gst_task_get_type; -alias c_gst_task_new gst_task_new; -alias c_gst_task_cleanup_all gst_task_cleanup_all; -alias c_gst_task_get_pool gst_task_get_pool; -alias c_gst_task_get_state gst_task_get_state; -alias c_gst_task_join gst_task_join; -alias c_gst_task_pause gst_task_pause; -alias c_gst_task_resume gst_task_resume; -alias c_gst_task_set_enter_callback gst_task_set_enter_callback; -alias c_gst_task_set_leave_callback gst_task_set_leave_callback; -alias c_gst_task_set_lock gst_task_set_lock; -alias c_gst_task_set_pool gst_task_set_pool; -alias c_gst_task_set_state gst_task_set_state; -alias c_gst_task_start gst_task_start; -alias c_gst_task_stop gst_task_stop; - -// gstreamer.TaskPool - -alias c_gst_task_pool_get_type gst_task_pool_get_type; -alias c_gst_task_pool_new gst_task_pool_new; -alias c_gst_task_pool_cleanup gst_task_pool_cleanup; -alias c_gst_task_pool_join gst_task_pool_join; -alias c_gst_task_pool_prepare gst_task_pool_prepare; -alias c_gst_task_pool_push gst_task_pool_push; - -// gstreamer.Toc - -alias c_gst_toc_get_type gst_toc_get_type; -alias c_gst_toc_new gst_toc_new; -alias c_gst_toc_append_entry gst_toc_append_entry; -alias c_gst_toc_dump gst_toc_dump; -alias c_gst_toc_find_entry gst_toc_find_entry; -alias c_gst_toc_get_entries gst_toc_get_entries; -alias c_gst_toc_get_scope gst_toc_get_scope; -alias c_gst_toc_get_tags gst_toc_get_tags; -alias c_gst_toc_merge_tags gst_toc_merge_tags; -alias c_gst_toc_set_tags gst_toc_set_tags; - -// gstreamer.TocEntry - -alias c_gst_toc_entry_get_type gst_toc_entry_get_type; -alias c_gst_toc_entry_new gst_toc_entry_new; -alias c_gst_toc_entry_append_sub_entry gst_toc_entry_append_sub_entry; -alias c_gst_toc_entry_get_entry_type gst_toc_entry_get_entry_type; -alias c_gst_toc_entry_get_loop gst_toc_entry_get_loop; -alias c_gst_toc_entry_get_parent gst_toc_entry_get_parent; -alias c_gst_toc_entry_get_start_stop_times gst_toc_entry_get_start_stop_times; -alias c_gst_toc_entry_get_sub_entries gst_toc_entry_get_sub_entries; -alias c_gst_toc_entry_get_tags gst_toc_entry_get_tags; -alias c_gst_toc_entry_get_toc gst_toc_entry_get_toc; -alias c_gst_toc_entry_get_uid gst_toc_entry_get_uid; -alias c_gst_toc_entry_is_alternative gst_toc_entry_is_alternative; -alias c_gst_toc_entry_is_sequence gst_toc_entry_is_sequence; -alias c_gst_toc_entry_merge_tags gst_toc_entry_merge_tags; -alias c_gst_toc_entry_set_loop gst_toc_entry_set_loop; -alias c_gst_toc_entry_set_start_stop_times gst_toc_entry_set_start_stop_times; -alias c_gst_toc_entry_set_tags gst_toc_entry_set_tags; - -// gstreamer.TocSetter - -alias c_gst_toc_setter_get_type gst_toc_setter_get_type; -alias c_gst_toc_setter_get_toc gst_toc_setter_get_toc; -alias c_gst_toc_setter_reset gst_toc_setter_reset; -alias c_gst_toc_setter_set_toc gst_toc_setter_set_toc; - -// gstreamer.Tracer - -alias c_gst_tracer_get_type gst_tracer_get_type; -alias c_gst_tracer_register gst_tracer_register; - -// gstreamer.TracerFactory - -alias c_gst_tracer_factory_get_type gst_tracer_factory_get_type; -alias c_gst_tracer_factory_get_list gst_tracer_factory_get_list; -alias c_gst_tracer_factory_get_tracer_type gst_tracer_factory_get_tracer_type; - -// gstreamer.TracerRecord - -alias c_gst_tracer_record_get_type gst_tracer_record_get_type; -alias c_gst_tracer_record_new gst_tracer_record_new; -alias c_gst_tracer_record_log gst_tracer_record_log; - -// gstreamer.TypeFind - -alias c_gst_type_find_get_length gst_type_find_get_length; -alias c_gst_type_find_peek gst_type_find_peek; -alias c_gst_type_find_suggest gst_type_find_suggest; -alias c_gst_type_find_suggest_simple gst_type_find_suggest_simple; -alias c_gst_type_find_register gst_type_find_register; -alias c_gst_type_find_get_type gst_type_find_get_type; - -// gstreamer.TypeFindFactory - -alias c_gst_type_find_factory_get_type gst_type_find_factory_get_type; -alias c_gst_type_find_factory_get_list gst_type_find_factory_get_list; -alias c_gst_type_find_factory_call_function gst_type_find_factory_call_function; -alias c_gst_type_find_factory_get_caps gst_type_find_factory_get_caps; -alias c_gst_type_find_factory_get_extensions gst_type_find_factory_get_extensions; -alias c_gst_type_find_factory_has_function gst_type_find_factory_has_function; - -// gstreamer.URIHandler - -alias c_gst_uri_handler_get_type gst_uri_handler_get_type; -alias c_gst_uri_handler_get_protocols gst_uri_handler_get_protocols; -alias c_gst_uri_handler_get_uri gst_uri_handler_get_uri; -alias c_gst_uri_handler_get_uri_type gst_uri_handler_get_uri_type; -alias c_gst_uri_handler_set_uri gst_uri_handler_set_uri; - -// gstreamer.Uri - -alias c_gst_uri_get_type gst_uri_get_type; -alias c_gst_uri_new gst_uri_new; -alias c_gst_uri_append_path gst_uri_append_path; -alias c_gst_uri_append_path_segment gst_uri_append_path_segment; -alias c_gst_uri_equal gst_uri_equal; -alias c_gst_uri_from_string_with_base gst_uri_from_string_with_base; -alias c_gst_uri_get_fragment gst_uri_get_fragment; -alias c_gst_uri_get_host gst_uri_get_host; -alias c_gst_uri_get_media_fragment_table gst_uri_get_media_fragment_table; -alias c_gst_uri_get_path gst_uri_get_path; -alias c_gst_uri_get_path_segments gst_uri_get_path_segments; -alias c_gst_uri_get_path_string gst_uri_get_path_string; -alias c_gst_uri_get_port gst_uri_get_port; -alias c_gst_uri_get_query_keys gst_uri_get_query_keys; -alias c_gst_uri_get_query_string gst_uri_get_query_string; -alias c_gst_uri_get_query_table gst_uri_get_query_table; -alias c_gst_uri_get_query_value gst_uri_get_query_value; -alias c_gst_uri_get_scheme gst_uri_get_scheme; -alias c_gst_uri_get_userinfo gst_uri_get_userinfo; -alias c_gst_uri_is_normalized gst_uri_is_normalized; -alias c_gst_uri_is_writable gst_uri_is_writable; -alias c_gst_uri_join gst_uri_join; -alias c_gst_uri_make_writable gst_uri_make_writable; -alias c_gst_uri_new_with_base gst_uri_new_with_base; -alias c_gst_uri_normalize gst_uri_normalize; -alias c_gst_uri_query_has_key gst_uri_query_has_key; -alias c_gst_uri_remove_query_key gst_uri_remove_query_key; -alias c_gst_uri_set_fragment gst_uri_set_fragment; -alias c_gst_uri_set_host gst_uri_set_host; -alias c_gst_uri_set_path gst_uri_set_path; -alias c_gst_uri_set_path_segments gst_uri_set_path_segments; -alias c_gst_uri_set_path_string gst_uri_set_path_string; -alias c_gst_uri_set_port gst_uri_set_port; -alias c_gst_uri_set_query_string gst_uri_set_query_string; -alias c_gst_uri_set_query_table gst_uri_set_query_table; -alias c_gst_uri_set_query_value gst_uri_set_query_value; -alias c_gst_uri_set_scheme gst_uri_set_scheme; -alias c_gst_uri_set_userinfo gst_uri_set_userinfo; -alias c_gst_uri_to_string gst_uri_to_string; -alias c_gst_uri_construct gst_uri_construct; -alias c_gst_uri_from_string gst_uri_from_string; -alias c_gst_uri_from_string_escaped gst_uri_from_string_escaped; -alias c_gst_uri_get_location gst_uri_get_location; -alias c_gst_uri_get_protocol gst_uri_get_protocol; -alias c_gst_uri_has_protocol gst_uri_has_protocol; -alias c_gst_uri_is_valid gst_uri_is_valid; -alias c_gst_uri_join_strings gst_uri_join_strings; -alias c_gst_uri_protocol_is_supported gst_uri_protocol_is_supported; -alias c_gst_uri_protocol_is_valid gst_uri_protocol_is_valid; -alias c_gst_filename_to_uri gst_filename_to_uri; -alias c_gst_uri_error_quark gst_uri_error_quark; - -// gstreamer.ValueArray - -alias c_gst_value_array_get_type gst_value_array_get_type; -alias c_gst_value_array_append_and_take_value gst_value_array_append_and_take_value; -alias c_gst_value_array_append_value gst_value_array_append_value; -alias c_gst_value_array_get_size gst_value_array_get_size; -alias c_gst_value_array_get_value gst_value_array_get_value; -alias c_gst_value_array_init gst_value_array_init; -alias c_gst_value_array_prepend_value gst_value_array_prepend_value; - -// gstreamer.ValueList - -alias c_gst_value_list_get_type gst_value_list_get_type; -alias c_gst_value_list_append_and_take_value gst_value_list_append_and_take_value; -alias c_gst_value_list_append_value gst_value_list_append_value; -alias c_gst_value_list_concat gst_value_list_concat; -alias c_gst_value_list_get_size gst_value_list_get_size; -alias c_gst_value_list_get_value gst_value_list_get_value; -alias c_gst_value_list_init gst_value_list_init; -alias c_gst_value_list_merge gst_value_list_merge; -alias c_gst_value_list_prepend_value gst_value_list_prepend_value; - -// gstreamer.Debug - -alias c_gst_debug_add_log_function gst_debug_add_log_function; -alias c_gst_debug_bin_to_dot_data gst_debug_bin_to_dot_data; -alias c_gst_debug_bin_to_dot_file gst_debug_bin_to_dot_file; -alias c_gst_debug_bin_to_dot_file_with_ts gst_debug_bin_to_dot_file_with_ts; -alias c_gst_debug_construct_term_color gst_debug_construct_term_color; -alias c_gst_debug_construct_win_color gst_debug_construct_win_color; -alias c_gst_debug_get_all_categories gst_debug_get_all_categories; -alias c_gst_debug_get_color_mode gst_debug_get_color_mode; -alias c_gst_debug_get_default_threshold gst_debug_get_default_threshold; -alias c_gst_debug_is_active gst_debug_is_active; -alias c_gst_debug_is_colored gst_debug_is_colored; -alias c_gst_debug_level_get_name gst_debug_level_get_name; -alias c_gst_debug_log gst_debug_log; -alias c_gst_debug_log_default gst_debug_log_default; -alias c_gst_debug_log_valist gst_debug_log_valist; -alias c_gst_debug_print_stack_trace gst_debug_print_stack_trace; -alias c_gst_debug_remove_log_function gst_debug_remove_log_function; -alias c_gst_debug_remove_log_function_by_data gst_debug_remove_log_function_by_data; -alias c_gst_debug_set_active gst_debug_set_active; -alias c_gst_debug_set_color_mode gst_debug_set_color_mode; -alias c_gst_debug_set_color_mode_from_string gst_debug_set_color_mode_from_string; -alias c_gst_debug_set_colored gst_debug_set_colored; -alias c_gst_debug_set_default_threshold gst_debug_set_default_threshold; -alias c_gst_debug_set_threshold_for_name gst_debug_set_threshold_for_name; -alias c_gst_debug_set_threshold_from_string gst_debug_set_threshold_from_string; -alias c_gst_debug_unset_threshold_for_name gst_debug_unset_threshold_for_name; - -// gstreamer.GError - -alias c_gst_error_get_message gst_error_get_message; - -// gstreamer.Format - -alias c_gst_format_get_by_nick gst_format_get_by_nick; -alias c_gst_format_get_details gst_format_get_details; -alias c_gst_format_get_name gst_format_get_name; -alias c_gst_format_iterate_definitions gst_format_iterate_definitions; -alias c_gst_format_register gst_format_register; -alias c_gst_format_to_quark gst_format_to_quark; -alias c_gst_formats_contains gst_formats_contains; - -// gstreamer.GStreamer - -alias c_gst_deinit gst_deinit; -alias c_gst_init gst_init; -alias c_gst_init_check gst_init_check; -alias c_gst_init_get_option_group gst_init_get_option_group; -alias c_gst_is_initialized gst_is_initialized; -alias c_gst_segtrap_is_enabled gst_segtrap_is_enabled; -alias c_gst_segtrap_set_enabled gst_segtrap_set_enabled; -alias c_gst_update_registry gst_update_registry; -alias c_gst_version gst_version; -alias c_gst_version_string gst_version_string; - -// gstreamer.Parse - -alias c_gst_parse_bin_from_description gst_parse_bin_from_description; -alias c_gst_parse_bin_from_description_full gst_parse_bin_from_description_full; -alias c_gst_parse_error_quark gst_parse_error_quark; -alias c_gst_parse_launch gst_parse_launch; -alias c_gst_parse_launch_full gst_parse_launch_full; -alias c_gst_parse_launchv gst_parse_launchv; -alias c_gst_parse_launchv_full gst_parse_launchv_full; - -// gstreamer.Utils - -alias c_gst_util_array_binary_search gst_util_array_binary_search; -alias c_gst_util_double_to_fraction gst_util_double_to_fraction; -alias c_gst_util_dump_mem gst_util_dump_mem; -alias c_gst_util_fraction_add gst_util_fraction_add; -alias c_gst_util_fraction_compare gst_util_fraction_compare; -alias c_gst_util_fraction_multiply gst_util_fraction_multiply; -alias c_gst_util_fraction_to_double gst_util_fraction_to_double; -alias c_gst_util_gdouble_to_guint64 gst_util_gdouble_to_guint64; -alias c_gst_util_get_timestamp gst_util_get_timestamp; -alias c_gst_util_greatest_common_divisor gst_util_greatest_common_divisor; -alias c_gst_util_greatest_common_divisor_int64 gst_util_greatest_common_divisor_int64; -alias c_gst_util_group_id_next gst_util_group_id_next; -alias c_gst_util_guint64_to_gdouble gst_util_guint64_to_gdouble; -alias c_gst_util_seqnum_compare gst_util_seqnum_compare; -alias c_gst_util_seqnum_next gst_util_seqnum_next; -alias c_gst_util_set_object_arg gst_util_set_object_arg; -alias c_gst_util_set_value_from_string gst_util_set_value_from_string; -alias c_gst_util_uint64_scale gst_util_uint64_scale; -alias c_gst_util_uint64_scale_ceil gst_util_uint64_scale_ceil; -alias c_gst_util_uint64_scale_int gst_util_uint64_scale_int; -alias c_gst_util_uint64_scale_int_ceil gst_util_uint64_scale_int_ceil; -alias c_gst_util_uint64_scale_int_round gst_util_uint64_scale_int_round; -alias c_gst_util_uint64_scale_round gst_util_uint64_scale_round; -alias c_gst_calculate_linear_regression gst_calculate_linear_regression; -alias c_gst_dynamic_type_register gst_dynamic_type_register; -alias c_gst_util_get_object_array gst_util_get_object_array; -alias c_gst_util_set_object_array gst_util_set_object_array; - -// gstreamer.ValueGst - -alias c_gst_value_can_compare gst_value_can_compare; -alias c_gst_value_can_intersect gst_value_can_intersect; -alias c_gst_value_can_subtract gst_value_can_subtract; -alias c_gst_value_can_union gst_value_can_union; -alias c_gst_value_compare gst_value_compare; -alias c_gst_value_deserialize gst_value_deserialize; -alias c_gst_value_fixate gst_value_fixate; -alias c_gst_value_fraction_multiply gst_value_fraction_multiply; -alias c_gst_value_fraction_subtract gst_value_fraction_subtract; -alias c_gst_value_get_bitmask gst_value_get_bitmask; -alias c_gst_value_get_caps gst_value_get_caps; -alias c_gst_value_get_caps_features gst_value_get_caps_features; -alias c_gst_value_get_double_range_max gst_value_get_double_range_max; -alias c_gst_value_get_double_range_min gst_value_get_double_range_min; -alias c_gst_value_get_flagset_flags gst_value_get_flagset_flags; -alias c_gst_value_get_flagset_mask gst_value_get_flagset_mask; -alias c_gst_value_set_flagset gst_value_set_flagset; -alias c_gst_value_get_fraction_denominator gst_value_get_fraction_denominator; -alias c_gst_value_get_fraction_numerator gst_value_get_fraction_numerator; -alias c_gst_value_get_fraction_range_max gst_value_get_fraction_range_max; -alias c_gst_value_get_fraction_range_min gst_value_get_fraction_range_min; -alias c_gst_value_get_int64_range_max gst_value_get_int64_range_max; -alias c_gst_value_get_int64_range_min gst_value_get_int64_range_min; -alias c_gst_value_get_int64_range_step gst_value_get_int64_range_step; -alias c_gst_value_get_int_range_max gst_value_get_int_range_max; -alias c_gst_value_get_int_range_min gst_value_get_int_range_min; -alias c_gst_value_get_int_range_step gst_value_get_int_range_step; -alias c_gst_value_get_structure gst_value_get_structure; -alias c_gst_value_init_and_copy gst_value_init_and_copy; -alias c_gst_value_intersect gst_value_intersect; -alias c_gst_value_is_fixed gst_value_is_fixed; -alias c_gst_value_is_subset gst_value_is_subset; -alias c_gst_value_register gst_value_register; -alias c_gst_value_serialize gst_value_serialize; -alias c_gst_value_set_bitmask gst_value_set_bitmask; -alias c_gst_value_set_caps gst_value_set_caps; -alias c_gst_value_set_caps_features gst_value_set_caps_features; -alias c_gst_value_set_double_range gst_value_set_double_range; -alias c_gst_value_set_fraction gst_value_set_fraction; -alias c_gst_value_set_fraction_range gst_value_set_fraction_range; -alias c_gst_value_set_fraction_range_full gst_value_set_fraction_range_full; -alias c_gst_value_set_int64_range gst_value_set_int64_range; -alias c_gst_value_set_int64_range_step gst_value_set_int64_range_step; -alias c_gst_value_set_int_range gst_value_set_int_range; -alias c_gst_value_set_int_range_step gst_value_set_int_range_step; -alias c_gst_value_set_structure gst_value_set_structure; -alias c_gst_value_subtract gst_value_subtract; -alias c_gst_value_union gst_value_union; diff --git a/generated/gstreamer/gstreamer/c/types.d b/generated/gstreamer/gstreamer/c/types.d deleted file mode 100644 index a9e329578..000000000 --- a/generated/gstreamer/gstreamer/c/types.d +++ /dev/null @@ -1,7796 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gstreamer.c.types; - -public import glib.c.types; -public import gobject.c.types; - - -/** - * A datatype to hold the handle to an outstanding sync or async clock callback. - */ -public alias void* GstClockID; - -/** - * A datatype to hold a time, measured in nanoseconds. - */ -public alias ulong GstClockTime; - -/** - * A datatype to hold a time difference, measured in nanoseconds. - */ -public alias long GstClockTimeDiff; - -/** - * A type defining the type of an element factory. - */ -public alias ulong GstElementFactoryListType; -/** - * Available details for pipeline graphs produced by GST_DEBUG_BIN_TO_DOT_FILE() - * and GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(). - */ -public enum GstDebugGraphDetails : long -{ - /** - * show caps-name on edges - */ - MEDIA_TYPE = 1, - /** - * show caps-details on edges - */ - CAPS_DETAILS = 2, - /** - * show modified parameters on - * elements - */ - NON_DEFAULT_PARAMS = 4, - /** - * show element states - */ - STATES = 8, - /** - * show full element parameter values even - * if they are very long - */ - FULL_PARAMS = 16, - /** - * show all the typical details that one might want - */ - ALL = 15, - /** - * show all details regardless of how large or - * verbose they make the resulting output - */ - VERBOSE = 4294967295, -} -alias GstDebugGraphDetails DebugGraphDetails; - -/** - * Flags for allocators. - */ -public enum GstAllocatorFlags -{ - /** - * The allocator has a custom alloc function. - */ - CUSTOM_ALLOC = 16, - /** - * first flag that can be used for custom purposes - */ - LAST = 1048576, -} -alias GstAllocatorFlags AllocatorFlags; - -/** - * GstBinFlags are a set of flags specific to bins. Most are set/used - * internally. They can be checked using the GST_OBJECT_FLAG_IS_SET () macro, - * and (un)set using GST_OBJECT_FLAG_SET () and GST_OBJECT_FLAG_UNSET (). - */ -public enum GstBinFlags -{ - /** - * don't resync a state change when elements are - * added or linked in the bin (Since: 1.0.5) - */ - NO_RESYNC = 16384, - /** - * Indicates whether the bin can handle elements - * that add/remove source pads at any point in time without - * first posting a no-more-pads signal (Since: 1.10) - */ - STREAMS_AWARE = 32768, - /** - * the last enum in the series of flags for bins. - * Derived classes can use this as first value in a list of flags. - */ - LAST = 524288, -} -alias GstBinFlags BinFlags; - -/** - * A set of flags that can be provided to the gst_buffer_copy_into() - * function to specify which items should be copied. - */ -public enum GstBufferCopyFlags -{ - /** - * copy nothing - */ - NONE = 0, - /** - * flag indicating that buffer flags should be copied - */ - FLAGS = 1, - /** - * flag indicating that buffer pts, dts, - * duration, offset and offset_end should be copied - */ - TIMESTAMPS = 2, - /** - * flag indicating that buffer meta should be - * copied - */ - META = 4, - /** - * flag indicating that buffer memory should be reffed - * and appended to already existing memory. Unless the memory is marked as - * NO_SHARE, no actual copy of the memory is made but it is simply reffed. - * Add @GST_BUFFER_COPY_DEEP to force a real copy. - */ - MEMORY = 8, - /** - * flag indicating that buffer memory should be - * merged - */ - MERGE = 16, - /** - * flag indicating that memory should always be - * copied instead of reffed (Since: 1.2) - */ - DEEP = 32, -} -alias GstBufferCopyFlags BufferCopyFlags; - -/** - * A set of buffer flags used to describe properties of a #GstBuffer. - */ -public enum GstBufferFlags -{ - /** - * the buffer is live data and should be discarded in - * the PAUSED state. - */ - LIVE = 16, - /** - * the buffer contains data that should be dropped - * because it will be clipped against the segment - * boundaries or because it does not contain data - * that should be shown to the user. - */ - DECODE_ONLY = 32, - /** - * the buffer marks a data discontinuity in the stream. - * This typically occurs after a seek or a dropped buffer - * from a live or network source. - */ - DISCONT = 64, - /** - * the buffer timestamps might have a discontinuity - * and this buffer is a good point to resynchronize. - */ - RESYNC = 128, - /** - * the buffer data is corrupted. - */ - CORRUPTED = 256, - /** - * the buffer contains a media specific marker. for - * video this is the end of a frame boundary, for audio - * this is the start of a talkspurt. - */ - MARKER = 512, - /** - * the buffer contains header information that is - * needed to decode the following data. - */ - HEADER = 1024, - /** - * the buffer has been created to fill a gap in the - * stream and contains media neutral data (elements can - * switch to optimized code path that ignores the buffer - * content). - */ - GAP = 2048, - /** - * the buffer can be dropped without breaking the - * stream, for example to reduce bandwidth. - */ - DROPPABLE = 4096, - /** - * this unit cannot be decoded independently. - */ - DELTA_UNIT = 8192, - /** - * this flag is set when memory of the buffer - * is added/removed - */ - TAG_MEMORY = 16384, - /** - * Elements which write to disk or permanent - * storage should ensure the data is synced after - * writing the contents of this buffer. (Since: 1.6) - */ - SYNC_AFTER = 32768, - /** - * This buffer is important and should not be dropped. - * This can be used to mark important buffers, e.g. to flag - * RTP packets carrying keyframes or codec setup data for RTP - * Forward Error Correction purposes, or to prevent still video - * frames from being dropped by elements due to QoS. (Since: 1.14) - */ - NON_DROPPABLE = 65536, - /** - * additional media specific flags can be added starting from - * this flag. - */ - LAST = 1048576, -} -alias GstBufferFlags BufferFlags; - -/** - * Additional flags to control the allocation of a buffer - */ -public enum GstBufferPoolAcquireFlags -{ - /** - * no flags - */ - NONE = 0, - /** - * buffer is keyframe - */ - KEY_UNIT = 1, - /** - * when the bufferpool is empty, acquire_buffer - * will by default block until a buffer is released into the pool again. Setting - * this flag makes acquire_buffer return #GST_FLOW_EOS instead of blocking. - */ - DONTWAIT = 2, - /** - * buffer is discont - */ - DISCONT = 4, - /** - * last flag, subclasses can use private flags - * starting from this value. - */ - LAST = 65536, -} -alias GstBufferPoolAcquireFlags BufferPoolAcquireFlags; - -/** - * The different types of buffering methods. - */ -public enum GstBufferingMode -{ - /** - * a small amount of data is buffered - */ - STREAM = 0, - /** - * the stream is being downloaded - */ - DOWNLOAD = 1, - /** - * the stream is being downloaded in a ringbuffer - */ - TIMESHIFT = 2, - /** - * the stream is a live stream - */ - LIVE = 3, -} -alias GstBufferingMode BufferingMode; - -/** - * The standard flags that a bus may have. - */ -public enum GstBusFlags -{ - /** - * The bus is currently dropping all messages - */ - FLUSHING = 16, - /** - * offset to define more flags - */ - FLAG_LAST = 32, -} -alias GstBusFlags BusFlags; - -/** - * The result values for a GstBusSyncHandler. - */ -public enum GstBusSyncReply -{ - /** - * drop the message - */ - DROP = 0, - /** - * pass the message to the async queue - */ - PASS = 1, - /** - * pass message to async queue, continue if message is handled - */ - ASYNC = 2, -} -alias GstBusSyncReply BusSyncReply; - -/** - * Extra flags for a caps. - */ -public enum GstCapsFlags -{ - /** - * Caps has no specific content, but can contain - * anything. - */ - ANY = 16, -} -alias GstCapsFlags CapsFlags; - -/** - * Modes of caps intersection - * - * @GST_CAPS_INTERSECT_ZIG_ZAG tries to preserve overall order of both caps - * by iterating on the caps' structures as the following matrix shows: - * |[ - * caps1 - * +------------- - * | 1 2 4 7 - * caps2 | 3 5 8 10 - * | 6 9 11 12 - * ]| - * Used when there is no explicit precedence of one caps over the other. e.g. - * tee's sink pad getcaps function, it will probe its src pad peers' for their - * caps and intersect them with this mode. - * - * @GST_CAPS_INTERSECT_FIRST is useful when an element wants to preserve - * another element's caps priority order when intersecting with its own caps. - * Example: If caps1 is [A, B, C] and caps2 is [E, B, D, A], the result - * would be [A, B], maintaining the first caps priority on the intersection. - */ -public enum GstCapsIntersectMode -{ - /** - * Zig-zags over both caps. - */ - ZIG_ZAG = 0, - /** - * Keeps the first caps order. - */ - FIRST = 1, -} -alias GstCapsIntersectMode CapsIntersectMode; - -/** - * The type of the clock entry - */ -public enum GstClockEntryType -{ - /** - * a single shot timeout - */ - SINGLE = 0, - /** - * a periodic timeout request - */ - PERIODIC = 1, -} -alias GstClockEntryType ClockEntryType; - -/** - * The capabilities of this clock - */ -public enum GstClockFlags -{ - /** - * clock can do a single sync timeout request - */ - CAN_DO_SINGLE_SYNC = 16, - /** - * clock can do a single async timeout request - */ - CAN_DO_SINGLE_ASYNC = 32, - /** - * clock can do sync periodic timeout requests - */ - CAN_DO_PERIODIC_SYNC = 64, - /** - * clock can do async periodic timeout callbacks - */ - CAN_DO_PERIODIC_ASYNC = 128, - /** - * clock's resolution can be changed - */ - CAN_SET_RESOLUTION = 256, - /** - * clock can be slaved to a master clock - */ - CAN_SET_MASTER = 512, - /** - * clock needs to be synced before it can be used - * (Since: 1.6) - */ - NEEDS_STARTUP_SYNC = 1024, - /** - * subclasses can add additional flags starting from this flag - */ - LAST = 4096, -} -alias GstClockFlags ClockFlags; - -/** - * The return value of a clock operation. - */ -public enum GstClockReturn -{ - /** - * The operation succeeded. - */ - OK = 0, - /** - * The operation was scheduled too late. - */ - EARLY = 1, - /** - * The clockID was unscheduled - */ - UNSCHEDULED = 2, - /** - * The ClockID is busy - */ - BUSY = 3, - /** - * A bad time was provided to a function. - */ - BADTIME = 4, - /** - * An error occurred - */ - ERROR = 5, - /** - * Operation is not supported - */ - UNSUPPORTED = 6, - /** - * The ClockID is done waiting - */ - DONE = 7, -} -alias GstClockReturn ClockReturn; - -/** - * The different kind of clocks. - */ -public enum GstClockType -{ - /** - * time since Epoch - */ - REALTIME = 0, - /** - * monotonic time since some unspecified starting - * point - */ - MONOTONIC = 1, - /** - * some other time source is used (Since: 1.0.5) - */ - OTHER = 2, - /** - * time since Epoch, but using International Atomic Time - * as reference (Since: 1.18) - */ - TAI = 3, -} -alias GstClockType ClockType; - -/** - * Core errors are errors inside the core GStreamer library. - */ -public enum GstCoreError -{ - /** - * a general error which doesn't fit in any other - * category. Make sure you add a custom message to the error call. - */ - FAILED = 1, - /** - * do not use this except as a placeholder for - * deciding where to go while developing code. - */ - TOO_LAZY = 2, - /** - * use this when you do not want to implement - * this functionality yet. - */ - NOT_IMPLEMENTED = 3, - /** - * used for state change errors. - */ - STATE_CHANGE = 4, - /** - * used for pad-related errors. - */ - PAD = 5, - /** - * used for thread-related errors. - */ - THREAD = 6, - /** - * used for negotiation-related errors. - */ - NEGOTIATION = 7, - /** - * used for event-related errors. - */ - EVENT = 8, - /** - * used for seek-related errors. - */ - SEEK = 9, - /** - * used for caps-related errors. - */ - CAPS = 10, - /** - * used for negotiation-related errors. - */ - TAG = 11, - /** - * used if a plugin is missing. - */ - MISSING_PLUGIN = 12, - /** - * used for clock related errors. - */ - CLOCK = 13, - /** - * used if functionality has been disabled at - * compile time. - */ - DISABLED = 14, - /** - * the number of core error types. - */ - NUM_ERRORS = 15, -} -alias GstCoreError CoreError; - -/** - * These are some terminal style flags you can use when creating your - * debugging categories to make them stand out in debugging output. - */ -public enum GstDebugColorFlags -{ - /** - * Use black as foreground color. - */ - FG_BLACK = 0, - /** - * Use red as foreground color. - */ - FG_RED = 1, - /** - * Use green as foreground color. - */ - FG_GREEN = 2, - /** - * Use yellow as foreground color. - */ - FG_YELLOW = 3, - /** - * Use blue as foreground color. - */ - FG_BLUE = 4, - /** - * Use magenta as foreground color. - */ - FG_MAGENTA = 5, - /** - * Use cyan as foreground color. - */ - FG_CYAN = 6, - /** - * Use white as foreground color. - */ - FG_WHITE = 7, - /** - * Use black as background color. - */ - BG_BLACK = 0, - /** - * Use red as background color. - */ - BG_RED = 16, - /** - * Use green as background color. - */ - BG_GREEN = 32, - /** - * Use yellow as background color. - */ - BG_YELLOW = 48, - /** - * Use blue as background color. - */ - BG_BLUE = 64, - /** - * Use magenta as background color. - */ - BG_MAGENTA = 80, - /** - * Use cyan as background color. - */ - BG_CYAN = 96, - /** - * Use white as background color. - */ - BG_WHITE = 112, - /** - * Make the output bold. - */ - BOLD = 256, - /** - * Underline the output. - */ - UNDERLINE = 512, -} -alias GstDebugColorFlags DebugColorFlags; - -public enum GstDebugColorMode -{ - /** - * Do not use colors in logs. - */ - OFF = 0, - /** - * Paint logs in a platform-specific way. - */ - ON = 1, - /** - * Paint logs with UNIX terminal color codes - * no matter what platform GStreamer is running on. - */ - UNIX = 2, -} -alias GstDebugColorMode DebugColorMode; - -/** - * The level defines the importance of a debugging message. The more important a - * message is, the greater the probability that the debugging system outputs it. - */ -public enum GstDebugLevel -{ - /** - * No debugging level specified or desired. Used to deactivate - * debugging output. - */ - NONE = 0, - /** - * Error messages are to be used only when an error occurred - * that stops the application from keeping working correctly. - * An examples is gst_element_error, which outputs a message with this priority. - * It does not mean that the application is terminating as with g_error. - */ - ERROR = 1, - /** - * Warning messages are to inform about abnormal behaviour - * that could lead to problems or weird behaviour later on. An example of this - * would be clocking issues ("your computer is pretty slow") or broken input - * data ("Can't synchronize to stream.") - */ - WARNING = 2, - /** - * Fixme messages are messages that indicate that something - * in the executed code path is not fully implemented or handled yet. Note - * that this does not replace proper error handling in any way, the purpose - * of this message is to make it easier to spot incomplete/unfinished pieces - * of code when reading the debug log. - */ - FIXME = 3, - /** - * Informational messages should be used to keep the developer - * updated about what is happening. - * Examples where this should be used are when a typefind function has - * successfully determined the type of the stream or when an mp3 plugin detects - * the format to be used. ("This file has mono sound.") - */ - INFO = 4, - /** - * Debugging messages should be used when something common - * happens that is not the expected default behavior, or something that's - * useful to know but doesn't happen all the time (ie. per loop iteration or - * buffer processed or event handled). - * An example would be notifications about state changes or receiving/sending - * of events. - */ - DEBUG = 5, - /** - * Log messages are messages that are very common but might be - * useful to know. As a rule of thumb a pipeline that is running as expected - * should never output anything else but LOG messages whilst processing data. - * Use this log level to log recurring information in chain functions and - * loop functions, for example. - */ - LOG = 6, - /** - * Tracing-related messages. - * Examples for this are referencing/dereferencing of objects. - */ - TRACE = 7, - /** - * memory dump messages are used to log (small) chunks of - * data as memory dumps in the log. They will be displayed as hexdump with - * ASCII characters. - */ - MEMDUMP = 9, - /** - * The number of defined debugging levels. - */ - COUNT = 10, -} -alias GstDebugLevel DebugLevel; - -/** - * The standard flags that an element may have. - */ -public enum GstElementFlags -{ - /** - * ignore state changes from parent - */ - LOCKED_STATE = 16, - /** - * the element is a sink - */ - SINK = 32, - /** - * the element is a source. - */ - SOURCE = 64, - /** - * the element can provide a clock - */ - PROVIDE_CLOCK = 128, - /** - * the element requires a clock - */ - REQUIRE_CLOCK = 256, - /** - * the element can use an index - */ - INDEXABLE = 512, - /** - * offset to define more flags - */ - LAST = 16384, -} -alias GstElementFlags ElementFlags; - -/** - * #GstEventType lists the standard event types that can be sent in a pipeline. - * - * The custom event types can be used for private messages between elements - * that can't be expressed using normal - * GStreamer buffer passing semantics. Custom events carry an arbitrary - * #GstStructure. - * Specific custom events are distinguished by the name of the structure. - */ -public enum GstEventType -{ - /** - * unknown event. - */ - UNKNOWN = 0, - /** - * Start a flush operation. This event clears all data - * from the pipeline and unblock all streaming threads. - */ - FLUSH_START = 2563, - /** - * Stop a flush operation. This event resets the - * running-time of the pipeline. - */ - FLUSH_STOP = 5127, - /** - * Event to mark the start of a new stream. Sent before any - * other serialized event and only sent at the start of a new stream, - * not after flushing seeks. - */ - STREAM_START = 10254, - /** - * #GstCaps event. Notify the pad of a new media type. - */ - CAPS = 12814, - /** - * A new media segment follows in the dataflow. The - * segment events contains information for clipping buffers and - * converting buffer timestamps to running-time and - * stream-time. - */ - SEGMENT = 17934, - /** - * A new #GstStreamCollection is available (Since: 1.10) - */ - STREAM_COLLECTION = 19230, - /** - * A new set of metadata tags has been found in the stream. - */ - TAG = 20510, - /** - * Notification of buffering requirements. Currently not - * used yet. - */ - BUFFERSIZE = 23054, - /** - * An event that sinks turn into a message. Used to - * send messages that should be emitted in sync with - * rendering. - */ - SINK_MESSAGE = 25630, - /** - * Indicates that there is no more data for - * the stream group ID in the message. Sent before EOS - * in some instances and should be handled mostly the same. (Since: 1.10) - */ - STREAM_GROUP_DONE = 26894, - /** - * End-Of-Stream. No more data is to be expected to follow - * without either a STREAM_START event, or a FLUSH_STOP and a SEGMENT - * event. - */ - EOS = 28174, - /** - * An event which indicates that a new table of contents (TOC) - * was found or updated. - */ - TOC = 30750, - /** - * An event which indicates that new or updated - * encryption information has been found in the stream. - */ - PROTECTION = 33310, - /** - * Marks the end of a segment playback. - */ - SEGMENT_DONE = 38406, - /** - * Marks a gap in the datastream. - */ - GAP = 40966, - /** - * Notify downstream that a playback rate override - * should be applied as soon as possible. (Since: 1.18) - */ - INSTANT_RATE_CHANGE = 46090, - /** - * A quality message. Used to indicate to upstream elements - * that the downstream elements should adjust their processing - * rate. - */ - QOS = 48641, - /** - * A request for a new playback position and rate. - */ - SEEK = 51201, - /** - * Navigation events are usually used for communicating - * user requests, such as mouse or keyboard movements, - * to upstream elements. - */ - NAVIGATION = 53761, - /** - * Notification of new latency adjustment. Sinks will use - * the latency information to adjust their synchronisation. - */ - LATENCY = 56321, - /** - * A request for stepping through the media. Sinks will usually - * execute the step operation. - */ - STEP = 58881, - /** - * A request for upstream renegotiating caps and reconfiguring. - */ - RECONFIGURE = 61441, - /** - * A request for a new playback position based on TOC - * entry's UID. - */ - TOC_SELECT = 64001, - /** - * A request to select one or more streams (Since: 1.10) - */ - SELECT_STREAMS = 66561, - /** - * Sent by the pipeline to notify elements that handle the - * instant-rate-change event about the running-time when - * the rate multiplier should be applied (or was applied). (Since: 1.18) - */ - INSTANT_RATE_SYNC_TIME = 66817, - /** - * Upstream custom event - */ - CUSTOM_UPSTREAM = 69121, - /** - * Downstream custom event that travels in the - * data flow. - */ - CUSTOM_DOWNSTREAM = 71686, - /** - * Custom out-of-band downstream event. - */ - CUSTOM_DOWNSTREAM_OOB = 74242, - /** - * Custom sticky downstream event. - */ - CUSTOM_DOWNSTREAM_STICKY = 76830, - /** - * Custom upstream or downstream event. - * In-band when travelling downstream. - */ - CUSTOM_BOTH = 79367, - /** - * Custom upstream or downstream out-of-band event. - */ - CUSTOM_BOTH_OOB = 81923, -} -alias GstEventType EventType; - -/** - * #GstEventTypeFlags indicate the aspects of the different #GstEventType - * values. You can get the type flags of a #GstEventType with the - * gst_event_type_get_flags() function. - */ -public enum GstEventTypeFlags -{ - /** - * Set if the event can travel upstream. - */ - UPSTREAM = 1, - /** - * Set if the event can travel downstream. - */ - DOWNSTREAM = 2, - /** - * Set if the event should be serialized with data - * flow. - */ - SERIALIZED = 4, - /** - * Set if the event is sticky on the pads. - */ - STICKY = 8, - /** - * Multiple sticky events can be on a pad, each - * identified by the event name. - */ - STICKY_MULTI = 16, -} -alias GstEventTypeFlags EventTypeFlags; - -/** - * The result of passing data to a pad. - * - * Note that the custom return values should not be exposed outside of the - * element scope. - */ -public enum GstFlowReturn -{ - /** - * Pre-defined custom success code. - */ - CUSTOM_SUCCESS_2 = 102, - /** - * Pre-defined custom success code (define your - * custom success code to this to avoid compiler - * warnings). - */ - CUSTOM_SUCCESS_1 = 101, - /** - * Elements can use values starting from - * this (and higher) to define custom success - * codes. - */ - CUSTOM_SUCCESS = 100, - /** - * Data passing was ok. - */ - OK = 0, - /** - * Pad is not linked. - */ - NOT_LINKED = -1, - /** - * Pad is flushing. - */ - FLUSHING = -2, - /** - * Pad is EOS. - */ - EOS = -3, - /** - * Pad is not negotiated. - */ - NOT_NEGOTIATED = -4, - /** - * Some (fatal) error occurred. Element generating - * this error should post an error message using - * GST_ELEMENT_ERROR() with more details. - */ - ERROR = -5, - /** - * This operation is not supported. - */ - NOT_SUPPORTED = -6, - /** - * Elements can use values starting from - * this (and lower) to define custom error codes. - */ - CUSTOM_ERROR = -100, - /** - * Pre-defined custom error code (define your - * custom error code to this to avoid compiler - * warnings). - */ - CUSTOM_ERROR_1 = -101, - /** - * Pre-defined custom error code. - */ - CUSTOM_ERROR_2 = -102, -} -alias GstFlowReturn FlowReturn; - -/** - * Standard predefined formats - */ -public enum GstFormat -{ - /** - * undefined format - */ - UNDEFINED = 0, - /** - * the default format of the pad/element. This can be - * samples for raw audio, frames/fields for raw video (some, but not all, - * elements support this; use @GST_FORMAT_TIME if you don't have a good - * reason to query for samples/frames) - */ - DEFAULT = 1, - /** - * bytes - */ - BYTES = 2, - /** - * time in nanoseconds - */ - TIME = 3, - /** - * buffers (few, if any, elements implement this as of - * May 2009) - */ - BUFFERS = 4, - /** - * percentage of stream (few, if any, elements implement - * this as of May 2009) - */ - PERCENT = 5, -} -alias GstFormat Format; - -/** - * The result of a #GstIteratorItemFunction. - */ -public enum GstIteratorItem -{ - /** - * Skip this item - */ - SKIP = 0, - /** - * Return item - */ - PASS = 1, - /** - * Stop after this item. - */ - END = 2, -} -alias GstIteratorItem IteratorItem; - -/** - * The result of gst_iterator_next(). - */ -public enum GstIteratorResult -{ - /** - * No more items in the iterator - */ - DONE = 0, - /** - * An item was retrieved - */ - OK = 1, - /** - * Datastructure changed while iterating - */ - RESYNC = 2, - /** - * An error happened - */ - ERROR = 3, -} -alias GstIteratorResult IteratorResult; - -/** - * Library errors are for errors from the library being used by elements - * (initializing, finalizing, settings, ...) - */ -public enum GstLibraryError -{ - /** - * a general error which doesn't fit in any other - * category. Make sure you add a custom message to the error call. - */ - FAILED = 1, - /** - * do not use this except as a placeholder for - * deciding where to go while developing code. - */ - TOO_LAZY = 2, - /** - * used when the library could not be opened. - */ - INIT = 3, - /** - * used when the library could not be closed. - */ - SHUTDOWN = 4, - /** - * used when the library doesn't accept settings. - */ - SETTINGS = 5, - /** - * used when the library generated an encoding error. - */ - ENCODE = 6, - /** - * the number of library error types. - */ - NUM_ERRORS = 7, -} -alias GstLibraryError LibraryError; - -/** - * Flags used when locking miniobjects - */ -public enum GstLockFlags -{ - /** - * lock for read access - */ - READ = 1, - /** - * lock for write access - */ - WRITE = 2, - /** - * lock for exclusive access - */ - EXCLUSIVE = 4, - /** - * first flag that can be used for custom purposes - */ - LAST = 256, -} -alias GstLockFlags LockFlags; - -/** - * Flags used when mapping memory - */ -public enum GstMapFlags -{ - /** - * map for read access - */ - READ = 1, - /** - * map for write access - */ - WRITE = 2, - /** - * first flag that can be used for custom purposes - */ - FLAG_LAST = 65536, -} -alias GstMapFlags MapFlags; - -/** - * Flags for wrapped memory. - */ -public enum GstMemoryFlags -{ - /** - * memory is readonly. It is not allowed to map the - * memory with #GST_MAP_WRITE. - */ - READONLY = 2, - /** - * memory must not be shared. Copies will have to be - * made when this memory needs to be shared between buffers. - */ - NO_SHARE = 16, - /** - * the memory prefix is filled with 0 bytes - */ - ZERO_PREFIXED = 32, - /** - * the memory padding is filled with 0 bytes - */ - ZERO_PADDED = 64, - /** - * the memory is physically contiguous. (Since: 1.2) - */ - PHYSICALLY_CONTIGUOUS = 128, - /** - * the memory can't be mapped via gst_memory_map() without any preconditions. (Since: 1.2) - */ - NOT_MAPPABLE = 256, - /** - * first flag that can be used for custom purposes - */ - LAST = 1048576, -} -alias GstMemoryFlags MemoryFlags; - -/** - * The different message types that are available. - */ -public enum GstMessageType : uint -{ - /** - * an undefined message - */ - UNKNOWN = 0, - /** - * end-of-stream reached in a pipeline. The application will - * only receive this message in the PLAYING state and every time it sets a - * pipeline to PLAYING that is in the EOS state. The application can perform a - * flushing seek in the pipeline, which will undo the EOS state again. - */ - EOS = 1, - /** - * an error occurred. When the application receives an error - * message it should stop playback of the pipeline and not assume that more - * data will be played. It is possible to specify a redirection url to the error - * messages by setting a `redirect-location` field into the error message, application - * or high level bins might use the information as required. - */ - ERROR = 2, - /** - * a warning occurred. - */ - WARNING = 4, - /** - * an info message occurred - */ - INFO = 8, - /** - * a tag was found. - */ - TAG = 16, - /** - * the pipeline is buffering. When the application - * receives a buffering message in the PLAYING state for a non-live pipeline it - * must PAUSE the pipeline until the buffering completes, when the percentage - * field in the message is 100%. For live pipelines, no action must be - * performed and the buffering percentage can be used to inform the user about - * the progress. - */ - BUFFERING = 32, - /** - * a state change happened - */ - STATE_CHANGED = 64, - /** - * an element changed state in a streaming thread. - * This message is deprecated. - */ - STATE_DIRTY = 128, - /** - * a stepping operation finished. - */ - STEP_DONE = 256, - /** - * an element notifies its capability of providing - * a clock. This message is used internally and - * never forwarded to the application. - */ - CLOCK_PROVIDE = 512, - /** - * The current clock as selected by the pipeline became - * unusable. The pipeline will select a new clock on - * the next PLAYING state change. The application - * should set the pipeline to PAUSED and back to - * PLAYING when this message is received. - */ - CLOCK_LOST = 1024, - /** - * a new clock was selected in the pipeline. - */ - NEW_CLOCK = 2048, - /** - * the structure of the pipeline changed. This - * message is used internally and never forwarded to the application. - */ - STRUCTURE_CHANGE = 4096, - /** - * status about a stream, emitted when it starts, - * stops, errors, etc.. - */ - STREAM_STATUS = 8192, - /** - * message posted by the application, possibly - * via an application-specific element. - */ - APPLICATION = 16384, - /** - * element-specific message, see the specific element's - * documentation - */ - ELEMENT = 32768, - /** - * pipeline started playback of a segment. This - * message is used internally and never forwarded to the application. - */ - SEGMENT_START = 65536, - /** - * pipeline completed playback of a segment. This - * message is forwarded to the application after all elements that posted - * @GST_MESSAGE_SEGMENT_START posted a GST_MESSAGE_SEGMENT_DONE message. - */ - SEGMENT_DONE = 131072, - /** - * The duration of a pipeline changed. The - * application can get the new duration with a duration query. - */ - DURATION_CHANGED = 262144, - /** - * Posted by elements when their latency changes. The - * application should recalculate and distribute a new latency. - */ - LATENCY = 524288, - /** - * Posted by elements when they start an ASYNC - * #GstStateChange. This message is not forwarded to the application but is used - * internally. - */ - ASYNC_START = 1048576, - /** - * Posted by elements when they complete an ASYNC - * #GstStateChange. The application will only receive this message from the toplevel - * pipeline. - */ - ASYNC_DONE = 2097152, - /** - * Posted by elements when they want the pipeline to - * change state. This message is a suggestion to the application which can - * decide to perform the state change on (part of) the pipeline. - */ - REQUEST_STATE = 4194304, - /** - * A stepping operation was started. - */ - STEP_START = 8388608, - /** - * A buffer was dropped or an element changed its processing - * strategy for Quality of Service reasons. - */ - QOS = 16777216, - /** - * A progress message. - */ - PROGRESS = 33554432, - /** - * A new table of contents (TOC) was found or previously found TOC - * was updated. - */ - TOC = 67108864, - /** - * Message to request resetting the pipeline's - * running time from the pipeline. This is an internal message which - * applications will likely never receive. - */ - RESET_TIME = 134217728, - /** - * Message indicating start of a new stream. Useful - * e.g. when using playbin in gapless playback mode, to get notified when - * the next title actually starts playing (which will be some time after - * the URI for the next title has been set). - */ - STREAM_START = 268435456, - /** - * Message indicating that an element wants a specific context (Since: 1.2) - */ - NEED_CONTEXT = 536870912, - /** - * Message indicating that an element created a context (Since: 1.2) - */ - HAVE_CONTEXT = 1073741824, - /** - * Message is an extended message type (see below). - * These extended message IDs can't be used directly with mask-based API - * like gst_bus_poll() or gst_bus_timed_pop_filtered(), but you can still - * filter for GST_MESSAGE_EXTENDED and then check the result for the - * specific type. (Since: 1.4) - */ - EXTENDED = 2147483648, - /** - * Message indicating a #GstDevice was added to - * a #GstDeviceProvider (Since: 1.4) - */ - DEVICE_ADDED = 2147483649, - /** - * Message indicating a #GstDevice was removed - * from a #GstDeviceProvider (Since: 1.4) - */ - DEVICE_REMOVED = 2147483650, - /** - * Message indicating a #GObject property has - * changed (Since: 1.10) - */ - PROPERTY_NOTIFY = 2147483651, - /** - * Message indicating a new #GstStreamCollection - * is available (Since: 1.10) - */ - STREAM_COLLECTION = 2147483652, - /** - * Message indicating the active selection of - * #GstStreams has changed (Since: 1.10) - */ - STREAMS_SELECTED = 2147483653, - /** - * Message indicating to request the application to - * try to play the given URL(s). Useful if for example a HTTP 302/303 - * response is received with a non-HTTP URL inside. (Since: 1.10) - */ - REDIRECT = 2147483654, - /** - * Message indicating a #GstDevice was changed - * a #GstDeviceProvider (Since: 1.16) - */ - DEVICE_CHANGED = 2147483655, - /** - * Message sent by elements to request the - * running time from the pipeline when an instant rate change should - * be applied (which may be in the past when the answer arrives). (Since: 1.18) - */ - INSTANT_RATE_REQUEST = 2147483656, - /** - * mask for all of the above messages. - */ - ANY = 4294967295, -} -alias GstMessageType MessageType; - -/** - * Extra metadata flags. - */ -public enum GstMetaFlags -{ - /** - * no flags - */ - NONE = 0, - /** - * metadata should not be modified - */ - READONLY = 1, - /** - * metadata is managed by a bufferpool - */ - POOLED = 2, - /** - * metadata should not be removed - */ - LOCKED = 4, - /** - * additional flags can be added starting from this flag. - */ - LAST = 65536, -} -alias GstMetaFlags MetaFlags; - -/** - * Flags for the mini object - */ -public enum GstMiniObjectFlags -{ - /** - * the object can be locked and unlocked with - * gst_mini_object_lock() and gst_mini_object_unlock(). - */ - LOCKABLE = 1, - /** - * the object is permanently locked in - * READONLY mode. Only read locks can be performed on the object. - */ - LOCK_READONLY = 2, - /** - * the object is expected to stay alive - * even after gst_deinit() has been called and so should be ignored by leak - * detection tools. (Since: 1.10) - */ - MAY_BE_LEAKED = 4, - /** - * first flag that can be used by subclasses. - */ - LAST = 16, -} -alias GstMiniObjectFlags MiniObjectFlags; - -/** - * The standard flags that an gstobject may have. - */ -public enum GstObjectFlags -{ - /** - * the object is expected to stay alive even - * after gst_deinit() has been called and so should be ignored by leak - * detection tools. (Since: 1.10) - */ - MAY_BE_LEAKED = 1, - /** - * subclasses can add additional flags starting from this flag - */ - LAST = 16, -} -alias GstObjectFlags ObjectFlags; - -/** - * The direction of a pad. - */ -public enum GstPadDirection -{ - /** - * direction is unknown. - */ - UNKNOWN = 0, - /** - * the pad is a source pad. - */ - SRC = 1, - /** - * the pad is a sink pad. - */ - SINK = 2, -} -alias GstPadDirection PadDirection; - -/** - * Pad state flags - */ -public enum GstPadFlags -{ - /** - * is dataflow on a pad blocked - */ - BLOCKED = 16, - /** - * is pad flushing - */ - FLUSHING = 32, - /** - * is pad in EOS state - */ - EOS = 64, - /** - * is pad currently blocking on a buffer or event - */ - BLOCKING = 128, - /** - * ensure that there is a parent object before calling - * into the pad callbacks. - */ - NEED_PARENT = 256, - /** - * the pad should be reconfigured/renegotiated. - * The flag has to be unset manually after - * reconfiguration happened. - */ - NEED_RECONFIGURE = 512, - /** - * the pad has pending events - */ - PENDING_EVENTS = 1024, - /** - * the pad is using fixed caps. This means that - * once the caps are set on the pad, the default caps query function - * will only return those caps. - */ - FIXED_CAPS = 2048, - /** - * the default event and query handler will forward - * all events and queries to the internally linked pads - * instead of discarding them. - */ - PROXY_CAPS = 4096, - /** - * the default query handler will forward - * allocation queries to the internally linked pads - * instead of discarding them. - */ - PROXY_ALLOCATION = 8192, - /** - * the default query handler will forward - * scheduling queries to the internally linked pads - * instead of discarding them. - */ - PROXY_SCHEDULING = 16384, - /** - * the default accept-caps handler will check - * it the caps intersect the query-caps result instead - * of checking for a subset. This is interesting for - * parsers that can accept incompletely specified caps. - */ - ACCEPT_INTERSECT = 32768, - /** - * the default accept-caps handler will use - * the template pad caps instead of query caps to - * compare with the accept caps. Use this in combination - * with %GST_PAD_FLAG_ACCEPT_INTERSECT. (Since: 1.6) - */ - ACCEPT_TEMPLATE = 65536, - /** - * offset to define more flags - */ - LAST = 1048576, -} -alias GstPadFlags PadFlags; - -/** - * The amount of checking to be done when linking pads. @GST_PAD_LINK_CHECK_CAPS - * and @GST_PAD_LINK_CHECK_TEMPLATE_CAPS are mutually exclusive. If both are - * specified, expensive but safe @GST_PAD_LINK_CHECK_CAPS are performed. - * - * > Only disable some of the checks if you are 100% certain you know the link - * > will not fail because of hierarchy/caps compatibility failures. If uncertain, - * > use the default checks (%GST_PAD_LINK_CHECK_DEFAULT) or the regular methods - * > for linking the pads. - */ -public enum GstPadLinkCheck -{ - /** - * Don't check hierarchy or caps compatibility. - */ - NOTHING = 0, - /** - * Check the pads have same parents/grandparents. - * Could be omitted if it is already known that the two elements that own the - * pads are in the same bin. - */ - HIERARCHY = 1, - /** - * Check if the pads are compatible by using - * their template caps. This is much faster than @GST_PAD_LINK_CHECK_CAPS, but - * would be unsafe e.g. if one pad has %GST_CAPS_ANY. - */ - TEMPLATE_CAPS = 2, - /** - * Check if the pads are compatible by comparing the - * caps returned by gst_pad_query_caps(). - */ - CAPS = 4, - /** - * Disables pushing a reconfigure event when pads are - * linked. - */ - NO_RECONFIGURE = 8, - /** - * The default checks done when linking - * pads (i.e. the ones used by gst_pad_link()). - */ - DEFAULT = 5, -} -alias GstPadLinkCheck PadLinkCheck; - -/** - * Result values from gst_pad_link and friends. - */ -public enum GstPadLinkReturn -{ - /** - * link succeeded - */ - OK = 0, - /** - * pads have no common grandparent - */ - WRONG_HIERARCHY = -1, - /** - * pad was already linked - */ - WAS_LINKED = -2, - /** - * pads have wrong direction - */ - WRONG_DIRECTION = -3, - /** - * pads do not have common format - */ - NOFORMAT = -4, - /** - * pads cannot cooperate in scheduling - */ - NOSCHED = -5, - /** - * refused for some reason - */ - REFUSED = -6, -} -alias GstPadLinkReturn PadLinkReturn; - -/** - * The status of a GstPad. After activating a pad, which usually happens when the - * parent element goes from READY to PAUSED, the GstPadMode defines if the - * pad operates in push or pull mode. - */ -public enum GstPadMode -{ - /** - * Pad will not handle dataflow - */ - NONE = 0, - /** - * Pad handles dataflow in downstream push mode - */ - PUSH = 1, - /** - * Pad handles dataflow in upstream pull mode - */ - PULL = 2, -} -alias GstPadMode PadMode; - -/** - * Indicates when this pad will become available. - */ -public enum GstPadPresence -{ - /** - * the pad is always available - */ - ALWAYS = 0, - /** - * the pad will become available depending on the media stream - */ - SOMETIMES = 1, - /** - * the pad is only available on request with - * gst_element_request_pad(). - */ - REQUEST = 2, -} -alias GstPadPresence PadPresence; - -/** - * Different return values for the #GstPadProbeCallback. - */ -public enum GstPadProbeReturn -{ - /** - * drop data in data probes. For push mode this means that - * the data item is not sent downstream. For pull mode, it means that - * the data item is not passed upstream. In both cases, no other probes - * are called for this item and %GST_FLOW_OK or %TRUE is returned to the - * caller. - */ - DROP = 0, - /** - * normal probe return value. This leaves the probe in - * place, and defers decisions about dropping or passing data to other - * probes, if any. If there are no other probes, the default behaviour - * for the probe type applies ('block' for blocking probes, - * and 'pass' for non-blocking probes). - */ - OK = 1, - /** - * remove this probe. - */ - REMOVE = 2, - /** - * pass the data item in the block probe and block on the - * next item. - */ - PASS = 3, - /** - * Data has been handled in the probe and will not be - * forwarded further. For events and buffers this is the same behaviour as - * %GST_PAD_PROBE_DROP (except that in this case you need to unref the buffer - * or event yourself). For queries it will also return %TRUE to the caller. - * The probe can also modify the #GstFlowReturn value by using the - * #GST_PAD_PROBE_INFO_FLOW_RETURN() accessor. - * Note that the resulting query must contain valid entries. - * Since: 1.6 - */ - HANDLED = 4, -} -alias GstPadProbeReturn PadProbeReturn; - -/** - * The different probing types that can occur. When either one of - * @GST_PAD_PROBE_TYPE_IDLE or @GST_PAD_PROBE_TYPE_BLOCK is used, the probe will be a - * blocking probe. - */ -public enum GstPadProbeType -{ - /** - * invalid probe type - */ - INVALID = 0, - /** - * probe idle pads and block while the callback is called - */ - IDLE = 1, - /** - * probe and block pads - */ - BLOCK = 2, - /** - * probe buffers - */ - BUFFER = 16, - /** - * probe buffer lists - */ - BUFFER_LIST = 32, - /** - * probe downstream events - */ - EVENT_DOWNSTREAM = 64, - /** - * probe upstream events - */ - EVENT_UPSTREAM = 128, - /** - * probe flush events. This probe has to be - * explicitly enabled and is not included in the - * @@GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM or - * @@GST_PAD_PROBE_TYPE_EVENT_UPSTREAM probe types. - */ - EVENT_FLUSH = 256, - /** - * probe downstream queries - */ - QUERY_DOWNSTREAM = 512, - /** - * probe upstream queries - */ - QUERY_UPSTREAM = 1024, - /** - * probe push - */ - PUSH = 4096, - /** - * probe pull - */ - PULL = 8192, - /** - * probe and block at the next opportunity, at data flow or when idle - */ - BLOCKING = 3, - /** - * probe downstream data (buffers, buffer lists, and events) - */ - DATA_DOWNSTREAM = 112, - /** - * probe upstream data (events) - */ - DATA_UPSTREAM = 128, - /** - * probe upstream and downstream data (buffers, buffer lists, and events) - */ - DATA_BOTH = 240, - /** - * probe and block downstream data (buffers, buffer lists, and events) - */ - BLOCK_DOWNSTREAM = 114, - /** - * probe and block upstream data (events) - */ - BLOCK_UPSTREAM = 130, - /** - * probe upstream and downstream events - */ - EVENT_BOTH = 192, - /** - * probe upstream and downstream queries - */ - QUERY_BOTH = 1536, - /** - * probe upstream events and queries and downstream buffers, buffer lists, events and queries - */ - ALL_BOTH = 1776, - /** - * probe push and pull - */ - SCHEDULING = 12288, -} -alias GstPadProbeType PadProbeType; - -/** - * Flags for the padtemplate - */ -public enum GstPadTemplateFlags -{ - /** - * first flag that can be used by subclasses. - */ - LAST = 256, -} -alias GstPadTemplateFlags PadTemplateFlags; - -/** - * The different parsing errors that can occur. - */ -public enum GstParseError -{ - /** - * A syntax error occurred. - */ - SYNTAX = 0, - /** - * The description contained an unknown element - */ - NO_SUCH_ELEMENT = 1, - /** - * An element did not have a specified property - */ - NO_SUCH_PROPERTY = 2, - /** - * There was an error linking two pads. - */ - LINK = 3, - /** - * There was an error setting a property - */ - COULD_NOT_SET_PROPERTY = 4, - /** - * An empty bin was specified. - */ - EMPTY_BIN = 5, - /** - * An empty description was specified - */ - EMPTY = 6, - /** - * A delayed link did not get resolved. - */ - DELAYED_LINK = 7, -} -alias GstParseError ParseError; - -/** - * Parsing options. - */ -public enum GstParseFlags -{ - /** - * Do not use any special parsing options. - */ - NONE = 0, - /** - * Always return %NULL when an error occurs - * (default behaviour is to return partially constructed bins or elements - * in some cases) - */ - FATAL_ERRORS = 1, - /** - * If a bin only has a single element, - * just return the element. - */ - NO_SINGLE_ELEMENT_BINS = 2, - /** - * If more than one toplevel element is described - * by the pipeline description string, put them in a #GstBin instead of a - * #GstPipeline. (Since: 1.10) - */ - PLACE_IN_BIN = 4, -} -alias GstParseFlags ParseFlags; - -/** - * Pipeline flags - */ -public enum GstPipelineFlags -{ - /** - * this pipeline works with a fixed clock - */ - FIXED_CLOCK = 524288, - /** - * offset to define more flags - */ - LAST = 8388608, -} -alias GstPipelineFlags PipelineFlags; - -public enum GstPluginAPIFlags -{ - /** - * Ignore enum members when generating - * the plugins cache. This is useful if the members of the enum are generated - * dynamically, in order not to expose incorrect documentation to the end user. - */ - MEMBERS = 1, -} -alias GstPluginAPIFlags PluginAPIFlags; - -/** - * Flags used in connection with gst_plugin_add_dependency(). - */ -public enum GstPluginDependencyFlags -{ - /** - * no special flags - */ - NONE = 0, - /** - * recurse into subdirectories - */ - RECURSE = 1, - /** - * use paths - * argument only if none of the environment variables is set - */ - PATHS_ARE_DEFAULT_ONLY = 2, - /** - * interpret - * filename argument as filter suffix and check all matching files in - * the directory - */ - FILE_NAME_IS_SUFFIX = 4, - /** - * interpret - * filename argument as filter prefix and check all matching files in - * the directory. Since: 1.8. - */ - FILE_NAME_IS_PREFIX = 8, - /** - * interpret - * non-absolute paths as relative to the main executable directory. Since - * 1.14. - */ - PATHS_ARE_RELATIVE_TO_EXE = 16, -} -alias GstPluginDependencyFlags PluginDependencyFlags; - -/** - * The plugin loading errors - */ -public enum GstPluginError -{ - /** - * The plugin could not be loaded - */ - MODULE = 0, - /** - * The plugin has unresolved dependencies - */ - DEPENDENCIES = 1, - /** - * The plugin has already be loaded from a different file - */ - NAME_MISMATCH = 2, -} -alias GstPluginError PluginError; - -/** - * The plugin loading state - */ -public enum GstPluginFlags -{ - /** - * Temporarily loaded plugins - */ - CACHED = 16, - /** - * The plugin won't be scanned (again) - */ - BLACKLISTED = 32, -} -alias GstPluginFlags PluginFlags; - -/** - * The type of a %GST_MESSAGE_PROGRESS. The progress messages inform the - * application of the status of asynchronous tasks. - */ -public enum GstProgressType -{ - /** - * A new task started. - */ - START = 0, - /** - * A task completed and a new one continues. - */ - CONTINUE = 1, - /** - * A task completed. - */ - COMPLETE = 2, - /** - * A task was canceled. - */ - CANCELED = 3, - /** - * A task caused an error. An error message is also - * posted on the bus. - */ - ERROR = 4, -} -alias GstProgressType ProgressType; - -/** - * The result of a #GstPromise - * - * Since: 1.14 - */ -public enum GstPromiseResult -{ - /** - * Initial state. Waiting for transition to any - * other state. - */ - PENDING = 0, - /** - * Interrupted by the consumer as it doesn't - * want the value anymore. - */ - INTERRUPTED = 1, - /** - * A producer marked a reply - */ - REPLIED = 2, - /** - * The promise expired (the carrying object - * lost all refs) and the promise will never be fulfilled. - */ - EXPIRED = 3, -} -alias GstPromiseResult PromiseResult; - -/** - * The different types of QoS events that can be given to the - * gst_event_new_qos() method. - */ -public enum GstQOSType -{ - /** - * The QoS event type that is produced when upstream - * elements are producing data too quickly and the element can't keep up - * processing the data. Upstream should reduce their production rate. This - * type is also used when buffers arrive early or in time. - */ - OVERFLOW = 0, - /** - * The QoS event type that is produced when upstream - * elements are producing data too slowly and need to speed up their - * production rate. - */ - UNDERFLOW = 1, - /** - * The QoS event type that is produced when the - * application enabled throttling to limit the data rate. - */ - THROTTLE = 2, -} -alias GstQOSType QOSType; - -/** - * Standard predefined Query types - */ -public enum GstQueryType -{ - /** - * unknown query type - */ - UNKNOWN = 0, - /** - * current position in stream - */ - POSITION = 2563, - /** - * total duration of the stream - */ - DURATION = 5123, - /** - * latency of stream - */ - LATENCY = 7683, - /** - * current jitter of stream - */ - JITTER = 10243, - /** - * current rate of the stream - */ - RATE = 12803, - /** - * seeking capabilities - */ - SEEKING = 15363, - /** - * segment start/stop positions - */ - SEGMENT = 17923, - /** - * convert values between formats - */ - CONVERT = 20483, - /** - * query supported formats for convert - */ - FORMATS = 23043, - /** - * query available media for efficient seeking. - */ - BUFFERING = 28163, - /** - * a custom application or element defined query. - */ - CUSTOM = 30723, - /** - * query the URI of the source or sink. - */ - URI = 33283, - /** - * the buffer allocation properties - */ - ALLOCATION = 35846, - /** - * the scheduling properties - */ - SCHEDULING = 38401, - /** - * the accept caps query - */ - ACCEPT_CAPS = 40963, - /** - * the caps query - */ - CAPS = 43523, - /** - * wait till all serialized data is consumed downstream - */ - DRAIN = 46086, - /** - * query the pipeline-local context from - * downstream or upstream (since 1.2) - */ - CONTEXT = 48643, - /** - * the bitrate query (since 1.16) - */ - BITRATE = 51202, -} -alias GstQueryType QueryType; - -/** - * #GstQueryTypeFlags indicate the aspects of the different #GstQueryType - * values. You can get the type flags of a #GstQueryType with the - * gst_query_type_get_flags() function. - */ -public enum GstQueryTypeFlags -{ - /** - * Set if the query can travel upstream. - */ - UPSTREAM = 1, - /** - * Set if the query can travel downstream. - */ - DOWNSTREAM = 2, - /** - * Set if the query should be serialized with data - * flow. - */ - SERIALIZED = 4, -} -alias GstQueryTypeFlags QueryTypeFlags; - -/** - * Element priority ranks. Defines the order in which the autoplugger (or - * similar rank-picking mechanisms, such as e.g. gst_element_make_from_uri()) - * will choose this element over an alternative one with the same function. - * - * These constants serve as a rough guidance for defining the rank of a - * #GstPluginFeature. Any value is valid, including values bigger than - * @GST_RANK_PRIMARY. - */ -public enum GstRank -{ - /** - * will be chosen last or not at all - */ - NONE = 0, - /** - * unlikely to be chosen - */ - MARGINAL = 64, - /** - * likely to be chosen - */ - SECONDARY = 128, - /** - * will be chosen first - */ - PRIMARY = 256, -} -alias GstRank Rank; - -/** - * Resource errors are for any resource used by an element: - * memory, files, network connections, process space, ... - * They're typically used by source and sink elements. - */ -public enum GstResourceError -{ - /** - * a general error which doesn't fit in any other - * category. Make sure you add a custom message to the error call. - */ - FAILED = 1, - /** - * do not use this except as a placeholder for - * deciding where to go while developing code. - */ - TOO_LAZY = 2, - /** - * used when the resource could not be found. - */ - NOT_FOUND = 3, - /** - * used when resource is busy. - */ - BUSY = 4, - /** - * used when resource fails to open for reading. - */ - OPEN_READ = 5, - /** - * used when resource fails to open for writing. - */ - OPEN_WRITE = 6, - /** - * used when resource cannot be opened for - * both reading and writing, or either (but unspecified which). - */ - OPEN_READ_WRITE = 7, - /** - * used when the resource can't be closed. - */ - CLOSE = 8, - /** - * used when the resource can't be read from. - */ - READ = 9, - /** - * used when the resource can't be written to. - */ - WRITE = 10, - /** - * used when a seek on the resource fails. - */ - SEEK = 11, - /** - * used when a synchronize on the resource fails. - */ - SYNC = 12, - /** - * used when settings can't be manipulated on. - */ - SETTINGS = 13, - /** - * used when the resource has no space left. - */ - NO_SPACE_LEFT = 14, - /** - * used when the resource can't be opened - * due to missing authorization. - * (Since: 1.2.4) - */ - NOT_AUTHORIZED = 15, - /** - * the number of resource error types. - */ - NUM_ERRORS = 16, -} -alias GstResourceError ResourceError; - -/** - * The different scheduling flags. - */ -public enum GstSchedulingFlags -{ - /** - * if seeking is possible - */ - SEEKABLE = 1, - /** - * if sequential access is recommended - */ - SEQUENTIAL = 2, - /** - * if bandwidth is limited and buffering possible (since 1.2) - */ - BANDWIDTH_LIMITED = 4, -} -alias GstSchedulingFlags SchedulingFlags; - -/** - * The different search modes. - */ -public enum GstSearchMode -{ - /** - * Only search for exact matches. - */ - EXACT = 0, - /** - * Search for an exact match or the element just before. - */ - BEFORE = 1, - /** - * Search for an exact match or the element just after. - */ - AFTER = 2, -} -alias GstSearchMode SearchMode; - -/** - * Flags to be used with gst_element_seek() or gst_event_new_seek(). All flags - * can be used together. - * - * A non flushing seek might take some time to perform as the currently - * playing data in the pipeline will not be cleared. - * - * An accurate seek might be slower for formats that don't have any indexes - * or timestamp markers in the stream. Specifying this flag might require a - * complete scan of the file in those cases. - * - * When performing a segment seek: after the playback of the segment completes, - * no EOS will be emitted by the element that performed the seek, but a - * %GST_MESSAGE_SEGMENT_DONE message will be posted on the bus by the element. - * When this message is posted, it is possible to send a new seek event to - * continue playback. With this seek method it is possible to perform seamless - * looping or simple linear editing. - * - * When only changing the playback rate and not the direction, the - * %GST_SEEK_FLAG_INSTANT_RATE_CHANGE flag can be used for a non-flushing seek - * to signal that the rate change should be applied immediately. This requires - * special support in the seek handlers (e.g. demuxers) and any elements - * synchronizing to the clock, and in general can't work in all cases (for example - * UDP streaming where the delivery rate is controlled by a remote server). The - * instant-rate-change mode supports changing the trickmode-related GST_SEEK_ flags, - * but can't be used in conjunction with other seek flags that affect the new - * playback position - as the playback position will not be changing. - * - * When doing fast forward (rate > 1.0) or fast reverse (rate < -1.0) trickmode - * playback, the %GST_SEEK_FLAG_TRICKMODE flag can be used to instruct decoders - * and demuxers to adjust the playback rate by skipping frames. This can improve - * performance and decrease CPU usage because not all frames need to be decoded. - * - * Beyond that, the %GST_SEEK_FLAG_TRICKMODE_KEY_UNITS flag can be used to - * request that decoders skip all frames except key units, and - * %GST_SEEK_FLAG_TRICKMODE_NO_AUDIO flags can be used to request that audio - * decoders do no decoding at all, and simple output silence. - * - * The %GST_SEEK_FLAG_SNAP_BEFORE flag can be used to snap to the previous - * relevant location, and the %GST_SEEK_FLAG_SNAP_AFTER flag can be used to - * select the next relevant location. If %GST_SEEK_FLAG_KEY_UNIT is specified, - * the relevant location is a keyframe. If both flags are specified, the nearest - * of these locations will be selected. If none are specified, the implementation is - * free to select whichever it wants. - * - * The before and after here are in running time, so when playing backwards, - * the next location refers to the one that will played in next, and not the - * one that is located after in the actual source stream. - * - * Also see part-seeking.txt in the GStreamer design documentation for more - * details on the meaning of these flags and the behaviour expected of - * elements that handle them. - */ -public enum GstSeekFlags -{ - /** - * no flag - */ - NONE = 0, - /** - * flush pipeline - */ - FLUSH = 1, - /** - * accurate position is requested, this might - * be considerably slower for some formats. - */ - ACCURATE = 2, - /** - * seek to the nearest keyframe. This might be - * faster but less accurate. - */ - KEY_UNIT = 4, - /** - * perform a segment seek. - */ - SEGMENT = 8, - /** - * when doing fast forward or fast reverse playback, allow - * elements to skip frames instead of generating all - * frames. (Since: 1.6) - */ - TRICKMODE = 16, - /** - * Deprecated backward compatibility flag, replaced - * by %GST_SEEK_FLAG_TRICKMODE - */ - SKIP = 16, - /** - * go to a location before the requested position, - * if %GST_SEEK_FLAG_KEY_UNIT this means the keyframe at or before - * the requested position the one at or before the seek target. - */ - SNAP_BEFORE = 32, - /** - * go to a location after the requested position, - * if %GST_SEEK_FLAG_KEY_UNIT this means the keyframe at of after the - * requested position. - */ - SNAP_AFTER = 64, - /** - * go to a position near the requested position, - * if %GST_SEEK_FLAG_KEY_UNIT this means the keyframe closest - * to the requested position, if both keyframes are at an equal - * distance, behaves like %GST_SEEK_FLAG_SNAP_BEFORE. - */ - SNAP_NEAREST = 96, - /** - * when doing fast forward or fast reverse - * playback, request that elements only decode keyframes - * and skip all other content, for formats that have - * keyframes. (Since: 1.6) - */ - TRICKMODE_KEY_UNITS = 128, - /** - * when doing fast forward or fast reverse - * playback, request that audio decoder elements skip - * decoding and output only gap events or silence. (Since: 1.6) - */ - TRICKMODE_NO_AUDIO = 256, - /** - * When doing fast forward or fast reverse - * playback, request that elements only decode keyframes and - * forward predicted frames and skip all other content (for example - * B-Frames), for formats that have keyframes and forward predicted - * frames. (Since: 1.18) - */ - TRICKMODE_FORWARD_PREDICTED = 512, - /** - * Signals that a rate change should be - * applied immediately. Only valid if start/stop position - * are GST_CLOCK_TIME_NONE, the playback direction does not change - * and the seek is not flushing. (Since: 1.18) - */ - INSTANT_RATE_CHANGE = 1024, -} -alias GstSeekFlags SeekFlags; - -/** - * The different types of seek events. When constructing a seek event with - * gst_event_new_seek() or when doing gst_segment_do_seek (). - */ -public enum GstSeekType -{ - /** - * no change in position is required - */ - NONE = 0, - /** - * absolute position is requested - */ - SET = 1, - /** - * relative position to duration is requested - */ - END = 2, -} -alias GstSeekType SeekType; - -/** - * Flags for the GstSegment structure. Currently mapped to the corresponding - * values of the seek flags. - */ -public enum GstSegmentFlags -{ - /** - * no flags - */ - NONE = 0, - /** - * reset the pipeline running_time to the segment - * running_time - */ - RESET = 1, - /** - * perform skip playback (Since: 1.6) - */ - TRICKMODE = 16, - /** - * Deprecated backward compatibility flag, replaced - * by @GST_SEGMENT_FLAG_TRICKMODE - */ - SKIP = 16, - /** - * send SEGMENT_DONE instead of EOS - */ - SEGMENT = 8, - /** - * Decode only keyframes, where - * possible (Since: 1.6) - */ - TRICKMODE_KEY_UNITS = 128, - /** - * Decode only keyframes or forward - * predicted frames, where possible (Since: 1.18) - */ - TRICKMODE_FORWARD_PREDICTED = 512, - /** - * Do not decode any audio, where - * possible (Since: 1.6) - */ - TRICKMODE_NO_AUDIO = 256, -} -alias GstSegmentFlags SegmentFlags; - -public enum GstStackTraceFlags -{ - /** - * Try to retrieve the minimum information - * available, which may be none on some platforms - * (Since: 1.18) - */ - NONE = 0, - /** - * Try to retrieve as much information as possible, - * including source information when getting the - * stack trace - */ - FULL = 1, -} -alias GstStackTraceFlags StackTraceFlags; - -/** - * The possible states an element can be in. States can be changed using - * gst_element_set_state() and checked using gst_element_get_state(). - */ -public enum GstState -{ - /** - * no pending state. - */ - VOID_PENDING = 0, - /** - * the NULL state or initial state of an element. - */ - NULL = 1, - /** - * the element is ready to go to PAUSED. - */ - READY = 2, - /** - * the element is PAUSED, it is ready to accept and - * process data. Sink elements however only accept one - * buffer and then block. - */ - PAUSED = 3, - /** - * the element is PLAYING, the #GstClock is running and - * the data is flowing. - */ - PLAYING = 4, -} -alias GstState State; - -/** - * These are the different state changes an element goes through. - * %GST_STATE_NULL ⇒ %GST_STATE_PLAYING is called an upwards state change - * and %GST_STATE_PLAYING ⇒ %GST_STATE_NULL a downwards state change. - */ -public enum GstStateChange -{ - /** - * state change from NULL to READY. - * * The element must check if the resources it needs are available. Device - * sinks and -sources typically try to probe the device to constrain their - * caps. - * * The element opens the device (in case feature need to be probed). - */ - NULL_TO_READY = 10, - /** - * state change from READY to PAUSED. - * * The element pads are activated in order to receive data in PAUSED. - * Streaming threads are started. - * * Some elements might need to return %GST_STATE_CHANGE_ASYNC and complete - * the state change when they have enough information. It is a requirement - * for sinks to return %GST_STATE_CHANGE_ASYNC and complete the state change - * when they receive the first buffer or %GST_EVENT_EOS (preroll). - * Sinks also block the dataflow when in PAUSED. - * * A pipeline resets the running_time to 0. - * * Live sources return %GST_STATE_CHANGE_NO_PREROLL and don't generate data. - */ - READY_TO_PAUSED = 19, - /** - * state change from PAUSED to PLAYING. - * * Most elements ignore this state change. - * * The pipeline selects a #GstClock and distributes this to all the children - * before setting them to PLAYING. This means that it is only allowed to - * synchronize on the #GstClock in the PLAYING state. - * * The pipeline uses the #GstClock and the running_time to calculate the - * base_time. The base_time is distributed to all children when performing - * the state change. - * * Sink elements stop blocking on the preroll buffer or event and start - * rendering the data. - * * Sinks can post %GST_MESSAGE_EOS in the PLAYING state. It is not allowed - * to post %GST_MESSAGE_EOS when not in the PLAYING state. - * * While streaming in PAUSED or PLAYING elements can create and remove - * sometimes pads. - * * Live sources start generating data and return %GST_STATE_CHANGE_SUCCESS. - */ - PAUSED_TO_PLAYING = 28, - /** - * state change from PLAYING to PAUSED. - * * Most elements ignore this state change. - * * The pipeline calculates the running_time based on the last selected - * #GstClock and the base_time. It stores this information to continue - * playback when going back to the PLAYING state. - * * Sinks unblock any #GstClock wait calls. - * * When a sink does not have a pending buffer to play, it returns - * #GST_STATE_CHANGE_ASYNC from this state change and completes the state - * change when it receives a new buffer or an %GST_EVENT_EOS. - * * Any queued %GST_MESSAGE_EOS items are removed since they will be reposted - * when going back to the PLAYING state. The EOS messages are queued in - * #GstBin containers. - * * Live sources stop generating data and return %GST_STATE_CHANGE_NO_PREROLL. - */ - PLAYING_TO_PAUSED = 35, - /** - * state change from PAUSED to READY. - * * Sinks unblock any waits in the preroll. - * * Elements unblock any waits on devices - * * Chain or get_range functions return %GST_FLOW_FLUSHING. - * * The element pads are deactivated so that streaming becomes impossible and - * all streaming threads are stopped. - * * The sink forgets all negotiated formats - * * Elements remove all sometimes pads - */ - PAUSED_TO_READY = 26, - /** - * state change from READY to NULL. - * * Elements close devices - * * Elements reset any internal state. - */ - READY_TO_NULL = 17, - /** - * state change from NULL to NULL. (Since: 1.14) - */ - NULL_TO_NULL = 9, - /** - * state change from READY to READY, - * This might happen when going to PAUSED asynchronously failed, in that case - * elements should make sure they are in a proper, coherent READY state. (Since: 1.14) - */ - READY_TO_READY = 18, - /** - * state change from PAUSED to PAUSED. - * This might happen when elements were in PLAYING state and 'lost state', - * they should make sure to go back to real 'PAUSED' state (prerolling for example). (Since: 1.14) - */ - PAUSED_TO_PAUSED = 27, - /** - * state change from PLAYING to PLAYING. (Since: 1.14) - */ - PLAYING_TO_PLAYING = 36, -} -alias GstStateChange StateChange; - -/** - * The possible return values from a state change function such as - * gst_element_set_state(). Only @GST_STATE_CHANGE_FAILURE is a real failure. - */ -public enum GstStateChangeReturn -{ - /** - * the state change failed - */ - FAILURE = 0, - /** - * the state change succeeded - */ - SUCCESS = 1, - /** - * the state change will happen asynchronously - */ - ASYNC = 2, - /** - * the state change succeeded but the element - * cannot produce data in %GST_STATE_PAUSED. - * This typically happens with live sources. - */ - NO_PREROLL = 3, -} -alias GstStateChangeReturn StateChangeReturn; - -/** - * Stream errors are for anything related to the stream being processed: - * format errors, media type errors, ... - * They're typically used by decoders, demuxers, converters, ... - */ -public enum GstStreamError -{ - /** - * a general error which doesn't fit in any other - * category. Make sure you add a custom message to the error call. - */ - FAILED = 1, - /** - * do not use this except as a placeholder for - * deciding where to go while developing code. - */ - TOO_LAZY = 2, - /** - * use this when you do not want to implement - * this functionality yet. - */ - NOT_IMPLEMENTED = 3, - /** - * used when the element doesn't know the - * stream's type. - */ - TYPE_NOT_FOUND = 4, - /** - * used when the element doesn't handle this type - * of stream. - */ - WRONG_TYPE = 5, - /** - * used when there's no codec to handle the - * stream's type. - */ - CODEC_NOT_FOUND = 6, - /** - * used when decoding fails. - */ - DECODE = 7, - /** - * used when encoding fails. - */ - ENCODE = 8, - /** - * used when demuxing fails. - */ - DEMUX = 9, - /** - * used when muxing fails. - */ - MUX = 10, - /** - * used when the stream is of the wrong format - * (for example, wrong caps). - */ - FORMAT = 11, - /** - * used when the stream is encrypted and can't be - * decrypted because this is not supported by the element. - */ - DECRYPT = 12, - /** - * used when the stream is encrypted and - * can't be decrypted because no suitable key is available. - */ - DECRYPT_NOKEY = 13, - /** - * the number of stream error types. - */ - NUM_ERRORS = 14, -} -alias GstStreamError StreamError; - -public enum GstStreamFlags -{ - /** - * This stream has no special attributes - */ - NONE = 0, - /** - * This stream is a sparse stream (e.g. a subtitle - * stream), data may flow only in irregular intervals with large gaps in - * between. - */ - SPARSE = 1, - /** - * This stream should be selected by default. This - * flag may be used by demuxers to signal that a stream should be selected - * by default in a playback scenario. - */ - SELECT = 2, - /** - * This stream should not be selected by default. - * This flag may be used by demuxers to signal that a stream should not - * be selected by default in a playback scenario, but only if explicitly - * selected by the user (e.g. an audio track for the hard of hearing or - * a director's commentary track). - */ - UNSELECT = 4, -} -alias GstStreamFlags StreamFlags; - -/** - * The type of a %GST_MESSAGE_STREAM_STATUS. The stream status messages inform the - * application of new streaming threads and their status. - */ -public enum GstStreamStatusType -{ - /** - * A new thread need to be created. - */ - CREATE = 0, - /** - * a thread entered its loop function - */ - ENTER = 1, - /** - * a thread left its loop function - */ - LEAVE = 2, - /** - * a thread is destroyed - */ - DESTROY = 3, - /** - * a thread is started - */ - START = 8, - /** - * a thread is paused - */ - PAUSE = 9, - /** - * a thread is stopped - */ - STOP = 10, -} -alias GstStreamStatusType StreamStatusType; - -/** - * #GstStreamType describes a high level classification set for - * flows of data in #GstStream objects. - * - * Note that this is a flag, and therefore users should not assume it - * will be a single value. Do not use the equality operator for checking - * whether a stream is of a certain type. - * - * Since: 1.10 - */ -public enum GstStreamType -{ - /** - * The stream is of unknown (unclassified) type. - */ - UNKNOWN = 1, - /** - * The stream is of audio data - */ - AUDIO = 2, - /** - * The stream carries video data - */ - VIDEO = 4, - /** - * The stream is a muxed container type - */ - CONTAINER = 8, - /** - * The stream contains subtitle / subpicture data. - */ - TEXT = 16, -} -alias GstStreamType StreamType; - -/** - * The type of a %GST_MESSAGE_STRUCTURE_CHANGE. - */ -public enum GstStructureChangeType -{ - /** - * Pad linking is starting or done. - */ - LINK = 0, - /** - * Pad unlinking is starting or done. - */ - UNLINK = 1, -} -alias GstStructureChangeType StructureChangeType; - -/** - * Extra tag flags used when registering tags. - */ -public enum GstTagFlag -{ - /** - * undefined flag - */ - UNDEFINED = 0, - /** - * tag is meta data - */ - META = 1, - /** - * tag is encoded - */ - ENCODED = 2, - /** - * tag is decoded - */ - DECODED = 3, - /** - * number of tag flags - */ - COUNT = 4, -} -alias GstTagFlag TagFlag; - -/** - * The different tag merging modes are basically replace, overwrite and append, - * but they can be seen from two directions. Given two taglists: (A) the tags - * already in the element and (B) the ones that are supplied to the element ( - * e.g. via gst_tag_setter_merge_tags() / gst_tag_setter_add_tags() or a - * %GST_EVENT_TAG), how are these tags merged? - * In the table below this is shown for the cases that a tag exists in the list - * (A) or does not exists (!A) and combinations thereof. - * - * | merge mode | A + B | A + !B | !A + B | !A + !B | - * | ----------- | ----- | ------ | ------ | ------- | - * | REPLACE_ALL | B | ø | B | ø | - * | REPLACE | B | A | B | ø | - * | APPEND | A, B | A | B | ø | - * | PREPEND | B, A | A | B | ø | - * | KEEP | A | A | B | ø | - * | KEEP_ALL | A | A | ø | ø | - */ -public enum GstTagMergeMode -{ - /** - * undefined merge mode - */ - UNDEFINED = 0, - /** - * replace all tags (clear list and append) - */ - REPLACE_ALL = 1, - /** - * replace tags - */ - REPLACE = 2, - /** - * append tags - */ - APPEND = 3, - /** - * prepend tags - */ - PREPEND = 4, - /** - * keep existing tags - */ - KEEP = 5, - /** - * keep all existing tags - */ - KEEP_ALL = 6, - /** - * the number of merge modes - */ - COUNT = 7, -} -alias GstTagMergeMode TagMergeMode; - -/** - * GstTagScope specifies if a taglist applies to the complete - * medium or only to one single stream. - */ -public enum GstTagScope -{ - /** - * tags specific to this single stream - */ - STREAM = 0, - /** - * global tags for the complete medium - */ - GLOBAL = 1, -} -alias GstTagScope TagScope; - -/** - * The different states a task can be in - */ -public enum GstTaskState -{ - /** - * the task is started and running - */ - STARTED = 0, - /** - * the task is stopped - */ - STOPPED = 1, - /** - * the task is paused - */ - PAUSED = 2, -} -alias GstTaskState TaskState; - -/** - * The different types of TOC entries (see #GstTocEntry). - * - * There are two types of TOC entries: alternatives or parts in a sequence. - */ -public enum GstTocEntryType -{ - /** - * entry is an angle (i.e. an alternative) - */ - ANGLE = -3, - /** - * entry is a version (i.e. alternative) - */ - VERSION = -2, - /** - * entry is an edition (i.e. alternative) - */ - EDITION = -1, - /** - * invalid entry type value - */ - INVALID = 0, - /** - * entry is a title (i.e. a part of a sequence) - */ - TITLE = 1, - /** - * entry is a track (i.e. a part of a sequence) - */ - TRACK = 2, - /** - * entry is a chapter (i.e. a part of a sequence) - */ - CHAPTER = 3, -} -alias GstTocEntryType TocEntryType; - -/** - * How a #GstTocEntry should be repeated. By default, entries are played a - * single time. - * - * Since: 1.4 - */ -public enum GstTocLoopType -{ - /** - * single forward playback - */ - NONE = 0, - /** - * repeat forward - */ - FORWARD = 1, - /** - * repeat backward - */ - REVERSE = 2, - /** - * repeat forward and backward - */ - PING_PONG = 3, -} -alias GstTocLoopType TocLoopType; - -/** - * The scope of a TOC. - */ -public enum GstTocScope -{ - /** - * global TOC representing all selectable options - * (this is what applications are usually interested in) - */ - GLOBAL = 1, - /** - * TOC for the currently active/selected stream - * (this is a TOC representing the current stream from start to EOS, - * and is what a TOC writer / muxer is usually interested in; it will - * usually be a subset of the global TOC, e.g. just the chapters of - * the current title, or the chapters selected for playback from the - * current title) - */ - CURRENT = 2, -} -alias GstTocScope TocScope; - -/** - * Flag that describe the value. These flags help applications processing the - * logs to understand the values. - */ -public enum GstTracerValueFlags -{ - /** - * no flags - */ - NONE = 0, - /** - * the value is optional. When using this flag - * one need to have an additional boolean arg before this value in the - * var-args list passed to gst_tracer_record_log(). - */ - OPTIONAL = 1, - /** - * the value is a combined figure, since the - * start of tracing. Examples are averages or timestamps. - */ - AGGREGATED = 2, -} -alias GstTracerValueFlags TracerValueFlags; - -/** - * Tracing record will contain fields that contain a measured value or extra - * meta-data. One such meta data are values that tell where a measurement was - * taken. This enumerating declares to which scope such a meta data field - * relates to. If it is e.g. %GST_TRACER_VALUE_SCOPE_PAD, then each of the log - * events may contain values for different #GstPads. - * - * Since: 1.8 - */ -public enum GstTracerValueScope -{ - /** - * the value is related to the process - */ - PROCESS = 0, - /** - * the value is related to a thread - */ - THREAD = 1, - /** - * the value is related to an #GstElement - */ - ELEMENT = 2, - /** - * the value is related to a #GstPad - */ - PAD = 3, -} -alias GstTracerValueScope TracerValueScope; - -/** - * The probability of the typefind function. Higher values have more certainty - * in doing a reliable typefind. - */ -public enum GstTypeFindProbability -{ - /** - * type undetected. - */ - NONE = 0, - /** - * unlikely typefind. - */ - MINIMUM = 1, - /** - * possible type detected. - */ - POSSIBLE = 50, - /** - * likely a type was detected. - */ - LIKELY = 80, - /** - * nearly certain that a type was detected. - */ - NEARLY_CERTAIN = 99, - /** - * very certain a type was detected. - */ - MAXIMUM = 100, -} -alias GstTypeFindProbability TypeFindProbability; - -/** - * Different URI-related errors that can occur. - */ -public enum GstURIError -{ - /** - * The protocol is not supported - */ - UNSUPPORTED_PROTOCOL = 0, - /** - * There was a problem with the URI - */ - BAD_URI = 1, - /** - * Could not set or change the URI because the - * URI handler was in a state where that is not possible or not permitted - */ - BAD_STATE = 2, - /** - * There was a problem with the entity that - * the URI references - */ - BAD_REFERENCE = 3, -} -alias GstURIError URIError; - -/** - * The different types of URI direction. - */ -public enum GstURIType -{ - /** - * The URI direction is unknown - */ - UNKNOWN = 0, - /** - * The URI is a consumer. - */ - SINK = 1, - /** - * The URI is a producer. - */ - SRC = 2, -} -alias GstURIType URIType; - -struct GstAllocationParams -{ - /** - * flags to control allocation - */ - GstMemoryFlags flags; - /** - * the desired alignment of the memory - */ - size_t align_; - /** - * the desired prefix - */ - size_t prefix; - /** - * the desired padding - */ - size_t padding; - void*[4] GstReserved; -} - -struct GstAllocator -{ - GstObject object; - const(char)* memType; - /** - * the implementation of the GstMemoryMapFunction - */ - GstMemoryMapFunction memMap; - /** - * the implementation of the GstMemoryUnmapFunction - */ - GstMemoryUnmapFunction memUnmap; - /** - * the implementation of the GstMemoryCopyFunction - */ - GstMemoryCopyFunction memCopy; - /** - * the implementation of the GstMemoryShareFunction - */ - GstMemoryShareFunction memShare; - /** - * the implementation of the GstMemoryIsSpanFunction - */ - GstMemoryIsSpanFunction memIsSpan; - /** - * the implementation of the GstMemoryMapFullFunction. - * Will be used instead of @mem_map if present. (Since: 1.6) - */ - GstMemoryMapFullFunction memMapFull; - /** - * the implementation of the GstMemoryUnmapFullFunction. - * Will be used instead of @mem_unmap if present. (Since: 1.6) - */ - GstMemoryUnmapFullFunction memUnmapFull; - void*[2] GstReserved; - GstAllocatorPrivate* priv; -} - -/** - * The #GstAllocator is used to create new memory. - */ -struct GstAllocatorClass -{ - /** - * Object parent class - */ - GstObjectClass objectClass; - /** - * - * Params: - * allocator = a #GstAllocator to use - * size = size of the visible memory area - * params = optional parameters - * Returns: a new #GstMemory. - */ - extern(C) GstMemory* function(GstAllocator* allocator, size_t size, GstAllocationParams* params) alloc; - /** */ - extern(C) void function(GstAllocator* allocator, GstMemory* memory) free; - void*[4] GstReserved; -} - -struct GstAllocatorPrivate; - -struct GstAtomicQueue; - -struct GstBin -{ - GstElement element; - /** - * the number of children in this bin - */ - int numchildren; - /** - * the list of children in this bin - */ - GList* children; - /** - * updated whenever @children changes - */ - uint childrenCookie; - /** - * internal bus for handling child messages - */ - GstBus* childBus; - /** - * queued and cached messages - */ - GList* messages; - /** - * the bin is currently calculating its state - */ - bool polling; - /** - * the bin needs to recalculate its state (deprecated) - */ - bool stateDirty; - /** - * the bin needs to select a new clock - */ - bool clockDirty; - /** - * the last clock selected - */ - GstClock* providedClock; - /** - * the element that provided @provided_clock - */ - GstElement* clockProvider; - GstBinPrivate* priv; - void*[4] GstReserved; -} - -/** - * Subclasses can override the @add_element and @remove_element to - * update the list of children in the bin. - * - * The @handle_message method can be overridden to implement custom - * message handling. @handle_message takes ownership of the message, just like - * #gst_element_post_message. - * - * The @deep_element_added vfunc will be called when a new element has been - * added to any bin inside this bin, so it will also be called if a new child - * was added to a sub-bin of this bin. #GstBin implementations that override - * this message should chain up to the parent class implementation so the - * #GstBin::deep-element-added signal is emitted on all parents. - */ -struct GstBinClass -{ - /** - * bin parent class - */ - GstElementClass parentClass; - GThreadPool* pool; - /** */ - extern(C) void function(GstBin* bin, GstElement* child) elementAdded; - /** */ - extern(C) void function(GstBin* bin, GstElement* child) elementRemoved; - /** */ - extern(C) int function(GstBin* bin, GstElement* element) addElement; - /** */ - extern(C) int function(GstBin* bin, GstElement* element) removeElement; - /** */ - extern(C) void function(GstBin* bin, GstMessage* message) handleMessage; - /** */ - extern(C) int function(GstBin* bin) doLatency; - /** */ - extern(C) void function(GstBin* bin, GstBin* subBin, GstElement* child) deepElementAdded; - /** */ - extern(C) void function(GstBin* bin, GstBin* subBin, GstElement* child) deepElementRemoved; - void*[2] GstReserved; -} - -struct GstBinPrivate; - -struct GstBitmask; - -struct GstBuffer -{ - /** - * the parent structure - */ - GstMiniObject miniObject; - /** - * pointer to the pool owner of the buffer - */ - GstBufferPool* pool; - /** - * presentation timestamp of the buffer, can be #GST_CLOCK_TIME_NONE when the - * pts is not known or relevant. The pts contains the timestamp when the - * media should be presented to the user. - */ - GstClockTime pts; - /** - * decoding timestamp of the buffer, can be #GST_CLOCK_TIME_NONE when the - * dts is not known or relevant. The dts contains the timestamp when the - * media should be processed. - */ - GstClockTime dts; - /** - * duration in time of the buffer data, can be #GST_CLOCK_TIME_NONE - * when the duration is not known or relevant. - */ - GstClockTime duration; - /** - * a media specific offset for the buffer data. - * For video frames, this is the frame number of this buffer. - * For audio samples, this is the offset of the first sample in this buffer. - * For file data or compressed data this is the byte offset of the first - * byte in this buffer. - */ - ulong offset; - /** - * the last offset contained in this buffer. It has the same - * format as @offset. - */ - ulong offsetEnd; -} - -struct GstBufferList; - -struct GstBufferPool -{ - GstObject object; - int flushing; - GstBufferPoolPrivate* priv; - void*[4] GstReserved; -} - -/** - * Parameters passed to the gst_buffer_pool_acquire_buffer() function to control the - * allocation of the buffer. - * - * The default implementation ignores the @start and @stop members but other - * implementations can use this extra information to decide what buffer to - * return. - */ -struct GstBufferPoolAcquireParams -{ - /** - * the format of @start and @stop - */ - GstFormat format; - /** - * the start position - */ - long start; - /** - * the stop position - */ - long stop; - /** - * additional flags - */ - GstBufferPoolAcquireFlags flags; - void*[4] GstReserved; -} - -/** - * The GstBufferPool class. - */ -struct GstBufferPoolClass -{ - /** - * Object parent class - */ - GstObjectClass objectClass; - /** - * - * Params: - * pool = a #GstBufferPool - * Returns: a %NULL terminated array - * of strings. - */ - extern(C) char** function(GstBufferPool* pool) getOptions; - /** - * - * Params: - * pool = a #GstBufferPool - * config = a #GstStructure - * Returns: %TRUE when the configuration could be set. - */ - extern(C) int function(GstBufferPool* pool, GstStructure* config) setConfig; - /** */ - extern(C) int function(GstBufferPool* pool) start; - /** */ - extern(C) int function(GstBufferPool* pool) stop; - /** - * - * Params: - * pool = a #GstBufferPool - * buffer = a location for a #GstBuffer - * params = parameters. - * Returns: a #GstFlowReturn such as %GST_FLOW_FLUSHING when the pool is - * inactive. - */ - extern(C) GstFlowReturn function(GstBufferPool* pool, GstBuffer** buffer, GstBufferPoolAcquireParams* params) acquireBuffer; - /** */ - extern(C) GstFlowReturn function(GstBufferPool* pool, GstBuffer** buffer, GstBufferPoolAcquireParams* params) allocBuffer; - /** */ - extern(C) void function(GstBufferPool* pool, GstBuffer* buffer) resetBuffer; - /** */ - extern(C) void function(GstBufferPool* pool, GstBuffer* buffer) releaseBuffer; - /** */ - extern(C) void function(GstBufferPool* pool, GstBuffer* buffer) freeBuffer; - /** */ - extern(C) void function(GstBufferPool* pool) flushStart; - /** */ - extern(C) void function(GstBufferPool* pool) flushStop; - void*[2] GstReserved; -} - -struct GstBufferPoolPrivate; - -struct GstBus -{ - GstObject object; - GstBusPrivate* priv; - void*[4] GstReserved; -} - -struct GstBusClass -{ - GstObjectClass parentClass; - /** */ - extern(C) void function(GstBus* bus, GstMessage* message) message; - /** */ - extern(C) void function(GstBus* bus, GstMessage* message) syncMessage; - void*[4] GstReserved; -} - -struct GstBusPrivate; - -struct GstCaps -{ - /** - * the parent type - */ - GstMiniObject miniObject; -} - -struct GstCapsFeatures; - -struct GstChildProxy; - -/** - * #GstChildProxy interface. - */ -struct GstChildProxyInterface -{ - /** - * parent interface type. - */ - GTypeInterface parent; - /** - * - * Params: - * parent = the parent object to get the child from - * name = the child's name - * Returns: the child object or %NULL if - * not found. Unref after usage. - * - * MT safe. - */ - extern(C) GObject* function(GstChildProxy* parent, const(char)* name) getChildByName; - /** - * - * Params: - * parent = the parent object to get the child from - * index = the child's position in the child list - * Returns: the child object or %NULL if - * not found (index too high). Unref after usage. - * - * MT safe. - */ - extern(C) GObject* function(GstChildProxy* parent, uint index) getChildByIndex; - /** - * - * Params: - * parent = the parent object - * Returns: the number of child objects - * - * MT safe. - */ - extern(C) uint function(GstChildProxy* parent) getChildrenCount; - /** */ - extern(C) void function(GstChildProxy* parent, GObject* child, const(char)* name) childAdded; - /** */ - extern(C) void function(GstChildProxy* parent, GObject* child, const(char)* name) childRemoved; - void*[4] GstReserved; -} - -struct GstClock -{ - GstObject object; - GstClockPrivate* priv; - void*[4] GstReserved; -} - -/** - * GStreamer clock class. Override the vmethods to implement the clock - * functionality. - */ -struct GstClockClass -{ - /** - * the parent class structure - */ - GstObjectClass parentClass; - /** */ - extern(C) GstClockTime function(GstClock* clock, GstClockTime oldResolution, GstClockTime newResolution) changeResolution; - /** - * - * Params: - * clock = a #GstClock - * Returns: the resolution of the clock in units of #GstClockTime. - * - * MT safe. - */ - extern(C) GstClockTime function(GstClock* clock) getResolution; - /** - * - * Params: - * clock = a #GstClock to query - * Returns: the internal time of the clock. Or GST_CLOCK_TIME_NONE when - * given invalid input. - * - * MT safe. - */ - extern(C) GstClockTime function(GstClock* clock) getInternalTime; - /** */ - extern(C) GstClockReturn function(GstClock* clock, GstClockEntry* entry, GstClockTimeDiff* jitter) wait; - /** */ - extern(C) GstClockReturn function(GstClock* clock, GstClockEntry* entry) waitAsync; - /** */ - extern(C) void function(GstClock* clock, GstClockEntry* entry) unschedule; - void*[4] GstReserved; -} - -/** - * All pending timeouts or periodic notifies are converted into - * an entry. - * Note that GstClockEntry should be treated as an opaque structure. It must - * not be extended or allocated using a custom allocator. - */ -struct GstClockEntry -{ - /** - * reference counter (read-only) - */ - int refcount; - GstClock* clock; - GstClockEntryType type; - GstClockTime time; - GstClockTime interval; - GstClockReturn status; - GstClockCallback func; - void* userData; - GDestroyNotify destroyData; - bool unscheduled; - bool wokenUp; - void*[4] GstReserved; -} - -struct GstClockPrivate; - -struct GstContext; - -struct GstControlBinding -{ - GstObject parent; - /** - * name of the property of this binding - */ - char* name; - /** - * #GParamSpec for this property - */ - GParamSpec* pspec; - GstObject* object; - bool disabled; - union ABI - { - struct Abi - { - GstControlBindingPrivate* priv; - } - Abi abi; - void*[4] GstReserved; - } - ABI abi; -} - -/** - * The class structure of #GstControlBinding. - */ -struct GstControlBindingClass -{ - /** - * Parent class - */ - GstObjectClass parentClass; - /** - * - * Params: - * binding = the control binding - * object = the object that has controlled properties - * timestamp = the time that should be processed - * lastSync = the last time this was called - * Returns: %TRUE if the controller value could be applied to the object - * property, %FALSE otherwise - */ - extern(C) int function(GstControlBinding* binding, GstObject* object, GstClockTime timestamp, GstClockTime lastSync) syncValues; - /** - * - * Params: - * binding = the control binding - * timestamp = the time the control-change should be read from - * Returns: the GValue of the property at the given time, - * or %NULL if the property isn't controlled. - */ - extern(C) GValue* function(GstControlBinding* binding, GstClockTime timestamp) getValue; - /** - * - * Params: - * binding = the control binding - * timestamp = the time that should be processed - * interval = the time spacing between subsequent values - * nValues = the number of values - * values = array to put control-values in - * Returns: %TRUE if the given array could be filled, %FALSE otherwise - */ - extern(C) int function(GstControlBinding* binding, GstClockTime timestamp, GstClockTime interval, uint nValues, void* values) getValueArray; - /** - * - * Params: - * binding = the control binding - * timestamp = the time that should be processed - * interval = the time spacing between subsequent values - * nValues = the number of values - * values = array to put control-values in - * Returns: %TRUE if the given array could be filled, %FALSE otherwise - */ - extern(C) int function(GstControlBinding* binding, GstClockTime timestamp, GstClockTime interval, uint nValues, GValue* values) getGValueArray; - void*[4] GstReserved; -} - -struct GstControlBindingPrivate; - -struct GstControlSource -{ - GstObject parent; - /** - * Function for returning a value for a given timestamp - */ - GstControlSourceGetValue getValue; - /** - * Function for returning a values array for a given timestamp - */ - GstControlSourceGetValueArray getValueArray; - void*[4] GstReserved; -} - -/** - * The class structure of #GstControlSource. - */ -struct GstControlSourceClass -{ - /** - * Parent class - */ - GstObjectClass parentClass; - void*[4] GstReserved; -} - -struct GstDateTime; - -struct GstDebugCategory -{ - int threshold; - uint color; - const(char)* name; - const(char)* description; -} - -struct GstDebugMessage; - -struct GstDevice -{ - /** - * The parent #GstObject structure. - */ - GstObject parent; - GstDevicePrivate* priv; - void*[4] GstReserved; -} - -/** - * The class structure for a #GstDevice object. - * - * Since: 1.4 - */ -struct GstDeviceClass -{ - /** - * The parent #GstObjectClass structure. - */ - GstObjectClass parentClass; - /** - * - * Params: - * device = a #GstDevice - * name = name of new element, or %NULL to automatically - * create a unique name. - * Returns: a new #GstElement configured to use - * this device - */ - extern(C) GstElement* function(GstDevice* device, const(char)* name) createElement; - /** - * - * Params: - * device = a #GstDevice - * element = a #GstElement - * Returns: %TRUE if the element could be reconfigured to use this device, - * %FALSE otherwise. - */ - extern(C) int function(GstDevice* device, GstElement* element) reconfigureElement; - void*[4] GstReserved; -} - -struct GstDeviceMonitor -{ - /** - * the parent #GstObject structure - */ - GstObject parent; - GstDeviceMonitorPrivate* priv; - void*[4] GstReserved; -} - -/** - * Opaque device monitor class structure. - * - * Since: 1.4 - */ -struct GstDeviceMonitorClass -{ - /** - * the parent #GstObjectClass structure - */ - GstObjectClass parentClass; - void*[4] GstReserved; -} - -struct GstDeviceMonitorPrivate; - -struct GstDevicePrivate; - -struct GstDeviceProvider -{ - /** - * The parent #GstObject - */ - GstObject parent; - /** - * a #GList of the #GstDevice objects - */ - GList* devices; - GstDeviceProviderPrivate* priv; - void*[4] GstReserved; -} - -struct GstDeviceProviderClass -{ - /** - * the parent #GstObjectClass structure - */ - GstObjectClass parentClass; - /** - * a pointer to the #GstDeviceProviderFactory that creates this - * provider - */ - GstDeviceProviderFactory* factory; - /** */ - extern(C) GList* function(GstDeviceProvider* provider) probe; - /** - * - * Params: - * provider = A #GstDeviceProvider - * Returns: %TRUE if the device providering could be started - */ - extern(C) int function(GstDeviceProvider* provider) start; - /** */ - extern(C) void function(GstDeviceProvider* provider) stop; - void* metadata; - void*[4] GstReserved; -} - -struct GstDeviceProviderFactory; - -/** - * The opaque #GstDeviceProviderFactoryClass data structure. - * - * Since: 1.4 - */ -struct GstDeviceProviderFactoryClass; - -struct GstDeviceProviderPrivate; - -struct GstDoubleRange; - -struct GstDynamicTypeFactory; - -struct GstDynamicTypeFactoryClass; - -struct GstElement -{ - GstObject object; - /** - * Used to serialize execution of gst_element_set_state() - */ - GRecMutex stateLock; - /** - * Used to signal completion of a state change - */ - GCond stateCond; - /** - * Used to detect concurrent execution of - * gst_element_set_state() and gst_element_get_state() - */ - uint stateCookie; - /** - * the target state of an element as set by the application - */ - GstState targetState; - /** - * the current state of an element - */ - GstState currentState; - /** - * the next state of an element, can be #GST_STATE_VOID_PENDING if - * the element is in the correct state. - */ - GstState nextState; - /** - * the final state the element should go to, can be - * #GST_STATE_VOID_PENDING if the element is in the correct state - */ - GstState pendingState; - /** - * the last return value of an element state change - */ - GstStateChangeReturn lastReturn; - /** - * the bus of the element. This bus is provided to the element by the - * parent element or the application. A #GstPipeline has a bus of its own. - */ - GstBus* bus; - /** - * the clock of the element. This clock is usually provided to the - * element by the toplevel #GstPipeline. - */ - GstClock* clock; - /** - * the time of the clock right before the element is set to - * PLAYING. Subtracting @base_time from the current clock time in the PLAYING - * state will yield the running_time against the clock. - */ - GstClockTimeDiff baseTime; - /** - * the running_time of the last PAUSED state - */ - GstClockTime startTime; - /** - * number of pads of the element, includes both source and sink pads. - */ - ushort numpads; - /** - * list of pads - */ - GList* pads; - /** - * number of source pads of the element. - */ - ushort numsrcpads; - /** - * list of source pads - */ - GList* srcpads; - /** - * number of sink pads of the element. - */ - ushort numsinkpads; - /** - * list of sink pads - */ - GList* sinkpads; - /** - * updated whenever the a pad is added or removed - */ - uint padsCookie; - /** - * list of contexts - */ - GList* contexts; - void*[3] GstReserved; -} - -struct GstElementClass -{ - /** - * the parent class structure - */ - GstObjectClass parentClass; - /** - * metadata for elements of this class - */ - void* metadata; - /** - * the #GstElementFactory that creates these elements - */ - GstElementFactory* elementfactory; - /** - * a #GList of #GstPadTemplate - */ - GList* padtemplates; - /** - * the number of padtemplates - */ - int numpadtemplates; - /** - * changed whenever the padtemplates change - */ - uint padTemplCookie; - /** */ - extern(C) void function(GstElement* element, GstPad* pad) padAdded; - /** */ - extern(C) void function(GstElement* element, GstPad* pad) padRemoved; - /** */ - extern(C) void function(GstElement* element) noMorePads; - /** - * - * Params: - * element = a #GstElement to find a request pad of. - * templ = a #GstPadTemplate of which we want a pad of. - * name = the name of the request #GstPad - * to retrieve. Can be %NULL. - * caps = the caps of the pad we want to - * request. Can be %NULL. - * Returns: requested #GstPad if found, - * otherwise %NULL. Release after usage. - */ - extern(C) GstPad* function(GstElement* element, GstPadTemplate* templ, const(char)* name, GstCaps* caps) requestNewPad; - /** */ - extern(C) void function(GstElement* element, GstPad* pad) releasePad; - /** - * - * Params: - * element = a #GstElement to get the state of. - * state = a pointer to #GstState to hold the state. - * Can be %NULL. - * pending = a pointer to #GstState to hold the pending - * state. Can be %NULL. - * timeout = a #GstClockTime to specify the timeout for an async - * state change or %GST_CLOCK_TIME_NONE for infinite timeout. - * Returns: %GST_STATE_CHANGE_SUCCESS if the element has no more pending state - * and the last state change succeeded, %GST_STATE_CHANGE_ASYNC if the - * element is still performing a state change or - * %GST_STATE_CHANGE_FAILURE if the last state change failed. - * - * MT safe. - */ - extern(C) GstStateChangeReturn function(GstElement* element, GstState* state, GstState* pending, GstClockTime timeout) getState; - /** - * - * Params: - * element = a #GstElement to change state of. - * state = the element's new #GstState. - * Returns: Result of the state change using #GstStateChangeReturn. - * - * MT safe. - */ - extern(C) GstStateChangeReturn function(GstElement* element, GstState state) setState; - /** - * - * Params: - * element = a #GstElement - * transition = the requested transition - * Returns: the #GstStateChangeReturn of the state transition. - */ - extern(C) GstStateChangeReturn function(GstElement* element, GstStateChange transition) changeState; - /** */ - extern(C) void function(GstElement* element, GstState oldstate, GstState newstate, GstState pending) stateChanged; - /** */ - extern(C) void function(GstElement* element, GstBus* bus) setBus; - /** - * - * Params: - * element = a #GstElement to query - * Returns: the GstClock provided by the - * element or %NULL if no clock could be provided. Unref after usage. - * - * MT safe. - */ - extern(C) GstClock* function(GstElement* element) provideClock; - /** - * - * Params: - * element = a #GstElement to set the clock for. - * clock = the #GstClock to set for the element. - * Returns: %TRUE if the element accepted the clock. An element can refuse a - * clock when it, for example, is not able to slave its internal clock to the - * @clock or when it requires a specific clock to operate. - * - * MT safe. - */ - extern(C) int function(GstElement* element, GstClock* clock) setClock; - /** - * - * Params: - * element = a #GstElement to send the event to. - * event = the #GstEvent to send to the element. - * Returns: %TRUE if the event was handled. Events that trigger a preroll (such - * as flushing seeks and steps) will emit %GST_MESSAGE_ASYNC_DONE. - */ - extern(C) int function(GstElement* element, GstEvent* event) sendEvent; - /** - * - * Params: - * element = a #GstElement to perform the query on. - * query = the #GstQuery. - * Returns: %TRUE if the query could be performed. - * - * MT safe. - */ - extern(C) int function(GstElement* element, GstQuery* query) query; - /** - * - * Params: - * element = a #GstElement posting the message - * message = a #GstMessage to post - * Returns: %TRUE if the message was successfully posted. The function returns - * %FALSE if the element did not have a bus. - * - * MT safe. - */ - extern(C) int function(GstElement* element, GstMessage* message) postMessage; - /** */ - extern(C) void function(GstElement* element, GstContext* context) setContext; - void*[18] GstReserved; -} - -struct GstElementFactory; - -struct GstElementFactoryClass; - -struct GstEvent -{ - /** - * the parent structure - */ - GstMiniObject miniObject; - /** - * the #GstEventType of the event - */ - GstEventType type; - /** - * the timestamp of the event - */ - ulong timestamp; - /** - * the sequence number of the event - */ - uint seqnum; -} - -struct GstFlagSet; - -/** - * A format definition - */ -struct GstFormatDefinition -{ - /** - * The unique id of this format - */ - GstFormat value; - /** - * A short nick of the format - */ - const(char)* nick; - /** - * A longer description of the format - */ - const(char)* description; - /** - * A quark for the nick - */ - GQuark quark; -} - -struct GstFraction; - -struct GstFractionRange; - -struct GstGhostPad -{ - GstProxyPad pad; - GstGhostPadPrivate* priv; -} - -struct GstGhostPadClass -{ - GstProxyPadClass parentClass; - void*[4] GstReserved; -} - -struct GstGhostPadPrivate; - -struct GstInt64Range; - -struct GstIntRange; - -struct GstIterator -{ - /** - * The function to copy the iterator - */ - GstIteratorCopyFunction copy; - /** - * The function to get the next item in the iterator - */ - GstIteratorNextFunction next; - /** - * The function to be called for each item retrieved - */ - GstIteratorItemFunction item; - /** - * The function to call when a resync is needed. - */ - GstIteratorResyncFunction resync; - /** - * The function to call when the iterator is freed - */ - GstIteratorFreeFunction free; - /** - * The iterator that is currently pushed with gst_iterator_push() - */ - GstIterator* pushed; - /** - * The type of the object that this iterator will return - */ - GType type; - /** - * The lock protecting the data structure and the cookie. - */ - GMutex* lock; - /** - * The cookie; the value of the master_cookie when this iterator was - * created. - */ - uint cookie; - /** - * A pointer to the master cookie. - */ - uint* masterCookie; - /** - * the size of the iterator - */ - uint size; - void*[4] GstReserved; -} - -/** - * A structure containing the result of a map operation such as - * gst_memory_map(). It contains the data and size. - */ -struct GstMapInfo -{ - /** - * a pointer to the mapped memory - */ - GstMemory* memory; - /** - * flags used when mapping the memory - */ - GstMapFlags flags; - /** - * a pointer to the mapped data - */ - ubyte* data; - /** - * the valid size in @data - */ - size_t size; - /** - * the maximum bytes in @data - */ - size_t maxsize; - /** - * extra private user_data that the implementation of the memory - * can use to store extra info. - */ - void*[4] userData; - void*[4] GstReserved; -} - -struct GstMemory -{ - /** - * parent structure - */ - GstMiniObject miniObject; - /** - * pointer to the #GstAllocator - */ - GstAllocator* allocator; - /** - * parent memory block - */ - GstMemory* parent; - /** - * the maximum size allocated - */ - size_t maxsize; - /** - * the alignment of the memory - */ - size_t align_; - /** - * the offset where valid data starts - */ - size_t offset; - /** - * the size of valid data - */ - size_t size; -} - -struct GstMessage -{ - /** - * the parent structure - */ - GstMiniObject miniObject; - /** - * the #GstMessageType of the message - */ - GstMessageType type; - /** - * the timestamp of the message - */ - ulong timestamp; - /** - * the src of the message - */ - GstObject* src; - /** - * the sequence number of the message - */ - uint seqnum; - GMutex lock; - GCond cond; -} - -struct GstMeta -{ - /** - * extra flags for the metadata - */ - GstMetaFlags flags; - /** - * pointer to the #GstMetaInfo - */ - GstMetaInfo* info; -} - -/** - * The #GstMetaInfo provides information about a specific metadata - * structure. - */ -struct GstMetaInfo -{ - /** - * tag identifying the metadata structure and api - */ - GType api; - /** - * type identifying the implementor of the api - */ - GType type; - /** - * size of the metadata - */ - size_t size; - /** - * function for initializing the metadata - */ - GstMetaInitFunction initFunc; - /** - * function for freeing the metadata - */ - GstMetaFreeFunction freeFunc; - /** - * function for transforming the metadata - */ - GstMetaTransformFunction transformFunc; -} - -/** - * Extra data passed to a "gst-copy" transform #GstMetaTransformFunction. - */ -struct GstMetaTransformCopy -{ - /** - * %TRUE if only region is copied - */ - bool region; - /** - * the offset to copy, 0 if @region is %FALSE, otherwise > 0 - */ - size_t offset; - /** - * the size to copy, -1 or the buffer size when @region is %FALSE - */ - size_t size; -} - -struct GstMiniObject -{ - /** - * the GType of the object - */ - GType type; - /** - * atomic refcount - */ - int refcount; - /** - * atomic state of the locks - */ - int lockstate; - /** - * extra flags. - */ - uint flags; - /** - * a copy function - */ - GstMiniObjectCopyFunction copy; - /** - * a dispose function - */ - GstMiniObjectDisposeFunction dispose; - /** - * the free function - */ - GstMiniObjectFreeFunction free; - uint privUint; - void* privPointer; -} - -struct GstObject -{ - GObject object; - /** - * object LOCK - */ - GMutex lock; - /** - * The name of the object - */ - char* name; - /** - * this object's parent, weak ref - */ - GstObject* parent; - /** - * flags for this object - */ - uint flags; - GList* controlBindings; - ulong controlRate; - ulong lastSync; - void* GstReserved; -} - -/** - * GStreamer base object class. - */ -struct GstObjectClass -{ - /** - * parent - */ - GObjectClass parentClass; - /** - * separator used by gst_object_get_path_string() - */ - const(char)* pathStringSeparator; - /** */ - extern(C) void function(GstObject* object, GstObject* orig, GParamSpec* pspec) deepNotify; - void*[4] GstReserved; -} - -struct GstPad -{ - GstObject object; - /** - * private data owned by the parent element - */ - void* elementPrivate; - /** - * padtemplate for this pad - */ - GstPadTemplate* padtemplate; - /** - * the direction of the pad, cannot change after creating - * the pad. - */ - GstPadDirection direction; - GRecMutex streamRecLock; - GstTask* task; - GCond blockCond; - GHookList probes; - GstPadMode mode; - GstPadActivateFunction activatefunc; - void* activatedata; - GDestroyNotify activatenotify; - GstPadActivateModeFunction activatemodefunc; - void* activatemodedata; - GDestroyNotify activatemodenotify; - GstPad* peer; - GstPadLinkFunction linkfunc; - void* linkdata; - GDestroyNotify linknotify; - GstPadUnlinkFunction unlinkfunc; - void* unlinkdata; - GDestroyNotify unlinknotify; - GstPadChainFunction chainfunc; - void* chaindata; - GDestroyNotify chainnotify; - GstPadChainListFunction chainlistfunc; - void* chainlistdata; - GDestroyNotify chainlistnotify; - GstPadGetRangeFunction getrangefunc; - void* getrangedata; - GDestroyNotify getrangenotify; - GstPadEventFunction eventfunc; - void* eventdata; - GDestroyNotify eventnotify; - long offset; - GstPadQueryFunction queryfunc; - void* querydata; - GDestroyNotify querynotify; - GstPadIterIntLinkFunction iterintlinkfunc; - void* iterintlinkdata; - GDestroyNotify iterintlinknotify; - int numProbes; - int numBlocked; - GstPadPrivate* priv; - union ABI - { - void*[4] GstReserved; - struct Abi - { - GstFlowReturn lastFlowret; - GstPadEventFullFunction eventfullfunc; - } - Abi abi; - } - ABI abi; -} - -struct GstPadClass -{ - GstObjectClass parentClass; - /** */ - extern(C) void function(GstPad* pad, GstPad* peer) linked; - /** */ - extern(C) void function(GstPad* pad, GstPad* peer) unlinked; - void*[4] GstReserved; -} - -struct GstPadPrivate; - -struct GstPadProbeInfo -{ - /** - * the current probe type - */ - GstPadProbeType type; - /** - * the id of the probe - */ - gulong id; - /** - * type specific data, check the @type field to know the - * datatype. This field can be %NULL. - */ - void* data; - /** - * offset of pull probe, this field is valid when @type contains - * #GST_PAD_PROBE_TYPE_PULL - */ - ulong offset; - /** - * size of pull probe, this field is valid when @type contains - * #GST_PAD_PROBE_TYPE_PULL - */ - uint size; - union ABI - { - void*[4] GstReserved; - struct Abi - { - GstFlowReturn flowRet; - } - Abi abi; - } - ABI abi; -} - -struct GstPadTemplate -{ - GstObject object; - char* nameTemplate; - GstPadDirection direction; - GstPadPresence presence; - GstCaps* caps; - union ABI - { - void*[4] GstReserved; - struct Abi - { - GType gtype; - GstCaps* documentationCaps; - } - Abi abi; - } - ABI abi; -} - -struct GstPadTemplateClass -{ - GstObjectClass parentClass; - /** */ - extern(C) void function(GstPadTemplate* templ, GstPad* pad) padCreated; - void*[4] GstReserved; -} - -struct GstParamArray; - -struct GstParamFraction; - -/** - * A GParamSpec derived structure for arrays of values. - */ -struct GstParamSpecArray -{ - /** - * super class - */ - GParamSpec parentInstance; - /** - * the #GParamSpec of the type of values in the array - */ - GParamSpec* elementSpec; -} - -/** - * A GParamSpec derived structure that contains the meta data for fractional - * properties. - */ -struct GstParamSpecFraction -{ - /** - * super class - */ - GParamSpec parentInstance; - /** - * minimal numerator - */ - int minNum; - /** - * minimal denominator - */ - int minDen; - /** - * maximal numerator - */ - int maxNum; - /** - * maximal denominator - */ - int maxDen; - /** - * default numerator - */ - int defNum; - /** - * default denominator - */ - int defDen; -} - -/** - * The #GstParentBufferMeta is a #GstMeta which can be attached to a #GstBuffer - * to hold a reference to another buffer that is only released when the child - * #GstBuffer is released. - * - * Typically, #GstParentBufferMeta is used when the child buffer is directly - * using the #GstMemory of the parent buffer, and wants to prevent the parent - * buffer from being returned to a buffer pool until the #GstMemory is available - * for re-use. - * - * Since: 1.6 - */ -struct GstParentBufferMeta -{ - /** - * the parent #GstMeta structure - */ - GstMeta parent; - /** - * the #GstBuffer on which a reference is being held. - */ - GstBuffer* buffer; -} - -struct GstParseContext; - -struct GstPipeline -{ - GstBin bin; - /** - * The fixed clock of the pipeline, used when - * GST_PIPELINE_FLAG_FIXED_CLOCK is set. - */ - GstClock* fixedClock; - /** - * The stream time of the pipeline. A better name for this - * property would be the running_time, the total time spent in the - * PLAYING state without being flushed. (deprecated, use the start_time - * on GstElement). - */ - GstClockTime streamTime; - /** - * Extra delay added to base_time to compensate for computing delays - * when setting elements to PLAYING. - */ - GstClockTime delay; - GstPipelinePrivate* priv; - void*[4] GstReserved; -} - -struct GstPipelineClass -{ - GstBinClass parentClass; - void*[4] GstReserved; -} - -struct GstPipelinePrivate; - -struct GstPlugin; - -struct GstPluginClass; - -/** - * A plugin should export a variable of this type called plugin_desc. The plugin - * loader will use the data provided there to initialize the plugin. - * - * The @licence parameter must be one of: LGPL, GPL, QPL, GPL/QPL, MPL, - * BSD, MIT/X11, Proprietary, unknown. - */ -struct GstPluginDesc -{ - /** - * the major version number of core that plugin was compiled for - */ - int majorVersion; - /** - * the minor version number of core that plugin was compiled for - */ - int minorVersion; - /** - * a unique name of the plugin - */ - const(char)* name; - /** - * description of plugin - */ - const(char)* description; - /** - * pointer to the init function of this plugin. - */ - GstPluginInitFunc pluginInit; - /** - * version of the plugin - */ - const(char)* version_; - /** - * effective license of plugin - */ - const(char)* license; - /** - * source module plugin belongs to - */ - const(char)* source; - /** - * shipped package plugin belongs to - */ - const(char)* package_; - /** - * URL to provider of plugin - */ - const(char)* origin; - /** - * date time string in ISO 8601 - * format (or rather, a subset thereof), or %NULL. Allowed are the - * following formats: "YYYY-MM-DD" and "YYY-MM-DDTHH:MMZ" (with - * 'T' a separator and 'Z' indicating UTC/Zulu time). This field - * should be set via the GST_PACKAGE_RELEASE_DATETIME - * preprocessor macro. - */ - const(char)* releaseDatetime; - void*[4] GstReserved; -} - -struct GstPluginFeature; - -struct GstPluginFeatureClass; - -struct GstPoll; - -struct GstPollFD -{ - /** - * a file descriptor - */ - int fd; - int idx; -} - -struct GstPreset; - -/** - * #GstPreset interface. - */ -struct GstPresetInterface -{ - /** - * parent interface type. - */ - GTypeInterface parent; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * Returns: list with names, use g_strfreev() after usage. - */ - extern(C) char** function(GstPreset* preset) getPresetNames; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * Returns: an - * array of property names which should be freed with g_strfreev() after use. - */ - extern(C) char** function(GstPreset* preset) getPropertyNames; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * name = preset name to load - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - extern(C) int function(GstPreset* preset, const(char)* name) loadPreset; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * name = preset name to save - * Returns: %TRUE for success, %FALSE - */ - extern(C) int function(GstPreset* preset, const(char)* name) savePreset; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * oldName = current preset name - * newName = new preset name - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with @old_name - */ - extern(C) int function(GstPreset* preset, const(char)* oldName, const(char)* newName) renamePreset; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * name = preset name to remove - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - extern(C) int function(GstPreset* preset, const(char)* name) deletePreset; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * name = preset name - * tag = meta data item name - * value = new value - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - */ - extern(C) int function(GstPreset* preset, const(char)* name, const(char)* tag, const(char)* value) setMeta; - /** - * - * Params: - * preset = a #GObject that implements #GstPreset - * name = preset name - * tag = meta data item name - * value = value - * Returns: %TRUE for success, %FALSE if e.g. there is no preset with that @name - * or no value for the given @tag - */ - extern(C) int function(GstPreset* preset, const(char)* name, const(char)* tag, char** value) getMeta; - void*[4] GstReserved; -} - -struct GstPromise -{ - /** - * parent #GstMiniObject - */ - GstMiniObject parent; -} - -/** - * Metadata type that holds information about a sample from a protection-protected - * track, including the information needed to decrypt it (if it is encrypted). - * - * Since: 1.6 - */ -struct GstProtectionMeta -{ - /** - * the parent #GstMeta. - */ - GstMeta meta; - /** - * the cryptographic information needed to decrypt the sample. - */ - GstStructure* info; -} - -struct GstProxyPad -{ - GstPad pad; - GstProxyPadPrivate* priv; -} - -struct GstProxyPadClass -{ - GstPadClass parentClass; - void*[1] GstReserved; -} - -struct GstProxyPadPrivate; - -struct GstQuery -{ - /** - * The parent #GstMiniObject type - */ - GstMiniObject miniObject; - /** - * the #GstQueryType - */ - GstQueryType type; -} - -/** - * #GstReferenceTimestampMeta can be used to attach alternative timestamps and - * possibly durations to a #GstBuffer. These are generally not according to - * the pipeline clock and could be e.g. the NTP timestamp when the media was - * captured. - * - * The reference is stored as a #GstCaps in @reference. Examples of valid - * references would be "timestamp/x-drivername-stream" for timestamps that are locally - * generated by some driver named "drivername" when generating the stream, - * e.g. based on a frame counter, or "timestamp/x-ntp, host=pool.ntp.org, - * port=123" for timestamps based on a specific NTP server. - * - * Since: 1.14 - */ -struct GstReferenceTimestampMeta -{ - /** - * the parent #GstMeta structure - */ - GstMeta parent; - /** - * identifier for the timestamp reference. - */ - GstCaps* reference; - /** - * timestamp - */ - GstClockTime timestamp; - /** - * duration, or %GST_CLOCK_TIME_NONE - */ - GstClockTime duration; -} - -struct GstRegistry -{ - GstObject object; - GstRegistryPrivate* priv; -} - -struct GstRegistryClass -{ - GstObjectClass parentClass; -} - -struct GstRegistryPrivate; - -struct GstSample; - -struct GstSegment -{ - /** - * flags for this segment - */ - GstSegmentFlags flags; - /** - * the playback rate of the segment is set in response to a seek - * event and, without any seek, the value should be `1.0`. This - * value is used by elements that synchronize buffer [running - * times](additional/design/synchronisation.md#running-time) on - * the clock (usually the sink elements), leading to consuming - * buffers faster (for a value `> 1.0`) or slower (for `0.0 < - * value < 1.0`) than normal playback speed. The rate also - * defines the playback direction, meaning that when the value is - * lower than `0.0`, the playback happens in reverse, and the - * [stream-time](additional/design/synchronisation.md#stream-time) - * is going backward. The `rate` value should never be `0.0`. - */ - double rate; - /** - * The applied rate is the rate that has been applied to the stream. - * The effective/resulting playback rate of a stream is - * `rate * applied_rate`. - * The applied rate can be set by source elements when a server is - * sending the stream with an already modified playback speed - * rate. Filter elements that modify the stream in a way that - * modifies the playback speed should also modify the applied - * rate. For example the #videorate element when its - * #videorate:rate property is set will set the applied rate of - * the segment it pushed downstream. Also #scaletempo applies the - * input segment rate to the stream and outputs a segment with - * rate=1.0 and applied_rate=. - */ - double appliedRate; - /** - * the unit used for all of the segment's values. - */ - GstFormat format; - /** - * the running time (plus elapsed time, see offset) of the - * segment [start](GstSegment.start) ([stop](GstSegment.stop) if - * rate < 0.0). - */ - ulong base; - /** - * the offset expresses the elapsed time (in buffer timestamps) - * before a seek with its start (stop if rate < 0.0) seek type - * set to #GST_SEEK_TYPE_NONE, the value is set to the position - * of the segment at the time of the seek. - */ - ulong offset; - /** - * the start time of the segment (in buffer timestamps) - * [(PTS)](GstBuffer.pts), that is the timestamp of the first - * buffer to output inside the segment (last one during - * reverse playback). For example decoders will - * [clip](gst_segment_clip) out the buffers before the start - * time. - */ - ulong start; - /** - * the stop time of the segment (in buffer timestamps) - * [(PTS)](GstBuffer.pts), that is the timestamp of the last - * buffer to output inside the segment (first one during - * reverse playback). For example decoders will - * [clip](gst_segment_clip) out buffers after the stop time. - */ - ulong stop; - /** - * the stream time of the segment [start](GstSegment.start) - * ([stop](GstSegment.stop) if rate < 0.0). - */ - ulong time; - /** - * the buffer timestamp position in the segment is supposed to be - * updated by elements such as sources, demuxers or parsers to - * track progress by setting it to the last pushed buffer' end time - * ([timestamp](GstBuffer.pts) + #GstBuffer.duration) for that - * specific segment. The position is used when reconfiguring the - * segment with #gst_segment_do_seek when the seek is only - * updating the segment (see [offset](GstSegment.offset)). - */ - ulong position; - /** - * the duration of the segment is the maximum absolute difference - * between #GstSegment.start and #GstSegment.stop if stop is not - * set, otherwise it should be the difference between those - * two values. This should be set by elements that know the - * overall stream duration (like demuxers) and will be used when - * seeking with #GST_SEEK_TYPE_END. - */ - ulong duration; - void*[4] GstReserved; -} - -struct GstStaticCaps -{ - /** - * the cached #GstCaps - */ - GstCaps* caps; - /** - * a string describing a caps - */ - const(char)* string_; - void*[4] GstReserved; -} - -struct GstStaticPadTemplate -{ - /** - * the name of the template - */ - const(char)* nameTemplate; - /** - * the direction of the template - */ - GstPadDirection direction; - /** - * the presence of the template - */ - GstPadPresence presence; - /** - * the caps of the template. - */ - GstStaticCaps staticCaps; -} - -struct GstStream -{ - GstObject object; - /** - * The Stream Identifier for this #GstStream - */ - const(char)* streamId; - GstStreamPrivate* priv; - void*[4] GstReserved; -} - -/** - * GstStream class structure - */ -struct GstStreamClass -{ - /** - * the parent class structure - */ - GstObjectClass parentClass; - void*[4] GstReserved; -} - -struct GstStreamCollection -{ - GstObject object; - char* upstreamId; - GstStreamCollectionPrivate* priv; - void*[4] GstReserved; -} - -/** - * GstStreamCollection class structure - */ -struct GstStreamCollectionClass -{ - /** - * the parent class structure - */ - GstObjectClass parentClass; - /** */ - extern(C) void function(GstStreamCollection* collection, GstStream* stream, GParamSpec* pspec) streamNotify; - void*[4] GstReserved; -} - -struct GstStreamCollectionPrivate; - -struct GstStreamPrivate; - -struct GstStructure -{ - /** - * the GType of a structure - */ - GType type; - GQuark name; -} - -struct GstSystemClock -{ - GstClock clock; - GstSystemClockPrivate* priv; - void*[4] GstReserved; -} - -struct GstSystemClockClass -{ - GstClockClass parentClass; - void*[4] GstReserved; -} - -struct GstSystemClockPrivate; - -struct GstTagList -{ - /** - * the parent type - */ - GstMiniObject miniObject; -} - -struct GstTagSetter; - -/** - * #GstTagSetterInterface interface. - */ -struct GstTagSetterInterface -{ - /** - * parent interface type. - */ - GTypeInterface gIface; -} - -struct GstTask -{ - GstObject object; - /** - * the state of the task - */ - GstTaskState state; - /** - * used to pause/resume the task - */ - GCond cond; - /** - * The lock taken when iterating the task function - */ - GRecMutex* lock; - /** - * the function executed by this task - */ - GstTaskFunction func; - /** - * user_data passed to the task function - */ - void* userData; - /** - * GDestroyNotify for @user_data - */ - GDestroyNotify notify; - /** - * a flag indicating that the task is running - */ - bool running; - GThread* thread; - GstTaskPrivate* priv; - void*[4] GstReserved; -} - -struct GstTaskClass -{ - GstObjectClass parentClass; - GstTaskPool* pool; - void*[4] GstReserved; -} - -struct GstTaskPool -{ - GstObject object; - GThreadPool* pool; - void*[4] GstReserved; -} - -/** - * The #GstTaskPoolClass object. - */ -struct GstTaskPoolClass -{ - /** - * the parent class structure - */ - GstObjectClass parentClass; - /** */ - extern(C) void function(GstTaskPool* pool, GError** err) prepare; - /** */ - extern(C) void function(GstTaskPool* pool) cleanup; - /** - * - * Params: - * pool = a #GstTaskPool - * func = the function to call - * userData = data to pass to @func - * Returns: a pointer that should be used - * for the gst_task_pool_join function. This pointer can be %NULL, you - * must check @error to detect errors. - * - * Throws: GException on failure. - */ - extern(C) void* function(GstTaskPool* pool, GstTaskPoolFunction func, void* userData, GError** err) push; - /** */ - extern(C) void function(GstTaskPool* pool, void* id) join; - void*[4] GstReserved; -} - -struct GstTaskPrivate; - -/** - * Structure for saving a timestamp and a value. - */ -struct GstTimedValue -{ - /** - * timestamp of the value change - */ - GstClockTime timestamp; - /** - * the corresponding value - */ - double value; -} - -struct GstToc; - -struct GstTocEntry; - -struct GstTocSetter; - -/** - * #GstTocSetterInterface interface. - */ -struct GstTocSetterInterface -{ - /** - * parent interface type. - */ - GTypeInterface gIface; -} - -struct GstTracer -{ - GstObject parent; - GstTracerPrivate* priv; - void*[4] GstReserved; -} - -struct GstTracerClass -{ - GstObjectClass parentClass; - void*[4] GstReserved; -} - -struct GstTracerFactory; - -struct GstTracerFactoryClass; - -struct GstTracerPrivate; - -struct GstTracerRecord; - -struct GstTracerRecordClass; - -struct GstTypeFind -{ - /** */ - extern(C) ubyte* function(void* data, long offset, uint size) peek; - /** */ - extern(C) void function(void* data, uint probability, GstCaps* caps) suggest; - /** - * The data used by the caller of the typefinding function. - */ - void* data; - /** */ - extern(C) ulong function(void* data) getLength; - void*[4] GstReserved; -} - -struct GstTypeFindFactory; - -struct GstTypeFindFactoryClass; - -struct GstURIHandler; - -/** - * Any #GstElement using this interface should implement these methods. - */ -struct GstURIHandlerInterface -{ - /** - * The parent interface type - */ - GTypeInterface parent; - /** */ - extern(C) GstURIType function(GType type) getType; - /** */ - extern(C) char** function(GType type) getProtocols; - /** - * - * Params: - * handler = A #GstURIHandler - * Returns: the URI currently handled by - * the @handler. Returns %NULL if there are no URI currently - * handled. The returned string must be freed with g_free() when no - * longer needed. - */ - extern(C) char* function(GstURIHandler* handler) getUri; - /** - * - * Params: - * handler = A #GstURIHandler - * uri = URI to set - * Returns: %TRUE if the URI was set successfully, else %FALSE. - * - * Throws: GException on failure. - */ - extern(C) int function(GstURIHandler* handler, const(char)* uri, GError** err) setUri; -} - -struct GstUri; - -struct GstValueArray; - -struct GstValueList; - -/** - * VTable for the #GValue @type. - */ -struct GstValueTable -{ - /** - * a #GType - */ - GType type; - /** - * a #GstValueCompareFunc - */ - GstValueCompareFunc compare; - /** - * a #GstValueSerializeFunc - */ - GstValueSerializeFunc serialize; - /** - * a #GstValueDeserializeFunc - */ - GstValueDeserializeFunc deserialize; - void*[4] GstReserved; -} - -/** - * A function that will be called from gst_buffer_foreach_meta(). The @meta - * field will point to a the reference of the meta. - * - * @buffer should not be modified from this callback. - * - * When this function returns %TRUE, the next meta will be - * returned. When %FALSE is returned, gst_buffer_foreach_meta() will return. - * - * When @meta is set to %NULL, the item will be removed from the buffer. - * - * Params: - * buffer = a #GstBuffer - * meta = a pointer to a #GstMeta - * userData = user data passed to gst_buffer_foreach_meta() - * - * Returns: %FALSE when gst_buffer_foreach_meta() should stop - */ -public alias extern(C) int function(GstBuffer* buffer, GstMeta** meta, void* userData) GstBufferForeachMetaFunc; - -/** - * A function that will be called from gst_buffer_list_foreach(). The @buffer - * field will point to a the reference of the buffer at @idx. - * - * When this function returns %TRUE, the next buffer will be - * returned. When %FALSE is returned, gst_buffer_list_foreach() will return. - * - * When @buffer is set to %NULL, the item will be removed from the bufferlist. - * When @buffer has been made writable, the new buffer reference can be assigned - * to @buffer. This function is responsible for unreffing the old buffer when - * removing or modifying. - * - * Params: - * buffer = pointer the buffer - * idx = the index of @buffer - * userData = user data passed to gst_buffer_list_foreach() - * - * Returns: %FALSE when gst_buffer_list_foreach() should stop - */ -public alias extern(C) int function(GstBuffer** buffer, uint idx, void* userData) GstBufferListFunc; - -/** - * Specifies the type of function passed to gst_bus_add_watch() or - * gst_bus_add_watch_full(), which is called from the mainloop when a message - * is available on the bus. - * - * The message passed to the function will be unreffed after execution of this - * function so it should not be freed in the function. - * - * Note that this function is used as a GSourceFunc which means that returning - * %FALSE will remove the GSource from the mainloop. - * - * Params: - * bus = the #GstBus that sent the message - * message = the #GstMessage - * userData = user data that has been given, when registering the handler - * - * Returns: %FALSE if the event source should be removed. - */ -public alias extern(C) int function(GstBus* bus, GstMessage* message, void* userData) GstBusFunc; - -/** - * Handler will be invoked synchronously, when a new message has been injected - * into the bus. This function is mostly used internally. Only one sync handler - * can be attached to a given bus. - * - * If the handler returns GST_BUS_DROP, it should unref the message, else the - * message should not be unreffed by the sync handler. - * - * Params: - * bus = the #GstBus that sent the message - * message = the #GstMessage - * userData = user data that has been given, when registering the handler - * - * Returns: #GstBusSyncReply stating what to do with the message - */ -public alias extern(C) GstBusSyncReply function(GstBus* bus, GstMessage* message, void* userData) GstBusSyncHandler; - -/** - * A function that will be called in gst_caps_filter_and_map_in_place(). - * The function may modify @features and @structure, and both will be - * removed from the caps if %FALSE is returned. - * - * Params: - * features = the #GstCapsFeatures - * structure = the #GstStructure - * userData = user data - * - * Returns: %TRUE if the features and structure should be preserved, - * %FALSE if it should be removed. - */ -public alias extern(C) int function(GstCapsFeatures* features, GstStructure* structure, void* userData) GstCapsFilterMapFunc; - -/** - * A function that will be called in gst_caps_foreach(). The function may - * not modify @features or @structure. - * - * Params: - * features = the #GstCapsFeatures - * structure = the #GstStructure - * userData = user data - * - * Returns: %TRUE if the foreach operation should continue, %FALSE if - * the foreach operation should stop with %FALSE. - * - * Since: 1.6 - */ -public alias extern(C) int function(GstCapsFeatures* features, GstStructure* structure, void* userData) GstCapsForeachFunc; - -/** - * A function that will be called in gst_caps_map_in_place(). The function - * may modify @features and @structure. - * - * Params: - * features = the #GstCapsFeatures - * structure = the #GstStructure - * userData = user data - * - * Returns: %TRUE if the map operation should continue, %FALSE if - * the map operation should stop with %FALSE. - */ -public alias extern(C) int function(GstCapsFeatures* features, GstStructure* structure, void* userData) GstCapsMapFunc; - -/** - * The function prototype of the callback. - * - * Params: - * clock = The clock that triggered the callback - * time = The time it was triggered - * id = The #GstClockID that expired - * userData = user data passed in the gst_clock_id_wait_async() function - * - * Returns: %TRUE or %FALSE (currently unused) - */ -public alias extern(C) int function(GstClock* clock, GstClockTime time, GstClockID id, void* userData) GstClockCallback; - -/** - * FIXME(2.0): remove, this is unused - */ -public alias extern(C) void function(GstControlBinding* binding, double srcValue, GValue* destValue) GstControlBindingConvert; - -/** - * Function for returning a value for a given timestamp. - * - * Params: - * self = the #GstControlSource instance - * timestamp = timestamp for which a value should be calculated - * value = a value which will be set to the result. - * - * Returns: %TRUE if the value was successfully calculated. - */ -public alias extern(C) int function(GstControlSource* self, GstClockTime timestamp, double* value) GstControlSourceGetValue; - -/** - * Function for returning an array of values for starting at a given timestamp. - * - * Params: - * self = the #GstControlSource instance - * timestamp = timestamp for which a value should be calculated - * interval = the time spacing between subsequent values - * nValues = the number of values - * values = array to put control-values in - * - * Returns: %TRUE if the values were successfully calculated. - */ -public alias extern(C) int function(GstControlSource* self, GstClockTime timestamp, GstClockTime interval, uint nValues, double* values) GstControlSourceGetValueArray; - -/** - * we define this to avoid a compiler warning regarding a cast from a function - * pointer to a void pointer - * (see https://bugzilla.gnome.org/show_bug.cgi?id=309253) - */ -public alias extern(C) void function() GstDebugFuncPtr; - -/** - * Callback prototype used in #gst_element_call_async - * - * Params: - * element = The #GstElement this function has been called against - * userData = Data passed in the function where that callback has been passed - */ -public alias extern(C) void function(GstElement* element, void* userData) GstElementCallAsyncFunc; - -/** - * Function called for each pad when using gst_element_foreach_sink_pad(), - * gst_element_foreach_src_pad(), or gst_element_foreach_pad(). - * - * Params: - * element = the #GstElement - * pad = a #GstPad - * userData = user data passed to the foreach function - * - * Returns: %FALSE to stop iterating pads, %TRUE to continue - * - * Since: 1.14 - */ -public alias extern(C) int function(GstElement* element, GstPad* pad, void* userData) GstElementForeachPadFunc; - -/** - * This function will be called when creating a copy of @it and should - * create a copy of all custom iterator fields or increase their - * reference counts. - * - * Params: - * it = The original iterator - * copy = The copied iterator - */ -public alias extern(C) void function(GstIterator* it, GstIterator* copy) GstIteratorCopyFunction; - -/** - * A function to be passed to gst_iterator_fold(). - * - * Params: - * item = the item to fold - * ret = a #GValue collecting the result - * userData = data passed to gst_iterator_fold() - * - * Returns: %TRUE if the fold should continue, %FALSE if it should stop. - */ -public alias extern(C) int function(GValue* item, GValue* ret, void* userData) GstIteratorFoldFunction; - -/** - * A function that is called by gst_iterator_foreach() for every element. - * - * Params: - * item = The item - * userData = User data - */ -public alias extern(C) void function(GValue* item, void* userData) GstIteratorForeachFunction; - -/** - * This function will be called when the iterator is freed. - * - * Implementors of a #GstIterator should implement this - * function and pass it to the constructor of the custom iterator. - * The function will be called with the iterator lock held. - * - * Params: - * it = the iterator - */ -public alias extern(C) void function(GstIterator* it) GstIteratorFreeFunction; - -/** - * The function that will be called after the next item of the iterator - * has been retrieved. This function can be used to skip items or stop - * the iterator. - * - * The function will be called with the iterator lock held. - * - * Params: - * it = the iterator - * item = the item being retrieved. - * - * Returns: the result of the operation. - */ -public alias extern(C) GstIteratorItem function(GstIterator* it, GValue* item) GstIteratorItemFunction; - -/** - * The function that will be called when the next element of the iterator - * should be retrieved. - * - * Implementors of a #GstIterator should implement this - * function and pass it to the constructor of the custom iterator. - * The function will be called with the iterator lock held. - * - * Params: - * it = the iterator - * result = a pointer to hold the next item - * - * Returns: the result of the operation. - */ -public alias extern(C) GstIteratorResult function(GstIterator* it, GValue* result) GstIteratorNextFunction; - -/** - * This function will be called whenever a concurrent update happened - * to the iterated datastructure. The implementor of the iterator should - * restart the iterator from the beginning and clean up any state it might - * have. - * - * Implementors of a #GstIterator should implement this - * function and pass it to the constructor of the custom iterator. - * The function will be called with the iterator lock held. - * - * Params: - * it = the iterator - */ -public alias extern(C) void function(GstIterator* it) GstIteratorResyncFunction; - -/** - * Function prototype for a logging function that can be registered with - * gst_debug_add_log_function(). - * Use G_GNUC_NO_INSTRUMENT on that function. - * - * Params: - * category = a #GstDebugCategory - * level = a #GstDebugLevel - * file = file name - * function_ = function name - * line = line number - * object = a #GObject - * message = the message - * userData = user data for the log function - */ -public alias extern(C) void function(GstDebugCategory* category, GstDebugLevel level, const(char)* file, const(char)* function_, int line, GObject* object, GstDebugMessage* message, void* userData) GstLogFunction; - -/** - * Copy @size bytes from @mem starting at @offset and return them wrapped in a - * new GstMemory object. - * If @size is set to -1, all bytes starting at @offset are copied. - * - * Params: - * mem = a #GstMemory - * offset = an offset - * size = a size or -1 - * - * Returns: a new #GstMemory object wrapping a copy of the requested region in - * @mem. - */ -public alias extern(C) GstMemory* function(GstMemory* mem, ptrdiff_t offset, ptrdiff_t size) GstMemoryCopyFunction; - -/** - * Check if @mem1 and @mem2 occupy contiguous memory and return the offset of - * @mem1 in the parent buffer in @offset. - * - * Params: - * mem1 = a #GstMemory - * mem2 = a #GstMemory - * offset = a result offset - * - * Returns: %TRUE if @mem1 and @mem2 are in contiguous memory. - */ -public alias extern(C) int function(GstMemory* mem1, GstMemory* mem2, size_t* offset) GstMemoryIsSpanFunction; - -/** - * Get the memory of @mem that can be accessed according to the mode specified - * in @info's flags. The function should return a pointer that contains at least - * @maxsize bytes. - * - * Params: - * mem = a #GstMemory - * info = the #GstMapInfo to map with - * maxsize = size to map - * - * Returns: a pointer to memory of which at least @maxsize bytes can be - * accessed according to the access pattern in @info's flags. - */ -public alias extern(C) void* function(GstMemory* mem, GstMapInfo* info, size_t maxsize) GstMemoryMapFullFunction; - -/** - * Get the memory of @mem that can be accessed according to the mode specified - * in @flags. The function should return a pointer that contains at least - * @maxsize bytes. - * - * Params: - * mem = a #GstMemory - * maxsize = size to map - * flags = access mode for the memory - * - * Returns: a pointer to memory of which at least @maxsize bytes can be - * accessed according to the access pattern in @flags. - */ -public alias extern(C) void* function(GstMemory* mem, size_t maxsize, GstMapFlags flags) GstMemoryMapFunction; - -/** - * Share @size bytes from @mem starting at @offset and return them wrapped in a - * new GstMemory object. If @size is set to -1, all bytes starting at @offset are - * shared. This function does not make a copy of the bytes in @mem. - * - * Params: - * mem = a #GstMemory - * offset = an offset - * size = a size or -1 - * - * Returns: a new #GstMemory object sharing the requested region in @mem. - */ -public alias extern(C) GstMemory* function(GstMemory* mem, ptrdiff_t offset, ptrdiff_t size) GstMemoryShareFunction; - -/** - * Release the pointer previously retrieved with gst_memory_map() with @info. - * - * Params: - * mem = a #GstMemory - * info = a #GstMapInfo - */ -public alias extern(C) void function(GstMemory* mem, GstMapInfo* info) GstMemoryUnmapFullFunction; - -/** - * Release the pointer previously retrieved with gst_memory_map(). - * - * Params: - * mem = a #GstMemory - */ -public alias extern(C) void function(GstMemory* mem) GstMemoryUnmapFunction; - -/** - * Function called when @meta is freed in @buffer. - * - * Params: - * meta = a #GstMeta - * buffer = a #GstBuffer - */ -public alias extern(C) void function(GstMeta* meta, GstBuffer* buffer) GstMetaFreeFunction; - -/** - * Function called when @meta is initialized in @buffer. - * - * Params: - * meta = a #GstMeta - * params = parameters passed to the init function - * buffer = a #GstBuffer - */ -public alias extern(C) int function(GstMeta* meta, void* params, GstBuffer* buffer) GstMetaInitFunction; - -/** - * Function called for each @meta in @buffer as a result of performing a - * transformation on @transbuf. Additional @type specific transform data - * is passed to the function as @data. - * - * Implementations should check the @type of the transform and parse - * additional type specific fields in @data that should be used to update - * the metadata on @transbuf. - * - * Params: - * transbuf = a #GstBuffer - * meta = a #GstMeta - * buffer = a #GstBuffer - * type = the transform type - * data = transform specific data. - * - * Returns: %TRUE if the transform could be performed - */ -public alias extern(C) int function(GstBuffer* transbuf, GstMeta* meta, GstBuffer* buffer, GQuark type, void* data) GstMetaTransformFunction; - -/** - * Function prototype for methods to create copies of instances. - * - * Params: - * obj = MiniObject to copy - * - * Returns: reference to cloned instance. - */ -public alias extern(C) GstMiniObject* function(GstMiniObject* obj) GstMiniObjectCopyFunction; - -/** - * Function prototype for when a miniobject has lost its last refcount. - * Implementation of the mini object are allowed to revive the - * passed object by doing a gst_mini_object_ref(). If the object is not - * revived after the dispose function, the function should return %TRUE - * and the memory associated with the object is freed. - * - * Params: - * obj = MiniObject to dispose - * - * Returns: %TRUE if the object should be cleaned up. - */ -public alias extern(C) int function(GstMiniObject* obj) GstMiniObjectDisposeFunction; - -/** - * Virtual function prototype for methods to free resources used by - * mini-objects. - * - * Params: - * obj = MiniObject to free - */ -public alias extern(C) void function(GstMiniObject* obj) GstMiniObjectFreeFunction; - -/** - * A #GstMiniObjectNotify function can be added to a mini object as a - * callback that gets triggered when gst_mini_object_unref() drops the - * last ref and @obj is about to be freed. - * - * Params: - * userData = data that was provided when the notify was added - * obj = the mini object - */ -public alias extern(C) void function(void* userData, GstMiniObject* obj) GstMiniObjectNotify; - -/** - * This function is called when the pad is activated during the element - * READY to PAUSED state change. By default this function will call the - * activate function that puts the pad in push mode but elements can - * override this function to activate the pad in pull mode if they wish. - * - * Params: - * pad = a #GstPad - * parent = the parent of @pad - * - * Returns: %TRUE if the pad could be activated. - */ -public alias extern(C) int function(GstPad* pad, GstObject* parent) GstPadActivateFunction; - -/** - * The prototype of the push and pull activate functions. - * - * Params: - * pad = a #GstPad - * parent = the parent of @pad - * mode = the requested activation mode of @pad - * active = activate or deactivate the pad. - * - * Returns: %TRUE if the pad could be activated or deactivated. - */ -public alias extern(C) int function(GstPad* pad, GstObject* parent, GstPadMode mode, int active) GstPadActivateModeFunction; - -/** - * A function that will be called on sinkpads when chaining buffers. - * The function typically processes the data contained in the buffer and - * either consumes the data or passes it on to the internally linked pad(s). - * - * The implementer of this function receives a refcount to @buffer and should - * gst_buffer_unref() when the buffer is no longer needed. - * - * When a chain function detects an error in the data stream, it must post an - * error on the bus and return an appropriate #GstFlowReturn value. - * - * Params: - * pad = the sink #GstPad that performed the chain. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * buffer = the #GstBuffer that is chained, not %NULL. - * - * Returns: #GST_FLOW_OK for success - */ -public alias extern(C) GstFlowReturn function(GstPad* pad, GstObject* parent, GstBuffer* buffer) GstPadChainFunction; - -/** - * A function that will be called on sinkpads when chaining buffer lists. - * The function typically processes the data contained in the buffer list and - * either consumes the data or passes it on to the internally linked pad(s). - * - * The implementer of this function receives a refcount to @list and - * should gst_buffer_list_unref() when the list is no longer needed. - * - * When a chainlist function detects an error in the data stream, it must - * post an error on the bus and return an appropriate #GstFlowReturn value. - * - * Params: - * pad = the sink #GstPad that performed the chain. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * list = the #GstBufferList that is chained, not %NULL. - * - * Returns: #GST_FLOW_OK for success - */ -public alias extern(C) GstFlowReturn function(GstPad* pad, GstObject* parent, GstBufferList* list) GstPadChainListFunction; - -/** - * Function signature to handle an event for the pad. - * - * This variant is for specific elements that will take into account the - * last downstream flow return (from a pad push), in which case they can - * return it. - * - * Params: - * pad = the #GstPad to handle the event. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * event = the #GstEvent to handle. - * - * Returns: %GST_FLOW_OK if the event was handled properly, or any other - * #GstFlowReturn dependent on downstream state. - * - * Since: 1.8 - */ -public alias extern(C) GstFlowReturn function(GstPad* pad, GstObject* parent, GstEvent* event) GstPadEventFullFunction; - -/** - * Function signature to handle an event for the pad. - * - * Params: - * pad = the #GstPad to handle the event. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * event = the #GstEvent to handle. - * - * Returns: %TRUE if the pad could handle the event. - */ -public alias extern(C) int function(GstPad* pad, GstObject* parent, GstEvent* event) GstPadEventFunction; - -/** - * A forward function is called for all internally linked pads, see - * gst_pad_forward(). - * - * Params: - * pad = the #GstPad that is forwarded. - * userData = the gpointer to optional user data. - * - * Returns: %TRUE if the dispatching procedure has to be stopped. - */ -public alias extern(C) int function(GstPad* pad, void* userData) GstPadForwardFunction; - -/** - * This function will be called on source pads when a peer element - * request a buffer at the specified @offset and @length. If this function - * returns #GST_FLOW_OK, the result buffer will be stored in @buffer. The - * contents of @buffer is invalid for any other return value. - * - * This function is installed on a source pad with - * gst_pad_set_getrange_function() and can only be called on source pads after - * they are successfully activated with gst_pad_activate_mode() with the - * #GST_PAD_MODE_PULL. - * - * @offset and @length are always given in byte units. @offset must normally be a value - * between 0 and the length in bytes of the data available on @pad. The - * length (duration in bytes) can be retrieved with a #GST_QUERY_DURATION or with a - * #GST_QUERY_SEEKING. - * - * Any @offset larger or equal than the length will make the function return - * #GST_FLOW_EOS, which corresponds to EOS. In this case @buffer does not - * contain a valid buffer. - * - * The buffer size of @buffer will only be smaller than @length when @offset is - * near the end of the stream. In all other cases, the size of @buffer must be - * exactly the requested size. - * - * It is allowed to call this function with a 0 @length and valid @offset, in - * which case @buffer will contain a 0-sized buffer and the function returns - * #GST_FLOW_OK. - * - * When this function is called with a -1 @offset, the sequentially next buffer - * of length @length in the stream is returned. - * - * When this function is called with a -1 @length, a buffer with a default - * optimal length is returned in @buffer. The length might depend on the value - * of @offset. - * - * Params: - * pad = the src #GstPad to perform the getrange on. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * offset = the offset of the range - * length = the length of the range - * buffer = a memory location to hold the result buffer, cannot be %NULL. - * - * Returns: #GST_FLOW_OK for success and a valid buffer in @buffer. Any other - * return value leaves @buffer undefined. - */ -public alias extern(C) GstFlowReturn function(GstPad* pad, GstObject* parent, ulong offset, uint length, GstBuffer** buffer) GstPadGetRangeFunction; - -/** - * The signature of the internal pad link iterator function. - * - * Params: - * pad = The #GstPad to query. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * - * Returns: a new #GstIterator that will iterate over all pads that are - * linked to the given pad on the inside of the parent element. - * - * the caller must call gst_iterator_free() after usage. - */ -public alias extern(C) GstIterator* function(GstPad* pad, GstObject* parent) GstPadIterIntLinkFunction; - -/** - * Function signature to handle a new link on the pad. - * - * Params: - * pad = the #GstPad that is linked. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * peer = the peer #GstPad of the link - * - * Returns: the result of the link with the specified peer. - */ -public alias extern(C) GstPadLinkReturn function(GstPad* pad, GstObject* parent, GstPad* peer) GstPadLinkFunction; - -/** - * Callback used by gst_pad_add_probe(). Gets called to notify about the current - * blocking type. - * - * The callback is allowed to modify the data pointer in @info. - * - * Params: - * pad = the #GstPad that is blocked - * info = #GstPadProbeInfo - * userData = the gpointer to optional user data. - * - * Returns: a #GstPadProbeReturn - */ -public alias extern(C) GstPadProbeReturn function(GstPad* pad, GstPadProbeInfo* info, void* userData) GstPadProbeCallback; - -/** - * The signature of the query function. - * - * Params: - * pad = the #GstPad to query. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - * query = the #GstQuery object to execute - * - * Returns: %TRUE if the query could be performed. - */ -public alias extern(C) int function(GstPad* pad, GstObject* parent, GstQuery* query) GstPadQueryFunction; - -/** - * Callback used by gst_pad_sticky_events_foreach(). - * - * When this function returns %TRUE, the next event will be - * returned. When %FALSE is returned, gst_pad_sticky_events_foreach() will return. - * - * When @event is set to %NULL, the item will be removed from the list of sticky events. - * @event can be replaced by assigning a new reference to it. - * This function is responsible for unreffing the old event when - * removing or modifying. - * - * Params: - * pad = the #GstPad. - * event = a sticky #GstEvent. - * userData = the #gpointer to optional user data. - * - * Returns: %TRUE if the iteration should continue - */ -public alias extern(C) int function(GstPad* pad, GstEvent** event, void* userData) GstPadStickyEventsForeachFunction; - -/** - * Function signature to handle a unlinking the pad prom its peer. - * - * The pad's lock is already held when the unlink function is called, so most - * pad functions cannot be called from within the callback. - * - * Params: - * pad = the #GstPad that is linked. - * parent = the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT - * flag is set, @parent is guaranteed to be not-%NULL and remain valid - * during the execution of this function. - */ -public alias extern(C) void function(GstPad* pad, GstObject* parent) GstPadUnlinkFunction; - -/** - * A function that can be used with e.g. gst_registry_feature_filter() - * to get a list of pluginfeature that match certain criteria. - * - * Params: - * feature = the pluginfeature to check - * userData = the user_data that has been passed on e.g. - * gst_registry_feature_filter() - * - * Returns: %TRUE for a positive match, %FALSE otherwise - */ -public alias extern(C) int function(GstPluginFeature* feature, void* userData) GstPluginFeatureFilter; - -/** - * A function that can be used with e.g. gst_registry_plugin_filter() - * to get a list of plugins that match certain criteria. - * - * Params: - * plugin = the plugin to check - * userData = the user_data that has been passed on e.g. gst_registry_plugin_filter() - * - * Returns: %TRUE for a positive match, %FALSE otherwise - */ -public alias extern(C) int function(GstPlugin* plugin, void* userData) GstPluginFilter; - -/** - * A plugin should provide a pointer to a function of either #GstPluginInitFunc - * or this type in the plugin_desc struct. - * The function will be called by the loader at startup. One would then - * register each #GstPluginFeature. This version allows - * user data to be passed to init function (useful for bindings). - * - * Params: - * plugin = The plugin object - * userData = extra data - * - * Returns: %TRUE if plugin initialised successfully - */ -public alias extern(C) int function(GstPlugin* plugin, void* userData) GstPluginInitFullFunc; - -/** - * A plugin should provide a pointer to a function of this type in the - * plugin_desc struct. - * This function will be called by the loader at startup. One would then - * register each #GstPluginFeature. - * - * Params: - * plugin = The plugin object - * - * Returns: %TRUE if plugin initialised successfully - */ -public alias extern(C) int function(GstPlugin* plugin) GstPluginInitFunc; - -/** */ -public alias extern(C) void function(GstPromise* promise, void* userData) GstPromiseChangeFunc; - -/** - * A function that will be called in gst_structure_filter_and_map_in_place(). - * The function may modify @value, and the value will be removed from - * the structure if %FALSE is returned. - * - * Params: - * fieldId = the #GQuark of the field name - * value = the #GValue of the field - * userData = user data - * - * Returns: %TRUE if the field should be preserved, %FALSE if it - * should be removed. - */ -public alias extern(C) int function(GQuark fieldId, GValue* value, void* userData) GstStructureFilterMapFunc; - -/** - * A function that will be called in gst_structure_foreach(). The function may - * not modify @value. - * - * Params: - * fieldId = the #GQuark of the field name - * value = the #GValue of the field - * userData = user data - * - * Returns: %TRUE if the foreach operation should continue, %FALSE if - * the foreach operation should stop with %FALSE. - */ -public alias extern(C) int function(GQuark fieldId, GValue* value, void* userData) GstStructureForeachFunc; - -/** - * A function that will be called in gst_structure_map_in_place(). The function - * may modify @value. - * - * Params: - * fieldId = the #GQuark of the field name - * value = the #GValue of the field - * userData = user data - * - * Returns: %TRUE if the map operation should continue, %FALSE if - * the map operation should stop with %FALSE. - */ -public alias extern(C) int function(GQuark fieldId, GValue* value, void* userData) GstStructureMapFunc; - -/** - * A function that will be called in gst_tag_list_foreach(). The function may - * not modify the tag list. - * - * Params: - * list = the #GstTagList - * tag = a name of a tag in @list - * userData = user data - */ -public alias extern(C) void function(GstTagList* list, const(char)* tag, void* userData) GstTagForeachFunc; - -/** - * A function for merging multiple values of a tag used when registering - * tags. - * - * Params: - * dest = the destination #GValue - * src = the source #GValue - */ -public alias extern(C) void function(GValue* dest, GValue* src) GstTagMergeFunc; - -/** - * A function that will repeatedly be called in the thread created by - * a #GstTask. - * - * Params: - * userData = user data passed to the function - */ -public alias extern(C) void function(void* userData) GstTaskFunction; - -/** - * Task function, see gst_task_pool_push(). - * - * Params: - * userData = user data for the task function - */ -public alias extern(C) void function(void* userData) GstTaskPoolFunction; - -/** - * Custom GstTask thread callback functions that can be installed. - * - * Params: - * task = The #GstTask - * thread = The #GThread - * userData = user data - */ -public alias extern(C) void function(GstTask* task, GThread* thread, void* userData) GstTaskThreadFunc; - -/** - * A function that will be called by typefinding. - * - * Params: - * find = A #GstTypeFind structure - * userData = optional data to pass to the function - */ -public alias extern(C) void function(GstTypeFind* find, void* userData) GstTypeFindFunction; - -/** - * Used together with gst_value_compare() to compare #GValue items. - * - * Params: - * value1 = first value for comparison - * value2 = second value for comparison - * - * Returns: one of GST_VALUE_LESS_THAN, GST_VALUE_EQUAL, GST_VALUE_GREATER_THAN - * or GST_VALUE_UNORDERED - */ -public alias extern(C) int function(GValue* value1, GValue* value2) GstValueCompareFunc; - -/** - * Used by gst_value_deserialize() to parse a non-binary form into the #GValue. - * - * Params: - * dest = a #GValue - * s = a string - * - * Returns: %TRUE for success - */ -public alias extern(C) int function(GValue* dest, const(char)* s) GstValueDeserializeFunc; - -/** - * Used by gst_value_serialize() to obtain a non-binary form of the #GValue. - * - * Free-function: g_free - * - * Params: - * value1 = a #GValue - * - * Returns: the string representation of the value - */ -public alias extern(C) char* function(GValue* value1) GstValueSerializeFunc; - -/** - * The allocator name for the default system memory allocator - */ -enum ALLOCATOR_SYSMEM = "SystemMemory"; -alias GST_ALLOCATOR_SYSMEM = ALLOCATOR_SYSMEM; - -/** - * Combination of all possible fields that can be copied with - * gst_buffer_copy_into(). - */ -enum BUFFER_COPY_ALL = 15; -alias GST_BUFFER_COPY_ALL = BUFFER_COPY_ALL; - -/** - * Combination of all possible metadata fields that can be copied with - * gst_buffer_copy_into(). - */ -enum BUFFER_COPY_METADATA = 7; -alias GST_BUFFER_COPY_METADATA = BUFFER_COPY_METADATA; - -/** - * Constant for no-offset return results. - */ -enum BUFFER_OFFSET_NONE = 18446744073709551615UL; -alias GST_BUFFER_OFFSET_NONE = BUFFER_OFFSET_NONE; - -enum CAN_INLINE = 1; -alias GST_CAN_INLINE = CAN_INLINE; - -enum CAPS_FEATURE_MEMORY_SYSTEM_MEMORY = "memory:SystemMemory"; -alias GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY = CAPS_FEATURE_MEMORY_SYSTEM_MEMORY; - -/** - * Constant to define an undefined clock time. - */ -enum CLOCK_TIME_NONE = 18446744073709551615UL; -alias GST_CLOCK_TIME_NONE = CLOCK_TIME_NONE; - -enum DEBUG_BG_MASK = 240; -alias GST_DEBUG_BG_MASK = DEBUG_BG_MASK; - -enum DEBUG_FG_MASK = 15; -alias GST_DEBUG_FG_MASK = DEBUG_FG_MASK; - -enum DEBUG_FORMAT_MASK = 65280; -alias GST_DEBUG_FORMAT_MASK = DEBUG_FORMAT_MASK; - -enum ELEMENT_FACTORY_KLASS_DECODER = "Decoder"; -alias GST_ELEMENT_FACTORY_KLASS_DECODER = ELEMENT_FACTORY_KLASS_DECODER; - -enum ELEMENT_FACTORY_KLASS_DECRYPTOR = "Decryptor"; -alias GST_ELEMENT_FACTORY_KLASS_DECRYPTOR = ELEMENT_FACTORY_KLASS_DECRYPTOR; - -enum ELEMENT_FACTORY_KLASS_DEMUXER = "Demuxer"; -alias GST_ELEMENT_FACTORY_KLASS_DEMUXER = ELEMENT_FACTORY_KLASS_DEMUXER; - -enum ELEMENT_FACTORY_KLASS_DEPAYLOADER = "Depayloader"; -alias GST_ELEMENT_FACTORY_KLASS_DEPAYLOADER = ELEMENT_FACTORY_KLASS_DEPAYLOADER; - -enum ELEMENT_FACTORY_KLASS_ENCODER = "Encoder"; -alias GST_ELEMENT_FACTORY_KLASS_ENCODER = ELEMENT_FACTORY_KLASS_ENCODER; - -enum ELEMENT_FACTORY_KLASS_ENCRYPTOR = "Encryptor"; -alias GST_ELEMENT_FACTORY_KLASS_ENCRYPTOR = ELEMENT_FACTORY_KLASS_ENCRYPTOR; - -enum ELEMENT_FACTORY_KLASS_FORMATTER = "Formatter"; -alias GST_ELEMENT_FACTORY_KLASS_FORMATTER = ELEMENT_FACTORY_KLASS_FORMATTER; - -/** - * Elements interacting with hardware devices should specify this classifier in - * their metadata. You may need to put the element in "READY" state to test if - * the hardware is present in the system. - */ -enum ELEMENT_FACTORY_KLASS_HARDWARE = "Hardware"; -alias GST_ELEMENT_FACTORY_KLASS_HARDWARE = ELEMENT_FACTORY_KLASS_HARDWARE; - -enum ELEMENT_FACTORY_KLASS_MEDIA_AUDIO = "Audio"; -alias GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO = ELEMENT_FACTORY_KLASS_MEDIA_AUDIO; - -enum ELEMENT_FACTORY_KLASS_MEDIA_IMAGE = "Image"; -alias GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE = ELEMENT_FACTORY_KLASS_MEDIA_IMAGE; - -enum ELEMENT_FACTORY_KLASS_MEDIA_METADATA = "Metadata"; -alias GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA = ELEMENT_FACTORY_KLASS_MEDIA_METADATA; - -enum ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE = "Subtitle"; -alias GST_ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE = ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE; - -enum ELEMENT_FACTORY_KLASS_MEDIA_VIDEO = "Video"; -alias GST_ELEMENT_FACTORY_KLASS_MEDIA_VIDEO = ELEMENT_FACTORY_KLASS_MEDIA_VIDEO; - -enum ELEMENT_FACTORY_KLASS_MUXER = "Muxer"; -alias GST_ELEMENT_FACTORY_KLASS_MUXER = ELEMENT_FACTORY_KLASS_MUXER; - -enum ELEMENT_FACTORY_KLASS_PARSER = "Parser"; -alias GST_ELEMENT_FACTORY_KLASS_PARSER = ELEMENT_FACTORY_KLASS_PARSER; - -enum ELEMENT_FACTORY_KLASS_PAYLOADER = "Payloader"; -alias GST_ELEMENT_FACTORY_KLASS_PAYLOADER = ELEMENT_FACTORY_KLASS_PAYLOADER; - -enum ELEMENT_FACTORY_KLASS_SINK = "Sink"; -alias GST_ELEMENT_FACTORY_KLASS_SINK = ELEMENT_FACTORY_KLASS_SINK; - -enum ELEMENT_FACTORY_KLASS_SRC = "Source"; -alias GST_ELEMENT_FACTORY_KLASS_SRC = ELEMENT_FACTORY_KLASS_SRC; - -/** - * Elements of any of the defined GST_ELEMENT_FACTORY_LIST types - */ -enum ELEMENT_FACTORY_TYPE_ANY = 562949953421311UL; -alias GST_ELEMENT_FACTORY_TYPE_ANY = ELEMENT_FACTORY_TYPE_ANY; - -/** - * All sinks handling audio, video or image media types - */ -enum ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS = 3940649673949188UL; -alias GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS = ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS; - -/** - * All encoders handling audio media types - */ -enum ELEMENT_FACTORY_TYPE_AUDIO_ENCODER = 1125899906842626UL; -alias GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER = ELEMENT_FACTORY_TYPE_AUDIO_ENCODER; - -/** - * All elements used to 'decode' streams (decoders, demuxers, parsers, depayloaders) - */ -enum ELEMENT_FACTORY_TYPE_DECODABLE = 1377UL; -alias GST_ELEMENT_FACTORY_TYPE_DECODABLE = ELEMENT_FACTORY_TYPE_DECODABLE; - -enum ELEMENT_FACTORY_TYPE_DECODER = 1UL; -alias GST_ELEMENT_FACTORY_TYPE_DECODER = ELEMENT_FACTORY_TYPE_DECODER; - -enum ELEMENT_FACTORY_TYPE_DECRYPTOR = 1024UL; -alias GST_ELEMENT_FACTORY_TYPE_DECRYPTOR = ELEMENT_FACTORY_TYPE_DECRYPTOR; - -enum ELEMENT_FACTORY_TYPE_DEMUXER = 32UL; -alias GST_ELEMENT_FACTORY_TYPE_DEMUXER = ELEMENT_FACTORY_TYPE_DEMUXER; - -enum ELEMENT_FACTORY_TYPE_DEPAYLOADER = 256UL; -alias GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER = ELEMENT_FACTORY_TYPE_DEPAYLOADER; - -enum ELEMENT_FACTORY_TYPE_ENCODER = 2UL; -alias GST_ELEMENT_FACTORY_TYPE_ENCODER = ELEMENT_FACTORY_TYPE_ENCODER; - -enum ELEMENT_FACTORY_TYPE_ENCRYPTOR = 2048UL; -alias GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR = ELEMENT_FACTORY_TYPE_ENCRYPTOR; - -enum ELEMENT_FACTORY_TYPE_FORMATTER = 512UL; -alias GST_ELEMENT_FACTORY_TYPE_FORMATTER = ELEMENT_FACTORY_TYPE_FORMATTER; - -enum ELEMENT_FACTORY_TYPE_HARDWARE = 4096UL; -alias GST_ELEMENT_FACTORY_TYPE_HARDWARE = ELEMENT_FACTORY_TYPE_HARDWARE; - -enum ELEMENT_FACTORY_TYPE_MAX_ELEMENTS = 281474976710656UL; -alias GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS = ELEMENT_FACTORY_TYPE_MAX_ELEMENTS; - -/** - * Elements matching any of the defined GST_ELEMENT_FACTORY_TYPE_MEDIA types - * - * Note: Do not use this if you wish to not filter against any of the defined - * media types. If you wish to do this, simply don't specify any - * GST_ELEMENT_FACTORY_TYPE_MEDIA flag. - */ -enum ELEMENT_FACTORY_TYPE_MEDIA_ANY = 18446462598732840960UL; -alias GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY = ELEMENT_FACTORY_TYPE_MEDIA_ANY; - -enum ELEMENT_FACTORY_TYPE_MEDIA_AUDIO = 1125899906842624UL; -alias GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO = ELEMENT_FACTORY_TYPE_MEDIA_AUDIO; - -enum ELEMENT_FACTORY_TYPE_MEDIA_IMAGE = 2251799813685248UL; -alias GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE = ELEMENT_FACTORY_TYPE_MEDIA_IMAGE; - -enum ELEMENT_FACTORY_TYPE_MEDIA_METADATA = 9007199254740992UL; -alias GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA = ELEMENT_FACTORY_TYPE_MEDIA_METADATA; - -enum ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE = 4503599627370496UL; -alias GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE = ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE; - -enum ELEMENT_FACTORY_TYPE_MEDIA_VIDEO = 562949953421312UL; -alias GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO = ELEMENT_FACTORY_TYPE_MEDIA_VIDEO; - -enum ELEMENT_FACTORY_TYPE_MUXER = 16UL; -alias GST_ELEMENT_FACTORY_TYPE_MUXER = ELEMENT_FACTORY_TYPE_MUXER; - -enum ELEMENT_FACTORY_TYPE_PARSER = 64UL; -alias GST_ELEMENT_FACTORY_TYPE_PARSER = ELEMENT_FACTORY_TYPE_PARSER; - -enum ELEMENT_FACTORY_TYPE_PAYLOADER = 128UL; -alias GST_ELEMENT_FACTORY_TYPE_PAYLOADER = ELEMENT_FACTORY_TYPE_PAYLOADER; - -enum ELEMENT_FACTORY_TYPE_SINK = 4UL; -alias GST_ELEMENT_FACTORY_TYPE_SINK = ELEMENT_FACTORY_TYPE_SINK; - -enum ELEMENT_FACTORY_TYPE_SRC = 8UL; -alias GST_ELEMENT_FACTORY_TYPE_SRC = ELEMENT_FACTORY_TYPE_SRC; - -/** - * All encoders handling video or image media types - */ -enum ELEMENT_FACTORY_TYPE_VIDEO_ENCODER = 2814749767106562UL; -alias GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER = ELEMENT_FACTORY_TYPE_VIDEO_ENCODER; - -/** - * Name and contact details of the author(s). Use \n to separate - * multiple author details. - * E.g: "Joe Bloggs <joe.blogs at foo.com>" - */ -enum ELEMENT_METADATA_AUTHOR = "author"; -alias GST_ELEMENT_METADATA_AUTHOR = ELEMENT_METADATA_AUTHOR; - -/** - * Sentence describing the purpose of the element. - * E.g: "Write stream to a file" - */ -enum ELEMENT_METADATA_DESCRIPTION = "description"; -alias GST_ELEMENT_METADATA_DESCRIPTION = ELEMENT_METADATA_DESCRIPTION; - -/** - * Set uri pointing to user documentation. Applications can use this to show - * help for e.g. effects to users. - */ -enum ELEMENT_METADATA_DOC_URI = "doc-uri"; -alias GST_ELEMENT_METADATA_DOC_URI = ELEMENT_METADATA_DOC_URI; - -/** - * Elements that bridge to certain other products can include an icon of that - * used product. Application can show the icon in menus/selectors to help - * identifying specific elements. - */ -enum ELEMENT_METADATA_ICON_NAME = "icon-name"; -alias GST_ELEMENT_METADATA_ICON_NAME = ELEMENT_METADATA_ICON_NAME; - -/** - * String describing the type of element, as an unordered list - * separated with slashes ('/'). See draft-klass.txt of the design docs - * for more details and common types. E.g: "Sink/File" - */ -enum ELEMENT_METADATA_KLASS = "klass"; -alias GST_ELEMENT_METADATA_KLASS = ELEMENT_METADATA_KLASS; - -/** - * The long English name of the element. E.g. "File Sink" - */ -enum ELEMENT_METADATA_LONGNAME = "long-name"; -alias GST_ELEMENT_METADATA_LONGNAME = ELEMENT_METADATA_LONGNAME; - -/** - * Builds a string using errno describing the previously failed system - * call. To be used as the debug argument in #GST_ELEMENT_ERROR. - */ -enum ERROR_SYSTEM = "system error: %s"; -alias GST_ERROR_SYSTEM = ERROR_SYSTEM; - -enum EVENT_NUM_SHIFT = 8; -alias GST_EVENT_NUM_SHIFT = EVENT_NUM_SHIFT; - -/** - * The same thing as #GST_EVENT_TYPE_UPSTREAM | #GST_EVENT_TYPE_DOWNSTREAM. - */ -enum EVENT_TYPE_BOTH = 3; -alias GST_EVENT_TYPE_BOTH = EVENT_TYPE_BOTH; - -/** - * A mask value with all bits set, for use as a - * GstFlagSet mask where all flag bits must match - * exactly - */ -enum FLAG_SET_MASK_EXACT = 4294967295; -alias GST_FLAG_SET_MASK_EXACT = FLAG_SET_MASK_EXACT; - -/** - * The PERCENT format is between 0 and this value - */ -enum FORMAT_PERCENT_MAX = 1000000UL; -alias GST_FORMAT_PERCENT_MAX = FORMAT_PERCENT_MAX; - -/** - * The value used to scale down the reported PERCENT format value to - * its real value. - */ -enum FORMAT_PERCENT_SCALE = 10000UL; -alias GST_FORMAT_PERCENT_SCALE = FORMAT_PERCENT_SCALE; - -/** - * Can be used together with #GST_FOURCC_ARGS to properly output a - * #guint32 fourcc value in a printf\()-style text message. - * - * |[ - * printf ("fourcc: %" GST_FOURCC_FORMAT "\n", GST_FOURCC_ARGS (fcc)); - * ]| - */ -enum FOURCC_FORMAT = "c%c%c%c"; -alias GST_FOURCC_FORMAT = FOURCC_FORMAT; - -/** - * A value which is guaranteed to never be returned by - * gst_util_group_id_next(). - * - * Can be used as a default value in variables used to store group_id. - */ -enum GROUP_ID_INVALID = 0; -alias GST_GROUP_ID_INVALID = GROUP_ID_INVALID; - -/** - * To be used in GST_PLUGIN_DEFINE if unsure about the licence. - */ -enum LICENSE_UNKNOWN = "unknown"; -alias GST_LICENSE_UNKNOWN = LICENSE_UNKNOWN; - -/** - * GstLockFlags value alias for GST_LOCK_FLAG_READ | GST_LOCK_FLAG_WRITE - */ -enum LOCK_FLAG_READWRITE = 3; -alias GST_LOCK_FLAG_READWRITE = LOCK_FLAG_READWRITE; - -/** - * GstMapFlags value alias for GST_MAP_READ | GST_MAP_WRITE - */ -enum MAP_READWRITE = 3; -alias GST_MAP_READWRITE = MAP_READWRITE; - -/** - * This metadata stays relevant as long as memory layout is unchanged. - */ -enum META_TAG_MEMORY_STR = "memory"; -alias GST_META_TAG_MEMORY_STR = META_TAG_MEMORY_STR; - -/** - * Constant that defines one GStreamer millisecond. - */ -enum MSECOND = 1000000UL; -alias GST_MSECOND = MSECOND; - -/** - * Constant that defines one GStreamer nanosecond - */ -enum NSECOND = 1UL; -alias GST_NSECOND = NSECOND; - -/** - * Use this flag on GObject properties of GstObject to indicate that - * they might not be available depending on environment such as OS, device, etc, - * so such properties will be installed conditionally only if the GstObject is - * able to support it. - */ -enum PARAM_CONDITIONALLY_AVAILABLE = 16384; -alias GST_PARAM_CONDITIONALLY_AVAILABLE = PARAM_CONDITIONALLY_AVAILABLE; - -/** - * Use this flag on GObject properties to signal they can make sense to be. - * controlled over time. This hint is used by the GstController. - */ -enum PARAM_CONTROLLABLE = 512; -alias GST_PARAM_CONTROLLABLE = PARAM_CONTROLLABLE; - -/** - * Use this flag on GObject properties of GstObject to indicate that - * during `gst-inspect` and friends, the default value should be used - * as default instead of the current value. - */ -enum PARAM_DOC_SHOW_DEFAULT = 8192; -alias GST_PARAM_DOC_SHOW_DEFAULT = PARAM_DOC_SHOW_DEFAULT; - -/** - * Use this flag on GObject properties of GstElements to indicate that - * they can be changed when the element is in the PAUSED or lower state. - * This flag implies GST_PARAM_MUTABLE_READY. - */ -enum PARAM_MUTABLE_PAUSED = 2048; -alias GST_PARAM_MUTABLE_PAUSED = PARAM_MUTABLE_PAUSED; - -/** - * Use this flag on GObject properties of GstElements to indicate that - * they can be changed when the element is in the PLAYING or lower state. - * This flag implies GST_PARAM_MUTABLE_PAUSED. - */ -enum PARAM_MUTABLE_PLAYING = 4096; -alias GST_PARAM_MUTABLE_PLAYING = PARAM_MUTABLE_PLAYING; - -/** - * Use this flag on GObject properties of GstElements to indicate that - * they can be changed when the element is in the READY or lower state. - */ -enum PARAM_MUTABLE_READY = 1024; -alias GST_PARAM_MUTABLE_READY = PARAM_MUTABLE_READY; - -/** - * Bits based on GST_PARAM_USER_SHIFT can be used by 3rd party applications. - */ -enum PARAM_USER_SHIFT = 65536; -alias GST_PARAM_USER_SHIFT = PARAM_USER_SHIFT; - -/** - * The field name in a GstCaps that is used to signal the UUID of the protection - * system. - */ -enum PROTECTION_SYSTEM_ID_CAPS_FIELD = "protection-system"; -alias GST_PROTECTION_SYSTEM_ID_CAPS_FIELD = PROTECTION_SYSTEM_ID_CAPS_FIELD; - -/** - * The protection system value of the unspecified UUID. - * In some cases the system protection ID is not present in the contents or in their - * metadata, as encrypted WebM. - * This define is used to set the value of the "system_id" field in GstProtectionEvent, - * with this value, the application will use an external information to choose which - * protection system to use. - * - * Example: The matroskademux uses this value in the case of encrypted WebM, - * the application will choose the appropriate protection system based on the information - * received through EME API. - */ -enum PROTECTION_UNSPECIFIED_SYSTEM_ID = "unspecified-system-id"; -alias GST_PROTECTION_UNSPECIFIED_SYSTEM_ID = PROTECTION_UNSPECIFIED_SYSTEM_ID; - -/** - * printf format type used to debug GStreamer types. You can use this in - * combination with GStreamer's debug logging system as well as the functions - * gst_info_vasprintf(), gst_info_strdup_vprintf() and gst_info_strdup_printf() - * to pretty-print the following types: #GstCaps, #GstStructure, - * #GstCapsFeatures, #GstTagList, #GstDateTime, #GstBuffer, #GstBufferList, - * #GstMessage, #GstEvent, #GstQuery, #GstContext, #GstPad, #GstObject. All - * #GObject types will be printed as typename plus pointer, and everything - * else will simply be printed as pointer address. - * - * This can only be used on types whose size is >= sizeof(gpointer). - */ -enum PTR_FORMAT = "paA"; -alias GST_PTR_FORMAT = PTR_FORMAT; - -enum QUERY_NUM_SHIFT = 8; -alias GST_QUERY_NUM_SHIFT = QUERY_NUM_SHIFT; - -/** - * The same thing as #GST_QUERY_TYPE_UPSTREAM | #GST_QUERY_TYPE_DOWNSTREAM. - */ -enum QUERY_TYPE_BOTH = 3; -alias GST_QUERY_TYPE_BOTH = QUERY_TYPE_BOTH; - -/** - * Constant that defines one GStreamer second. - */ -enum SECOND = 1000000000UL; -alias GST_SECOND = SECOND; - -/** - * printf format type used to debug GStreamer segments. You can use this in - * combination with GStreamer's debug logging system as well as the functions - * gst_info_vasprintf(), gst_info_strdup_vprintf() and gst_info_strdup_printf() - * to pretty-print #GstSegment structures. - * This can only be used on pointers to GstSegment structures. - */ -enum SEGMENT_FORMAT = "paB"; -alias GST_SEGMENT_FORMAT = SEGMENT_FORMAT; - -enum SEGMENT_INSTANT_FLAGS = 912; -alias GST_SEGMENT_INSTANT_FLAGS = SEGMENT_INSTANT_FLAGS; - -/** - * A value which is guaranteed to never be returned by - * gst_util_seqnum_next(). - * - * Can be used as a default value in variables used to store seqnum. - */ -enum SEQNUM_INVALID = 0; -alias GST_SEQNUM_INVALID = SEQNUM_INVALID; - -/** - * printf format type used to debug GStreamer signed time value pointers. You - * can use this in combination with GStreamer's debug logging system as well as - * the functions gst_info_vasprintf(), gst_info_strdup_vprintf() and - * gst_info_strdup_printf() to pretty-print signed time (pointers to - * #GstClockTimeDiff or #gint64). - */ -enum STIMEP_FORMAT = "paS"; -alias GST_STIMEP_FORMAT = STIMEP_FORMAT; - -/** - * A string that can be used in printf-like format strings to display a signed - * #GstClockTimeDiff or #gint64 value in h:m:s format. Use GST_TIME_ARGS() to - * construct the matching arguments. - * - * Example: - * |[ - * printf("%" GST_STIME_FORMAT "\n", GST_STIME_ARGS(ts)); - * ]| - */ -enum STIME_FORMAT = "c%"; -alias GST_STIME_FORMAT = STIME_FORMAT; - -/** - * album containing this data (string) - * - * The album name as it should be displayed, e.g. 'The Jazz Guitar' - */ -enum TAG_ALBUM = "album"; -alias GST_TAG_ALBUM = TAG_ALBUM; - -/** - * The artist of the entire album, as it should be displayed. - */ -enum TAG_ALBUM_ARTIST = "album-artist"; -alias GST_TAG_ALBUM_ARTIST = TAG_ALBUM_ARTIST; - -/** - * The artist of the entire album, as it should be sorted. - */ -enum TAG_ALBUM_ARTIST_SORTNAME = "album-artist-sortname"; -alias GST_TAG_ALBUM_ARTIST_SORTNAME = TAG_ALBUM_ARTIST_SORTNAME; - -/** - * album gain in db (double) - */ -enum TAG_ALBUM_GAIN = "replaygain-album-gain"; -alias GST_TAG_ALBUM_GAIN = TAG_ALBUM_GAIN; - -/** - * peak of the album (double) - */ -enum TAG_ALBUM_PEAK = "replaygain-album-peak"; -alias GST_TAG_ALBUM_PEAK = TAG_ALBUM_PEAK; - -/** - * album containing this data, as used for sorting (string) - * - * The album name as it should be sorted, e.g. 'Jazz Guitar, The' - */ -enum TAG_ALBUM_SORTNAME = "album-sortname"; -alias GST_TAG_ALBUM_SORTNAME = TAG_ALBUM_SORTNAME; - -/** - * count of discs inside collection this disc belongs to (unsigned integer) - */ -enum TAG_ALBUM_VOLUME_COUNT = "album-disc-count"; -alias GST_TAG_ALBUM_VOLUME_COUNT = TAG_ALBUM_VOLUME_COUNT; - -/** - * disc number inside a collection (unsigned integer) - */ -enum TAG_ALBUM_VOLUME_NUMBER = "album-disc-number"; -alias GST_TAG_ALBUM_VOLUME_NUMBER = TAG_ALBUM_VOLUME_NUMBER; - -/** - * Arbitrary application data (sample) - * - * Some formats allow applications to add their own arbitrary data - * into files. This data is application dependent. - */ -enum TAG_APPLICATION_DATA = "application-data"; -alias GST_TAG_APPLICATION_DATA = TAG_APPLICATION_DATA; - -/** - * Name of the application used to create the media (string) - */ -enum TAG_APPLICATION_NAME = "application-name"; -alias GST_TAG_APPLICATION_NAME = TAG_APPLICATION_NAME; - -/** - * person(s) responsible for the recording (string) - * - * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or - * 'The Guitar Heroes' - */ -enum TAG_ARTIST = "artist"; -alias GST_TAG_ARTIST = TAG_ARTIST; - -/** - * person(s) responsible for the recording, as used for sorting (string) - * - * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or - * 'Guitar Heroes, The' - */ -enum TAG_ARTIST_SORTNAME = "artist-sortname"; -alias GST_TAG_ARTIST_SORTNAME = TAG_ARTIST_SORTNAME; - -/** - * generic file attachment (sample) (sample taglist should specify the content - * type and if possible set "filename" to the file name of the - * attachment) - */ -enum TAG_ATTACHMENT = "attachment"; -alias GST_TAG_ATTACHMENT = TAG_ATTACHMENT; - -/** - * codec the audio data is stored in (string) - */ -enum TAG_AUDIO_CODEC = "audio-codec"; -alias GST_TAG_AUDIO_CODEC = TAG_AUDIO_CODEC; - -/** - * number of beats per minute in audio (double) - */ -enum TAG_BEATS_PER_MINUTE = "beats-per-minute"; -alias GST_TAG_BEATS_PER_MINUTE = TAG_BEATS_PER_MINUTE; - -/** - * exact or average bitrate in bits/s (unsigned integer) - */ -enum TAG_BITRATE = "bitrate"; -alias GST_TAG_BITRATE = TAG_BITRATE; - -/** - * codec the data is stored in (string) - */ -enum TAG_CODEC = "codec"; -alias GST_TAG_CODEC = TAG_CODEC; - -/** - * free text commenting the data (string) - */ -enum TAG_COMMENT = "comment"; -alias GST_TAG_COMMENT = TAG_COMMENT; - -/** - * person(s) who composed the recording (string) - */ -enum TAG_COMPOSER = "composer"; -alias GST_TAG_COMPOSER = TAG_COMPOSER; - -/** - * The composer's name, used for sorting (string) - */ -enum TAG_COMPOSER_SORTNAME = "composer-sortname"; -alias GST_TAG_COMPOSER_SORTNAME = TAG_COMPOSER_SORTNAME; - -/** - * conductor/performer refinement (string) - */ -enum TAG_CONDUCTOR = "conductor"; -alias GST_TAG_CONDUCTOR = TAG_CONDUCTOR; - -/** - * contact information (string) - */ -enum TAG_CONTACT = "contact"; -alias GST_TAG_CONTACT = TAG_CONTACT; - -/** - * container format the data is stored in (string) - */ -enum TAG_CONTAINER_FORMAT = "container-format"; -alias GST_TAG_CONTAINER_FORMAT = TAG_CONTAINER_FORMAT; - -/** - * copyright notice of the data (string) - */ -enum TAG_COPYRIGHT = "copyright"; -alias GST_TAG_COPYRIGHT = TAG_COPYRIGHT; - -/** - * URI to location where copyright details can be found (string) - */ -enum TAG_COPYRIGHT_URI = "copyright-uri"; -alias GST_TAG_COPYRIGHT_URI = TAG_COPYRIGHT_URI; - -/** - * date the data was created (#GDate structure) - */ -enum TAG_DATE = "date"; -alias GST_TAG_DATE = TAG_DATE; - -/** - * date and time the data was created (#GstDateTime structure) - */ -enum TAG_DATE_TIME = "datetime"; -alias GST_TAG_DATE_TIME = TAG_DATE_TIME; - -/** - * short text describing the content of the data (string) - */ -enum TAG_DESCRIPTION = "description"; -alias GST_TAG_DESCRIPTION = TAG_DESCRIPTION; - -/** - * Manufacturer of the device used to create the media (string) - */ -enum TAG_DEVICE_MANUFACTURER = "device-manufacturer"; -alias GST_TAG_DEVICE_MANUFACTURER = TAG_DEVICE_MANUFACTURER; - -/** - * Model of the device used to create the media (string) - */ -enum TAG_DEVICE_MODEL = "device-model"; -alias GST_TAG_DEVICE_MODEL = TAG_DEVICE_MODEL; - -/** - * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer) - */ -enum TAG_DURATION = "duration"; -alias GST_TAG_DURATION = TAG_DURATION; - -/** - * name of the person or organisation that encoded the file. May contain a - * copyright message if the person or organisation also holds the copyright - * (string) - * - * Note: do not use this field to describe the encoding application. Use - * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that. - */ -enum TAG_ENCODED_BY = "encoded-by"; -alias GST_TAG_ENCODED_BY = TAG_ENCODED_BY; - -/** - * encoder used to encode this stream (string) - */ -enum TAG_ENCODER = "encoder"; -alias GST_TAG_ENCODER = TAG_ENCODER; - -/** - * version of the encoder used to encode this stream (unsigned integer) - */ -enum TAG_ENCODER_VERSION = "encoder-version"; -alias GST_TAG_ENCODER_VERSION = TAG_ENCODER_VERSION; - -/** - * key/value text commenting the data (string) - * - * Must be in the form of 'key=comment' or - * 'key[lc]=comment' where 'lc' is an ISO-639 - * language code. - * - * This tag is used for unknown Vorbis comment tags, - * unknown APE tags and certain ID3v2 comment fields. - */ -enum TAG_EXTENDED_COMMENT = "extended-comment"; -alias GST_TAG_EXTENDED_COMMENT = TAG_EXTENDED_COMMENT; - -/** - * genre this data belongs to (string) - */ -enum TAG_GENRE = "genre"; -alias GST_TAG_GENRE = TAG_GENRE; - -/** - * Indicates the direction the device is pointing to when capturing - * a media. It is represented as degrees in floating point representation, - * 0 means the geographic north, and increases clockwise (double from 0 to 360) - * - * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION - */ -enum TAG_GEO_LOCATION_CAPTURE_DIRECTION = "geo-location-capture-direction"; -alias GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION = TAG_GEO_LOCATION_CAPTURE_DIRECTION; - -/** - * The city (english name) where the media has been produced (string). - */ -enum TAG_GEO_LOCATION_CITY = "geo-location-city"; -alias GST_TAG_GEO_LOCATION_CITY = TAG_GEO_LOCATION_CITY; - -/** - * The country (english name) where the media has been produced (string). - */ -enum TAG_GEO_LOCATION_COUNTRY = "geo-location-country"; -alias GST_TAG_GEO_LOCATION_COUNTRY = TAG_GEO_LOCATION_COUNTRY; - -/** - * geo elevation of where the media has been recorded or produced in meters - * according to WGS84 (zero is average sea level) (double). - */ -enum TAG_GEO_LOCATION_ELEVATION = "geo-location-elevation"; -alias GST_TAG_GEO_LOCATION_ELEVATION = TAG_GEO_LOCATION_ELEVATION; - -/** - * Represents the expected error on the horizontal positioning in - * meters (double). - */ -enum TAG_GEO_LOCATION_HORIZONTAL_ERROR = "geo-location-horizontal-error"; -alias GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR = TAG_GEO_LOCATION_HORIZONTAL_ERROR; - -/** - * geo latitude location of where the media has been recorded or produced in - * degrees according to WGS84 (zero at the equator, negative values for southern - * latitudes) (double). - */ -enum TAG_GEO_LOCATION_LATITUDE = "geo-location-latitude"; -alias GST_TAG_GEO_LOCATION_LATITUDE = TAG_GEO_LOCATION_LATITUDE; - -/** - * geo longitude location of where the media has been recorded or produced in - * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK, - * negative values for western longitudes). (double). - */ -enum TAG_GEO_LOCATION_LONGITUDE = "geo-location-longitude"; -alias GST_TAG_GEO_LOCATION_LONGITUDE = TAG_GEO_LOCATION_LONGITUDE; - -/** - * Indicates the movement direction of the device performing the capture - * of a media. It is represented as degrees in floating point representation, - * 0 means the geographic north, and increases clockwise (double from 0 to 360) - * - * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION - */ -enum TAG_GEO_LOCATION_MOVEMENT_DIRECTION = "geo-location-movement-direction"; -alias GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION = TAG_GEO_LOCATION_MOVEMENT_DIRECTION; - -/** - * Speed of the capturing device when performing the capture. - * Represented in m/s. (double) - * - * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION - */ -enum TAG_GEO_LOCATION_MOVEMENT_SPEED = "geo-location-movement-speed"; -alias GST_TAG_GEO_LOCATION_MOVEMENT_SPEED = TAG_GEO_LOCATION_MOVEMENT_SPEED; - -/** - * human readable descriptive location of where the media has been recorded or - * produced. (string). - */ -enum TAG_GEO_LOCATION_NAME = "geo-location-name"; -alias GST_TAG_GEO_LOCATION_NAME = TAG_GEO_LOCATION_NAME; - -/** - * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better - * where the media has been produced. (e.g. the neighborhood) (string). - * - * This tag has been added as this is how it is handled/named in XMP's - * Iptc4xmpcore schema. - */ -enum TAG_GEO_LOCATION_SUBLOCATION = "geo-location-sublocation"; -alias GST_TAG_GEO_LOCATION_SUBLOCATION = TAG_GEO_LOCATION_SUBLOCATION; - -/** - * Groups together media that are related and spans multiple tracks. An - * example are multiple pieces of a concerto. (string) - */ -enum TAG_GROUPING = "grouping"; -alias GST_TAG_GROUPING = TAG_GROUPING; - -/** - * Homepage for this media (i.e. artist or movie homepage) (string) - */ -enum TAG_HOMEPAGE = "homepage"; -alias GST_TAG_HOMEPAGE = TAG_HOMEPAGE; - -/** - * image (sample) (sample taglist should specify the content type and preferably - * also set "image-type" field as `GstTagImageType`) - */ -enum TAG_IMAGE = "image"; -alias GST_TAG_IMAGE = TAG_IMAGE; - -/** - * Represents the 'Orientation' tag from EXIF. Defines how the image - * should be rotated and mirrored for display. (string) - * - * This tag has a predefined set of allowed values: - * "rotate-0" - * "rotate-90" - * "rotate-180" - * "rotate-270" - * "flip-rotate-0" - * "flip-rotate-90" - * "flip-rotate-180" - * "flip-rotate-270" - * - * The naming is adopted according to a possible transformation to perform - * on the image to fix its orientation, obviously equivalent operations will - * yield the same result. - * - * Rotations indicated by the values are in clockwise direction and - * 'flip' means an horizontal mirroring. - */ -enum TAG_IMAGE_ORIENTATION = "image-orientation"; -alias GST_TAG_IMAGE_ORIENTATION = TAG_IMAGE_ORIENTATION; - -/** - * Information about the people behind a remix and similar - * interpretations of another existing piece (string) - */ -enum TAG_INTERPRETED_BY = "interpreted-by"; -alias GST_TAG_INTERPRETED_BY = TAG_INTERPRETED_BY; - -/** - * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string) - */ -enum TAG_ISRC = "isrc"; -alias GST_TAG_ISRC = TAG_ISRC; - -/** - * comma separated keywords describing the content (string). - */ -enum TAG_KEYWORDS = "keywords"; -alias GST_TAG_KEYWORDS = TAG_KEYWORDS; - -/** - * ISO-639-2 or ISO-639-1 code for the language the content is in (string) - * - * There is utility API in libgsttag in gst-plugins-base to obtain a translated - * language name from the language code: `gst_tag_get_language_name()` - */ -enum TAG_LANGUAGE_CODE = "language-code"; -alias GST_TAG_LANGUAGE_CODE = TAG_LANGUAGE_CODE; - -/** - * Name of the language the content is in (string) - * - * Free-form name of the language the content is in, if a language code - * is not available. This tag should not be set in addition to a language - * code. It is undefined what language or locale the language name is in. - */ -enum TAG_LANGUAGE_NAME = "language-name"; -alias GST_TAG_LANGUAGE_NAME = TAG_LANGUAGE_NAME; - -/** - * license of data (string) - */ -enum TAG_LICENSE = "license"; -alias GST_TAG_LICENSE = TAG_LICENSE; - -/** - * URI to location where license details can be found (string) - */ -enum TAG_LICENSE_URI = "license-uri"; -alias GST_TAG_LICENSE_URI = TAG_LICENSE_URI; - -/** - * Origin of media as a URI (location, where the original of the file or stream - * is hosted) (string) - */ -enum TAG_LOCATION = "location"; -alias GST_TAG_LOCATION = TAG_LOCATION; - -/** - * The lyrics of the media (string) - */ -enum TAG_LYRICS = "lyrics"; -alias GST_TAG_LYRICS = TAG_LYRICS; - -/** - * maximum bitrate in bits/s (unsigned integer) - */ -enum TAG_MAXIMUM_BITRATE = "maximum-bitrate"; -alias GST_TAG_MAXIMUM_BITRATE = TAG_MAXIMUM_BITRATE; - -/** - * [Midi note number](http://en.wikipedia.org/wiki/Note#Note_designation_in_accordance_with_octave_name) - * of the audio track. This is useful for sample instruments and in particular - * for multi-samples. - */ -enum TAG_MIDI_BASE_NOTE = "midi-base-note"; -alias GST_TAG_MIDI_BASE_NOTE = TAG_MIDI_BASE_NOTE; - -/** - * minimum bitrate in bits/s (unsigned integer) - */ -enum TAG_MINIMUM_BITRATE = "minimum-bitrate"; -alias GST_TAG_MINIMUM_BITRATE = TAG_MINIMUM_BITRATE; - -/** - * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be - * different from this target bitrate. - */ -enum TAG_NOMINAL_BITRATE = "nominal-bitrate"; -alias GST_TAG_NOMINAL_BITRATE = TAG_NOMINAL_BITRATE; - -/** - * organization (string) - */ -enum TAG_ORGANIZATION = "organization"; -alias GST_TAG_ORGANIZATION = TAG_ORGANIZATION; - -/** - * person(s) performing (string) - */ -enum TAG_PERFORMER = "performer"; -alias GST_TAG_PERFORMER = TAG_PERFORMER; - -/** - * image that is meant for preview purposes, e.g. small icon-sized version - * (sample) (sample taglist should specify the content type) - */ -enum TAG_PREVIEW_IMAGE = "preview-image"; -alias GST_TAG_PREVIEW_IMAGE = TAG_PREVIEW_IMAGE; - -/** - * Any private data that may be contained in tags (sample). - * - * It is represented by #GstSample in which #GstBuffer contains the - * binary data and the sample's info #GstStructure may contain any - * extra information that identifies the origin or meaning of the data. - * - * Private frames in ID3v2 tags ('PRIV' frames) will be represented - * using this tag, in which case the GstStructure will be named - * "ID3PrivateFrame" and contain a field named "owner" of type string - * which contains the owner-identification string from the tag. - */ -enum TAG_PRIVATE_DATA = "private-data"; -alias GST_TAG_PRIVATE_DATA = TAG_PRIVATE_DATA; - -/** - * Name of the label or publisher (string) - */ -enum TAG_PUBLISHER = "publisher"; -alias GST_TAG_PUBLISHER = TAG_PUBLISHER; - -/** - * reference level of track and album gain values (double) - */ -enum TAG_REFERENCE_LEVEL = "replaygain-reference-level"; -alias GST_TAG_REFERENCE_LEVEL = TAG_REFERENCE_LEVEL; - -/** - * serial number of track (unsigned integer) - */ -enum TAG_SERIAL = "serial"; -alias GST_TAG_SERIAL = TAG_SERIAL; - -/** - * Number of the episode within a season/show (unsigned integer) - */ -enum TAG_SHOW_EPISODE_NUMBER = "show-episode-number"; -alias GST_TAG_SHOW_EPISODE_NUMBER = TAG_SHOW_EPISODE_NUMBER; - -/** - * Name of the show, used for displaying (string) - */ -enum TAG_SHOW_NAME = "show-name"; -alias GST_TAG_SHOW_NAME = TAG_SHOW_NAME; - -/** - * Number of the season of a show/series (unsigned integer) - */ -enum TAG_SHOW_SEASON_NUMBER = "show-season-number"; -alias GST_TAG_SHOW_SEASON_NUMBER = TAG_SHOW_SEASON_NUMBER; - -/** - * Name of the show, used for sorting (string) - */ -enum TAG_SHOW_SORTNAME = "show-sortname"; -alias GST_TAG_SHOW_SORTNAME = TAG_SHOW_SORTNAME; - -/** - * codec/format the subtitle data is stored in (string) - */ -enum TAG_SUBTITLE_CODEC = "subtitle-codec"; -alias GST_TAG_SUBTITLE_CODEC = TAG_SUBTITLE_CODEC; - -/** - * commonly used title (string) - * - * The title as it should be displayed, e.g. 'The Doll House' - */ -enum TAG_TITLE = "title"; -alias GST_TAG_TITLE = TAG_TITLE; - -/** - * commonly used title, as used for sorting (string) - * - * The title as it should be sorted, e.g. 'Doll House, The' - */ -enum TAG_TITLE_SORTNAME = "title-sortname"; -alias GST_TAG_TITLE_SORTNAME = TAG_TITLE_SORTNAME; - -/** - * count of tracks inside collection this track belongs to (unsigned integer) - */ -enum TAG_TRACK_COUNT = "track-count"; -alias GST_TAG_TRACK_COUNT = TAG_TRACK_COUNT; - -/** - * track gain in db (double) - */ -enum TAG_TRACK_GAIN = "replaygain-track-gain"; -alias GST_TAG_TRACK_GAIN = TAG_TRACK_GAIN; - -/** - * track number inside a collection (unsigned integer) - */ -enum TAG_TRACK_NUMBER = "track-number"; -alias GST_TAG_TRACK_NUMBER = TAG_TRACK_NUMBER; - -/** - * peak of the track (double) - */ -enum TAG_TRACK_PEAK = "replaygain-track-peak"; -alias GST_TAG_TRACK_PEAK = TAG_TRACK_PEAK; - -/** - * Rating attributed by a person (likely the application user). - * The higher the value, the more the user likes this media - * (unsigned int from 0 to 100) - */ -enum TAG_USER_RATING = "user-rating"; -alias GST_TAG_USER_RATING = TAG_USER_RATING; - -/** - * version of this data (string) - */ -enum TAG_VERSION = "version"; -alias GST_TAG_VERSION = TAG_VERSION; - -/** - * codec the video data is stored in (string) - */ -enum TAG_VIDEO_CODEC = "video-codec"; -alias GST_TAG_VIDEO_CODEC = TAG_VIDEO_CODEC; - -/** - * printf format type used to debug GStreamer ClockTime pointers. You can use - * this in combination with GStreamer's debug logging system as well as the - * functions gst_info_vasprintf(), gst_info_strdup_vprintf() and - * gst_info_strdup_printf() to pretty-print #GstClockTime pointers. This can - * only be used on pointers to GstClockTime values. - */ -enum TIMEP_FORMAT = "paT"; -alias GST_TIMEP_FORMAT = TIMEP_FORMAT; - -/** - * A string that can be used in printf-like format strings to display a - * #GstClockTime value in h:m:s format. Use GST_TIME_ARGS() to construct - * the matching arguments. - * - * Example: - * |[ - * printf("%" GST_TIME_FORMAT "\n", GST_TIME_ARGS(ts)); - * ]| - */ -enum TIME_FORMAT = "u:%02u:%02u.%09u"; -alias GST_TIME_FORMAT = TIME_FORMAT; - -/** - * Special value for the repeat_count set in gst_toc_entry_set_loop() or - * returned by gst_toc_entry_set_loop() to indicate infinite looping. - */ -enum TOC_REPEAT_COUNT_INFINITE = -1; -alias GST_TOC_REPEAT_COUNT_INFINITE = TOC_REPEAT_COUNT_INFINITE; - -/** - * Value for #GstUri.port to indicate no port number. - */ -enum URI_NO_PORT = 0; -alias GST_URI_NO_PORT = URI_NO_PORT; - -/** - * Constant that defines one GStreamer microsecond. - */ -enum USECOND = 1000UL; -alias GST_USECOND = USECOND; - -/** - * Indicates that the first value provided to a comparison function - * (gst_value_compare()) is equal to the second one. - */ -enum VALUE_EQUAL = 0; -alias GST_VALUE_EQUAL = VALUE_EQUAL; - -/** - * Indicates that the first value provided to a comparison function - * (gst_value_compare()) is greater than the second one. - */ -enum VALUE_GREATER_THAN = 1; -alias GST_VALUE_GREATER_THAN = VALUE_GREATER_THAN; - -/** - * Indicates that the first value provided to a comparison function - * (gst_value_compare()) is lesser than the second one. - */ -enum VALUE_LESS_THAN = -1; -alias GST_VALUE_LESS_THAN = VALUE_LESS_THAN; - -/** - * Indicates that the comparison function (gst_value_compare()) can not - * determine a order for the two provided values. - */ -enum VALUE_UNORDERED = 2; -alias GST_VALUE_UNORDERED = VALUE_UNORDERED; - -/** - * The major version of GStreamer at compile time: - */ -enum VERSION_MAJOR = 1; -alias GST_VERSION_MAJOR = VERSION_MAJOR; - -/** - * The micro version of GStreamer at compile time: - */ -enum VERSION_MICRO = 4; -alias GST_VERSION_MICRO = VERSION_MICRO; - -/** - * The minor version of GStreamer at compile time: - */ -enum VERSION_MINOR = 18; -alias GST_VERSION_MINOR = VERSION_MINOR; - -/** - * The nano version of GStreamer at compile time: - * Actual releases have 0, GIT versions have 1, prerelease versions have 2-... - */ -enum VERSION_NANO = 0; -alias GST_VERSION_NANO = VERSION_NANO; diff --git a/generated/gtkd/atk/ActionIF.d b/generated/gtkd/atk/ActionIF.d deleted file mode 100644 index a0b6ce206..000000000 --- a/generated/gtkd/atk/ActionIF.d +++ /dev/null @@ -1,174 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ActionIF; - -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; - - -/** - * #AtkAction should be implemented by instances of #AtkObject classes - * with which the user can interact directly, i.e. buttons, - * checkboxes, scrollbars, e.g. components which are not "passive" - * providers of UI information. - * - * Exceptions: when the user interaction is already covered by another - * appropriate interface such as #AtkEditableText (insert/delete text, - * etc.) or #AtkValue (set value) then these actions should not be - * exposed by #AtkAction as well. - * - * Though most UI interactions on components should be invocable via - * keyboard as well as mouse, there will generally be a close mapping - * between "mouse actions" that are possible on a component and the - * AtkActions. Where mouse and keyboard actions are redundant in - * effect, #AtkAction should expose only one action rather than - * exposing redundant actions if possible. By convention we have been - * using "mouse centric" terminology for #AtkAction names. - */ -public interface ActionIF{ - /** Get the main Gtk struct */ - public AtkAction* getActionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_action_get_type(); - } - - /** - * Perform the specified action on the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: %TRUE if success, %FALSE otherwise - */ - public bool doAction(int i); - - /** - * Returns a description of the specified action of the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: a description string, or %NULL if @action does - * not implement this interface. - */ - public string getDescription(int i); - - /** - * Gets the keybinding which can be used to activate this action, if one - * exists. The string returned should contain localized, human-readable, - * key sequences as they would appear when displayed on screen. It must - * be in the format "mnemonic;sequence;shortcut". - * - * - The mnemonic key activates the object if it is presently enabled onscreen. - * This typically corresponds to the underlined letter within the widget. - * Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for - * a button. - * - The sequence is the full list of keys which invoke the action even if the - * relevant element is not currently shown on screen. For instance, for a menu - * item the sequence is the keybindings used to open the parent menus before - * invoking. The sequence string is colon-delimited. Example: "Alt+F:N" in a - * traditional "New..." menu item. - * - The shortcut, if it exists, will invoke the same action without showing - * the component or its enclosing menus or dialogs. Example: "Ctrl+N" in a - * traditional "New..." menu item. - * - * Example: For a traditional "New..." menu item, the expected return value - * would be: "N;Alt+F:N;Ctrl+N" for the English locale and "N;Alt+D:N;Strg+N" - * for the German locale. If, hypothetically, this menu item lacked a mnemonic, - * it would be represented by ";;Ctrl+N" and ";;Strg+N" respectively. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: the keybinding which can be used to activate - * this action, or %NULL if there is no keybinding for this action. - */ - public string getKeybinding(int i); - - /** - * Returns the localized name of the specified action of the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: a name string, or %NULL if @action does not - * implement this interface. - */ - public string getLocalizedName(int i); - - /** - * Gets the number of accessible actions available on the object. - * If there are more than one, the first one is considered the - * "default" action of the object. - * - * Returns: a the number of actions, or 0 if @action does not - * implement this interface. - */ - public int getNActions(); - - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: a name string, or %NULL if @action does not - * implement this interface. - */ - public string getName(int i); - - /** - * Sets a description of the specified action of the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * desc = the description to be assigned to this action - * - * Returns: a gboolean representing if the description was successfully set; - */ - public bool setDescription(int i, string desc); -} diff --git a/generated/gtkd/atk/ActionT.d b/generated/gtkd/atk/ActionT.d deleted file mode 100644 index 97eaa8956..000000000 --- a/generated/gtkd/atk/ActionT.d +++ /dev/null @@ -1,192 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ActionT; - -public import atk.c.functions; -public import atk.c.types; -public import glib.Str; -public import glib.c.functions; - - -/** - * #AtkAction should be implemented by instances of #AtkObject classes - * with which the user can interact directly, i.e. buttons, - * checkboxes, scrollbars, e.g. components which are not "passive" - * providers of UI information. - * - * Exceptions: when the user interaction is already covered by another - * appropriate interface such as #AtkEditableText (insert/delete text, - * etc.) or #AtkValue (set value) then these actions should not be - * exposed by #AtkAction as well. - * - * Though most UI interactions on components should be invocable via - * keyboard as well as mouse, there will generally be a close mapping - * between "mouse actions" that are possible on a component and the - * AtkActions. Where mouse and keyboard actions are redundant in - * effect, #AtkAction should expose only one action rather than - * exposing redundant actions if possible. By convention we have been - * using "mouse centric" terminology for #AtkAction names. - */ -public template ActionT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkAction* getActionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkAction*)getStruct(); - } - - - /** - * Perform the specified action on the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: %TRUE if success, %FALSE otherwise - */ - public bool doAction(int i) - { - return atk_action_do_action(getActionStruct(), i) != 0; - } - - /** - * Returns a description of the specified action of the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: a description string, or %NULL if @action does - * not implement this interface. - */ - public string getDescription(int i) - { - return Str.toString(atk_action_get_description(getActionStruct(), i)); - } - - /** - * Gets the keybinding which can be used to activate this action, if one - * exists. The string returned should contain localized, human-readable, - * key sequences as they would appear when displayed on screen. It must - * be in the format "mnemonic;sequence;shortcut". - * - * - The mnemonic key activates the object if it is presently enabled onscreen. - * This typically corresponds to the underlined letter within the widget. - * Example: "n" in a traditional "New..." menu item or the "a" in "Apply" for - * a button. - * - The sequence is the full list of keys which invoke the action even if the - * relevant element is not currently shown on screen. For instance, for a menu - * item the sequence is the keybindings used to open the parent menus before - * invoking. The sequence string is colon-delimited. Example: "Alt+F:N" in a - * traditional "New..." menu item. - * - The shortcut, if it exists, will invoke the same action without showing - * the component or its enclosing menus or dialogs. Example: "Ctrl+N" in a - * traditional "New..." menu item. - * - * Example: For a traditional "New..." menu item, the expected return value - * would be: "N;Alt+F:N;Ctrl+N" for the English locale and "N;Alt+D:N;Strg+N" - * for the German locale. If, hypothetically, this menu item lacked a mnemonic, - * it would be represented by ";;Ctrl+N" and ";;Strg+N" respectively. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: the keybinding which can be used to activate - * this action, or %NULL if there is no keybinding for this action. - */ - public string getKeybinding(int i) - { - return Str.toString(atk_action_get_keybinding(getActionStruct(), i)); - } - - /** - * Returns the localized name of the specified action of the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: a name string, or %NULL if @action does not - * implement this interface. - */ - public string getLocalizedName(int i) - { - return Str.toString(atk_action_get_localized_name(getActionStruct(), i)); - } - - /** - * Gets the number of accessible actions available on the object. - * If there are more than one, the first one is considered the - * "default" action of the object. - * - * Returns: a the number of actions, or 0 if @action does not - * implement this interface. - */ - public int getNActions() - { - return atk_action_get_n_actions(getActionStruct()); - } - - /** - * Returns a non-localized string naming the specified action of the - * object. This name is generally not descriptive of the end result - * of the action, but instead names the 'interaction type' which the - * object supports. By convention, the above strings should be used to - * represent the actions which correspond to the common point-and-click - * interaction techniques of the same name: i.e. - * "click", "press", "release", "drag", "drop", "popup", etc. - * The "popup" action should be used to pop up a context menu for the - * object, if one exists. - * - * For technical reasons, some toolkits cannot guarantee that the - * reported action is actually 'bound' to a nontrivial user event; - * i.e. the result of some actions via atk_action_do_action() may be - * NIL. - * - * Params: - * i = the action index corresponding to the action to be performed - * - * Returns: a name string, or %NULL if @action does not - * implement this interface. - */ - public string getName(int i) - { - return Str.toString(atk_action_get_name(getActionStruct(), i)); - } - - /** - * Sets a description of the specified action of the object. - * - * Params: - * i = the action index corresponding to the action to be performed - * desc = the description to be assigned to this action - * - * Returns: a gboolean representing if the description was successfully set; - */ - public bool setDescription(int i, string desc) - { - return atk_action_set_description(getActionStruct(), i, Str.toStringz(desc)) != 0; - } -} diff --git a/generated/gtkd/atk/ComponentIF.d b/generated/gtkd/atk/ComponentIF.d deleted file mode 100644 index 49b0bbde7..000000000 --- a/generated/gtkd/atk/ComponentIF.d +++ /dev/null @@ -1,289 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ComponentIF; - -private import atk.ObjectAtk; -private import atk.Rectangle; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #AtkComponent should be implemented by most if not all UI elements - * with an actual on-screen presence, i.e. components which can be - * said to have a screen-coordinate bounding box. Virtually all - * widgets will need to have #AtkComponent implementations provided - * for their corresponding #AtkObject class. In short, only UI - * elements which are *not* GUI elements will omit this ATK interface. - * - * A possible exception might be textual information with a - * transparent background, in which case text glyph bounding box - * information is provided by #AtkText. - */ -public interface ComponentIF{ - /** Get the main Gtk struct */ - public AtkComponent* getComponentStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_component_get_type(); - } - - /** - * Add the specified handler to the set of functions to be called - * when this object receives focus events (in or out). If the handler is - * already added it is not added again - * - * Deprecated: If you need to track when an object gains or - * lose the focus, use the #AtkObject::state-change "focused" notification instead. - * - * Params: - * handler = The #AtkFocusHandler to be attached to @component - * - * Returns: a handler id which can be used in atk_component_remove_focus_handler() - * or zero if the handler was already added. - */ - public uint addFocusHandler(AtkFocusHandler handler); - - /** - * Checks whether the specified point is within the extent of the @component. - * - * Toolkit implementor note: ATK provides a default implementation for - * this virtual method. In general there are little reason to - * re-implement it. - * - * Params: - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * - * Returns: %TRUE or %FALSE indicating whether the specified point is within - * the extent of the @component or not - */ - public bool contains(int x, int y, AtkCoordType coordType); - - /** - * Returns the alpha value (i.e. the opacity) for this - * @component, on a scale from 0 (fully transparent) to 1.0 - * (fully opaque). - * - * Returns: An alpha value from 0 to 1.0, inclusive. - * - * Since: 1.12 - */ - public double getAlpha(); - - /** - * Gets the rectangle which gives the extent of the @component. - * - * If the extent can not be obtained (e.g. a non-embedded plug or missing - * support), all of x, y, width, height are set to -1. - * - * Params: - * x = address of #gint to put x coordinate - * y = address of #gint to put y coordinate - * width = address of #gint to put width - * height = address of #gint to put height - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - */ - public void getExtents(out int x, out int y, out int width, out int height, AtkCoordType coordType); - - /** - * Gets the layer of the component. - * - * Returns: an #AtkLayer which is the layer of the component - */ - public AtkLayer getLayer(); - - /** - * Gets the zorder of the component. The value G_MININT will be returned - * if the layer of the component is not ATK_LAYER_MDI or ATK_LAYER_WINDOW. - * - * Returns: a gint which is the zorder of the component, i.e. the depth at - * which the component is shown in relation to other components in the same - * container. - */ - public int getMdiZorder(); - - /** - * Gets the position of @component in the form of - * a point specifying @component's top-left corner. - * - * If the position can not be obtained (e.g. a non-embedded plug or missing - * support), x and y are set to -1. - * - * Deprecated: Since 2.12. Use atk_component_get_extents() instead. - * - * Params: - * x = address of #gint to put x coordinate position - * y = address of #gint to put y coordinate position - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - */ - public void getPosition(out int x, out int y, AtkCoordType coordType); - - /** - * Gets the size of the @component in terms of width and height. - * - * If the size can not be obtained (e.g. a non-embedded plug or missing - * support), width and height are set to -1. - * - * Deprecated: Since 2.12. Use atk_component_get_extents() instead. - * - * Params: - * width = address of #gint to put width of @component - * height = address of #gint to put height of @component - */ - public void getSize(out int width, out int height); - - /** - * Grabs focus for this @component. - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool grabFocus(); - - /** - * Gets a reference to the accessible child, if one exists, at the - * coordinate point specified by @x and @y. - * - * Params: - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * - * Returns: a reference to the accessible - * child, if one exists - */ - public ObjectAtk refAccessibleAtPoint(int x, int y, AtkCoordType coordType); - - /** - * Remove the handler specified by @handler_id from the list of - * functions to be executed when this object receives focus events - * (in or out). - * - * Deprecated: If you need to track when an object gains or - * lose the focus, use the #AtkObject::state-change "focused" notification instead. - * - * Params: - * handlerId = the handler id of the focus handler to be removed - * from @component - */ - public void removeFocusHandler(uint handlerId); - - /** - * Makes @component visible on the screen by scrolling all necessary parents. - * - * Contrary to atk_component_set_position, this does not actually move - * @component in its parent, this only makes the parents scroll so that the - * object shows up on the screen, given its current position within the parents. - * - * Params: - * type = specify where the object should be made visible. - * - * Returns: whether scrolling was successful. - * - * Since: 2.30 - */ - public bool scrollTo(AtkScrollType type); - - /** - * Move the top-left of @component to a given position of the screen by - * scrolling all necessary parents. - * - * Params: - * coords = specify whether coordinates are relative to the screen or to the - * parent object. - * x = x-position where to scroll to - * y = y-position where to scroll to - * - * Returns: whether scrolling was successful. - * - * Since: 2.30 - */ - public bool scrollToPoint(AtkCoordType coords, int x, int y); - - /** - * Sets the extents of @component. - * - * Params: - * x = x coordinate - * y = y coordinate - * width = width to set for @component - * height = height to set for @component - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * - * Returns: %TRUE or %FALSE whether the extents were set or not - */ - public bool setExtents(int x, int y, int width, int height, AtkCoordType coordType); - - /** - * Sets the position of @component. - * - * Contrary to atk_component_scroll_to, this does not trigger any scrolling, - * this just moves @component in its parent. - * - * Params: - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the component's top level window - * - * Returns: %TRUE or %FALSE whether or not the position was set or not - */ - public bool setPosition(int x, int y, AtkCoordType coordType); - - /** - * Set the size of the @component in terms of width and height. - * - * Params: - * width = width to set for @component - * height = height to set for @component - * - * Returns: %TRUE or %FALSE whether the size was set or not - */ - public bool setSize(int width, int height); - - /** - * The 'bounds-changed" signal is emitted when the bposition or - * size of the component changes. - * - * Params: - * arg1 = The AtkRectangle giving the new position and size. - */ - gulong addOnBoundsChanged(void delegate(Rectangle, ComponentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/atk/ComponentT.d b/generated/gtkd/atk/ComponentT.d deleted file mode 100644 index 329ed2a43..000000000 --- a/generated/gtkd/atk/ComponentT.d +++ /dev/null @@ -1,344 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ComponentT; - -public import atk.ObjectAtk; -public import atk.Rectangle; -public import atk.c.functions; -public import atk.c.types; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #AtkComponent should be implemented by most if not all UI elements - * with an actual on-screen presence, i.e. components which can be - * said to have a screen-coordinate bounding box. Virtually all - * widgets will need to have #AtkComponent implementations provided - * for their corresponding #AtkObject class. In short, only UI - * elements which are *not* GUI elements will omit this ATK interface. - * - * A possible exception might be textual information with a - * transparent background, in which case text glyph bounding box - * information is provided by #AtkText. - */ -public template ComponentT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkComponent* getComponentStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkComponent*)getStruct(); - } - - - /** - * Add the specified handler to the set of functions to be called - * when this object receives focus events (in or out). If the handler is - * already added it is not added again - * - * Deprecated: If you need to track when an object gains or - * lose the focus, use the #AtkObject::state-change "focused" notification instead. - * - * Params: - * handler = The #AtkFocusHandler to be attached to @component - * - * Returns: a handler id which can be used in atk_component_remove_focus_handler() - * or zero if the handler was already added. - */ - public uint addFocusHandler(AtkFocusHandler handler) - { - return atk_component_add_focus_handler(getComponentStruct(), handler); - } - - /** - * Checks whether the specified point is within the extent of the @component. - * - * Toolkit implementor note: ATK provides a default implementation for - * this virtual method. In general there are little reason to - * re-implement it. - * - * Params: - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * - * Returns: %TRUE or %FALSE indicating whether the specified point is within - * the extent of the @component or not - */ - public bool contains(int x, int y, AtkCoordType coordType) - { - return atk_component_contains(getComponentStruct(), x, y, coordType) != 0; - } - - /** - * Returns the alpha value (i.e. the opacity) for this - * @component, on a scale from 0 (fully transparent) to 1.0 - * (fully opaque). - * - * Returns: An alpha value from 0 to 1.0, inclusive. - * - * Since: 1.12 - */ - public double getAlpha() - { - return atk_component_get_alpha(getComponentStruct()); - } - - /** - * Gets the rectangle which gives the extent of the @component. - * - * If the extent can not be obtained (e.g. a non-embedded plug or missing - * support), all of x, y, width, height are set to -1. - * - * Params: - * x = address of #gint to put x coordinate - * y = address of #gint to put y coordinate - * width = address of #gint to put width - * height = address of #gint to put height - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - */ - public void getExtents(out int x, out int y, out int width, out int height, AtkCoordType coordType) - { - atk_component_get_extents(getComponentStruct(), &x, &y, &width, &height, coordType); - } - - /** - * Gets the layer of the component. - * - * Returns: an #AtkLayer which is the layer of the component - */ - public override AtkLayer getLayer() - { - return atk_component_get_layer(getComponentStruct()); - } - - /** - * Gets the zorder of the component. The value G_MININT will be returned - * if the layer of the component is not ATK_LAYER_MDI or ATK_LAYER_WINDOW. - * - * Returns: a gint which is the zorder of the component, i.e. the depth at - * which the component is shown in relation to other components in the same - * container. - */ - public override int getMdiZorder() - { - return atk_component_get_mdi_zorder(getComponentStruct()); - } - - /** - * Gets the position of @component in the form of - * a point specifying @component's top-left corner. - * - * If the position can not be obtained (e.g. a non-embedded plug or missing - * support), x and y are set to -1. - * - * Deprecated: Since 2.12. Use atk_component_get_extents() instead. - * - * Params: - * x = address of #gint to put x coordinate position - * y = address of #gint to put y coordinate position - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - */ - public void getPosition(out int x, out int y, AtkCoordType coordType) - { - atk_component_get_position(getComponentStruct(), &x, &y, coordType); - } - - /** - * Gets the size of the @component in terms of width and height. - * - * If the size can not be obtained (e.g. a non-embedded plug or missing - * support), width and height are set to -1. - * - * Deprecated: Since 2.12. Use atk_component_get_extents() instead. - * - * Params: - * width = address of #gint to put width of @component - * height = address of #gint to put height of @component - */ - public void getSize(out int width, out int height) - { - atk_component_get_size(getComponentStruct(), &width, &height); - } - - /** - * Grabs focus for this @component. - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool grabFocus() - { - return atk_component_grab_focus(getComponentStruct()) != 0; - } - - /** - * Gets a reference to the accessible child, if one exists, at the - * coordinate point specified by @x and @y. - * - * Params: - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * - * Returns: a reference to the accessible - * child, if one exists - */ - public ObjectAtk refAccessibleAtPoint(int x, int y, AtkCoordType coordType) - { - auto __p = atk_component_ref_accessible_at_point(getComponentStruct(), x, y, coordType); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } - - /** - * Remove the handler specified by @handler_id from the list of - * functions to be executed when this object receives focus events - * (in or out). - * - * Deprecated: If you need to track when an object gains or - * lose the focus, use the #AtkObject::state-change "focused" notification instead. - * - * Params: - * handlerId = the handler id of the focus handler to be removed - * from @component - */ - public void removeFocusHandler(uint handlerId) - { - atk_component_remove_focus_handler(getComponentStruct(), handlerId); - } - - /** - * Makes @component visible on the screen by scrolling all necessary parents. - * - * Contrary to atk_component_set_position, this does not actually move - * @component in its parent, this only makes the parents scroll so that the - * object shows up on the screen, given its current position within the parents. - * - * Params: - * type = specify where the object should be made visible. - * - * Returns: whether scrolling was successful. - * - * Since: 2.30 - */ - public bool scrollTo(AtkScrollType type) - { - return atk_component_scroll_to(getComponentStruct(), type) != 0; - } - - /** - * Move the top-left of @component to a given position of the screen by - * scrolling all necessary parents. - * - * Params: - * coords = specify whether coordinates are relative to the screen or to the - * parent object. - * x = x-position where to scroll to - * y = y-position where to scroll to - * - * Returns: whether scrolling was successful. - * - * Since: 2.30 - */ - public bool scrollToPoint(AtkCoordType coords, int x, int y) - { - return atk_component_scroll_to_point(getComponentStruct(), coords, x, y) != 0; - } - - /** - * Sets the extents of @component. - * - * Params: - * x = x coordinate - * y = y coordinate - * width = width to set for @component - * height = height to set for @component - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * - * Returns: %TRUE or %FALSE whether the extents were set or not - */ - public bool setExtents(int x, int y, int width, int height, AtkCoordType coordType) - { - return atk_component_set_extents(getComponentStruct(), x, y, width, height, coordType) != 0; - } - - /** - * Sets the position of @component. - * - * Contrary to atk_component_scroll_to, this does not trigger any scrolling, - * this just moves @component in its parent. - * - * Params: - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the component's top level window - * - * Returns: %TRUE or %FALSE whether or not the position was set or not - */ - public bool setPosition(int x, int y, AtkCoordType coordType) - { - return atk_component_set_position(getComponentStruct(), x, y, coordType) != 0; - } - - /** - * Set the size of the @component in terms of width and height. - * - * Params: - * width = width to set for @component - * height = height to set for @component - * - * Returns: %TRUE or %FALSE whether the size was set or not - */ - public bool setSize(int width, int height) - { - return atk_component_set_size(getComponentStruct(), width, height) != 0; - } - - /** - * The 'bounds-changed" signal is emitted when the bposition or - * size of the component changes. - * - * Params: - * arg1 = The AtkRectangle giving the new position and size. - */ - gulong addOnBoundsChanged(void delegate(Rectangle, ComponentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "bounds-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/DocumentIF.d b/generated/gtkd/atk/DocumentIF.d deleted file mode 100644 index 980eb0e23..000000000 --- a/generated/gtkd/atk/DocumentIF.d +++ /dev/null @@ -1,203 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.DocumentIF; - -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The AtkDocument interface should be supported by any object whose - * content is a representation or view of a document. The AtkDocument - * interface should appear on the toplevel container for the document - * content; however AtkDocument instances may be nested (i.e. an - * AtkDocument may be a descendant of another AtkDocument) in those - * cases where one document contains "embedded content" which can - * reasonably be considered a document in its own right. - */ -public interface DocumentIF{ - /** Get the main Gtk struct */ - public AtkDocument* getDocumentStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_document_get_type(); - } - - /** - * Retrieves the value of the given @attribute_name inside @document. - * - * Params: - * attributeName = a character string representing the name of the attribute - * whose value is being queried. - * - * Returns: a string value associated with the named - * attribute for this document, or %NULL if a value for - * @attribute_name has not been specified for this document. - * - * Since: 1.12 - */ - public string getAttributeValue(string attributeName); - - /** - * Gets an AtkAttributeSet which describes document-wide - * attributes as name-value pairs. - * - * Returns: An AtkAttributeSet containing the explicitly - * set name-value-pair attributes associated with this document - * as a whole. - * - * Since: 1.12 - */ - public AtkAttributeSet* getAttributes(); - - /** - * Retrieves the current page number inside @document. - * - * Returns: the current page number inside @document, or -1 if - * not implemented, not know by the implementor, or irrelevant. - * - * Since: 2.12 - */ - public int getCurrentPageNumber(); - - /** - * Gets a %gpointer that points to an instance of the DOM. It is - * up to the caller to check atk_document_get_type to determine - * how to cast this pointer. - * - * Deprecated: Since 2.12. @document is already a representation of - * the document. Use it directly, or one of its children, as an - * instance of the DOM. - * - * Returns: a %gpointer that points to an instance of the DOM. - */ - public void* getDocument(); - - /** - * Gets a string indicating the document type. - * - * Deprecated: Since 2.12. Please use atk_document_get_attributes() to - * ask for the document type if it applies. - * - * Returns: a string indicating the document type - */ - public string getDocumentType(); - - /** - * Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale - * of the content of this document instance. Individual - * text substrings or images within this document may have - * a different locale, see atk_text_get_attributes and - * atk_image_get_image_locale. - * - * Deprecated: Please use atk_object_get_object_locale() instead. - * - * Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES - * locale of the document content as a whole, or NULL if - * the document content does not specify a locale. - */ - public string getLocale(); - - /** - * Retrieves the total number of pages inside @document. - * - * Returns: total page count of @document, or -1 if not implemented, - * not know by the implementor or irrelevant. - * - * Since: 2.12 - */ - public int getPageCount(); - - /** - * Sets the value for the given @attribute_name inside @document. - * - * Params: - * attributeName = a character string representing the name of the attribute - * whose value is being set. - * attributeValue = a string value to be associated with @attribute_name. - * - * Returns: %TRUE if @attribute_value is successfully associated - * with @attribute_name for this @document, and %FALSE if if the - * document does not allow the attribute to be modified - * - * Since: 1.12 - */ - public bool setAttributeValue(string attributeName, string attributeValue); - - /** - * The 'load-complete' signal is emitted when a pending load of - * a static document has completed. This signal is to be - * expected by ATK clients if and when AtkDocument implementors - * expose ATK_STATE_BUSY. If the state of an AtkObject which - * implements AtkDocument does not include ATK_STATE_BUSY, it - * should be safe for clients to assume that the AtkDocument's - * static contents are fully loaded into the container. - * (Dynamic document contents should be exposed via other - * signals.) - */ - gulong addOnLoadComplete(void delegate(DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The 'load-stopped' signal is emitted when a pending load of - * document contents is cancelled, paused, or otherwise - * interrupted by the user or application logic. It should not - * however be emitted while waiting for a resource (for instance - * while blocking on a file or network read) unless a - * user-significant timeout has occurred. - */ - gulong addOnLoadStopped(void delegate(DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The 'page-changed' signal is emitted when the current page of - * a document changes, e.g. pressing page up/down in a document - * viewer. - * - * Params: - * pageNumber = the new page number. If this value is unknown - * or not applicable, -1 should be provided. - * - * Since: 2.12 - */ - gulong addOnPageChanged(void delegate(int, DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The 'reload' signal is emitted when the contents of a - * document is refreshed from its source. Once 'reload' has - * been emitted, a matching 'load-complete' or 'load-stopped' - * signal should follow, which clients may await before - * interrogating ATK for the latest document content. - */ - gulong addOnReload(void delegate(DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/atk/DocumentT.d b/generated/gtkd/atk/DocumentT.d deleted file mode 100644 index f96ac6e95..000000000 --- a/generated/gtkd/atk/DocumentT.d +++ /dev/null @@ -1,236 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.DocumentT; - -public import atk.c.functions; -public import atk.c.types; -public import glib.Str; -public import glib.c.functions; -public import gobject.Signals; -public import std.algorithm; - - -/** - * The AtkDocument interface should be supported by any object whose - * content is a representation or view of a document. The AtkDocument - * interface should appear on the toplevel container for the document - * content; however AtkDocument instances may be nested (i.e. an - * AtkDocument may be a descendant of another AtkDocument) in those - * cases where one document contains "embedded content" which can - * reasonably be considered a document in its own right. - */ -public template DocumentT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkDocument* getDocumentStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkDocument*)getStruct(); - } - - - /** - * Retrieves the value of the given @attribute_name inside @document. - * - * Params: - * attributeName = a character string representing the name of the attribute - * whose value is being queried. - * - * Returns: a string value associated with the named - * attribute for this document, or %NULL if a value for - * @attribute_name has not been specified for this document. - * - * Since: 1.12 - */ - public string getAttributeValue(string attributeName) - { - return Str.toString(atk_document_get_attribute_value(getDocumentStruct(), Str.toStringz(attributeName))); - } - - /** - * Gets an AtkAttributeSet which describes document-wide - * attributes as name-value pairs. - * - * Returns: An AtkAttributeSet containing the explicitly - * set name-value-pair attributes associated with this document - * as a whole. - * - * Since: 1.12 - */ - public override AtkAttributeSet* getAttributes() - { - return atk_document_get_attributes(getDocumentStruct()); - } - - /** - * Retrieves the current page number inside @document. - * - * Returns: the current page number inside @document, or -1 if - * not implemented, not know by the implementor, or irrelevant. - * - * Since: 2.12 - */ - public int getCurrentPageNumber() - { - return atk_document_get_current_page_number(getDocumentStruct()); - } - - /** - * Gets a %gpointer that points to an instance of the DOM. It is - * up to the caller to check atk_document_get_type to determine - * how to cast this pointer. - * - * Deprecated: Since 2.12. @document is already a representation of - * the document. Use it directly, or one of its children, as an - * instance of the DOM. - * - * Returns: a %gpointer that points to an instance of the DOM. - */ - public void* getDocument() - { - return atk_document_get_document(getDocumentStruct()); - } - - /** - * Gets a string indicating the document type. - * - * Deprecated: Since 2.12. Please use atk_document_get_attributes() to - * ask for the document type if it applies. - * - * Returns: a string indicating the document type - */ - public string getDocumentType() - { - return Str.toString(atk_document_get_document_type(getDocumentStruct())); - } - - /** - * Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale - * of the content of this document instance. Individual - * text substrings or images within this document may have - * a different locale, see atk_text_get_attributes and - * atk_image_get_image_locale. - * - * Deprecated: Please use atk_object_get_object_locale() instead. - * - * Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES - * locale of the document content as a whole, or NULL if - * the document content does not specify a locale. - */ - public string getLocale() - { - return Str.toString(atk_document_get_locale(getDocumentStruct())); - } - - /** - * Retrieves the total number of pages inside @document. - * - * Returns: total page count of @document, or -1 if not implemented, - * not know by the implementor or irrelevant. - * - * Since: 2.12 - */ - public int getPageCount() - { - return atk_document_get_page_count(getDocumentStruct()); - } - - /** - * Sets the value for the given @attribute_name inside @document. - * - * Params: - * attributeName = a character string representing the name of the attribute - * whose value is being set. - * attributeValue = a string value to be associated with @attribute_name. - * - * Returns: %TRUE if @attribute_value is successfully associated - * with @attribute_name for this @document, and %FALSE if if the - * document does not allow the attribute to be modified - * - * Since: 1.12 - */ - public bool setAttributeValue(string attributeName, string attributeValue) - { - return atk_document_set_attribute_value(getDocumentStruct(), Str.toStringz(attributeName), Str.toStringz(attributeValue)) != 0; - } - - /** - * The 'load-complete' signal is emitted when a pending load of - * a static document has completed. This signal is to be - * expected by ATK clients if and when AtkDocument implementors - * expose ATK_STATE_BUSY. If the state of an AtkObject which - * implements AtkDocument does not include ATK_STATE_BUSY, it - * should be safe for clients to assume that the AtkDocument's - * static contents are fully loaded into the container. - * (Dynamic document contents should be exposed via other - * signals.) - */ - gulong addOnLoadComplete(void delegate(DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "load-complete", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The 'load-stopped' signal is emitted when a pending load of - * document contents is cancelled, paused, or otherwise - * interrupted by the user or application logic. It should not - * however be emitted while waiting for a resource (for instance - * while blocking on a file or network read) unless a - * user-significant timeout has occurred. - */ - gulong addOnLoadStopped(void delegate(DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "load-stopped", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The 'page-changed' signal is emitted when the current page of - * a document changes, e.g. pressing page up/down in a document - * viewer. - * - * Params: - * pageNumber = the new page number. If this value is unknown - * or not applicable, -1 should be provided. - * - * Since: 2.12 - */ - gulong addOnPageChanged(void delegate(int, DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "page-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The 'reload' signal is emitted when the contents of a - * document is refreshed from its source. Once 'reload' has - * been emitted, a matching 'load-complete' or 'load-stopped' - * signal should follow, which clients may await before - * interrogating ATK for the latest document content. - */ - gulong addOnReload(void delegate(DocumentIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "reload", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/EditableTextIF.d b/generated/gtkd/atk/EditableTextIF.d deleted file mode 100644 index eddfe5fee..000000000 --- a/generated/gtkd/atk/EditableTextIF.d +++ /dev/null @@ -1,129 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.EditableTextIF; - -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; - - -/** - * #AtkEditableText should be implemented by UI components which - * contain text which the user can edit, via the #AtkObject - * corresponding to that component (see #AtkObject). - * - * #AtkEditableText is a subclass of #AtkText, and as such, an object - * which implements #AtkEditableText is by definition an #AtkText - * implementor as well. - * - * See also: #AtkText - */ -public interface EditableTextIF{ - /** Get the main Gtk struct */ - public AtkEditableText* getEditableTextStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_editable_text_get_type(); - } - - /** - * Copy text from @start_pos up to, but not including @end_pos - * to the clipboard. - * - * Params: - * startPos = start position - * endPos = end position - */ - public void copyText(int startPos, int endPos); - - /** - * Copy text from @start_pos up to, but not including @end_pos - * to the clipboard and then delete from the widget. - * - * Params: - * startPos = start position - * endPos = end position - */ - public void cutText(int startPos, int endPos); - - /** - * Delete text @start_pos up to, but not including @end_pos. - * - * Params: - * startPos = start position - * endPos = end position - */ - public void deleteText(int startPos, int endPos); - - /** - * Insert text at a given position. - * - * Params: - * string_ = the text to insert - * length = the length of text to insert, in bytes - * position = The caller initializes this to - * the position at which to insert the text. After the call it - * points at the position after the newly inserted text. - */ - public void insertText(string string_, int length, int* position); - - /** - * Paste text from clipboard to specified @position. - * - * Params: - * position = position to paste - */ - public void pasteText(int position); - - /** - * Sets the attributes for a specified range. See the ATK_ATTRIBUTE - * macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes - * that can be set. Note that other attributes that do not have corresponding - * ATK_ATTRIBUTE macros may also be set for certain text widgets. - * - * Params: - * attribSet = an #AtkAttributeSet - * startOffset = start of range in which to set attributes - * endOffset = end of range in which to set attributes - * - * Returns: %TRUE if attributes successfully set for the specified - * range, otherwise %FALSE - */ - public bool setRunAttributes(AtkAttributeSet* attribSet, int startOffset, int endOffset); - - /** - * Set text contents of @text. - * - * Params: - * string_ = string to set for text contents of @text - */ - public void setTextContents(string string_); -} diff --git a/generated/gtkd/atk/EditableTextT.d b/generated/gtkd/atk/EditableTextT.d deleted file mode 100644 index 6788905fa..000000000 --- a/generated/gtkd/atk/EditableTextT.d +++ /dev/null @@ -1,147 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.EditableTextT; - -public import atk.c.functions; -public import atk.c.types; -public import glib.Str; - - -/** - * #AtkEditableText should be implemented by UI components which - * contain text which the user can edit, via the #AtkObject - * corresponding to that component (see #AtkObject). - * - * #AtkEditableText is a subclass of #AtkText, and as such, an object - * which implements #AtkEditableText is by definition an #AtkText - * implementor as well. - * - * See also: #AtkText - */ -public template EditableTextT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkEditableText* getEditableTextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkEditableText*)getStruct(); - } - - - /** - * Copy text from @start_pos up to, but not including @end_pos - * to the clipboard. - * - * Params: - * startPos = start position - * endPos = end position - */ - public void copyText(int startPos, int endPos) - { - atk_editable_text_copy_text(getEditableTextStruct(), startPos, endPos); - } - - /** - * Copy text from @start_pos up to, but not including @end_pos - * to the clipboard and then delete from the widget. - * - * Params: - * startPos = start position - * endPos = end position - */ - public void cutText(int startPos, int endPos) - { - atk_editable_text_cut_text(getEditableTextStruct(), startPos, endPos); - } - - /** - * Delete text @start_pos up to, but not including @end_pos. - * - * Params: - * startPos = start position - * endPos = end position - */ - public void deleteText(int startPos, int endPos) - { - atk_editable_text_delete_text(getEditableTextStruct(), startPos, endPos); - } - - /** - * Insert text at a given position. - * - * Params: - * string_ = the text to insert - * length = the length of text to insert, in bytes - * position = The caller initializes this to - * the position at which to insert the text. After the call it - * points at the position after the newly inserted text. - */ - public void insertText(string string_, int length, int* position) - { - atk_editable_text_insert_text(getEditableTextStruct(), Str.toStringz(string_), length, position); - } - - /** - * Paste text from clipboard to specified @position. - * - * Params: - * position = position to paste - */ - public void pasteText(int position) - { - atk_editable_text_paste_text(getEditableTextStruct(), position); - } - - /** - * Sets the attributes for a specified range. See the ATK_ATTRIBUTE - * macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes - * that can be set. Note that other attributes that do not have corresponding - * ATK_ATTRIBUTE macros may also be set for certain text widgets. - * - * Params: - * attribSet = an #AtkAttributeSet - * startOffset = start of range in which to set attributes - * endOffset = end of range in which to set attributes - * - * Returns: %TRUE if attributes successfully set for the specified - * range, otherwise %FALSE - */ - public bool setRunAttributes(AtkAttributeSet* attribSet, int startOffset, int endOffset) - { - return atk_editable_text_set_run_attributes(getEditableTextStruct(), attribSet, startOffset, endOffset) != 0; - } - - /** - * Set text contents of @text. - * - * Params: - * string_ = string to set for text contents of @text - */ - public void setTextContents(string string_) - { - atk_editable_text_set_text_contents(getEditableTextStruct(), Str.toStringz(string_)); - } -} diff --git a/generated/gtkd/atk/GObjectAccessible.d b/generated/gtkd/atk/GObjectAccessible.d deleted file mode 100644 index 8fdf47bd7..000000000 --- a/generated/gtkd/atk/GObjectAccessible.d +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.GObjectAccessible; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; - - -/** - * This object class is derived from AtkObject. It can be used as a - * basis for implementing accessible objects for GObjects which are - * not derived from GtkWidget. One example of its use is in providing - * an accessible object for GnomeCanvasItem in the GAIL library. - */ -public class GObjectAccessible : ObjectAtk -{ - /** the main Gtk struct */ - protected AtkGObjectAccessible* atkGObjectAccessible; - - /** Get the main Gtk struct */ - public AtkGObjectAccessible* getGObjectAccessibleStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkGObjectAccessible; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkGObjectAccessible; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkGObjectAccessible* atkGObjectAccessible, bool ownedRef = false) - { - this.atkGObjectAccessible = atkGObjectAccessible; - super(cast(AtkObject*)atkGObjectAccessible, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_gobject_accessible_get_type(); - } - - /** - * Gets the accessible object for the specified @obj. - * - * Params: - * obj = a #GObject - * - * Returns: a #AtkObject which is the accessible object for - * the @obj - */ - public static ObjectAtk forObject(ObjectG obj) - { - auto __p = atk_gobject_accessible_for_object((obj is null) ? null : obj.getObjectGStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets the GObject for which @obj is the accessible object. - * - * Returns: a #GObject which is the object for which @obj is - * the accessible object - */ - public ObjectG getObject() - { - auto __p = atk_gobject_accessible_get_object(atkGObjectAccessible); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p); - } -} diff --git a/generated/gtkd/atk/Hyperlink.d b/generated/gtkd/atk/Hyperlink.d deleted file mode 100644 index 3883c258b..000000000 --- a/generated/gtkd/atk/Hyperlink.d +++ /dev/null @@ -1,207 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Hyperlink; - -private import atk.ActionIF; -private import atk.ActionT; -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * An ATK object which encapsulates a link or set of links (for - * instance in the case of client-side image maps) in a hypertext - * document. It may implement the AtkAction interface. AtkHyperlink - * may also be used to refer to inline embedded content, since it - * allows specification of a start and end offset within the host - * AtkHypertext object. - */ -public class Hyperlink : ObjectG, ActionIF -{ - /** the main Gtk struct */ - protected AtkHyperlink* atkHyperlink; - - /** Get the main Gtk struct */ - public AtkHyperlink* getHyperlinkStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkHyperlink; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkHyperlink; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkHyperlink* atkHyperlink, bool ownedRef = false) - { - this.atkHyperlink = atkHyperlink; - super(cast(GObject*)atkHyperlink, ownedRef); - } - - // add the Action capabilities - mixin ActionT!(AtkHyperlink); - - - /** */ - public static GType getType() - { - return atk_hyperlink_get_type(); - } - - /** - * Gets the index with the hypertext document at which this link ends. - * - * Returns: the index with the hypertext document at which this link ends - */ - public int getEndIndex() - { - return atk_hyperlink_get_end_index(atkHyperlink); - } - - /** - * Gets the number of anchors associated with this hyperlink. - * - * Returns: the number of anchors associated with this hyperlink - */ - public int getNAnchors() - { - return atk_hyperlink_get_n_anchors(atkHyperlink); - } - - /** - * Returns the item associated with this hyperlinks nth anchor. - * For instance, the returned #AtkObject will implement #AtkText - * if @link_ is a text hyperlink, #AtkImage if @link_ is an image - * hyperlink etc. - * - * Multiple anchors are primarily used by client-side image maps. - * - * Params: - * i = a (zero-index) integer specifying the desired anchor - * - * Returns: an #AtkObject associated with this hyperlinks - * i-th anchor - */ - public ObjectAtk getObject(int i) - { - auto __p = atk_hyperlink_get_object(atkHyperlink, i); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets the index with the hypertext document at which this link begins. - * - * Returns: the index with the hypertext document at which this link begins - */ - public int getStartIndex() - { - return atk_hyperlink_get_start_index(atkHyperlink); - } - - /** - * Get a the URI associated with the anchor specified - * by @i of @link_. - * - * Multiple anchors are primarily used by client-side image maps. - * - * Params: - * i = a (zero-index) integer specifying the desired anchor - * - * Returns: a string specifying the URI - */ - public string getUri(int i) - { - auto retStr = atk_hyperlink_get_uri(atkHyperlink, i); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Indicates whether the link currently displays some or all of its - * content inline. Ordinary HTML links will usually return - * %FALSE, but an inline <src> HTML element will return - * %TRUE. - * - * Returns: whether or not this link displays its content inline. - */ - public bool isInline() - { - return atk_hyperlink_is_inline(atkHyperlink) != 0; - } - - /** - * Determines whether this AtkHyperlink is selected - * - * Deprecated: Please use ATK_STATE_FOCUSABLE for all links, - * and ATK_STATE_FOCUSED for focused links. - * - * Returns: True if the AtkHyperlink is selected, False otherwise - * - * Since: 1.4 - */ - public bool isSelectedLink() - { - return atk_hyperlink_is_selected_link(atkHyperlink) != 0; - } - - /** - * Since the document that a link is associated with may have changed - * this method returns %TRUE if the link is still valid (with - * respect to the document it references) and %FALSE otherwise. - * - * Returns: whether or not this link is still valid - */ - public bool isValid() - { - return atk_hyperlink_is_valid(atkHyperlink) != 0; - } - - /** - * The signal link-activated is emitted when a link is activated. - */ - gulong addOnLinkActivated(void delegate(Hyperlink) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "link-activated", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/HyperlinkImplIF.d b/generated/gtkd/atk/HyperlinkImplIF.d deleted file mode 100644 index d13788486..000000000 --- a/generated/gtkd/atk/HyperlinkImplIF.d +++ /dev/null @@ -1,86 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.HyperlinkImplIF; - -private import atk.Hyperlink; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; - - -/** - * AtkHyperlinkImpl allows AtkObjects to refer to their associated - * AtkHyperlink instance, if one exists. AtkHyperlinkImpl differs - * from AtkHyperlink in that AtkHyperlinkImpl is an interface, whereas - * AtkHyperlink is a object type. The AtkHyperlinkImpl interface - * allows a client to query an AtkObject for the availability of an - * associated AtkHyperlink instance, and obtain that instance. It is - * thus particularly useful in cases where embedded content or inline - * content within a text object is present, since the embedding text - * object implements AtkHypertext and the inline/embedded objects are - * exposed as children which implement AtkHyperlinkImpl, in addition - * to their being obtainable via AtkHypertext:getLink followed by - * AtkHyperlink:getObject. - * - * The AtkHyperlinkImpl interface should be supported by objects - * exposed within the hierarchy as children of an AtkHypertext - * container which correspond to "links" or embedded content within - * the text. HTML anchors are not, for instance, normally exposed - * this way, but embedded images and components which appear inline in - * the content of a text object are. The AtkHyperlinkIface interface - * allows a means of determining which children are hyperlinks in this - * sense of the word, and for obtaining their corresponding - * AtkHyperlink object, from which the embedding range, URI, etc. can - * be obtained. - * - * To some extent this interface exists because, for historical - * reasons, AtkHyperlink was defined as an object type, not an - * interface. Thus, in order to interact with AtkObjects via - * AtkHyperlink semantics, a new interface was required. - */ -public interface HyperlinkImplIF{ - /** Get the main Gtk struct */ - public AtkHyperlinkImpl* getHyperlinkImplStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_hyperlink_impl_get_type(); - } - - /** - * Gets the hyperlink associated with this object. - * - * Returns: an AtkHyperlink object which points to this - * implementing AtkObject. - * - * Since: 1.12 - */ - public Hyperlink getHyperlink(); -} diff --git a/generated/gtkd/atk/HyperlinkImplT.d b/generated/gtkd/atk/HyperlinkImplT.d deleted file mode 100644 index a0291df7d..000000000 --- a/generated/gtkd/atk/HyperlinkImplT.d +++ /dev/null @@ -1,93 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.HyperlinkImplT; - -public import atk.Hyperlink; -public import atk.c.functions; -public import atk.c.types; -public import gobject.ObjectG; - - -/** - * AtkHyperlinkImpl allows AtkObjects to refer to their associated - * AtkHyperlink instance, if one exists. AtkHyperlinkImpl differs - * from AtkHyperlink in that AtkHyperlinkImpl is an interface, whereas - * AtkHyperlink is a object type. The AtkHyperlinkImpl interface - * allows a client to query an AtkObject for the availability of an - * associated AtkHyperlink instance, and obtain that instance. It is - * thus particularly useful in cases where embedded content or inline - * content within a text object is present, since the embedding text - * object implements AtkHypertext and the inline/embedded objects are - * exposed as children which implement AtkHyperlinkImpl, in addition - * to their being obtainable via AtkHypertext:getLink followed by - * AtkHyperlink:getObject. - * - * The AtkHyperlinkImpl interface should be supported by objects - * exposed within the hierarchy as children of an AtkHypertext - * container which correspond to "links" or embedded content within - * the text. HTML anchors are not, for instance, normally exposed - * this way, but embedded images and components which appear inline in - * the content of a text object are. The AtkHyperlinkIface interface - * allows a means of determining which children are hyperlinks in this - * sense of the word, and for obtaining their corresponding - * AtkHyperlink object, from which the embedding range, URI, etc. can - * be obtained. - * - * To some extent this interface exists because, for historical - * reasons, AtkHyperlink was defined as an object type, not an - * interface. Thus, in order to interact with AtkObjects via - * AtkHyperlink semantics, a new interface was required. - */ -public template HyperlinkImplT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkHyperlinkImpl* getHyperlinkImplStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkHyperlinkImpl*)getStruct(); - } - - - /** - * Gets the hyperlink associated with this object. - * - * Returns: an AtkHyperlink object which points to this - * implementing AtkObject. - * - * Since: 1.12 - */ - public Hyperlink getHyperlink() - { - auto __p = atk_hyperlink_impl_get_hyperlink(getHyperlinkImplStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Hyperlink)(cast(AtkHyperlink*) __p, true); - } -} diff --git a/generated/gtkd/atk/HypertextIF.d b/generated/gtkd/atk/HypertextIF.d deleted file mode 100644 index b8dbb2784..000000000 --- a/generated/gtkd/atk/HypertextIF.d +++ /dev/null @@ -1,99 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.HypertextIF; - -private import atk.Hyperlink; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * An interface used for objects which implement linking between - * multiple resource or content locations, or multiple 'markers' - * within a single document. A Hypertext instance is associated with - * one or more Hyperlinks, which are associated with particular - * offsets within the Hypertext's included content. While this - * interface is derived from Text, there is no requirement that - * Hypertext instances have textual content; they may implement Image - * as well, and Hyperlinks need not have non-zero text offsets. - */ -public interface HypertextIF{ - /** Get the main Gtk struct */ - public AtkHypertext* getHypertextStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_hypertext_get_type(); - } - - /** - * Gets the link in this hypertext document at index - * @link_index - * - * Params: - * linkIndex = an integer specifying the desired link - * - * Returns: the link in this hypertext document at - * index @link_index - */ - public Hyperlink getLink(int linkIndex); - - /** - * Gets the index into the array of hyperlinks that is associated with - * the character specified by @char_index. - * - * Params: - * charIndex = a character index - * - * Returns: an index into the array of hyperlinks in @hypertext, - * or -1 if there is no hyperlink associated with this character. - */ - public int getLinkIndex(int charIndex); - - /** - * Gets the number of links within this hypertext document. - * - * Returns: the number of links within this hypertext document - */ - public int getNLinks(); - - /** - * The "link-selected" signal is emitted by an AtkHyperText - * object when one of the hyperlinks associated with the object - * is selected. - * - * Params: - * arg1 = the index of the hyperlink which is selected - */ - gulong addOnLinkSelected(void delegate(int, HypertextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/atk/HypertextT.d b/generated/gtkd/atk/HypertextT.d deleted file mode 100644 index f1f91fb88..000000000 --- a/generated/gtkd/atk/HypertextT.d +++ /dev/null @@ -1,115 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.HypertextT; - -public import atk.Hyperlink; -public import atk.c.functions; -public import atk.c.types; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * An interface used for objects which implement linking between - * multiple resource or content locations, or multiple 'markers' - * within a single document. A Hypertext instance is associated with - * one or more Hyperlinks, which are associated with particular - * offsets within the Hypertext's included content. While this - * interface is derived from Text, there is no requirement that - * Hypertext instances have textual content; they may implement Image - * as well, and Hyperlinks need not have non-zero text offsets. - */ -public template HypertextT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkHypertext* getHypertextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkHypertext*)getStruct(); - } - - - /** - * Gets the link in this hypertext document at index - * @link_index - * - * Params: - * linkIndex = an integer specifying the desired link - * - * Returns: the link in this hypertext document at - * index @link_index - */ - public Hyperlink getLink(int linkIndex) - { - auto __p = atk_hypertext_get_link(getHypertextStruct(), linkIndex); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Hyperlink)(cast(AtkHyperlink*) __p); - } - - /** - * Gets the index into the array of hyperlinks that is associated with - * the character specified by @char_index. - * - * Params: - * charIndex = a character index - * - * Returns: an index into the array of hyperlinks in @hypertext, - * or -1 if there is no hyperlink associated with this character. - */ - public int getLinkIndex(int charIndex) - { - return atk_hypertext_get_link_index(getHypertextStruct(), charIndex); - } - - /** - * Gets the number of links within this hypertext document. - * - * Returns: the number of links within this hypertext document - */ - public int getNLinks() - { - return atk_hypertext_get_n_links(getHypertextStruct()); - } - - /** - * The "link-selected" signal is emitted by an AtkHyperText - * object when one of the hyperlinks associated with the object - * is selected. - * - * Params: - * arg1 = the index of the hyperlink which is selected - */ - gulong addOnLinkSelected(void delegate(int, HypertextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "link-selected", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/ImageIF.d b/generated/gtkd/atk/ImageIF.d deleted file mode 100644 index f864f5ae2..000000000 --- a/generated/gtkd/atk/ImageIF.d +++ /dev/null @@ -1,119 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ImageIF; - -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; - - -/** - * #AtkImage should be implemented by #AtkObject subtypes on behalf of - * components which display image/pixmap information onscreen, and - * which provide information (other than just widget borders, etc.) - * via that image content. For instance, icons, buttons with icons, - * toolbar elements, and image viewing panes typically should - * implement #AtkImage. - * - * #AtkImage primarily provides two types of information: coordinate - * information (useful for screen review mode of screenreaders, and - * for use by onscreen magnifiers), and descriptive information. The - * descriptive information is provided for alternative, text-only - * presentation of the most significant information present in the - * image. - */ -public interface ImageIF{ - /** Get the main Gtk struct */ - public AtkImage* getImageStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_image_get_type(); - } - - /** - * Get a textual description of this image. - * - * Returns: a string representing the image description - */ - public string getImageDescription(); - - /** - * Retrieves the locale identifier associated to the #AtkImage. - * - * Returns: a string corresponding to the POSIX - * `LC_MESSAGES` locale used by the image description, or - * %NULL if the image does not specify a locale. - * - * Since: 1.12 - */ - public string getImageLocale(); - - /** - * Gets the position of the image in the form of a point specifying the - * images top-left corner. - * - * If the position can not be obtained (e.g. missing support), x and y are set - * to -1. - * - * Params: - * x = address of #gint to put x coordinate position; otherwise, -1 if value cannot be obtained. - * y = address of #gint to put y coordinate position; otherwise, -1 if value cannot be obtained. - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - */ - public void getImagePosition(out int x, out int y, AtkCoordType coordType); - - /** - * Get the width and height in pixels for the specified image. - * The values of @width and @height are returned as -1 if the - * values cannot be obtained (for instance, if the object is not onscreen). - * - * If the size can not be obtained (e.g. missing support), x and y are set - * to -1. - * - * Params: - * width = filled with the image width, or -1 if the value cannot be obtained. - * height = filled with the image height, or -1 if the value cannot be obtained. - */ - public void getImageSize(out int width, out int height); - - /** - * Sets the textual description for this image. - * - * Params: - * description = a string description to set for @image - * - * Returns: boolean TRUE, or FALSE if operation could - * not be completed. - */ - public bool setImageDescription(string description); -} diff --git a/generated/gtkd/atk/ImageT.d b/generated/gtkd/atk/ImageT.d deleted file mode 100644 index 62e2907f3..000000000 --- a/generated/gtkd/atk/ImageT.d +++ /dev/null @@ -1,131 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ImageT; - -public import atk.c.functions; -public import atk.c.types; -public import glib.Str; -public import glib.c.functions; - - -/** - * #AtkImage should be implemented by #AtkObject subtypes on behalf of - * components which display image/pixmap information onscreen, and - * which provide information (other than just widget borders, etc.) - * via that image content. For instance, icons, buttons with icons, - * toolbar elements, and image viewing panes typically should - * implement #AtkImage. - * - * #AtkImage primarily provides two types of information: coordinate - * information (useful for screen review mode of screenreaders, and - * for use by onscreen magnifiers), and descriptive information. The - * descriptive information is provided for alternative, text-only - * presentation of the most significant information present in the - * image. - */ -public template ImageT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkImage* getImageStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkImage*)getStruct(); - } - - - /** - * Get a textual description of this image. - * - * Returns: a string representing the image description - */ - public string getImageDescription() - { - return Str.toString(atk_image_get_image_description(getImageStruct())); - } - - /** - * Retrieves the locale identifier associated to the #AtkImage. - * - * Returns: a string corresponding to the POSIX - * `LC_MESSAGES` locale used by the image description, or - * %NULL if the image does not specify a locale. - * - * Since: 1.12 - */ - public string getImageLocale() - { - return Str.toString(atk_image_get_image_locale(getImageStruct())); - } - - /** - * Gets the position of the image in the form of a point specifying the - * images top-left corner. - * - * If the position can not be obtained (e.g. missing support), x and y are set - * to -1. - * - * Params: - * x = address of #gint to put x coordinate position; otherwise, -1 if value cannot be obtained. - * y = address of #gint to put y coordinate position; otherwise, -1 if value cannot be obtained. - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - */ - public void getImagePosition(out int x, out int y, AtkCoordType coordType) - { - atk_image_get_image_position(getImageStruct(), &x, &y, coordType); - } - - /** - * Get the width and height in pixels for the specified image. - * The values of @width and @height are returned as -1 if the - * values cannot be obtained (for instance, if the object is not onscreen). - * - * If the size can not be obtained (e.g. missing support), x and y are set - * to -1. - * - * Params: - * width = filled with the image width, or -1 if the value cannot be obtained. - * height = filled with the image height, or -1 if the value cannot be obtained. - */ - public void getImageSize(out int width, out int height) - { - atk_image_get_image_size(getImageStruct(), &width, &height); - } - - /** - * Sets the textual description for this image. - * - * Params: - * description = a string description to set for @image - * - * Returns: boolean TRUE, or FALSE if operation could - * not be completed. - */ - public bool setImageDescription(string description) - { - return atk_image_set_image_description(getImageStruct(), Str.toStringz(description)) != 0; - } -} diff --git a/generated/gtkd/atk/ImplementorIF.d b/generated/gtkd/atk/ImplementorIF.d deleted file mode 100644 index 7e1ce20fd..000000000 --- a/generated/gtkd/atk/ImplementorIF.d +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ImplementorIF; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; - - -/** */ -public interface ImplementorIF{ - /** Get the main Gtk struct */ - public AtkImplementor* getImplementorStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** - * Gets a reference to an object's #AtkObject implementation, if - * the object implements #AtkObjectIface - * - * Returns: a reference to an object's #AtkObject - * implementation - */ - public ObjectAtk refAccessible(); - - /** */ - public static GType getType() - { - return atk_implementor_get_type(); - } -} diff --git a/generated/gtkd/atk/ImplementorT.d b/generated/gtkd/atk/ImplementorT.d deleted file mode 100644 index a64a7e981..000000000 --- a/generated/gtkd/atk/ImplementorT.d +++ /dev/null @@ -1,63 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ImplementorT; - -public import atk.ObjectAtk; -public import atk.c.functions; -public import atk.c.types; -public import gobject.ObjectG; - - -/** */ -public template ImplementorT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkImplementor* getImplementorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkImplementor*)getStruct(); - } - - - /** - * Gets a reference to an object's #AtkObject implementation, if - * the object implements #AtkObjectIface - * - * Returns: a reference to an object's #AtkObject - * implementation - */ - public ObjectAtk refAccessible() - { - auto __p = atk_implementor_ref_accessible(getImplementorStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } -} diff --git a/generated/gtkd/atk/Misc.d b/generated/gtkd/atk/Misc.d deleted file mode 100644 index ee196c56b..000000000 --- a/generated/gtkd/atk/Misc.d +++ /dev/null @@ -1,126 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Misc; - -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; - - -/** - * A set of utility functions for thread locking. This interface and - * all his related methods are deprecated since 2.12. - */ -public class Misc : ObjectG -{ - /** the main Gtk struct */ - protected AtkMisc* atkMisc; - - /** Get the main Gtk struct */ - public AtkMisc* getMiscStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkMisc; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkMisc; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkMisc* atkMisc, bool ownedRef = false) - { - this.atkMisc = atkMisc; - super(cast(GObject*)atkMisc, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_misc_get_type(); - } - - /** - * Obtain the singleton instance of AtkMisc for this application. - * - * Deprecated: Since 2.12. - * - * Returns: The singleton instance of AtkMisc for this application. - * - * Since: 1.13 - */ - public static Misc getInstance() - { - auto __p = atk_misc_get_instance(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Misc)(cast(AtkMisc*) __p); - } - - /** - * Take the thread mutex for the GUI toolkit, - * if one exists. - * (This method is implemented by the toolkit ATK implementation layer; - * for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER). - * - * Deprecated: Since 2.12. - * - * Since: 1.13 - */ - public void threadsEnter() - { - atk_misc_threads_enter(atkMisc); - } - - /** - * Release the thread mutex for the GUI toolkit, - * if one exists. This method, and atk_misc_threads_enter, - * are needed in some situations by threaded application code which - * services ATK requests, since fulfilling ATK requests often - * requires calling into the GUI toolkit. If a long-running or - * potentially blocking call takes place inside such a block, it should - * be bracketed by atk_misc_threads_leave/atk_misc_threads_enter calls. - * (This method is implemented by the toolkit ATK implementation layer; - * for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE). - * - * Deprecated: Since 2.12. - * - * Since: 1.13 - */ - public void threadsLeave() - { - atk_misc_threads_leave(atkMisc); - } -} diff --git a/generated/gtkd/atk/NoOpObject.d b/generated/gtkd/atk/NoOpObject.d deleted file mode 100644 index d08ade4fd..000000000 --- a/generated/gtkd/atk/NoOpObject.d +++ /dev/null @@ -1,173 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.NoOpObject; - -private import atk.ActionIF; -private import atk.ActionT; -private import atk.ComponentIF; -private import atk.ComponentT; -private import atk.DocumentIF; -private import atk.DocumentT; -private import atk.EditableTextIF; -private import atk.EditableTextT; -private import atk.HypertextIF; -private import atk.HypertextT; -private import atk.ImageIF; -private import atk.ImageT; -private import atk.ObjectAtk; -private import atk.SelectionIF; -private import atk.SelectionT; -private import atk.TableCellIF; -private import atk.TableCellT; -private import atk.TableIF; -private import atk.TableT; -private import atk.TextIF; -private import atk.TextT; -private import atk.ValueIF; -private import atk.ValueT; -private import atk.WindowIF; -private import atk.WindowT; -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * An AtkNoOpObject is an AtkObject which purports to implement all - * ATK interfaces. It is the type of AtkObject which is created if an - * accessible object is requested for an object type for which no - * factory type is specified. - */ -public class NoOpObject : ObjectAtk, ActionIF, ComponentIF, DocumentIF, EditableTextIF, HypertextIF, ImageIF, SelectionIF, TableIF, TableCellIF, TextIF, ValueIF, WindowIF -{ - /** the main Gtk struct */ - protected AtkNoOpObject* atkNoOpObject; - - /** Get the main Gtk struct */ - public AtkNoOpObject* getNoOpObjectStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkNoOpObject; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkNoOpObject; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkNoOpObject* atkNoOpObject, bool ownedRef = false) - { - this.atkNoOpObject = atkNoOpObject; - super(cast(AtkObject*)atkNoOpObject, ownedRef); - } - - // add the Action capabilities - mixin ActionT!(AtkNoOpObject); - - // add the Component capabilities - mixin ComponentT!(AtkNoOpObject); - - // add the Document capabilities - mixin DocumentT!(AtkNoOpObject); - - // add the EditableText capabilities - mixin EditableTextT!(AtkNoOpObject); - - // add the Hypertext capabilities - mixin HypertextT!(AtkNoOpObject); - - // add the Image capabilities - mixin ImageT!(AtkNoOpObject); - - // add the Selection capabilities - mixin SelectionT!(AtkNoOpObject); - - // add the Table capabilities - mixin TableT!(AtkNoOpObject); - - // add the TableCell capabilities - mixin TableCellT!(AtkNoOpObject); - - // add the Text capabilities - mixin TextT!(AtkNoOpObject); - - // add the Value capabilities - mixin ValueT!(AtkNoOpObject); - - // add the Window capabilities - mixin WindowT!(AtkNoOpObject); - - /** - * Removes the specified child of the object from the object's selection. - * - * Params: - * i = a #gint specifying the index in the selection set. (e.g. the - * ith selection as opposed to the ith child). - * - * Return: TRUE if success, FALSE otherwise. - */ - public bool removeSelection(int i) - { - return atk_selection_remove_selection(getSelectionStruct(), i) != 0; - } - - /** - */ - - /** */ - public static GType getType() - { - return atk_no_op_object_get_type(); - } - - /** - * Provides a default (non-functioning stub) #AtkObject. - * Application maintainers should not use this method. - * - * Params: - * obj = a #GObject - * - * Returns: a default (non-functioning stub) #AtkObject - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectG obj) - { - auto __p = atk_no_op_object_new((obj is null) ? null : obj.getObjectGStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkNoOpObject*) __p, true); - } -} diff --git a/generated/gtkd/atk/NoOpObjectFactory.d b/generated/gtkd/atk/NoOpObjectFactory.d deleted file mode 100644 index 304307237..000000000 --- a/generated/gtkd/atk/NoOpObjectFactory.d +++ /dev/null @@ -1,93 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.NoOpObjectFactory; - -private import atk.ObjectFactory; -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * The AtkObjectFactory which creates an AtkNoOpObject. An instance of - * this is created by an AtkRegistry if no factory type has not been - * specified to create an accessible object of a particular type. - */ -public class NoOpObjectFactory : ObjectFactory -{ - /** the main Gtk struct */ - protected AtkNoOpObjectFactory* atkNoOpObjectFactory; - - /** Get the main Gtk struct */ - public AtkNoOpObjectFactory* getNoOpObjectFactoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkNoOpObjectFactory; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkNoOpObjectFactory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkNoOpObjectFactory* atkNoOpObjectFactory, bool ownedRef = false) - { - this.atkNoOpObjectFactory = atkNoOpObjectFactory; - super(cast(AtkObjectFactory*)atkNoOpObjectFactory, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_no_op_object_factory_get_type(); - } - - /** - * Creates an instance of an #AtkObjectFactory which generates primitive - * (non-functioning) #AtkObjects. - * - * Returns: an instance of an #AtkObjectFactory - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = atk_no_op_object_factory_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkNoOpObjectFactory*) __p, true); - } -} diff --git a/generated/gtkd/atk/ObjectAtk.d b/generated/gtkd/atk/ObjectAtk.d deleted file mode 100644 index 14446af6c..000000000 --- a/generated/gtkd/atk/ObjectAtk.d +++ /dev/null @@ -1,637 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ObjectAtk; - -private import atk.RelationSet; -private import atk.StateSet; -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * This class is the primary class for accessibility support via the - * Accessibility ToolKit (ATK). Objects which are instances of - * #AtkObject (or instances of AtkObject-derived types) are queried - * for properties which relate basic (and generic) properties of a UI - * component such as name and description. Instances of #AtkObject - * may also be queried as to whether they implement other ATK - * interfaces (e.g. #AtkAction, #AtkComponent, etc.), as appropriate - * to the role which a given UI component plays in a user interface. - * - * All UI components in an application which provide useful - * information or services to the user must provide corresponding - * #AtkObject instances on request (in GTK+, for instance, usually on - * a call to #gtk_widget_get_accessible ()), either via ATK support - * built into the toolkit for the widget class or ancestor class, or - * in the case of custom widgets, if the inherited #AtkObject - * implementation is insufficient, via instances of a new #AtkObject - * subclass. - * - * See also: #AtkObjectFactory, #AtkRegistry. (GTK+ users see also - * #GtkAccessible). - */ -public class ObjectAtk : ObjectG -{ - /** the main Gtk struct */ - protected AtkObject* atkObject; - - /** Get the main Gtk struct */ - public AtkObject* getObjectAtkStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkObject; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkObject; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkObject* atkObject, bool ownedRef = false) - { - this.atkObject = atkObject; - super(cast(GObject*)atkObject, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_object_get_type(); - } - - /** - * Adds a relationship of the specified type with the specified target. - * - * Params: - * relationship = The #AtkRelationType of the relation - * target = The #AtkObject which is to be the target of the relation. - * - * Returns: TRUE if the relationship is added. - */ - public bool addRelationship(AtkRelationType relationship, ObjectAtk target) - { - return atk_object_add_relationship(atkObject, relationship, (target is null) ? null : target.getObjectAtkStruct()) != 0; - } - - /** - * Calls @handler on property changes. - * - * Deprecated: Connect directly to #AtkObject::property-change or - * the relevant #GObject::notify signal for each desired property. - * - * Params: - * handler = a function to be called when a property changes its value - * - * Returns: a #guint which is the handler id used in - * atk_object_remove_property_change_handler() - */ - public uint connectPropertyChangeHandler(AtkPropertyChangeHandler* handler) - { - return atk_object_connect_property_change_handler(atkObject, handler); - } - - /** - * Gets the accessible id of the accessible. - * - * Returns: a character string representing the accessible id of the object, or - * NULL if no such string was set. - * - * Since: 2.34 - */ - public string getAccessibleId() - { - return Str.toString(atk_object_get_accessible_id(atkObject)); - } - - /** - * Get a list of properties applied to this object as a whole, as an #AtkAttributeSet consisting of - * name-value pairs. As such these attributes may be considered weakly-typed properties or annotations, - * as distinct from strongly-typed object data available via other get/set methods. - * Not all objects have explicit "name-value pair" #AtkAttributeSet properties. - * - * Returns: an #AtkAttributeSet consisting of all - * explicit properties/annotations applied to the object, or an empty - * set if the object has no name-value pair attributes assigned to - * it. This #atkattributeset should be freed by a call to - * atk_attribute_set_free(). - * - * Since: 1.12 - */ - public AtkAttributeSet* getAttributes() - { - return atk_object_get_attributes(atkObject); - } - - /** - * Gets the accessible description of the accessible. - * - * Returns: a character string representing the accessible description - * of the accessible. - */ - public string getDescription() - { - return Str.toString(atk_object_get_description(atkObject)); - } - - /** - * Gets the 0-based index of this accessible in its parent; returns -1 if the - * accessible does not have an accessible parent. - * - * Returns: an integer which is the index of the accessible in its parent - */ - public int getIndexInParent() - { - return atk_object_get_index_in_parent(atkObject); - } - - /** - * Gets the layer of the accessible. - * - * Deprecated: Use atk_component_get_layer instead. - * - * Returns: an #AtkLayer which is the layer of the accessible - */ - public AtkLayer getLayer() - { - return atk_object_get_layer(atkObject); - } - - /** - * Gets the zorder of the accessible. The value G_MININT will be returned - * if the layer of the accessible is not ATK_LAYER_MDI. - * - * Deprecated: Use atk_component_get_mdi_zorder instead. - * - * Returns: a gint which is the zorder of the accessible, i.e. the depth at - * which the component is shown in relation to other components in the same - * container. - */ - public int getMdiZorder() - { - return atk_object_get_mdi_zorder(atkObject); - } - - /** - * Gets the number of accessible children of the accessible. - * - * Returns: an integer representing the number of accessible children - * of the accessible. - */ - public int getNAccessibleChildren() - { - return atk_object_get_n_accessible_children(atkObject); - } - - /** - * Gets the accessible name of the accessible. - * - * Returns: a character string representing the accessible name of the object. - */ - public string getName() - { - return Str.toString(atk_object_get_name(atkObject)); - } - - /** - * Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale - * of @accessible. - * - * Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES - * locale of @accessible. - * - * Since: 2.8 - */ - public string getObjectLocale() - { - return Str.toString(atk_object_get_object_locale(atkObject)); - } - - /** - * Gets the accessible parent of the accessible. By default this is - * the one assigned with atk_object_set_parent(), but it is assumed - * that ATK implementors have ways to get the parent of the object - * without the need of assigning it manually with - * atk_object_set_parent(), and will return it with this method. - * - * If you are only interested on the parent assigned with - * atk_object_set_parent(), use atk_object_peek_parent(). - * - * Returns: an #AtkObject representing the accessible - * parent of the accessible - */ - public ObjectAtk getParent() - { - auto __p = atk_object_get_parent(atkObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets the role of the accessible. - * - * Returns: an #AtkRole which is the role of the accessible - */ - public AtkRole getRole() - { - return atk_object_get_role(atkObject); - } - - /** - * This function is called when implementing subclasses of #AtkObject. - * It does initialization required for the new object. It is intended - * that this function should called only in the ..._new() functions used - * to create an instance of a subclass of #AtkObject - * - * Params: - * data = a #gpointer which identifies the object for which the AtkObject was created. - */ - public void initialize(void* data) - { - atk_object_initialize(atkObject, data); - } - - /** - * Emits a state-change signal for the specified state. - * - * Note that as a general rule when the state of an existing object changes, - * emitting a notification is expected. - * - * Params: - * state = an #AtkState whose state is changed - * value = a gboolean which indicates whether the state is being set on or off - */ - public void notifyStateChange(AtkState state, bool value) - { - atk_object_notify_state_change(atkObject, state, value); - } - - /** - * Gets the accessible parent of the accessible, if it has been - * manually assigned with atk_object_set_parent. Otherwise, this - * function returns %NULL. - * - * This method is intended as an utility for ATK implementors, and not - * to be exposed to accessible tools. See atk_object_get_parent() for - * further reference. - * - * Returns: an #AtkObject representing the accessible - * parent of the accessible if assigned - */ - public ObjectAtk peekParent() - { - auto __p = atk_object_peek_parent(atkObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets a reference to the specified accessible child of the object. - * The accessible children are 0-based so the first accessible child is - * at index 0, the second at index 1 and so on. - * - * Params: - * i = a gint representing the position of the child, starting from 0 - * - * Returns: an #AtkObject representing the specified - * accessible child of the accessible. - */ - public ObjectAtk refAccessibleChild(int i) - { - auto __p = atk_object_ref_accessible_child(atkObject, i); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } - - /** - * Gets the #AtkRelationSet associated with the object. - * - * Returns: an #AtkRelationSet representing the relation set - * of the object. - */ - public RelationSet refRelationSet() - { - auto __p = atk_object_ref_relation_set(atkObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(RelationSet)(cast(AtkRelationSet*) __p, true); - } - - /** - * Gets a reference to the state set of the accessible; the caller must - * unreference it when it is no longer needed. - * - * Returns: a reference to an #AtkStateSet which is the state - * set of the accessible - */ - public StateSet refStateSet() - { - auto __p = atk_object_ref_state_set(atkObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(StateSet)(cast(AtkStateSet*) __p, true); - } - - /** - * Removes a property change handler. - * - * Deprecated: See atk_object_connect_property_change_handler() - * - * Params: - * handlerId = a guint which identifies the handler to be removed. - */ - public void removePropertyChangeHandler(uint handlerId) - { - atk_object_remove_property_change_handler(atkObject, handlerId); - } - - /** - * Removes a relationship of the specified type with the specified target. - * - * Params: - * relationship = The #AtkRelationType of the relation - * target = The #AtkObject which is the target of the relation to be removed. - * - * Returns: TRUE if the relationship is removed. - */ - public bool removeRelationship(AtkRelationType relationship, ObjectAtk target) - { - return atk_object_remove_relationship(atkObject, relationship, (target is null) ? null : target.getObjectAtkStruct()) != 0; - } - - /** - * Sets the accessible ID of the accessible. This is not meant to be presented - * to the user, but to be an ID which is stable over application development. - * Typically, this is the gtkbuilder ID. Such an ID will be available for - * instance to identify a given well-known accessible object for tailored screen - * reading, or for automatic regression testing. - * - * Params: - * name = a character string to be set as the accessible id - * - * Since: 2.34 - */ - public void setAccessibleId(string name) - { - atk_object_set_accessible_id(atkObject, Str.toStringz(name)); - } - - /** - * Sets the accessible description of the accessible. You can't set - * the description to NULL. This is reserved for the initial value. In - * this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set - * the name to a empty value you can use "". - * - * Params: - * description = a character string to be set as the accessible description - */ - public void setDescription(string description) - { - atk_object_set_description(atkObject, Str.toStringz(description)); - } - - /** - * Sets the accessible name of the accessible. You can't set the name - * to NULL. This is reserved for the initial value. In this aspect - * NULL is similar to ATK_ROLE_UNKNOWN. If you want to set the name to - * a empty value you can use "". - * - * Params: - * name = a character string to be set as the accessible name - */ - public void setName(string name) - { - atk_object_set_name(atkObject, Str.toStringz(name)); - } - - /** - * Sets the accessible parent of the accessible. @parent can be NULL. - * - * Params: - * parent = an #AtkObject to be set as the accessible parent - */ - public void setParent(ObjectAtk parent) - { - atk_object_set_parent(atkObject, (parent is null) ? null : parent.getObjectAtkStruct()); - } - - /** - * Sets the role of the accessible. - * - * Params: - * role = an #AtkRole to be set as the role - */ - public void setRole(AtkRole role) - { - atk_object_set_role(atkObject, role); - } - - /** - * The "active-descendant-changed" signal is emitted by an object - * which has the state ATK_STATE_MANAGES_DESCENDANTS when the focus - * object in the object changes. For instance, a table will emit the - * signal when the cell in the table which has focus changes. - * - * Params: - * arg1 = the newly focused object. - */ - gulong addOnActiveDescendantChanged(void delegate(ObjectAtk, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "active-descendant-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal "children-changed" is emitted when a child is added or - * removed form an object. It supports two details: "add" and - * "remove" - * - * Params: - * arg1 = The index of the added or removed child. The value can be - * -1. This is used if the value is not known by the implementor - * when the child is added/removed or irrelevant. - * arg2 = A gpointer to the child AtkObject which was added or - * removed. If the child was removed, it is possible that it is not - * available for the implementor. In that case this pointer can be - * NULL. - */ - gulong addOnChildrenChanged(void delegate(uint, ObjectAtk, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "children-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal "focus-event" is emitted when an object gained or lost - * focus. - * - * Deprecated: Use the #AtkObject::state-change signal instead. - * - * Params: - * arg1 = a boolean value which indicates whether the object gained - * or lost focus. - */ - gulong addOnFocus(void delegate(bool, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "focus-event", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal "property-change" is emitted when an object's property - * value changes. @arg1 contains an #AtkPropertyValues with the name - * and the new value of the property whose value has changed. Note - * that, as with GObject notify, getting this signal does not - * guarantee that the value of the property has actually changed; it - * may also be emitted when the setter of the property is called to - * reinstate the previous value. - * - * Toolkit implementor note: ATK implementors should use - * g_object_notify() to emit property-changed - * notifications. #AtkObject::property-changed is needed by the - * implementation of atk_add_global_event_listener() because GObject - * notify doesn't support emission hooks. - * - * Params: - * arg1 = an #AtkPropertyValues containing the new - * value of the property which changed. - */ - gulong addOnPropertyChange(void delegate(void*, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "property-change", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "state-change" signal is emitted when an object's state - * changes. The detail value identifies the state type which has - * changed. - * - * Params: - * arg1 = The name of the state which has changed - * arg2 = A boolean which indicates whether the state has been set or unset. - */ - gulong addOnStateChange(void delegate(string, bool, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "state-change", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "visible-data-changed" signal is emitted when the visual - * appearance of the object changed. - */ - gulong addOnVisibleDataChanged(void delegate(ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "visible-data-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Get the #AtkRole type corresponding to a rolew name. - * - * Params: - * name = a string which is the (non-localized) name of an ATK role. - * - * Returns: the #AtkRole enumerated type corresponding to the specified name, - * or #ATK_ROLE_INVALID if no matching role is found. - */ - public static AtkRole roleForName(string name) - { - return atk_role_for_name(Str.toStringz(name)); - } - - /** - * Gets the localized description string describing the #AtkRole @role. - * - * Params: - * role = The #AtkRole whose localized name is required - * - * Returns: the localized string describing the AtkRole - */ - public static string roleGetLocalizedName(AtkRole role) - { - return Str.toString(atk_role_get_localized_name(role)); - } - - /** - * Gets the description string describing the #AtkRole @role. - * - * Params: - * role = The #AtkRole whose name is required - * - * Returns: the string describing the AtkRole - */ - public static string roleGetName(AtkRole role) - { - return Str.toString(atk_role_get_name(role)); - } - - /** - * Registers the role specified by @name. @name must be a meaningful - * name. So it should not be empty, or consisting on whitespaces. - * - * Deprecated: Since 2.12. If your application/toolkit doesn't find a - * suitable role for a specific object defined at #AtkRole, please - * submit a bug in order to add a new role to the specification. - * - * Params: - * name = a character string describing the new role. - * - * Returns: an #AtkRole for the new role if added - * properly. ATK_ROLE_INVALID in case of error. - */ - public static AtkRole roleRegister(string name) - { - return atk_role_register(Str.toStringz(name)); - } -} diff --git a/generated/gtkd/atk/ObjectFactory.d b/generated/gtkd/atk/ObjectFactory.d deleted file mode 100644 index ba6a5043e..000000000 --- a/generated/gtkd/atk/ObjectFactory.d +++ /dev/null @@ -1,119 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ObjectFactory; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; - - -/** - * This class is the base object class for a factory used to create an - * accessible object for a specific GType. The function - * atk_registry_set_factory_type() is normally called to store in the - * registry the factory type to be used to create an accessible of a - * particular GType. - */ -public class ObjectFactory : ObjectG -{ - /** the main Gtk struct */ - protected AtkObjectFactory* atkObjectFactory; - - /** Get the main Gtk struct */ - public AtkObjectFactory* getObjectFactoryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkObjectFactory; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkObjectFactory; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkObjectFactory* atkObjectFactory, bool ownedRef = false) - { - this.atkObjectFactory = atkObjectFactory; - super(cast(GObject*)atkObjectFactory, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_object_factory_get_type(); - } - - /** - * Provides an #AtkObject that implements an accessibility interface - * on behalf of @obj - * - * Params: - * obj = a #GObject - * - * Returns: an #AtkObject that implements an accessibility - * interface on behalf of @obj - */ - public ObjectAtk createAccessible(ObjectG obj) - { - auto __p = atk_object_factory_create_accessible(atkObjectFactory, (obj is null) ? null : obj.getObjectGStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } - - /** - * Gets the GType of the accessible which is created by the factory. - * - * Returns: the type of the accessible which is created by the @factory. - * The value G_TYPE_INVALID is returned if no type if found. - */ - public GType getAccessibleType() - { - return atk_object_factory_get_accessible_type(atkObjectFactory); - } - - /** - * Inform @factory that it is no longer being used to create - * accessibles. When called, @factory may need to inform - * #AtkObjects which it has created that they need to be re-instantiated. - * Note: primarily used for runtime replacement of #AtkObjectFactorys - * in object registries. - */ - public void invalidate() - { - atk_object_factory_invalidate(atkObjectFactory); - } -} diff --git a/generated/gtkd/atk/Plug.d b/generated/gtkd/atk/Plug.d deleted file mode 100644 index a50702bb2..000000000 --- a/generated/gtkd/atk/Plug.d +++ /dev/null @@ -1,142 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Plug; - -private import atk.ComponentIF; -private import atk.ComponentT; -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * See #AtkSocket - */ -public class Plug : ObjectAtk, ComponentIF -{ - /** the main Gtk struct */ - protected AtkPlug* atkPlug; - - /** Get the main Gtk struct */ - public AtkPlug* getPlugStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkPlug; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkPlug; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkPlug* atkPlug, bool ownedRef = false) - { - this.atkPlug = atkPlug; - super(cast(AtkObject*)atkPlug, ownedRef); - } - - // add the Component capabilities - mixin ComponentT!(AtkPlug); - - - /** */ - public static GType getType() - { - return atk_plug_get_type(); - } - - /** - * Creates a new #AtkPlug instance. - * - * Returns: the newly created #AtkPlug - * - * Since: 1.30 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = atk_plug_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkPlug*) __p, true); - } - - /** - * Gets the unique ID of an #AtkPlug object, which can be used to - * embed inside of an #AtkSocket using atk_socket_embed(). - * - * Internally, this calls a class function that should be registered - * by the IPC layer (usually at-spi2-atk). The implementor of an - * #AtkPlug object should call this function (after atk-bridge is - * loaded) and pass the value to the process implementing the - * #AtkSocket, so it could embed the plug. - * - * Returns: the unique ID for the plug - * - * Since: 1.30 - */ - public string getId() - { - auto retStr = atk_plug_get_id(atkPlug); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Sets @child as accessible child of @plug and @plug as accessible parent of - * @child. @child can be NULL. - * - * In some cases, one can not use the AtkPlug type directly as accessible - * object for the toplevel widget of the application. For instance in the gtk - * case, GtkPlugAccessible can not inherit both from GtkWindowAccessible and - * from AtkPlug. In such a case, one can create, in addition to the standard - * accessible object for the toplevel widget, an AtkPlug object, and make the - * former the child of the latter by calling atk_plug_set_child(). - * - * Params: - * child = an #AtkObject to be set as accessible child of @plug. - * - * Since: 2.35.0 - */ - public void setChild(ObjectAtk child) - { - atk_plug_set_child(atkPlug, (child is null) ? null : child.getObjectAtkStruct()); - } -} diff --git a/generated/gtkd/atk/Range.d b/generated/gtkd/atk/Range.d deleted file mode 100644 index ca0688556..000000000 --- a/generated/gtkd/atk/Range.d +++ /dev/null @@ -1,176 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Range; - -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * #AtkRange are used on #AtkValue, in order to represent the full - * range of a given component (for example an slider or a range - * control), or to define each individual subrange this full range is - * splitted if available. See #AtkValue documentation for further - * details. - */ -public class Range -{ - /** the main Gtk struct */ - protected AtkRange* atkRange; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public AtkRange* getRangeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkRange; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)atkRange; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkRange* atkRange, bool ownedRef = false) - { - this.atkRange = atkRange; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_ATK) && ownedRef ) - atk_range_free(atkRange); - } - - - /** */ - public static GType getType() - { - return atk_range_get_type(); - } - - /** - * Creates a new #AtkRange. - * - * Params: - * lowerLimit = inferior limit for this range - * upperLimit = superior limit for this range - * description = human readable description of this range. - * - * Returns: a new #AtkRange - * - * Since: 2.12 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(double lowerLimit, double upperLimit, string description) - { - auto __p = atk_range_new(lowerLimit, upperLimit, Str.toStringz(description)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkRange*) __p); - } - - /** - * Returns a new #AtkRange that is a exact copy of @src - * - * Returns: a new #AtkRange copy of @src - * - * Since: 2.12 - */ - public Range copy() - { - auto __p = atk_range_copy(atkRange); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Range)(cast(AtkRange*) __p, true); - } - - /** - * Free @range - * - * Since: 2.12 - */ - public void free() - { - atk_range_free(atkRange); - ownedRef = false; - } - - /** - * Returns the human readable description of @range - * - * Returns: the human-readable description of @range - * - * Since: 2.12 - */ - public string getDescription() - { - return Str.toString(atk_range_get_description(atkRange)); - } - - /** - * Returns the lower limit of @range - * - * Returns: the lower limit of @range - * - * Since: 2.12 - */ - public double getLowerLimit() - { - return atk_range_get_lower_limit(atkRange); - } - - /** - * Returns the upper limit of @range - * - * Returns: the upper limit of @range - * - * Since: 2.12 - */ - public double getUpperLimit() - { - return atk_range_get_upper_limit(atkRange); - } -} diff --git a/generated/gtkd/atk/Rectangle.d b/generated/gtkd/atk/Rectangle.d deleted file mode 100644 index b0d63d6ef..000000000 --- a/generated/gtkd/atk/Rectangle.d +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Rectangle; - -private import atk.c.functions; -public import atk.c.types; -private import glib.MemorySlice; -private import gtkd.Loader; - - -/** - * A data structure for holding a rectangle. Those coordinates are - * relative to the component top-level parent. - */ -public final class Rectangle -{ - /** the main Gtk struct */ - protected AtkRectangle* atkRectangle; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public AtkRectangle* getRectangleStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkRectangle; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)atkRectangle; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkRectangle* atkRectangle, bool ownedRef = false) - { - this.atkRectangle = atkRectangle; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_ATK) && ownedRef ) - sliceFree(atkRectangle); - } - - - /** - * X coordinate of the left side of the rectangle. - */ - public @property int x() - { - return atkRectangle.x; - } - - /** Ditto */ - public @property void x(int value) - { - atkRectangle.x = value; - } - - /** - * Y coordinate of the top side of the rectangle. - */ - public @property int y() - { - return atkRectangle.y; - } - - /** Ditto */ - public @property void y(int value) - { - atkRectangle.y = value; - } - - /** - * width of the rectangle. - */ - public @property int width() - { - return atkRectangle.width; - } - - /** Ditto */ - public @property void width(int value) - { - atkRectangle.width = value; - } - - /** - * height of the rectangle. - */ - public @property int height() - { - return atkRectangle.height; - } - - /** Ditto */ - public @property void height(int value) - { - atkRectangle.height = value; - } - - /** */ - public static GType getType() - { - return atk_rectangle_get_type(); - } -} diff --git a/generated/gtkd/atk/Registry.d b/generated/gtkd/atk/Registry.d deleted file mode 100644 index 98be932d8..000000000 --- a/generated/gtkd/atk/Registry.d +++ /dev/null @@ -1,152 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Registry; - -private import atk.ObjectFactory; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; - - -/** - * The AtkRegistry is normally used to create appropriate ATK "peers" - * for user interface components. Application developers usually need - * only interact with the AtkRegistry by associating appropriate ATK - * implementation classes with GObject classes via the - * atk_registry_set_factory_type call, passing the appropriate GType - * for application custom widget classes. - */ -public class Registry : ObjectG -{ - /** the main Gtk struct */ - protected AtkRegistry* atkRegistry; - - /** Get the main Gtk struct */ - public AtkRegistry* getRegistryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkRegistry; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkRegistry; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkRegistry* atkRegistry, bool ownedRef = false) - { - this.atkRegistry = atkRegistry; - super(cast(GObject*)atkRegistry, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_registry_get_type(); - } - - /** - * Gets an #AtkObjectFactory appropriate for creating #AtkObjects - * appropriate for @type. - * - * Params: - * type = a #GType with which to look up the associated #AtkObjectFactory - * - * Returns: an #AtkObjectFactory appropriate for creating - * #AtkObjects appropriate for @type. - */ - public ObjectFactory getFactory(GType type) - { - auto __p = atk_registry_get_factory(atkRegistry, type); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectFactory)(cast(AtkObjectFactory*) __p); - } - - /** - * Provides a #GType indicating the #AtkObjectFactory subclass - * associated with @type. - * - * Params: - * type = a #GType with which to look up the associated #AtkObjectFactory - * subclass - * - * Returns: a #GType associated with type @type - */ - public GType getFactoryType(GType type) - { - return atk_registry_get_factory_type(atkRegistry, type); - } - - /** - * Associate an #AtkObjectFactory subclass with a #GType. Note: - * The associated @factory_type will thereafter be responsible for - * the creation of new #AtkObject implementations for instances - * appropriate for @type. - * - * Params: - * type = an #AtkObject type - * factoryType = an #AtkObjectFactory type to associate with @type. Must - * implement AtkObject appropriate for @type. - */ - public void setFactoryType(GType type, GType factoryType) - { - atk_registry_set_factory_type(atkRegistry, type, factoryType); - } - - /** - * Gets a default implementation of the #AtkObjectFactory/type - * registry. - * Note: For most toolkit maintainers, this will be the correct - * registry for registering new #AtkObject factories. Following - * a call to this function, maintainers may call atk_registry_set_factory_type() - * to associate an #AtkObjectFactory subclass with the GType of objects - * for whom accessibility information will be provided. - * - * Returns: a default implementation of the - * #AtkObjectFactory/type registry - */ - public static Registry getDefaultRegistry() - { - auto __p = atk_get_default_registry(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Registry)(cast(AtkRegistry*) __p, true); - } -} diff --git a/generated/gtkd/atk/Relation.d b/generated/gtkd/atk/Relation.d deleted file mode 100644 index 4467717d8..000000000 --- a/generated/gtkd/atk/Relation.d +++ /dev/null @@ -1,203 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Relation; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import glib.PtrArray; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * An AtkRelation describes a relation between an object and one or - * more other objects. The actual relations that an object has with - * other objects are defined as an AtkRelationSet, which is a set of - * AtkRelations. - */ -public class Relation : ObjectG -{ - /** the main Gtk struct */ - protected AtkRelation* atkRelation; - - /** Get the main Gtk struct */ - public AtkRelation* getRelationStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkRelation; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkRelation; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkRelation* atkRelation, bool ownedRef = false) - { - this.atkRelation = atkRelation; - super(cast(GObject*)atkRelation, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_relation_get_type(); - } - - /** - * Create a new relation for the specified key and the specified list - * of targets. See also atk_object_add_relationship(). - * - * Params: - * targets = an array of pointers to - * #AtkObjects - * relationship = an #AtkRelationType with which to create the new - * #AtkRelation - * - * Returns: a pointer to a new #AtkRelation - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectAtk[] targets, AtkRelationType relationship) - { - AtkObject*[] targetsArray = new AtkObject*[targets.length]; - for ( int i = 0; i < targets.length; i++ ) - { - targetsArray[i] = targets[i].getObjectAtkStruct(); - } - - auto __p = atk_relation_new(targetsArray.ptr, cast(int)targets.length, relationship); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkRelation*) __p, true); - } - - /** - * Adds the specified AtkObject to the target for the relation, if it is - * not already present. See also atk_object_add_relationship(). - * - * Params: - * target = an #AtkObject - * - * Since: 1.9 - */ - public void addTarget(ObjectAtk target) - { - atk_relation_add_target(atkRelation, (target is null) ? null : target.getObjectAtkStruct()); - } - - /** - * Gets the type of @relation - * - * Returns: the type of @relation - */ - public AtkRelationType getRelationType() - { - return atk_relation_get_relation_type(atkRelation); - } - - /** - * Gets the target list of @relation - * - * Returns: the target list of @relation - */ - public PtrArray getTarget() - { - auto __p = atk_relation_get_target(atkRelation); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p); - } - - /** - * Remove the specified AtkObject from the target for the relation. - * - * Params: - * target = an #AtkObject - * - * Returns: TRUE if the removal is successful. - */ - public bool removeTarget(ObjectAtk target) - { - return atk_relation_remove_target(atkRelation, (target is null) ? null : target.getObjectAtkStruct()) != 0; - } - - /** - * Get the #AtkRelationType type corresponding to a relation name. - * - * Params: - * name = a string which is the (non-localized) name of an ATK relation type. - * - * Returns: the #AtkRelationType enumerated type corresponding to the specified name, - * or #ATK_RELATION_NULL if no matching relation type is found. - */ - public static AtkRelationType typeForName(string name) - { - return atk_relation_type_for_name(Str.toStringz(name)); - } - - /** - * Gets the description string describing the #AtkRelationType @type. - * - * Params: - * type = The #AtkRelationType whose name is required - * - * Returns: the string describing the AtkRelationType - */ - public static string typeGetName(AtkRelationType type) - { - return Str.toString(atk_relation_type_get_name(type)); - } - - /** - * Associate @name with a new #AtkRelationType - * - * Params: - * name = a name string - * - * Returns: an #AtkRelationType associated with @name - */ - public static AtkRelationType typeRegister(string name) - { - return atk_relation_type_register(Str.toStringz(name)); - } -} diff --git a/generated/gtkd/atk/RelationSet.d b/generated/gtkd/atk/RelationSet.d deleted file mode 100644 index ed55a3b0a..000000000 --- a/generated/gtkd/atk/RelationSet.d +++ /dev/null @@ -1,227 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.RelationSet; - -private import atk.ObjectAtk; -private import atk.Relation; -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * The AtkRelationSet held by an object establishes its relationships - * with objects beyond the normal "parent/child" hierarchical - * relationships that all user interface objects have. - * AtkRelationSets establish whether objects are labelled or - * controlled by other components, share group membership with other - * components (for instance within a radio-button group), or share - * content which "flows" between them, among other types of possible - * relationships. - */ -public class RelationSet : ObjectG -{ - /** the main Gtk struct */ - protected AtkRelationSet* atkRelationSet; - - /** Get the main Gtk struct */ - public AtkRelationSet* getRelationSetStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkRelationSet; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkRelationSet; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkRelationSet* atkRelationSet, bool ownedRef = false) - { - this.atkRelationSet = atkRelationSet; - super(cast(GObject*)atkRelationSet, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_relation_set_get_type(); - } - - /** - * Creates a new empty relation set. - * - * Returns: a new #AtkRelationSet - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = atk_relation_set_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkRelationSet*) __p, true); - } - - /** - * Add a new relation to the current relation set if it is not already - * present. - * This function ref's the AtkRelation so the caller of this function - * should unref it to ensure that it will be destroyed when the AtkRelationSet - * is destroyed. - * - * Params: - * relation = an #AtkRelation - */ - public void add(Relation relation) - { - atk_relation_set_add(atkRelationSet, (relation is null) ? null : relation.getRelationStruct()); - } - - /** - * Add a new relation of the specified type with the specified target to - * the current relation set if the relation set does not contain a relation - * of that type. If it is does contain a relation of that typea the target - * is added to the relation. - * - * Params: - * relationship = an #AtkRelationType - * target = an #AtkObject - * - * Since: 1.9 - */ - public void addRelationByType(AtkRelationType relationship, ObjectAtk target) - { - atk_relation_set_add_relation_by_type(atkRelationSet, relationship, (target is null) ? null : target.getObjectAtkStruct()); - } - - /** - * Determines whether the relation set contains a relation that matches the - * specified type. - * - * Params: - * relationship = an #AtkRelationType - * - * Returns: %TRUE if @relationship is the relationship type of a relation - * in @set, %FALSE otherwise - */ - public bool contains(AtkRelationType relationship) - { - return atk_relation_set_contains(atkRelationSet, relationship) != 0; - } - - /** - * Determines whether the relation set contains a relation that - * matches the specified pair formed by type @relationship and object - * @target. - * - * Params: - * relationship = an #AtkRelationType - * target = an #AtkObject - * - * Returns: %TRUE if @set contains a relation with the relationship - * type @relationship with an object @target, %FALSE otherwise - */ - public bool containsTarget(AtkRelationType relationship, ObjectAtk target) - { - return atk_relation_set_contains_target(atkRelationSet, relationship, (target is null) ? null : target.getObjectAtkStruct()) != 0; - } - - /** - * Determines the number of relations in a relation set. - * - * Returns: an integer representing the number of relations in the set. - */ - public int getNRelations() - { - return atk_relation_set_get_n_relations(atkRelationSet); - } - - /** - * Determines the relation at the specified position in the relation set. - * - * Params: - * i = a gint representing a position in the set, starting from 0. - * - * Returns: a #AtkRelation, which is the relation at - * position i in the set. - */ - public Relation getRelation(int i) - { - auto __p = atk_relation_set_get_relation(atkRelationSet, i); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Relation)(cast(AtkRelation*) __p); - } - - /** - * Finds a relation that matches the specified type. - * - * Params: - * relationship = an #AtkRelationType - * - * Returns: an #AtkRelation, which is a relation matching the - * specified type. - */ - public Relation getRelationByType(AtkRelationType relationship) - { - auto __p = atk_relation_set_get_relation_by_type(atkRelationSet, relationship); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Relation)(cast(AtkRelation*) __p); - } - - /** - * Removes a relation from the relation set. - * This function unref's the #AtkRelation so it will be deleted unless there - * is another reference to it. - * - * Params: - * relation = an #AtkRelation - */ - public void remove(Relation relation) - { - atk_relation_set_remove(atkRelationSet, (relation is null) ? null : relation.getRelationStruct()); - } -} diff --git a/generated/gtkd/atk/SelectionIF.d b/generated/gtkd/atk/SelectionIF.d deleted file mode 100644 index eeb02c28e..000000000 --- a/generated/gtkd/atk/SelectionIF.d +++ /dev/null @@ -1,149 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.SelectionIF; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #AtkSelection should be implemented by UI components with children - * which are exposed by #atk_object_ref_child and - * #atk_object_get_n_children, if the use of the parent UI component - * ordinarily involves selection of one or more of the objects - * corresponding to those #AtkObject children - for example, - * selectable lists. - * - * Note that other types of "selection" (for instance text selection) - * are accomplished a other ATK interfaces - #AtkSelection is limited - * to the selection/deselection of children. - */ -public interface SelectionIF{ - /** Get the main Gtk struct */ - public AtkSelection* getSelectionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_selection_get_type(); - } - - /** - * Adds the specified accessible child of the object to the - * object's selection. - * - * Params: - * i = a #gint specifying the child index. - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool addSelection(int i); - - /** - * Clears the selection in the object so that no children in the object - * are selected. - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool clearSelection(); - - /** - * Gets the number of accessible children currently selected. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * - * Returns: a gint representing the number of items selected, or 0 - * if @selection does not implement this interface. - */ - public int getSelectionCount(); - - /** - * Determines if the current child of this object is selected - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * - * Params: - * i = a #gint specifying the child index. - * - * Returns: a gboolean representing the specified child is selected, or 0 - * if @selection does not implement this interface. - */ - public bool isChildSelected(int i); - - /** - * Gets a reference to the accessible object representing the specified - * selected child of the object. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * - * Params: - * i = a #gint specifying the index in the selection set. (e.g. the - * ith selection as opposed to the ith child). - * - * Returns: an #AtkObject representing the - * selected accessible, or %NULL if @selection does not implement this - * interface. - */ - public ObjectAtk refSelection(int i); - - /** - * Removes the specified child of the object from the object's selection. - * - * Params: - * i = a #gint specifying the index in the selection set. (e.g. the - * ith selection as opposed to the ith child). - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool removeSelection(int i); - - /** - * Causes every child of the object to be selected if the object - * supports multiple selections. - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool selectAllSelection(); - - /** - * The "selection-changed" signal is emitted by an object which - * implements AtkSelection interface when the selection changes. - */ - gulong addOnSelectionChanged(void delegate(SelectionIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/atk/SelectionT.d b/generated/gtkd/atk/SelectionT.d deleted file mode 100644 index 3c7c714cd..000000000 --- a/generated/gtkd/atk/SelectionT.d +++ /dev/null @@ -1,177 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.SelectionT; - -public import atk.ObjectAtk; -public import atk.c.functions; -public import atk.c.types; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #AtkSelection should be implemented by UI components with children - * which are exposed by #atk_object_ref_child and - * #atk_object_get_n_children, if the use of the parent UI component - * ordinarily involves selection of one or more of the objects - * corresponding to those #AtkObject children - for example, - * selectable lists. - * - * Note that other types of "selection" (for instance text selection) - * are accomplished a other ATK interfaces - #AtkSelection is limited - * to the selection/deselection of children. - */ -public template SelectionT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkSelection* getSelectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkSelection*)getStruct(); - } - - - /** - * Adds the specified accessible child of the object to the - * object's selection. - * - * Params: - * i = a #gint specifying the child index. - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool addSelection(int i) - { - return atk_selection_add_selection(getSelectionStruct(), i) != 0; - } - - /** - * Clears the selection in the object so that no children in the object - * are selected. - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool clearSelection() - { - return atk_selection_clear_selection(getSelectionStruct()) != 0; - } - - /** - * Gets the number of accessible children currently selected. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * - * Returns: a gint representing the number of items selected, or 0 - * if @selection does not implement this interface. - */ - public int getSelectionCount() - { - return atk_selection_get_selection_count(getSelectionStruct()); - } - - /** - * Determines if the current child of this object is selected - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * - * Params: - * i = a #gint specifying the child index. - * - * Returns: a gboolean representing the specified child is selected, or 0 - * if @selection does not implement this interface. - */ - public bool isChildSelected(int i) - { - return atk_selection_is_child_selected(getSelectionStruct(), i) != 0; - } - - /** - * Gets a reference to the accessible object representing the specified - * selected child of the object. - * Note: callers should not rely on %NULL or on a zero value for - * indication of whether AtkSelectionIface is implemented, they should - * use type checking/interface checking macros or the - * atk_get_accessible_value() convenience method. - * - * Params: - * i = a #gint specifying the index in the selection set. (e.g. the - * ith selection as opposed to the ith child). - * - * Returns: an #AtkObject representing the - * selected accessible, or %NULL if @selection does not implement this - * interface. - */ - public ObjectAtk refSelection(int i) - { - auto __p = atk_selection_ref_selection(getSelectionStruct(), i); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } - - /** - * Removes the specified child of the object from the object's selection. - * - * Params: - * i = a #gint specifying the index in the selection set. (e.g. the - * ith selection as opposed to the ith child). - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool removeSelection(int i) - { - return atk_selection_remove_selection(getSelectionStruct(), i) != 0; - } - - /** - * Causes every child of the object to be selected if the object - * supports multiple selections. - * - * Returns: TRUE if success, FALSE otherwise. - */ - public bool selectAllSelection() - { - return atk_selection_select_all_selection(getSelectionStruct()) != 0; - } - - /** - * The "selection-changed" signal is emitted by an object which - * implements AtkSelection interface when the selection changes. - */ - gulong addOnSelectionChanged(void delegate(SelectionIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "selection-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/Socket.d b/generated/gtkd/atk/Socket.d deleted file mode 100644 index dadfb6057..000000000 --- a/generated/gtkd/atk/Socket.d +++ /dev/null @@ -1,151 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Socket; - -private import atk.ComponentIF; -private import atk.ComponentT; -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * Together with #AtkPlug, #AtkSocket provides the ability to embed - * accessibles from one process into another in a fashion that is - * transparent to assistive technologies. #AtkSocket works as the - * container of #AtkPlug, embedding it using the method - * atk_socket_embed(). Any accessible contained in the #AtkPlug will - * appear to the assistive technologies as being inside the - * application that created the #AtkSocket. - * - * The communication between a #AtkSocket and a #AtkPlug is done by - * the IPC layer of the accessibility framework, normally implemented - * by the D-Bus based implementation of AT-SPI (at-spi2). If that is - * the case, at-spi-atk2 is the responsible to implement the abstract - * methods atk_plug_get_id() and atk_socket_embed(), so an ATK - * implementor shouldn't reimplement them. The process that contains - * the #AtkPlug is responsible to send the ID returned by - * atk_plug_id() to the process that contains the #AtkSocket, so it - * could call the method atk_socket_embed() in order to embed it. - * - * For the same reasons, an implementor doesn't need to implement - * atk_object_get_n_accessible_children() and - * atk_object_ref_accessible_child(). All the logic related to those - * functions will be implemented by the IPC layer. - */ -public class Socket : ObjectAtk, ComponentIF -{ - /** the main Gtk struct */ - protected AtkSocket* atkSocket; - - /** Get the main Gtk struct */ - public AtkSocket* getSocketStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkSocket; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkSocket; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkSocket* atkSocket, bool ownedRef = false) - { - this.atkSocket = atkSocket; - super(cast(AtkObject*)atkSocket, ownedRef); - } - - // add the Component capabilities - mixin ComponentT!(AtkSocket); - - - /** */ - public static GType getType() - { - return atk_socket_get_type(); - } - - /** - * Creates a new #AtkSocket. - * - * Returns: the newly created #AtkSocket instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = atk_socket_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkSocket*) __p, true); - } - - /** - * Embeds the children of an #AtkPlug as the children of the - * #AtkSocket. The plug may be in the same process or in a different - * process. - * - * The class item used by this function should be filled in by the IPC - * layer (usually at-spi2-atk). The implementor of the AtkSocket - * should call this function and pass the id for the plug as returned - * by atk_plug_get_id(). It is the responsibility of the application - * to pass the plug id on to the process implementing the #AtkSocket - * as needed. - * - * Params: - * plugId = the ID of an #AtkPlug - * - * Since: 1.30 - */ - public void embed(string plugId) - { - atk_socket_embed(atkSocket, Str.toStringz(plugId)); - } - - /** - * Determines whether or not the socket has an embedded plug. - * - * Returns: TRUE if a plug is embedded in the socket - * - * Since: 1.30 - */ - public bool isOccupied() - { - return atk_socket_is_occupied(atkSocket) != 0; - } -} diff --git a/generated/gtkd/atk/State.d b/generated/gtkd/atk/State.d deleted file mode 100644 index 2bf29429a..000000000 --- a/generated/gtkd/atk/State.d +++ /dev/null @@ -1,75 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.State; - -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; - - -/** */ -public struct State -{ - - /** - * Gets the #AtkStateType corresponding to the description string @name. - * - * Params: - * name = a character string state name - * - * Returns: an #AtkStateType corresponding to @name - */ - public static AtkStateType typeForName(string name) - { - return atk_state_type_for_name(Str.toStringz(name)); - } - - /** - * Gets the description string describing the #AtkStateType @type. - * - * Params: - * type = The #AtkStateType whose name is required - * - * Returns: the string describing the AtkStateType - */ - public static string typeGetName(AtkStateType type) - { - return Str.toString(atk_state_type_get_name(type)); - } - - /** - * Register a new object state. - * - * Params: - * name = a character string describing the new state. - * - * Returns: an #AtkState value for the new state. - */ - public static AtkStateType typeRegister(string name) - { - return atk_state_type_register(Str.toStringz(name)); - } -} diff --git a/generated/gtkd/atk/StateSet.d b/generated/gtkd/atk/StateSet.d deleted file mode 100644 index 0d3648a49..000000000 --- a/generated/gtkd/atk/StateSet.d +++ /dev/null @@ -1,255 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.StateSet; - -private import atk.c.functions; -public import atk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * An AtkStateSet is a read-only representation of the full set of #AtkStates - * that apply to an object at a given time. This set is not meant to be - * modified, but rather created when #atk_object_ref_state_set() is called. - */ -public class StateSet : ObjectG -{ - /** the main Gtk struct */ - protected AtkStateSet* atkStateSet; - - /** Get the main Gtk struct */ - public AtkStateSet* getStateSetStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkStateSet; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)atkStateSet; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkStateSet* atkStateSet, bool ownedRef = false) - { - this.atkStateSet = atkStateSet; - super(cast(GObject*)atkStateSet, ownedRef); - } - - - /** */ - public static GType getType() - { - return atk_state_set_get_type(); - } - - /** - * Creates a new empty state set. - * - * Returns: a new #AtkStateSet - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = atk_state_set_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(AtkStateSet*) __p, true); - } - - /** - * Adds the state of the specified type to the state set if it is not already - * present. - * - * Note that because an #AtkStateSet is a read-only object, this method should - * be used to add a state to a newly-created set which will then be returned by - * #atk_object_ref_state_set. It should not be used to modify the existing state - * of an object. See also #atk_object_notify_state_change. - * - * Params: - * type = an #AtkStateType - * - * Returns: %TRUE if the state for @type is not already in @set. - */ - public bool addState(AtkStateType type) - { - return atk_state_set_add_state(atkStateSet, type) != 0; - } - - /** - * Adds the states of the specified types to the state set. - * - * Note that because an #AtkStateSet is a read-only object, this method should - * be used to add states to a newly-created set which will then be returned by - * #atk_object_ref_state_set. It should not be used to modify the existing state - * of an object. See also #atk_object_notify_state_change. - * - * Params: - * types = an array of #AtkStateType - */ - public void addStates(AtkStateType[] types) - { - atk_state_set_add_states(atkStateSet, types.ptr, cast(int)types.length); - } - - /** - * Constructs the intersection of the two sets, returning %NULL if the - * intersection is empty. - * - * Params: - * compareSet = another #AtkStateSet - * - * Returns: a new #AtkStateSet which is the intersection of - * the two sets. - */ - public StateSet andSets(StateSet compareSet) - { - auto __p = atk_state_set_and_sets(atkStateSet, (compareSet is null) ? null : compareSet.getStateSetStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(StateSet)(cast(AtkStateSet*) __p, true); - } - - /** - * Removes all states from the state set. - */ - public void clearStates() - { - atk_state_set_clear_states(atkStateSet); - } - - /** - * Checks whether the state for the specified type is in the specified set. - * - * Params: - * type = an #AtkStateType - * - * Returns: %TRUE if @type is the state type is in @set. - */ - public bool containsState(AtkStateType type) - { - return atk_state_set_contains_state(atkStateSet, type) != 0; - } - - /** - * Checks whether the states for all the specified types are in the - * specified set. - * - * Params: - * types = an array of #AtkStateType - * - * Returns: %TRUE if all the states for @type are in @set. - */ - public bool containsStates(AtkStateType[] types) - { - return atk_state_set_contains_states(atkStateSet, types.ptr, cast(int)types.length) != 0; - } - - /** - * Checks whether the state set is empty, i.e. has no states set. - * - * Returns: %TRUE if @set has no states set, otherwise %FALSE - */ - public bool isEmpty() - { - return atk_state_set_is_empty(atkStateSet) != 0; - } - - /** - * Constructs the union of the two sets. - * - * Params: - * compareSet = another #AtkStateSet - * - * Returns: a new #AtkStateSet which is - * the union of the two sets, returning %NULL is empty. - */ - public StateSet orSets(StateSet compareSet) - { - auto __p = atk_state_set_or_sets(atkStateSet, (compareSet is null) ? null : compareSet.getStateSetStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(StateSet)(cast(AtkStateSet*) __p, true); - } - - /** - * Removes the state for the specified type from the state set. - * - * Note that because an #AtkStateSet is a read-only object, this method should - * be used to remove a state to a newly-created set which will then be returned - * by #atk_object_ref_state_set. It should not be used to modify the existing - * state of an object. See also #atk_object_notify_state_change. - * - * Params: - * type = an #AtkType - * - * Returns: %TRUE if @type was the state type is in @set. - */ - public bool removeState(AtkStateType type) - { - return atk_state_set_remove_state(atkStateSet, type) != 0; - } - - /** - * Constructs the exclusive-or of the two sets, returning %NULL is empty. - * The set returned by this operation contains the states in exactly - * one of the two sets. - * - * Params: - * compareSet = another #AtkStateSet - * - * Returns: a new #AtkStateSet which contains the states - * which are in exactly one of the two sets. - */ - public StateSet xorSets(StateSet compareSet) - { - auto __p = atk_state_set_xor_sets(atkStateSet, (compareSet is null) ? null : compareSet.getStateSetStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(StateSet)(cast(AtkStateSet*) __p, true); - } -} diff --git a/generated/gtkd/atk/StreamableContentIF.d b/generated/gtkd/atk/StreamableContentIF.d deleted file mode 100644 index 184818039..000000000 --- a/generated/gtkd/atk/StreamableContentIF.d +++ /dev/null @@ -1,116 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.StreamableContentIF; - -private import atk.c.functions; -public import atk.c.types; -private import glib.IOChannel; -private import glib.Str; -private import glib.c.functions; - - -/** - * An interface whereby an object allows its backing content to be - * streamed to clients. Typical implementors would be images or - * icons, HTML content, or multimedia display/rendering widgets. - * - * Negotiation of content type is allowed. Clients may examine the - * backing data and transform, convert, or parse the content in order - * to present it in an alternate form to end-users. - * - * The AtkStreamableContent interface is particularly useful for - * saving, printing, or post-processing entire documents, or for - * persisting alternate views of a document. If document content - * itself is being serialized, stored, or converted, then use of the - * AtkStreamableContent interface can help address performance - * issues. Unlike most ATK interfaces, this interface is not strongly - * tied to the current user-agent view of the a particular document, - * but may in some cases give access to the underlying model data. - */ -public interface StreamableContentIF{ - /** Get the main Gtk struct */ - public AtkStreamableContent* getStreamableContentStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_streamable_content_get_type(); - } - - /** - * Gets the character string of the specified mime type. The first mime - * type is at position 0, the second at position 1, and so on. - * - * Params: - * i = a gint representing the position of the mime type starting from 0 - * - * Returns: a gchar* representing the specified mime type; the caller - * should not free the character string. - */ - public string getMimeType(int i); - - /** - * Gets the number of mime types supported by this object. - * - * Returns: a gint which is the number of mime types supported by the object. - */ - public int getNMimeTypes(); - - /** - * Gets the content in the specified mime type. - * - * Params: - * mimeType = a gchar* representing the mime type - * - * Returns: A #GIOChannel which contains the content in the - * specified mime type. - */ - public IOChannel getStream(string mimeType); - - /** - * Get a string representing a URI in IETF standard format - * (see http://www.ietf.org/rfc/rfc2396.txt) from which the object's content - * may be streamed in the specified mime-type, if one is available. - * If mime_type is NULL, the URI for the default (and possibly only) mime-type is - * returned. - * - * Note that it is possible for get_uri to return NULL but for - * get_stream to work nonetheless, since not all GIOChannels connect to URIs. - * - * Params: - * mimeType = a gchar* representing the mime type, or NULL to request a URI - * for the default mime type. - * - * Returns: Returns a string representing a URI, or %NULL - * if no corresponding URI can be constructed. - * - * Since: 1.12 - */ - public string getUri(string mimeType); -} diff --git a/generated/gtkd/atk/StreamableContentT.d b/generated/gtkd/atk/StreamableContentT.d deleted file mode 100644 index e6e36a5bc..000000000 --- a/generated/gtkd/atk/StreamableContentT.d +++ /dev/null @@ -1,132 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.StreamableContentT; - -public import atk.c.functions; -public import atk.c.types; -public import glib.IOChannel; -public import glib.Str; -public import glib.c.functions; - - -/** - * An interface whereby an object allows its backing content to be - * streamed to clients. Typical implementors would be images or - * icons, HTML content, or multimedia display/rendering widgets. - * - * Negotiation of content type is allowed. Clients may examine the - * backing data and transform, convert, or parse the content in order - * to present it in an alternate form to end-users. - * - * The AtkStreamableContent interface is particularly useful for - * saving, printing, or post-processing entire documents, or for - * persisting alternate views of a document. If document content - * itself is being serialized, stored, or converted, then use of the - * AtkStreamableContent interface can help address performance - * issues. Unlike most ATK interfaces, this interface is not strongly - * tied to the current user-agent view of the a particular document, - * but may in some cases give access to the underlying model data. - */ -public template StreamableContentT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkStreamableContent* getStreamableContentStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkStreamableContent*)getStruct(); - } - - - /** - * Gets the character string of the specified mime type. The first mime - * type is at position 0, the second at position 1, and so on. - * - * Params: - * i = a gint representing the position of the mime type starting from 0 - * - * Returns: a gchar* representing the specified mime type; the caller - * should not free the character string. - */ - public string getMimeType(int i) - { - return Str.toString(atk_streamable_content_get_mime_type(getStreamableContentStruct(), i)); - } - - /** - * Gets the number of mime types supported by this object. - * - * Returns: a gint which is the number of mime types supported by the object. - */ - public int getNMimeTypes() - { - return atk_streamable_content_get_n_mime_types(getStreamableContentStruct()); - } - - /** - * Gets the content in the specified mime type. - * - * Params: - * mimeType = a gchar* representing the mime type - * - * Returns: A #GIOChannel which contains the content in the - * specified mime type. - */ - public IOChannel getStream(string mimeType) - { - auto __p = atk_streamable_content_get_stream(getStreamableContentStruct(), Str.toStringz(mimeType)); - - if(__p is null) - { - return null; - } - - return new IOChannel(cast(GIOChannel*) __p, true); - } - - /** - * Get a string representing a URI in IETF standard format - * (see http://www.ietf.org/rfc/rfc2396.txt) from which the object's content - * may be streamed in the specified mime-type, if one is available. - * If mime_type is NULL, the URI for the default (and possibly only) mime-type is - * returned. - * - * Note that it is possible for get_uri to return NULL but for - * get_stream to work nonetheless, since not all GIOChannels connect to URIs. - * - * Params: - * mimeType = a gchar* representing the mime type, or NULL to request a URI - * for the default mime type. - * - * Returns: Returns a string representing a URI, or %NULL - * if no corresponding URI can be constructed. - * - * Since: 1.12 - */ - public string getUri(string mimeType) - { - return Str.toString(atk_streamable_content_get_uri(getStreamableContentStruct(), Str.toStringz(mimeType))); - } -} diff --git a/generated/gtkd/atk/TableCellIF.d b/generated/gtkd/atk/TableCellIF.d deleted file mode 100644 index 88de81c6a..000000000 --- a/generated/gtkd/atk/TableCellIF.d +++ /dev/null @@ -1,135 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.TableCellIF; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import glib.PtrArray; -private import gobject.ObjectG; - - -/** - * Being #AtkTable a component which present elements ordered via rows - * and columns, an #AtkTableCell is the interface which each of those - * elements, so "cells" should implement. - * - * See also #AtkTable. - */ -public interface TableCellIF{ - /** Get the main Gtk struct */ - public AtkTableCell* getTableCellStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_table_cell_get_type(); - } - - /** - * Returns the column headers as an array of cell accessibles. - * - * Returns: a GPtrArray of AtkObjects - * representing the column header cells. - * - * Since: 2.12 - */ - public PtrArray getColumnHeaderCells(); - - /** - * Returns the number of columns occupied by this cell accessible. - * - * Returns: a gint representing the number of columns occupied by this cell, - * or 0 if the cell does not implement this method. - * - * Since: 2.12 - */ - public int getColumnSpan(); - - /** - * Retrieves the tabular position of this cell. - * - * Params: - * row = the row of the given cell. - * column = the column of the given cell. - * - * Returns: TRUE if successful; FALSE otherwise. - * - * Since: 2.12 - */ - public bool getPosition(out int row, out int column); - - /** - * Gets the row and column indexes and span of this cell accessible. - * - * Note: If the object does not implement this function, then, by default, atk - * will implement this function by calling get_row_span and get_column_span - * on the object. - * - * Params: - * row = the row index of the given cell. - * column = the column index of the given cell. - * rowSpan = the number of rows occupied by this cell. - * columnSpan = the number of columns occupied by this cell. - * - * Returns: TRUE if successful; FALSE otherwise. - * - * Since: 2.12 - */ - public bool getRowColumnSpan(out int row, out int column, out int rowSpan, out int columnSpan); - - /** - * Returns the row headers as an array of cell accessibles. - * - * Returns: a GPtrArray of AtkObjects - * representing the row header cells. - * - * Since: 2.12 - */ - public PtrArray getRowHeaderCells(); - - /** - * Returns the number of rows occupied by this cell accessible. - * - * Returns: a gint representing the number of rows occupied by this cell, - * or 0 if the cell does not implement this method. - * - * Since: 2.12 - */ - public int getRowSpan(); - - /** - * Returns a reference to the accessible of the containing table. - * - * Returns: the atk object for the containing table. - * - * Since: 2.12 - */ - public ObjectAtk getTable(); -} diff --git a/generated/gtkd/atk/TableCellT.d b/generated/gtkd/atk/TableCellT.d deleted file mode 100644 index c93bbb7d8..000000000 --- a/generated/gtkd/atk/TableCellT.d +++ /dev/null @@ -1,174 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.TableCellT; - -public import atk.ObjectAtk; -public import atk.c.functions; -public import atk.c.types; -public import glib.PtrArray; -public import gobject.ObjectG; - - -/** - * Being #AtkTable a component which present elements ordered via rows - * and columns, an #AtkTableCell is the interface which each of those - * elements, so "cells" should implement. - * - * See also #AtkTable. - */ -public template TableCellT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkTableCell* getTableCellStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkTableCell*)getStruct(); - } - - - /** - * Returns the column headers as an array of cell accessibles. - * - * Returns: a GPtrArray of AtkObjects - * representing the column header cells. - * - * Since: 2.12 - */ - public PtrArray getColumnHeaderCells() - { - auto __p = atk_table_cell_get_column_header_cells(getTableCellStruct()); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p, true); - } - - /** - * Returns the number of columns occupied by this cell accessible. - * - * Returns: a gint representing the number of columns occupied by this cell, - * or 0 if the cell does not implement this method. - * - * Since: 2.12 - */ - public int getColumnSpan() - { - return atk_table_cell_get_column_span(getTableCellStruct()); - } - - /** - * Retrieves the tabular position of this cell. - * - * Params: - * row = the row of the given cell. - * column = the column of the given cell. - * - * Returns: TRUE if successful; FALSE otherwise. - * - * Since: 2.12 - */ - public bool getPosition(out int row, out int column) - { - return atk_table_cell_get_position(getTableCellStruct(), &row, &column) != 0; - } - - /** - * Gets the row and column indexes and span of this cell accessible. - * - * Note: If the object does not implement this function, then, by default, atk - * will implement this function by calling get_row_span and get_column_span - * on the object. - * - * Params: - * row = the row index of the given cell. - * column = the column index of the given cell. - * rowSpan = the number of rows occupied by this cell. - * columnSpan = the number of columns occupied by this cell. - * - * Returns: TRUE if successful; FALSE otherwise. - * - * Since: 2.12 - */ - public bool getRowColumnSpan(out int row, out int column, out int rowSpan, out int columnSpan) - { - return atk_table_cell_get_row_column_span(getTableCellStruct(), &row, &column, &rowSpan, &columnSpan) != 0; - } - - /** - * Returns the row headers as an array of cell accessibles. - * - * Returns: a GPtrArray of AtkObjects - * representing the row header cells. - * - * Since: 2.12 - */ - public PtrArray getRowHeaderCells() - { - auto __p = atk_table_cell_get_row_header_cells(getTableCellStruct()); - - if(__p is null) - { - return null; - } - - return new PtrArray(cast(GPtrArray*) __p, true); - } - - /** - * Returns the number of rows occupied by this cell accessible. - * - * Returns: a gint representing the number of rows occupied by this cell, - * or 0 if the cell does not implement this method. - * - * Since: 2.12 - */ - public int getRowSpan() - { - return atk_table_cell_get_row_span(getTableCellStruct()); - } - - /** - * Returns a reference to the accessible of the containing table. - * - * Returns: the atk object for the containing table. - * - * Since: 2.12 - */ - public ObjectAtk getTable() - { - auto __p = atk_table_cell_get_table(getTableCellStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } -} diff --git a/generated/gtkd/atk/TableIF.d b/generated/gtkd/atk/TableIF.d deleted file mode 100644 index a671ac543..000000000 --- a/generated/gtkd/atk/TableIF.d +++ /dev/null @@ -1,461 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.TableIF; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #AtkTable should be implemented by components which present - * elements ordered via rows and columns. It may also be used to - * present tree-structured information if the nodes of the trees can - * be said to contain multiple "columns". Individual elements of an - * #AtkTable are typically referred to as "cells". Those cells should - * implement the interface #AtkTableCell, but #Atk doesn't require - * them to be direct children of the current #AtkTable. They can be - * grand-children, grand-grand-children etc. #AtkTable provides the - * API needed to get a individual cell based on the row and column - * numbers. - * - * Children of #AtkTable are frequently "lightweight" objects, that - * is, they may not have backing widgets in the host UI toolkit. They - * are therefore often transient. - * - * Since tables are often very complex, #AtkTable includes provision - * for offering simplified summary information, as well as row and - * column headers and captions. Headers and captions are #AtkObjects - * which may implement other interfaces (#AtkText, #AtkImage, etc.) as - * appropriate. #AtkTable summaries may themselves be (simplified) - * #AtkTables, etc. - * - * Note for implementors: in the past, #AtkTable required that all the - * cells should be direct children of #AtkTable, and provided some - * index based methods to request the cells. The practice showed that - * that forcing made #AtkTable implementation complex, and hard to - * expose other kind of children, like rows or captions. Right now, - * index-based methods are deprecated. - */ -public interface TableIF{ - /** Get the main Gtk struct */ - public AtkTable* getTableStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_table_get_type(); - } - - /** - * Adds the specified @column to the selection. - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the column was successfully added to - * the selection, or 0 if value does not implement this interface. - */ - public bool addColumnSelection(int column); - - /** - * Adds the specified @row to the selection. - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gboolean representing if row was successfully added to selection, - * or 0 if value does not implement this interface. - */ - public bool addRowSelection(int row); - - /** - * Gets the caption for the @table. - * - * Returns: a AtkObject* representing the - * table caption, or %NULL if value does not implement this interface. - */ - public ObjectAtk getCaption(); - - /** - * Gets a #gint representing the column at the specified @index_. - * - * Deprecated: Since 2.12. - * - * Params: - * index = a #gint representing an index in @table - * - * Returns: a gint representing the column at the specified index, - * or -1 if the table does not implement this method. - */ - public int getColumnAtIndex(int index); - - /** - * Gets the description text of the specified @column in the table - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gchar* representing the column description, or %NULL - * if value does not implement this interface. - */ - public string getColumnDescription(int column); - - /** - * Gets the number of columns occupied by the accessible object - * at the specified @row and @column in the @table. - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a gint representing the column extent at specified position, or 0 - * if value does not implement this interface. - */ - public int getColumnExtentAt(int row, int column); - - /** - * Gets the column header of a specified column in an accessible table. - * - * Params: - * column = a #gint representing a column in the table - * - * Returns: a AtkObject* representing the - * specified column header, or %NULL if value does not implement this - * interface. - */ - public ObjectAtk getColumnHeader(int column); - - /** - * Gets a #gint representing the index at the specified @row and - * @column. - * - * Deprecated: Since 2.12. Use atk_table_ref_at() in order to get the - * accessible that represents the cell at (@row, @column) - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a #gint representing the index at specified position. - * The value -1 is returned if the object at row,column is not a child - * of table or table does not implement this interface. - */ - public int getIndexAt(int row, int column); - - /** - * Gets the number of columns in the table. - * - * Returns: a gint representing the number of columns, or 0 - * if value does not implement this interface. - */ - public int getNColumns(); - - /** - * Gets the number of rows in the table. - * - * Returns: a gint representing the number of rows, or 0 - * if value does not implement this interface. - */ - public int getNRows(); - - /** - * Gets a #gint representing the row at the specified @index_. - * - * Deprecated: since 2.12. - * - * Params: - * index = a #gint representing an index in @table - * - * Returns: a gint representing the row at the specified index, - * or -1 if the table does not implement this method. - */ - public int getRowAtIndex(int index); - - /** - * Gets the description text of the specified row in the table - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gchar* representing the row description, or - * %NULL if value does not implement this interface. - */ - public string getRowDescription(int row); - - /** - * Gets the number of rows occupied by the accessible object - * at a specified @row and @column in the @table. - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a gint representing the row extent at specified position, or 0 - * if value does not implement this interface. - */ - public int getRowExtentAt(int row, int column); - - /** - * Gets the row header of a specified row in an accessible table. - * - * Params: - * row = a #gint representing a row in the table - * - * Returns: a AtkObject* representing the - * specified row header, or %NULL if value does not implement this - * interface. - */ - public ObjectAtk getRowHeader(int row); - - /** - * Gets the selected columns of the table by initializing **selected with - * the selected column numbers. This array should be freed by the caller. - * - * Params: - * selected = a #gint** that is to contain the selected columns numbers - * - * Returns: a gint representing the number of selected columns, - * or %0 if value does not implement this interface. - */ - public int getSelectedColumns(int** selected); - - /** - * Gets the selected rows of the table by initializing **selected with - * the selected row numbers. This array should be freed by the caller. - * - * Params: - * selected = a #gint** that is to contain the selected row numbers - * - * Returns: a gint representing the number of selected rows, - * or zero if value does not implement this interface. - */ - public int getSelectedRows(int** selected); - - /** - * Gets the summary description of the table. - * - * Returns: a AtkObject* representing a summary description - * of the table, or zero if value does not implement this interface. - */ - public ObjectAtk getSummary(); - - /** - * Gets a boolean value indicating whether the specified @column - * is selected - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the column is selected, or 0 - * if value does not implement this interface. - */ - public bool isColumnSelected(int column); - - /** - * Gets a boolean value indicating whether the specified @row - * is selected - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gboolean representing if the row is selected, or 0 - * if value does not implement this interface. - */ - public bool isRowSelected(int row); - - /** - * Gets a boolean value indicating whether the accessible object - * at the specified @row and @column is selected - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the cell is selected, or 0 - * if value does not implement this interface. - */ - public bool isSelected(int row, int column); - - /** - * Get a reference to the table cell at @row, @column. This cell - * should implement the interface #AtkTableCell - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: an #AtkObject representing the referred - * to accessible - */ - public ObjectAtk refAt(int row, int column); - - /** - * Adds the specified @column to the selection. - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the column was successfully removed from - * the selection, or 0 if value does not implement this interface. - */ - public bool removeColumnSelection(int column); - - /** - * Removes the specified @row from the selection. - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gboolean representing if the row was successfully removed from - * the selection, or 0 if value does not implement this interface. - */ - public bool removeRowSelection(int row); - - /** - * Sets the caption for the table. - * - * Params: - * caption = a #AtkObject representing the caption to set for @table - */ - public void setCaption(ObjectAtk caption); - - /** - * Sets the description text for the specified @column of the @table. - * - * Params: - * column = a #gint representing a column in @table - * description = a #gchar representing the description text - * to set for the specified @column of the @table - */ - public void setColumnDescription(int column, string description); - - /** - * Sets the specified column header to @header. - * - * Params: - * column = a #gint representing a column in @table - * header = an #AtkTable - */ - public void setColumnHeader(int column, ObjectAtk header); - - /** - * Sets the description text for the specified @row of @table. - * - * Params: - * row = a #gint representing a row in @table - * description = a #gchar representing the description text - * to set for the specified @row of @table - */ - public void setRowDescription(int row, string description); - - /** - * Sets the specified row header to @header. - * - * Params: - * row = a #gint representing a row in @table - * header = an #AtkTable - */ - public void setRowHeader(int row, ObjectAtk header); - - /** - * Sets the summary description of the table. - * - * Params: - * accessible = an #AtkObject representing the summary description - * to set for @table - */ - public void setSummary(ObjectAtk accessible); - - /** - * The "column-deleted" signal is emitted by an object which - * implements the AtkTable interface when a column is deleted. - * - * Params: - * arg1 = The index of the first column deleted. - * arg2 = The number of columns deleted. - */ - gulong addOnColumnDeleted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "column-inserted" signal is emitted by an object which - * implements the AtkTable interface when a column is inserted. - * - * Params: - * arg1 = The index of the column inserted. - * arg2 = The number of colums inserted. - */ - gulong addOnColumnInserted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "column-reordered" signal is emitted by an object which - * implements the AtkTable interface when the columns are - * reordered. - */ - gulong addOnColumnReordered(void delegate(TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "model-changed" signal is emitted by an object which - * implements the AtkTable interface when the model displayed by - * the table changes. - */ - gulong addOnModelChanged(void delegate(TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "row-deleted" signal is emitted by an object which - * implements the AtkTable interface when a row is deleted. - * - * Params: - * arg1 = The index of the first row deleted. - * arg2 = The number of rows deleted. - */ - gulong addOnRowDeleted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "row-inserted" signal is emitted by an object which - * implements the AtkTable interface when a row is inserted. - * - * Params: - * arg1 = The index of the first row inserted. - * arg2 = The number of rows inserted. - */ - gulong addOnRowInserted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "row-reordered" signal is emitted by an object which - * implements the AtkTable interface when the rows are - * reordered. - */ - gulong addOnRowReordered(void delegate(TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/atk/TableT.d b/generated/gtkd/atk/TableT.d deleted file mode 100644 index d2726266b..000000000 --- a/generated/gtkd/atk/TableT.d +++ /dev/null @@ -1,601 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.TableT; - -public import atk.ObjectAtk; -public import atk.c.functions; -public import atk.c.types; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #AtkTable should be implemented by components which present - * elements ordered via rows and columns. It may also be used to - * present tree-structured information if the nodes of the trees can - * be said to contain multiple "columns". Individual elements of an - * #AtkTable are typically referred to as "cells". Those cells should - * implement the interface #AtkTableCell, but #Atk doesn't require - * them to be direct children of the current #AtkTable. They can be - * grand-children, grand-grand-children etc. #AtkTable provides the - * API needed to get a individual cell based on the row and column - * numbers. - * - * Children of #AtkTable are frequently "lightweight" objects, that - * is, they may not have backing widgets in the host UI toolkit. They - * are therefore often transient. - * - * Since tables are often very complex, #AtkTable includes provision - * for offering simplified summary information, as well as row and - * column headers and captions. Headers and captions are #AtkObjects - * which may implement other interfaces (#AtkText, #AtkImage, etc.) as - * appropriate. #AtkTable summaries may themselves be (simplified) - * #AtkTables, etc. - * - * Note for implementors: in the past, #AtkTable required that all the - * cells should be direct children of #AtkTable, and provided some - * index based methods to request the cells. The practice showed that - * that forcing made #AtkTable implementation complex, and hard to - * expose other kind of children, like rows or captions. Right now, - * index-based methods are deprecated. - */ -public template TableT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkTable* getTableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkTable*)getStruct(); - } - - - /** - * Adds the specified @column to the selection. - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the column was successfully added to - * the selection, or 0 if value does not implement this interface. - */ - public bool addColumnSelection(int column) - { - return atk_table_add_column_selection(getTableStruct(), column) != 0; - } - - /** - * Adds the specified @row to the selection. - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gboolean representing if row was successfully added to selection, - * or 0 if value does not implement this interface. - */ - public bool addRowSelection(int row) - { - return atk_table_add_row_selection(getTableStruct(), row) != 0; - } - - /** - * Gets the caption for the @table. - * - * Returns: a AtkObject* representing the - * table caption, or %NULL if value does not implement this interface. - */ - public ObjectAtk getCaption() - { - auto __p = atk_table_get_caption(getTableStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets a #gint representing the column at the specified @index_. - * - * Deprecated: Since 2.12. - * - * Params: - * index = a #gint representing an index in @table - * - * Returns: a gint representing the column at the specified index, - * or -1 if the table does not implement this method. - */ - public int getColumnAtIndex(int index) - { - return atk_table_get_column_at_index(getTableStruct(), index); - } - - /** - * Gets the description text of the specified @column in the table - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gchar* representing the column description, or %NULL - * if value does not implement this interface. - */ - public string getColumnDescription(int column) - { - return Str.toString(atk_table_get_column_description(getTableStruct(), column)); - } - - /** - * Gets the number of columns occupied by the accessible object - * at the specified @row and @column in the @table. - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a gint representing the column extent at specified position, or 0 - * if value does not implement this interface. - */ - public int getColumnExtentAt(int row, int column) - { - return atk_table_get_column_extent_at(getTableStruct(), row, column); - } - - /** - * Gets the column header of a specified column in an accessible table. - * - * Params: - * column = a #gint representing a column in the table - * - * Returns: a AtkObject* representing the - * specified column header, or %NULL if value does not implement this - * interface. - */ - public ObjectAtk getColumnHeader(int column) - { - auto __p = atk_table_get_column_header(getTableStruct(), column); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets a #gint representing the index at the specified @row and - * @column. - * - * Deprecated: Since 2.12. Use atk_table_ref_at() in order to get the - * accessible that represents the cell at (@row, @column) - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a #gint representing the index at specified position. - * The value -1 is returned if the object at row,column is not a child - * of table or table does not implement this interface. - */ - public int getIndexAt(int row, int column) - { - return atk_table_get_index_at(getTableStruct(), row, column); - } - - /** - * Gets the number of columns in the table. - * - * Returns: a gint representing the number of columns, or 0 - * if value does not implement this interface. - */ - public int getNColumns() - { - return atk_table_get_n_columns(getTableStruct()); - } - - /** - * Gets the number of rows in the table. - * - * Returns: a gint representing the number of rows, or 0 - * if value does not implement this interface. - */ - public int getNRows() - { - return atk_table_get_n_rows(getTableStruct()); - } - - /** - * Gets a #gint representing the row at the specified @index_. - * - * Deprecated: since 2.12. - * - * Params: - * index = a #gint representing an index in @table - * - * Returns: a gint representing the row at the specified index, - * or -1 if the table does not implement this method. - */ - public int getRowAtIndex(int index) - { - return atk_table_get_row_at_index(getTableStruct(), index); - } - - /** - * Gets the description text of the specified row in the table - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gchar* representing the row description, or - * %NULL if value does not implement this interface. - */ - public string getRowDescription(int row) - { - return Str.toString(atk_table_get_row_description(getTableStruct(), row)); - } - - /** - * Gets the number of rows occupied by the accessible object - * at a specified @row and @column in the @table. - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a gint representing the row extent at specified position, or 0 - * if value does not implement this interface. - */ - public int getRowExtentAt(int row, int column) - { - return atk_table_get_row_extent_at(getTableStruct(), row, column); - } - - /** - * Gets the row header of a specified row in an accessible table. - * - * Params: - * row = a #gint representing a row in the table - * - * Returns: a AtkObject* representing the - * specified row header, or %NULL if value does not implement this - * interface. - */ - public ObjectAtk getRowHeader(int row) - { - auto __p = atk_table_get_row_header(getTableStruct(), row); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets the selected columns of the table by initializing **selected with - * the selected column numbers. This array should be freed by the caller. - * - * Params: - * selected = a #gint** that is to contain the selected columns numbers - * - * Returns: a gint representing the number of selected columns, - * or %0 if value does not implement this interface. - */ - public int getSelectedColumns(int** selected) - { - return atk_table_get_selected_columns(getTableStruct(), selected); - } - - /** - * Gets the selected rows of the table by initializing **selected with - * the selected row numbers. This array should be freed by the caller. - * - * Params: - * selected = a #gint** that is to contain the selected row numbers - * - * Returns: a gint representing the number of selected rows, - * or zero if value does not implement this interface. - */ - public int getSelectedRows(int** selected) - { - return atk_table_get_selected_rows(getTableStruct(), selected); - } - - /** - * Gets the summary description of the table. - * - * Returns: a AtkObject* representing a summary description - * of the table, or zero if value does not implement this interface. - */ - public ObjectAtk getSummary() - { - auto __p = atk_table_get_summary(getTableStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } - - /** - * Gets a boolean value indicating whether the specified @column - * is selected - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the column is selected, or 0 - * if value does not implement this interface. - */ - public bool isColumnSelected(int column) - { - return atk_table_is_column_selected(getTableStruct(), column) != 0; - } - - /** - * Gets a boolean value indicating whether the specified @row - * is selected - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gboolean representing if the row is selected, or 0 - * if value does not implement this interface. - */ - public bool isRowSelected(int row) - { - return atk_table_is_row_selected(getTableStruct(), row) != 0; - } - - /** - * Gets a boolean value indicating whether the accessible object - * at the specified @row and @column is selected - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the cell is selected, or 0 - * if value does not implement this interface. - */ - public bool isSelected(int row, int column) - { - return atk_table_is_selected(getTableStruct(), row, column) != 0; - } - - /** - * Get a reference to the table cell at @row, @column. This cell - * should implement the interface #AtkTableCell - * - * Params: - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * - * Returns: an #AtkObject representing the referred - * to accessible - */ - public ObjectAtk refAt(int row, int column) - { - auto __p = atk_table_ref_at(getTableStruct(), row, column); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p, true); - } - - /** - * Adds the specified @column to the selection. - * - * Params: - * column = a #gint representing a column in @table - * - * Returns: a gboolean representing if the column was successfully removed from - * the selection, or 0 if value does not implement this interface. - */ - public bool removeColumnSelection(int column) - { - return atk_table_remove_column_selection(getTableStruct(), column) != 0; - } - - /** - * Removes the specified @row from the selection. - * - * Params: - * row = a #gint representing a row in @table - * - * Returns: a gboolean representing if the row was successfully removed from - * the selection, or 0 if value does not implement this interface. - */ - public bool removeRowSelection(int row) - { - return atk_table_remove_row_selection(getTableStruct(), row) != 0; - } - - /** - * Sets the caption for the table. - * - * Params: - * caption = a #AtkObject representing the caption to set for @table - */ - public void setCaption(ObjectAtk caption) - { - atk_table_set_caption(getTableStruct(), (caption is null) ? null : caption.getObjectAtkStruct()); - } - - /** - * Sets the description text for the specified @column of the @table. - * - * Params: - * column = a #gint representing a column in @table - * description = a #gchar representing the description text - * to set for the specified @column of the @table - */ - public void setColumnDescription(int column, string description) - { - atk_table_set_column_description(getTableStruct(), column, Str.toStringz(description)); - } - - /** - * Sets the specified column header to @header. - * - * Params: - * column = a #gint representing a column in @table - * header = an #AtkTable - */ - public void setColumnHeader(int column, ObjectAtk header) - { - atk_table_set_column_header(getTableStruct(), column, (header is null) ? null : header.getObjectAtkStruct()); - } - - /** - * Sets the description text for the specified @row of @table. - * - * Params: - * row = a #gint representing a row in @table - * description = a #gchar representing the description text - * to set for the specified @row of @table - */ - public void setRowDescription(int row, string description) - { - atk_table_set_row_description(getTableStruct(), row, Str.toStringz(description)); - } - - /** - * Sets the specified row header to @header. - * - * Params: - * row = a #gint representing a row in @table - * header = an #AtkTable - */ - public void setRowHeader(int row, ObjectAtk header) - { - atk_table_set_row_header(getTableStruct(), row, (header is null) ? null : header.getObjectAtkStruct()); - } - - /** - * Sets the summary description of the table. - * - * Params: - * accessible = an #AtkObject representing the summary description - * to set for @table - */ - public void setSummary(ObjectAtk accessible) - { - atk_table_set_summary(getTableStruct(), (accessible is null) ? null : accessible.getObjectAtkStruct()); - } - - /** - * The "column-deleted" signal is emitted by an object which - * implements the AtkTable interface when a column is deleted. - * - * Params: - * arg1 = The index of the first column deleted. - * arg2 = The number of columns deleted. - */ - gulong addOnColumnDeleted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "column-deleted", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "column-inserted" signal is emitted by an object which - * implements the AtkTable interface when a column is inserted. - * - * Params: - * arg1 = The index of the column inserted. - * arg2 = The number of colums inserted. - */ - gulong addOnColumnInserted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "column-inserted", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "column-reordered" signal is emitted by an object which - * implements the AtkTable interface when the columns are - * reordered. - */ - gulong addOnColumnReordered(void delegate(TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "column-reordered", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "model-changed" signal is emitted by an object which - * implements the AtkTable interface when the model displayed by - * the table changes. - */ - gulong addOnModelChanged(void delegate(TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "model-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "row-deleted" signal is emitted by an object which - * implements the AtkTable interface when a row is deleted. - * - * Params: - * arg1 = The index of the first row deleted. - * arg2 = The number of rows deleted. - */ - gulong addOnRowDeleted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "row-deleted", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "row-inserted" signal is emitted by an object which - * implements the AtkTable interface when a row is inserted. - * - * Params: - * arg1 = The index of the first row inserted. - * arg2 = The number of rows inserted. - */ - gulong addOnRowInserted(void delegate(int, int, TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "row-inserted", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "row-reordered" signal is emitted by an object which - * implements the AtkTable interface when the rows are - * reordered. - */ - gulong addOnRowReordered(void delegate(TableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "row-reordered", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/TextIF.d b/generated/gtkd/atk/TextIF.d deleted file mode 100644 index f550edb78..000000000 --- a/generated/gtkd/atk/TextIF.d +++ /dev/null @@ -1,618 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.TextIF; - -private import atk.TextRange; -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #AtkText should be implemented by #AtkObjects on behalf of widgets - * that have text content which is either attributed or otherwise - * non-trivial. #AtkObjects whose text content is simple, - * unattributed, and very brief may expose that content via - * #atk_object_get_name instead; however if the text is editable, - * multi-line, typically longer than three or four words, attributed, - * selectable, or if the object already uses the 'name' ATK property - * for other information, the #AtkText interface should be used to - * expose the text content. In the case of editable text content, - * #AtkEditableText (a subtype of the #AtkText interface) should be - * implemented instead. - * - * #AtkText provides not only traversal facilities and change - * notification for text content, but also caret tracking and glyph - * bounding box calculations. Note that the text strings are exposed - * as UTF-8, and are therefore potentially multi-byte, and - * caret-to-byte offset mapping makes no assumptions about the - * character length; also bounding box glyph-to-offset mapping may be - * complex for languages which use ligatures. - */ -public interface TextIF{ - /** Get the main Gtk struct */ - public AtkText* getTextStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_text_get_type(); - } - - /** - * Frees the memory associated with an array of AtkTextRange. It is assumed - * that the array was returned by the function atk_text_get_bounded_ranges - * and is NULL terminated. - * - * Params: - * ranges = A pointer to an array of #AtkTextRange which is - * to be freed. - * - * Since: 1.3 - */ - public static void freeRanges(TextRange[] ranges) - { - AtkTextRange*[] rangesArray = new AtkTextRange*[ranges.length]; - for ( int i = 0; i < ranges.length; i++ ) - { - rangesArray[i] = ranges[i].getTextRangeStruct(); - } - - atk_text_free_ranges(rangesArray.ptr); - } - - /** - * Adds a selection bounded by the specified offsets. - * - * Params: - * startOffset = the starting character offset of the selected region - * endOffset = the offset of the first character after the selected region. - * - * Returns: %TRUE if successful, %FALSE otherwise - */ - public bool addSelection(int startOffset, int endOffset); - - /** - * Get the ranges of text in the specified bounding box. - * - * Params: - * rect = An AtkTextRectangle giving the dimensions of the bounding box. - * coordType = Specify whether coordinates are relative to the screen or widget window. - * xClipType = Specify the horizontal clip type. - * yClipType = Specify the vertical clip type. - * - * Returns: Array of AtkTextRange. The last - * element of the array returned by this function will be NULL. - * - * Since: 1.3 - */ - public TextRange[] getBoundedRanges(AtkTextRectangle* rect, AtkCoordType coordType, AtkTextClipType xClipType, AtkTextClipType yClipType); - - /** - * Gets the offset of the position of the caret (cursor). - * - * Returns: the character offset of the position of the caret or -1 if - * the caret is not located inside the element or in the case of - * any other failure. - */ - public int getCaretOffset(); - - /** - * Gets the specified text. - * - * Params: - * offset = a character offset within @text - * - * Returns: the character at @offset or 0 in the case of failure. - */ - public dchar getCharacterAtOffset(int offset); - - /** - * Gets the character count. - * - * Returns: the number of characters or -1 in case of failure. - */ - public int getCharacterCount(); - - /** - * If the extent can not be obtained (e.g. missing support), all of x, y, width, - * height are set to -1. - * - * Get the bounding box containing the glyph representing the character at - * a particular text offset. - * - * Params: - * offset = The offset of the text character for which bounding information is required. - * x = Pointer for the x coordinate of the bounding box - * y = Pointer for the y coordinate of the bounding box - * width = Pointer for the width of the bounding box - * height = Pointer for the height of the bounding box - * coords = specify whether coordinates are relative to the screen or widget window - */ - public void getCharacterExtents(int offset, out int x, out int y, out int width, out int height, AtkCoordType coords); - - /** - * Creates an #AtkAttributeSet which consists of the default values of - * attributes for the text. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * - * Returns: an #AtkAttributeSet which contains the default text - * attributes for this #AtkText. This #AtkAttributeSet should be freed by - * a call to atk_attribute_set_free(). - */ - public AtkAttributeSet* getDefaultAttributes(); - - /** - * Gets the number of selected regions. - * - * Returns: The number of selected regions, or -1 in the case of failure. - */ - public int getNSelections(); - - /** - * Gets the offset of the character located at coordinates @x and @y. @x and @y - * are interpreted as being relative to the screen or this widget's window - * depending on @coords. - * - * Params: - * x = screen x-position of character - * y = screen y-position of character - * coords = specify whether coordinates are relative to the screen or - * widget window - * - * Returns: the offset to the character which is located at the specified - * @x and @y coordinates of -1 in case of failure. - */ - public int getOffsetAtPoint(int x, int y, AtkCoordType coords); - - /** - * Get the bounding box for text within the specified range. - * - * If the extents can not be obtained (e.g. or missing support), the rectangle - * fields are set to -1. - * - * Params: - * startOffset = The offset of the first text character for which boundary - * information is required. - * endOffset = The offset of the text character after the last character - * for which boundary information is required. - * coordType = Specify whether coordinates are relative to the screen or widget window. - * rect = A pointer to a AtkTextRectangle which is filled in by this function. - * - * Since: 1.3 - */ - public void getRangeExtents(int startOffset, int endOffset, AtkCoordType coordType, out AtkTextRectangle rect); - - /** - * Creates an #AtkAttributeSet which consists of the attributes explicitly - * set at the position @offset in the text. @start_offset and @end_offset are - * set to the start and end of the range around @offset where the attributes are - * invariant. Note that @end_offset is the offset of the first character - * after the range. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * - * Params: - * offset = the character offset at which to get the attributes, -1 means the offset of - * the character to be inserted at the caret location. - * startOffset = the address to put the start offset of the range - * endOffset = the address to put the end offset of the range - * - * Returns: an #AtkAttributeSet which contains the attributes - * explicitly set at @offset. This #AtkAttributeSet should be freed by - * a call to atk_attribute_set_free(). - */ - public AtkAttributeSet* getRunAttributes(int offset, out int startOffset, out int endOffset); - - /** - * Gets the text from the specified selection. - * - * Params: - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * startOffset = passes back the starting character offset of the selected region - * endOffset = passes back the ending character offset (offset immediately past) - * of the selected region - * - * Returns: a newly allocated string containing the selected text. Use g_free() - * to free the returned string. - */ - public string getSelection(int selectionNum, out int startOffset, out int endOffset); - - /** - * Gets a portion of the text exposed through an #AtkText according to a given @offset - * and a specific @granularity, along with the start and end offsets defining the - * boundaries of such a portion of text. - * - * If @granularity is ATK_TEXT_GRANULARITY_CHAR the character at the - * offset is returned. - * - * If @granularity is ATK_TEXT_GRANULARITY_WORD the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If @granularity is ATK_TEXT_GRANULARITY_SENTENCE the returned string - * is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If @granularity is ATK_TEXT_GRANULARITY_LINE the returned string - * is from the line start at or before the offset to the line - * start after the offset. - * - * If @granularity is ATK_TEXT_GRANULARITY_PARAGRAPH the returned string - * is from the start of the paragraph at or before the offset to the start - * of the following paragraph after the offset. - * - * Params: - * offset = position - * granularity = An #AtkTextGranularity - * startOffset = the starting character offset of the returned string, or -1 - * in the case of error (e.g. invalid offset, not implemented) - * endOffset = the offset of the first character after the returned string, - * or -1 in the case of error (e.g. invalid offset, not implemented) - * - * Returns: a newly allocated string containing the text at - * the @offset bounded by the specified @granularity. Use g_free() - * to free the returned string. Returns %NULL if the offset is invalid - * or no implementation is available. - * - * Since: 2.10 - */ - public string getStringAtOffset(int offset, AtkTextGranularity granularity, out int startOffset, out int endOffset); - - /** - * Gets the specified text. - * - * Params: - * startOffset = a starting character offset within @text - * endOffset = an ending character offset within @text, or -1 for the end of the string. - * - * Returns: a newly allocated string containing the text from @start_offset up - * to, but not including @end_offset. Use g_free() to free the returned - * string. - */ - public string getText(int startOffset, int endOffset); - - /** - * Gets the specified text. - * - * Deprecated: Please use atk_text_get_string_at_offset() instead. - * - * Params: - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * - * Returns: a newly allocated string containing the text after @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - public string getTextAfterOffset(int offset, AtkTextBoundary boundaryType, out int startOffset, out int endOffset); - - /** - * Gets the specified text. - * - * If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the - * offset is returned. - * - * If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned - * string is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned - * string is from the line start at or before the offset to the line - * start after the offset. - * - * Deprecated: This method is deprecated since ATK version - * 2.9.4. Please use atk_text_get_string_at_offset() instead. - * - * Params: - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * - * Returns: a newly allocated string containing the text at @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - public string getTextAtOffset(int offset, AtkTextBoundary boundaryType, out int startOffset, out int endOffset); - - /** - * Gets the specified text. - * - * Deprecated: Please use atk_text_get_string_at_offset() instead. - * - * Params: - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * - * Returns: a newly allocated string containing the text before @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - public string getTextBeforeOffset(int offset, AtkTextBoundary boundaryType, out int startOffset, out int endOffset); - - /** - * Removes the specified selection. - * - * Params: - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * - * Returns: %TRUE if successful, %FALSE otherwise - */ - public bool removeSelection(int selectionNum); - - /** - * Makes a substring of @text visible on the screen by scrolling all necessary parents. - * - * Params: - * startOffset = start offset in the @text - * endOffset = end offset in the @text, or -1 for the end of the text. - * type = specify where the object should be made visible. - * - * Returns: whether scrolling was successful. - * - * Since: 2.32 - */ - public bool scrollSubstringTo(int startOffset, int endOffset, AtkScrollType type); - - /** - * Move the top-left of a substring of @text to a given position of the screen - * by scrolling all necessary parents. - * - * Params: - * startOffset = start offset in the @text - * endOffset = end offset in the @text, or -1 for the end of the text. - * coords = specify whether coordinates are relative to the screen or to the - * parent object. - * x = x-position where to scroll to - * y = y-position where to scroll to - * - * Returns: whether scrolling was successful. - * - * Since: 2.32 - */ - public bool scrollSubstringToPoint(int startOffset, int endOffset, AtkCoordType coords, int x, int y); - - /** - * Sets the caret (cursor) position to the specified @offset. - * - * In the case of rich-text content, this method should either grab focus - * or move the sequential focus navigation starting point (if the application - * supports this concept) as if the user had clicked on the new caret position. - * Typically, this means that the target of this operation is the node containing - * the new caret position or one of its ancestors. In other words, after this - * method is called, if the user advances focus, it should move to the first - * focusable node following the new caret position. - * - * Calling this method should also scroll the application viewport in a way - * that matches the behavior of the application's typical caret motion or tab - * navigation as closely as possible. This also means that if the application's - * caret motion or focus navigation does not trigger a scroll operation, this - * method should not trigger one either. If the application does not have a caret - * motion or focus navigation operation, this method should try to scroll the new - * caret position into view while minimizing unnecessary scroll motion. - * - * Params: - * offset = the character offset of the new caret position - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool setCaretOffset(int offset); - - /** - * Changes the start and end offset of the specified selection. - * - * Params: - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * startOffset = the new starting character offset of the selection - * endOffset = the new end position of (e.g. offset immediately past) - * the selection - * - * Returns: %TRUE if successful, %FALSE otherwise - */ - public bool setSelection(int selectionNum, int startOffset, int endOffset); - - /** - * The "text-attributes-changed" signal is emitted when the text - * attributes of the text of an object which implements AtkText - * changes. - */ - gulong addOnTextAttributesChanged(void delegate(TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "text-caret-moved" signal is emitted when the caret - * position of the text of an object which implements AtkText - * changes. - * - * Params: - * arg1 = The new position of the text caret. - */ - gulong addOnTextCaretMoved(void delegate(int, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "text-changed" signal is emitted when the text of the - * object which implements the AtkText interface changes, This - * signal will have a detail which is either "insert" or - * "delete" which identifies whether the text change was an - * insertion or a deletion. - * - * Deprecated: Use #AtkObject::text-insert or - * #AtkObject::text-remove instead. - * - * Params: - * arg1 = The position (character offset) of the insertion or deletion. - * arg2 = The length (in characters) of text inserted or deleted. - */ - gulong addOnTextChanged(void delegate(int, int, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "text-insert" signal is emitted when a new text is - * inserted. If the signal was not triggered by the user - * (e.g. typing or pasting text), the "system" detail should be - * included. - * - * Params: - * arg1 = The position (character offset) of the insertion. - * arg2 = The length (in characters) of text inserted. - * arg3 = The new text inserted - */ - gulong addOnTextInsert(void delegate(int, int, string, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "text-remove" signal is emitted when a new text is - * removed. If the signal was not triggered by the user - * (e.g. typing or pasting text), the "system" detail should be - * included. - * - * Params: - * arg1 = The position (character offset) of the removal. - * arg2 = The length (in characters) of text removed. - * arg3 = The old text removed - */ - gulong addOnTextRemove(void delegate(int, int, string, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The "text-selection-changed" signal is emitted when the - * selected text of an object which implements AtkText changes. - */ - gulong addOnTextSelectionChanged(void delegate(TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Frees the memory used by an #AtkAttributeSet, including all its - * #AtkAttributes. - * - * Params: - * attribSet = The #AtkAttributeSet to free - */ - public static void attributeSetFree(AtkAttributeSet* attribSet) - { - atk_attribute_set_free(attribSet); - } - - /** - * Get the #AtkTextAttribute type corresponding to a text attribute name. - * - * Params: - * name = a string which is the (non-localized) name of an ATK text attribute. - * - * Returns: the #AtkTextAttribute enumerated type corresponding to the specified - * name, or #ATK_TEXT_ATTRIBUTE_INVALID if no matching text attribute - * is found. - */ - public static AtkTextAttribute attributeForName(string name) - { - return atk_text_attribute_for_name(Str.toStringz(name)); - } - - /** - * Gets the name corresponding to the #AtkTextAttribute - * - * Params: - * attr = The #AtkTextAttribute whose name is required - * - * Returns: a string containing the name; this string should not be freed - */ - public static string attributeGetName(AtkTextAttribute attr) - { - return Str.toString(atk_text_attribute_get_name(attr)); - } - - /** - * Gets the value for the index of the #AtkTextAttribute - * - * Params: - * attr = The #AtkTextAttribute for which a value is required - * index = The index of the required value - * - * Returns: a string containing the value; this string - * should not be freed; %NULL is returned if there are no values - * maintained for the attr value. - */ - public static string attributeGetValue(AtkTextAttribute attr, int index) - { - return Str.toString(atk_text_attribute_get_value(attr, index)); - } - - /** - * Associate @name with a new #AtkTextAttribute - * - * Params: - * name = a name string - * - * Returns: an #AtkTextAttribute associated with @name - */ - public static AtkTextAttribute attributeRegister(string name) - { - return atk_text_attribute_register(Str.toStringz(name)); - } -} diff --git a/generated/gtkd/atk/TextRange.d b/generated/gtkd/atk/TextRange.d deleted file mode 100644 index bfe2f665f..000000000 --- a/generated/gtkd/atk/TextRange.d +++ /dev/null @@ -1,135 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.TextRange; - -private import atk.c.functions; -public import atk.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gtkd.Loader; - - -/** - * A structure used to describe a text range. - */ -public final class TextRange -{ - /** the main Gtk struct */ - protected AtkTextRange* atkTextRange; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public AtkTextRange* getTextRangeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return atkTextRange; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)atkTextRange; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (AtkTextRange* atkTextRange, bool ownedRef = false) - { - this.atkTextRange = atkTextRange; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_ATK) && ownedRef ) - sliceFree(atkTextRange); - } - - - /** - * A rectangle giving the bounds of the text range - */ - public @property AtkTextRectangle bounds() - { - return atkTextRange.bounds; - } - - /** Ditto */ - public @property void bounds(AtkTextRectangle value) - { - atkTextRange.bounds = value; - } - - /** - * The start offset of a AtkTextRange - */ - public @property int startOffset() - { - return atkTextRange.startOffset; - } - - /** Ditto */ - public @property void startOffset(int value) - { - atkTextRange.startOffset = value; - } - - /** - * The end offset of a AtkTextRange - */ - public @property int endOffset() - { - return atkTextRange.endOffset; - } - - /** Ditto */ - public @property void endOffset(int value) - { - atkTextRange.endOffset = value; - } - - /** - * The text in the text range - */ - public @property string content() - { - return Str.toString(atkTextRange.content); - } - - /** Ditto */ - public @property void content(string value) - { - atkTextRange.content = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return atk_text_range_get_type(); - } -} diff --git a/generated/gtkd/atk/TextT.d b/generated/gtkd/atk/TextT.d deleted file mode 100644 index 77c9af4e8..000000000 --- a/generated/gtkd/atk/TextT.d +++ /dev/null @@ -1,639 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.TextT; - -public import atk.TextRange; -public import atk.c.functions; -public import atk.c.types; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #AtkText should be implemented by #AtkObjects on behalf of widgets - * that have text content which is either attributed or otherwise - * non-trivial. #AtkObjects whose text content is simple, - * unattributed, and very brief may expose that content via - * #atk_object_get_name instead; however if the text is editable, - * multi-line, typically longer than three or four words, attributed, - * selectable, or if the object already uses the 'name' ATK property - * for other information, the #AtkText interface should be used to - * expose the text content. In the case of editable text content, - * #AtkEditableText (a subtype of the #AtkText interface) should be - * implemented instead. - * - * #AtkText provides not only traversal facilities and change - * notification for text content, but also caret tracking and glyph - * bounding box calculations. Note that the text strings are exposed - * as UTF-8, and are therefore potentially multi-byte, and - * caret-to-byte offset mapping makes no assumptions about the - * character length; also bounding box glyph-to-offset mapping may be - * complex for languages which use ligatures. - */ -public template TextT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkText* getTextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkText*)getStruct(); - } - - - /** - * Adds a selection bounded by the specified offsets. - * - * Params: - * startOffset = the starting character offset of the selected region - * endOffset = the offset of the first character after the selected region. - * - * Returns: %TRUE if successful, %FALSE otherwise - */ - public bool addSelection(int startOffset, int endOffset) - { - return atk_text_add_selection(getTextStruct(), startOffset, endOffset) != 0; - } - - /** - * Get the ranges of text in the specified bounding box. - * - * Params: - * rect = An AtkTextRectangle giving the dimensions of the bounding box. - * coordType = Specify whether coordinates are relative to the screen or widget window. - * xClipType = Specify the horizontal clip type. - * yClipType = Specify the vertical clip type. - * - * Returns: Array of AtkTextRange. The last - * element of the array returned by this function will be NULL. - * - * Since: 1.3 - */ - public TextRange[] getBoundedRanges(AtkTextRectangle* rect, AtkCoordType coordType, AtkTextClipType xClipType, AtkTextClipType yClipType) - { - auto __p = atk_text_get_bounded_ranges(getTextStruct(), rect, coordType, xClipType, yClipType); - - if(__p is null) - { - return null; - } - - TextRange[] arr = new TextRange[getArrayLength(__p)]; - for(int i = 0; i < getArrayLength(__p); i++) - { - arr[i] = ObjectG.getDObject!(TextRange)(cast(AtkTextRange*) __p[i]); - } - - return arr; - } - - /** - * Gets the offset of the position of the caret (cursor). - * - * Returns: the character offset of the position of the caret or -1 if - * the caret is not located inside the element or in the case of - * any other failure. - */ - public int getCaretOffset() - { - return atk_text_get_caret_offset(getTextStruct()); - } - - /** - * Gets the specified text. - * - * Params: - * offset = a character offset within @text - * - * Returns: the character at @offset or 0 in the case of failure. - */ - public dchar getCharacterAtOffset(int offset) - { - return atk_text_get_character_at_offset(getTextStruct(), offset); - } - - /** - * Gets the character count. - * - * Returns: the number of characters or -1 in case of failure. - */ - public int getCharacterCount() - { - return atk_text_get_character_count(getTextStruct()); - } - - /** - * If the extent can not be obtained (e.g. missing support), all of x, y, width, - * height are set to -1. - * - * Get the bounding box containing the glyph representing the character at - * a particular text offset. - * - * Params: - * offset = The offset of the text character for which bounding information is required. - * x = Pointer for the x coordinate of the bounding box - * y = Pointer for the y coordinate of the bounding box - * width = Pointer for the width of the bounding box - * height = Pointer for the height of the bounding box - * coords = specify whether coordinates are relative to the screen or widget window - */ - public void getCharacterExtents(int offset, out int x, out int y, out int width, out int height, AtkCoordType coords) - { - atk_text_get_character_extents(getTextStruct(), offset, &x, &y, &width, &height, coords); - } - - /** - * Creates an #AtkAttributeSet which consists of the default values of - * attributes for the text. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * - * Returns: an #AtkAttributeSet which contains the default text - * attributes for this #AtkText. This #AtkAttributeSet should be freed by - * a call to atk_attribute_set_free(). - */ - public AtkAttributeSet* getDefaultAttributes() - { - return atk_text_get_default_attributes(getTextStruct()); - } - - /** - * Gets the number of selected regions. - * - * Returns: The number of selected regions, or -1 in the case of failure. - */ - public int getNSelections() - { - return atk_text_get_n_selections(getTextStruct()); - } - - /** - * Gets the offset of the character located at coordinates @x and @y. @x and @y - * are interpreted as being relative to the screen or this widget's window - * depending on @coords. - * - * Params: - * x = screen x-position of character - * y = screen y-position of character - * coords = specify whether coordinates are relative to the screen or - * widget window - * - * Returns: the offset to the character which is located at the specified - * @x and @y coordinates of -1 in case of failure. - */ - public int getOffsetAtPoint(int x, int y, AtkCoordType coords) - { - return atk_text_get_offset_at_point(getTextStruct(), x, y, coords); - } - - /** - * Get the bounding box for text within the specified range. - * - * If the extents can not be obtained (e.g. or missing support), the rectangle - * fields are set to -1. - * - * Params: - * startOffset = The offset of the first text character for which boundary - * information is required. - * endOffset = The offset of the text character after the last character - * for which boundary information is required. - * coordType = Specify whether coordinates are relative to the screen or widget window. - * rect = A pointer to a AtkTextRectangle which is filled in by this function. - * - * Since: 1.3 - */ - public void getRangeExtents(int startOffset, int endOffset, AtkCoordType coordType, out AtkTextRectangle rect) - { - atk_text_get_range_extents(getTextStruct(), startOffset, endOffset, coordType, &rect); - } - - /** - * Creates an #AtkAttributeSet which consists of the attributes explicitly - * set at the position @offset in the text. @start_offset and @end_offset are - * set to the start and end of the range around @offset where the attributes are - * invariant. Note that @end_offset is the offset of the first character - * after the range. See the enum AtkTextAttribute for types of text - * attributes that can be returned. Note that other attributes may also be - * returned. - * - * Params: - * offset = the character offset at which to get the attributes, -1 means the offset of - * the character to be inserted at the caret location. - * startOffset = the address to put the start offset of the range - * endOffset = the address to put the end offset of the range - * - * Returns: an #AtkAttributeSet which contains the attributes - * explicitly set at @offset. This #AtkAttributeSet should be freed by - * a call to atk_attribute_set_free(). - */ - public AtkAttributeSet* getRunAttributes(int offset, out int startOffset, out int endOffset) - { - return atk_text_get_run_attributes(getTextStruct(), offset, &startOffset, &endOffset); - } - - /** - * Gets the text from the specified selection. - * - * Params: - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * startOffset = passes back the starting character offset of the selected region - * endOffset = passes back the ending character offset (offset immediately past) - * of the selected region - * - * Returns: a newly allocated string containing the selected text. Use g_free() - * to free the returned string. - */ - public string getSelection(int selectionNum, out int startOffset, out int endOffset) - { - auto retStr = atk_text_get_selection(getTextStruct(), selectionNum, &startOffset, &endOffset); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets a portion of the text exposed through an #AtkText according to a given @offset - * and a specific @granularity, along with the start and end offsets defining the - * boundaries of such a portion of text. - * - * If @granularity is ATK_TEXT_GRANULARITY_CHAR the character at the - * offset is returned. - * - * If @granularity is ATK_TEXT_GRANULARITY_WORD the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If @granularity is ATK_TEXT_GRANULARITY_SENTENCE the returned string - * is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If @granularity is ATK_TEXT_GRANULARITY_LINE the returned string - * is from the line start at or before the offset to the line - * start after the offset. - * - * If @granularity is ATK_TEXT_GRANULARITY_PARAGRAPH the returned string - * is from the start of the paragraph at or before the offset to the start - * of the following paragraph after the offset. - * - * Params: - * offset = position - * granularity = An #AtkTextGranularity - * startOffset = the starting character offset of the returned string, or -1 - * in the case of error (e.g. invalid offset, not implemented) - * endOffset = the offset of the first character after the returned string, - * or -1 in the case of error (e.g. invalid offset, not implemented) - * - * Returns: a newly allocated string containing the text at - * the @offset bounded by the specified @granularity. Use g_free() - * to free the returned string. Returns %NULL if the offset is invalid - * or no implementation is available. - * - * Since: 2.10 - */ - public string getStringAtOffset(int offset, AtkTextGranularity granularity, out int startOffset, out int endOffset) - { - auto retStr = atk_text_get_string_at_offset(getTextStruct(), offset, granularity, &startOffset, &endOffset); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the specified text. - * - * Params: - * startOffset = a starting character offset within @text - * endOffset = an ending character offset within @text, or -1 for the end of the string. - * - * Returns: a newly allocated string containing the text from @start_offset up - * to, but not including @end_offset. Use g_free() to free the returned - * string. - */ - public string getText(int startOffset, int endOffset) - { - auto retStr = atk_text_get_text(getTextStruct(), startOffset, endOffset); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the specified text. - * - * Deprecated: Please use atk_text_get_string_at_offset() instead. - * - * Params: - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * - * Returns: a newly allocated string containing the text after @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - public string getTextAfterOffset(int offset, AtkTextBoundary boundaryType, out int startOffset, out int endOffset) - { - auto retStr = atk_text_get_text_after_offset(getTextStruct(), offset, boundaryType, &startOffset, &endOffset); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the specified text. - * - * If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the - * offset is returned. - * - * If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string - * is from the word start at or before the offset to the word start after - * the offset. - * - * The returned string will contain the word at the offset if the offset - * is inside a word and will contain the word before the offset if the - * offset is not inside a word. - * - * If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned - * string is from the sentence start at or before the offset to the sentence - * start after the offset. - * - * The returned string will contain the sentence at the offset if the offset - * is inside a sentence and will contain the sentence before the offset - * if the offset is not inside a sentence. - * - * If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned - * string is from the line start at or before the offset to the line - * start after the offset. - * - * Deprecated: This method is deprecated since ATK version - * 2.9.4. Please use atk_text_get_string_at_offset() instead. - * - * Params: - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * - * Returns: a newly allocated string containing the text at @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - public string getTextAtOffset(int offset, AtkTextBoundary boundaryType, out int startOffset, out int endOffset) - { - auto retStr = atk_text_get_text_at_offset(getTextStruct(), offset, boundaryType, &startOffset, &endOffset); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the specified text. - * - * Deprecated: Please use atk_text_get_string_at_offset() instead. - * - * Params: - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * - * Returns: a newly allocated string containing the text before @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - public string getTextBeforeOffset(int offset, AtkTextBoundary boundaryType, out int startOffset, out int endOffset) - { - auto retStr = atk_text_get_text_before_offset(getTextStruct(), offset, boundaryType, &startOffset, &endOffset); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Removes the specified selection. - * - * Params: - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * - * Returns: %TRUE if successful, %FALSE otherwise - */ - public bool removeSelection(int selectionNum) - { - return atk_text_remove_selection(getTextStruct(), selectionNum) != 0; - } - - /** - * Makes a substring of @text visible on the screen by scrolling all necessary parents. - * - * Params: - * startOffset = start offset in the @text - * endOffset = end offset in the @text, or -1 for the end of the text. - * type = specify where the object should be made visible. - * - * Returns: whether scrolling was successful. - * - * Since: 2.32 - */ - public bool scrollSubstringTo(int startOffset, int endOffset, AtkScrollType type) - { - return atk_text_scroll_substring_to(getTextStruct(), startOffset, endOffset, type) != 0; - } - - /** - * Move the top-left of a substring of @text to a given position of the screen - * by scrolling all necessary parents. - * - * Params: - * startOffset = start offset in the @text - * endOffset = end offset in the @text, or -1 for the end of the text. - * coords = specify whether coordinates are relative to the screen or to the - * parent object. - * x = x-position where to scroll to - * y = y-position where to scroll to - * - * Returns: whether scrolling was successful. - * - * Since: 2.32 - */ - public bool scrollSubstringToPoint(int startOffset, int endOffset, AtkCoordType coords, int x, int y) - { - return atk_text_scroll_substring_to_point(getTextStruct(), startOffset, endOffset, coords, x, y) != 0; - } - - /** - * Sets the caret (cursor) position to the specified @offset. - * - * In the case of rich-text content, this method should either grab focus - * or move the sequential focus navigation starting point (if the application - * supports this concept) as if the user had clicked on the new caret position. - * Typically, this means that the target of this operation is the node containing - * the new caret position or one of its ancestors. In other words, after this - * method is called, if the user advances focus, it should move to the first - * focusable node following the new caret position. - * - * Calling this method should also scroll the application viewport in a way - * that matches the behavior of the application's typical caret motion or tab - * navigation as closely as possible. This also means that if the application's - * caret motion or focus navigation does not trigger a scroll operation, this - * method should not trigger one either. If the application does not have a caret - * motion or focus navigation operation, this method should try to scroll the new - * caret position into view while minimizing unnecessary scroll motion. - * - * Params: - * offset = the character offset of the new caret position - * - * Returns: %TRUE if successful, %FALSE otherwise. - */ - public bool setCaretOffset(int offset) - { - return atk_text_set_caret_offset(getTextStruct(), offset) != 0; - } - - /** - * Changes the start and end offset of the specified selection. - * - * Params: - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * startOffset = the new starting character offset of the selection - * endOffset = the new end position of (e.g. offset immediately past) - * the selection - * - * Returns: %TRUE if successful, %FALSE otherwise - */ - public bool setSelection(int selectionNum, int startOffset, int endOffset) - { - return atk_text_set_selection(getTextStruct(), selectionNum, startOffset, endOffset) != 0; - } - - /** - * The "text-attributes-changed" signal is emitted when the text - * attributes of the text of an object which implements AtkText - * changes. - */ - gulong addOnTextAttributesChanged(void delegate(TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "text-attributes-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "text-caret-moved" signal is emitted when the caret - * position of the text of an object which implements AtkText - * changes. - * - * Params: - * arg1 = The new position of the text caret. - */ - gulong addOnTextCaretMoved(void delegate(int, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "text-caret-moved", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "text-changed" signal is emitted when the text of the - * object which implements the AtkText interface changes, This - * signal will have a detail which is either "insert" or - * "delete" which identifies whether the text change was an - * insertion or a deletion. - * - * Deprecated: Use #AtkObject::text-insert or - * #AtkObject::text-remove instead. - * - * Params: - * arg1 = The position (character offset) of the insertion or deletion. - * arg2 = The length (in characters) of text inserted or deleted. - */ - gulong addOnTextChanged(void delegate(int, int, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "text-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "text-insert" signal is emitted when a new text is - * inserted. If the signal was not triggered by the user - * (e.g. typing or pasting text), the "system" detail should be - * included. - * - * Params: - * arg1 = The position (character offset) of the insertion. - * arg2 = The length (in characters) of text inserted. - * arg3 = The new text inserted - */ - gulong addOnTextInsert(void delegate(int, int, string, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "text-insert", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "text-remove" signal is emitted when a new text is - * removed. If the signal was not triggered by the user - * (e.g. typing or pasting text), the "system" detail should be - * included. - * - * Params: - * arg1 = The position (character offset) of the removal. - * arg2 = The length (in characters) of text removed. - * arg3 = The old text removed - */ - gulong addOnTextRemove(void delegate(int, int, string, TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "text-remove", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "text-selection-changed" signal is emitted when the - * selected text of an object which implements AtkText changes. - */ - gulong addOnTextSelectionChanged(void delegate(TextIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "text-selection-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/Util.d b/generated/gtkd/atk/Util.d deleted file mode 100644 index 7a185dba5..000000000 --- a/generated/gtkd/atk/Util.d +++ /dev/null @@ -1,266 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Util; - -private import atk.ObjectAtk; -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * A set of ATK utility functions which are used to support event - * registration of various types, and obtaining the 'root' accessible - * of a process and information about the current ATK implementation - * and toolkit version. - */ -public struct Util -{ - - /** */ - public static GType getType() - { - return atk_util_get_type(); - } - - /** - * Adds the specified function to the list of functions to be called - * when an object receives focus. - * - * Deprecated: Focus tracking has been dropped as a feature - * to be implemented by ATK itself. If you need focus tracking on your - * implementation, subscribe to the #AtkObject::state-change "focused" signal. - * - * Params: - * focusTracker = Function to be added to the list of functions to be called - * when an object receives focus. - * - * Returns: added focus tracker id, or 0 on failure. - */ - public static uint addFocusTracker(AtkEventListener focusTracker) - { - return atk_add_focus_tracker(focusTracker); - } - - /** - * Adds the specified function to the list of functions to be called - * when an ATK event of type event_type occurs. - * - * The format of event_type is the following: - * "ATK:<atk_type>:<atk_event>:<atk_event_detail> - * - * Where "ATK" works as the namespace, <atk_interface> is the name of - * the ATK type (interface or object), <atk_event> is the name of the - * signal defined on that interface and <atk_event_detail> is the - * gsignal detail of that signal. You can find more info about gsignal - * details here: - * http://developer.gnome.org/gobject/stable/gobject-Signals.html - * - * The first three parameters are mandatory. The last one is optional. - * - * For example: - * ATK:AtkObject:state-change - * ATK:AtkText:text-selection-changed - * ATK:AtkText:text-insert:system - * - * Toolkit implementor note: ATK provides a default implementation for - * this virtual method. ATK implementors are discouraged from - * reimplementing this method. - * - * Toolkit implementor note: this method is not intended to be used by - * ATK implementors but by ATK consumers. - * - * ATK consumers note: as this method adds a listener for a given ATK - * type, that type should be already registered on the GType system - * before calling this method. A simple way to do that is creating an - * instance of #AtkNoOpObject. This class implements all ATK - * interfaces, so creating the instance will register all ATK types as - * a collateral effect. - * - * Params: - * listener = the listener to notify - * eventType = the type of event for which notification is requested - * - * Returns: added event listener id, or 0 on failure. - */ - public static uint addGlobalEventListener(GSignalEmissionHook listener, string eventType) - { - return atk_add_global_event_listener(listener, Str.toStringz(eventType)); - } - - /** - * Adds the specified function to the list of functions to be called - * when a key event occurs. The @data element will be passed to the - * #AtkKeySnoopFunc (@listener) as the @func_data param, on notification. - * - * Params: - * listener = the listener to notify - * data = a #gpointer that points to a block of data that should be sent to the registered listeners, - * along with the event notification, when it occurs. - * - * Returns: added event listener id, or 0 on failure. - */ - public static uint addKeyEventListener(AtkKeySnoopFunc listener, void* data) - { - return atk_add_key_event_listener(listener, data); - } - - /** - * Specifies the function to be called for focus tracker initialization. - * This function should be called by an implementation of the - * ATK interface if any specific work needs to be done to enable - * focus tracking. - * - * Deprecated: Focus tracking has been dropped as a feature - * to be implemented by ATK itself. - * - * Params: - * init = Function to be called for focus tracker initialization - */ - public static void focusTrackerInit(AtkEventListenerInit init) - { - atk_focus_tracker_init(init); - } - - /** - * Cause the focus tracker functions which have been specified to be - * executed for the object. - * - * Deprecated: Focus tracking has been dropped as a feature - * to be implemented by ATK itself. As #AtkObject::focus-event was - * deprecated in favor of a #AtkObject::state-change signal, in order - * to notify a focus change on your implementation, you can use - * atk_object_notify_state_change() instead. - * - * Params: - * object = an #AtkObject - */ - public static void focusTrackerNotify(ObjectAtk object) - { - atk_focus_tracker_notify((object is null) ? null : object.getObjectAtkStruct()); - } - - /** - * Gets the currently focused object. - * - * Returns: the currently focused object for the current - * application - * - * Since: 1.6 - */ - public static ObjectAtk getFocusObject() - { - auto __p = atk_get_focus_object(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets the root accessible container for the current application. - * - * Returns: the root accessible container for the current - * application - */ - public static ObjectAtk getRoot() - { - auto __p = atk_get_root(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectAtk)(cast(AtkObject*) __p); - } - - /** - * Gets name string for the GUI toolkit implementing ATK for this application. - * - * Returns: name string for the GUI toolkit implementing ATK for this application - */ - public static string getToolkitName() - { - return Str.toString(atk_get_toolkit_name()); - } - - /** - * Removes the specified focus tracker from the list of functions - * to be called when any object receives focus. - * - * Deprecated: Focus tracking has been dropped as a feature - * to be implemented by ATK itself. If you need focus tracking on your - * implementation, subscribe to the #AtkObject::state-change "focused" - * signal. - * - * Params: - * trackerId = the id of the focus tracker to remove - */ - public static void removeFocusTracker(uint trackerId) - { - atk_remove_focus_tracker(trackerId); - } - - /** - * @listener_id is the value returned by #atk_add_global_event_listener - * when you registered that event listener. - * - * Toolkit implementor note: ATK provides a default implementation for - * this virtual method. ATK implementors are discouraged from - * reimplementing this method. - * - * Toolkit implementor note: this method is not intended to be used by - * ATK implementors but by ATK consumers. - * - * Removes the specified event listener - * - * Params: - * listenerId = the id of the event listener to remove - */ - public static void removeGlobalEventListener(uint listenerId) - { - atk_remove_global_event_listener(listenerId); - } - - /** - * @listener_id is the value returned by #atk_add_key_event_listener - * when you registered that event listener. - * - * Removes the specified event listener. - * - * Params: - * listenerId = the id of the event listener to remove - */ - public static void removeKeyEventListener(uint listenerId) - { - atk_remove_key_event_listener(listenerId); - } -} diff --git a/generated/gtkd/atk/ValueIF.d b/generated/gtkd/atk/ValueIF.d deleted file mode 100644 index 713692984..000000000 --- a/generated/gtkd/atk/ValueIF.d +++ /dev/null @@ -1,348 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ValueIF; - -private import atk.Range; -private import atk.c.functions; -public import atk.c.types; -private import glib.ListSG; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import gobject.Value; -private import std.algorithm; - - -/** - * #AtkValue should be implemented for components which either display - * a value from a bounded range, or which allow the user to specify a - * value from a bounded range, or both. For instance, most sliders and - * range controls, as well as dials, should have #AtkObject - * representations which implement #AtkValue on the component's - * behalf. #AtKValues may be read-only, in which case attempts to - * alter the value return would fail. - * - * - * On the subject of current value text - * - * In addition to providing the current value, implementors can - * optionally provide an end-user-consumable textual description - * associated with this value. This description should be included - * when the numeric value fails to convey the full, on-screen - * representation seen by users. - * - * - * - * Password strength - * A password strength meter whose value changes as the user types - * their new password. Red is used for values less than 4.0, yellow - * for values between 4.0 and 7.0, and green for values greater than - * 7.0. In this instance, value text should be provided by the - * implementor. Appropriate value text would be "weak", "acceptable," - * and "strong" respectively. - * - * - * A level bar whose value changes to reflect the battery charge. The - * color remains the same regardless of the charge and there is no - * on-screen text reflecting the fullness of the battery. In this - * case, because the position within the bar is the only indication - * the user has of the current charge, value text should not be - * provided by the implementor. - * - * - * Implementor Notes - * - * Implementors should bear in mind that assistive technologies will - * likely prefer the value text provided over the numeric value when - * presenting a widget's value. As a result, strings not intended for - * end users should not be exposed in the value text, and strings - * which are exposed should be localized. In the case of widgets which - * display value text on screen, for instance through a separate label - * in close proximity to the value-displaying widget, it is still - * expected that implementors will expose the value text using the - * above API. - * - * - * - * #AtkValue should NOT be implemented for widgets whose displayed - * value is not reflective of a meaningful amount. For instance, a - * progress pulse indicator whose value alternates between 0.0 and 1.0 - * to indicate that some process is still taking place should not - * implement #AtkValue because the current value does not reflect - * progress towards completion. - * - * - * - * - * - * On the subject of ranges - * - * In addition to providing the minimum and maximum values, - * implementors can optionally provide details about subranges - * associated with the widget. These details should be provided by the - * implementor when both of the following are communicated visually to - * the end user: - * - * - * The existence of distinct ranges such as "weak", - * "acceptable", and "strong" indicated by color, bar tick marks, - * and/or on-screen text. - * Where the current value stands within a given subrange, - * for instance illustrating progression from very "weak" towards - * nearly "acceptable" through changes in shade and/or position on - * the bar within the "weak" subrange. - * - * - * If both of the above do not apply to the widget, it should be - * sufficient to expose the numeric value, along with the value text - * if appropriate, to make the widget accessible. - * - * - * - * Implementor Notes - * - * If providing subrange details is deemed necessary, all possible - * values of the widget are expected to fall within one of the - * subranges defined by the implementor. - * - * - * - * - * - * On the subject of localization of end-user-consumable text - * values - * - * Because value text and subrange descriptors are human-consumable, - * implementors are expected to provide localized strings which can be - * directly presented to end users via their assistive technology. In - * order to simplify this for implementors, implementors can use - * atk_value_type_get_localized_name() with the following - * already-localized constants for commonly-needed values can be used: - * - * - * - * ATK_VALUE_VERY_WEAK - * ATK_VALUE_WEAK - * ATK_VALUE_ACCEPTABLE - * ATK_VALUE_STRONG - * ATK_VALUE_VERY_STRONG - * ATK_VALUE_VERY_LOW - * ATK_VALUE_LOW - * ATK_VALUE_MEDIUM - * ATK_VALUE_HIGH - * ATK_VALUE_VERY_HIGH - * ATK_VALUE_VERY_BAD - * ATK_VALUE_BAD - * ATK_VALUE_GOOD - * ATK_VALUE_VERY_GOOD - * ATK_VALUE_BEST - * ATK_VALUE_SUBSUBOPTIMAL - * ATK_VALUE_SUBOPTIMAL - * ATK_VALUE_OPTIMAL - * - * - * Proposals for additional constants, along with their use cases, - * should be submitted to the GNOME Accessibility Team. - * - * - * - * - * On the subject of changes - * - * Note that if there is a textual description associated with the new - * numeric value, that description should be included regardless of - * whether or not it has also changed. - * - * - */ -public interface ValueIF{ - /** Get the main Gtk struct */ - public AtkValue* getValueStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_value_get_type(); - } - - /** - * Gets the value of this object. - * - * Deprecated: Since 2.12. Use atk_value_get_value_and_text() - * instead. - * - * Params: - * value = a #GValue representing the current accessible value - */ - public void getCurrentValue(out Value value); - - /** - * Gets the minimum increment by which the value of this object may be - * changed. If zero, the minimum increment is undefined, which may - * mean that it is limited only by the floating point precision of the - * platform. - * - * Returns: the minimum increment by which the value of this - * object may be changed. zero if undefined. - * - * Since: 2.12 - */ - public double getIncrement(); - - /** - * Gets the maximum value of this object. - * - * Deprecated: Since 2.12. Use atk_value_get_range() instead. - * - * Params: - * value = a #GValue representing the maximum accessible value - */ - public void getMaximumValue(out Value value); - - /** - * Gets the minimum increment by which the value of this object may be changed. If zero, - * the minimum increment is undefined, which may mean that it is limited only by the - * floating point precision of the platform. - * - * Deprecated: Since 2.12. Use atk_value_get_increment() instead. - * - * Params: - * value = a #GValue representing the minimum increment by which the accessible value may be changed - * - * Since: 1.12 - */ - public void getMinimumIncrement(out Value value); - - /** - * Gets the minimum value of this object. - * - * Deprecated: Since 2.12. Use atk_value_get_range() instead. - * - * Params: - * value = a #GValue representing the minimum accessible value - */ - public void getMinimumValue(out Value value); - - /** - * Gets the range of this object. - * - * Returns: a newly allocated #AtkRange - * that represents the minimum, maximum and descriptor (if available) - * of @obj. NULL if that range is not defined. - * - * Since: 2.12 - */ - public Range getRange(); - - /** - * Gets the list of subranges defined for this object. See #AtkValue - * introduction for examples of subranges and when to expose them. - * - * Returns: an #GSList of - * #AtkRange which each of the subranges defined for this object. Free - * the returns list with g_slist_free(). - * - * Since: 2.12 - */ - public ListSG getSubRanges(); - - /** - * Gets the current value and the human readable text alternative of - * @obj. @text is a newly created string, that must be freed by the - * caller. Can be NULL if no descriptor is available. - * - * Params: - * value = address of #gdouble to put the current value of @obj - * text = address of #gchar to put the human - * readable text alternative for @value - * - * Since: 2.12 - */ - public void getValueAndText(out double value, out string text); - - /** - * Sets the value of this object. - * - * Deprecated: Since 2.12. Use atk_value_set_value() instead. - * - * Params: - * value = a #GValue which is the desired new accessible value. - * - * Returns: %TRUE if new value is successfully set, %FALSE otherwise. - */ - public bool setCurrentValue(Value value); - - /** - * Sets the value of this object. - * - * This method is intended to provide a way to change the value of the - * object. In any case, it is possible that the value can't be - * modified (ie: a read-only component). If the value changes due this - * call, it is possible that the text could change, and will trigger - * an #AtkValue::value-changed signal emission. - * - * Note for implementors: the deprecated atk_value_set_current_value() - * method returned TRUE or FALSE depending if the value was assigned - * or not. In the practice several implementors were not able to - * decide it, and returned TRUE in any case. For that reason it is not - * required anymore to return if the value was properly assigned or - * not. - * - * Params: - * newValue = a double which is the desired new accessible value. - * - * Since: 2.12 - */ - public void setValue(double newValue); - - /** - * The 'value-changed' signal is emitted when the current value - * that represent the object changes. @value is the numerical - * representation of this new value. @text is the human - * readable text alternative of @value, and can be NULL if it is - * not available. Note that if there is a textual description - * associated with the new numeric value, that description - * should be included regardless of whether or not it has also - * changed. - * - * Example: a password meter whose value changes as the user - * types their new password. Appropiate value text would be - * "weak", "acceptable" and "strong". - * - * Params: - * value = the new value in a numerical form. - * text = human readable text alternative (also called - * description) of this object. NULL if not available. - * - * Since: 2.12 - */ - gulong addOnValueChanged(void delegate(double, string, ValueIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/atk/ValueT.d b/generated/gtkd/atk/ValueT.d deleted file mode 100644 index 1ff18dd39..000000000 --- a/generated/gtkd/atk/ValueT.d +++ /dev/null @@ -1,412 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.ValueT; - -public import atk.Range; -public import atk.c.functions; -public import atk.c.types; -public import glib.ListSG; -public import glib.MemorySlice; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import gobject.Value; -public import std.algorithm; - - -/** - * #AtkValue should be implemented for components which either display - * a value from a bounded range, or which allow the user to specify a - * value from a bounded range, or both. For instance, most sliders and - * range controls, as well as dials, should have #AtkObject - * representations which implement #AtkValue on the component's - * behalf. #AtKValues may be read-only, in which case attempts to - * alter the value return would fail. - * - * - * On the subject of current value text - * - * In addition to providing the current value, implementors can - * optionally provide an end-user-consumable textual description - * associated with this value. This description should be included - * when the numeric value fails to convey the full, on-screen - * representation seen by users. - * - * - * - * Password strength - * A password strength meter whose value changes as the user types - * their new password. Red is used for values less than 4.0, yellow - * for values between 4.0 and 7.0, and green for values greater than - * 7.0. In this instance, value text should be provided by the - * implementor. Appropriate value text would be "weak", "acceptable," - * and "strong" respectively. - * - * - * A level bar whose value changes to reflect the battery charge. The - * color remains the same regardless of the charge and there is no - * on-screen text reflecting the fullness of the battery. In this - * case, because the position within the bar is the only indication - * the user has of the current charge, value text should not be - * provided by the implementor. - * - * - * Implementor Notes - * - * Implementors should bear in mind that assistive technologies will - * likely prefer the value text provided over the numeric value when - * presenting a widget's value. As a result, strings not intended for - * end users should not be exposed in the value text, and strings - * which are exposed should be localized. In the case of widgets which - * display value text on screen, for instance through a separate label - * in close proximity to the value-displaying widget, it is still - * expected that implementors will expose the value text using the - * above API. - * - * - * - * #AtkValue should NOT be implemented for widgets whose displayed - * value is not reflective of a meaningful amount. For instance, a - * progress pulse indicator whose value alternates between 0.0 and 1.0 - * to indicate that some process is still taking place should not - * implement #AtkValue because the current value does not reflect - * progress towards completion. - * - * - * - * - * - * On the subject of ranges - * - * In addition to providing the minimum and maximum values, - * implementors can optionally provide details about subranges - * associated with the widget. These details should be provided by the - * implementor when both of the following are communicated visually to - * the end user: - * - * - * The existence of distinct ranges such as "weak", - * "acceptable", and "strong" indicated by color, bar tick marks, - * and/or on-screen text. - * Where the current value stands within a given subrange, - * for instance illustrating progression from very "weak" towards - * nearly "acceptable" through changes in shade and/or position on - * the bar within the "weak" subrange. - * - * - * If both of the above do not apply to the widget, it should be - * sufficient to expose the numeric value, along with the value text - * if appropriate, to make the widget accessible. - * - * - * - * Implementor Notes - * - * If providing subrange details is deemed necessary, all possible - * values of the widget are expected to fall within one of the - * subranges defined by the implementor. - * - * - * - * - * - * On the subject of localization of end-user-consumable text - * values - * - * Because value text and subrange descriptors are human-consumable, - * implementors are expected to provide localized strings which can be - * directly presented to end users via their assistive technology. In - * order to simplify this for implementors, implementors can use - * atk_value_type_get_localized_name() with the following - * already-localized constants for commonly-needed values can be used: - * - * - * - * ATK_VALUE_VERY_WEAK - * ATK_VALUE_WEAK - * ATK_VALUE_ACCEPTABLE - * ATK_VALUE_STRONG - * ATK_VALUE_VERY_STRONG - * ATK_VALUE_VERY_LOW - * ATK_VALUE_LOW - * ATK_VALUE_MEDIUM - * ATK_VALUE_HIGH - * ATK_VALUE_VERY_HIGH - * ATK_VALUE_VERY_BAD - * ATK_VALUE_BAD - * ATK_VALUE_GOOD - * ATK_VALUE_VERY_GOOD - * ATK_VALUE_BEST - * ATK_VALUE_SUBSUBOPTIMAL - * ATK_VALUE_SUBOPTIMAL - * ATK_VALUE_OPTIMAL - * - * - * Proposals for additional constants, along with their use cases, - * should be submitted to the GNOME Accessibility Team. - * - * - * - * - * On the subject of changes - * - * Note that if there is a textual description associated with the new - * numeric value, that description should be included regardless of - * whether or not it has also changed. - * - * - */ -public template ValueT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkValue* getValueStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkValue*)getStruct(); - } - - - /** - * Gets the value of this object. - * - * Deprecated: Since 2.12. Use atk_value_get_value_and_text() - * instead. - * - * Params: - * value = a #GValue representing the current accessible value - */ - public void getCurrentValue(out Value value) - { - GValue* outvalue = sliceNew!GValue(); - - atk_value_get_current_value(getValueStruct(), outvalue); - - value = ObjectG.getDObject!(Value)(outvalue, true); - } - - /** - * Gets the minimum increment by which the value of this object may be - * changed. If zero, the minimum increment is undefined, which may - * mean that it is limited only by the floating point precision of the - * platform. - * - * Returns: the minimum increment by which the value of this - * object may be changed. zero if undefined. - * - * Since: 2.12 - */ - public double getIncrement() - { - return atk_value_get_increment(getValueStruct()); - } - - /** - * Gets the maximum value of this object. - * - * Deprecated: Since 2.12. Use atk_value_get_range() instead. - * - * Params: - * value = a #GValue representing the maximum accessible value - */ - public void getMaximumValue(out Value value) - { - GValue* outvalue = sliceNew!GValue(); - - atk_value_get_maximum_value(getValueStruct(), outvalue); - - value = ObjectG.getDObject!(Value)(outvalue, true); - } - - /** - * Gets the minimum increment by which the value of this object may be changed. If zero, - * the minimum increment is undefined, which may mean that it is limited only by the - * floating point precision of the platform. - * - * Deprecated: Since 2.12. Use atk_value_get_increment() instead. - * - * Params: - * value = a #GValue representing the minimum increment by which the accessible value may be changed - * - * Since: 1.12 - */ - public void getMinimumIncrement(out Value value) - { - GValue* outvalue = sliceNew!GValue(); - - atk_value_get_minimum_increment(getValueStruct(), outvalue); - - value = ObjectG.getDObject!(Value)(outvalue, true); - } - - /** - * Gets the minimum value of this object. - * - * Deprecated: Since 2.12. Use atk_value_get_range() instead. - * - * Params: - * value = a #GValue representing the minimum accessible value - */ - public void getMinimumValue(out Value value) - { - GValue* outvalue = sliceNew!GValue(); - - atk_value_get_minimum_value(getValueStruct(), outvalue); - - value = ObjectG.getDObject!(Value)(outvalue, true); - } - - /** - * Gets the range of this object. - * - * Returns: a newly allocated #AtkRange - * that represents the minimum, maximum and descriptor (if available) - * of @obj. NULL if that range is not defined. - * - * Since: 2.12 - */ - public Range getRange() - { - auto __p = atk_value_get_range(getValueStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Range)(cast(AtkRange*) __p, true); - } - - /** - * Gets the list of subranges defined for this object. See #AtkValue - * introduction for examples of subranges and when to expose them. - * - * Returns: an #GSList of - * #AtkRange which each of the subranges defined for this object. Free - * the returns list with g_slist_free(). - * - * Since: 2.12 - */ - public ListSG getSubRanges() - { - auto __p = atk_value_get_sub_ranges(getValueStruct()); - - if(__p is null) - { - return null; - } - - return new ListSG(cast(GSList*) __p, true); - } - - /** - * Gets the current value and the human readable text alternative of - * @obj. @text is a newly created string, that must be freed by the - * caller. Can be NULL if no descriptor is available. - * - * Params: - * value = address of #gdouble to put the current value of @obj - * text = address of #gchar to put the human - * readable text alternative for @value - * - * Since: 2.12 - */ - public void getValueAndText(out double value, out string text) - { - char* outtext = null; - - atk_value_get_value_and_text(getValueStruct(), &value, &outtext); - - text = Str.toString(outtext); - } - - /** - * Sets the value of this object. - * - * Deprecated: Since 2.12. Use atk_value_set_value() instead. - * - * Params: - * value = a #GValue which is the desired new accessible value. - * - * Returns: %TRUE if new value is successfully set, %FALSE otherwise. - */ - public bool setCurrentValue(Value value) - { - return atk_value_set_current_value(getValueStruct(), (value is null) ? null : value.getValueStruct()) != 0; - } - - /** - * Sets the value of this object. - * - * This method is intended to provide a way to change the value of the - * object. In any case, it is possible that the value can't be - * modified (ie: a read-only component). If the value changes due this - * call, it is possible that the text could change, and will trigger - * an #AtkValue::value-changed signal emission. - * - * Note for implementors: the deprecated atk_value_set_current_value() - * method returned TRUE or FALSE depending if the value was assigned - * or not. In the practice several implementors were not able to - * decide it, and returned TRUE in any case. For that reason it is not - * required anymore to return if the value was properly assigned or - * not. - * - * Params: - * newValue = a double which is the desired new accessible value. - * - * Since: 2.12 - */ - public void setValue(double newValue) - { - atk_value_set_value(getValueStruct(), newValue); - } - - /** - * The 'value-changed' signal is emitted when the current value - * that represent the object changes. @value is the numerical - * representation of this new value. @text is the human - * readable text alternative of @value, and can be NULL if it is - * not available. Note that if there is a textual description - * associated with the new numeric value, that description - * should be included regardless of whether or not it has also - * changed. - * - * Example: a password meter whose value changes as the user - * types their new password. Appropiate value text would be - * "weak", "acceptable" and "strong". - * - * Params: - * value = the new value in a numerical form. - * text = human readable text alternative (also called - * description) of this object. NULL if not available. - * - * Since: 2.12 - */ - gulong addOnValueChanged(void delegate(double, string, ValueIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "value-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/Version.d b/generated/gtkd/atk/Version.d deleted file mode 100644 index e8b3576f5..000000000 --- a/generated/gtkd/atk/Version.d +++ /dev/null @@ -1,138 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.Version; - -private import atk.c.functions; -public import atk.c.types; -private import glib.Str; -private import glib.c.functions; - - -/** */ -public struct Version -{ - - /** - * Returns the binary age as passed to libtool when building the ATK - * library the process is running against. - * - * Returns: the binary age of the ATK library - * - * Since: 2.8 - */ - public static uint getBinaryAge() - { - return atk_get_binary_age(); - } - - /** - * Returns the interface age as passed to libtool when building the - * ATK library the process is running against. - * - * Returns: the interface age of the ATK library - * - * Since: 2.8 - */ - public static uint getInterfaceAge() - { - return atk_get_interface_age(); - } - - /** - * Returns the major version number of the ATK library. (e.g. in ATK - * version 2.7.4 this is 2.) - * - * This function is in the library, so it represents the ATK library - * your code is running against. In contrast, the #ATK_MAJOR_VERSION - * macro represents the major version of the ATK headers you have - * included when compiling your code. - * - * Returns: the major version number of the ATK library - * - * Since: 2.8 - */ - public static uint getMajorVersion() - { - return atk_get_major_version(); - } - - /** - * Returns the micro version number of the ATK library. (e.g. in ATK - * version 2.7.4 this is 4.) - * - * This function is in the library, so it represents the ATK library - * your code is are running against. In contrast, the - * #ATK_MICRO_VERSION macro represents the micro version of the ATK - * headers you have included when compiling your code. - * - * Returns: the micro version number of the ATK library - * - * Since: 2.8 - */ - public static uint getMicroVersion() - { - return atk_get_micro_version(); - } - - /** - * Returns the minor version number of the ATK library. (e.g. in ATK - * version 2.7.4 this is 7.) - * - * This function is in the library, so it represents the ATK library - * your code is are running against. In contrast, the - * #ATK_MINOR_VERSION macro represents the minor version of the ATK - * headers you have included when compiling your code. - * - * Returns: the minor version number of the ATK library - * - * Since: 2.8 - */ - public static uint getMinorVersion() - { - return atk_get_minor_version(); - } - - /** - * Gets version string for the GUI toolkit implementing ATK for this application. - * - * Returns: version string for the GUI toolkit implementing ATK for this application - */ - public static string getToolkitVersion() - { - return Str.toString(atk_get_toolkit_version()); - } - - /** - * Gets the current version for ATK. - * - * Returns: version string for ATK - * - * Since: 1.20 - */ - public static string getVersion() - { - return Str.toString(atk_get_version()); - } -} diff --git a/generated/gtkd/atk/WindowIF.d b/generated/gtkd/atk/WindowIF.d deleted file mode 100644 index d716e41c4..000000000 --- a/generated/gtkd/atk/WindowIF.d +++ /dev/null @@ -1,123 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.WindowIF; - -private import atk.c.functions; -public import atk.c.types; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #AtkWindow should be implemented by the UI elements that represent - * a top-level window, such as the main window of an application or - * dialog. - */ -public interface WindowIF{ - /** Get the main Gtk struct */ - public AtkWindow* getWindowStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return atk_window_get_type(); - } - - /** - * The signal #AtkWindow::activate is emitted when a window - * becomes the active window of the application or session. - * - * Since: 2.2 - */ - gulong addOnActivate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::create is emitted when a new window - * is created. - * - * Since: 2.2 - */ - gulong addOnCreate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::deactivate is emitted when a window is - * no longer the active window of the application or session. - * - * Since: 2.2 - */ - gulong addOnDeactivate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::destroy is emitted when a window is - * destroyed. - * - * Since: 2.2 - */ - gulong addOnDestroy(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::maximize is emitted when a window - * is maximized. - * - * Since: 2.2 - */ - gulong addOnMaximize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::minimize is emitted when a window - * is minimized. - * - * Since: 2.2 - */ - gulong addOnMinimize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::move is emitted when a window - * is moved. - * - * Since: 2.2 - */ - gulong addOnMove(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::resize is emitted when a window - * is resized. - * - * Since: 2.2 - */ - gulong addOnResize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * The signal #AtkWindow::restore is emitted when a window - * is restored. - * - * Since: 2.2 - */ - gulong addOnRestore(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/atk/WindowT.d b/generated/gtkd/atk/WindowT.d deleted file mode 100644 index 51897ef3e..000000000 --- a/generated/gtkd/atk/WindowT.d +++ /dev/null @@ -1,147 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.WindowT; - -public import atk.c.functions; -public import atk.c.types; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #AtkWindow should be implemented by the UI elements that represent - * a top-level window, such as the main window of an application or - * dialog. - */ -public template WindowT(TStruct) -{ - /** Get the main Gtk struct */ - public AtkWindow* getWindowStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(AtkWindow*)getStruct(); - } - - - /** - * The signal #AtkWindow::activate is emitted when a window - * becomes the active window of the application or session. - * - * Since: 2.2 - */ - gulong addOnActivate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "activate", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::create is emitted when a new window - * is created. - * - * Since: 2.2 - */ - gulong addOnCreate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "create", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::deactivate is emitted when a window is - * no longer the active window of the application or session. - * - * Since: 2.2 - */ - gulong addOnDeactivate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "deactivate", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::destroy is emitted when a window is - * destroyed. - * - * Since: 2.2 - */ - gulong addOnDestroy(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "destroy", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::maximize is emitted when a window - * is maximized. - * - * Since: 2.2 - */ - gulong addOnMaximize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "maximize", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::minimize is emitted when a window - * is minimized. - * - * Since: 2.2 - */ - gulong addOnMinimize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "minimize", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::move is emitted when a window - * is moved. - * - * Since: 2.2 - */ - gulong addOnMove(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "move", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::resize is emitted when a window - * is resized. - * - * Since: 2.2 - */ - gulong addOnResize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "resize", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The signal #AtkWindow::restore is emitted when a window - * is restored. - * - * Since: 2.2 - */ - gulong addOnRestore(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "restore", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/atk/c/functions.d b/generated/gtkd/atk/c/functions.d deleted file mode 100644 index 2e77066bb..000000000 --- a/generated/gtkd/atk/c/functions.d +++ /dev/null @@ -1,1184 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.c.functions; - -import std.stdio; -import atk.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_ATK = ["libatk-1.0-0.dll;atk-1.0-0.dll;atk-1.dll"]; -else version (OSX) - static immutable LIBRARY_ATK = ["libatk-1.0.0.dylib"]; -else - static immutable LIBRARY_ATK = ["libatk-1.0.so.0"]; - -shared static this() -{ - // atk.Action - - Linker.link(atk_action_get_type, "atk_action_get_type", LIBRARY_ATK); - Linker.link(atk_action_do_action, "atk_action_do_action", LIBRARY_ATK); - Linker.link(atk_action_get_description, "atk_action_get_description", LIBRARY_ATK); - Linker.link(atk_action_get_keybinding, "atk_action_get_keybinding", LIBRARY_ATK); - Linker.link(atk_action_get_localized_name, "atk_action_get_localized_name", LIBRARY_ATK); - Linker.link(atk_action_get_n_actions, "atk_action_get_n_actions", LIBRARY_ATK); - Linker.link(atk_action_get_name, "atk_action_get_name", LIBRARY_ATK); - Linker.link(atk_action_set_description, "atk_action_set_description", LIBRARY_ATK); - - // atk.Component - - Linker.link(atk_component_get_type, "atk_component_get_type", LIBRARY_ATK); - Linker.link(atk_component_add_focus_handler, "atk_component_add_focus_handler", LIBRARY_ATK); - Linker.link(atk_component_contains, "atk_component_contains", LIBRARY_ATK); - Linker.link(atk_component_get_alpha, "atk_component_get_alpha", LIBRARY_ATK); - Linker.link(atk_component_get_extents, "atk_component_get_extents", LIBRARY_ATK); - Linker.link(atk_component_get_layer, "atk_component_get_layer", LIBRARY_ATK); - Linker.link(atk_component_get_mdi_zorder, "atk_component_get_mdi_zorder", LIBRARY_ATK); - Linker.link(atk_component_get_position, "atk_component_get_position", LIBRARY_ATK); - Linker.link(atk_component_get_size, "atk_component_get_size", LIBRARY_ATK); - Linker.link(atk_component_grab_focus, "atk_component_grab_focus", LIBRARY_ATK); - Linker.link(atk_component_ref_accessible_at_point, "atk_component_ref_accessible_at_point", LIBRARY_ATK); - Linker.link(atk_component_remove_focus_handler, "atk_component_remove_focus_handler", LIBRARY_ATK); - Linker.link(atk_component_scroll_to, "atk_component_scroll_to", LIBRARY_ATK); - Linker.link(atk_component_scroll_to_point, "atk_component_scroll_to_point", LIBRARY_ATK); - Linker.link(atk_component_set_extents, "atk_component_set_extents", LIBRARY_ATK); - Linker.link(atk_component_set_position, "atk_component_set_position", LIBRARY_ATK); - Linker.link(atk_component_set_size, "atk_component_set_size", LIBRARY_ATK); - - // atk.Document - - Linker.link(atk_document_get_type, "atk_document_get_type", LIBRARY_ATK); - Linker.link(atk_document_get_attribute_value, "atk_document_get_attribute_value", LIBRARY_ATK); - Linker.link(atk_document_get_attributes, "atk_document_get_attributes", LIBRARY_ATK); - Linker.link(atk_document_get_current_page_number, "atk_document_get_current_page_number", LIBRARY_ATK); - Linker.link(atk_document_get_document, "atk_document_get_document", LIBRARY_ATK); - Linker.link(atk_document_get_document_type, "atk_document_get_document_type", LIBRARY_ATK); - Linker.link(atk_document_get_locale, "atk_document_get_locale", LIBRARY_ATK); - Linker.link(atk_document_get_page_count, "atk_document_get_page_count", LIBRARY_ATK); - Linker.link(atk_document_set_attribute_value, "atk_document_set_attribute_value", LIBRARY_ATK); - - // atk.EditableText - - Linker.link(atk_editable_text_get_type, "atk_editable_text_get_type", LIBRARY_ATK); - Linker.link(atk_editable_text_copy_text, "atk_editable_text_copy_text", LIBRARY_ATK); - Linker.link(atk_editable_text_cut_text, "atk_editable_text_cut_text", LIBRARY_ATK); - Linker.link(atk_editable_text_delete_text, "atk_editable_text_delete_text", LIBRARY_ATK); - Linker.link(atk_editable_text_insert_text, "atk_editable_text_insert_text", LIBRARY_ATK); - Linker.link(atk_editable_text_paste_text, "atk_editable_text_paste_text", LIBRARY_ATK); - Linker.link(atk_editable_text_set_run_attributes, "atk_editable_text_set_run_attributes", LIBRARY_ATK); - Linker.link(atk_editable_text_set_text_contents, "atk_editable_text_set_text_contents", LIBRARY_ATK); - - // atk.GObjectAccessible - - Linker.link(atk_gobject_accessible_get_type, "atk_gobject_accessible_get_type", LIBRARY_ATK); - Linker.link(atk_gobject_accessible_for_object, "atk_gobject_accessible_for_object", LIBRARY_ATK); - Linker.link(atk_gobject_accessible_get_object, "atk_gobject_accessible_get_object", LIBRARY_ATK); - - // atk.Hyperlink - - Linker.link(atk_hyperlink_get_type, "atk_hyperlink_get_type", LIBRARY_ATK); - Linker.link(atk_hyperlink_get_end_index, "atk_hyperlink_get_end_index", LIBRARY_ATK); - Linker.link(atk_hyperlink_get_n_anchors, "atk_hyperlink_get_n_anchors", LIBRARY_ATK); - Linker.link(atk_hyperlink_get_object, "atk_hyperlink_get_object", LIBRARY_ATK); - Linker.link(atk_hyperlink_get_start_index, "atk_hyperlink_get_start_index", LIBRARY_ATK); - Linker.link(atk_hyperlink_get_uri, "atk_hyperlink_get_uri", LIBRARY_ATK); - Linker.link(atk_hyperlink_is_inline, "atk_hyperlink_is_inline", LIBRARY_ATK); - Linker.link(atk_hyperlink_is_selected_link, "atk_hyperlink_is_selected_link", LIBRARY_ATK); - Linker.link(atk_hyperlink_is_valid, "atk_hyperlink_is_valid", LIBRARY_ATK); - - // atk.HyperlinkImpl - - Linker.link(atk_hyperlink_impl_get_type, "atk_hyperlink_impl_get_type", LIBRARY_ATK); - Linker.link(atk_hyperlink_impl_get_hyperlink, "atk_hyperlink_impl_get_hyperlink", LIBRARY_ATK); - - // atk.Hypertext - - Linker.link(atk_hypertext_get_type, "atk_hypertext_get_type", LIBRARY_ATK); - Linker.link(atk_hypertext_get_link, "atk_hypertext_get_link", LIBRARY_ATK); - Linker.link(atk_hypertext_get_link_index, "atk_hypertext_get_link_index", LIBRARY_ATK); - Linker.link(atk_hypertext_get_n_links, "atk_hypertext_get_n_links", LIBRARY_ATK); - - // atk.Image - - Linker.link(atk_image_get_type, "atk_image_get_type", LIBRARY_ATK); - Linker.link(atk_image_get_image_description, "atk_image_get_image_description", LIBRARY_ATK); - Linker.link(atk_image_get_image_locale, "atk_image_get_image_locale", LIBRARY_ATK); - Linker.link(atk_image_get_image_position, "atk_image_get_image_position", LIBRARY_ATK); - Linker.link(atk_image_get_image_size, "atk_image_get_image_size", LIBRARY_ATK); - Linker.link(atk_image_set_image_description, "atk_image_set_image_description", LIBRARY_ATK); - - // atk.Implementor - - Linker.link(atk_implementor_ref_accessible, "atk_implementor_ref_accessible", LIBRARY_ATK); - Linker.link(atk_implementor_get_type, "atk_implementor_get_type", LIBRARY_ATK); - - // atk.Misc - - Linker.link(atk_misc_get_type, "atk_misc_get_type", LIBRARY_ATK); - Linker.link(atk_misc_get_instance, "atk_misc_get_instance", LIBRARY_ATK); - Linker.link(atk_misc_threads_enter, "atk_misc_threads_enter", LIBRARY_ATK); - Linker.link(atk_misc_threads_leave, "atk_misc_threads_leave", LIBRARY_ATK); - - // atk.NoOpObject - - Linker.link(atk_no_op_object_get_type, "atk_no_op_object_get_type", LIBRARY_ATK); - Linker.link(atk_no_op_object_new, "atk_no_op_object_new", LIBRARY_ATK); - - // atk.NoOpObjectFactory - - Linker.link(atk_no_op_object_factory_get_type, "atk_no_op_object_factory_get_type", LIBRARY_ATK); - Linker.link(atk_no_op_object_factory_new, "atk_no_op_object_factory_new", LIBRARY_ATK); - - // atk.ObjectAtk - - Linker.link(atk_object_get_type, "atk_object_get_type", LIBRARY_ATK); - Linker.link(atk_object_add_relationship, "atk_object_add_relationship", LIBRARY_ATK); - Linker.link(atk_object_connect_property_change_handler, "atk_object_connect_property_change_handler", LIBRARY_ATK); - Linker.link(atk_object_get_accessible_id, "atk_object_get_accessible_id", LIBRARY_ATK); - Linker.link(atk_object_get_attributes, "atk_object_get_attributes", LIBRARY_ATK); - Linker.link(atk_object_get_description, "atk_object_get_description", LIBRARY_ATK); - Linker.link(atk_object_get_index_in_parent, "atk_object_get_index_in_parent", LIBRARY_ATK); - Linker.link(atk_object_get_layer, "atk_object_get_layer", LIBRARY_ATK); - Linker.link(atk_object_get_mdi_zorder, "atk_object_get_mdi_zorder", LIBRARY_ATK); - Linker.link(atk_object_get_n_accessible_children, "atk_object_get_n_accessible_children", LIBRARY_ATK); - Linker.link(atk_object_get_name, "atk_object_get_name", LIBRARY_ATK); - Linker.link(atk_object_get_object_locale, "atk_object_get_object_locale", LIBRARY_ATK); - Linker.link(atk_object_get_parent, "atk_object_get_parent", LIBRARY_ATK); - Linker.link(atk_object_get_role, "atk_object_get_role", LIBRARY_ATK); - Linker.link(atk_object_initialize, "atk_object_initialize", LIBRARY_ATK); - Linker.link(atk_object_notify_state_change, "atk_object_notify_state_change", LIBRARY_ATK); - Linker.link(atk_object_peek_parent, "atk_object_peek_parent", LIBRARY_ATK); - Linker.link(atk_object_ref_accessible_child, "atk_object_ref_accessible_child", LIBRARY_ATK); - Linker.link(atk_object_ref_relation_set, "atk_object_ref_relation_set", LIBRARY_ATK); - Linker.link(atk_object_ref_state_set, "atk_object_ref_state_set", LIBRARY_ATK); - Linker.link(atk_object_remove_property_change_handler, "atk_object_remove_property_change_handler", LIBRARY_ATK); - Linker.link(atk_object_remove_relationship, "atk_object_remove_relationship", LIBRARY_ATK); - Linker.link(atk_object_set_accessible_id, "atk_object_set_accessible_id", LIBRARY_ATK); - Linker.link(atk_object_set_description, "atk_object_set_description", LIBRARY_ATK); - Linker.link(atk_object_set_name, "atk_object_set_name", LIBRARY_ATK); - Linker.link(atk_object_set_parent, "atk_object_set_parent", LIBRARY_ATK); - Linker.link(atk_object_set_role, "atk_object_set_role", LIBRARY_ATK); - Linker.link(atk_role_for_name, "atk_role_for_name", LIBRARY_ATK); - Linker.link(atk_role_get_localized_name, "atk_role_get_localized_name", LIBRARY_ATK); - Linker.link(atk_role_get_name, "atk_role_get_name", LIBRARY_ATK); - Linker.link(atk_role_register, "atk_role_register", LIBRARY_ATK); - - // atk.ObjectFactory - - Linker.link(atk_object_factory_get_type, "atk_object_factory_get_type", LIBRARY_ATK); - Linker.link(atk_object_factory_create_accessible, "atk_object_factory_create_accessible", LIBRARY_ATK); - Linker.link(atk_object_factory_get_accessible_type, "atk_object_factory_get_accessible_type", LIBRARY_ATK); - Linker.link(atk_object_factory_invalidate, "atk_object_factory_invalidate", LIBRARY_ATK); - - // atk.Plug - - Linker.link(atk_plug_get_type, "atk_plug_get_type", LIBRARY_ATK); - Linker.link(atk_plug_new, "atk_plug_new", LIBRARY_ATK); - Linker.link(atk_plug_get_id, "atk_plug_get_id", LIBRARY_ATK); - Linker.link(atk_plug_set_child, "atk_plug_set_child", LIBRARY_ATK); - - // atk.Range - - Linker.link(atk_range_get_type, "atk_range_get_type", LIBRARY_ATK); - Linker.link(atk_range_new, "atk_range_new", LIBRARY_ATK); - Linker.link(atk_range_copy, "atk_range_copy", LIBRARY_ATK); - Linker.link(atk_range_free, "atk_range_free", LIBRARY_ATK); - Linker.link(atk_range_get_description, "atk_range_get_description", LIBRARY_ATK); - Linker.link(atk_range_get_lower_limit, "atk_range_get_lower_limit", LIBRARY_ATK); - Linker.link(atk_range_get_upper_limit, "atk_range_get_upper_limit", LIBRARY_ATK); - - // atk.Rectangle - - Linker.link(atk_rectangle_get_type, "atk_rectangle_get_type", LIBRARY_ATK); - - // atk.Registry - - Linker.link(atk_registry_get_type, "atk_registry_get_type", LIBRARY_ATK); - Linker.link(atk_registry_get_factory, "atk_registry_get_factory", LIBRARY_ATK); - Linker.link(atk_registry_get_factory_type, "atk_registry_get_factory_type", LIBRARY_ATK); - Linker.link(atk_registry_set_factory_type, "atk_registry_set_factory_type", LIBRARY_ATK); - Linker.link(atk_get_default_registry, "atk_get_default_registry", LIBRARY_ATK); - - // atk.Relation - - Linker.link(atk_relation_get_type, "atk_relation_get_type", LIBRARY_ATK); - Linker.link(atk_relation_new, "atk_relation_new", LIBRARY_ATK); - Linker.link(atk_relation_add_target, "atk_relation_add_target", LIBRARY_ATK); - Linker.link(atk_relation_get_relation_type, "atk_relation_get_relation_type", LIBRARY_ATK); - Linker.link(atk_relation_get_target, "atk_relation_get_target", LIBRARY_ATK); - Linker.link(atk_relation_remove_target, "atk_relation_remove_target", LIBRARY_ATK); - Linker.link(atk_relation_type_for_name, "atk_relation_type_for_name", LIBRARY_ATK); - Linker.link(atk_relation_type_get_name, "atk_relation_type_get_name", LIBRARY_ATK); - Linker.link(atk_relation_type_register, "atk_relation_type_register", LIBRARY_ATK); - - // atk.RelationSet - - Linker.link(atk_relation_set_get_type, "atk_relation_set_get_type", LIBRARY_ATK); - Linker.link(atk_relation_set_new, "atk_relation_set_new", LIBRARY_ATK); - Linker.link(atk_relation_set_add, "atk_relation_set_add", LIBRARY_ATK); - Linker.link(atk_relation_set_add_relation_by_type, "atk_relation_set_add_relation_by_type", LIBRARY_ATK); - Linker.link(atk_relation_set_contains, "atk_relation_set_contains", LIBRARY_ATK); - Linker.link(atk_relation_set_contains_target, "atk_relation_set_contains_target", LIBRARY_ATK); - Linker.link(atk_relation_set_get_n_relations, "atk_relation_set_get_n_relations", LIBRARY_ATK); - Linker.link(atk_relation_set_get_relation, "atk_relation_set_get_relation", LIBRARY_ATK); - Linker.link(atk_relation_set_get_relation_by_type, "atk_relation_set_get_relation_by_type", LIBRARY_ATK); - Linker.link(atk_relation_set_remove, "atk_relation_set_remove", LIBRARY_ATK); - - // atk.Selection - - Linker.link(atk_selection_get_type, "atk_selection_get_type", LIBRARY_ATK); - Linker.link(atk_selection_add_selection, "atk_selection_add_selection", LIBRARY_ATK); - Linker.link(atk_selection_clear_selection, "atk_selection_clear_selection", LIBRARY_ATK); - Linker.link(atk_selection_get_selection_count, "atk_selection_get_selection_count", LIBRARY_ATK); - Linker.link(atk_selection_is_child_selected, "atk_selection_is_child_selected", LIBRARY_ATK); - Linker.link(atk_selection_ref_selection, "atk_selection_ref_selection", LIBRARY_ATK); - Linker.link(atk_selection_remove_selection, "atk_selection_remove_selection", LIBRARY_ATK); - Linker.link(atk_selection_select_all_selection, "atk_selection_select_all_selection", LIBRARY_ATK); - - // atk.Socket - - Linker.link(atk_socket_get_type, "atk_socket_get_type", LIBRARY_ATK); - Linker.link(atk_socket_new, "atk_socket_new", LIBRARY_ATK); - Linker.link(atk_socket_embed, "atk_socket_embed", LIBRARY_ATK); - Linker.link(atk_socket_is_occupied, "atk_socket_is_occupied", LIBRARY_ATK); - - // atk.StateSet - - Linker.link(atk_state_set_get_type, "atk_state_set_get_type", LIBRARY_ATK); - Linker.link(atk_state_set_new, "atk_state_set_new", LIBRARY_ATK); - Linker.link(atk_state_set_add_state, "atk_state_set_add_state", LIBRARY_ATK); - Linker.link(atk_state_set_add_states, "atk_state_set_add_states", LIBRARY_ATK); - Linker.link(atk_state_set_and_sets, "atk_state_set_and_sets", LIBRARY_ATK); - Linker.link(atk_state_set_clear_states, "atk_state_set_clear_states", LIBRARY_ATK); - Linker.link(atk_state_set_contains_state, "atk_state_set_contains_state", LIBRARY_ATK); - Linker.link(atk_state_set_contains_states, "atk_state_set_contains_states", LIBRARY_ATK); - Linker.link(atk_state_set_is_empty, "atk_state_set_is_empty", LIBRARY_ATK); - Linker.link(atk_state_set_or_sets, "atk_state_set_or_sets", LIBRARY_ATK); - Linker.link(atk_state_set_remove_state, "atk_state_set_remove_state", LIBRARY_ATK); - Linker.link(atk_state_set_xor_sets, "atk_state_set_xor_sets", LIBRARY_ATK); - - // atk.StreamableContent - - Linker.link(atk_streamable_content_get_type, "atk_streamable_content_get_type", LIBRARY_ATK); - Linker.link(atk_streamable_content_get_mime_type, "atk_streamable_content_get_mime_type", LIBRARY_ATK); - Linker.link(atk_streamable_content_get_n_mime_types, "atk_streamable_content_get_n_mime_types", LIBRARY_ATK); - Linker.link(atk_streamable_content_get_stream, "atk_streamable_content_get_stream", LIBRARY_ATK); - Linker.link(atk_streamable_content_get_uri, "atk_streamable_content_get_uri", LIBRARY_ATK); - - // atk.Table - - Linker.link(atk_table_get_type, "atk_table_get_type", LIBRARY_ATK); - Linker.link(atk_table_add_column_selection, "atk_table_add_column_selection", LIBRARY_ATK); - Linker.link(atk_table_add_row_selection, "atk_table_add_row_selection", LIBRARY_ATK); - Linker.link(atk_table_get_caption, "atk_table_get_caption", LIBRARY_ATK); - Linker.link(atk_table_get_column_at_index, "atk_table_get_column_at_index", LIBRARY_ATK); - Linker.link(atk_table_get_column_description, "atk_table_get_column_description", LIBRARY_ATK); - Linker.link(atk_table_get_column_extent_at, "atk_table_get_column_extent_at", LIBRARY_ATK); - Linker.link(atk_table_get_column_header, "atk_table_get_column_header", LIBRARY_ATK); - Linker.link(atk_table_get_index_at, "atk_table_get_index_at", LIBRARY_ATK); - Linker.link(atk_table_get_n_columns, "atk_table_get_n_columns", LIBRARY_ATK); - Linker.link(atk_table_get_n_rows, "atk_table_get_n_rows", LIBRARY_ATK); - Linker.link(atk_table_get_row_at_index, "atk_table_get_row_at_index", LIBRARY_ATK); - Linker.link(atk_table_get_row_description, "atk_table_get_row_description", LIBRARY_ATK); - Linker.link(atk_table_get_row_extent_at, "atk_table_get_row_extent_at", LIBRARY_ATK); - Linker.link(atk_table_get_row_header, "atk_table_get_row_header", LIBRARY_ATK); - Linker.link(atk_table_get_selected_columns, "atk_table_get_selected_columns", LIBRARY_ATK); - Linker.link(atk_table_get_selected_rows, "atk_table_get_selected_rows", LIBRARY_ATK); - Linker.link(atk_table_get_summary, "atk_table_get_summary", LIBRARY_ATK); - Linker.link(atk_table_is_column_selected, "atk_table_is_column_selected", LIBRARY_ATK); - Linker.link(atk_table_is_row_selected, "atk_table_is_row_selected", LIBRARY_ATK); - Linker.link(atk_table_is_selected, "atk_table_is_selected", LIBRARY_ATK); - Linker.link(atk_table_ref_at, "atk_table_ref_at", LIBRARY_ATK); - Linker.link(atk_table_remove_column_selection, "atk_table_remove_column_selection", LIBRARY_ATK); - Linker.link(atk_table_remove_row_selection, "atk_table_remove_row_selection", LIBRARY_ATK); - Linker.link(atk_table_set_caption, "atk_table_set_caption", LIBRARY_ATK); - Linker.link(atk_table_set_column_description, "atk_table_set_column_description", LIBRARY_ATK); - Linker.link(atk_table_set_column_header, "atk_table_set_column_header", LIBRARY_ATK); - Linker.link(atk_table_set_row_description, "atk_table_set_row_description", LIBRARY_ATK); - Linker.link(atk_table_set_row_header, "atk_table_set_row_header", LIBRARY_ATK); - Linker.link(atk_table_set_summary, "atk_table_set_summary", LIBRARY_ATK); - - // atk.TableCell - - Linker.link(atk_table_cell_get_type, "atk_table_cell_get_type", LIBRARY_ATK); - Linker.link(atk_table_cell_get_column_header_cells, "atk_table_cell_get_column_header_cells", LIBRARY_ATK); - Linker.link(atk_table_cell_get_column_span, "atk_table_cell_get_column_span", LIBRARY_ATK); - Linker.link(atk_table_cell_get_position, "atk_table_cell_get_position", LIBRARY_ATK); - Linker.link(atk_table_cell_get_row_column_span, "atk_table_cell_get_row_column_span", LIBRARY_ATK); - Linker.link(atk_table_cell_get_row_header_cells, "atk_table_cell_get_row_header_cells", LIBRARY_ATK); - Linker.link(atk_table_cell_get_row_span, "atk_table_cell_get_row_span", LIBRARY_ATK); - Linker.link(atk_table_cell_get_table, "atk_table_cell_get_table", LIBRARY_ATK); - - // atk.Text - - Linker.link(atk_text_get_type, "atk_text_get_type", LIBRARY_ATK); - Linker.link(atk_text_free_ranges, "atk_text_free_ranges", LIBRARY_ATK); - Linker.link(atk_text_add_selection, "atk_text_add_selection", LIBRARY_ATK); - Linker.link(atk_text_get_bounded_ranges, "atk_text_get_bounded_ranges", LIBRARY_ATK); - Linker.link(atk_text_get_caret_offset, "atk_text_get_caret_offset", LIBRARY_ATK); - Linker.link(atk_text_get_character_at_offset, "atk_text_get_character_at_offset", LIBRARY_ATK); - Linker.link(atk_text_get_character_count, "atk_text_get_character_count", LIBRARY_ATK); - Linker.link(atk_text_get_character_extents, "atk_text_get_character_extents", LIBRARY_ATK); - Linker.link(atk_text_get_default_attributes, "atk_text_get_default_attributes", LIBRARY_ATK); - Linker.link(atk_text_get_n_selections, "atk_text_get_n_selections", LIBRARY_ATK); - Linker.link(atk_text_get_offset_at_point, "atk_text_get_offset_at_point", LIBRARY_ATK); - Linker.link(atk_text_get_range_extents, "atk_text_get_range_extents", LIBRARY_ATK); - Linker.link(atk_text_get_run_attributes, "atk_text_get_run_attributes", LIBRARY_ATK); - Linker.link(atk_text_get_selection, "atk_text_get_selection", LIBRARY_ATK); - Linker.link(atk_text_get_string_at_offset, "atk_text_get_string_at_offset", LIBRARY_ATK); - Linker.link(atk_text_get_text, "atk_text_get_text", LIBRARY_ATK); - Linker.link(atk_text_get_text_after_offset, "atk_text_get_text_after_offset", LIBRARY_ATK); - Linker.link(atk_text_get_text_at_offset, "atk_text_get_text_at_offset", LIBRARY_ATK); - Linker.link(atk_text_get_text_before_offset, "atk_text_get_text_before_offset", LIBRARY_ATK); - Linker.link(atk_text_remove_selection, "atk_text_remove_selection", LIBRARY_ATK); - Linker.link(atk_text_scroll_substring_to, "atk_text_scroll_substring_to", LIBRARY_ATK); - Linker.link(atk_text_scroll_substring_to_point, "atk_text_scroll_substring_to_point", LIBRARY_ATK); - Linker.link(atk_text_set_caret_offset, "atk_text_set_caret_offset", LIBRARY_ATK); - Linker.link(atk_text_set_selection, "atk_text_set_selection", LIBRARY_ATK); - Linker.link(atk_attribute_set_free, "atk_attribute_set_free", LIBRARY_ATK); - Linker.link(atk_text_attribute_for_name, "atk_text_attribute_for_name", LIBRARY_ATK); - Linker.link(atk_text_attribute_get_name, "atk_text_attribute_get_name", LIBRARY_ATK); - Linker.link(atk_text_attribute_get_value, "atk_text_attribute_get_value", LIBRARY_ATK); - Linker.link(atk_text_attribute_register, "atk_text_attribute_register", LIBRARY_ATK); - - // atk.TextRange - - Linker.link(atk_text_range_get_type, "atk_text_range_get_type", LIBRARY_ATK); - - // atk.Util - - Linker.link(atk_util_get_type, "atk_util_get_type", LIBRARY_ATK); - Linker.link(atk_add_focus_tracker, "atk_add_focus_tracker", LIBRARY_ATK); - Linker.link(atk_add_global_event_listener, "atk_add_global_event_listener", LIBRARY_ATK); - Linker.link(atk_add_key_event_listener, "atk_add_key_event_listener", LIBRARY_ATK); - Linker.link(atk_focus_tracker_init, "atk_focus_tracker_init", LIBRARY_ATK); - Linker.link(atk_focus_tracker_notify, "atk_focus_tracker_notify", LIBRARY_ATK); - Linker.link(atk_get_focus_object, "atk_get_focus_object", LIBRARY_ATK); - Linker.link(atk_get_root, "atk_get_root", LIBRARY_ATK); - Linker.link(atk_get_toolkit_name, "atk_get_toolkit_name", LIBRARY_ATK); - Linker.link(atk_remove_focus_tracker, "atk_remove_focus_tracker", LIBRARY_ATK); - Linker.link(atk_remove_global_event_listener, "atk_remove_global_event_listener", LIBRARY_ATK); - Linker.link(atk_remove_key_event_listener, "atk_remove_key_event_listener", LIBRARY_ATK); - - // atk.Value - - Linker.link(atk_value_get_type, "atk_value_get_type", LIBRARY_ATK); - Linker.link(atk_value_get_current_value, "atk_value_get_current_value", LIBRARY_ATK); - Linker.link(atk_value_get_increment, "atk_value_get_increment", LIBRARY_ATK); - Linker.link(atk_value_get_maximum_value, "atk_value_get_maximum_value", LIBRARY_ATK); - Linker.link(atk_value_get_minimum_increment, "atk_value_get_minimum_increment", LIBRARY_ATK); - Linker.link(atk_value_get_minimum_value, "atk_value_get_minimum_value", LIBRARY_ATK); - Linker.link(atk_value_get_range, "atk_value_get_range", LIBRARY_ATK); - Linker.link(atk_value_get_sub_ranges, "atk_value_get_sub_ranges", LIBRARY_ATK); - Linker.link(atk_value_get_value_and_text, "atk_value_get_value_and_text", LIBRARY_ATK); - Linker.link(atk_value_set_current_value, "atk_value_set_current_value", LIBRARY_ATK); - Linker.link(atk_value_set_value, "atk_value_set_value", LIBRARY_ATK); - - // atk.Window - - Linker.link(atk_window_get_type, "atk_window_get_type", LIBRARY_ATK); - - // atk.Version - - Linker.link(atk_get_binary_age, "atk_get_binary_age", LIBRARY_ATK); - Linker.link(atk_get_interface_age, "atk_get_interface_age", LIBRARY_ATK); - Linker.link(atk_get_major_version, "atk_get_major_version", LIBRARY_ATK); - Linker.link(atk_get_micro_version, "atk_get_micro_version", LIBRARY_ATK); - Linker.link(atk_get_minor_version, "atk_get_minor_version", LIBRARY_ATK); - Linker.link(atk_get_toolkit_version, "atk_get_toolkit_version", LIBRARY_ATK); - Linker.link(atk_get_version, "atk_get_version", LIBRARY_ATK); - - // atk.State - - Linker.link(atk_state_type_for_name, "atk_state_type_for_name", LIBRARY_ATK); - Linker.link(atk_state_type_get_name, "atk_state_type_get_name", LIBRARY_ATK); - Linker.link(atk_state_type_register, "atk_state_type_register", LIBRARY_ATK); -} - -__gshared extern(C) -{ - - // atk.Action - - GType function() c_atk_action_get_type; - int function(AtkAction* action, int i) c_atk_action_do_action; - const(char)* function(AtkAction* action, int i) c_atk_action_get_description; - const(char)* function(AtkAction* action, int i) c_atk_action_get_keybinding; - const(char)* function(AtkAction* action, int i) c_atk_action_get_localized_name; - int function(AtkAction* action) c_atk_action_get_n_actions; - const(char)* function(AtkAction* action, int i) c_atk_action_get_name; - int function(AtkAction* action, int i, const(char)* desc) c_atk_action_set_description; - - // atk.Component - - GType function() c_atk_component_get_type; - uint function(AtkComponent* component, AtkFocusHandler handler) c_atk_component_add_focus_handler; - int function(AtkComponent* component, int x, int y, AtkCoordType coordType) c_atk_component_contains; - double function(AtkComponent* component) c_atk_component_get_alpha; - void function(AtkComponent* component, int* x, int* y, int* width, int* height, AtkCoordType coordType) c_atk_component_get_extents; - AtkLayer function(AtkComponent* component) c_atk_component_get_layer; - int function(AtkComponent* component) c_atk_component_get_mdi_zorder; - void function(AtkComponent* component, int* x, int* y, AtkCoordType coordType) c_atk_component_get_position; - void function(AtkComponent* component, int* width, int* height) c_atk_component_get_size; - int function(AtkComponent* component) c_atk_component_grab_focus; - AtkObject* function(AtkComponent* component, int x, int y, AtkCoordType coordType) c_atk_component_ref_accessible_at_point; - void function(AtkComponent* component, uint handlerId) c_atk_component_remove_focus_handler; - int function(AtkComponent* component, AtkScrollType type) c_atk_component_scroll_to; - int function(AtkComponent* component, AtkCoordType coords, int x, int y) c_atk_component_scroll_to_point; - int function(AtkComponent* component, int x, int y, int width, int height, AtkCoordType coordType) c_atk_component_set_extents; - int function(AtkComponent* component, int x, int y, AtkCoordType coordType) c_atk_component_set_position; - int function(AtkComponent* component, int width, int height) c_atk_component_set_size; - - // atk.Document - - GType function() c_atk_document_get_type; - const(char)* function(AtkDocument* document, const(char)* attributeName) c_atk_document_get_attribute_value; - AtkAttributeSet* function(AtkDocument* document) c_atk_document_get_attributes; - int function(AtkDocument* document) c_atk_document_get_current_page_number; - void* function(AtkDocument* document) c_atk_document_get_document; - const(char)* function(AtkDocument* document) c_atk_document_get_document_type; - const(char)* function(AtkDocument* document) c_atk_document_get_locale; - int function(AtkDocument* document) c_atk_document_get_page_count; - int function(AtkDocument* document, const(char)* attributeName, const(char)* attributeValue) c_atk_document_set_attribute_value; - - // atk.EditableText - - GType function() c_atk_editable_text_get_type; - void function(AtkEditableText* text, int startPos, int endPos) c_atk_editable_text_copy_text; - void function(AtkEditableText* text, int startPos, int endPos) c_atk_editable_text_cut_text; - void function(AtkEditableText* text, int startPos, int endPos) c_atk_editable_text_delete_text; - void function(AtkEditableText* text, const(char)* string_, int length, int* position) c_atk_editable_text_insert_text; - void function(AtkEditableText* text, int position) c_atk_editable_text_paste_text; - int function(AtkEditableText* text, AtkAttributeSet* attribSet, int startOffset, int endOffset) c_atk_editable_text_set_run_attributes; - void function(AtkEditableText* text, const(char)* string_) c_atk_editable_text_set_text_contents; - - // atk.GObjectAccessible - - GType function() c_atk_gobject_accessible_get_type; - AtkObject* function(GObject* obj) c_atk_gobject_accessible_for_object; - GObject* function(AtkGObjectAccessible* obj) c_atk_gobject_accessible_get_object; - - // atk.Hyperlink - - GType function() c_atk_hyperlink_get_type; - int function(AtkHyperlink* link) c_atk_hyperlink_get_end_index; - int function(AtkHyperlink* link) c_atk_hyperlink_get_n_anchors; - AtkObject* function(AtkHyperlink* link, int i) c_atk_hyperlink_get_object; - int function(AtkHyperlink* link) c_atk_hyperlink_get_start_index; - char* function(AtkHyperlink* link, int i) c_atk_hyperlink_get_uri; - int function(AtkHyperlink* link) c_atk_hyperlink_is_inline; - int function(AtkHyperlink* link) c_atk_hyperlink_is_selected_link; - int function(AtkHyperlink* link) c_atk_hyperlink_is_valid; - - // atk.HyperlinkImpl - - GType function() c_atk_hyperlink_impl_get_type; - AtkHyperlink* function(AtkHyperlinkImpl* impl) c_atk_hyperlink_impl_get_hyperlink; - - // atk.Hypertext - - GType function() c_atk_hypertext_get_type; - AtkHyperlink* function(AtkHypertext* hypertext, int linkIndex) c_atk_hypertext_get_link; - int function(AtkHypertext* hypertext, int charIndex) c_atk_hypertext_get_link_index; - int function(AtkHypertext* hypertext) c_atk_hypertext_get_n_links; - - // atk.Image - - GType function() c_atk_image_get_type; - const(char)* function(AtkImage* image) c_atk_image_get_image_description; - const(char)* function(AtkImage* image) c_atk_image_get_image_locale; - void function(AtkImage* image, int* x, int* y, AtkCoordType coordType) c_atk_image_get_image_position; - void function(AtkImage* image, int* width, int* height) c_atk_image_get_image_size; - int function(AtkImage* image, const(char)* description) c_atk_image_set_image_description; - - // atk.Implementor - - AtkObject* function(AtkImplementor* implementor) c_atk_implementor_ref_accessible; - GType function() c_atk_implementor_get_type; - - // atk.Misc - - GType function() c_atk_misc_get_type; - AtkMisc* function() c_atk_misc_get_instance; - void function(AtkMisc* misc) c_atk_misc_threads_enter; - void function(AtkMisc* misc) c_atk_misc_threads_leave; - - // atk.NoOpObject - - GType function() c_atk_no_op_object_get_type; - AtkObject* function(GObject* obj) c_atk_no_op_object_new; - - // atk.NoOpObjectFactory - - GType function() c_atk_no_op_object_factory_get_type; - AtkObjectFactory* function() c_atk_no_op_object_factory_new; - - // atk.ObjectAtk - - GType function() c_atk_object_get_type; - int function(AtkObject* object, AtkRelationType relationship, AtkObject* target) c_atk_object_add_relationship; - uint function(AtkObject* accessible, AtkPropertyChangeHandler* handler) c_atk_object_connect_property_change_handler; - const(char)* function(AtkObject* accessible) c_atk_object_get_accessible_id; - AtkAttributeSet* function(AtkObject* accessible) c_atk_object_get_attributes; - const(char)* function(AtkObject* accessible) c_atk_object_get_description; - int function(AtkObject* accessible) c_atk_object_get_index_in_parent; - AtkLayer function(AtkObject* accessible) c_atk_object_get_layer; - int function(AtkObject* accessible) c_atk_object_get_mdi_zorder; - int function(AtkObject* accessible) c_atk_object_get_n_accessible_children; - const(char)* function(AtkObject* accessible) c_atk_object_get_name; - const(char)* function(AtkObject* accessible) c_atk_object_get_object_locale; - AtkObject* function(AtkObject* accessible) c_atk_object_get_parent; - AtkRole function(AtkObject* accessible) c_atk_object_get_role; - void function(AtkObject* accessible, void* data) c_atk_object_initialize; - void function(AtkObject* accessible, AtkState state, int value) c_atk_object_notify_state_change; - AtkObject* function(AtkObject* accessible) c_atk_object_peek_parent; - AtkObject* function(AtkObject* accessible, int i) c_atk_object_ref_accessible_child; - AtkRelationSet* function(AtkObject* accessible) c_atk_object_ref_relation_set; - AtkStateSet* function(AtkObject* accessible) c_atk_object_ref_state_set; - void function(AtkObject* accessible, uint handlerId) c_atk_object_remove_property_change_handler; - int function(AtkObject* object, AtkRelationType relationship, AtkObject* target) c_atk_object_remove_relationship; - void function(AtkObject* accessible, const(char)* name) c_atk_object_set_accessible_id; - void function(AtkObject* accessible, const(char)* description) c_atk_object_set_description; - void function(AtkObject* accessible, const(char)* name) c_atk_object_set_name; - void function(AtkObject* accessible, AtkObject* parent) c_atk_object_set_parent; - void function(AtkObject* accessible, AtkRole role) c_atk_object_set_role; - AtkRole function(const(char)* name) c_atk_role_for_name; - const(char)* function(AtkRole role) c_atk_role_get_localized_name; - const(char)* function(AtkRole role) c_atk_role_get_name; - AtkRole function(const(char)* name) c_atk_role_register; - - // atk.ObjectFactory - - GType function() c_atk_object_factory_get_type; - AtkObject* function(AtkObjectFactory* factory, GObject* obj) c_atk_object_factory_create_accessible; - GType function(AtkObjectFactory* factory) c_atk_object_factory_get_accessible_type; - void function(AtkObjectFactory* factory) c_atk_object_factory_invalidate; - - // atk.Plug - - GType function() c_atk_plug_get_type; - AtkObject* function() c_atk_plug_new; - char* function(AtkPlug* plug) c_atk_plug_get_id; - void function(AtkPlug* plug, AtkObject* child) c_atk_plug_set_child; - - // atk.Range - - GType function() c_atk_range_get_type; - AtkRange* function(double lowerLimit, double upperLimit, const(char)* description) c_atk_range_new; - AtkRange* function(AtkRange* src) c_atk_range_copy; - void function(AtkRange* range) c_atk_range_free; - const(char)* function(AtkRange* range) c_atk_range_get_description; - double function(AtkRange* range) c_atk_range_get_lower_limit; - double function(AtkRange* range) c_atk_range_get_upper_limit; - - // atk.Rectangle - - GType function() c_atk_rectangle_get_type; - - // atk.Registry - - GType function() c_atk_registry_get_type; - AtkObjectFactory* function(AtkRegistry* registry, GType type) c_atk_registry_get_factory; - GType function(AtkRegistry* registry, GType type) c_atk_registry_get_factory_type; - void function(AtkRegistry* registry, GType type, GType factoryType) c_atk_registry_set_factory_type; - AtkRegistry* function() c_atk_get_default_registry; - - // atk.Relation - - GType function() c_atk_relation_get_type; - AtkRelation* function(AtkObject** targets, int nTargets, AtkRelationType relationship) c_atk_relation_new; - void function(AtkRelation* relation, AtkObject* target) c_atk_relation_add_target; - AtkRelationType function(AtkRelation* relation) c_atk_relation_get_relation_type; - GPtrArray* function(AtkRelation* relation) c_atk_relation_get_target; - int function(AtkRelation* relation, AtkObject* target) c_atk_relation_remove_target; - AtkRelationType function(const(char)* name) c_atk_relation_type_for_name; - const(char)* function(AtkRelationType type) c_atk_relation_type_get_name; - AtkRelationType function(const(char)* name) c_atk_relation_type_register; - - // atk.RelationSet - - GType function() c_atk_relation_set_get_type; - AtkRelationSet* function() c_atk_relation_set_new; - void function(AtkRelationSet* set, AtkRelation* relation) c_atk_relation_set_add; - void function(AtkRelationSet* set, AtkRelationType relationship, AtkObject* target) c_atk_relation_set_add_relation_by_type; - int function(AtkRelationSet* set, AtkRelationType relationship) c_atk_relation_set_contains; - int function(AtkRelationSet* set, AtkRelationType relationship, AtkObject* target) c_atk_relation_set_contains_target; - int function(AtkRelationSet* set) c_atk_relation_set_get_n_relations; - AtkRelation* function(AtkRelationSet* set, int i) c_atk_relation_set_get_relation; - AtkRelation* function(AtkRelationSet* set, AtkRelationType relationship) c_atk_relation_set_get_relation_by_type; - void function(AtkRelationSet* set, AtkRelation* relation) c_atk_relation_set_remove; - - // atk.Selection - - GType function() c_atk_selection_get_type; - int function(AtkSelection* selection, int i) c_atk_selection_add_selection; - int function(AtkSelection* selection) c_atk_selection_clear_selection; - int function(AtkSelection* selection) c_atk_selection_get_selection_count; - int function(AtkSelection* selection, int i) c_atk_selection_is_child_selected; - AtkObject* function(AtkSelection* selection, int i) c_atk_selection_ref_selection; - int function(AtkSelection* selection, int i) c_atk_selection_remove_selection; - int function(AtkSelection* selection) c_atk_selection_select_all_selection; - - // atk.Socket - - GType function() c_atk_socket_get_type; - AtkObject* function() c_atk_socket_new; - void function(AtkSocket* obj, const(char)* plugId) c_atk_socket_embed; - int function(AtkSocket* obj) c_atk_socket_is_occupied; - - // atk.StateSet - - GType function() c_atk_state_set_get_type; - AtkStateSet* function() c_atk_state_set_new; - int function(AtkStateSet* set, AtkStateType type) c_atk_state_set_add_state; - void function(AtkStateSet* set, AtkStateType* types, int nTypes) c_atk_state_set_add_states; - AtkStateSet* function(AtkStateSet* set, AtkStateSet* compareSet) c_atk_state_set_and_sets; - void function(AtkStateSet* set) c_atk_state_set_clear_states; - int function(AtkStateSet* set, AtkStateType type) c_atk_state_set_contains_state; - int function(AtkStateSet* set, AtkStateType* types, int nTypes) c_atk_state_set_contains_states; - int function(AtkStateSet* set) c_atk_state_set_is_empty; - AtkStateSet* function(AtkStateSet* set, AtkStateSet* compareSet) c_atk_state_set_or_sets; - int function(AtkStateSet* set, AtkStateType type) c_atk_state_set_remove_state; - AtkStateSet* function(AtkStateSet* set, AtkStateSet* compareSet) c_atk_state_set_xor_sets; - - // atk.StreamableContent - - GType function() c_atk_streamable_content_get_type; - const(char)* function(AtkStreamableContent* streamable, int i) c_atk_streamable_content_get_mime_type; - int function(AtkStreamableContent* streamable) c_atk_streamable_content_get_n_mime_types; - GIOChannel* function(AtkStreamableContent* streamable, const(char)* mimeType) c_atk_streamable_content_get_stream; - const(char)* function(AtkStreamableContent* streamable, const(char)* mimeType) c_atk_streamable_content_get_uri; - - // atk.Table - - GType function() c_atk_table_get_type; - int function(AtkTable* table, int column) c_atk_table_add_column_selection; - int function(AtkTable* table, int row) c_atk_table_add_row_selection; - AtkObject* function(AtkTable* table) c_atk_table_get_caption; - int function(AtkTable* table, int index) c_atk_table_get_column_at_index; - const(char)* function(AtkTable* table, int column) c_atk_table_get_column_description; - int function(AtkTable* table, int row, int column) c_atk_table_get_column_extent_at; - AtkObject* function(AtkTable* table, int column) c_atk_table_get_column_header; - int function(AtkTable* table, int row, int column) c_atk_table_get_index_at; - int function(AtkTable* table) c_atk_table_get_n_columns; - int function(AtkTable* table) c_atk_table_get_n_rows; - int function(AtkTable* table, int index) c_atk_table_get_row_at_index; - const(char)* function(AtkTable* table, int row) c_atk_table_get_row_description; - int function(AtkTable* table, int row, int column) c_atk_table_get_row_extent_at; - AtkObject* function(AtkTable* table, int row) c_atk_table_get_row_header; - int function(AtkTable* table, int** selected) c_atk_table_get_selected_columns; - int function(AtkTable* table, int** selected) c_atk_table_get_selected_rows; - AtkObject* function(AtkTable* table) c_atk_table_get_summary; - int function(AtkTable* table, int column) c_atk_table_is_column_selected; - int function(AtkTable* table, int row) c_atk_table_is_row_selected; - int function(AtkTable* table, int row, int column) c_atk_table_is_selected; - AtkObject* function(AtkTable* table, int row, int column) c_atk_table_ref_at; - int function(AtkTable* table, int column) c_atk_table_remove_column_selection; - int function(AtkTable* table, int row) c_atk_table_remove_row_selection; - void function(AtkTable* table, AtkObject* caption) c_atk_table_set_caption; - void function(AtkTable* table, int column, const(char)* description) c_atk_table_set_column_description; - void function(AtkTable* table, int column, AtkObject* header) c_atk_table_set_column_header; - void function(AtkTable* table, int row, const(char)* description) c_atk_table_set_row_description; - void function(AtkTable* table, int row, AtkObject* header) c_atk_table_set_row_header; - void function(AtkTable* table, AtkObject* accessible) c_atk_table_set_summary; - - // atk.TableCell - - GType function() c_atk_table_cell_get_type; - GPtrArray* function(AtkTableCell* cell) c_atk_table_cell_get_column_header_cells; - int function(AtkTableCell* cell) c_atk_table_cell_get_column_span; - int function(AtkTableCell* cell, int* row, int* column) c_atk_table_cell_get_position; - int function(AtkTableCell* cell, int* row, int* column, int* rowSpan, int* columnSpan) c_atk_table_cell_get_row_column_span; - GPtrArray* function(AtkTableCell* cell) c_atk_table_cell_get_row_header_cells; - int function(AtkTableCell* cell) c_atk_table_cell_get_row_span; - AtkObject* function(AtkTableCell* cell) c_atk_table_cell_get_table; - - // atk.Text - - GType function() c_atk_text_get_type; - void function(AtkTextRange** ranges) c_atk_text_free_ranges; - int function(AtkText* text, int startOffset, int endOffset) c_atk_text_add_selection; - AtkTextRange** function(AtkText* text, AtkTextRectangle* rect, AtkCoordType coordType, AtkTextClipType xClipType, AtkTextClipType yClipType) c_atk_text_get_bounded_ranges; - int function(AtkText* text) c_atk_text_get_caret_offset; - dchar function(AtkText* text, int offset) c_atk_text_get_character_at_offset; - int function(AtkText* text) c_atk_text_get_character_count; - void function(AtkText* text, int offset, int* x, int* y, int* width, int* height, AtkCoordType coords) c_atk_text_get_character_extents; - AtkAttributeSet* function(AtkText* text) c_atk_text_get_default_attributes; - int function(AtkText* text) c_atk_text_get_n_selections; - int function(AtkText* text, int x, int y, AtkCoordType coords) c_atk_text_get_offset_at_point; - void function(AtkText* text, int startOffset, int endOffset, AtkCoordType coordType, AtkTextRectangle* rect) c_atk_text_get_range_extents; - AtkAttributeSet* function(AtkText* text, int offset, int* startOffset, int* endOffset) c_atk_text_get_run_attributes; - char* function(AtkText* text, int selectionNum, int* startOffset, int* endOffset) c_atk_text_get_selection; - char* function(AtkText* text, int offset, AtkTextGranularity granularity, int* startOffset, int* endOffset) c_atk_text_get_string_at_offset; - char* function(AtkText* text, int startOffset, int endOffset) c_atk_text_get_text; - char* function(AtkText* text, int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) c_atk_text_get_text_after_offset; - char* function(AtkText* text, int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) c_atk_text_get_text_at_offset; - char* function(AtkText* text, int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) c_atk_text_get_text_before_offset; - int function(AtkText* text, int selectionNum) c_atk_text_remove_selection; - int function(AtkText* text, int startOffset, int endOffset, AtkScrollType type) c_atk_text_scroll_substring_to; - int function(AtkText* text, int startOffset, int endOffset, AtkCoordType coords, int x, int y) c_atk_text_scroll_substring_to_point; - int function(AtkText* text, int offset) c_atk_text_set_caret_offset; - int function(AtkText* text, int selectionNum, int startOffset, int endOffset) c_atk_text_set_selection; - void function(AtkAttributeSet* attribSet) c_atk_attribute_set_free; - AtkTextAttribute function(const(char)* name) c_atk_text_attribute_for_name; - const(char)* function(AtkTextAttribute attr) c_atk_text_attribute_get_name; - const(char)* function(AtkTextAttribute attr, int index) c_atk_text_attribute_get_value; - AtkTextAttribute function(const(char)* name) c_atk_text_attribute_register; - - // atk.TextRange - - GType function() c_atk_text_range_get_type; - - // atk.Util - - GType function() c_atk_util_get_type; - uint function(AtkEventListener focusTracker) c_atk_add_focus_tracker; - uint function(GSignalEmissionHook listener, const(char)* eventType) c_atk_add_global_event_listener; - uint function(AtkKeySnoopFunc listener, void* data) c_atk_add_key_event_listener; - void function(AtkEventListenerInit init) c_atk_focus_tracker_init; - void function(AtkObject* object) c_atk_focus_tracker_notify; - AtkObject* function() c_atk_get_focus_object; - AtkObject* function() c_atk_get_root; - const(char)* function() c_atk_get_toolkit_name; - void function(uint trackerId) c_atk_remove_focus_tracker; - void function(uint listenerId) c_atk_remove_global_event_listener; - void function(uint listenerId) c_atk_remove_key_event_listener; - - // atk.Value - - GType function() c_atk_value_get_type; - void function(AtkValue* obj, GValue* value) c_atk_value_get_current_value; - double function(AtkValue* obj) c_atk_value_get_increment; - void function(AtkValue* obj, GValue* value) c_atk_value_get_maximum_value; - void function(AtkValue* obj, GValue* value) c_atk_value_get_minimum_increment; - void function(AtkValue* obj, GValue* value) c_atk_value_get_minimum_value; - AtkRange* function(AtkValue* obj) c_atk_value_get_range; - GSList* function(AtkValue* obj) c_atk_value_get_sub_ranges; - void function(AtkValue* obj, double* value, char** text) c_atk_value_get_value_and_text; - int function(AtkValue* obj, GValue* value) c_atk_value_set_current_value; - void function(AtkValue* obj, double newValue) c_atk_value_set_value; - - // atk.Window - - GType function() c_atk_window_get_type; - - // atk.Version - - uint function() c_atk_get_binary_age; - uint function() c_atk_get_interface_age; - uint function() c_atk_get_major_version; - uint function() c_atk_get_micro_version; - uint function() c_atk_get_minor_version; - const(char)* function() c_atk_get_toolkit_version; - const(char)* function() c_atk_get_version; - - // atk.State - - AtkStateType function(const(char)* name) c_atk_state_type_for_name; - const(char)* function(AtkStateType type) c_atk_state_type_get_name; - AtkStateType function(const(char)* name) c_atk_state_type_register; -} - - -// atk.Action - -alias c_atk_action_get_type atk_action_get_type; -alias c_atk_action_do_action atk_action_do_action; -alias c_atk_action_get_description atk_action_get_description; -alias c_atk_action_get_keybinding atk_action_get_keybinding; -alias c_atk_action_get_localized_name atk_action_get_localized_name; -alias c_atk_action_get_n_actions atk_action_get_n_actions; -alias c_atk_action_get_name atk_action_get_name; -alias c_atk_action_set_description atk_action_set_description; - -// atk.Component - -alias c_atk_component_get_type atk_component_get_type; -alias c_atk_component_add_focus_handler atk_component_add_focus_handler; -alias c_atk_component_contains atk_component_contains; -alias c_atk_component_get_alpha atk_component_get_alpha; -alias c_atk_component_get_extents atk_component_get_extents; -alias c_atk_component_get_layer atk_component_get_layer; -alias c_atk_component_get_mdi_zorder atk_component_get_mdi_zorder; -alias c_atk_component_get_position atk_component_get_position; -alias c_atk_component_get_size atk_component_get_size; -alias c_atk_component_grab_focus atk_component_grab_focus; -alias c_atk_component_ref_accessible_at_point atk_component_ref_accessible_at_point; -alias c_atk_component_remove_focus_handler atk_component_remove_focus_handler; -alias c_atk_component_scroll_to atk_component_scroll_to; -alias c_atk_component_scroll_to_point atk_component_scroll_to_point; -alias c_atk_component_set_extents atk_component_set_extents; -alias c_atk_component_set_position atk_component_set_position; -alias c_atk_component_set_size atk_component_set_size; - -// atk.Document - -alias c_atk_document_get_type atk_document_get_type; -alias c_atk_document_get_attribute_value atk_document_get_attribute_value; -alias c_atk_document_get_attributes atk_document_get_attributes; -alias c_atk_document_get_current_page_number atk_document_get_current_page_number; -alias c_atk_document_get_document atk_document_get_document; -alias c_atk_document_get_document_type atk_document_get_document_type; -alias c_atk_document_get_locale atk_document_get_locale; -alias c_atk_document_get_page_count atk_document_get_page_count; -alias c_atk_document_set_attribute_value atk_document_set_attribute_value; - -// atk.EditableText - -alias c_atk_editable_text_get_type atk_editable_text_get_type; -alias c_atk_editable_text_copy_text atk_editable_text_copy_text; -alias c_atk_editable_text_cut_text atk_editable_text_cut_text; -alias c_atk_editable_text_delete_text atk_editable_text_delete_text; -alias c_atk_editable_text_insert_text atk_editable_text_insert_text; -alias c_atk_editable_text_paste_text atk_editable_text_paste_text; -alias c_atk_editable_text_set_run_attributes atk_editable_text_set_run_attributes; -alias c_atk_editable_text_set_text_contents atk_editable_text_set_text_contents; - -// atk.GObjectAccessible - -alias c_atk_gobject_accessible_get_type atk_gobject_accessible_get_type; -alias c_atk_gobject_accessible_for_object atk_gobject_accessible_for_object; -alias c_atk_gobject_accessible_get_object atk_gobject_accessible_get_object; - -// atk.Hyperlink - -alias c_atk_hyperlink_get_type atk_hyperlink_get_type; -alias c_atk_hyperlink_get_end_index atk_hyperlink_get_end_index; -alias c_atk_hyperlink_get_n_anchors atk_hyperlink_get_n_anchors; -alias c_atk_hyperlink_get_object atk_hyperlink_get_object; -alias c_atk_hyperlink_get_start_index atk_hyperlink_get_start_index; -alias c_atk_hyperlink_get_uri atk_hyperlink_get_uri; -alias c_atk_hyperlink_is_inline atk_hyperlink_is_inline; -alias c_atk_hyperlink_is_selected_link atk_hyperlink_is_selected_link; -alias c_atk_hyperlink_is_valid atk_hyperlink_is_valid; - -// atk.HyperlinkImpl - -alias c_atk_hyperlink_impl_get_type atk_hyperlink_impl_get_type; -alias c_atk_hyperlink_impl_get_hyperlink atk_hyperlink_impl_get_hyperlink; - -// atk.Hypertext - -alias c_atk_hypertext_get_type atk_hypertext_get_type; -alias c_atk_hypertext_get_link atk_hypertext_get_link; -alias c_atk_hypertext_get_link_index atk_hypertext_get_link_index; -alias c_atk_hypertext_get_n_links atk_hypertext_get_n_links; - -// atk.Image - -alias c_atk_image_get_type atk_image_get_type; -alias c_atk_image_get_image_description atk_image_get_image_description; -alias c_atk_image_get_image_locale atk_image_get_image_locale; -alias c_atk_image_get_image_position atk_image_get_image_position; -alias c_atk_image_get_image_size atk_image_get_image_size; -alias c_atk_image_set_image_description atk_image_set_image_description; - -// atk.Implementor - -alias c_atk_implementor_ref_accessible atk_implementor_ref_accessible; -alias c_atk_implementor_get_type atk_implementor_get_type; - -// atk.Misc - -alias c_atk_misc_get_type atk_misc_get_type; -alias c_atk_misc_get_instance atk_misc_get_instance; -alias c_atk_misc_threads_enter atk_misc_threads_enter; -alias c_atk_misc_threads_leave atk_misc_threads_leave; - -// atk.NoOpObject - -alias c_atk_no_op_object_get_type atk_no_op_object_get_type; -alias c_atk_no_op_object_new atk_no_op_object_new; - -// atk.NoOpObjectFactory - -alias c_atk_no_op_object_factory_get_type atk_no_op_object_factory_get_type; -alias c_atk_no_op_object_factory_new atk_no_op_object_factory_new; - -// atk.ObjectAtk - -alias c_atk_object_get_type atk_object_get_type; -alias c_atk_object_add_relationship atk_object_add_relationship; -alias c_atk_object_connect_property_change_handler atk_object_connect_property_change_handler; -alias c_atk_object_get_accessible_id atk_object_get_accessible_id; -alias c_atk_object_get_attributes atk_object_get_attributes; -alias c_atk_object_get_description atk_object_get_description; -alias c_atk_object_get_index_in_parent atk_object_get_index_in_parent; -alias c_atk_object_get_layer atk_object_get_layer; -alias c_atk_object_get_mdi_zorder atk_object_get_mdi_zorder; -alias c_atk_object_get_n_accessible_children atk_object_get_n_accessible_children; -alias c_atk_object_get_name atk_object_get_name; -alias c_atk_object_get_object_locale atk_object_get_object_locale; -alias c_atk_object_get_parent atk_object_get_parent; -alias c_atk_object_get_role atk_object_get_role; -alias c_atk_object_initialize atk_object_initialize; -alias c_atk_object_notify_state_change atk_object_notify_state_change; -alias c_atk_object_peek_parent atk_object_peek_parent; -alias c_atk_object_ref_accessible_child atk_object_ref_accessible_child; -alias c_atk_object_ref_relation_set atk_object_ref_relation_set; -alias c_atk_object_ref_state_set atk_object_ref_state_set; -alias c_atk_object_remove_property_change_handler atk_object_remove_property_change_handler; -alias c_atk_object_remove_relationship atk_object_remove_relationship; -alias c_atk_object_set_accessible_id atk_object_set_accessible_id; -alias c_atk_object_set_description atk_object_set_description; -alias c_atk_object_set_name atk_object_set_name; -alias c_atk_object_set_parent atk_object_set_parent; -alias c_atk_object_set_role atk_object_set_role; -alias c_atk_role_for_name atk_role_for_name; -alias c_atk_role_get_localized_name atk_role_get_localized_name; -alias c_atk_role_get_name atk_role_get_name; -alias c_atk_role_register atk_role_register; - -// atk.ObjectFactory - -alias c_atk_object_factory_get_type atk_object_factory_get_type; -alias c_atk_object_factory_create_accessible atk_object_factory_create_accessible; -alias c_atk_object_factory_get_accessible_type atk_object_factory_get_accessible_type; -alias c_atk_object_factory_invalidate atk_object_factory_invalidate; - -// atk.Plug - -alias c_atk_plug_get_type atk_plug_get_type; -alias c_atk_plug_new atk_plug_new; -alias c_atk_plug_get_id atk_plug_get_id; -alias c_atk_plug_set_child atk_plug_set_child; - -// atk.Range - -alias c_atk_range_get_type atk_range_get_type; -alias c_atk_range_new atk_range_new; -alias c_atk_range_copy atk_range_copy; -alias c_atk_range_free atk_range_free; -alias c_atk_range_get_description atk_range_get_description; -alias c_atk_range_get_lower_limit atk_range_get_lower_limit; -alias c_atk_range_get_upper_limit atk_range_get_upper_limit; - -// atk.Rectangle - -alias c_atk_rectangle_get_type atk_rectangle_get_type; - -// atk.Registry - -alias c_atk_registry_get_type atk_registry_get_type; -alias c_atk_registry_get_factory atk_registry_get_factory; -alias c_atk_registry_get_factory_type atk_registry_get_factory_type; -alias c_atk_registry_set_factory_type atk_registry_set_factory_type; -alias c_atk_get_default_registry atk_get_default_registry; - -// atk.Relation - -alias c_atk_relation_get_type atk_relation_get_type; -alias c_atk_relation_new atk_relation_new; -alias c_atk_relation_add_target atk_relation_add_target; -alias c_atk_relation_get_relation_type atk_relation_get_relation_type; -alias c_atk_relation_get_target atk_relation_get_target; -alias c_atk_relation_remove_target atk_relation_remove_target; -alias c_atk_relation_type_for_name atk_relation_type_for_name; -alias c_atk_relation_type_get_name atk_relation_type_get_name; -alias c_atk_relation_type_register atk_relation_type_register; - -// atk.RelationSet - -alias c_atk_relation_set_get_type atk_relation_set_get_type; -alias c_atk_relation_set_new atk_relation_set_new; -alias c_atk_relation_set_add atk_relation_set_add; -alias c_atk_relation_set_add_relation_by_type atk_relation_set_add_relation_by_type; -alias c_atk_relation_set_contains atk_relation_set_contains; -alias c_atk_relation_set_contains_target atk_relation_set_contains_target; -alias c_atk_relation_set_get_n_relations atk_relation_set_get_n_relations; -alias c_atk_relation_set_get_relation atk_relation_set_get_relation; -alias c_atk_relation_set_get_relation_by_type atk_relation_set_get_relation_by_type; -alias c_atk_relation_set_remove atk_relation_set_remove; - -// atk.Selection - -alias c_atk_selection_get_type atk_selection_get_type; -alias c_atk_selection_add_selection atk_selection_add_selection; -alias c_atk_selection_clear_selection atk_selection_clear_selection; -alias c_atk_selection_get_selection_count atk_selection_get_selection_count; -alias c_atk_selection_is_child_selected atk_selection_is_child_selected; -alias c_atk_selection_ref_selection atk_selection_ref_selection; -alias c_atk_selection_remove_selection atk_selection_remove_selection; -alias c_atk_selection_select_all_selection atk_selection_select_all_selection; - -// atk.Socket - -alias c_atk_socket_get_type atk_socket_get_type; -alias c_atk_socket_new atk_socket_new; -alias c_atk_socket_embed atk_socket_embed; -alias c_atk_socket_is_occupied atk_socket_is_occupied; - -// atk.StateSet - -alias c_atk_state_set_get_type atk_state_set_get_type; -alias c_atk_state_set_new atk_state_set_new; -alias c_atk_state_set_add_state atk_state_set_add_state; -alias c_atk_state_set_add_states atk_state_set_add_states; -alias c_atk_state_set_and_sets atk_state_set_and_sets; -alias c_atk_state_set_clear_states atk_state_set_clear_states; -alias c_atk_state_set_contains_state atk_state_set_contains_state; -alias c_atk_state_set_contains_states atk_state_set_contains_states; -alias c_atk_state_set_is_empty atk_state_set_is_empty; -alias c_atk_state_set_or_sets atk_state_set_or_sets; -alias c_atk_state_set_remove_state atk_state_set_remove_state; -alias c_atk_state_set_xor_sets atk_state_set_xor_sets; - -// atk.StreamableContent - -alias c_atk_streamable_content_get_type atk_streamable_content_get_type; -alias c_atk_streamable_content_get_mime_type atk_streamable_content_get_mime_type; -alias c_atk_streamable_content_get_n_mime_types atk_streamable_content_get_n_mime_types; -alias c_atk_streamable_content_get_stream atk_streamable_content_get_stream; -alias c_atk_streamable_content_get_uri atk_streamable_content_get_uri; - -// atk.Table - -alias c_atk_table_get_type atk_table_get_type; -alias c_atk_table_add_column_selection atk_table_add_column_selection; -alias c_atk_table_add_row_selection atk_table_add_row_selection; -alias c_atk_table_get_caption atk_table_get_caption; -alias c_atk_table_get_column_at_index atk_table_get_column_at_index; -alias c_atk_table_get_column_description atk_table_get_column_description; -alias c_atk_table_get_column_extent_at atk_table_get_column_extent_at; -alias c_atk_table_get_column_header atk_table_get_column_header; -alias c_atk_table_get_index_at atk_table_get_index_at; -alias c_atk_table_get_n_columns atk_table_get_n_columns; -alias c_atk_table_get_n_rows atk_table_get_n_rows; -alias c_atk_table_get_row_at_index atk_table_get_row_at_index; -alias c_atk_table_get_row_description atk_table_get_row_description; -alias c_atk_table_get_row_extent_at atk_table_get_row_extent_at; -alias c_atk_table_get_row_header atk_table_get_row_header; -alias c_atk_table_get_selected_columns atk_table_get_selected_columns; -alias c_atk_table_get_selected_rows atk_table_get_selected_rows; -alias c_atk_table_get_summary atk_table_get_summary; -alias c_atk_table_is_column_selected atk_table_is_column_selected; -alias c_atk_table_is_row_selected atk_table_is_row_selected; -alias c_atk_table_is_selected atk_table_is_selected; -alias c_atk_table_ref_at atk_table_ref_at; -alias c_atk_table_remove_column_selection atk_table_remove_column_selection; -alias c_atk_table_remove_row_selection atk_table_remove_row_selection; -alias c_atk_table_set_caption atk_table_set_caption; -alias c_atk_table_set_column_description atk_table_set_column_description; -alias c_atk_table_set_column_header atk_table_set_column_header; -alias c_atk_table_set_row_description atk_table_set_row_description; -alias c_atk_table_set_row_header atk_table_set_row_header; -alias c_atk_table_set_summary atk_table_set_summary; - -// atk.TableCell - -alias c_atk_table_cell_get_type atk_table_cell_get_type; -alias c_atk_table_cell_get_column_header_cells atk_table_cell_get_column_header_cells; -alias c_atk_table_cell_get_column_span atk_table_cell_get_column_span; -alias c_atk_table_cell_get_position atk_table_cell_get_position; -alias c_atk_table_cell_get_row_column_span atk_table_cell_get_row_column_span; -alias c_atk_table_cell_get_row_header_cells atk_table_cell_get_row_header_cells; -alias c_atk_table_cell_get_row_span atk_table_cell_get_row_span; -alias c_atk_table_cell_get_table atk_table_cell_get_table; - -// atk.Text - -alias c_atk_text_get_type atk_text_get_type; -alias c_atk_text_free_ranges atk_text_free_ranges; -alias c_atk_text_add_selection atk_text_add_selection; -alias c_atk_text_get_bounded_ranges atk_text_get_bounded_ranges; -alias c_atk_text_get_caret_offset atk_text_get_caret_offset; -alias c_atk_text_get_character_at_offset atk_text_get_character_at_offset; -alias c_atk_text_get_character_count atk_text_get_character_count; -alias c_atk_text_get_character_extents atk_text_get_character_extents; -alias c_atk_text_get_default_attributes atk_text_get_default_attributes; -alias c_atk_text_get_n_selections atk_text_get_n_selections; -alias c_atk_text_get_offset_at_point atk_text_get_offset_at_point; -alias c_atk_text_get_range_extents atk_text_get_range_extents; -alias c_atk_text_get_run_attributes atk_text_get_run_attributes; -alias c_atk_text_get_selection atk_text_get_selection; -alias c_atk_text_get_string_at_offset atk_text_get_string_at_offset; -alias c_atk_text_get_text atk_text_get_text; -alias c_atk_text_get_text_after_offset atk_text_get_text_after_offset; -alias c_atk_text_get_text_at_offset atk_text_get_text_at_offset; -alias c_atk_text_get_text_before_offset atk_text_get_text_before_offset; -alias c_atk_text_remove_selection atk_text_remove_selection; -alias c_atk_text_scroll_substring_to atk_text_scroll_substring_to; -alias c_atk_text_scroll_substring_to_point atk_text_scroll_substring_to_point; -alias c_atk_text_set_caret_offset atk_text_set_caret_offset; -alias c_atk_text_set_selection atk_text_set_selection; -alias c_atk_attribute_set_free atk_attribute_set_free; -alias c_atk_text_attribute_for_name atk_text_attribute_for_name; -alias c_atk_text_attribute_get_name atk_text_attribute_get_name; -alias c_atk_text_attribute_get_value atk_text_attribute_get_value; -alias c_atk_text_attribute_register atk_text_attribute_register; - -// atk.TextRange - -alias c_atk_text_range_get_type atk_text_range_get_type; - -// atk.Util - -alias c_atk_util_get_type atk_util_get_type; -alias c_atk_add_focus_tracker atk_add_focus_tracker; -alias c_atk_add_global_event_listener atk_add_global_event_listener; -alias c_atk_add_key_event_listener atk_add_key_event_listener; -alias c_atk_focus_tracker_init atk_focus_tracker_init; -alias c_atk_focus_tracker_notify atk_focus_tracker_notify; -alias c_atk_get_focus_object atk_get_focus_object; -alias c_atk_get_root atk_get_root; -alias c_atk_get_toolkit_name atk_get_toolkit_name; -alias c_atk_remove_focus_tracker atk_remove_focus_tracker; -alias c_atk_remove_global_event_listener atk_remove_global_event_listener; -alias c_atk_remove_key_event_listener atk_remove_key_event_listener; - -// atk.Value - -alias c_atk_value_get_type atk_value_get_type; -alias c_atk_value_get_current_value atk_value_get_current_value; -alias c_atk_value_get_increment atk_value_get_increment; -alias c_atk_value_get_maximum_value atk_value_get_maximum_value; -alias c_atk_value_get_minimum_increment atk_value_get_minimum_increment; -alias c_atk_value_get_minimum_value atk_value_get_minimum_value; -alias c_atk_value_get_range atk_value_get_range; -alias c_atk_value_get_sub_ranges atk_value_get_sub_ranges; -alias c_atk_value_get_value_and_text atk_value_get_value_and_text; -alias c_atk_value_set_current_value atk_value_set_current_value; -alias c_atk_value_set_value atk_value_set_value; - -// atk.Window - -alias c_atk_window_get_type atk_window_get_type; - -// atk.Version - -alias c_atk_get_binary_age atk_get_binary_age; -alias c_atk_get_interface_age atk_get_interface_age; -alias c_atk_get_major_version atk_get_major_version; -alias c_atk_get_micro_version atk_get_micro_version; -alias c_atk_get_minor_version atk_get_minor_version; -alias c_atk_get_toolkit_version atk_get_toolkit_version; -alias c_atk_get_version atk_get_version; - -// atk.State - -alias c_atk_state_type_for_name atk_state_type_for_name; -alias c_atk_state_type_get_name atk_state_type_get_name; -alias c_atk_state_type_register atk_state_type_register; diff --git a/generated/gtkd/atk/c/types.d b/generated/gtkd/atk/c/types.d deleted file mode 100644 index c2ef7e3fd..000000000 --- a/generated/gtkd/atk/c/types.d +++ /dev/null @@ -1,3219 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module atk.c.types; - -public import glib.c.types; -public import gobject.c.types; - - -/** - * This is a singly-linked list (a #GSList) of #AtkAttribute. It is - * used by atk_text_get_run_attributes(), - * atk_text_get_default_attributes(), - * atk_editable_text_set_run_attributes(), - * atk_document_get_attributes() and atk_object_get_attributes() - */ -public alias GSList AtkAttributeSet; - -public alias ulong AtkState; - -/** - * Specifies how xy coordinates are to be interpreted. Used by functions such - * as atk_component_get_position() and atk_text_get_character_extents() - */ -public enum AtkCoordType -{ - /** - * specifies xy coordinates relative to the screen - */ - SCREEN = 0, - /** - * specifies xy coordinates relative to the widget's - * top-level window - */ - WINDOW = 1, - /** - * specifies xy coordinates relative to the widget's - * immediate parent. Since: 2.30 - */ - PARENT = 2, -} -alias AtkCoordType CoordType; - -/** - * Describes the type of link - */ -public enum AtkHyperlinkStateFlags -{ - /** - * Link is inline - */ - INLINE = 1, -} -alias AtkHyperlinkStateFlags HyperlinkStateFlags; - -/** - * Specifies the type of a keyboard evemt. - */ -public enum AtkKeyEventType -{ - /** - * specifies a key press event - */ - PRESS = 0, - /** - * specifies a key release event - */ - RELEASE = 1, - /** - * Not a valid value; specifies end of enumeration - */ - LAST_DEFINED = 2, -} -alias AtkKeyEventType KeyEventType; - -/** - * Describes the layer of a component - * - * These enumerated "layer values" are used when determining which UI - * rendering layer a component is drawn into, which can help in making - * determinations of when components occlude one another. - */ -public enum AtkLayer -{ - /** - * The object does not have a layer - */ - INVALID = 0, - /** - * This layer is reserved for the desktop background - */ - BACKGROUND = 1, - /** - * This layer is used for Canvas components - */ - CANVAS = 2, - /** - * This layer is normally used for components - */ - WIDGET = 3, - /** - * This layer is used for layered components - */ - MDI = 4, - /** - * This layer is used for popup components, such as menus - */ - POPUP = 5, - /** - * This layer is reserved for future use. - */ - OVERLAY = 6, - /** - * This layer is used for toplevel windows. - */ - WINDOW = 7, -} -alias AtkLayer Layer; - -/** - * Describes the type of the relation - */ -public enum AtkRelationType -{ - /** - * Not used, represens "no relationship" or an error condition. - */ - NULL = 0, - /** - * Indicates an object controlled by one or more target objects. - */ - CONTROLLED_BY = 1, - /** - * Indicates an object is an controller for one or more target objects. - */ - CONTROLLER_FOR = 2, - /** - * Indicates an object is a label for one or more target objects. - */ - LABEL_FOR = 3, - /** - * Indicates an object is labelled by one or more target objects. - */ - LABELLED_BY = 4, - /** - * Indicates an object is a member of a group of one or more target objects. - */ - MEMBER_OF = 5, - /** - * Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell. - */ - NODE_CHILD_OF = 6, - /** - * Indicates that the object has content that flows logically to another - * AtkObject in a sequential way, (for instance text-flow). - */ - FLOWS_TO = 7, - /** - * Indicates that the object has content that flows logically from - * another AtkObject in a sequential way, (for instance text-flow). - */ - FLOWS_FROM = 8, - /** - * Indicates a subwindow attached to a component but otherwise has no connection in the UI heirarchy to that component. - */ - SUBWINDOW_OF = 9, - /** - * Indicates that the object visually embeds - * another object's content, i.e. this object's content flows around - * another's content. - */ - EMBEDS = 10, - /** - * Reciprocal of %ATK_RELATION_EMBEDS, indicates that - * this object's content is visualy embedded in another object. - */ - EMBEDDED_BY = 11, - /** - * Indicates that an object is a popup for another object. - */ - POPUP_FOR = 12, - /** - * Indicates that an object is a parent window of another object. - */ - PARENT_WINDOW_OF = 13, - /** - * Reciprocal of %ATK_RELATION_DESCRIPTION_FOR. Indicates that one - * or more target objects provide descriptive information about this object. This relation - * type is most appropriate for information that is not essential as its presentation may - * be user-configurable and/or limited to an on-demand mechanism such as an assistive - * technology command. For brief, essential information such as can be found in a widget's - * on-screen label, use %ATK_RELATION_LABELLED_BY. For an on-screen error message, use - * %ATK_RELATION_ERROR_MESSAGE. For lengthy extended descriptive information contained in - * an on-screen object, consider using %ATK_RELATION_DETAILS as assistive technologies may - * provide a means for the user to navigate to objects containing detailed descriptions so - * that their content can be more closely reviewed. - */ - DESCRIBED_BY = 14, - /** - * Reciprocal of %ATK_RELATION_DESCRIBED_BY. Indicates that this - * object provides descriptive information about the target object(s). See also - * %ATK_RELATION_DETAILS_FOR and %ATK_RELATION_ERROR_FOR. - */ - DESCRIPTION_FOR = 15, - /** - * Indicates an object is a cell in a treetable and is expanded to display other cells in the same column. - */ - NODE_PARENT_OF = 16, - /** - * Reciprocal of %ATK_RELATION_DETAILS_FOR. Indicates that this object - * has a detailed or extended description, the contents of which can be found in the target - * object(s). This relation type is most appropriate for information that is sufficiently - * lengthy as to make navigation to the container of that information desirable. For less - * verbose information suitable for announcement only, see %ATK_RELATION_DESCRIBED_BY. If - * the detailed information describes an error condition, %ATK_RELATION_ERROR_FOR should be - * used instead. @Since: ATK-2.26. - */ - DETAILS = 17, - /** - * Reciprocal of %ATK_RELATION_DETAILS. Indicates that this object - * provides a detailed or extended description about the target object(s). See also - * %ATK_RELATION_DESCRIPTION_FOR and %ATK_RELATION_ERROR_FOR. @Since: ATK-2.26. - */ - DETAILS_FOR = 18, - /** - * Reciprocal of %ATK_RELATION_ERROR_FOR. Indicates that this object - * has one or more errors, the nature of which is described in the contents of the target - * object(s). Objects that have this relation type should also contain %ATK_STATE_INVALID_ENTRY - * in their #AtkStateSet. @Since: ATK-2.26. - */ - ERROR_MESSAGE = 19, - /** - * Reciprocal of %ATK_RELATION_ERROR_MESSAGE. Indicates that this object - * contains an error message describing an invalid condition in the target object(s). @Since: - * ATK_2.26. - */ - ERROR_FOR = 20, - /** - * Not used, this value indicates the end of the enumeration. - */ - LAST_DEFINED = 21, -} -alias AtkRelationType RelationType; - -/** - * Describes the role of an object - * - * These are the built-in enumerated roles that UI components can have - * in ATK. Other roles may be added at runtime, so an AtkRole >= - * %ATK_ROLE_LAST_DEFINED is not necessarily an error. - */ -public enum AtkRole -{ - /** - * Invalid role - */ - INVALID = 0, - /** - * A label which represents an accelerator - */ - ACCELERATOR_LABEL = 1, - /** - * An object which is an alert to the user. Assistive Technologies typically respond to ATK_ROLE_ALERT by reading the entire onscreen contents of containers advertising this role. Should be used for warning dialogs, etc. - */ - ALERT = 2, - /** - * An object which is an animated image - */ - ANIMATION = 3, - /** - * An arrow in one of the four cardinal directions - */ - ARROW = 4, - /** - * An object that displays a calendar and allows the user to select a date - */ - CALENDAR = 5, - /** - * An object that can be drawn into and is used to trap events - */ - CANVAS = 6, - /** - * A choice that can be checked or unchecked and provides a separate indicator for the current state - */ - CHECK_BOX = 7, - /** - * A menu item with a check box - */ - CHECK_MENU_ITEM = 8, - /** - * A specialized dialog that lets the user choose a color - */ - COLOR_CHOOSER = 9, - /** - * The header for a column of data - */ - COLUMN_HEADER = 10, - /** - * A collapsible list of choices the user can select from - */ - COMBO_BOX = 11, - /** - * An object whose purpose is to allow a user to edit a date - */ - DATE_EDITOR = 12, - /** - * An inconifed internal frame within a DESKTOP_PANE - */ - DESKTOP_ICON = 13, - /** - * A pane that supports internal frames and iconified versions of those internal frames - */ - DESKTOP_FRAME = 14, - /** - * An object whose purpose is to allow a user to set a value - */ - DIAL = 15, - /** - * A top level window with title bar and a border - */ - DIALOG = 16, - /** - * A pane that allows the user to navigate through and select the contents of a directory - */ - DIRECTORY_PANE = 17, - /** - * An object used for drawing custom user interface elements - */ - DRAWING_AREA = 18, - /** - * A specialized dialog that lets the user choose a file - */ - FILE_CHOOSER = 19, - /** - * A object that fills up space in a user interface - */ - FILLER = 20, - /** - * A specialized dialog that lets the user choose a font - */ - FONT_CHOOSER = 21, - /** - * A top level window with a title bar, border, menubar, etc. - */ - FRAME = 22, - /** - * A pane that is guaranteed to be painted on top of all panes beneath it - */ - GLASS_PANE = 23, - /** - * A document container for HTML, whose children represent the document content - */ - HTML_CONTAINER = 24, - /** - * A small fixed size picture, typically used to decorate components - */ - ICON = 25, - /** - * An object whose primary purpose is to display an image - */ - IMAGE = 26, - /** - * A frame-like object that is clipped by a desktop pane - */ - INTERNAL_FRAME = 27, - /** - * An object used to present an icon or short string in an interface - */ - LABEL = 28, - /** - * A specialized pane that allows its children to be drawn in layers, providing a form of stacking order - */ - LAYERED_PANE = 29, - /** - * An object that presents a list of objects to the user and allows the user to select one or more of them - */ - LIST = 30, - /** - * An object that represents an element of a list - */ - LIST_ITEM = 31, - /** - * An object usually found inside a menu bar that contains a list of actions the user can choose from - */ - MENU = 32, - /** - * An object usually drawn at the top of the primary dialog box of an application that contains a list of menus the user can choose from - */ - MENU_BAR = 33, - /** - * An object usually contained in a menu that presents an action the user can choose - */ - MENU_ITEM = 34, - /** - * A specialized pane whose primary use is inside a DIALOG - */ - OPTION_PANE = 35, - /** - * An object that is a child of a page tab list - */ - PAGE_TAB = 36, - /** - * An object that presents a series of panels (or page tabs), one at a time, through some mechanism provided by the object - */ - PAGE_TAB_LIST = 37, - /** - * A generic container that is often used to group objects - */ - PANEL = 38, - /** - * A text object uses for passwords, or other places where the text content is not shown visibly to the user - */ - PASSWORD_TEXT = 39, - /** - * A temporary window that is usually used to offer the user a list of choices, and then hides when the user selects one of those choices - */ - POPUP_MENU = 40, - /** - * An object used to indicate how much of a task has been completed - */ - PROGRESS_BAR = 41, - /** - * An object the user can manipulate to tell the application to do something - */ - PUSH_BUTTON = 42, - /** - * A specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked - */ - RADIO_BUTTON = 43, - /** - * A check menu item which belongs to a group. At each instant exactly one of the radio menu items from a group is selected - */ - RADIO_MENU_ITEM = 44, - /** - * A specialized pane that has a glass pane and a layered pane as its children - */ - ROOT_PANE = 45, - /** - * The header for a row of data - */ - ROW_HEADER = 46, - /** - * An object usually used to allow a user to incrementally view a large amount of data. - */ - SCROLL_BAR = 47, - /** - * An object that allows a user to incrementally view a large amount of information - */ - SCROLL_PANE = 48, - /** - * An object usually contained in a menu to provide a visible and logical separation of the contents in a menu - */ - SEPARATOR = 49, - /** - * An object that allows the user to select from a bounded range - */ - SLIDER = 50, - /** - * A specialized panel that presents two other panels at the same time - */ - SPLIT_PANE = 51, - /** - * An object used to get an integer or floating point number from the user - */ - SPIN_BUTTON = 52, - /** - * An object which reports messages of minor importance to the user - */ - STATUSBAR = 53, - /** - * An object used to represent information in terms of rows and columns - */ - TABLE = 54, - /** - * A cell in a table - */ - TABLE_CELL = 55, - /** - * The header for a column of a table - */ - TABLE_COLUMN_HEADER = 56, - /** - * The header for a row of a table - */ - TABLE_ROW_HEADER = 57, - /** - * A menu item used to tear off and reattach its menu - */ - TEAR_OFF_MENU_ITEM = 58, - /** - * An object that represents an accessible terminal. (Since: 0.6) - */ - TERMINAL = 59, - /** - * An interactive widget that supports multiple lines of text and - * optionally accepts user input, but whose purpose is not to solicit user input. - * Thus ATK_ROLE_TEXT is appropriate for the text view in a plain text editor - * but inappropriate for an input field in a dialog box or web form. For widgets - * whose purpose is to solicit input from the user, see ATK_ROLE_ENTRY and - * ATK_ROLE_PASSWORD_TEXT. For generic objects which display a brief amount of - * textual information, see ATK_ROLE_STATIC. - */ - TEXT = 60, - /** - * A specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state - */ - TOGGLE_BUTTON = 61, - /** - * A bar or palette usually composed of push buttons or toggle buttons - */ - TOOL_BAR = 62, - /** - * An object that provides information about another object - */ - TOOL_TIP = 63, - /** - * An object used to represent hierarchical information to the user - */ - TREE = 64, - /** - * An object capable of expanding and collapsing rows as well as showing multiple columns of data. (Since: 0.7) - */ - TREE_TABLE = 65, - /** - * The object contains some Accessible information, but its role is not known - */ - UNKNOWN = 66, - /** - * An object usually used in a scroll pane - */ - VIEWPORT = 67, - /** - * A top level window with no title or border. - */ - WINDOW = 68, - /** - * An object that serves as a document header. (Since: 1.1.1) - */ - HEADER = 69, - /** - * An object that serves as a document footer. (Since: 1.1.1) - */ - FOOTER = 70, - /** - * An object which is contains a paragraph of text content. (Since: 1.1.1) - */ - PARAGRAPH = 71, - /** - * An object which describes margins and tab stops, etc. for text objects which it controls (should have CONTROLLER_FOR relation to such). (Since: 1.1.1) - */ - RULER = 72, - /** - * The object is an application object, which may contain @ATK_ROLE_FRAME objects or other types of accessibles. The root accessible of any application's ATK hierarchy should have ATK_ROLE_APPLICATION. (Since: 1.1.4) - */ - APPLICATION = 73, - /** - * The object is a dialog or list containing items for insertion into an entry widget, for instance a list of words for completion of a text entry. (Since: 1.3) - */ - AUTOCOMPLETE = 74, - /** - * The object is an editable text object in a toolbar. (Since: 1.5) - */ - EDIT_BAR = 75, - /** - * The object is an embedded container within a document or panel. This role is a grouping "hint" indicating that the contained objects share a context. (Since: 1.7.2) - */ - EMBEDDED = 76, - /** - * The object is a component whose textual content may be entered or modified by the user, provided @ATK_STATE_EDITABLE is present. (Since: 1.11) - */ - ENTRY = 77, - /** - * The object is a graphical depiction of quantitative data. It may contain multiple subelements whose attributes and/or description may be queried to obtain both the quantitative data and information about how the data is being presented. The LABELLED_BY relation is particularly important in interpreting objects of this type, as is the accessible-description property. (Since: 1.11) - */ - CHART = 78, - /** - * The object contains descriptive information, usually textual, about another user interface element such as a table, chart, or image. (Since: 1.11) - */ - CAPTION = 79, - /** - * The object is a visual frame or container which contains a view of document content. Document frames may occur within another Document instance, in which case the second document may be said to be embedded in the containing instance. HTML frames are often ROLE_DOCUMENT_FRAME. Either this object, or a singleton descendant, should implement the Document interface. (Since: 1.11) - */ - DOCUMENT_FRAME = 80, - /** - * The object serves as a heading for content which follows it in a document. The 'heading level' of the heading, if availabe, may be obtained by querying the object's attributes. - */ - HEADING = 81, - /** - * The object is a containing instance which encapsulates a page of information. @ATK_ROLE_PAGE is used in documents and content which support a paginated navigation model. (Since: 1.11) - */ - PAGE = 82, - /** - * The object is a containing instance of document content which constitutes a particular 'logical' section of the document. The type of content within a section, and the nature of the section division itself, may be obtained by querying the object's attributes. Sections may be nested. (Since: 1.11) - */ - SECTION = 83, - /** - * The object is redundant with another object in the hierarchy, and is exposed for purely technical reasons. Objects of this role should normally be ignored by clients. (Since: 1.11) - */ - REDUNDANT_OBJECT = 84, - /** - * The object is a container for form controls, for instance as part of a - * web form or user-input form within a document. This role is primarily a tag/convenience for - * clients when navigating complex documents, it is not expected that ordinary GUI containers will - * always have ATK_ROLE_FORM. (Since: 1.12.0) - */ - FORM = 85, - /** - * The object is a hypertext anchor, i.e. a "link" in a - * hypertext document. Such objects are distinct from 'inline' - * content which may also use the Hypertext/Hyperlink interfaces - * to indicate the range/location within a text object where - * an inline or embedded object lies. (Since: 1.12.1) - */ - LINK = 86, - /** - * The object is a window or similar viewport - * which is used to allow composition or input of a 'complex character', - * in other words it is an "input method window." (Since: 1.12.1) - */ - INPUT_METHOD_WINDOW = 87, - /** - * A row in a table. (Since: 2.1.0) - */ - TABLE_ROW = 88, - /** - * An object that represents an element of a tree. (Since: 2.1.0) - */ - TREE_ITEM = 89, - /** - * A document frame which contains a spreadsheet. (Since: 2.1.0) - */ - DOCUMENT_SPREADSHEET = 90, - /** - * A document frame which contains a presentation or slide content. (Since: 2.1.0) - */ - DOCUMENT_PRESENTATION = 91, - /** - * A document frame which contains textual content, such as found in a word processing application. (Since: 2.1.0) - */ - DOCUMENT_TEXT = 92, - /** - * A document frame which contains HTML or other markup suitable for display in a web browser. (Since: 2.1.0) - */ - DOCUMENT_WEB = 93, - /** - * A document frame which contains email content to be displayed or composed either in plain text or HTML. (Since: 2.1.0) - */ - DOCUMENT_EMAIL = 94, - /** - * An object found within a document and designed to present a comment, note, or other annotation. In some cases, this object might not be visible until activated. (Since: 2.1.0) - */ - COMMENT = 95, - /** - * A non-collapsible list of choices the user can select from. (Since: 2.1.0) - */ - LIST_BOX = 96, - /** - * A group of related widgets. This group typically has a label. (Since: 2.1.0) - */ - GROUPING = 97, - /** - * An image map object. Usually a graphic with multiple hotspots, where each hotspot can be activated resulting in the loading of another document or section of a document. (Since: 2.1.0) - */ - IMAGE_MAP = 98, - /** - * A transitory object designed to present a message to the user, typically at the desktop level rather than inside a particular application. (Since: 2.1.0) - */ - NOTIFICATION = 99, - /** - * An object designed to present a message to the user within an existing window. (Since: 2.1.0) - */ - INFO_BAR = 100, - /** - * A bar that serves as a level indicator to, for instance, show the strength of a password or the state of a battery. (Since: 2.7.3) - */ - LEVEL_BAR = 101, - /** - * A bar that serves as the title of a window or a - * dialog. (Since: 2.12) - */ - TITLE_BAR = 102, - /** - * An object which contains a text section - * that is quoted from another source. (Since: 2.12) - */ - BLOCK_QUOTE = 103, - /** - * An object which represents an audio element. (Since: 2.12) - */ - AUDIO = 104, - /** - * An object which represents a video element. (Since: 2.12) - */ - VIDEO = 105, - /** - * A definition of a term or concept. (Since: 2.12) - */ - DEFINITION = 106, - /** - * A section of a page that consists of a - * composition that forms an independent part of a document, page, or - * site. Examples: A blog entry, a news story, a forum post. (Since: 2.12) - */ - ARTICLE = 107, - /** - * A region of a web page intended as a - * navigational landmark. This is designed to allow Assistive - * Technologies to provide quick navigation among key regions within a - * document. (Since: 2.12) - */ - LANDMARK = 108, - /** - * A text widget or container holding log content, such - * as chat history and error logs. In this role there is a - * relationship between the arrival of new items in the log and the - * reading order. The log contains a meaningful sequence and new - * information is added only to the end of the log, not at arbitrary - * points. (Since: 2.12) - */ - LOG = 109, - /** - * A container where non-essential information - * changes frequently. Common usages of marquee include stock tickers - * and ad banners. The primary difference between a marquee and a log - * is that logs usually have a meaningful order or sequence of - * important content changes. (Since: 2.12) - */ - MARQUEE = 110, - /** - * A text widget or container that holds a mathematical - * expression. (Since: 2.12) - */ - MATH = 111, - /** - * A widget whose purpose is to display a rating, - * such as the number of stars associated with a song in a media - * player. Objects of this role should also implement - * AtkValue. (Since: 2.12) - */ - RATING = 112, - /** - * An object containing a numerical counter which - * indicates an amount of elapsed time from a start point, or the time - * remaining until an end point. (Since: 2.12) - */ - TIMER = 113, - /** - * An object that represents a list of - * term-value groups. A term-value group represents a individual - * description and consist of one or more names - * (ATK_ROLE_DESCRIPTION_TERM) followed by one or more values - * (ATK_ROLE_DESCRIPTION_VALUE). For each list, there should not be - * more than one group with the same term name. (Since: 2.12) - */ - DESCRIPTION_LIST = 114, - /** - * An object that represents a term or phrase - * with a corresponding definition. (Since: 2.12) - */ - DESCRIPTION_TERM = 115, - /** - * An object that represents the - * description, definition or value of a term. (Since: 2.12) - */ - DESCRIPTION_VALUE = 116, - /** - * A generic non-container object whose purpose is to display a - * brief amount of information to the user and whose role is known by the - * implementor but lacks semantic value for the user. Examples in which - * %ATK_ROLE_STATIC is appropriate include the message displayed in a message box - * and an image used as an alternative means to display text. %ATK_ROLE_STATIC - * should not be applied to widgets which are traditionally interactive, objects - * which display a significant amount of content, or any object which has an - * accessible relation pointing to another object. Implementors should expose the - * displayed information through the accessible name of the object. If doing so seems - * inappropriate, it may indicate that a different role should be used. For - * labels which describe another widget, see %ATK_ROLE_LABEL. For text views, see - * %ATK_ROLE_TEXT. For generic containers, see %ATK_ROLE_PANEL. For objects whose - * role is not known by the implementor, see %ATK_ROLE_UNKNOWN. (Since: 2.16) - */ - STATIC = 117, - /** - * An object that represents a mathematical fraction. - * (Since: 2.16) - */ - MATH_FRACTION = 118, - /** - * An object that represents a mathematical expression - * displayed with a radical. (Since: 2.16) - */ - MATH_ROOT = 119, - /** - * An object that contains text that is displayed as a - * subscript. (Since: 2.16) - */ - SUBSCRIPT = 120, - /** - * An object that contains text that is displayed as a - * superscript. (Since: 2.16) - */ - SUPERSCRIPT = 121, - /** - * An object that contains the text of a footnote. (Since: 2.26) - */ - FOOTNOTE = 122, - /** - * Content previously deleted or proposed to be - * deleted, e.g. in revision history or a content view providing suggestions - * from reviewers. (Since: 2.34) - */ - CONTENT_DELETION = 123, - /** - * Content previously inserted or proposed to be - * inserted, e.g. in revision history or a content view providing suggestions - * from reviewers. (Since: 2.34) - */ - CONTENT_INSERTION = 124, - /** - * A run of content that is marked or highlighted, such as for - * reference purposes, or to call it out as having a special purpose. If the - * marked content has an associated section in the document elaborating on the - * reason for the mark, then %ATK_RELATION_DETAILS should be used on the mark - * to point to that associated section. In addition, the reciprocal relation - * %ATK_RELATION_DETAILS_FOR should be used on the associated content section - * to point back to the mark. (Since: 2.36) - */ - MARK = 125, - /** - * A container for content that is called out as a proposed - * change from the current version of the document, such as by a reviewer of the - * content. This role should include either %ATK_ROLE_CONTENT_DELETION and/or - * %ATK_ROLE_CONTENT_INSERTION children, in any order, to indicate what the - * actual change is. (Since: 2.36) - */ - SUGGESTION = 126, - /** - * not a valid role, used for finding end of the enumeration - */ - LAST_DEFINED = 127, -} -alias AtkRole Role; - -/** - * Specifies where an object should be placed on the screen when using scroll_to. - * - * Since: 2.30 - */ -public enum AtkScrollType -{ - /** - * Scroll the object vertically and horizontally to bring - * its top left corner to the top left corner of the window. - */ - TOP_LEFT = 0, - /** - * Scroll the object vertically and horizontally to - * bring its bottom right corner to the bottom right corner of the window. - */ - BOTTOM_RIGHT = 1, - /** - * Scroll the object vertically to bring its top edge to - * the top edge of the window. - */ - TOP_EDGE = 2, - /** - * Scroll the object vertically to bring its bottom - * edge to the bottom edge of the window. - */ - BOTTOM_EDGE = 3, - /** - * Scroll the object vertically and horizontally to bring - * its left edge to the left edge of the window. - */ - LEFT_EDGE = 4, - /** - * Scroll the object vertically and horizontally to - * bring its right edge to the right edge of the window. - */ - RIGHT_EDGE = 5, - /** - * Scroll the object vertically and horizontally so that - * as much as possible of the object becomes visible. The exact placement is - * determined by the application. - */ - ANYWHERE = 6, -} -alias AtkScrollType ScrollType; - -/** - * The possible types of states of an object - */ -public enum AtkStateType -{ - /** - * Indicates an invalid state - probably an error condition. - */ - INVALID = 0, - /** - * Indicates a window is currently the active window, or an object is the active subelement within a container or table. ATK_STATE_ACTIVE should not be used for objects which have ATK_STATE_FOCUSABLE or ATK_STATE_SELECTABLE: Those objects should use ATK_STATE_FOCUSED and ATK_STATE_SELECTED respectively. ATK_STATE_ACTIVE is a means to indicate that an object which is not focusable and not selectable is the currently-active item within its parent container. - */ - ACTIVE = 1, - /** - * Indicates that the object is 'armed', i.e. will be activated by if a pointer button-release event occurs within its bounds. Buttons often enter this state when a pointer click occurs within their bounds, as a precursor to activation. ATK_STATE_ARMED has been deprecated since ATK-2.16 and should not be used in newly-written code. - */ - ARMED = 2, - /** - * Indicates the current object is busy, i.e. onscreen representation is in the process of changing, or the object is temporarily unavailable for interaction due to activity already in progress. This state may be used by implementors of Document to indicate that content loading is underway. It also may indicate other 'pending' conditions; clients may wish to interrogate this object when the ATK_STATE_BUSY flag is removed. - */ - BUSY = 3, - /** - * Indicates this object is currently checked, for instance a checkbox is 'non-empty'. - */ - CHECKED = 4, - /** - * Indicates that this object no longer has a valid backing widget (for instance, if its peer object has been destroyed) - */ - DEFUNCT = 5, - /** - * Indicates that this object can contain text, and that the - * user can change the textual contents of this object by editing those contents - * directly. For an object which is expected to be editable due to its type, but - * which cannot be edited due to the application or platform preventing the user - * from doing so, that object's #AtkStateSet should lack ATK_STATE_EDITABLE and - * should contain ATK_STATE_READ_ONLY. - */ - EDITABLE = 6, - /** - * Indicates that this object is enabled, i.e. that it currently reflects some application state. Objects that are "greyed out" may lack this state, and may lack the STATE_SENSITIVE if direct user interaction cannot cause them to acquire STATE_ENABLED. See also: ATK_STATE_SENSITIVE - */ - ENABLED = 7, - /** - * Indicates this object allows progressive disclosure of its children - */ - EXPANDABLE = 8, - /** - * Indicates this object its expanded - see ATK_STATE_EXPANDABLE above - */ - EXPANDED = 9, - /** - * Indicates this object can accept keyboard focus, which means all events resulting from typing on the keyboard will normally be passed to it when it has focus - */ - FOCUSABLE = 10, - /** - * Indicates this object currently has the keyboard focus - */ - FOCUSED = 11, - /** - * Indicates the orientation of this object is horizontal; used, for instance, by objects of ATK_ROLE_SCROLL_BAR. For objects where vertical/horizontal orientation is especially meaningful. - */ - HORIZONTAL = 12, - /** - * Indicates this object is minimized and is represented only by an icon - */ - ICONIFIED = 13, - /** - * Indicates something must be done with this object before the user can interact with an object in a different window - */ - MODAL = 14, - /** - * Indicates this (text) object can contain multiple lines of text - */ - MULTI_LINE = 15, - /** - * Indicates this object allows more than one of its children to be selected at the same time, or in the case of text objects, that the object supports non-contiguous text selections. - */ - MULTISELECTABLE = 16, - /** - * Indicates this object paints every pixel within its rectangular region. - */ - OPAQUE = 17, - /** - * Indicates this object is currently pressed. - */ - PRESSED = 18, - /** - * Indicates the size of this object is not fixed - */ - RESIZABLE = 19, - /** - * Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that can be selected - */ - SELECTABLE = 20, - /** - * Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that has been selected - */ - SELECTED = 21, - /** - * Indicates this object is sensitive, e.g. to user interaction. - * STATE_SENSITIVE usually accompanies STATE_ENABLED for user-actionable controls, - * but may be found in the absence of STATE_ENABLED if the current visible state of the - * control is "disconnected" from the application state. In such cases, direct user interaction - * can often result in the object gaining STATE_SENSITIVE, for instance if a user makes - * an explicit selection using an object whose current state is ambiguous or undefined. - * @see STATE_ENABLED, STATE_INDETERMINATE. - */ - SENSITIVE = 22, - /** - * Indicates this object, the object's parent, the object's parent's parent, and so on, - * are all 'shown' to the end-user, i.e. subject to "exposure" if blocking or obscuring objects do not interpose - * between this object and the top of the window stack. - */ - SHOWING = 23, - /** - * Indicates this (text) object can contain only a single line of text - */ - SINGLE_LINE = 24, - /** - * Indicates that the information returned for this object may no longer be - * synchronized with the application state. This is implied if the object has STATE_TRANSIENT, - * and can also occur towards the end of the object peer's lifecycle. It can also be used to indicate that - * the index associated with this object has changed since the user accessed the object (in lieu of - * "index-in-parent-changed" events). - */ - STALE = 25, - /** - * Indicates this object is transient, i.e. a snapshot which may not emit events when its - * state changes. Data from objects with ATK_STATE_TRANSIENT should not be cached, since there may be no - * notification given when the cached data becomes obsolete. - */ - TRANSIENT = 26, - /** - * Indicates the orientation of this object is vertical - */ - VERTICAL = 27, - /** - * Indicates this object is visible, e.g. has been explicitly marked for exposure to the user. - * **note**: %ATK_STATE_VISIBLE is no guarantee that the object is actually unobscured on the screen, only - * that it is 'potentially' visible, barring obstruction, being scrolled or clipped out of the - * field of view, or having an ancestor container that has not yet made visible. - * A widget is potentially onscreen if it has both %ATK_STATE_VISIBLE and %ATK_STATE_SHOWING. - * The absence of %ATK_STATE_VISIBLE and %ATK_STATE_SHOWING is semantically equivalent to saying - * that an object is 'hidden'. See also %ATK_STATE_TRUNCATED, which applies if an object with - * %ATK_STATE_VISIBLE and %ATK_STATE_SHOWING set lies within a viewport which means that its - * contents are clipped, e.g. a truncated spreadsheet cell or - * an image within a scrolling viewport. Mostly useful for screen-review and magnification - * algorithms. - */ - VISIBLE = 28, - /** - * Indicates that "active-descendant-changed" event - * is sent when children become 'active' (i.e. are selected or navigated to onscreen). - * Used to prevent need to enumerate all children in very large containers, like tables. - * The presence of STATE_MANAGES_DESCENDANTS is an indication to the client. - * that the children should not, and need not, be enumerated by the client. - * Objects implementing this state are expected to provide relevant state - * notifications to listening clients, for instance notifications of visibility - * changes and activation of their contained child objects, without the client - * having previously requested references to those children. - */ - MANAGES_DESCENDANTS = 29, - /** - * Indicates that the value, or some other quantifiable - * property, of this AtkObject cannot be fully determined. In the case of a large - * data set in which the total number of items in that set is unknown (e.g. 1 of - * 999+), implementors should expose the currently-known set size (999) along - * with this state. In the case of a check box, this state should be used to - * indicate that the check box is a tri-state check box which is currently - * neither checked nor unchecked. - */ - INDETERMINATE = 30, - /** - * Indicates that an object is truncated, e.g. a text value in a speradsheet cell. - */ - TRUNCATED = 31, - /** - * Indicates that explicit user interaction with an object is required by the user interface, e.g. a required field in a "web-form" interface. - */ - REQUIRED = 32, - /** - * Indicates that the object has encountered an error condition due to failure of input validation. For instance, a form control may acquire this state in response to invalid or malformed user input. - */ - INVALID_ENTRY = 33, - /** - * Indicates that the object in question implements some form of ¨typeahead¨ or - * pre-selection behavior whereby entering the first character of one or more sub-elements - * causes those elements to scroll into view or become selected. Subsequent character input - * may narrow the selection further as long as one or more sub-elements match the string. - * This state is normally only useful and encountered on objects that implement Selection. - * In some cases the typeahead behavior may result in full or partial ¨completion¨ of - * the data in the input field, in which case these input events may trigger text-changed - * events from the AtkText interface. This state supplants @ATK_ROLE_AUTOCOMPLETE. - */ - SUPPORTS_AUTOCOMPLETION = 34, - /** - * Indicates that the object in question supports text selection. It should only be exposed on objects which implement the Text interface, in order to distinguish this state from @ATK_STATE_SELECTABLE, which infers that the object in question is a selectable child of an object which implements Selection. While similar, text selection and subelement selection are distinct operations. - */ - SELECTABLE_TEXT = 35, - /** - * Indicates that the object is the "default" active component, i.e. the object which is activated by an end-user press of the "Enter" or "Return" key. Typically a "close" or "submit" button. - */ - DEFAULT = 36, - /** - * Indicates that the object changes its appearance dynamically as an inherent part of its presentation. This state may come and go if an object is only temporarily animated on the way to a 'final' onscreen presentation. - * **note**: some applications, notably content viewers, may not be able to detect - * all kinds of animated content. Therefore the absence of this state should not - * be taken as definitive evidence that the object's visual representation is - * static; this state is advisory. - */ - ANIMATED = 37, - /** - * Indicates that the object (typically a hyperlink) has already been 'activated', and/or its backing data has already been downloaded, rendered, or otherwise "visited". - */ - VISITED = 38, - /** - * Indicates this object has the potential to be - * checked, such as a checkbox or toggle-able table cell. @Since: - * ATK-2.12 - */ - CHECKABLE = 39, - /** - * Indicates that the object has a popup context - * menu or sub-level menu which may or may not be showing. This means - * that activation renders conditional content. Note that ordinary - * tooltips are not considered popups in this context. @Since: ATK-2.12 - */ - HAS_POPUP = 40, - /** - * Indicates this object has a tooltip. @Since: ATK-2.16 - */ - HAS_TOOLTIP = 41, - /** - * Indicates that a widget which is ENABLED and SENSITIVE - * has a value which can be read, but not modified, by the user. Note that this - * state should only be applied to widget types whose value is normally directly - * user modifiable, such as check boxes, radio buttons, spin buttons, text input - * fields, and combo boxes, as a means to convey that the expected interaction - * with that widget is not possible. When the expected interaction with a - * widget does not include modification by the user, as is the case with - * labels and containers, ATK_STATE_READ_ONLY should not be applied. See also - * ATK_STATE_EDITABLE. @Since: ATK-2-16 - */ - READ_ONLY = 42, - /** - * Not a valid state, used for finding end of enumeration - */ - LAST_DEFINED = 43, -} -alias AtkStateType StateType; - -/** - * Describes the text attributes supported - */ -public enum AtkTextAttribute -{ - /** - * Invalid attribute, like bad spelling or grammar. - */ - INVALID = 0, - /** - * The pixel width of the left margin - */ - LEFT_MARGIN = 1, - /** - * The pixel width of the right margin - */ - RIGHT_MARGIN = 2, - /** - * The number of pixels that the text is indented - */ - INDENT = 3, - /** - * Either "true" or "false" indicating whether text is visible or not - */ - INVISIBLE = 4, - /** - * Either "true" or "false" indicating whether text is editable or not - */ - EDITABLE = 5, - /** - * Pixels of blank space to leave above each newline-terminated line. - */ - PIXELS_ABOVE_LINES = 6, - /** - * Pixels of blank space to leave below each newline-terminated line. - */ - PIXELS_BELOW_LINES = 7, - /** - * Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph). - */ - PIXELS_INSIDE_WRAP = 8, - /** - * "true" or "false" whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character. - */ - BG_FULL_HEIGHT = 9, - /** - * Number of pixels that the characters are risen above the baseline. See also ATK_TEXT_ATTR_TEXT_POSITION. - */ - RISE = 10, - /** - * "none", "single", "double", "low", or "error" - */ - UNDERLINE = 11, - /** - * "true" or "false" whether the text is strikethrough - */ - STRIKETHROUGH = 12, - /** - * The size of the characters in points. eg: 10 - */ - SIZE = 13, - /** - * The scale of the characters. The value is a string representation of a double - */ - SCALE = 14, - /** - * The weight of the characters. - */ - WEIGHT = 15, - /** - * The language used - */ - LANGUAGE = 16, - /** - * The font family name - */ - FAMILY_NAME = 17, - /** - * The background color. The value is an RGB value of the format "%u,%u,%u" - */ - BG_COLOR = 18, - /** - * The foreground color. The value is an RGB value of the format "%u,%u,%u" - */ - FG_COLOR = 19, - /** - * "true" if a #GdkBitmap is set for stippling the background color. - */ - BG_STIPPLE = 20, - /** - * "true" if a #GdkBitmap is set for stippling the foreground color. - */ - FG_STIPPLE = 21, - /** - * The wrap mode of the text, if any. Values are "none", "char", "word", or "word_char". - */ - WRAP_MODE = 22, - /** - * The direction of the text, if set. Values are "none", "ltr" or "rtl" - */ - DIRECTION = 23, - /** - * The justification of the text, if set. Values are "left", "right", "center" or "fill" - */ - JUSTIFICATION = 24, - /** - * The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded" - */ - STRETCH = 25, - /** - * The capitalization variant of the text, if set. Values are "normal" or "small_caps" - */ - VARIANT = 26, - /** - * The slant style of the text, if set. Values are "normal", "oblique" or "italic" - */ - STYLE = 27, - /** - * The vertical position with respect to the baseline. Values are "baseline", "super", or "sub". Note that a super or sub text attribute refers to position with respect to the baseline of the prior character. - */ - TEXT_POSITION = 28, - /** - * not a valid text attribute, used for finding end of enumeration - */ - LAST_DEFINED = 29, -} -alias AtkTextAttribute TextAttribute; - -/** - * Text boundary types used for specifying boundaries for regions of text. - * This enumeration is deprecated since 2.9.4 and should not be used. Use - * AtkTextGranularity with #atk_text_get_string_at_offset instead. - */ -public enum AtkTextBoundary -{ - /** - * Boundary is the boundary between characters - * (including non-printing characters) - */ - CHAR = 0, - /** - * Boundary is the start (i.e. first character) of a word. - */ - WORD_START = 1, - /** - * Boundary is the end (i.e. last - * character) of a word. - */ - WORD_END = 2, - /** - * Boundary is the first character in a sentence. - */ - SENTENCE_START = 3, - /** - * Boundary is the last (terminal) - * character in a sentence; in languages which use "sentence stop" - * punctuation such as English, the boundary is thus the '.', '?', or - * similar terminal punctuation character. - */ - SENTENCE_END = 4, - /** - * Boundary is the initial character of the content or a - * character immediately following a newline, linefeed, or return character. - */ - LINE_START = 5, - /** - * Boundary is the linefeed, or return - * character. - */ - LINE_END = 6, -} -alias AtkTextBoundary TextBoundary; - -/** - * Describes the type of clipping required. - */ -public enum AtkTextClipType -{ - /** - * No clipping to be done - */ - NONE = 0, - /** - * Text clipped by min coordinate is omitted - */ - MIN = 1, - /** - * Text clipped by max coordinate is omitted - */ - MAX = 2, - /** - * Only text fully within mix/max bound is retained - */ - BOTH = 3, -} -alias AtkTextClipType TextClipType; - -/** - * Text granularity types used for specifying the granularity of the region of - * text we are interested in. - */ -public enum AtkTextGranularity -{ - /** - * Granularity is defined by the boundaries between characters - * (including non-printing characters) - */ - CHAR = 0, - /** - * Granularity is defined by the boundaries of a word, - * starting at the beginning of the current word and finishing at the beginning of - * the following one, if present. - */ - WORD = 1, - /** - * Granularity is defined by the boundaries of a sentence, - * starting at the beginning of the current sentence and finishing at the beginning of - * the following one, if present. - */ - SENTENCE = 2, - /** - * Granularity is defined by the boundaries of a line, - * starting at the beginning of the current line and finishing at the beginning of - * the following one, if present. - */ - LINE = 3, - /** - * Granularity is defined by the boundaries of a paragraph, - * starting at the beginning of the current paragraph and finishing at the beginning of - * the following one, if present. - */ - PARAGRAPH = 4, -} -alias AtkTextGranularity TextGranularity; - -/** - * Default types for a given value. Those are defined in order to - * easily get localized strings to describe a given value or a given - * subrange, using atk_value_type_get_localized_name(). - */ -public enum AtkValueType -{ - VERY_WEAK = 0, - WEAK = 1, - ACCEPTABLE = 2, - STRONG = 3, - VERY_STRONG = 4, - VERY_LOW = 5, - LOW = 6, - MEDIUM = 7, - HIGH = 8, - VERY_HIGH = 9, - VERY_BAD = 10, - BAD = 11, - GOOD = 12, - VERY_GOOD = 13, - BEST = 14, - LAST_DEFINED = 15, -} -alias AtkValueType ValueType; - -struct AtkAction; - -/** - * The #AtkAction interface should be supported by any object that can - * perform one or more actions. The interface provides the standard - * mechanism for an assistive technology to determine what those actions - * are as well as tell the object to perform them. Any object that can - * be manipulated should support this interface. - */ -struct AtkActionIface -{ - GTypeInterface parent; - /** - * - * Params: - * action = a #GObject instance that implements AtkActionIface - * i = the action index corresponding to the action to be performed - * Returns: %TRUE if success, %FALSE otherwise - */ - extern(C) int function(AtkAction* action, int i) doAction; - /** - * - * Params: - * action = a #GObject instance that implements AtkActionIface - * Returns: a the number of actions, or 0 if @action does not - * implement this interface. - */ - extern(C) int function(AtkAction* action) getNActions; - /** - * - * Params: - * action = a #GObject instance that implements AtkActionIface - * i = the action index corresponding to the action to be performed - * Returns: a description string, or %NULL if @action does - * not implement this interface. - */ - extern(C) const(char)* function(AtkAction* action, int i) getDescription; - /** - * - * Params: - * action = a #GObject instance that implements AtkActionIface - * i = the action index corresponding to the action to be performed - * Returns: a name string, or %NULL if @action does not - * implement this interface. - */ - extern(C) const(char)* function(AtkAction* action, int i) getName; - /** - * - * Params: - * action = a #GObject instance that implements AtkActionIface - * i = the action index corresponding to the action to be performed - * Returns: the keybinding which can be used to activate - * this action, or %NULL if there is no keybinding for this action. - */ - extern(C) const(char)* function(AtkAction* action, int i) getKeybinding; - /** - * - * Params: - * action = a #GObject instance that implements AtkActionIface - * i = the action index corresponding to the action to be performed - * desc = the description to be assigned to this action - * Returns: a gboolean representing if the description was successfully set; - */ - extern(C) int function(AtkAction* action, int i, const(char)* desc) setDescription; - /** - * - * Params: - * action = a #GObject instance that implements AtkActionIface - * i = the action index corresponding to the action to be performed - * Returns: a name string, or %NULL if @action does not - * implement this interface. - */ - extern(C) const(char)* function(AtkAction* action, int i) getLocalizedName; -} - -struct AtkComponent; - -/** - * The AtkComponent interface should be supported by any object that is - * rendered on the screen. The interface provides the standard mechanism - * for an assistive technology to determine and set the graphical - * representation of an object. - */ -struct AtkComponentIface -{ - GTypeInterface parent; - /** - * - * Params: - * component = The #AtkComponent to attach the @handler to - * handler = The #AtkFocusHandler to be attached to @component - * Returns: a handler id which can be used in atk_component_remove_focus_handler() - * or zero if the handler was already added. - */ - extern(C) uint function(AtkComponent* component, AtkFocusHandler handler) addFocusHandler; - /** - * - * Params: - * component = the #AtkComponent - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * Returns: %TRUE or %FALSE indicating whether the specified point is within - * the extent of the @component or not - */ - extern(C) int function(AtkComponent* component, int x, int y, AtkCoordType coordType) contains; - /** - * - * Params: - * component = the #AtkComponent - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * Returns: a reference to the accessible - * child, if one exists - */ - extern(C) AtkObject* function(AtkComponent* component, int x, int y, AtkCoordType coordType) refAccessibleAtPoint; - /** */ - extern(C) void function(AtkComponent* component, int* x, int* y, int* width, int* height, AtkCoordType coordType) getExtents; - /** */ - extern(C) void function(AtkComponent* component, int* x, int* y, AtkCoordType coordType) getPosition; - /** */ - extern(C) void function(AtkComponent* component, int* width, int* height) getSize; - /** - * - * Params: - * component = an #AtkComponent - * Returns: %TRUE if successful, %FALSE otherwise. - */ - extern(C) int function(AtkComponent* component) grabFocus; - /** */ - extern(C) void function(AtkComponent* component, uint handlerId) removeFocusHandler; - /** - * - * Params: - * component = an #AtkComponent - * x = x coordinate - * y = y coordinate - * width = width to set for @component - * height = height to set for @component - * coordType = specifies whether the coordinates are relative to the screen - * or to the components top level window - * Returns: %TRUE or %FALSE whether the extents were set or not - */ - extern(C) int function(AtkComponent* component, int x, int y, int width, int height, AtkCoordType coordType) setExtents; - /** - * - * Params: - * component = an #AtkComponent - * x = x coordinate - * y = y coordinate - * coordType = specifies whether the coordinates are relative to the screen - * or to the component's top level window - * Returns: %TRUE or %FALSE whether or not the position was set or not - */ - extern(C) int function(AtkComponent* component, int x, int y, AtkCoordType coordType) setPosition; - /** - * - * Params: - * component = an #AtkComponent - * width = width to set for @component - * height = height to set for @component - * Returns: %TRUE or %FALSE whether the size was set or not - */ - extern(C) int function(AtkComponent* component, int width, int height) setSize; - /** - * - * Params: - * component = an #AtkComponent - * Returns: an #AtkLayer which is the layer of the component - */ - extern(C) AtkLayer function(AtkComponent* component) getLayer; - /** - * - * Params: - * component = an #AtkComponent - * Returns: a gint which is the zorder of the component, i.e. the depth at - * which the component is shown in relation to other components in the same - * container. - */ - extern(C) int function(AtkComponent* component) getMdiZorder; - /** */ - extern(C) void function(AtkComponent* component, AtkRectangle* bounds) boundsChanged; - /** - * - * Params: - * component = an #AtkComponent - * Returns: An alpha value from 0 to 1.0, inclusive. - */ - extern(C) double function(AtkComponent* component) getAlpha; - /** - * - * Params: - * component = an #AtkComponent - * type = specify where the object should be made visible. - * Returns: whether scrolling was successful. - */ - extern(C) int function(AtkComponent* component, AtkScrollType type) scrollTo; - /** - * - * Params: - * component = an #AtkComponent - * coords = specify whether coordinates are relative to the screen or to the - * parent object. - * x = x-position where to scroll to - * y = y-position where to scroll to - * Returns: whether scrolling was successful. - */ - extern(C) int function(AtkComponent* component, AtkCoordType coords, int x, int y) scrollToPoint; -} - -struct AtkDocument; - -struct AtkDocumentIface -{ - GTypeInterface parent; - /** - * - * Params: - * document = a #GObject instance that implements AtkDocumentIface - * Returns: a string indicating the document type - */ - extern(C) const(char)* function(AtkDocument* document) getDocumentType; - /** - * - * Params: - * document = a #GObject instance that implements AtkDocumentIface - * Returns: a %gpointer that points to an instance of the DOM. - */ - extern(C) void* function(AtkDocument* document) getDocument; - /** - * - * Params: - * document = a #GObject instance that implements AtkDocumentIface - * Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES - * locale of the document content as a whole, or NULL if - * the document content does not specify a locale. - */ - extern(C) const(char)* function(AtkDocument* document) getDocumentLocale; - /** - * - * Params: - * document = a #GObject instance that implements AtkDocumentIface - * Returns: An AtkAttributeSet containing the explicitly - * set name-value-pair attributes associated with this document - * as a whole. - */ - extern(C) AtkAttributeSet* function(AtkDocument* document) getDocumentAttributes; - /** - * - * Params: - * document = a #GObject instance that implements AtkDocumentIface - * attributeName = a character string representing the name of the attribute - * whose value is being queried. - * Returns: a string value associated with the named - * attribute for this document, or %NULL if a value for - * @attribute_name has not been specified for this document. - */ - extern(C) const(char)* function(AtkDocument* document, const(char)* attributeName) getDocumentAttributeValue; - /** - * - * Params: - * document = a #GObject instance that implements #AtkDocumentIface - * attributeName = a character string representing the name of the attribute - * whose value is being set. - * attributeValue = a string value to be associated with @attribute_name. - * Returns: %TRUE if @attribute_value is successfully associated - * with @attribute_name for this @document, and %FALSE if if the - * document does not allow the attribute to be modified - */ - extern(C) int function(AtkDocument* document, const(char)* attributeName, const(char)* attributeValue) setDocumentAttribute; - /** - * - * Params: - * document = the #AtkDocument - * Returns: the current page number inside @document, or -1 if - * not implemented, not know by the implementor, or irrelevant. - */ - extern(C) int function(AtkDocument* document) getCurrentPageNumber; - /** - * - * Params: - * document = the #AtkDocument - * Returns: total page count of @document, or -1 if not implemented, - * not know by the implementor or irrelevant. - */ - extern(C) int function(AtkDocument* document) getPageCount; -} - -struct AtkEditableText; - -struct AtkEditableTextIface -{ - GTypeInterface parentInterface; - /** - * - * Params: - * text = an #AtkEditableText - * attribSet = an #AtkAttributeSet - * startOffset = start of range in which to set attributes - * endOffset = end of range in which to set attributes - * Returns: %TRUE if attributes successfully set for the specified - * range, otherwise %FALSE - */ - extern(C) int function(AtkEditableText* text, AtkAttributeSet* attribSet, int startOffset, int endOffset) setRunAttributes; - /** */ - extern(C) void function(AtkEditableText* text, const(char)* string_) setTextContents; - /** */ - extern(C) void function(AtkEditableText* text, const(char)* string_, int length, int* position) insertText; - /** */ - extern(C) void function(AtkEditableText* text, int startPos, int endPos) copyText; - /** */ - extern(C) void function(AtkEditableText* text, int startPos, int endPos) cutText; - /** */ - extern(C) void function(AtkEditableText* text, int startPos, int endPos) deleteText; - /** */ - extern(C) void function(AtkEditableText* text, int position) pasteText; -} - -struct AtkGObjectAccessible -{ - AtkObject parent; -} - -struct AtkGObjectAccessibleClass -{ - AtkObjectClass parentClass; - AtkFunction pad1; - AtkFunction pad2; -} - -struct AtkHyperlink -{ - GObject parent; -} - -struct AtkHyperlinkClass -{ - GObjectClass parent; - /** - * - * Params: - * link = an #AtkHyperlink - * i = a (zero-index) integer specifying the desired anchor - * Returns: a string specifying the URI - */ - extern(C) char* function(AtkHyperlink* link, int i) getUri; - /** - * - * Params: - * link = an #AtkHyperlink - * i = a (zero-index) integer specifying the desired anchor - * Returns: an #AtkObject associated with this hyperlinks - * i-th anchor - */ - extern(C) AtkObject* function(AtkHyperlink* link, int i) getObject; - /** - * - * Params: - * link = an #AtkHyperlink - * Returns: the index with the hypertext document at which this link ends - */ - extern(C) int function(AtkHyperlink* link) getEndIndex; - /** - * - * Params: - * link = an #AtkHyperlink - * Returns: the index with the hypertext document at which this link begins - */ - extern(C) int function(AtkHyperlink* link) getStartIndex; - /** - * - * Params: - * link = an #AtkHyperlink - * Returns: whether or not this link is still valid - */ - extern(C) int function(AtkHyperlink* link) isValid; - /** - * - * Params: - * link = an #AtkHyperlink - * Returns: the number of anchors associated with this hyperlink - */ - extern(C) int function(AtkHyperlink* link) getNAnchors; - /** */ - extern(C) uint function(AtkHyperlink* link) linkState; - /** - * - * Params: - * link = an #AtkHyperlink - * Returns: True if the AtkHyperlink is selected, False otherwise - */ - extern(C) int function(AtkHyperlink* link) isSelectedLink; - /** */ - extern(C) void function(AtkHyperlink* link) linkActivated; - AtkFunction pad1; -} - -struct AtkHyperlinkImpl; - -struct AtkHyperlinkImplIface -{ - GTypeInterface parent; - /** - * - * Params: - * impl = a #GObject instance that implements AtkHyperlinkImplIface - * Returns: an AtkHyperlink object which points to this - * implementing AtkObject. - */ - extern(C) AtkHyperlink* function(AtkHyperlinkImpl* impl) getHyperlink; -} - -struct AtkHypertext; - -struct AtkHypertextIface -{ - GTypeInterface parent; - /** - * - * Params: - * hypertext = an #AtkHypertext - * linkIndex = an integer specifying the desired link - * Returns: the link in this hypertext document at - * index @link_index - */ - extern(C) AtkHyperlink* function(AtkHypertext* hypertext, int linkIndex) getLink; - /** - * - * Params: - * hypertext = an #AtkHypertext - * Returns: the number of links within this hypertext document - */ - extern(C) int function(AtkHypertext* hypertext) getNLinks; - /** - * - * Params: - * hypertext = an #AtkHypertext - * charIndex = a character index - * Returns: an index into the array of hyperlinks in @hypertext, - * or -1 if there is no hyperlink associated with this character. - */ - extern(C) int function(AtkHypertext* hypertext, int charIndex) getLinkIndex; - /** */ - extern(C) void function(AtkHypertext* hypertext, int linkIndex) linkSelected; -} - -struct AtkImage; - -struct AtkImageIface -{ - GTypeInterface parent; - /** */ - extern(C) void function(AtkImage* image, int* x, int* y, AtkCoordType coordType) getImagePosition; - /** - * - * Params: - * image = a #GObject instance that implements AtkImageIface - * Returns: a string representing the image description - */ - extern(C) const(char)* function(AtkImage* image) getImageDescription; - /** */ - extern(C) void function(AtkImage* image, int* width, int* height) getImageSize; - /** - * - * Params: - * image = a #GObject instance that implements AtkImageIface - * description = a string description to set for @image - * Returns: boolean TRUE, or FALSE if operation could - * not be completed. - */ - extern(C) int function(AtkImage* image, const(char)* description) setImageDescription; - /** - * - * Params: - * image = An #AtkImage - * Returns: a string corresponding to the POSIX - * `LC_MESSAGES` locale used by the image description, or - * %NULL if the image does not specify a locale. - */ - extern(C) const(char)* function(AtkImage* image) getImageLocale; -} - -struct AtkImplementor; - -/** - * Encapsulates information about a key event. - */ -struct AtkKeyEventStruct -{ - /** - * An AtkKeyEventType, generally one of ATK_KEY_EVENT_PRESS or ATK_KEY_EVENT_RELEASE - */ - int type; - /** - * A bitmask representing the state of the modifier keys immediately after the event takes place. - * The meaning of the bits is currently defined to match the bitmask used by GDK in - * GdkEventType.state, see - * http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey - */ - uint state; - /** - * A guint representing a keysym value corresponding to those used by GDK and X11: see - * /usr/X11/include/keysymdef.h. - */ - uint keyval; - /** - * The length of member #string. - */ - int length; - /** - * A string containing one of the following: either a string approximating the text that would - * result from this keypress, if the key is a control or graphic character, or a symbolic name for this keypress. - * Alphanumeric and printable keys will have the symbolic key name in this string member, for instance "A". "0", - * "semicolon", "aacute". Keypad keys have the prefix "KP". - */ - char* string_; - /** - * The raw hardware code that generated the key event. This field is raraly useful. - */ - ushort keycode; - /** - * A timestamp in milliseconds indicating when the event occurred. - * These timestamps are relative to a starting point which should be considered arbitrary, - * and only used to compare the dispatch times of events to one another. - */ - uint timestamp; -} - -struct AtkMisc -{ - GObject parent; -} - -/** - * Usage of AtkMisc is deprecated since 2.12 and heavily discouraged. - */ -struct AtkMiscClass -{ - GObjectClass parent; - /** */ - extern(C) void function(AtkMisc* misc) threadsEnter; - /** */ - extern(C) void function(AtkMisc* misc) threadsLeave; - void*[32] vfuncs; -} - -struct AtkNoOpObject -{ - AtkObject parent; -} - -struct AtkNoOpObjectClass -{ - AtkObjectClass parentClass; -} - -struct AtkNoOpObjectFactory -{ - AtkObjectFactory parent; -} - -struct AtkNoOpObjectFactoryClass -{ - AtkObjectFactoryClass parentClass; -} - -struct AtkObject -{ - GObject parent; - char* description; - char* name; - AtkObject* accessibleParent; - AtkRole role; - AtkRelationSet* relationSet; - AtkLayer layer; -} - -struct AtkObjectClass -{ - GObjectClass parent; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: a character string representing the accessible name of the object. - */ - extern(C) const(char)* function(AtkObject* accessible) getName; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: a character string representing the accessible description - * of the accessible. - */ - extern(C) const(char)* function(AtkObject* accessible) getDescription; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: an #AtkObject representing the accessible - * parent of the accessible - */ - extern(C) AtkObject* function(AtkObject* accessible) getParent; - /** */ - extern(C) int function(AtkObject* accessible) getNChildren; - /** */ - extern(C) AtkObject* function(AtkObject* accessible, int i) refChild; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: an integer which is the index of the accessible in its parent - */ - extern(C) int function(AtkObject* accessible) getIndexInParent; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: an #AtkRelationSet representing the relation set - * of the object. - */ - extern(C) AtkRelationSet* function(AtkObject* accessible) refRelationSet; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: an #AtkRole which is the role of the accessible - */ - extern(C) AtkRole function(AtkObject* accessible) getRole; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: an #AtkLayer which is the layer of the accessible - */ - extern(C) AtkLayer function(AtkObject* accessible) getLayer; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: a gint which is the zorder of the accessible, i.e. the depth at - * which the component is shown in relation to other components in the same - * container. - */ - extern(C) int function(AtkObject* accessible) getMdiZorder; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: a reference to an #AtkStateSet which is the state - * set of the accessible - */ - extern(C) AtkStateSet* function(AtkObject* accessible) refStateSet; - /** */ - extern(C) void function(AtkObject* accessible, const(char)* name) setName; - /** */ - extern(C) void function(AtkObject* accessible, const(char)* description) setDescription; - /** */ - extern(C) void function(AtkObject* accessible, AtkObject* parent) setParent; - /** */ - extern(C) void function(AtkObject* accessible, AtkRole role) setRole; - /** - * - * Params: - * accessible = an #AtkObject - * handler = a function to be called when a property changes its value - * Returns: a #guint which is the handler id used in - * atk_object_remove_property_change_handler() - */ - extern(C) uint function(AtkObject* accessible, AtkPropertyChangeHandler* handler) connectPropertyChangeHandler; - /** */ - extern(C) void function(AtkObject* accessible, uint handlerId) removePropertyChangeHandler; - /** */ - extern(C) void function(AtkObject* accessible, void* data) initialize; - /** */ - extern(C) void function(AtkObject* accessible, uint changeIndex, void* changedChild) childrenChanged; - /** */ - extern(C) void function(AtkObject* accessible, int focusIn) focusEvent; - /** */ - extern(C) void function(AtkObject* accessible, AtkPropertyValues* values) propertyChange; - /** */ - extern(C) void function(AtkObject* accessible, const(char)* name, int stateSet) stateChange; - /** */ - extern(C) void function(AtkObject* accessible) visibleDataChanged; - /** */ - extern(C) void function(AtkObject* accessible, void** child) activeDescendantChanged; - /** - * - * Params: - * accessible = An #AtkObject. - * Returns: an #AtkAttributeSet consisting of all - * explicit properties/annotations applied to the object, or an empty - * set if the object has no name-value pair attributes assigned to - * it. This #atkattributeset should be freed by a call to - * atk_attribute_set_free(). - */ - extern(C) AtkAttributeSet* function(AtkObject* accessible) getAttributes; - /** - * - * Params: - * accessible = an #AtkObject - * Returns: a UTF-8 string indicating the POSIX-style LC_MESSAGES - * locale of @accessible. - */ - extern(C) const(char)* function(AtkObject* accessible) getObjectLocale; - AtkFunction pad1; -} - -struct AtkObjectFactory -{ - GObject parent; -} - -struct AtkObjectFactoryClass -{ - GObjectClass parentClass; - /** */ - extern(C) AtkObject* function(GObject* obj) createAccessible; - /** */ - extern(C) void function(AtkObjectFactory* factory) invalidate; - /** */ - extern(C) GType function() getAccessibleType; - AtkFunction pad1; - AtkFunction pad2; -} - -struct AtkPlug -{ - AtkObject parent; -} - -struct AtkPlugClass -{ - AtkObjectClass parentClass; - /** */ - extern(C) char* function(AtkPlug* obj) getObjectId; -} - -/** - * Note: @old_value field of #AtkPropertyValues will not contain a - * valid value. This is a field defined with the purpose of contain - * the previous value of the property, but is not used anymore. - */ -struct AtkPropertyValues -{ - /** - * The name of the ATK property which has changed. - */ - const(char)* propertyName; - /** - * NULL. This field is not used anymore. - */ - GValue oldValue; - /** - * The new value of the named property. - */ - GValue newValue; -} - -struct AtkRange; - -/** - * A data structure for holding a rectangle. Those coordinates are - * relative to the component top-level parent. - */ -struct AtkRectangle -{ - /** - * X coordinate of the left side of the rectangle. - */ - int x; - /** - * Y coordinate of the top side of the rectangle. - */ - int y; - /** - * width of the rectangle. - */ - int width; - /** - * height of the rectangle. - */ - int height; -} - -struct AtkRegistry -{ - GObject parent; - GHashTable* factoryTypeRegistry; - GHashTable* factorySingletonCache; -} - -struct AtkRegistryClass -{ - GObjectClass parentClass; -} - -struct AtkRelation -{ - GObject parent; - GPtrArray* target; - AtkRelationType relationship; -} - -struct AtkRelationClass -{ - GObjectClass parent; -} - -struct AtkRelationSet -{ - GObject parent; - GPtrArray* relations; -} - -struct AtkRelationSetClass -{ - GObjectClass parent; - AtkFunction pad1; - AtkFunction pad2; -} - -struct AtkSelection; - -struct AtkSelectionIface -{ - GTypeInterface parent; - /** - * - * Params: - * selection = a #GObject instance that implements AtkSelectionIface - * i = a #gint specifying the child index. - * Returns: TRUE if success, FALSE otherwise. - */ - extern(C) int function(AtkSelection* selection, int i) addSelection; - /** - * - * Params: - * selection = a #GObject instance that implements AtkSelectionIface - * Returns: TRUE if success, FALSE otherwise. - */ - extern(C) int function(AtkSelection* selection) clearSelection; - /** - * - * Params: - * selection = a #GObject instance that implements AtkSelectionIface - * i = a #gint specifying the index in the selection set. (e.g. the - * ith selection as opposed to the ith child). - * Returns: an #AtkObject representing the - * selected accessible, or %NULL if @selection does not implement this - * interface. - */ - extern(C) AtkObject* function(AtkSelection* selection, int i) refSelection; - /** - * - * Params: - * selection = a #GObject instance that implements AtkSelectionIface - * Returns: a gint representing the number of items selected, or 0 - * if @selection does not implement this interface. - */ - extern(C) int function(AtkSelection* selection) getSelectionCount; - /** - * - * Params: - * selection = a #GObject instance that implements AtkSelectionIface - * i = a #gint specifying the child index. - * Returns: a gboolean representing the specified child is selected, or 0 - * if @selection does not implement this interface. - */ - extern(C) int function(AtkSelection* selection, int i) isChildSelected; - /** - * - * Params: - * selection = a #GObject instance that implements AtkSelectionIface - * i = a #gint specifying the index in the selection set. (e.g. the - * ith selection as opposed to the ith child). - * Returns: TRUE if success, FALSE otherwise. - */ - extern(C) int function(AtkSelection* selection, int i) removeSelection; - /** - * - * Params: - * selection = a #GObject instance that implements AtkSelectionIface - * Returns: TRUE if success, FALSE otherwise. - */ - extern(C) int function(AtkSelection* selection) selectAllSelection; - /** */ - extern(C) void function(AtkSelection* selection) selectionChanged; -} - -struct AtkSocket -{ - AtkObject parent; - char* embeddedPlugId; -} - -struct AtkSocketClass -{ - AtkObjectClass parentClass; - /** */ - extern(C) void function(AtkSocket* obj, const(char)* plugId) embed; -} - -struct AtkStateSet -{ - GObject parent; -} - -struct AtkStateSetClass -{ - GObjectClass parent; -} - -struct AtkStreamableContent; - -struct AtkStreamableContentIface -{ - GTypeInterface parent; - /** - * - * Params: - * streamable = a GObject instance that implements AtkStreamableContentIface - * Returns: a gint which is the number of mime types supported by the object. - */ - extern(C) int function(AtkStreamableContent* streamable) getNMimeTypes; - /** - * - * Params: - * streamable = a GObject instance that implements AtkStreamableContent - * i = a gint representing the position of the mime type starting from 0 - * Returns: a gchar* representing the specified mime type; the caller - * should not free the character string. - */ - extern(C) const(char)* function(AtkStreamableContent* streamable, int i) getMimeType; - /** - * - * Params: - * streamable = a GObject instance that implements AtkStreamableContentIface - * mimeType = a gchar* representing the mime type - * Returns: A #GIOChannel which contains the content in the - * specified mime type. - */ - extern(C) GIOChannel* function(AtkStreamableContent* streamable, const(char)* mimeType) getStream; - /** - * - * Params: - * streamable = a GObject instance that implements AtkStreamableContentIface - * mimeType = a gchar* representing the mime type, or NULL to request a URI - * for the default mime type. - * Returns: Returns a string representing a URI, or %NULL - * if no corresponding URI can be constructed. - */ - extern(C) const(char)* function(AtkStreamableContent* streamable, const(char)* mimeType) getUri; - AtkFunction pad1; - AtkFunction pad2; - AtkFunction pad3; -} - -struct AtkTable; - -struct AtkTableCell; - -/** - * AtkTableCell is an interface for cells inside an #AtkTable. - * - * Since: 2.12 - */ -struct AtkTableCellIface -{ - GTypeInterface parent; - /** - * - * Params: - * cell = a GObject instance that implements AtkTableCellIface - * Returns: a gint representing the number of columns occupied by this cell, - * or 0 if the cell does not implement this method. - */ - extern(C) int function(AtkTableCell* cell) getColumnSpan; - /** - * - * Params: - * cell = a GObject instance that implements AtkTableCellIface - * Returns: a GPtrArray of AtkObjects - * representing the column header cells. - */ - extern(C) GPtrArray* function(AtkTableCell* cell) getColumnHeaderCells; - /** - * - * Params: - * cell = a GObject instance that implements AtkTableCellIface - * row = the row of the given cell. - * column = the column of the given cell. - * Returns: TRUE if successful; FALSE otherwise. - */ - extern(C) int function(AtkTableCell* cell, int* row, int* column) getPosition; - /** - * - * Params: - * cell = a GObject instance that implements AtkTableCellIface - * Returns: a gint representing the number of rows occupied by this cell, - * or 0 if the cell does not implement this method. - */ - extern(C) int function(AtkTableCell* cell) getRowSpan; - /** - * - * Params: - * cell = a GObject instance that implements AtkTableCellIface - * Returns: a GPtrArray of AtkObjects - * representing the row header cells. - */ - extern(C) GPtrArray* function(AtkTableCell* cell) getRowHeaderCells; - /** - * - * Params: - * cell = a GObject instance that implements AtkTableCellIface - * row = the row index of the given cell. - * column = the column index of the given cell. - * rowSpan = the number of rows occupied by this cell. - * columnSpan = the number of columns occupied by this cell. - * Returns: TRUE if successful; FALSE otherwise. - */ - extern(C) int function(AtkTableCell* cell, int* row, int* column, int* rowSpan, int* columnSpan) getRowColumnSpan; - /** - * - * Params: - * cell = a GObject instance that implements AtkTableCellIface - * Returns: the atk object for the containing table. - */ - extern(C) AtkObject* function(AtkTableCell* cell) getTable; -} - -struct AtkTableIface -{ - GTypeInterface parent; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * Returns: an #AtkObject representing the referred - * to accessible - */ - extern(C) AtkObject* function(AtkTable* table, int row, int column) refAt; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * Returns: a #gint representing the index at specified position. - * The value -1 is returned if the object at row,column is not a child - * of table or table does not implement this interface. - */ - extern(C) int function(AtkTable* table, int row, int column) getIndexAt; - /** - * - * Params: - * table = a GObject instance that implements AtkTableInterface - * index = a #gint representing an index in @table - * Returns: a gint representing the column at the specified index, - * or -1 if the table does not implement this method. - */ - extern(C) int function(AtkTable* table, int index) getColumnAtIndex; - /** - * - * Params: - * table = a GObject instance that implements AtkTableInterface - * index = a #gint representing an index in @table - * Returns: a gint representing the row at the specified index, - * or -1 if the table does not implement this method. - */ - extern(C) int function(AtkTable* table, int index) getRowAtIndex; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * Returns: a gint representing the number of columns, or 0 - * if value does not implement this interface. - */ - extern(C) int function(AtkTable* table) getNColumns; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * Returns: a gint representing the number of rows, or 0 - * if value does not implement this interface. - */ - extern(C) int function(AtkTable* table) getNRows; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * Returns: a gint representing the column extent at specified position, or 0 - * if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int row, int column) getColumnExtentAt; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * Returns: a gint representing the row extent at specified position, or 0 - * if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int row, int column) getRowExtentAt; - /** - * - * Params: - * table = a GObject instance that implements AtkTableInterface - * Returns: a AtkObject* representing the - * table caption, or %NULL if value does not implement this interface. - */ - extern(C) AtkObject* function(AtkTable* table) getCaption; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * column = a #gint representing a column in @table - * Returns: a gchar* representing the column description, or %NULL - * if value does not implement this interface. - */ - extern(C) const(char)* function(AtkTable* table, int column) getColumnDescription; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * column = a #gint representing a column in the table - * Returns: a AtkObject* representing the - * specified column header, or %NULL if value does not implement this - * interface. - */ - extern(C) AtkObject* function(AtkTable* table, int column) getColumnHeader; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * Returns: a gchar* representing the row description, or - * %NULL if value does not implement this interface. - */ - extern(C) const(char)* function(AtkTable* table, int row) getRowDescription; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in the table - * Returns: a AtkObject* representing the - * specified row header, or %NULL if value does not implement this - * interface. - */ - extern(C) AtkObject* function(AtkTable* table, int row) getRowHeader; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * Returns: a AtkObject* representing a summary description - * of the table, or zero if value does not implement this interface. - */ - extern(C) AtkObject* function(AtkTable* table) getSummary; - /** */ - extern(C) void function(AtkTable* table, AtkObject* caption) setCaption; - /** */ - extern(C) void function(AtkTable* table, int column, const(char)* description) setColumnDescription; - /** */ - extern(C) void function(AtkTable* table, int column, AtkObject* header) setColumnHeader; - /** */ - extern(C) void function(AtkTable* table, int row, const(char)* description) setRowDescription; - /** */ - extern(C) void function(AtkTable* table, int row, AtkObject* header) setRowHeader; - /** */ - extern(C) void function(AtkTable* table, AtkObject* accessible) setSummary; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * selected = a #gint** that is to contain the selected columns numbers - * Returns: a gint representing the number of selected columns, - * or %0 if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int** selected) getSelectedColumns; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * selected = a #gint** that is to contain the selected row numbers - * Returns: a gint representing the number of selected rows, - * or zero if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int** selected) getSelectedRows; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * column = a #gint representing a column in @table - * Returns: a gboolean representing if the column is selected, or 0 - * if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int column) isColumnSelected; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * Returns: a gboolean representing if the row is selected, or 0 - * if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int row) isRowSelected; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * column = a #gint representing a column in @table - * Returns: a gboolean representing if the cell is selected, or 0 - * if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int row, int column) isSelected; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * Returns: a gboolean representing if row was successfully added to selection, - * or 0 if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int row) addRowSelection; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * row = a #gint representing a row in @table - * Returns: a gboolean representing if the row was successfully removed from - * the selection, or 0 if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int row) removeRowSelection; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * column = a #gint representing a column in @table - * Returns: a gboolean representing if the column was successfully added to - * the selection, or 0 if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int column) addColumnSelection; - /** - * - * Params: - * table = a GObject instance that implements AtkTableIface - * column = a #gint representing a column in @table - * Returns: a gboolean representing if the column was successfully removed from - * the selection, or 0 if value does not implement this interface. - */ - extern(C) int function(AtkTable* table, int column) removeColumnSelection; - /** */ - extern(C) void function(AtkTable* table, int row, int numInserted) rowInserted; - /** */ - extern(C) void function(AtkTable* table, int column, int numInserted) columnInserted; - /** */ - extern(C) void function(AtkTable* table, int row, int numDeleted) rowDeleted; - /** */ - extern(C) void function(AtkTable* table, int column, int numDeleted) columnDeleted; - /** */ - extern(C) void function(AtkTable* table) rowReordered; - /** */ - extern(C) void function(AtkTable* table) columnReordered; - /** */ - extern(C) void function(AtkTable* table) modelChanged; -} - -struct AtkText; - -struct AtkTextIface -{ - GTypeInterface parent; - /** - * - * Params: - * text = an #AtkText - * startOffset = a starting character offset within @text - * endOffset = an ending character offset within @text, or -1 for the end of the string. - * Returns: a newly allocated string containing the text from @start_offset up - * to, but not including @end_offset. Use g_free() to free the returned - * string. - */ - extern(C) char* function(AtkText* text, int startOffset, int endOffset) getText; - /** - * - * Params: - * text = an #AtkText - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * Returns: a newly allocated string containing the text after @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - extern(C) char* function(AtkText* text, int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) getTextAfterOffset; - /** - * - * Params: - * text = an #AtkText - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * Returns: a newly allocated string containing the text at @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - extern(C) char* function(AtkText* text, int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) getTextAtOffset; - /** - * - * Params: - * text = an #AtkText - * offset = a character offset within @text - * Returns: the character at @offset or 0 in the case of failure. - */ - extern(C) dchar function(AtkText* text, int offset) getCharacterAtOffset; - /** - * - * Params: - * text = an #AtkText - * offset = position - * boundaryType = An #AtkTextBoundary - * startOffset = the starting character offset of the returned string - * endOffset = the offset of the first character after the - * returned substring - * Returns: a newly allocated string containing the text before @offset bounded - * by the specified @boundary_type. Use g_free() to free the returned - * string. - */ - extern(C) char* function(AtkText* text, int offset, AtkTextBoundary boundaryType, int* startOffset, int* endOffset) getTextBeforeOffset; - /** - * - * Params: - * text = an #AtkText - * Returns: the character offset of the position of the caret or -1 if - * the caret is not located inside the element or in the case of - * any other failure. - */ - extern(C) int function(AtkText* text) getCaretOffset; - /** - * - * Params: - * text = an #AtkText - * offset = the character offset at which to get the attributes, -1 means the offset of - * the character to be inserted at the caret location. - * startOffset = the address to put the start offset of the range - * endOffset = the address to put the end offset of the range - * Returns: an #AtkAttributeSet which contains the attributes - * explicitly set at @offset. This #AtkAttributeSet should be freed by - * a call to atk_attribute_set_free(). - */ - extern(C) AtkAttributeSet* function(AtkText* text, int offset, int* startOffset, int* endOffset) getRunAttributes; - /** - * - * Params: - * text = an #AtkText - * Returns: an #AtkAttributeSet which contains the default text - * attributes for this #AtkText. This #AtkAttributeSet should be freed by - * a call to atk_attribute_set_free(). - */ - extern(C) AtkAttributeSet* function(AtkText* text) getDefaultAttributes; - /** */ - extern(C) void function(AtkText* text, int offset, int* x, int* y, int* width, int* height, AtkCoordType coords) getCharacterExtents; - /** - * - * Params: - * text = an #AtkText - * Returns: the number of characters or -1 in case of failure. - */ - extern(C) int function(AtkText* text) getCharacterCount; - /** - * - * Params: - * text = an #AtkText - * x = screen x-position of character - * y = screen y-position of character - * coords = specify whether coordinates are relative to the screen or - * widget window - * Returns: the offset to the character which is located at the specified - * @x and @y coordinates of -1 in case of failure. - */ - extern(C) int function(AtkText* text, int x, int y, AtkCoordType coords) getOffsetAtPoint; - /** - * - * Params: - * text = an #AtkText - * Returns: The number of selected regions, or -1 in the case of failure. - */ - extern(C) int function(AtkText* text) getNSelections; - /** - * - * Params: - * text = an #AtkText - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * startOffset = passes back the starting character offset of the selected region - * endOffset = passes back the ending character offset (offset immediately past) - * of the selected region - * Returns: a newly allocated string containing the selected text. Use g_free() - * to free the returned string. - */ - extern(C) char* function(AtkText* text, int selectionNum, int* startOffset, int* endOffset) getSelection; - /** - * - * Params: - * text = an #AtkText - * startOffset = the starting character offset of the selected region - * endOffset = the offset of the first character after the selected region. - * Returns: %TRUE if successful, %FALSE otherwise - */ - extern(C) int function(AtkText* text, int startOffset, int endOffset) addSelection; - /** - * - * Params: - * text = an #AtkText - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * Returns: %TRUE if successful, %FALSE otherwise - */ - extern(C) int function(AtkText* text, int selectionNum) removeSelection; - /** - * - * Params: - * text = an #AtkText - * selectionNum = The selection number. The selected regions are - * assigned numbers that correspond to how far the region is from the - * start of the text. The selected region closest to the beginning - * of the text region is assigned the number 0, etc. Note that adding, - * moving or deleting a selected region can change the numbering. - * startOffset = the new starting character offset of the selection - * endOffset = the new end position of (e.g. offset immediately past) - * the selection - * Returns: %TRUE if successful, %FALSE otherwise - */ - extern(C) int function(AtkText* text, int selectionNum, int startOffset, int endOffset) setSelection; - /** - * - * Params: - * text = an #AtkText - * offset = the character offset of the new caret position - * Returns: %TRUE if successful, %FALSE otherwise. - */ - extern(C) int function(AtkText* text, int offset) setCaretOffset; - /** */ - extern(C) void function(AtkText* text, int position, int length) textChanged; - /** */ - extern(C) void function(AtkText* text, int location) textCaretMoved; - /** */ - extern(C) void function(AtkText* text) textSelectionChanged; - /** */ - extern(C) void function(AtkText* text) textAttributesChanged; - /** */ - extern(C) void function(AtkText* text, int startOffset, int endOffset, AtkCoordType coordType, AtkTextRectangle* rect) getRangeExtents; - /** - * - * Params: - * text = an #AtkText - * rect = An AtkTextRectangle giving the dimensions of the bounding box. - * coordType = Specify whether coordinates are relative to the screen or widget window. - * xClipType = Specify the horizontal clip type. - * yClipType = Specify the vertical clip type. - * Returns: Array of AtkTextRange. The last - * element of the array returned by this function will be NULL. - */ - extern(C) AtkTextRange** function(AtkText* text, AtkTextRectangle* rect, AtkCoordType coordType, AtkTextClipType xClipType, AtkTextClipType yClipType) getBoundedRanges; - /** - * - * Params: - * text = an #AtkText - * offset = position - * granularity = An #AtkTextGranularity - * startOffset = the starting character offset of the returned string, or -1 - * in the case of error (e.g. invalid offset, not implemented) - * endOffset = the offset of the first character after the returned string, - * or -1 in the case of error (e.g. invalid offset, not implemented) - * Returns: a newly allocated string containing the text at - * the @offset bounded by the specified @granularity. Use g_free() - * to free the returned string. Returns %NULL if the offset is invalid - * or no implementation is available. - */ - extern(C) char* function(AtkText* text, int offset, AtkTextGranularity granularity, int* startOffset, int* endOffset) getStringAtOffset; - /** - * - * Params: - * text = an #AtkText - * startOffset = start offset in the @text - * endOffset = end offset in the @text, or -1 for the end of the text. - * type = specify where the object should be made visible. - * Returns: whether scrolling was successful. - */ - extern(C) int function(AtkText* text, int startOffset, int endOffset, AtkScrollType type) scrollSubstringTo; - /** - * - * Params: - * text = an #AtkText - * startOffset = start offset in the @text - * endOffset = end offset in the @text, or -1 for the end of the text. - * coords = specify whether coordinates are relative to the screen or to the - * parent object. - * x = x-position where to scroll to - * y = y-position where to scroll to - * Returns: whether scrolling was successful. - */ - extern(C) int function(AtkText* text, int startOffset, int endOffset, AtkCoordType coords, int x, int y) scrollSubstringToPoint; -} - -/** - * A structure used to describe a text range. - */ -struct AtkTextRange -{ - /** - * A rectangle giving the bounds of the text range - */ - AtkTextRectangle bounds; - /** - * The start offset of a AtkTextRange - */ - int startOffset; - /** - * The end offset of a AtkTextRange - */ - int endOffset; - /** - * The text in the text range - */ - char* content; -} - -/** - * A structure used to store a rectangle used by AtkText. - */ -struct AtkTextRectangle -{ - /** - * The horizontal coordinate of a rectangle - */ - int x; - /** - * The vertical coordinate of a rectangle - */ - int y; - /** - * The width of a rectangle - */ - int width; - /** - * The height of a rectangle - */ - int height; -} - -/** - * A set of ATK utility functions which are used to support event - * registration of various types, and obtaining the 'root' accessible - * of a process and information about the current ATK implementation - * and toolkit version. - */ -struct AtkUtil -{ - GObject parent; -} - -struct AtkUtilClass -{ - GObjectClass parent; - /** */ - extern(C) uint function(GSignalEmissionHook listener, const(char)* eventType) addGlobalEventListener; - /** */ - extern(C) void function(uint listenerId) removeGlobalEventListener; - /** */ - extern(C) uint function(AtkKeySnoopFunc listener, void* data) addKeyEventListener; - /** */ - extern(C) void function(uint listenerId) removeKeyEventListener; - /** */ - extern(C) AtkObject* function() getRoot; - /** */ - extern(C) const(char)* function() getToolkitName; - /** */ - extern(C) const(char)* function() getToolkitVersion; -} - -struct AtkValue; - -struct AtkValueIface -{ - GTypeInterface parent; - /** */ - extern(C) void function(AtkValue* obj, GValue* value) getCurrentValue; - /** */ - extern(C) void function(AtkValue* obj, GValue* value) getMaximumValue; - /** */ - extern(C) void function(AtkValue* obj, GValue* value) getMinimumValue; - /** - * - * Params: - * obj = a GObject instance that implements AtkValueIface - * value = a #GValue which is the desired new accessible value. - * Returns: %TRUE if new value is successfully set, %FALSE otherwise. - */ - extern(C) int function(AtkValue* obj, GValue* value) setCurrentValue; - /** */ - extern(C) void function(AtkValue* obj, GValue* value) getMinimumIncrement; - /** */ - extern(C) void function(AtkValue* obj, double* value, char** text) getValueAndText; - /** - * - * Params: - * obj = a GObject instance that implements AtkValueIface - * Returns: a newly allocated #AtkRange - * that represents the minimum, maximum and descriptor (if available) - * of @obj. NULL if that range is not defined. - */ - extern(C) AtkRange* function(AtkValue* obj) getRange; - /** - * - * Params: - * obj = a GObject instance that implements AtkValueIface - * Returns: the minimum increment by which the value of this - * object may be changed. zero if undefined. - */ - extern(C) double function(AtkValue* obj) getIncrement; - /** - * - * Params: - * obj = a GObject instance that implements AtkValueIface - * Returns: an #GSList of - * #AtkRange which each of the subranges defined for this object. Free - * the returns list with g_slist_free(). - */ - extern(C) GSList* function(AtkValue* obj) getSubRanges; - /** */ - extern(C) void function(AtkValue* obj, double newValue) setValue; -} - -struct AtkWindow; - -struct AtkWindowIface -{ - GTypeInterface parent; -} - -/** - * A function which is called when an object emits a matching event, - * as used in #atk_add_focus_tracker. - * Currently the only events for which object-specific handlers are - * supported are events of type "focus:". Most clients of ATK will prefer to - * attach signal handlers for the various ATK signals instead. - * - * see atk_add_focus_tracker. - * - * Params: - * obj = An #AtkObject instance for whom the callback will be called when - * the specified event (e.g. 'focus:') takes place. - */ -public alias extern(C) void function(AtkObject* obj) AtkEventListener; - -/** - * An #AtkEventListenerInit function is a special function that is - * called in order to initialize the per-object event registration system - * used by #AtkEventListener, if any preparation is required. - * - * see atk_focus_tracker_init. - */ -public alias extern(C) void function() AtkEventListenerInit; - -/** - * The type of callback function used for - * atk_component_add_focus_handler() and - * atk_component_remove_focus_handler() - * - * Deprecated: Deprecated with atk_component_add_focus_handler() - * and atk_component_remove_focus_handler(). See those - * methods for more information. - * - * Params: - * object = the #AtkObject that receives/lose the focus - * focusIn = TRUE if the object receives the focus - */ -public alias extern(C) void function(AtkObject* object, int focusIn) AtkFocusHandler; - -/** - * An AtkFunction is a function definition used for padding which has - * been added to class and interface structures to allow for expansion - * in the future. - * - * Params: - * userData = custom data defined by the user - * - * Returns: not used - */ -public alias extern(C) int function(void* userData) AtkFunction; - -/** - * An #AtkKeySnoopFunc is a type of callback which is called whenever a key event occurs, - * if registered via atk_add_key_event_listener. It allows for pre-emptive - * interception of key events via the return code as described below. - * - * Params: - * event = an AtkKeyEventStruct containing information about the key event for which - * notification is being given. - * userData = a block of data which will be passed to the event listener, on notification. - * - * Returns: TRUE (nonzero) if the event emission should be stopped and the event - * discarded without being passed to the normal GUI recipient; FALSE (zero) if the - * event dispatch to the client application should proceed as normal. - * - * see atk_add_key_event_listener. - */ -public alias extern(C) int function(AtkKeyEventStruct* event, void* userData) AtkKeySnoopFunc; - -/** - * An AtkPropertyChangeHandler is a function which is executed when an - * AtkObject's property changes value. It is specified in a call to - * atk_object_connect_property_change_handler(). - * - * Deprecated: Since 2.12. - * - * Params: - * obj = atkobject which property changes - * vals = values changed - */ -public alias extern(C) void function(AtkObject* obj, AtkPropertyValues* vals) AtkPropertyChangeHandler; - -/** - * Like atk_get_binary_age(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -enum BINARY_AGE = 23610; -alias ATK_BINARY_AGE = BINARY_AGE; - -/** - * Like atk_get_interface_age(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -enum INTERFACE_AGE = 1; -alias ATK_INTERFACE_AGE = INTERFACE_AGE; - -/** - * Like atk_get_major_version(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -enum MAJOR_VERSION = 2; -alias ATK_MAJOR_VERSION = MAJOR_VERSION; - -/** - * Like atk_get_micro_version(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -enum MICRO_VERSION = 0; -alias ATK_MICRO_VERSION = MICRO_VERSION; - -/** - * Like atk_get_minor_version(), but from the headers used at - * application compile time, rather than from the library linked - * against at application run time. - */ -enum MINOR_VERSION = 36; -alias ATK_MINOR_VERSION = MINOR_VERSION; - -/** - * A macro that should be defined by the user prior to including - * the atk/atk.h header. - * The definition should be one of the predefined ATK version - * macros: %ATK_VERSION_2_12, %ATK_VERSION_2_14,... - * - * This macro defines the earliest version of ATK that the package is - * required to be able to compile against. - * - * If the compiler is configured to warn about the use of deprecated - * functions, then using functions that were deprecated in version - * %ATK_VERSION_MIN_REQUIRED or earlier will cause warnings (but - * using functions deprecated in later releases will not). - */ -enum VERSION_MIN_REQUIRED = 2; -alias ATK_VERSION_MIN_REQUIRED = VERSION_MIN_REQUIRED; diff --git a/generated/gtkd/cairo/c/functions.d b/generated/gtkd/cairo/c/functions.d deleted file mode 100644 index 22739a962..000000000 --- a/generated/gtkd/cairo/c/functions.d +++ /dev/null @@ -1,1254 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module cairo.c.functions; - -private import std.stdio; -private import cairo.c.types; -private import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_CAIRO = ["libcairo-2.dll;cairo.dll"]; -else version (OSX) - static immutable LIBRARY_CAIRO = ["libcairo.dylib"]; -else - static immutable LIBRARY_CAIRO = ["libcairo.so.2"]; - -shared static this() -{ - // cairo.Context - - Linker.link(cairo_create, "cairo_create", LIBRARY_CAIRO); - Linker.link(cairo_reference, "cairo_reference", LIBRARY_CAIRO); - Linker.link(cairo_destroy, "cairo_destroy", LIBRARY_CAIRO); - Linker.link(cairo_status, "cairo_status", LIBRARY_CAIRO); - Linker.link(cairo_save, "cairo_save", LIBRARY_CAIRO); - Linker.link(cairo_restore, "cairo_restore", LIBRARY_CAIRO); - Linker.link(cairo_get_target, "cairo_get_target", LIBRARY_CAIRO); - Linker.link(cairo_push_group, "cairo_push_group", LIBRARY_CAIRO); - Linker.link(cairo_push_group_with_content, "cairo_push_group_with_content", LIBRARY_CAIRO); - Linker.link(cairo_pop_group, "cairo_pop_group", LIBRARY_CAIRO); - Linker.link(cairo_pop_group_to_source, "cairo_pop_group_to_source", LIBRARY_CAIRO); - Linker.link(cairo_get_group_target, "cairo_get_group_target", LIBRARY_CAIRO); - Linker.link(cairo_set_source_rgb, "cairo_set_source_rgb", LIBRARY_CAIRO); - Linker.link(cairo_set_source_rgba, "cairo_set_source_rgba", LIBRARY_CAIRO); - Linker.link(cairo_set_source, "cairo_set_source", LIBRARY_CAIRO); - Linker.link(cairo_set_source_surface, "cairo_set_source_surface", LIBRARY_CAIRO); - Linker.link(cairo_get_source, "cairo_get_source", LIBRARY_CAIRO); - Linker.link(cairo_set_antialias, "cairo_set_antialias", LIBRARY_CAIRO); - Linker.link(cairo_get_antialias, "cairo_get_antialias", LIBRARY_CAIRO); - Linker.link(cairo_set_dash, "cairo_set_dash", LIBRARY_CAIRO); - Linker.link(cairo_get_dash_count, "cairo_get_dash_count", LIBRARY_CAIRO); - Linker.link(cairo_get_dash, "cairo_get_dash", LIBRARY_CAIRO); - Linker.link(cairo_set_fill_rule, "cairo_set_fill_rule", LIBRARY_CAIRO); - Linker.link(cairo_get_fill_rule, "cairo_get_fill_rule", LIBRARY_CAIRO); - Linker.link(cairo_set_line_cap, "cairo_set_line_cap", LIBRARY_CAIRO); - Linker.link(cairo_get_line_cap, "cairo_get_line_cap", LIBRARY_CAIRO); - Linker.link(cairo_set_line_join, "cairo_set_line_join", LIBRARY_CAIRO); - Linker.link(cairo_get_line_join, "cairo_get_line_join", LIBRARY_CAIRO); - Linker.link(cairo_set_line_width, "cairo_set_line_width", LIBRARY_CAIRO); - Linker.link(cairo_get_line_width, "cairo_get_line_width", LIBRARY_CAIRO); - Linker.link(cairo_set_miter_limit, "cairo_set_miter_limit", LIBRARY_CAIRO); - Linker.link(cairo_get_miter_limit, "cairo_get_miter_limit", LIBRARY_CAIRO); - Linker.link(cairo_set_operator, "cairo_set_operator", LIBRARY_CAIRO); - Linker.link(cairo_get_operator, "cairo_get_operator", LIBRARY_CAIRO); - Linker.link(cairo_set_tolerance, "cairo_set_tolerance", LIBRARY_CAIRO); - Linker.link(cairo_get_tolerance, "cairo_get_tolerance", LIBRARY_CAIRO); - Linker.link(cairo_clip, "cairo_clip", LIBRARY_CAIRO); - Linker.link(cairo_clip_preserve, "cairo_clip_preserve", LIBRARY_CAIRO); - Linker.link(cairo_clip_extents, "cairo_clip_extents", LIBRARY_CAIRO); - Linker.link(cairo_in_clip, "cairo_in_clip", LIBRARY_CAIRO); - Linker.link(cairo_reset_clip, "cairo_reset_clip", LIBRARY_CAIRO); - Linker.link(cairo_rectangle_list_destroy, "cairo_rectangle_list_destroy", LIBRARY_CAIRO); - Linker.link(cairo_copy_clip_rectangle_list, "cairo_copy_clip_rectangle_list", LIBRARY_CAIRO); - Linker.link(cairo_fill, "cairo_fill", LIBRARY_CAIRO); - Linker.link(cairo_fill_preserve, "cairo_fill_preserve", LIBRARY_CAIRO); - Linker.link(cairo_fill_extents, "cairo_fill_extents", LIBRARY_CAIRO); - Linker.link(cairo_in_fill, "cairo_in_fill", LIBRARY_CAIRO); - Linker.link(cairo_mask, "cairo_mask", LIBRARY_CAIRO); - Linker.link(cairo_mask_surface, "cairo_mask_surface", LIBRARY_CAIRO); - Linker.link(cairo_paint, "cairo_paint", LIBRARY_CAIRO); - Linker.link(cairo_paint_with_alpha, "cairo_paint_with_alpha", LIBRARY_CAIRO); - Linker.link(cairo_stroke, "cairo_stroke", LIBRARY_CAIRO); - Linker.link(cairo_stroke_preserve, "cairo_stroke_preserve", LIBRARY_CAIRO); - Linker.link(cairo_stroke_extents, "cairo_stroke_extents", LIBRARY_CAIRO); - Linker.link(cairo_in_stroke, "cairo_in_stroke", LIBRARY_CAIRO); - Linker.link(cairo_copy_page, "cairo_copy_page", LIBRARY_CAIRO); - Linker.link(cairo_show_page, "cairo_show_page", LIBRARY_CAIRO); - Linker.link(cairo_get_reference_count, "cairo_get_reference_count", LIBRARY_CAIRO); - Linker.link(cairo_set_user_data, "cairo_set_user_data", LIBRARY_CAIRO); - Linker.link(cairo_get_user_data, "cairo_get_user_data", LIBRARY_CAIRO); - Linker.link(cairo_copy_path, "cairo_copy_path", LIBRARY_CAIRO); - Linker.link(cairo_copy_path_flat, "cairo_copy_path_flat", LIBRARY_CAIRO); - Linker.link(cairo_path_destroy, "cairo_path_destroy", LIBRARY_CAIRO); - Linker.link(cairo_append_path, "cairo_append_path", LIBRARY_CAIRO); - Linker.link(cairo_has_current_point, "cairo_has_current_point", LIBRARY_CAIRO); - Linker.link(cairo_get_current_point, "cairo_get_current_point", LIBRARY_CAIRO); - Linker.link(cairo_new_path, "cairo_new_path", LIBRARY_CAIRO); - Linker.link(cairo_new_sub_path, "cairo_new_sub_path", LIBRARY_CAIRO); - Linker.link(cairo_close_path, "cairo_close_path", LIBRARY_CAIRO); - Linker.link(cairo_arc, "cairo_arc", LIBRARY_CAIRO); - Linker.link(cairo_arc_negative, "cairo_arc_negative", LIBRARY_CAIRO); - Linker.link(cairo_curve_to, "cairo_curve_to", LIBRARY_CAIRO); - Linker.link(cairo_line_to, "cairo_line_to", LIBRARY_CAIRO); - Linker.link(cairo_move_to, "cairo_move_to", LIBRARY_CAIRO); - Linker.link(cairo_rectangle, "cairo_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_glyph_path, "cairo_glyph_path", LIBRARY_CAIRO); - Linker.link(cairo_text_path, "cairo_text_path", LIBRARY_CAIRO); - Linker.link(cairo_rel_curve_to, "cairo_rel_curve_to", LIBRARY_CAIRO); - Linker.link(cairo_rel_line_to, "cairo_rel_line_to", LIBRARY_CAIRO); - Linker.link(cairo_rel_move_to, "cairo_rel_move_to", LIBRARY_CAIRO); - Linker.link(cairo_path_extents, "cairo_path_extents", LIBRARY_CAIRO); - Linker.link(cairo_translate, "cairo_translate", LIBRARY_CAIRO); - Linker.link(cairo_scale, "cairo_scale", LIBRARY_CAIRO); - Linker.link(cairo_rotate, "cairo_rotate", LIBRARY_CAIRO); - Linker.link(cairo_transform, "cairo_transform", LIBRARY_CAIRO); - Linker.link(cairo_set_matrix, "cairo_set_matrix", LIBRARY_CAIRO); - Linker.link(cairo_get_matrix, "cairo_get_matrix", LIBRARY_CAIRO); - Linker.link(cairo_identity_matrix, "cairo_identity_matrix", LIBRARY_CAIRO); - Linker.link(cairo_user_to_device, "cairo_user_to_device", LIBRARY_CAIRO); - Linker.link(cairo_user_to_device_distance, "cairo_user_to_device_distance", LIBRARY_CAIRO); - Linker.link(cairo_device_to_user, "cairo_device_to_user", LIBRARY_CAIRO); - Linker.link(cairo_device_to_user_distance, "cairo_device_to_user_distance", LIBRARY_CAIRO); - Linker.link(cairo_select_font_face, "cairo_select_font_face", LIBRARY_CAIRO); - Linker.link(cairo_set_font_size, "cairo_set_font_size", LIBRARY_CAIRO); - Linker.link(cairo_set_font_matrix, "cairo_set_font_matrix", LIBRARY_CAIRO); - Linker.link(cairo_get_font_matrix, "cairo_get_font_matrix", LIBRARY_CAIRO); - Linker.link(cairo_set_font_options, "cairo_set_font_options", LIBRARY_CAIRO); - Linker.link(cairo_get_font_options, "cairo_get_font_options", LIBRARY_CAIRO); - Linker.link(cairo_set_font_face, "cairo_set_font_face", LIBRARY_CAIRO); - Linker.link(cairo_get_font_face, "cairo_get_font_face", LIBRARY_CAIRO); - Linker.link(cairo_set_scaled_font, "cairo_set_scaled_font", LIBRARY_CAIRO); - Linker.link(cairo_get_scaled_font, "cairo_get_scaled_font", LIBRARY_CAIRO); - Linker.link(cairo_show_text, "cairo_show_text", LIBRARY_CAIRO); - Linker.link(cairo_show_glyphs, "cairo_show_glyphs", LIBRARY_CAIRO); - Linker.link(cairo_show_text_glyphs, "cairo_show_text_glyphs", LIBRARY_CAIRO); - Linker.link(cairo_font_extents, "cairo_font_extents", LIBRARY_CAIRO); - Linker.link(cairo_text_extents, "cairo_text_extents", LIBRARY_CAIRO); - Linker.link(cairo_glyph_extents, "cairo_glyph_extents", LIBRARY_CAIRO); - Linker.link(cairo_toy_font_face_create, "cairo_toy_font_face_create", LIBRARY_CAIRO); - Linker.link(cairo_toy_font_face_get_family, "cairo_toy_font_face_get_family", LIBRARY_CAIRO); - Linker.link(cairo_toy_font_face_get_slant, "cairo_toy_font_face_get_slant", LIBRARY_CAIRO); - Linker.link(cairo_toy_font_face_get_weight, "cairo_toy_font_face_get_weight", LIBRARY_CAIRO); - Linker.link(cairo_glyph_allocate, "cairo_glyph_allocate", LIBRARY_CAIRO); - Linker.link(cairo_glyph_free, "cairo_glyph_free", LIBRARY_CAIRO); - Linker.link(cairo_text_cluster_allocate, "cairo_text_cluster_allocate", LIBRARY_CAIRO); - Linker.link(cairo_text_cluster_free, "cairo_text_cluster_free", LIBRARY_CAIRO); - - // cairo.Pattern - - Linker.link(cairo_pattern_add_color_stop_rgb, "cairo_pattern_add_color_stop_rgb", LIBRARY_CAIRO); - Linker.link(cairo_pattern_add_color_stop_rgba, "cairo_pattern_add_color_stop_rgba", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_color_stop_count, "cairo_pattern_get_color_stop_count", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_color_stop_rgba, "cairo_pattern_get_color_stop_rgba", LIBRARY_CAIRO); - Linker.link(cairo_pattern_create_rgb, "cairo_pattern_create_rgb", LIBRARY_CAIRO); - Linker.link(cairo_pattern_create_rgba, "cairo_pattern_create_rgba", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_rgba, "cairo_pattern_get_rgba", LIBRARY_CAIRO); - Linker.link(cairo_pattern_create_for_surface, "cairo_pattern_create_for_surface", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_surface, "cairo_pattern_get_surface", LIBRARY_CAIRO); - Linker.link(cairo_pattern_create_linear, "cairo_pattern_create_linear", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_linear_points, "cairo_pattern_get_linear_points", LIBRARY_CAIRO); - Linker.link(cairo_pattern_create_radial, "cairo_pattern_create_radial", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_radial_circles, "cairo_pattern_get_radial_circles", LIBRARY_CAIRO); - Linker.link(cairo_pattern_create_mesh, "cairo_pattern_create_mesh", LIBRARY_CAIRO); - Linker.link(cairo_pattern_reference, "cairo_pattern_reference", LIBRARY_CAIRO); - Linker.link(cairo_pattern_destroy, "cairo_pattern_destroy", LIBRARY_CAIRO); - Linker.link(cairo_pattern_status, "cairo_pattern_status", LIBRARY_CAIRO); - Linker.link(cairo_pattern_set_extend, "cairo_pattern_set_extend", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_extend, "cairo_pattern_get_extend", LIBRARY_CAIRO); - Linker.link(cairo_pattern_set_filter, "cairo_pattern_set_filter", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_filter, "cairo_pattern_get_filter", LIBRARY_CAIRO); - Linker.link(cairo_pattern_set_matrix, "cairo_pattern_set_matrix", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_matrix, "cairo_pattern_get_matrix", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_type, "cairo_pattern_get_type", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_reference_count, "cairo_pattern_get_reference_count", LIBRARY_CAIRO); - Linker.link(cairo_pattern_set_user_data, "cairo_pattern_set_user_data", LIBRARY_CAIRO); - Linker.link(cairo_pattern_get_user_data, "cairo_pattern_get_user_data", LIBRARY_CAIRO); - - // cairo.MeshPattern - - Linker.link(cairo_mesh_pattern_begin_patch, "cairo_mesh_pattern_begin_patch", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_end_patch, "cairo_mesh_pattern_end_patch", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_move_to, "cairo_mesh_pattern_move_to", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_line_to, "cairo_mesh_pattern_line_to", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_curve_to, "cairo_mesh_pattern_curve_to", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_set_control_point, "cairo_mesh_pattern_set_control_point", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_set_corner_color_rgb, "cairo_mesh_pattern_set_corner_color_rgb", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_set_corner_color_rgba, "cairo_mesh_pattern_set_corner_color_rgba", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_get_patch_count, "cairo_mesh_pattern_get_patch_count", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_get_path, "cairo_mesh_pattern_get_path", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_get_control_point, "cairo_mesh_pattern_get_control_point", LIBRARY_CAIRO); - Linker.link(cairo_mesh_pattern_get_corner_color_rgba, "cairo_mesh_pattern_get_corner_color_rgba", LIBRARY_CAIRO); - - // cairo.Region - - Linker.link(cairo_region_create, "cairo_region_create", LIBRARY_CAIRO); - Linker.link(cairo_region_create_rectangle, "cairo_region_create_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_region_create_rectangles, "cairo_region_create_rectangles", LIBRARY_CAIRO); - Linker.link(cairo_region_copy, "cairo_region_copy", LIBRARY_CAIRO); - Linker.link(cairo_region_reference, "cairo_region_reference", LIBRARY_CAIRO); - Linker.link(cairo_region_destroy, "cairo_region_destroy", LIBRARY_CAIRO); - Linker.link(cairo_region_status, "cairo_region_status", LIBRARY_CAIRO); - Linker.link(cairo_region_get_extents, "cairo_region_get_extents", LIBRARY_CAIRO); - Linker.link(cairo_region_num_rectangles, "cairo_region_num_rectangles", LIBRARY_CAIRO); - Linker.link(cairo_region_get_rectangle, "cairo_region_get_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_region_is_empty, "cairo_region_is_empty", LIBRARY_CAIRO); - Linker.link(cairo_region_contains_point, "cairo_region_contains_point", LIBRARY_CAIRO); - Linker.link(cairo_region_contains_rectangle, "cairo_region_contains_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_region_equal, "cairo_region_equal", LIBRARY_CAIRO); - Linker.link(cairo_region_translate, "cairo_region_translate", LIBRARY_CAIRO); - Linker.link(cairo_region_intersect, "cairo_region_intersect", LIBRARY_CAIRO); - Linker.link(cairo_region_intersect_rectangle, "cairo_region_intersect_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_region_subtract, "cairo_region_subtract", LIBRARY_CAIRO); - Linker.link(cairo_region_subtract_rectangle, "cairo_region_subtract_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_region_union, "cairo_region_union", LIBRARY_CAIRO); - Linker.link(cairo_region_union_rectangle, "cairo_region_union_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_region_xor, "cairo_region_xor", LIBRARY_CAIRO); - Linker.link(cairo_region_xor_rectangle, "cairo_region_xor_rectangle", LIBRARY_CAIRO); - - // cairo.RasterSource - - Linker.link(cairo_pattern_create_raster_source, "cairo_pattern_create_raster_source", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_set_callback_data, "cairo_raster_source_pattern_set_callback_data", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_get_callback_data, "cairo_raster_source_pattern_get_callback_data", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_set_acquire, "cairo_raster_source_pattern_set_acquire", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_get_acquire, "cairo_raster_source_pattern_get_acquire", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_set_snapshot, "cairo_raster_source_pattern_set_snapshot", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_get_snapshot, "cairo_raster_source_pattern_get_snapshot", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_set_copy, "cairo_raster_source_pattern_set_copy", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_get_copy, "cairo_raster_source_pattern_get_copy", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_set_finish, "cairo_raster_source_pattern_set_finish", LIBRARY_CAIRO); - Linker.link(cairo_raster_source_pattern_get_finish, "cairo_raster_source_pattern_get_finish", LIBRARY_CAIRO); - - // cairo.FontFace - - Linker.link(cairo_font_face_reference, "cairo_font_face_reference", LIBRARY_CAIRO); - Linker.link(cairo_font_face_destroy, "cairo_font_face_destroy", LIBRARY_CAIRO); - Linker.link(cairo_font_face_status, "cairo_font_face_status", LIBRARY_CAIRO); - Linker.link(cairo_font_face_get_type, "cairo_font_face_get_type", LIBRARY_CAIRO); - Linker.link(cairo_font_face_get_reference_count, "cairo_font_face_get_reference_count", LIBRARY_CAIRO); - Linker.link(cairo_font_face_set_user_data, "cairo_font_face_set_user_data", LIBRARY_CAIRO); - Linker.link(cairo_font_face_get_user_data, "cairo_font_face_get_user_data", LIBRARY_CAIRO); - - // cairo.ScaledFont - - Linker.link(cairo_scaled_font_create, "cairo_scaled_font_create", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_reference, "cairo_scaled_font_reference", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_destroy, "cairo_scaled_font_destroy", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_status, "cairo_scaled_font_status", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_extents, "cairo_scaled_font_extents", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_text_extents, "cairo_scaled_font_text_extents", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_glyph_extents, "cairo_scaled_font_glyph_extents", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_text_to_glyphs, "cairo_scaled_font_text_to_glyphs", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_font_face, "cairo_scaled_font_get_font_face", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_font_options, "cairo_scaled_font_get_font_options", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_font_matrix, "cairo_scaled_font_get_font_matrix", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_ctm, "cairo_scaled_font_get_ctm", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_scale_matrix, "cairo_scaled_font_get_scale_matrix", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_type, "cairo_scaled_font_get_type", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_reference_count, "cairo_scaled_font_get_reference_count", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_set_user_data, "cairo_scaled_font_set_user_data", LIBRARY_CAIRO); - Linker.link(cairo_scaled_font_get_user_data, "cairo_scaled_font_get_user_data", LIBRARY_CAIRO); - - // cairo.FontOption - - Linker.link(cairo_font_options_create, "cairo_font_options_create", LIBRARY_CAIRO); - Linker.link(cairo_font_options_copy, "cairo_font_options_copy", LIBRARY_CAIRO); - Linker.link(cairo_font_options_destroy, "cairo_font_options_destroy", LIBRARY_CAIRO); - Linker.link(cairo_font_options_status, "cairo_font_options_status", LIBRARY_CAIRO); - Linker.link(cairo_font_options_merge, "cairo_font_options_merge", LIBRARY_CAIRO); - Linker.link(cairo_font_options_hash, "cairo_font_options_hash", LIBRARY_CAIRO); - Linker.link(cairo_font_options_equal, "cairo_font_options_equal", LIBRARY_CAIRO); - Linker.link(cairo_font_options_set_antialias, "cairo_font_options_set_antialias", LIBRARY_CAIRO); - Linker.link(cairo_font_options_get_antialias, "cairo_font_options_get_antialias", LIBRARY_CAIRO); - Linker.link(cairo_font_options_set_subpixel_order, "cairo_font_options_set_subpixel_order", LIBRARY_CAIRO); - Linker.link(cairo_font_options_get_subpixel_order, "cairo_font_options_get_subpixel_order", LIBRARY_CAIRO); - Linker.link(cairo_font_options_set_hint_style, "cairo_font_options_set_hint_style", LIBRARY_CAIRO); - Linker.link(cairo_font_options_get_hint_style, "cairo_font_options_get_hint_style", LIBRARY_CAIRO); - Linker.link(cairo_font_options_set_hint_metrics, "cairo_font_options_set_hint_metrics", LIBRARY_CAIRO); - Linker.link(cairo_font_options_get_hint_metrics, "cairo_font_options_get_hint_metrics", LIBRARY_CAIRO); - - // cairo.UserFontFace - - Linker.link(cairo_user_font_face_create, "cairo_user_font_face_create", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_set_init_func, "cairo_user_font_face_set_init_func", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_get_init_func, "cairo_user_font_face_get_init_func", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_set_render_glyph_func, "cairo_user_font_face_set_render_glyph_func", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_get_render_glyph_func, "cairo_user_font_face_get_render_glyph_func", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_set_unicode_to_glyph_func, "cairo_user_font_face_set_unicode_to_glyph_func", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_get_unicode_to_glyph_func, "cairo_user_font_face_get_unicode_to_glyph_func", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_set_text_to_glyphs_func, "cairo_user_font_face_set_text_to_glyphs_func", LIBRARY_CAIRO); - Linker.link(cairo_user_font_face_get_text_to_glyphs_func, "cairo_user_font_face_get_text_to_glyphs_func", LIBRARY_CAIRO); - - // cairo.Device - - Linker.link(cairo_device_reference, "cairo_device_reference", LIBRARY_CAIRO); - Linker.link(cairo_device_destroy, "cairo_device_destroy", LIBRARY_CAIRO); - Linker.link(cairo_device_status, "cairo_device_status", LIBRARY_CAIRO); - Linker.link(cairo_device_finish, "cairo_device_finish", LIBRARY_CAIRO); - Linker.link(cairo_device_flush, "cairo_device_flush", LIBRARY_CAIRO); - Linker.link(cairo_device_get_type, "cairo_device_get_type", LIBRARY_CAIRO); - Linker.link(cairo_device_get_reference_count, "cairo_device_get_reference_count", LIBRARY_CAIRO); - Linker.link(cairo_device_set_user_data, "cairo_device_set_user_data", LIBRARY_CAIRO); - Linker.link(cairo_device_get_user_data, "cairo_device_get_user_data", LIBRARY_CAIRO); - Linker.link(cairo_device_acquire, "cairo_device_acquire", LIBRARY_CAIRO); - Linker.link(cairo_device_release, "cairo_device_release", LIBRARY_CAIRO); - - // cairo.Surface - - Linker.link(cairo_surface_create_similar, "cairo_surface_create_similar", LIBRARY_CAIRO); - Linker.link(cairo_surface_create_similar_image, "cairo_surface_create_similar_image", LIBRARY_CAIRO); - Linker.link(cairo_surface_create_for_rectangle, "cairo_surface_create_for_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_surface_reference, "cairo_surface_reference", LIBRARY_CAIRO); - Linker.link(cairo_surface_destroy, "cairo_surface_destroy", LIBRARY_CAIRO); - Linker.link(cairo_surface_status, "cairo_surface_status", LIBRARY_CAIRO); - Linker.link(cairo_surface_finish, "cairo_surface_finish", LIBRARY_CAIRO); - Linker.link(cairo_surface_flush, "cairo_surface_flush", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_device, "cairo_surface_get_device", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_font_options, "cairo_surface_get_font_options", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_content, "cairo_surface_get_content", LIBRARY_CAIRO); - Linker.link(cairo_surface_mark_dirty, "cairo_surface_mark_dirty", LIBRARY_CAIRO); - Linker.link(cairo_surface_mark_dirty_rectangle, "cairo_surface_mark_dirty_rectangle", LIBRARY_CAIRO); - Linker.link(cairo_surface_set_device_offset, "cairo_surface_set_device_offset", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_device_offset, "cairo_surface_get_device_offset", LIBRARY_CAIRO); - Linker.link(cairo_surface_set_fallback_resolution, "cairo_surface_set_fallback_resolution", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_fallback_resolution, "cairo_surface_get_fallback_resolution", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_type, "cairo_surface_get_type", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_reference_count, "cairo_surface_get_reference_count", LIBRARY_CAIRO); - Linker.link(cairo_surface_set_user_data, "cairo_surface_set_user_data", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_user_data, "cairo_surface_get_user_data", LIBRARY_CAIRO); - Linker.link(cairo_surface_copy_page, "cairo_surface_copy_page", LIBRARY_CAIRO); - Linker.link(cairo_surface_show_page, "cairo_surface_show_page", LIBRARY_CAIRO); - Linker.link(cairo_surface_has_show_text_glyphs, "cairo_surface_has_show_text_glyphs", LIBRARY_CAIRO); - Linker.link(cairo_surface_set_mime_data, "cairo_surface_set_mime_data", LIBRARY_CAIRO); - Linker.link(cairo_surface_get_mime_data, "cairo_surface_get_mime_data", LIBRARY_CAIRO); - Linker.link(cairo_surface_supports_mime_type, "cairo_surface_supports_mime_type", LIBRARY_CAIRO); - Linker.link(cairo_surface_map_to_image, "cairo_surface_map_to_image", LIBRARY_CAIRO); - Linker.link(cairo_surface_unmap_image, "cairo_surface_unmap_image", LIBRARY_CAIRO); - - // cairo.ImageSurface - - Linker.link(cairo_format_stride_for_width, "cairo_format_stride_for_width", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_create, "cairo_image_surface_create", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_create_for_data, "cairo_image_surface_create_for_data", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_get_data, "cairo_image_surface_get_data", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_get_format, "cairo_image_surface_get_format", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_get_width, "cairo_image_surface_get_width", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_get_height, "cairo_image_surface_get_height", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_get_stride, "cairo_image_surface_get_stride", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_create_from_png, "cairo_image_surface_create_from_png", LIBRARY_CAIRO); - Linker.link(cairo_image_surface_create_from_png_stream, "cairo_image_surface_create_from_png_stream", LIBRARY_CAIRO); - Linker.link(cairo_surface_write_to_png, "cairo_surface_write_to_png", LIBRARY_CAIRO); - Linker.link(cairo_surface_write_to_png_stream, "cairo_surface_write_to_png_stream", LIBRARY_CAIRO); - - // cairo.PdfSurface - - Linker.link(cairo_pdf_surface_create, "cairo_pdf_surface_create", LIBRARY_CAIRO); - Linker.link(cairo_pdf_surface_create_for_stream, "cairo_pdf_surface_create_for_stream", LIBRARY_CAIRO); - Linker.link(cairo_pdf_surface_restrict_to_version, "cairo_pdf_surface_restrict_to_version", LIBRARY_CAIRO); - Linker.link(cairo_pdf_get_versions, "cairo_pdf_get_versions", LIBRARY_CAIRO); - Linker.link(cairo_pdf_version_to_string, "cairo_pdf_version_to_string", LIBRARY_CAIRO); - Linker.link(cairo_pdf_surface_set_size, "cairo_pdf_surface_set_size", LIBRARY_CAIRO); - - // cairo.PostScriptSurface - - Linker.link(cairo_ps_surface_create, "cairo_ps_surface_create", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_create_for_stream, "cairo_ps_surface_create_for_stream", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_restrict_to_level, "cairo_ps_surface_restrict_to_level", LIBRARY_CAIRO); - Linker.link(cairo_ps_get_levels, "cairo_ps_get_levels", LIBRARY_CAIRO); - Linker.link(cairo_ps_level_to_string, "cairo_ps_level_to_string", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_set_eps, "cairo_ps_surface_set_eps", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_get_eps, "cairo_ps_surface_get_eps", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_set_size, "cairo_ps_surface_set_size", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_dsc_begin_setup, "cairo_ps_surface_dsc_begin_setup", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_dsc_begin_page_setup, "cairo_ps_surface_dsc_begin_page_setup", LIBRARY_CAIRO); - Linker.link(cairo_ps_surface_dsc_comment, "cairo_ps_surface_dsc_comment", LIBRARY_CAIRO); - - // cairo.RecordingSurface - - Linker.link(cairo_recording_surface_create, "cairo_recording_surface_create", LIBRARY_CAIRO); - Linker.link(cairo_recording_surface_ink_extents, "cairo_recording_surface_ink_extents", LIBRARY_CAIRO); - Linker.link(cairo_recording_surface_get_extents, "cairo_recording_surface_get_extents", LIBRARY_CAIRO); - - // cairo.SvgSurface - - Linker.link(cairo_svg_surface_create, "cairo_svg_surface_create", LIBRARY_CAIRO); - Linker.link(cairo_svg_surface_create_for_stream, "cairo_svg_surface_create_for_stream", LIBRARY_CAIRO); - Linker.link(cairo_svg_surface_restrict_to_version, "cairo_svg_surface_restrict_to_version", LIBRARY_CAIRO); - Linker.link(cairo_svg_get_versions, "cairo_svg_get_versions", LIBRARY_CAIRO); - Linker.link(cairo_svg_version_to_string, "cairo_svg_version_to_string", LIBRARY_CAIRO); - - // cairo.Script - - Linker.link(cairo_script_create, "cairo_script_create", LIBRARY_CAIRO); - Linker.link(cairo_script_create_for_stream, "cairo_script_create_for_stream", LIBRARY_CAIRO); - Linker.link(cairo_script_from_recording_surface, "cairo_script_from_recording_surface", LIBRARY_CAIRO); - Linker.link(cairo_script_get_mode, "cairo_script_get_mode", LIBRARY_CAIRO); - Linker.link(cairo_script_set_mode, "cairo_script_set_mode", LIBRARY_CAIRO); - Linker.link(cairo_script_write_comment, "cairo_script_write_comment", LIBRARY_CAIRO); - - // cairo.ScriptSurface - - Linker.link(cairo_script_surface_create, "cairo_script_surface_create", LIBRARY_CAIRO); - Linker.link(cairo_script_surface_create_for_target, "cairo_script_surface_create_for_target", LIBRARY_CAIRO); - - // cairo.Matrix - - Linker.link(cairo_matrix_init, "cairo_matrix_init", LIBRARY_CAIRO); - Linker.link(cairo_matrix_init_identity, "cairo_matrix_init_identity", LIBRARY_CAIRO); - Linker.link(cairo_matrix_init_translate, "cairo_matrix_init_translate", LIBRARY_CAIRO); - Linker.link(cairo_matrix_init_scale, "cairo_matrix_init_scale", LIBRARY_CAIRO); - Linker.link(cairo_matrix_init_rotate, "cairo_matrix_init_rotate", LIBRARY_CAIRO); - Linker.link(cairo_matrix_translate, "cairo_matrix_translate", LIBRARY_CAIRO); - Linker.link(cairo_matrix_scale, "cairo_matrix_scale", LIBRARY_CAIRO); - Linker.link(cairo_matrix_rotate, "cairo_matrix_rotate", LIBRARY_CAIRO); - Linker.link(cairo_matrix_invert, "cairo_matrix_invert", LIBRARY_CAIRO); - Linker.link(cairo_matrix_multiply, "cairo_matrix_multiply", LIBRARY_CAIRO); - Linker.link(cairo_matrix_transform_distance, "cairo_matrix_transform_distance", LIBRARY_CAIRO); - Linker.link(cairo_matrix_transform_point, "cairo_matrix_transform_point", LIBRARY_CAIRO); - - // cairo.Status - - Linker.link(cairo_status_to_string, "cairo_status_to_string", LIBRARY_CAIRO); - Linker.link(cairo_debug_reset_static_data, "cairo_debug_reset_static_data", LIBRARY_CAIRO); - - // cairo.Version - - Linker.link(cairo_version, "cairo_version", LIBRARY_CAIRO); - Linker.link(cairo_version_string, "cairo_version_string", LIBRARY_CAIRO); - - // cairo. - -} - -__gshared extern(C) -{ - // cairo.Context - - cairo_t* function(cairo_surface_t* target) c_cairo_create; - cairo_t* function(cairo_t* cr) c_cairo_reference; - void function(cairo_t* cr) c_cairo_destroy; - cairo_status_t function(cairo_t* cr) c_cairo_status; - void function(cairo_t* cr) c_cairo_save; - void function(cairo_t* cr) c_cairo_restore; - cairo_surface_t* function(cairo_t* cr) c_cairo_get_target; - void function(cairo_t* cr) c_cairo_push_group; - void function(cairo_t* cr, cairo_content_t content) c_cairo_push_group_with_content; - cairo_pattern_t* function(cairo_t* cr) c_cairo_pop_group; - void function(cairo_t* cr) c_cairo_pop_group_to_source; - cairo_surface_t* function(cairo_t* cr) c_cairo_get_group_target; - void function(cairo_t* cr, double red, double green, double blue) c_cairo_set_source_rgb; - void function(cairo_t* cr, double red, double green, double blue, double alpha) c_cairo_set_source_rgba; - void function(cairo_t* cr, cairo_pattern_t* source) c_cairo_set_source; - void function(cairo_t* cr, cairo_surface_t* surface, double x, double y) c_cairo_set_source_surface; - cairo_pattern_t* function(cairo_t* cr) c_cairo_get_source; - void function(cairo_t* cr, cairo_antialias_t antialias) c_cairo_set_antialias; - cairo_antialias_t function(cairo_t* cr) c_cairo_get_antialias; - void function(cairo_t* cr, double* dashes, int numDashes, double offset) c_cairo_set_dash; - int function(cairo_t* cr) c_cairo_get_dash_count; - void function(cairo_t* cr, double* dashes, double* offset) c_cairo_get_dash; - void function(cairo_t* cr, cairo_fill_rule_t fillRule) c_cairo_set_fill_rule; - cairo_fill_rule_t function(cairo_t* cr) c_cairo_get_fill_rule; - void function(cairo_t* cr, cairo_line_cap_t lineCap) c_cairo_set_line_cap; - cairo_line_cap_t function(cairo_t* cr) c_cairo_get_line_cap; - void function(cairo_t* cr, cairo_line_join_t lineJoin) c_cairo_set_line_join; - cairo_line_join_t function(cairo_t* cr) c_cairo_get_line_join; - void function(cairo_t* cr, double width) c_cairo_set_line_width; - double function(cairo_t* cr) c_cairo_get_line_width; - void function(cairo_t* cr, double limit) c_cairo_set_miter_limit; - double function(cairo_t* cr) c_cairo_get_miter_limit; - void function(cairo_t* cr, cairo_operator_t op) c_cairo_set_operator; - cairo_operator_t function(cairo_t* cr) c_cairo_get_operator; - void function(cairo_t* cr, double tolerance) c_cairo_set_tolerance; - double function(cairo_t* cr) c_cairo_get_tolerance; - void function(cairo_t* cr) c_cairo_clip; - void function(cairo_t* cr) c_cairo_clip_preserve; - void function(cairo_t* cr, double* x1, double* y1, double* x2, double* y2) c_cairo_clip_extents; - cairo_bool_t function(cairo_t* cr, double x, double y) c_cairo_in_clip; - void function(cairo_t* cr) c_cairo_reset_clip; - void function(cairo_rectangle_list_t* rectangleList) c_cairo_rectangle_list_destroy; - cairo_rectangle_list_t* function(cairo_t* cr) c_cairo_copy_clip_rectangle_list; - void function(cairo_t* cr) c_cairo_fill; - void function(cairo_t* cr) c_cairo_fill_preserve; - void function(cairo_t* cr, double* x1, double* y1, double* x2, double* y2) c_cairo_fill_extents; - cairo_bool_t function(cairo_t* cr, double x, double y) c_cairo_in_fill; - void function(cairo_t* cr, cairo_pattern_t* pattern) c_cairo_mask; - void function(cairo_t* cr, cairo_surface_t* surface, double surfaceX, double surfaceY) c_cairo_mask_surface; - void function(cairo_t* cr) c_cairo_paint; - void function(cairo_t* cr, double alpha) c_cairo_paint_with_alpha; - void function(cairo_t* cr) c_cairo_stroke; - void function(cairo_t* cr) c_cairo_stroke_preserve; - void function(cairo_t* cr, double* x1, double* y1, double* x2, double* y2) c_cairo_stroke_extents; - cairo_bool_t function(cairo_t* cr, double x, double y) c_cairo_in_stroke; - void function(cairo_t* cr) c_cairo_copy_page; - void function(cairo_t* cr) c_cairo_show_page; - uint function(cairo_t* cr) c_cairo_get_reference_count; - cairo_status_t function(cairo_t* cr, cairo_user_data_key_t* key, void* userData, cairo_destroy_func_t destroy) c_cairo_set_user_data; - void* function(cairo_t* cr, cairo_user_data_key_t* key) c_cairo_get_user_data; - cairo_path_t* function(cairo_t* cr) c_cairo_copy_path; - cairo_path_t* function(cairo_t* cr) c_cairo_copy_path_flat; - void function(cairo_path_t* path) c_cairo_path_destroy; - void function(cairo_t* cr, cairo_path_t* path) c_cairo_append_path; - cairo_bool_t function(cairo_t* cr) c_cairo_has_current_point; - void function(cairo_t* cr, double* x, double* y) c_cairo_get_current_point; - void function(cairo_t* cr) c_cairo_new_path; - void function(cairo_t* cr) c_cairo_new_sub_path; - void function(cairo_t* cr) c_cairo_close_path; - void function(cairo_t* cr, double xc, double yc, double radius, double angle1, double angle2) c_cairo_arc; - void function(cairo_t* cr, double xc, double yc, double radius, double angle1, double angle2) c_cairo_arc_negative; - void function(cairo_t* cr, double x1, double y1, double x2, double y2, double x3, double y3) c_cairo_curve_to; - void function(cairo_t* cr, double x, double y) c_cairo_line_to; - void function(cairo_t* cr, double x, double y) c_cairo_move_to; - void function(cairo_t* cr, double x, double y, double width, double height) c_cairo_rectangle; - void function(cairo_t* cr, cairo_glyph_t* glyphs, int numGlyphs) c_cairo_glyph_path; - void function(cairo_t* cr, char* utf8) c_cairo_text_path; - void function(cairo_t* cr, double dx1, double dy1, double dx2, double dy2, double dx3, double dy3) c_cairo_rel_curve_to; - void function(cairo_t* cr, double dx, double dy) c_cairo_rel_line_to; - void function(cairo_t* cr, double dx, double dy) c_cairo_rel_move_to; - void function(cairo_t* cr, double* x1, double* y1, double* x2, double* y2) c_cairo_path_extents; - void function(cairo_t* cr, double tx, double ty) c_cairo_translate; - void function(cairo_t* cr, double sx, double sy) c_cairo_scale; - void function(cairo_t* cr, double angle) c_cairo_rotate; - void function(cairo_t* cr, cairo_matrix_t* matrix) c_cairo_transform; - void function(cairo_t* cr, cairo_matrix_t* matrix) c_cairo_set_matrix; - void function(cairo_t* cr, cairo_matrix_t* matrix) c_cairo_get_matrix; - void function(cairo_t* cr) c_cairo_identity_matrix; - void function(cairo_t* cr, double* x, double* y) c_cairo_user_to_device; - void function(cairo_t* cr, double* dx, double* dy) c_cairo_user_to_device_distance; - void function(cairo_t* cr, double* x, double* y) c_cairo_device_to_user; - void function(cairo_t* cr, double* dx, double* dy) c_cairo_device_to_user_distance; - void function(cairo_t* cr, char* family, cairo_font_slant_t slant, cairo_font_weight_t weight) c_cairo_select_font_face; - void function(cairo_t* cr, double size) c_cairo_set_font_size; - void function(cairo_t* cr, cairo_matrix_t* matrix) c_cairo_set_font_matrix; - void function(cairo_t* cr, cairo_matrix_t* matrix) c_cairo_get_font_matrix; - void function(cairo_t* cr, cairo_font_options_t* options) c_cairo_set_font_options; - void function(cairo_t* cr, cairo_font_options_t* options) c_cairo_get_font_options; - void function(cairo_t* cr, cairo_font_face_t* fontFace) c_cairo_set_font_face; - cairo_font_face_t* function(cairo_t* cr) c_cairo_get_font_face; - void function(cairo_t* cr, cairo_scaled_font_t* scaledFont) c_cairo_set_scaled_font; - cairo_scaled_font_t* function(cairo_t* cr) c_cairo_get_scaled_font; - void function(cairo_t* cr, char* utf8) c_cairo_show_text; - void function(cairo_t* cr, cairo_glyph_t* glyphs, int numGlyphs) c_cairo_show_glyphs; - void function(cairo_t* cr, char* utf8, int utf8_Len, cairo_glyph_t* glyphs, int numGlyphs, cairo_text_cluster_t* clusters, int numClusters, cairo_text_cluster_flags_t clusterFlags) c_cairo_show_text_glyphs; - void function(cairo_t* cr, cairo_font_extents_t* extents) c_cairo_font_extents; - void function(cairo_t* cr, char* utf8, cairo_text_extents_t* extents) c_cairo_text_extents; - void function(cairo_t* cr, cairo_glyph_t* glyphs, int numGlyphs, cairo_text_extents_t* extents) c_cairo_glyph_extents; - cairo_font_face_t* function(char* family, cairo_font_slant_t slant, cairo_font_weight_t weight) c_cairo_toy_font_face_create; - char* function(cairo_font_face_t* fontFace) c_cairo_toy_font_face_get_family; - cairo_font_slant_t function(cairo_font_face_t* fontFace) c_cairo_toy_font_face_get_slant; - cairo_font_weight_t function(cairo_font_face_t* fontFace) c_cairo_toy_font_face_get_weight; - cairo_glyph_t* function(int numGlyphs) c_cairo_glyph_allocate; - void function(cairo_glyph_t* glyphs) c_cairo_glyph_free; - cairo_text_cluster_t* function(int numClusters) c_cairo_text_cluster_allocate; - void function(cairo_text_cluster_t* clusters) c_cairo_text_cluster_free; - - // cairo.Pattern - - void function(cairo_pattern_t* pattern, double offset, double red, double green, double blue) c_cairo_pattern_add_color_stop_rgb; - void function(cairo_pattern_t* pattern, double offset, double red, double green, double blue, double alpha) c_cairo_pattern_add_color_stop_rgba; - cairo_status_t function(cairo_pattern_t* pattern, int* count) c_cairo_pattern_get_color_stop_count; - cairo_status_t function(cairo_pattern_t* pattern, int index, double* offset, double* red, double* green, double* blue, double* alpha) c_cairo_pattern_get_color_stop_rgba; - cairo_pattern_t* function(double red, double green, double blue) c_cairo_pattern_create_rgb; - cairo_pattern_t* function(double red, double green, double blue, double alpha) c_cairo_pattern_create_rgba; - cairo_status_t function(cairo_pattern_t* pattern, double* red, double* green, double* blue, double* alpha) c_cairo_pattern_get_rgba; - cairo_pattern_t* function(cairo_surface_t* surface) c_cairo_pattern_create_for_surface; - cairo_status_t function(cairo_pattern_t* pattern, cairo_surface_t** surface) c_cairo_pattern_get_surface; - cairo_pattern_t* function(double x0, double y0, double x1, double y1) c_cairo_pattern_create_linear; - cairo_status_t function(cairo_pattern_t* pattern, double* x0, double* y0, double* x1, double* y1) c_cairo_pattern_get_linear_points; - cairo_pattern_t* function(double cx0, double cy0, double radius0, double cx1, double cy1, double radius1) c_cairo_pattern_create_radial; - cairo_status_t function(cairo_pattern_t* pattern, double* x0, double* y0, double* r0, double* x1, double* y1, double* r1) c_cairo_pattern_get_radial_circles; - cairo_pattern_t* function() c_cairo_pattern_create_mesh; - cairo_pattern_t* function(cairo_pattern_t* pattern) c_cairo_pattern_reference; - void function(cairo_pattern_t* pattern) c_cairo_pattern_destroy; - cairo_status_t function(cairo_pattern_t* pattern) c_cairo_pattern_status; - void function(cairo_pattern_t* pattern, cairo_extend_t extend) c_cairo_pattern_set_extend; - cairo_extend_t function(cairo_pattern_t* pattern) c_cairo_pattern_get_extend; - void function(cairo_pattern_t* pattern, cairo_filter_t filter) c_cairo_pattern_set_filter; - cairo_filter_t function(cairo_pattern_t* pattern) c_cairo_pattern_get_filter; - void function(cairo_pattern_t* pattern, cairo_matrix_t* matrix) c_cairo_pattern_set_matrix; - void function(cairo_pattern_t* pattern, cairo_matrix_t* matrix) c_cairo_pattern_get_matrix; - cairo_pattern_type_t function(cairo_pattern_t* pattern) c_cairo_pattern_get_type; - uint function(cairo_pattern_t* pattern) c_cairo_pattern_get_reference_count; - cairo_status_t function(cairo_pattern_t* pattern, cairo_user_data_key_t* key, void* userData, cairo_destroy_func_t destroy) c_cairo_pattern_set_user_data; - void* function(cairo_pattern_t* pattern, cairo_user_data_key_t* key) c_cairo_pattern_get_user_data; - - // cairo.MeshPattern - - void function(cairo_pattern_t* pattern) c_cairo_mesh_pattern_begin_patch; - void function(cairo_pattern_t* pattern) c_cairo_mesh_pattern_end_patch; - void function(cairo_pattern_t* pattern, double x, double y) c_cairo_mesh_pattern_move_to; - void function(cairo_pattern_t* pattern, double x, double y) c_cairo_mesh_pattern_line_to; - void function(cairo_pattern_t* pattern, double x1, double y1, double x2, double y2, double x3, double y3) c_cairo_mesh_pattern_curve_to; - void function(cairo_pattern_t* pattern, uint pointNum, double x, double y) c_cairo_mesh_pattern_set_control_point; - void function(cairo_pattern_t* pattern, uint cornerNum, double red, double green, double blue) c_cairo_mesh_pattern_set_corner_color_rgb; - void function(cairo_pattern_t* pattern, uint cornerNum, double red, double green, double blue, double alpha) c_cairo_mesh_pattern_set_corner_color_rgba; - cairo_status_t function(cairo_pattern_t* pattern, uint* count) c_cairo_mesh_pattern_get_patch_count; - cairo_path_t* function(cairo_pattern_t* pattern, uint patchNum) c_cairo_mesh_pattern_get_path; - cairo_status_t function(cairo_pattern_t* pattern, uint patchNum, uint pointNum, double* x, double* y) c_cairo_mesh_pattern_get_control_point; - cairo_status_t function(cairo_pattern_t* pattern, uint patchNum, uint cornerNum, double* red, double* green, double* blue, double* alpha) c_cairo_mesh_pattern_get_corner_color_rgba; - - // cairo.Region - - cairo_region_t* function() c_cairo_region_create; - cairo_region_t* function(cairo_rectangle_int_t* rectangle) c_cairo_region_create_rectangle; - cairo_region_t* function(cairo_rectangle_int_t* rects, int count) c_cairo_region_create_rectangles; - cairo_region_t* function(cairo_region_t* original) c_cairo_region_copy; - cairo_region_t* function(cairo_region_t* region) c_cairo_region_reference; - void function(cairo_region_t* region) c_cairo_region_destroy; - cairo_status_t function(cairo_region_t* region) c_cairo_region_status; - void function(cairo_region_t* region, cairo_rectangle_int_t* extents) c_cairo_region_get_extents; - int function(cairo_region_t* region) c_cairo_region_num_rectangles; - void function(cairo_region_t* region, int nth, cairo_rectangle_int_t* rectangle) c_cairo_region_get_rectangle; - cairo_bool_t function(cairo_region_t* region) c_cairo_region_is_empty; - cairo_bool_t function(cairo_region_t* region, int x, int y) c_cairo_region_contains_point; - cairo_region_overlap_t function(cairo_region_t* region, cairo_rectangle_int_t* rectangle) c_cairo_region_contains_rectangle; - cairo_bool_t function(cairo_region_t* a, cairo_region_t* b) c_cairo_region_equal; - void function(cairo_region_t* region, int dx, int dy) c_cairo_region_translate; - cairo_status_t function(cairo_region_t* dst, cairo_region_t* other) c_cairo_region_intersect; - cairo_status_t function(cairo_region_t* dst, cairo_rectangle_int_t* rectangle) c_cairo_region_intersect_rectangle; - cairo_status_t function(cairo_region_t* dst, cairo_region_t* other) c_cairo_region_subtract; - cairo_status_t function(cairo_region_t* dst, cairo_rectangle_int_t* rectangle) c_cairo_region_subtract_rectangle; - cairo_status_t function(cairo_region_t* dst, cairo_region_t* other) c_cairo_region_union; - cairo_status_t function(cairo_region_t* dst, cairo_rectangle_int_t* rectangle) c_cairo_region_union_rectangle; - cairo_status_t function(cairo_region_t* dst, cairo_region_t* other) c_cairo_region_xor; - cairo_status_t function(cairo_region_t* dst, cairo_rectangle_int_t* rectangle) c_cairo_region_xor_rectangle; - - // cairo.RasterSource - - cairo_pattern_t* function(void* userData, cairo_content_t content, int width, int height) c_cairo_pattern_create_raster_source; - void function(cairo_pattern_t* pattern, void* data) c_cairo_raster_source_pattern_set_callback_data; - void* function(cairo_pattern_t* pattern) c_cairo_raster_source_pattern_get_callback_data; - void function(cairo_pattern_t* pattern, cairo_raster_source_acquire_func_t acquire, cairo_raster_source_release_func_t release) c_cairo_raster_source_pattern_set_acquire; - void function(cairo_pattern_t* pattern, cairo_raster_source_acquire_func_t* acquire, cairo_raster_source_release_func_t* release) c_cairo_raster_source_pattern_get_acquire; - void function(cairo_pattern_t* pattern, cairo_raster_source_snapshot_func_t snapshot) c_cairo_raster_source_pattern_set_snapshot; - cairo_raster_source_snapshot_func_t function(cairo_pattern_t* pattern) c_cairo_raster_source_pattern_get_snapshot; - void function(cairo_pattern_t* pattern, cairo_raster_source_copy_func_t copy) c_cairo_raster_source_pattern_set_copy; - cairo_raster_source_copy_func_t function(cairo_pattern_t* pattern) c_cairo_raster_source_pattern_get_copy; - void function(cairo_pattern_t* pattern, cairo_raster_source_finish_func_t finish) c_cairo_raster_source_pattern_set_finish; - cairo_raster_source_finish_func_t function(cairo_pattern_t* pattern) c_cairo_raster_source_pattern_get_finish; - - // cairo.FontFace - - cairo_font_face_t* function(cairo_font_face_t* fontFace) c_cairo_font_face_reference; - void function(cairo_font_face_t* fontFace) c_cairo_font_face_destroy; - cairo_status_t function(cairo_font_face_t* fontFace) c_cairo_font_face_status; - cairo_font_type_t function(cairo_font_face_t* fontFace) c_cairo_font_face_get_type; - uint function(cairo_font_face_t* fontFace) c_cairo_font_face_get_reference_count; - cairo_status_t function(cairo_font_face_t* fontFace, cairo_user_data_key_t* key, void* userData, cairo_destroy_func_t destroy) c_cairo_font_face_set_user_data; - void* function(cairo_font_face_t* fontFace, cairo_user_data_key_t* key) c_cairo_font_face_get_user_data; - - // cairo.ScaledFont - - cairo_scaled_font_t* function(cairo_font_face_t* fontFace, cairo_matrix_t* fontMatrix, cairo_matrix_t* ctm, cairo_font_options_t* options) c_cairo_scaled_font_create; - cairo_scaled_font_t* function(cairo_scaled_font_t* scaledFont) c_cairo_scaled_font_reference; - void function(cairo_scaled_font_t* scaledFont) c_cairo_scaled_font_destroy; - cairo_status_t function(cairo_scaled_font_t* scaledFont) c_cairo_scaled_font_status; - void function(cairo_scaled_font_t* scaledFont, cairo_font_extents_t* extents) c_cairo_scaled_font_extents; - void function(cairo_scaled_font_t* scaledFont, char* utf8, cairo_text_extents_t* extents) c_cairo_scaled_font_text_extents; - void function(cairo_scaled_font_t* scaledFont, cairo_glyph_t* glyphs, int numGlyphs, cairo_text_extents_t* extents) c_cairo_scaled_font_glyph_extents; - cairo_status_t function(cairo_scaled_font_t* scaledFont, double x, double y, char* utf8, int utf8_Len, cairo_glyph_t** glyphs, int* numGlyphs, cairo_text_cluster_t** clusters, int* numClusters, cairo_text_cluster_flags_t* clusterFlags) c_cairo_scaled_font_text_to_glyphs; - cairo_font_face_t* function(cairo_scaled_font_t* scaledFont) c_cairo_scaled_font_get_font_face; - void function(cairo_scaled_font_t* scaledFont, cairo_font_options_t* options) c_cairo_scaled_font_get_font_options; - void function(cairo_scaled_font_t* scaledFont, cairo_matrix_t* fontMatrix) c_cairo_scaled_font_get_font_matrix; - void function(cairo_scaled_font_t* scaledFont, cairo_matrix_t* ctm) c_cairo_scaled_font_get_ctm; - void function(cairo_scaled_font_t* scaledFont, cairo_matrix_t* scaleMatrix) c_cairo_scaled_font_get_scale_matrix; - cairo_font_type_t function(cairo_scaled_font_t* scaledFont) c_cairo_scaled_font_get_type; - uint function(cairo_scaled_font_t* scaledFont) c_cairo_scaled_font_get_reference_count; - cairo_status_t function(cairo_scaled_font_t* scaledFont, cairo_user_data_key_t* key, void* userData, cairo_destroy_func_t destroy) c_cairo_scaled_font_set_user_data; - void* function(cairo_scaled_font_t* scaledFont, cairo_user_data_key_t* key) c_cairo_scaled_font_get_user_data; - - // cairo.FontOption - - cairo_font_options_t* function() c_cairo_font_options_create; - cairo_font_options_t* function(cairo_font_options_t* original) c_cairo_font_options_copy; - void function(cairo_font_options_t* options) c_cairo_font_options_destroy; - cairo_status_t function(cairo_font_options_t* options) c_cairo_font_options_status; - void function(cairo_font_options_t* options, cairo_font_options_t* other) c_cairo_font_options_merge; - ulong function(cairo_font_options_t* options) c_cairo_font_options_hash; - cairo_bool_t function(cairo_font_options_t* options, cairo_font_options_t* other) c_cairo_font_options_equal; - void function(cairo_font_options_t* options, cairo_antialias_t antialias) c_cairo_font_options_set_antialias; - cairo_antialias_t function(cairo_font_options_t* options) c_cairo_font_options_get_antialias; - void function(cairo_font_options_t* options, cairo_subpixel_order_t subpixelOrder) c_cairo_font_options_set_subpixel_order; - cairo_subpixel_order_t function(cairo_font_options_t* options) c_cairo_font_options_get_subpixel_order; - void function(cairo_font_options_t* options, cairo_hint_style_t hintStyle) c_cairo_font_options_set_hint_style; - cairo_hint_style_t function(cairo_font_options_t* options) c_cairo_font_options_get_hint_style; - void function(cairo_font_options_t* options, cairo_hint_metrics_t hintMetrics) c_cairo_font_options_set_hint_metrics; - cairo_hint_metrics_t function(cairo_font_options_t* options) c_cairo_font_options_get_hint_metrics; - - // cairo.UserFontFace - - cairo_font_face_t* function() c_cairo_user_font_face_create; - void function(cairo_font_face_t* fontFace, cairo_user_scaled_font_init_func_t initFunc) c_cairo_user_font_face_set_init_func; - cairo_user_scaled_font_init_func_t function(cairo_font_face_t* fontFace) c_cairo_user_font_face_get_init_func; - void function(cairo_font_face_t* fontFace, cairo_user_scaled_font_render_glyph_func_t renderGlyphFunc) c_cairo_user_font_face_set_render_glyph_func; - cairo_user_scaled_font_render_glyph_func_t function(cairo_font_face_t* fontFace) c_cairo_user_font_face_get_render_glyph_func; - void function(cairo_font_face_t* fontFace, cairo_user_scaled_font_unicode_to_glyph_func_t unicodeToGlyphFunc) c_cairo_user_font_face_set_unicode_to_glyph_func; - cairo_user_scaled_font_unicode_to_glyph_func_t function(cairo_font_face_t* fontFace) c_cairo_user_font_face_get_unicode_to_glyph_func; - void function(cairo_font_face_t* fontFace, cairo_user_scaled_font_text_to_glyphs_func_t textToGlyphsFunc) c_cairo_user_font_face_set_text_to_glyphs_func; - cairo_user_scaled_font_text_to_glyphs_func_t function(cairo_font_face_t* fontFace) c_cairo_user_font_face_get_text_to_glyphs_func; - - // cairo.Device - - cairo_device_t* function(cairo_device_t* device) c_cairo_device_reference; - void function(cairo_device_t* device) c_cairo_device_destroy; - cairo_status_t function(cairo_device_t* device) c_cairo_device_status; - void function(cairo_device_t* device) c_cairo_device_finish; - void function(cairo_device_t* device) c_cairo_device_flush; - cairo_device_type_t function(cairo_device_t* device) c_cairo_device_get_type; - uint function(cairo_device_t* device) c_cairo_device_get_reference_count; - cairo_status_t function(cairo_device_t* device, cairo_user_data_key_t* key, void* userData, cairo_destroy_func_t destroy) c_cairo_device_set_user_data; - void* function(cairo_device_t* device, cairo_user_data_key_t* key) c_cairo_device_get_user_data; - cairo_status_t function(cairo_device_t* device) c_cairo_device_acquire; - void function(cairo_device_t* device) c_cairo_device_release; - - // cairo.Surface - - cairo_surface_t* function(cairo_surface_t* other, cairo_content_t content, int width, int height) c_cairo_surface_create_similar; - cairo_surface_t* function(cairo_surface_t* other, cairo_format_t format, int width, int height) c_cairo_surface_create_similar_image; - cairo_surface_t* function(cairo_surface_t* target, double x, double y, double width, double height) c_cairo_surface_create_for_rectangle; - cairo_surface_t* function(cairo_surface_t* surface) c_cairo_surface_reference; - void function(cairo_surface_t* surface) c_cairo_surface_destroy; - cairo_status_t function(cairo_surface_t* surface) c_cairo_surface_status; - void function(cairo_surface_t* surface) c_cairo_surface_finish; - void function(cairo_surface_t* surface) c_cairo_surface_flush; - cairo_device_t* function(cairo_surface_t* surface) c_cairo_surface_get_device; - void function(cairo_surface_t* surface, cairo_font_options_t* options) c_cairo_surface_get_font_options; - cairo_content_t function(cairo_surface_t* surface) c_cairo_surface_get_content; - void function(cairo_surface_t* surface) c_cairo_surface_mark_dirty; - void function(cairo_surface_t* surface, int x, int y, int width, int height) c_cairo_surface_mark_dirty_rectangle; - void function(cairo_surface_t* surface, double xOffset, double yOffset) c_cairo_surface_set_device_offset; - void function(cairo_surface_t* surface, double* xOffset, double* yOffset) c_cairo_surface_get_device_offset; - void function(cairo_surface_t* surface, double xPixelsPerInch, double yPixelsPerInch) c_cairo_surface_set_fallback_resolution; - void function(cairo_surface_t* surface, double* xPixelsPerInch, double* yPixelsPerInch) c_cairo_surface_get_fallback_resolution; - cairo_surface_type_t function(cairo_surface_t* surface) c_cairo_surface_get_type; - uint function(cairo_surface_t* surface) c_cairo_surface_get_reference_count; - cairo_status_t function(cairo_surface_t* surface, cairo_user_data_key_t* key, void* userData, cairo_destroy_func_t destroy) c_cairo_surface_set_user_data; - void* function(cairo_surface_t* surface, cairo_user_data_key_t* key) c_cairo_surface_get_user_data; - void function(cairo_surface_t* surface) c_cairo_surface_copy_page; - void function(cairo_surface_t* surface) c_cairo_surface_show_page; - cairo_bool_t function(cairo_surface_t* surface) c_cairo_surface_has_show_text_glyphs; - cairo_status_t function(cairo_surface_t* surface, char* mimeType, uchar* data, ulong length, cairo_destroy_func_t destroy, void* closure) c_cairo_surface_set_mime_data; - void function(cairo_surface_t* surface, char* mimeType, uchar** data, ulong* length) c_cairo_surface_get_mime_data; - cairo_bool_t function(cairo_surface_t* surface, char* mimeType) c_cairo_surface_supports_mime_type; - cairo_surface_t* function(cairo_surface_t* surface, cairo_rectangle_int_t* extents) c_cairo_surface_map_to_image; - void function(cairo_surface_t* surface, cairo_surface_t* image) c_cairo_surface_unmap_image; - - // cairo.ImageSurface - - int function(cairo_format_t format, int width) c_cairo_format_stride_for_width; - cairo_surface_t* function(cairo_format_t format, int width, int height) c_cairo_image_surface_create; - cairo_surface_t* function(uchar* data, cairo_format_t format, int width, int height, int stride) c_cairo_image_surface_create_for_data; - uchar* function(cairo_surface_t* surface) c_cairo_image_surface_get_data; - cairo_format_t function(cairo_surface_t* surface) c_cairo_image_surface_get_format; - int function(cairo_surface_t* surface) c_cairo_image_surface_get_width; - int function(cairo_surface_t* surface) c_cairo_image_surface_get_height; - int function(cairo_surface_t* surface) c_cairo_image_surface_get_stride; - cairo_surface_t* function(char* filename) c_cairo_image_surface_create_from_png; - cairo_surface_t* function(cairo_read_func_t readFunc, void* closure) c_cairo_image_surface_create_from_png_stream; - cairo_status_t function(cairo_surface_t* surface, char* filename) c_cairo_surface_write_to_png; - cairo_status_t function(cairo_surface_t* surface, cairo_write_func_t writeFunc, void* closure) c_cairo_surface_write_to_png_stream; - - // cairo.PdfSurface - - cairo_surface_t* function(char* filename, double widthInPoints, double heightInPoints) c_cairo_pdf_surface_create; - cairo_surface_t* function(cairo_write_func_t writeFunc, void* closure, double widthInPoints, double heightInPoints) c_cairo_pdf_surface_create_for_stream; - void function(cairo_surface_t* surface, cairo_pdf_version_t versio) c_cairo_pdf_surface_restrict_to_version; - void function(cairo_pdf_version_t** versions, int* numVersions) c_cairo_pdf_get_versions; - char* function(cairo_pdf_version_t versio) c_cairo_pdf_version_to_string; - void function(cairo_surface_t* surface, double widthInPoints, double heightInPoints) c_cairo_pdf_surface_set_size; - - // cairo.PostScriptSurface - - cairo_surface_t* function(char* filename, double widthInPoints, double heightInPoints) c_cairo_ps_surface_create; - cairo_surface_t* function(cairo_write_func_t writeFunc, void* closure, double widthInPoints, double heightInPoints) c_cairo_ps_surface_create_for_stream; - void function(cairo_surface_t* surface, cairo_ps_level_t level) c_cairo_ps_surface_restrict_to_level; - void function(cairo_ps_level_t** levels, int* numLevels) c_cairo_ps_get_levels; - char* function(cairo_ps_level_t level) c_cairo_ps_level_to_string; - void function(cairo_surface_t* surface, cairo_bool_t eps) c_cairo_ps_surface_set_eps; - cairo_bool_t function(cairo_surface_t* surface) c_cairo_ps_surface_get_eps; - void function(cairo_surface_t* surface, double widthInPoints, double heightInPoints) c_cairo_ps_surface_set_size; - void function(cairo_surface_t* surface) c_cairo_ps_surface_dsc_begin_setup; - void function(cairo_surface_t* surface) c_cairo_ps_surface_dsc_begin_page_setup; - void function(cairo_surface_t* surface, char* comment) c_cairo_ps_surface_dsc_comment; - - // cairo.RecordingSurface - - cairo_surface_t* function(cairo_content_t content, cairo_rectangle_t* extents) c_cairo_recording_surface_create; - void function(cairo_surface_t* surface, double* x0, double* y0, double* width, double* height) c_cairo_recording_surface_ink_extents; - cairo_bool_t function(cairo_surface_t* surface, cairo_rectangle_t* extents) c_cairo_recording_surface_get_extents; - - // cairo.SvgSurface - - cairo_surface_t* function(char* filename, double widthInPoints, double heightInPoints) c_cairo_svg_surface_create; - cairo_surface_t* function(cairo_write_func_t writeFunc, void* closure, double widthInPoints, double heightInPoints) c_cairo_svg_surface_create_for_stream; - void function(cairo_surface_t* surface, cairo_svg_version_t versio) c_cairo_svg_surface_restrict_to_version; - void function(cairo_svg_version_t** versions, int* numVersions) c_cairo_svg_get_versions; - char* function(cairo_svg_version_t versio) c_cairo_svg_version_to_string; - - // cairo.Script - - cairo_device_t* function(char* filename) c_cairo_script_create; - cairo_device_t* function(cairo_write_func_t writeFunc, void* closure) c_cairo_script_create_for_stream; - cairo_status_t function(cairo_device_t* script, cairo_surface_t* recordingSurface) c_cairo_script_from_recording_surface; - cairo_script_mode_t function(cairo_device_t* script) c_cairo_script_get_mode; - void function(cairo_device_t* script, cairo_script_mode_t mode) c_cairo_script_set_mode; - void function(cairo_device_t* script, char* comment, int len) c_cairo_script_write_comment; - - // cairo.ScriptSurface - - cairo_surface_t* function(cairo_device_t* script, cairo_content_t content, double width, double height) c_cairo_script_surface_create; - cairo_surface_t* function(cairo_device_t* script, cairo_surface_t* target) c_cairo_script_surface_create_for_target; - - // cairo.Matrix - - void function(cairo_matrix_t* matrix, double xx, double yx, double xy, double yy, double x0, double y0) c_cairo_matrix_init; - void function(cairo_matrix_t* matrix) c_cairo_matrix_init_identity; - void function(cairo_matrix_t* matrix, double tx, double ty) c_cairo_matrix_init_translate; - void function(cairo_matrix_t* matrix, double sx, double sy) c_cairo_matrix_init_scale; - void function(cairo_matrix_t* matrix, double radians) c_cairo_matrix_init_rotate; - void function(cairo_matrix_t* matrix, double tx, double ty) c_cairo_matrix_translate; - void function(cairo_matrix_t* matrix, double sx, double sy) c_cairo_matrix_scale; - void function(cairo_matrix_t* matrix, double radians) c_cairo_matrix_rotate; - cairo_status_t function(cairo_matrix_t* matrix) c_cairo_matrix_invert; - void function(cairo_matrix_t* result, cairo_matrix_t* a, cairo_matrix_t* b) c_cairo_matrix_multiply; - void function(cairo_matrix_t* matrix, double* dx, double* dy) c_cairo_matrix_transform_distance; - void function(cairo_matrix_t* matrix, double* x, double* y) c_cairo_matrix_transform_point; - - // cairo.Status - - char* function(cairo_status_t status) c_cairo_status_to_string; - void function() c_cairo_debug_reset_static_data; - - // cairo.Version - - int function() c_cairo_version; - char* function() c_cairo_version_string; - - // cairo. - -} - -// cairo.Context - -alias c_cairo_create cairo_create; -alias c_cairo_reference cairo_reference; -alias c_cairo_destroy cairo_destroy; -alias c_cairo_status cairo_status; -alias c_cairo_save cairo_save; -alias c_cairo_restore cairo_restore; -alias c_cairo_get_target cairo_get_target; -alias c_cairo_push_group cairo_push_group; -alias c_cairo_push_group_with_content cairo_push_group_with_content; -alias c_cairo_pop_group cairo_pop_group; -alias c_cairo_pop_group_to_source cairo_pop_group_to_source; -alias c_cairo_get_group_target cairo_get_group_target; -alias c_cairo_set_source_rgb cairo_set_source_rgb; -alias c_cairo_set_source_rgba cairo_set_source_rgba; -alias c_cairo_set_source cairo_set_source; -alias c_cairo_set_source_surface cairo_set_source_surface; -alias c_cairo_get_source cairo_get_source; -alias c_cairo_set_antialias cairo_set_antialias; -alias c_cairo_get_antialias cairo_get_antialias; -alias c_cairo_set_dash cairo_set_dash; -alias c_cairo_get_dash_count cairo_get_dash_count; -alias c_cairo_get_dash cairo_get_dash; -alias c_cairo_set_fill_rule cairo_set_fill_rule; -alias c_cairo_get_fill_rule cairo_get_fill_rule; -alias c_cairo_set_line_cap cairo_set_line_cap; -alias c_cairo_get_line_cap cairo_get_line_cap; -alias c_cairo_set_line_join cairo_set_line_join; -alias c_cairo_get_line_join cairo_get_line_join; -alias c_cairo_set_line_width cairo_set_line_width; -alias c_cairo_get_line_width cairo_get_line_width; -alias c_cairo_set_miter_limit cairo_set_miter_limit; -alias c_cairo_get_miter_limit cairo_get_miter_limit; -alias c_cairo_set_operator cairo_set_operator; -alias c_cairo_get_operator cairo_get_operator; -alias c_cairo_set_tolerance cairo_set_tolerance; -alias c_cairo_get_tolerance cairo_get_tolerance; -alias c_cairo_clip cairo_clip; -alias c_cairo_clip_preserve cairo_clip_preserve; -alias c_cairo_clip_extents cairo_clip_extents; -alias c_cairo_in_clip cairo_in_clip; -alias c_cairo_reset_clip cairo_reset_clip; -alias c_cairo_rectangle_list_destroy cairo_rectangle_list_destroy; -alias c_cairo_copy_clip_rectangle_list cairo_copy_clip_rectangle_list; -alias c_cairo_fill cairo_fill; -alias c_cairo_fill_preserve cairo_fill_preserve; -alias c_cairo_fill_extents cairo_fill_extents; -alias c_cairo_in_fill cairo_in_fill; -alias c_cairo_mask cairo_mask; -alias c_cairo_mask_surface cairo_mask_surface; -alias c_cairo_paint cairo_paint; -alias c_cairo_paint_with_alpha cairo_paint_with_alpha; -alias c_cairo_stroke cairo_stroke; -alias c_cairo_stroke_preserve cairo_stroke_preserve; -alias c_cairo_stroke_extents cairo_stroke_extents; -alias c_cairo_in_stroke cairo_in_stroke; -alias c_cairo_copy_page cairo_copy_page; -alias c_cairo_show_page cairo_show_page; -alias c_cairo_get_reference_count cairo_get_reference_count; -alias c_cairo_set_user_data cairo_set_user_data; -alias c_cairo_get_user_data cairo_get_user_data; -alias c_cairo_copy_path cairo_copy_path; -alias c_cairo_copy_path_flat cairo_copy_path_flat; -alias c_cairo_path_destroy cairo_path_destroy; -alias c_cairo_append_path cairo_append_path; -alias c_cairo_has_current_point cairo_has_current_point; -alias c_cairo_get_current_point cairo_get_current_point; -alias c_cairo_new_path cairo_new_path; -alias c_cairo_new_sub_path cairo_new_sub_path; -alias c_cairo_close_path cairo_close_path; -alias c_cairo_arc cairo_arc; -alias c_cairo_arc_negative cairo_arc_negative; -alias c_cairo_curve_to cairo_curve_to; -alias c_cairo_line_to cairo_line_to; -alias c_cairo_move_to cairo_move_to; -alias c_cairo_rectangle cairo_rectangle; -alias c_cairo_glyph_path cairo_glyph_path; -alias c_cairo_text_path cairo_text_path; -alias c_cairo_rel_curve_to cairo_rel_curve_to; -alias c_cairo_rel_line_to cairo_rel_line_to; -alias c_cairo_rel_move_to cairo_rel_move_to; -alias c_cairo_path_extents cairo_path_extents; -alias c_cairo_translate cairo_translate; -alias c_cairo_scale cairo_scale; -alias c_cairo_rotate cairo_rotate; -alias c_cairo_transform cairo_transform; -alias c_cairo_set_matrix cairo_set_matrix; -alias c_cairo_get_matrix cairo_get_matrix; -alias c_cairo_identity_matrix cairo_identity_matrix; -alias c_cairo_user_to_device cairo_user_to_device; -alias c_cairo_user_to_device_distance cairo_user_to_device_distance; -alias c_cairo_device_to_user cairo_device_to_user; -alias c_cairo_device_to_user_distance cairo_device_to_user_distance; -alias c_cairo_select_font_face cairo_select_font_face; -alias c_cairo_set_font_size cairo_set_font_size; -alias c_cairo_set_font_matrix cairo_set_font_matrix; -alias c_cairo_get_font_matrix cairo_get_font_matrix; -alias c_cairo_set_font_options cairo_set_font_options; -alias c_cairo_get_font_options cairo_get_font_options; -alias c_cairo_set_font_face cairo_set_font_face; -alias c_cairo_get_font_face cairo_get_font_face; -alias c_cairo_set_scaled_font cairo_set_scaled_font; -alias c_cairo_get_scaled_font cairo_get_scaled_font; -alias c_cairo_show_text cairo_show_text; -alias c_cairo_show_glyphs cairo_show_glyphs; -alias c_cairo_show_text_glyphs cairo_show_text_glyphs; -alias c_cairo_font_extents cairo_font_extents; -alias c_cairo_text_extents cairo_text_extents; -alias c_cairo_glyph_extents cairo_glyph_extents; -alias c_cairo_toy_font_face_create cairo_toy_font_face_create; -alias c_cairo_toy_font_face_get_family cairo_toy_font_face_get_family; -alias c_cairo_toy_font_face_get_slant cairo_toy_font_face_get_slant; -alias c_cairo_toy_font_face_get_weight cairo_toy_font_face_get_weight; -alias c_cairo_glyph_allocate cairo_glyph_allocate; -alias c_cairo_glyph_free cairo_glyph_free; -alias c_cairo_text_cluster_allocate cairo_text_cluster_allocate; -alias c_cairo_text_cluster_free cairo_text_cluster_free; - -// cairo.Pattern - -alias c_cairo_pattern_add_color_stop_rgb cairo_pattern_add_color_stop_rgb; -alias c_cairo_pattern_add_color_stop_rgba cairo_pattern_add_color_stop_rgba; -alias c_cairo_pattern_get_color_stop_count cairo_pattern_get_color_stop_count; -alias c_cairo_pattern_get_color_stop_rgba cairo_pattern_get_color_stop_rgba; -alias c_cairo_pattern_create_rgb cairo_pattern_create_rgb; -alias c_cairo_pattern_create_rgba cairo_pattern_create_rgba; -alias c_cairo_pattern_get_rgba cairo_pattern_get_rgba; -alias c_cairo_pattern_create_for_surface cairo_pattern_create_for_surface; -alias c_cairo_pattern_get_surface cairo_pattern_get_surface; -alias c_cairo_pattern_create_linear cairo_pattern_create_linear; -alias c_cairo_pattern_get_linear_points cairo_pattern_get_linear_points; -alias c_cairo_pattern_create_radial cairo_pattern_create_radial; -alias c_cairo_pattern_get_radial_circles cairo_pattern_get_radial_circles; -alias c_cairo_pattern_create_mesh cairo_pattern_create_mesh; -alias c_cairo_pattern_reference cairo_pattern_reference; -alias c_cairo_pattern_destroy cairo_pattern_destroy; -alias c_cairo_pattern_status cairo_pattern_status; -alias c_cairo_pattern_set_extend cairo_pattern_set_extend; -alias c_cairo_pattern_get_extend cairo_pattern_get_extend; -alias c_cairo_pattern_set_filter cairo_pattern_set_filter; -alias c_cairo_pattern_get_filter cairo_pattern_get_filter; -alias c_cairo_pattern_set_matrix cairo_pattern_set_matrix; -alias c_cairo_pattern_get_matrix cairo_pattern_get_matrix; -alias c_cairo_pattern_get_type cairo_pattern_get_type; -alias c_cairo_pattern_get_reference_count cairo_pattern_get_reference_count; -alias c_cairo_pattern_set_user_data cairo_pattern_set_user_data; -alias c_cairo_pattern_get_user_data cairo_pattern_get_user_data; - -// cairo.MeshPattern - -alias c_cairo_mesh_pattern_begin_patch cairo_mesh_pattern_begin_patch; -alias c_cairo_mesh_pattern_end_patch cairo_mesh_pattern_end_patch; -alias c_cairo_mesh_pattern_move_to cairo_mesh_pattern_move_to; -alias c_cairo_mesh_pattern_line_to cairo_mesh_pattern_line_to; -alias c_cairo_mesh_pattern_curve_to cairo_mesh_pattern_curve_to; -alias c_cairo_mesh_pattern_set_control_point cairo_mesh_pattern_set_control_point; -alias c_cairo_mesh_pattern_set_corner_color_rgb cairo_mesh_pattern_set_corner_color_rgb; -alias c_cairo_mesh_pattern_set_corner_color_rgba cairo_mesh_pattern_set_corner_color_rgba; -alias c_cairo_mesh_pattern_get_patch_count cairo_mesh_pattern_get_patch_count; -alias c_cairo_mesh_pattern_get_path cairo_mesh_pattern_get_path; -alias c_cairo_mesh_pattern_get_control_point cairo_mesh_pattern_get_control_point; -alias c_cairo_mesh_pattern_get_corner_color_rgba cairo_mesh_pattern_get_corner_color_rgba; - -// cairo.Region - -alias c_cairo_region_create cairo_region_create; -alias c_cairo_region_create_rectangle cairo_region_create_rectangle; -alias c_cairo_region_create_rectangles cairo_region_create_rectangles; -alias c_cairo_region_copy cairo_region_copy; -alias c_cairo_region_reference cairo_region_reference; -alias c_cairo_region_destroy cairo_region_destroy; -alias c_cairo_region_status cairo_region_status; -alias c_cairo_region_get_extents cairo_region_get_extents; -alias c_cairo_region_num_rectangles cairo_region_num_rectangles; -alias c_cairo_region_get_rectangle cairo_region_get_rectangle; -alias c_cairo_region_is_empty cairo_region_is_empty; -alias c_cairo_region_contains_point cairo_region_contains_point; -alias c_cairo_region_contains_rectangle cairo_region_contains_rectangle; -alias c_cairo_region_equal cairo_region_equal; -alias c_cairo_region_translate cairo_region_translate; -alias c_cairo_region_intersect cairo_region_intersect; -alias c_cairo_region_intersect_rectangle cairo_region_intersect_rectangle; -alias c_cairo_region_subtract cairo_region_subtract; -alias c_cairo_region_subtract_rectangle cairo_region_subtract_rectangle; -alias c_cairo_region_union cairo_region_union; -alias c_cairo_region_union_rectangle cairo_region_union_rectangle; -alias c_cairo_region_xor cairo_region_xor; -alias c_cairo_region_xor_rectangle cairo_region_xor_rectangle; - -// cairo.RasterSource - -alias c_cairo_pattern_create_raster_source cairo_pattern_create_raster_source; -alias c_cairo_raster_source_pattern_set_callback_data cairo_raster_source_pattern_set_callback_data; -alias c_cairo_raster_source_pattern_get_callback_data cairo_raster_source_pattern_get_callback_data; -alias c_cairo_raster_source_pattern_set_acquire cairo_raster_source_pattern_set_acquire; -alias c_cairo_raster_source_pattern_get_acquire cairo_raster_source_pattern_get_acquire; -alias c_cairo_raster_source_pattern_set_snapshot cairo_raster_source_pattern_set_snapshot; -alias c_cairo_raster_source_pattern_get_snapshot cairo_raster_source_pattern_get_snapshot; -alias c_cairo_raster_source_pattern_set_copy cairo_raster_source_pattern_set_copy; -alias c_cairo_raster_source_pattern_get_copy cairo_raster_source_pattern_get_copy; -alias c_cairo_raster_source_pattern_set_finish cairo_raster_source_pattern_set_finish; -alias c_cairo_raster_source_pattern_get_finish cairo_raster_source_pattern_get_finish; - -// cairo.FontFace - -alias c_cairo_font_face_reference cairo_font_face_reference; -alias c_cairo_font_face_destroy cairo_font_face_destroy; -alias c_cairo_font_face_status cairo_font_face_status; -alias c_cairo_font_face_get_type cairo_font_face_get_type; -alias c_cairo_font_face_get_reference_count cairo_font_face_get_reference_count; -alias c_cairo_font_face_set_user_data cairo_font_face_set_user_data; -alias c_cairo_font_face_get_user_data cairo_font_face_get_user_data; - -// cairo.ScaledFont - -alias c_cairo_scaled_font_create cairo_scaled_font_create; -alias c_cairo_scaled_font_reference cairo_scaled_font_reference; -alias c_cairo_scaled_font_destroy cairo_scaled_font_destroy; -alias c_cairo_scaled_font_status cairo_scaled_font_status; -alias c_cairo_scaled_font_extents cairo_scaled_font_extents; -alias c_cairo_scaled_font_text_extents cairo_scaled_font_text_extents; -alias c_cairo_scaled_font_glyph_extents cairo_scaled_font_glyph_extents; -alias c_cairo_scaled_font_text_to_glyphs cairo_scaled_font_text_to_glyphs; -alias c_cairo_scaled_font_get_font_face cairo_scaled_font_get_font_face; -alias c_cairo_scaled_font_get_font_options cairo_scaled_font_get_font_options; -alias c_cairo_scaled_font_get_font_matrix cairo_scaled_font_get_font_matrix; -alias c_cairo_scaled_font_get_ctm cairo_scaled_font_get_ctm; -alias c_cairo_scaled_font_get_scale_matrix cairo_scaled_font_get_scale_matrix; -alias c_cairo_scaled_font_get_type cairo_scaled_font_get_type; -alias c_cairo_scaled_font_get_reference_count cairo_scaled_font_get_reference_count; -alias c_cairo_scaled_font_set_user_data cairo_scaled_font_set_user_data; -alias c_cairo_scaled_font_get_user_data cairo_scaled_font_get_user_data; - -// cairo.FontOption - -alias c_cairo_font_options_create cairo_font_options_create; -alias c_cairo_font_options_copy cairo_font_options_copy; -alias c_cairo_font_options_destroy cairo_font_options_destroy; -alias c_cairo_font_options_status cairo_font_options_status; -alias c_cairo_font_options_merge cairo_font_options_merge; -alias c_cairo_font_options_hash cairo_font_options_hash; -alias c_cairo_font_options_equal cairo_font_options_equal; -alias c_cairo_font_options_set_antialias cairo_font_options_set_antialias; -alias c_cairo_font_options_get_antialias cairo_font_options_get_antialias; -alias c_cairo_font_options_set_subpixel_order cairo_font_options_set_subpixel_order; -alias c_cairo_font_options_get_subpixel_order cairo_font_options_get_subpixel_order; -alias c_cairo_font_options_set_hint_style cairo_font_options_set_hint_style; -alias c_cairo_font_options_get_hint_style cairo_font_options_get_hint_style; -alias c_cairo_font_options_set_hint_metrics cairo_font_options_set_hint_metrics; -alias c_cairo_font_options_get_hint_metrics cairo_font_options_get_hint_metrics; - -// cairo.UserFontFace - -alias c_cairo_user_font_face_create cairo_user_font_face_create; -alias c_cairo_user_font_face_set_init_func cairo_user_font_face_set_init_func; -alias c_cairo_user_font_face_get_init_func cairo_user_font_face_get_init_func; -alias c_cairo_user_font_face_set_render_glyph_func cairo_user_font_face_set_render_glyph_func; -alias c_cairo_user_font_face_get_render_glyph_func cairo_user_font_face_get_render_glyph_func; -alias c_cairo_user_font_face_set_unicode_to_glyph_func cairo_user_font_face_set_unicode_to_glyph_func; -alias c_cairo_user_font_face_get_unicode_to_glyph_func cairo_user_font_face_get_unicode_to_glyph_func; -alias c_cairo_user_font_face_set_text_to_glyphs_func cairo_user_font_face_set_text_to_glyphs_func; -alias c_cairo_user_font_face_get_text_to_glyphs_func cairo_user_font_face_get_text_to_glyphs_func; - -// cairo.Device - -alias c_cairo_device_reference cairo_device_reference; -alias c_cairo_device_destroy cairo_device_destroy; -alias c_cairo_device_status cairo_device_status; -alias c_cairo_device_finish cairo_device_finish; -alias c_cairo_device_flush cairo_device_flush; -alias c_cairo_device_get_type cairo_device_get_type; -alias c_cairo_device_get_reference_count cairo_device_get_reference_count; -alias c_cairo_device_set_user_data cairo_device_set_user_data; -alias c_cairo_device_get_user_data cairo_device_get_user_data; -alias c_cairo_device_acquire cairo_device_acquire; -alias c_cairo_device_release cairo_device_release; - -// cairo.Surface - -alias c_cairo_surface_create_similar cairo_surface_create_similar; -alias c_cairo_surface_create_similar_image cairo_surface_create_similar_image; -alias c_cairo_surface_create_for_rectangle cairo_surface_create_for_rectangle; -alias c_cairo_surface_reference cairo_surface_reference; -alias c_cairo_surface_destroy cairo_surface_destroy; -alias c_cairo_surface_status cairo_surface_status; -alias c_cairo_surface_finish cairo_surface_finish; -alias c_cairo_surface_flush cairo_surface_flush; -alias c_cairo_surface_get_device cairo_surface_get_device; -alias c_cairo_surface_get_font_options cairo_surface_get_font_options; -alias c_cairo_surface_get_content cairo_surface_get_content; -alias c_cairo_surface_mark_dirty cairo_surface_mark_dirty; -alias c_cairo_surface_mark_dirty_rectangle cairo_surface_mark_dirty_rectangle; -alias c_cairo_surface_set_device_offset cairo_surface_set_device_offset; -alias c_cairo_surface_get_device_offset cairo_surface_get_device_offset; -alias c_cairo_surface_set_fallback_resolution cairo_surface_set_fallback_resolution; -alias c_cairo_surface_get_fallback_resolution cairo_surface_get_fallback_resolution; -alias c_cairo_surface_get_type cairo_surface_get_type; -alias c_cairo_surface_get_reference_count cairo_surface_get_reference_count; -alias c_cairo_surface_set_user_data cairo_surface_set_user_data; -alias c_cairo_surface_get_user_data cairo_surface_get_user_data; -alias c_cairo_surface_copy_page cairo_surface_copy_page; -alias c_cairo_surface_show_page cairo_surface_show_page; -alias c_cairo_surface_has_show_text_glyphs cairo_surface_has_show_text_glyphs; -alias c_cairo_surface_set_mime_data cairo_surface_set_mime_data; -alias c_cairo_surface_get_mime_data cairo_surface_get_mime_data; -alias c_cairo_surface_supports_mime_type cairo_surface_supports_mime_type; -alias c_cairo_surface_map_to_image cairo_surface_map_to_image; -alias c_cairo_surface_unmap_image cairo_surface_unmap_image; - -// cairo.ImageSurface - -alias c_cairo_format_stride_for_width cairo_format_stride_for_width; -alias c_cairo_image_surface_create cairo_image_surface_create; -alias c_cairo_image_surface_create_for_data cairo_image_surface_create_for_data; -alias c_cairo_image_surface_get_data cairo_image_surface_get_data; -alias c_cairo_image_surface_get_format cairo_image_surface_get_format; -alias c_cairo_image_surface_get_width cairo_image_surface_get_width; -alias c_cairo_image_surface_get_height cairo_image_surface_get_height; -alias c_cairo_image_surface_get_stride cairo_image_surface_get_stride; -alias c_cairo_image_surface_create_from_png cairo_image_surface_create_from_png; -alias c_cairo_image_surface_create_from_png_stream cairo_image_surface_create_from_png_stream; -alias c_cairo_surface_write_to_png cairo_surface_write_to_png; -alias c_cairo_surface_write_to_png_stream cairo_surface_write_to_png_stream; - -// cairo.PdfSurface - -alias c_cairo_pdf_surface_create cairo_pdf_surface_create; -alias c_cairo_pdf_surface_create_for_stream cairo_pdf_surface_create_for_stream; -alias c_cairo_pdf_surface_restrict_to_version cairo_pdf_surface_restrict_to_version; -alias c_cairo_pdf_get_versions cairo_pdf_get_versions; -alias c_cairo_pdf_version_to_string cairo_pdf_version_to_string; -alias c_cairo_pdf_surface_set_size cairo_pdf_surface_set_size; - -// cairo.PostScriptSurface - -alias c_cairo_ps_surface_create cairo_ps_surface_create; -alias c_cairo_ps_surface_create_for_stream cairo_ps_surface_create_for_stream; -alias c_cairo_ps_surface_restrict_to_level cairo_ps_surface_restrict_to_level; -alias c_cairo_ps_get_levels cairo_ps_get_levels; -alias c_cairo_ps_level_to_string cairo_ps_level_to_string; -alias c_cairo_ps_surface_set_eps cairo_ps_surface_set_eps; -alias c_cairo_ps_surface_get_eps cairo_ps_surface_get_eps; -alias c_cairo_ps_surface_set_size cairo_ps_surface_set_size; -alias c_cairo_ps_surface_dsc_begin_setup cairo_ps_surface_dsc_begin_setup; -alias c_cairo_ps_surface_dsc_begin_page_setup cairo_ps_surface_dsc_begin_page_setup; -alias c_cairo_ps_surface_dsc_comment cairo_ps_surface_dsc_comment; - -// cairo.RecordingSurface - -alias c_cairo_recording_surface_create cairo_recording_surface_create; -alias c_cairo_recording_surface_ink_extents cairo_recording_surface_ink_extents; -alias c_cairo_recording_surface_get_extents cairo_recording_surface_get_extents; - -// cairo.SvgSurface - -alias c_cairo_svg_surface_create cairo_svg_surface_create; -alias c_cairo_svg_surface_create_for_stream cairo_svg_surface_create_for_stream; -alias c_cairo_svg_surface_restrict_to_version cairo_svg_surface_restrict_to_version; -alias c_cairo_svg_get_versions cairo_svg_get_versions; -alias c_cairo_svg_version_to_string cairo_svg_version_to_string; - -// cairo.Script - -alias c_cairo_script_create cairo_script_create; -alias c_cairo_script_create_for_stream cairo_script_create_for_stream; -alias c_cairo_script_from_recording_surface cairo_script_from_recording_surface; -alias c_cairo_script_get_mode cairo_script_get_mode; -alias c_cairo_script_set_mode cairo_script_set_mode; -alias c_cairo_script_write_comment cairo_script_write_comment; - -// cairo.ScriptSurface - -alias c_cairo_script_surface_create cairo_script_surface_create; -alias c_cairo_script_surface_create_for_target cairo_script_surface_create_for_target; - -// cairo.Matrix - -alias c_cairo_matrix_init cairo_matrix_init; -alias c_cairo_matrix_init_identity cairo_matrix_init_identity; -alias c_cairo_matrix_init_translate cairo_matrix_init_translate; -alias c_cairo_matrix_init_scale cairo_matrix_init_scale; -alias c_cairo_matrix_init_rotate cairo_matrix_init_rotate; -alias c_cairo_matrix_translate cairo_matrix_translate; -alias c_cairo_matrix_scale cairo_matrix_scale; -alias c_cairo_matrix_rotate cairo_matrix_rotate; -alias c_cairo_matrix_invert cairo_matrix_invert; -alias c_cairo_matrix_multiply cairo_matrix_multiply; -alias c_cairo_matrix_transform_distance cairo_matrix_transform_distance; -alias c_cairo_matrix_transform_point cairo_matrix_transform_point; - -// cairo.Status - -alias c_cairo_status_to_string cairo_status_to_string; -alias c_cairo_debug_reset_static_data cairo_debug_reset_static_data; - -// cairo.Version - -alias c_cairo_version cairo_version; -alias c_cairo_version_string cairo_version_string; - -// cairo. - diff --git a/generated/gtkd/gdk/AppLaunchContext.d b/generated/gtkd/gdk/AppLaunchContext.d deleted file mode 100644 index 7e086a51f..000000000 --- a/generated/gtkd/gdk/AppLaunchContext.d +++ /dev/null @@ -1,184 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.AppLaunchContext; - -private import gdk.Display; -private import gdk.c.functions; -public import gdk.c.types; -private import gio.AppLaunchContext : DGioAppLaunchContext = AppLaunchContext; -private import gio.IconIF; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * `GdkAppLaunchContext` handles launching an application in a graphical context. - * - * It is an implementation of `GAppLaunchContext` that provides startup - * notification and allows to launch applications on a specific screen - * or workspace. - * - * ## Launching an application - * - * ```c - * GdkAppLaunchContext *context; - * - * context = gdk_display_get_app_launch_context (display); - * - * gdk_app_launch_context_set_display (display); - * gdk_app_launch_context_set_timestamp (gdk_event_get_time (event)); - * - * if (!g_app_info_launch_default_for_uri ("http://www.gtk.org", context, &error)) - * g_warning ("Launching failed: %s\n", error->message); - * - * g_object_unref (context); - * ``` - */ -public class AppLaunchContext : DGioAppLaunchContext -{ - /** the main Gtk struct */ - protected GdkAppLaunchContext* gdkAppLaunchContext; - - /** Get the main Gtk struct */ - public GdkAppLaunchContext* getGdkAppLaunchContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkAppLaunchContext; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkAppLaunchContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkAppLaunchContext* gdkAppLaunchContext, bool ownedRef = false) - { - this.gdkAppLaunchContext = gdkAppLaunchContext; - super(cast(GAppLaunchContext*)gdkAppLaunchContext, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_app_launch_context_get_type(); - } - - /** - * Gets the `GdkDisplay` that @context is for. - * - * Returns: the display of @context - */ - public Display getDisplay() - { - auto __p = gdk_app_launch_context_get_display(gdkAppLaunchContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Sets the workspace on which applications will be launched. - * - * This only works when running under a window manager that - * supports multiple workspaces, as described in the - * [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec). - * - * When the workspace is not specified or @desktop is set to -1, - * it is up to the window manager to pick one, typically it will - * be the current workspace. - * - * Params: - * desktop = the number of a workspace, or -1 - */ - public void setDesktop(int desktop) - { - gdk_app_launch_context_set_desktop(gdkAppLaunchContext, desktop); - } - - /** - * Sets the icon for applications that are launched with this - * context. - * - * Window Managers can use this information when displaying startup - * notification. - * - * See also [method@Gdk.AppLaunchContext.set_icon_name]. - * - * Params: - * icon = a #GIcon, or %NULL - */ - public void setIcon(IconIF icon) - { - gdk_app_launch_context_set_icon(gdkAppLaunchContext, (icon is null) ? null : icon.getIconStruct()); - } - - /** - * Sets the icon for applications that are launched with this context. - * - * The @icon_name will be interpreted in the same way as the Icon field - * in desktop files. See also [method@Gdk.AppLaunchContext.set_icon()]. - * - * If both @icon and @icon_name are set, the @icon_name takes priority. - * If neither @icon or @icon_name is set, the icon is taken from either - * the file that is passed to launched application or from the `GAppInfo` - * for the launched application itself. - * - * Params: - * iconName = an icon name, or %NULL - */ - public void setIconName(string iconName) - { - gdk_app_launch_context_set_icon_name(gdkAppLaunchContext, Str.toStringz(iconName)); - } - - /** - * Sets the timestamp of @context. - * - * The timestamp should ideally be taken from the event that - * triggered the launch. - * - * Window managers can use this information to avoid moving the - * focus to the newly launched application when the user is busy - * typing in another window. This is also known as 'focus stealing - * prevention'. - * - * Params: - * timestamp = a timestamp - */ - public void setTimestamp(uint timestamp) - { - gdk_app_launch_context_set_timestamp(gdkAppLaunchContext, timestamp); - } -} diff --git a/generated/gtkd/gdk/ButtonEvent.d b/generated/gtkd/gdk/ButtonEvent.d deleted file mode 100644 index 8f875f4e2..000000000 --- a/generated/gtkd/gdk/ButtonEvent.d +++ /dev/null @@ -1,79 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ButtonEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a button on a pointer device. - */ -public class ButtonEvent : Event -{ - /** the main Gtk struct */ - protected GdkButtonEvent* gdkButtonEvent; - - /** Get the main Gtk struct */ - public GdkButtonEvent* getButtonEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkButtonEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkButtonEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkButtonEvent* gdkButtonEvent, bool ownedRef = false) - { - this.gdkButtonEvent = gdkButtonEvent; - super(cast(GdkEvent*)gdkButtonEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_button_event_get_type(); - } - - /** - * Extract the button number from a button event. - * - * Returns: the button of @event - */ - public uint getButton() - { - return gdk_button_event_get_button(cast(GdkEvent*)gdkButtonEvent); - } -} diff --git a/generated/gtkd/gdk/CairoContext.d b/generated/gtkd/gdk/CairoContext.d deleted file mode 100644 index 43101425e..000000000 --- a/generated/gtkd/gdk/CairoContext.d +++ /dev/null @@ -1,101 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.CairoContext; - -private import cairo.Context; -private import gdk.DrawContext; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * `GdkCairoContext` is an object representing the platform-specific - * draw context. - * - * `GdkCairoContext`s are created for a surface using - * [method@Gdk.Surface.create_cairo_context], and the context can then be used - * to draw on that surface. - */ -public class CairoContext : DrawContext -{ - /** the main Gtk struct */ - protected GdkCairoContext* gdkCairoContext; - - /** Get the main Gtk struct */ - public GdkCairoContext* getCairoContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkCairoContext; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkCairoContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkCairoContext* gdkCairoContext, bool ownedRef = false) - { - this.gdkCairoContext = gdkCairoContext; - super(cast(GdkDrawContext*)gdkCairoContext, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_cairo_context_get_type(); - } - - /** - * Retrieves a Cairo context to be used to draw on the `GdkSurface` - * of @context. - * - * A call to [method@Gdk.DrawContext.begin_frame] with this - * @context must have been done or this function will return %NULL. - * - * The returned context is guaranteed to be valid until - * [method@Gdk.DrawContext.end_frame] is called. - * - * Returns: a Cairo context to be used - * to draw the contents of the `GdkSurface`. %NULL is returned - * when @context is not drawing. - */ - public Context cairoCreate() - { - auto __p = gdk_cairo_context_cairo_create(gdkCairoContext); - - if(__p is null) - { - return null; - } - - return new Context(cast(cairo_t*) __p); - } -} diff --git a/generated/gtkd/gdk/Clipboard.d b/generated/gtkd/gdk/Clipboard.d deleted file mode 100644 index a6afac61b..000000000 --- a/generated/gtkd/gdk/Clipboard.d +++ /dev/null @@ -1,510 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Clipboard; - -private import gdk.ContentFormats; -private import gdk.ContentProvider; -private import gdk.Display; -private import gdk.Texture; -private import gdk.c.functions; -public import gdk.c.types; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InputStream; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import gobject.Value; -private import std.algorithm; - - -/** - * The `GdkClipboard` object represents data shared between applications or - * inside an application. - * - * To get a `GdkClipboard` object, use [method@Gdk.Display.get_clipboard] or - * [method@Gdk.Display.get_primary_clipboard]. You can find out about the data - * that is currently available in a clipboard using - * [method@Gdk.Clipboard.get_formats]. - * - * To make text or image data available in a clipboard, use - * [method@Gdk.Clipboard.set_text] or [method@Gdk.Clipboard.set_texture]. - * For other data, you can use [method@Gdk.Clipboard.set_content], which - * takes a [class@Gdk.ContentProvider] object. - * - * To read textual or image data from a clipboard, use - * [method@Gdk.Clipboard.read_text_async] or - * [method@Gdk.Clipboard.read_texture_async]. For other data, use - * [method@Gdk.Clipboard.read_async], which provides a `GInputStream` object. - */ -public class Clipboard : ObjectG -{ - /** the main Gtk struct */ - protected GdkClipboard* gdkClipboard; - - /** Get the main Gtk struct */ - public GdkClipboard* getClipboardStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkClipboard; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkClipboard; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkClipboard* gdkClipboard, bool ownedRef = false) - { - this.gdkClipboard = gdkClipboard; - super(cast(GObject*)gdkClipboard, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_clipboard_get_type(); - } - - /** - * Returns the `GdkContentProvider` currently set on @clipboard. - * - * If the @clipboard is empty or its contents are not owned by the - * current process, %NULL will be returned. - * - * Returns: The content of a clipboard or %NULL - * if the clipboard does not maintain any content. - */ - public ContentProvider getContent() - { - auto __p = gdk_clipboard_get_content(gdkClipboard); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentProvider)(cast(GdkContentProvider*) __p); - } - - /** - * Gets the `GdkDisplay` that the clipboard was created for. - * - * Returns: a `GdkDisplay` - */ - public Display getDisplay() - { - auto __p = gdk_clipboard_get_display(gdkClipboard); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Gets the formats that the clipboard can provide its current contents in. - * - * Returns: The formats of the clipboard - */ - public ContentFormats getFormats() - { - auto __p = gdk_clipboard_get_formats(gdkClipboard); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p); - } - - /** - * Returns if the clipboard is local. - * - * A clipboard is considered local if it was last claimed - * by the running application. - * - * Note that [method@Gdk.Clipboard.get_content] may return %NULL - * even on a local clipboard. In this case the clipboard is empty. - * - * Returns: %TRUE if the clipboard is local - */ - public bool isLocal() - { - return gdk_clipboard_is_local(gdkClipboard) != 0; - } - - /** - * Asynchronously requests an input stream to read the @clipboard's - * contents from. - * - * When the operation is finished @callback will be called. You must then - * call [method@Gdk.Clipboard.read_finish] to get the result of the operation. - * - * The clipboard will choose the most suitable mime type from the given list - * to fulfill the request, preferring the ones listed first. - * - * Params: - * mimeTypes = a %NULL-terminated array of mime types to choose from - * ioPriority = the I/O priority of the request - * cancellable = optional `GCancellable` object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void readAsync(string[] mimeTypes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_clipboard_read_async(gdkClipboard, Str.toStringzArray(mimeTypes), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous clipboard read. - * - * See [method@Gdk.Clipboard.read_async]. - * - * Params: - * result = a `GAsyncResult` - * outMimeType = pointer to store - * the chosen mime type in or %NULL - * - * Returns: a `GInputStream` or %NULL on error. - * - * Throws: GException on failure. - */ - public InputStream readFinish(AsyncResultIF result, out string outMimeType) - { - char* outoutMimeType = null; - GError* err = null; - - auto __p = gdk_clipboard_read_finish(gdkClipboard, (result is null) ? null : result.getAsyncResultStruct(), &outoutMimeType, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outMimeType = Str.toString(outoutMimeType); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p, true); - } - - /** - * Asynchronously request the @clipboard contents converted to a string. - * - * When the operation is finished @callback will be called. You must then - * call [method@Gdk.Clipboard.read_text_finish] to get the result. - * - * This is a simple wrapper around [method@Gdk.Clipboard.read_value_async]. - * Use that function or [method@Gdk.Clipboard.read_async] directly if you - * need more control over the operation. - * - * Params: - * cancellable = optional `GCancellable` object, %NULL to ignore - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void readTextAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_clipboard_read_text_async(gdkClipboard, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous clipboard read. - * - * See [method@Gdk.Clipboard.read_text_async]. - * - * Params: - * result = a `GAsyncResult` - * - * Returns: a new string or %NULL on error - * - * Throws: GException on failure. - */ - public string readTextFinish(AsyncResultIF result) - { - GError* err = null; - - auto retStr = gdk_clipboard_read_text_finish(gdkClipboard, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Asynchronously request the @clipboard contents converted to a `GdkPixbuf`. - * - * When the operation is finished @callback will be called. You must then - * call [method@Gdk.Clipboard.read_texture_finish] to get the result. - * - * This is a simple wrapper around [method@Gdk.Clipboard.read_value_async]. - * Use that function or [methos@Gdk.Clipboard.read_async] directly if you - * need more control over the operation. - * - * Params: - * cancellable = optional `GCancellable` object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void readTextureAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_clipboard_read_texture_async(gdkClipboard, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous clipboard read. - * - * See [method@Gdk.Clipboard.read_texture_async]. - * - * Params: - * result = a `GAsyncResult` - * - * Returns: a new `GdkTexture` or %NULL on error - * - * Throws: GException on failure. - */ - public Texture readTextureFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = gdk_clipboard_read_texture_finish(gdkClipboard, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Texture)(cast(GdkTexture*) __p, true); - } - - /** - * Asynchronously request the @clipboard contents converted to the given - * @type. - * - * When the operation is finished @callback will be called. You must then call - * [method@Gdk.Clipboard.read_value_finish] to get the resulting `GValue`. - * - * For local clipboard contents that are available in the given `GType`, - * the value will be copied directly. Otherwise, GDK will try to use - * [func@content_deserialize_async] to convert the clipboard's data. - * - * Params: - * type = a `GType` to read - * ioPriority = the I/O priority of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void readValueAsync(GType type, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_clipboard_read_value_async(gdkClipboard, type, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous clipboard read. - * - * See [method@Gdk.Clipboard.read_value_async]. - * - * Params: - * result = a `GAsyncResult` - * - * Returns: a `GValue` containing the result. - * - * Throws: GException on failure. - */ - public Value readValueFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = gdk_clipboard_read_value_finish(gdkClipboard, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Sets a new content provider on @clipboard. - * - * The clipboard will claim the `GdkDisplay`'s resources and advertise - * these new contents to other applications. - * - * In the rare case of a failure, this function will return %FALSE. The - * clipboard will then continue reporting its old contents and ignore - * @provider. - * - * If the contents are read by either an external application or the - * @clipboard's read functions, @clipboard will select the best format to - * transfer the contents and then request that format from @provider. - * - * Params: - * provider = the new contents of @clipboard or - * %NULL to clear the clipboard - * - * Returns: %TRUE if setting the clipboard succeeded - */ - public bool setContent(ContentProvider provider) - { - return gdk_clipboard_set_content(gdkClipboard, (provider is null) ? null : provider.getContentProviderStruct()) != 0; - } - - /** - * Puts the given @text into the clipboard. - * - * Params: - * text = Text to put into the clipboard - */ - public void setText(string text) - { - gdk_clipboard_set_text(gdkClipboard, Str.toStringz(text)); - } - - /** - * Puts the given @texture into the clipboard. - * - * Params: - * texture = a `GdkTexture` to put into the clipboard - */ - public void setTexture(Texture texture) - { - gdk_clipboard_set_texture(gdkClipboard, (texture is null) ? null : texture.getTextureStruct()); - } - - /** - * Sets the clipboard to contain the value collected from the given @args. - * - * Params: - * type = type of value to set - * args = varargs containing the value of @type - */ - public void setValist(GType type, void* args) - { - gdk_clipboard_set_valist(gdkClipboard, type, args); - } - - /** - * Sets the @clipboard to contain the given @value. - * - * Params: - * value = a `GValue` to set - */ - public void setValue(Value value) - { - gdk_clipboard_set_value(gdkClipboard, (value is null) ? null : value.getValueStruct()); - } - - /** - * Asynchronously instructs the @clipboard to store its contents remotely. - * - * If the clipboard is not local, this function does nothing but report success. - * - * The @callback must call [method@Gdk.Clipboard.store_finish]. - * - * The purpose of this call is to preserve clipboard contents beyond the - * lifetime of an application, so this function is typically called on - * exit. Depending on the platform, the functionality may not be available - * unless a "clipboard manager" is running. - * - * This function is called automatically when a [class@Gtk.Application] is - * shut down, so you likely don't need to call it. - * - * Params: - * ioPriority = the I/O priority of the request. - * cancellable = optional `GCancellable` object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void storeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_clipboard_store_async(gdkClipboard, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous clipboard store. - * - * See [method@Gdk.Clipboard.store_async]. - * - * Params: - * result = a `GAsyncResult` - * - * Returns: %TRUE if storing was successful. - * - * Throws: GException on failure. - */ - public bool storeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = gdk_clipboard_store_finish(gdkClipboard, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Emitted when the clipboard changes ownership. - */ - gulong addOnChanged(void delegate(Clipboard) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/ContentDeserializer.d b/generated/gtkd/gdk/ContentDeserializer.d deleted file mode 100644 index 51b0c1dd3..000000000 --- a/generated/gtkd/gdk/ContentDeserializer.d +++ /dev/null @@ -1,232 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ContentDeserializer; - -private import gdk.c.functions; -public import gdk.c.types; -private import gio.AsyncResultIF; -private import gio.AsyncResultT; -private import gio.Cancellable; -private import gio.InputStream; -private import glib.ErrorG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; - - -/** - * A `GdkContentDeserializer` is used to deserialize content received via - * inter-application data transfers. - * - * The `GdkContentDeserializer` transforms serialized content that is - * identified by a mime type into an object identified by a GType. - * - * GTK provides serializers and deserializers for common data types - * such as text, colors, images or file lists. To register your own - * deserialization functions, use [func@content_register_deserializer]. - * - * Also see [class@Gdk.ContentSerializer]. - */ -public class ContentDeserializer : ObjectG, AsyncResultIF -{ - /** the main Gtk struct */ - protected GdkContentDeserializer* gdkContentDeserializer; - - /** Get the main Gtk struct */ - public GdkContentDeserializer* getContentDeserializerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkContentDeserializer; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkContentDeserializer; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkContentDeserializer* gdkContentDeserializer, bool ownedRef = false) - { - this.gdkContentDeserializer = gdkContentDeserializer; - super(cast(GObject*)gdkContentDeserializer, ownedRef); - } - - // add the AsyncResult capabilities - mixin AsyncResultT!(GdkContentDeserializer); - - - /** */ - public static GType getType() - { - return gdk_content_deserializer_get_type(); - } - - /** - * Gets the cancellable for the current operation. - * - * This is the `GCancellable` that was passed to [func@content_deserialize_async]. - * - * Returns: the cancellable for the current operation - */ - public Cancellable getCancellable() - { - auto __p = gdk_content_deserializer_get_cancellable(gdkContentDeserializer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Cancellable)(cast(GCancellable*) __p); - } - - /** - * Gets the GType to create an instance of. - * - * Returns: the GType for the current operation - */ - public GType getGtype() - { - return gdk_content_deserializer_get_gtype(gdkContentDeserializer); - } - - /** - * Gets the input stream for the current operation. - * - * This is the stream that was passed to [func@content_deserialize_async]. - * - * Returns: the input stream for the current operation - */ - public InputStream getInputStream() - { - auto __p = gdk_content_deserializer_get_input_stream(gdkContentDeserializer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p); - } - - /** - * Gets the mime type to deserialize from. - * - * Returns: the mime type for the current operation - */ - public string getMimeType() - { - return Str.toString(gdk_content_deserializer_get_mime_type(gdkContentDeserializer)); - } - - /** - * Gets the I/O priority for the current operation. - * - * This is the priority that was passed to [funccontent_deserialize_async]. - * - * Returns: the I/O priority for the current operation - */ - public int getPriority() - { - return gdk_content_deserializer_get_priority(gdkContentDeserializer); - } - - /** - * Gets the data that was associated with the current operation. - * - * See [method@Gdk.ContentDeserializer.set_task_data]. - * - * Returns: the task data for @deserializer - */ - public void* getTaskData() - { - return gdk_content_deserializer_get_task_data(gdkContentDeserializer); - } - - /** - * Gets the user data that was passed when the deserializer was registered. - * - * Returns: the user data for this deserializer - */ - public void* getUserData() - { - return gdk_content_deserializer_get_user_data(gdkContentDeserializer); - } - - /** - * Gets the `GValue` to store the deserialized object in. - * - * Returns: the `GValue` for the current operation - */ - public Value getValue() - { - auto __p = gdk_content_deserializer_get_value(gdkContentDeserializer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Indicate that the deserialization has ended with an error. - * - * This function consumes @error. - * - * Params: - * error = a `GError` - */ - public void returnError(ErrorG error) - { - gdk_content_deserializer_return_error(gdkContentDeserializer, (error is null) ? null : error.getErrorGStruct()); - } - - /** - * Indicate that the deserialization has been successfully completed. - */ - public void returnSuccess() - { - gdk_content_deserializer_return_success(gdkContentDeserializer); - } - - /** - * Associate data with the current deserialization operation. - * - * Params: - * data = data to associate with this operation - * notify = destroy notify for @data - */ - public void setTaskData(void* data, GDestroyNotify notify) - { - gdk_content_deserializer_set_task_data(gdkContentDeserializer, data, notify); - } -} diff --git a/generated/gtkd/gdk/ContentFormats.d b/generated/gtkd/gdk/ContentFormats.d deleted file mode 100644 index 0285c26ca..000000000 --- a/generated/gtkd/gdk/ContentFormats.d +++ /dev/null @@ -1,421 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ContentFormats; - -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.StringG; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * The `GdkContentFormats` structure is used to advertise and negotiate the - * format of content. - * - * You will encounter `GdkContentFormats` when interacting with objects - * controlling operations that pass data between different widgets, window - * or application, like [class@Gdk.Drag], [class@Gdk.Drop], - * [class@Gdk.Clipboard] or [class@Gdk.ContentProvider]. - * - * GDK supports content in 2 forms: `GType` and mime type. - * Using `GTypes` is meant only for in-process content transfers. Mime types - * are meant to be used for data passing both in-process and out-of-process. - * The details of how data is passed is described in the documentation of - * the actual implementations. To transform between the two forms, - * [class@Gdk.ContentSerializer] and [class@Gdk.ContentDeserializer] are used. - * - * A `GdkContentFormats` describes a set of possible formats content can be - * exchanged in. It is assumed that this set is ordered. `GTypes` are more - * important than mime types. Order between different `GTypes` or mime types - * is the order they were added in, most important first. Functions that - * care about order, such as [method@Gdk.ContentFormats.union], will describe - * in their documentation how they interpret that order, though in general the - * order of the first argument is considered the primary order of the result, - * followed by the order of further arguments. - * - * For debugging purposes, the function [method@Gdk.ContentFormats.to_string] - * exists. It will print a comma-separated list of formats from most important - * to least important. - * - * `GdkContentFormats` is an immutable struct. After creation, you cannot change - * the types it represents. Instead, new `GdkContentFormats` have to be created. - * The [struct@Gdk.ContentFormatsBuilder]` structure is meant to help in this - * endeavor. - */ -public class ContentFormats -{ - /** the main Gtk struct */ - protected GdkContentFormats* gdkContentFormats; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkContentFormats* getContentFormatsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkContentFormats; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkContentFormats; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkContentFormats* gdkContentFormats, bool ownedRef = false) - { - this.gdkContentFormats = gdkContentFormats; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDK) && ownedRef ) - gdk_content_formats_unref(gdkContentFormats); - } - - - /** */ - public static GType getType() - { - return gdk_content_formats_get_type(); - } - - /** - * Creates a new `GdkContentFormats` from an array of mime types. - * - * The mime types must be valid and different from each other or the - * behavior of the return value is undefined. If you cannot guarantee - * this, use `GdkContentFormatsBuilder` instead. - * - * Params: - * mimeTypes = Pointer to an - * array of mime types - * - * Returns: the new `GdkContentFormats`. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string[] mimeTypes) - { - auto __p = gdk_content_formats_new(Str.toStringzArray(mimeTypes), cast(uint)mimeTypes.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkContentFormats*) __p); - } - - /** - * Creates a new `GdkContentFormats` for a given `GType`. - * - * Params: - * type = a `GType` - * - * Returns: a new `GdkContentFormats` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GType type) - { - auto __p = gdk_content_formats_new_for_gtype(type); - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_gtype"); - } - - this(cast(GdkContentFormats*) __p); - } - - /** - * Checks if a given `GType` is part of the given @formats. - * - * Params: - * type = the `GType` to search for - * - * Returns: %TRUE if the #GType was found - */ - public bool containGtype(GType type) - { - return gdk_content_formats_contain_gtype(gdkContentFormats, type) != 0; - } - - /** - * Checks if a given mime type is part of the given @formats. - * - * Params: - * mimeType = the mime type to search for - * - * Returns: %TRUE if the mime_type was found - */ - public bool containMimeType(string mimeType) - { - return gdk_content_formats_contain_mime_type(gdkContentFormats, Str.toStringz(mimeType)) != 0; - } - - /** - * Gets the `GTypes` included in @formats. - * - * Note that @formats may not contain any #GTypes, in particular when - * they are empty. In that case %NULL will be returned. - * - * Returns: %G_TYPE_INVALID-terminated array of types included in @formats or - * %NULL if none. - */ - public GType[] getGtypes() - { - size_t nGtypes; - - auto __p = gdk_content_formats_get_gtypes(gdkContentFormats, &nGtypes); - - return __p[0 .. nGtypes]; - } - - /** - * Gets the mime types included in @formats. - * - * Note that @formats may not contain any mime types, in particular - * when they are empty. In that case %NULL will be returned. - * - * Returns: %NULL-terminated array of - * interned strings of mime types included in @formats or %NULL - * if none. - */ - public string[] getMimeTypes() - { - size_t nMimeTypes; - - return Str.toStringArray(gdk_content_formats_get_mime_types(gdkContentFormats, &nMimeTypes)); - } - - /** - * Checks if @first and @second have any matching formats. - * - * Params: - * second = the `GdkContentFormats` to intersect with - * - * Returns: %TRUE if a matching format was found. - */ - public bool match(ContentFormats second) - { - return gdk_content_formats_match(gdkContentFormats, (second is null) ? null : second.getContentFormatsStruct()) != 0; - } - - /** - * Finds the first `GType` from @first that is also contained - * in @second. - * - * If no matching `GType` is found, %G_TYPE_INVALID is returned. - * - * Params: - * second = the `GdkContentFormats` to intersect with - * - * Returns: The first common `GType` or %G_TYPE_INVALID if none. - */ - public GType matchGtype(ContentFormats second) - { - return gdk_content_formats_match_gtype(gdkContentFormats, (second is null) ? null : second.getContentFormatsStruct()); - } - - /** - * Finds the first mime type from @first that is also contained - * in @second. - * - * If no matching mime type is found, %NULL is returned. - * - * Params: - * second = the `GdkContentFormats` to intersect with - * - * Returns: The first common mime type or %NULL if none. - */ - public string matchMimeType(ContentFormats second) - { - return Str.toString(gdk_content_formats_match_mime_type(gdkContentFormats, (second is null) ? null : second.getContentFormatsStruct())); - } - - /** - * Prints the given @formats into a string for human consumption. - * - * This is meant for debugging and logging. - * - * The form of the representation may change at any time and is - * not guaranteed to stay identical. - * - * Params: - * string_ = a `GString` to print into - */ - public void print(StringG string_) - { - gdk_content_formats_print(gdkContentFormats, (string_ is null) ? null : string_.getStringGStruct()); - } - - alias doref = ref_; - /** - * Increases the reference count of a `GdkContentFormats` by one. - * - * Returns: the passed in `GdkContentFormats`. - */ - public ContentFormats ref_() - { - auto __p = gdk_content_formats_ref(gdkContentFormats); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Prints the given @formats into a human-readable string. - * - * This is a small wrapper around [method@Gdk.ContentFormats.print] - * to help when debugging. - * - * Returns: a new string - */ - public override string toString() - { - auto retStr = gdk_content_formats_to_string(gdkContentFormats); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - alias unio = union_; - /** - * Append all missing types from @second to @first, in the order - * they had in @second. - * - * Params: - * second = the `GdkContentFormats` to merge from - * - * Returns: a new `GdkContentFormats` - */ - public ContentFormats union_(ContentFormats second) - { - auto __p = gdk_content_formats_union(gdkContentFormats, (second is null) ? null : second.getContentFormatsStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Add GTypes for mime types in @formats for which deserializers are - * registered. - * - * Returns: a new `GdkContentFormats` - */ - public ContentFormats unionDeserializeGtypes() - { - auto __p = gdk_content_formats_union_deserialize_gtypes(gdkContentFormats); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Add mime types for GTypes in @formats for which deserializers are - * registered. - * - * Returns: a new `GdkContentFormats` - */ - public ContentFormats unionDeserializeMimeTypes() - { - auto __p = gdk_content_formats_union_deserialize_mime_types(gdkContentFormats); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Add GTypes for the mime types in @formats for which serializers are - * registered. - * - * Returns: a new `GdkContentFormats` - */ - public ContentFormats unionSerializeGtypes() - { - auto __p = gdk_content_formats_union_serialize_gtypes(gdkContentFormats); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Add mime types for GTypes in @formats for which serializers are - * registered. - * - * Returns: a new `GdkContentFormats` - */ - public ContentFormats unionSerializeMimeTypes() - { - auto __p = gdk_content_formats_union_serialize_mime_types(gdkContentFormats); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Decreases the reference count of a `GdkContentFormats` by one. - * - * If the resulting reference count is zero, frees the formats. - */ - public void unref() - { - gdk_content_formats_unref(gdkContentFormats); - } -} diff --git a/generated/gtkd/gdk/ContentFormatsBuilder.d b/generated/gtkd/gdk/ContentFormatsBuilder.d deleted file mode 100644 index a32997079..000000000 --- a/generated/gtkd/gdk/ContentFormatsBuilder.d +++ /dev/null @@ -1,210 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ContentFormatsBuilder; - -private import gdk.ContentFormats; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * A `GdkContentFormatsBuilder` is an auxiliary struct used to create - * new `GdkContentFormats`, and should not be kept around. - */ -public class ContentFormatsBuilder -{ - /** the main Gtk struct */ - protected GdkContentFormatsBuilder* gdkContentFormatsBuilder; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkContentFormatsBuilder* getContentFormatsBuilderStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkContentFormatsBuilder; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkContentFormatsBuilder; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkContentFormatsBuilder* gdkContentFormatsBuilder, bool ownedRef = false) - { - this.gdkContentFormatsBuilder = gdkContentFormatsBuilder; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDK) && ownedRef ) - gdk_content_formats_builder_unref(gdkContentFormatsBuilder); - } - - - /** */ - public static GType getType() - { - return gdk_content_formats_builder_get_type(); - } - - /** - * Create a new `GdkContentFormatsBuilder` object. - * - * The resulting builder would create an empty `GdkContentFormats`. - * Use addition functions to add types to it. - * - * Returns: a new `GdkContentFormatsBuilder` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gdk_content_formats_builder_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkContentFormatsBuilder*) __p); - } - - /** - * Appends all formats from @formats to @builder, skipping those that - * already exist. - * - * Params: - * formats = the formats to add - */ - public void addFormats(ContentFormats formats) - { - gdk_content_formats_builder_add_formats(gdkContentFormatsBuilder, (formats is null) ? null : formats.getContentFormatsStruct()); - } - - /** - * Appends @type to @builder if it has not already been added. - * - * Params: - * type = a `GType` - */ - public void addGtype(GType type) - { - gdk_content_formats_builder_add_gtype(gdkContentFormatsBuilder, type); - } - - /** - * Appends @mime_type to @builder if it has not already been added. - * - * Params: - * mimeType = a mime type - */ - public void addMimeType(string mimeType) - { - gdk_content_formats_builder_add_mime_type(gdkContentFormatsBuilder, Str.toStringz(mimeType)); - } - - /** - * Creates a new `GdkContentFormats` from the current state of the - * given @builder, and frees the @builder instance. - * - * Returns: the newly created `GdkContentFormats` - * with all the formats added to @builder - */ - public ContentFormats freeToFormats() - { - auto __p = gdk_content_formats_builder_free_to_formats(gdkContentFormatsBuilder); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - alias doref = ref_; - /** - * Acquires a reference on the given @builder. - * - * This function is intended primarily for bindings. - * `GdkContentFormatsBuilder` objects should not be kept around. - * - * Returns: the given `GdkContentFormatsBuilder` - * with its reference count increased - */ - public ContentFormatsBuilder ref_() - { - auto __p = gdk_content_formats_builder_ref(gdkContentFormatsBuilder); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormatsBuilder)(cast(GdkContentFormatsBuilder*) __p); - } - - /** - * Creates a new `GdkContentFormats` from the given @builder. - * - * The given `GdkContentFormatsBuilder` is reset once this function returns; - * you cannot call this function multiple times on the same @builder instance. - * - * This function is intended primarily for bindings. C code should use - * [method@Gdk.ContentFormatsBuilder.free_to_formats]. - * - * Returns: the newly created `GdkContentFormats` - * with all the formats added to @builder - */ - public ContentFormats toFormats() - { - auto __p = gdk_content_formats_builder_to_formats(gdkContentFormatsBuilder); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Releases a reference on the given @builder. - */ - public void unref() - { - gdk_content_formats_builder_unref(gdkContentFormatsBuilder); - } -} diff --git a/generated/gtkd/gdk/ContentProvider.d b/generated/gtkd/gdk/ContentProvider.d deleted file mode 100644 index 6a22290fe..000000000 --- a/generated/gtkd/gdk/ContentProvider.d +++ /dev/null @@ -1,317 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ContentProvider; - -private import gdk.ContentFormats; -private import gdk.c.functions; -public import gdk.c.types; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.OutputStream; -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import gobject.Value; -private import std.algorithm; - - -/** - * A `GdkContentProvider` is used to provide content for the clipboard or - * for drag-and-drop operations in a number of formats. - * - * To create a `GdkContentProvider`, use [ctor@Gdk.ContentProvider.new_for_value] - * or [ctor@Gdk.ContentProvider.new_for_bytes]. - * - * GDK knows how to handle common text and image formats out-of-the-box. See - * [class@Gdk.ContentSerializer] and [class@Gdk.ContentDeserializer] if you want - * to add support for application-specific data formats. - */ -public class ContentProvider : ObjectG -{ - /** the main Gtk struct */ - protected GdkContentProvider* gdkContentProvider; - - /** Get the main Gtk struct */ - public GdkContentProvider* getContentProviderStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkContentProvider; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkContentProvider; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkContentProvider* gdkContentProvider, bool ownedRef = false) - { - this.gdkContentProvider = gdkContentProvider; - super(cast(GObject*)gdkContentProvider, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_content_provider_get_type(); - } - - /** - * Create a content provider that provides the given @bytes as data for - * the given @mime_type. - * - * Params: - * mimeType = the mime type - * bytes = a `GBytes` with the data for @mime_type - * - * Returns: a new `GdkContentProvider` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string mimeType, Bytes bytes) - { - auto __p = gdk_content_provider_new_for_bytes(Str.toStringz(mimeType), (bytes is null) ? null : bytes.getBytesStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_bytes"); - } - - this(cast(GdkContentProvider*) __p, true); - } - - /** - * Create a content provider that provides the given @value. - * - * Params: - * value = a `GValue` - * - * Returns: a new `GdkContentProvider` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Value value) - { - auto __p = gdk_content_provider_new_for_value((value is null) ? null : value.getValueStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_value"); - } - - this(cast(GdkContentProvider*) __p, true); - } - - /** - * Creates a content provider that represents all the given @providers. - * - * Whenever data needs to be written, the union provider will try the given - * @providers in the given order and the first one supporting a format will - * be chosen to provide it. - * - * This allows an easy way to support providing data in different formats. - * For example, an image may be provided by its file and by the image - * contents with a call such as - * ```c - * gdk_content_provider_new_union ((GdkContentProvider *[2]) { - * gdk_content_provider_new_typed (G_TYPE_FILE, file), - * gdk_content_provider_new_typed (G_TYPE_TEXTURE, texture) - * }, 2); - * ``` - * - * Params: - * providers = The #GdkContentProviders to present the union of - * - * Returns: a new `GdkContentProvider` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ContentProvider[] providers) - { - GdkContentProvider*[] providersArray = new GdkContentProvider*[providers.length]; - for ( int i = 0; i < providers.length; i++ ) - { - providersArray[i] = providers[i].getContentProviderStruct(); - } - - auto __p = gdk_content_provider_new_union(providersArray.ptr, cast(size_t)providers.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new_union"); - } - - this(cast(GdkContentProvider*) __p, true); - } - - /** - * Emits the ::content-changed signal. - */ - public void contentChanged() - { - gdk_content_provider_content_changed(gdkContentProvider); - } - - /** - * Gets the contents of @provider stored in @value. - * - * The @value will have been initialized to the `GType` the value should be - * provided in. This given `GType` does not need to be listed in the formats - * returned by [method@Gdk.ContentProvider.ref_formats]. However, if the - * given `GType` is not supported, this operation can fail and - * #G_IO_ERROR_NOT_SUPPORTED will be reported. - * - * Params: - * value = the `GValue` to fill - * - * Returns: %TRUE if the value was set successfully. Otherwise - * @error will be set to describe the failure. - * - * Throws: GException on failure. - */ - public bool getValue(Value value) - { - GError* err = null; - - auto __p = gdk_content_provider_get_value(gdkContentProvider, (value is null) ? null : value.getValueStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the formats that the provider can provide its current contents in. - * - * Returns: The formats of the provider - */ - public ContentFormats refFormats() - { - auto __p = gdk_content_provider_ref_formats(gdkContentProvider); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Gets the formats that the provider suggests other applications to store - * the data in. - * - * An example of such an application would be a clipboard manager. - * - * This can be assumed to be a subset of [method@Gdk.ContentProvider.ref_formats]. - * - * Returns: The storable formats of the provider - */ - public ContentFormats refStorableFormats() - { - auto __p = gdk_content_provider_ref_storable_formats(gdkContentProvider); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p, true); - } - - /** - * Asynchronously writes the contents of @provider to @stream in the given - * @mime_type. - * - * When the operation is finished @callback will be called. You must then call - * [method@Gdk.ContentProvider.write_mime_type_finish] to get the result - * of the operation. - * - * The given mime type does not need to be listed in the formats returned by - * [method@Gdk.ContentProvider.ref_formats]. However, if the given `GType` is - * not supported, #G_IO_ERROR_NOT_SUPPORTED will be reported. - * - * The given @stream will not be closed. - * - * Params: - * mimeType = the mime type to provide the data in - * stream = the `GOutputStream` to write to - * ioPriority = I/O priority of the request. - * cancellable = optional `GCancellable` object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void writeMimeTypeAsync(string mimeType, OutputStream stream, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_content_provider_write_mime_type_async(gdkContentProvider, Str.toStringz(mimeType), (stream is null) ? null : stream.getOutputStreamStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous write operation. - * - * See [method@Gdk.ContentProvider.write_mime_type_async]. - * - * Params: - * result = a `GAsyncResult` - * - * Returns: %TRUE if the operation was completed successfully. Otherwise - * @error will be set to describe the failure. - * - * Throws: GException on failure. - */ - public bool writeMimeTypeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = gdk_content_provider_write_mime_type_finish(gdkContentProvider, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Emitted whenever the content provided by this provider has changed. - */ - gulong addOnContentChanged(void delegate(ContentProvider) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "content-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/ContentSerializer.d b/generated/gtkd/gdk/ContentSerializer.d deleted file mode 100644 index edbde54cc..000000000 --- a/generated/gtkd/gdk/ContentSerializer.d +++ /dev/null @@ -1,233 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ContentSerializer; - -private import gdk.c.functions; -public import gdk.c.types; -private import gio.AsyncResultIF; -private import gio.AsyncResultT; -private import gio.Cancellable; -private import gio.OutputStream; -private import glib.ErrorG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; - - -/** - * A `GdkContentSerializer` is used to serialize content for - * inter-application data transfers. - * - * The `GdkContentSerializer` transforms an object that is identified - * by a GType into a serialized form (i.e. a byte stream) that is - * identified by a mime type. - * - * GTK provides serializers and deserializers for common data types - * such as text, colors, images or file lists. To register your own - * serialization functions, use [func@content_register_serializer]. - * - * Also see [class@Gdk.ContentDeserializer]. - */ -public class ContentSerializer : ObjectG, AsyncResultIF -{ - /** the main Gtk struct */ - protected GdkContentSerializer* gdkContentSerializer; - - /** Get the main Gtk struct */ - public GdkContentSerializer* getContentSerializerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkContentSerializer; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkContentSerializer; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkContentSerializer* gdkContentSerializer, bool ownedRef = false) - { - this.gdkContentSerializer = gdkContentSerializer; - super(cast(GObject*)gdkContentSerializer, ownedRef); - } - - // add the AsyncResult capabilities - mixin AsyncResultT!(GdkContentSerializer); - - - /** */ - public static GType getType() - { - return gdk_content_serializer_get_type(); - } - - /** - * Gets the cancellable for the current operation. - * - * This is the `GCancellable` that was passed to [content_serialize_async]. - * - * Returns: the cancellable for the current operation - */ - public Cancellable getCancellable() - { - auto __p = gdk_content_serializer_get_cancellable(gdkContentSerializer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Cancellable)(cast(GCancellable*) __p); - } - - /** - * Gets the `GType` to of the object to serialize. - * - * Returns: the `GType` for the current operation - */ - public GType getGtype() - { - return gdk_content_serializer_get_gtype(gdkContentSerializer); - } - - /** - * Gets the mime type to serialize to. - * - * Returns: the mime type for the current operation - */ - public string getMimeType() - { - return Str.toString(gdk_content_serializer_get_mime_type(gdkContentSerializer)); - } - - /** - * Gets the output stream for the current operation. - * - * This is the stream that was passed to [func@content_serialize_async]. - * - * Returns: the output stream for the current operation - */ - public OutputStream getOutputStream() - { - auto __p = gdk_content_serializer_get_output_stream(gdkContentSerializer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(OutputStream)(cast(GOutputStream*) __p); - } - - /** - * Gets the I/O priority for the current operation. - * - * This is the priority that was passed to [func@content_serialize_async]. - * - * Returns: the I/O priority for the current operation - */ - public int getPriority() - { - return gdk_content_serializer_get_priority(gdkContentSerializer); - } - - /** - * Gets the data that was associated with the current operation. - * - * See [method@Gdk.ContentSerializer.set_task_data]. - * - * Returns: the task data for @serializer - */ - public void* getTaskData() - { - return gdk_content_serializer_get_task_data(gdkContentSerializer); - } - - /** - * Gets the user data that was passed when the serializer was registered. - * - * Returns: the user data for this serializer - */ - public void* getUserData() - { - return gdk_content_serializer_get_user_data(gdkContentSerializer); - } - - /** - * Gets the `GValue` to read the object to serialize from. - * - * Returns: the `GValue` for the current operation - */ - public Value getValue() - { - auto __p = gdk_content_serializer_get_value(gdkContentSerializer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Indicate that the serialization has ended with an error. - * - * This function consumes @error. - * - * Params: - * error = a `GError` - */ - public void returnError(ErrorG error) - { - gdk_content_serializer_return_error(gdkContentSerializer, (error is null) ? null : error.getErrorGStruct()); - } - - /** - * Indicate that the serialization has been successfully completed. - */ - public void returnSuccess() - { - gdk_content_serializer_return_success(gdkContentSerializer); - } - - /** - * Associate data with the current serialization operation. - * - * Params: - * data = data to associate with this operation - * notify = destroy notify for @data - */ - public void setTaskData(void* data, GDestroyNotify notify) - { - gdk_content_serializer_set_task_data(gdkContentSerializer, data, notify); - } -} diff --git a/generated/gtkd/gdk/CrossingEvent.d b/generated/gtkd/gdk/CrossingEvent.d deleted file mode 100644 index b77887b2e..000000000 --- a/generated/gtkd/gdk/CrossingEvent.d +++ /dev/null @@ -1,99 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.CrossingEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event caused by a pointing device moving between surfaces. - */ -public class CrossingEvent : Event -{ - /** the main Gtk struct */ - protected GdkCrossingEvent* gdkCrossingEvent; - - /** Get the main Gtk struct */ - public GdkCrossingEvent* getCrossingEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkCrossingEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkCrossingEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkCrossingEvent* gdkCrossingEvent, bool ownedRef = false) - { - this.gdkCrossingEvent = gdkCrossingEvent; - super(cast(GdkEvent*)gdkCrossingEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_crossing_event_get_type(); - } - - /** - * Extracts the notify detail from a crossing event. - * - * Returns: the notify detail of @event - */ - public GdkNotifyType getDetail() - { - return gdk_crossing_event_get_detail(cast(GdkEvent*)gdkCrossingEvent); - } - - /** - * Checks if the @event surface is the focus surface. - * - * Returns: %TRUE if the surface is the focus surface - */ - public bool getFocus() - { - return gdk_crossing_event_get_focus(cast(GdkEvent*)gdkCrossingEvent) != 0; - } - - /** - * Extracts the crossing mode from a crossing event. - * - * Returns: the mode of @event - */ - public GdkCrossingMode getMode() - { - return gdk_crossing_event_get_mode(cast(GdkEvent*)gdkCrossingEvent); - } -} diff --git a/generated/gtkd/gdk/Cursor.d b/generated/gtkd/gdk/Cursor.d deleted file mode 100644 index 6c29dad12..000000000 --- a/generated/gtkd/gdk/Cursor.d +++ /dev/null @@ -1,262 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Cursor; - -private import gdk.Texture; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * `GdkCursor` is used to create and destroy cursors. - * - * Cursors are immutable objects, so once you created them, there is no way - * to modify them later. You should create a new cursor when you want to change - * something about it. - * - * Cursors by themselves are not very interesting: they must be bound to a - * window for users to see them. This is done with [method@Gdk.Surface.set_cursor] - * or [method@Gdk.Surface.set_device_cursor]. Applications will typically - * use higher-level GTK functions such as [method@Gtk.Widget.set_cursor]` - * instead. - * - * Cursors are not bound to a given [class@Gdk.Display], so they can be shared. - * However, the appearance of cursors may vary when used on different - * platforms. - * - * ## Named and texture cursors - * - * There are multiple ways to create cursors. The platform's own cursors - * can be created with [ctor@Gdk.Cursor.new_from_name]. That function lists - * the commonly available names that are shared with the CSS specification. - * Other names may be available, depending on the platform in use. On some - * platforms, what images are used for named cursors may be influenced by - * the cursor theme. - * - * Another option to create a cursor is to use [ctor@Gdk.Cursor.new_from_texture] - * and provide an image to use for the cursor. - * - * To ease work with unsupported cursors, a fallback cursor can be provided. - * If a [class@Gdk.Surface] cannot use a cursor because of the reasons mentioned - * above, it will try the fallback cursor. Fallback cursors can themselves have - * fallback cursors again, so it is possible to provide a chain of progressively - * easier to support cursors. If none of the provided cursors can be supported, - * the default cursor will be the ultimate fallback. - */ -public class Cursor : ObjectG -{ - /** the main Gtk struct */ - protected GdkCursor* gdkCursor; - - /** Get the main Gtk struct */ - public GdkCursor* getCursorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkCursor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkCursor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkCursor* gdkCursor, bool ownedRef = false) - { - this.gdkCursor = gdkCursor; - super(cast(GObject*)gdkCursor, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_cursor_get_type(); - } - - /** - * Creates a new cursor by looking up @name in the current cursor - * theme. - * - * A recommended set of cursor names that will work across different - * platforms can be found in the CSS specification: - * - * | | | | | - * | --- | --- | ---- | --- | - * | "none" | ![](default_cursor.png) "default" | ![](help_cursor.png) "help" | ![](pointer_cursor.png) "pointer" | - * | ![](context_menu_cursor.png) "context-menu" | ![](progress_cursor.png) "progress" | ![](wait_cursor.png) "wait" | ![](cell_cursor.png) "cell" | - * | ![](crosshair_cursor.png) "crosshair" | ![](text_cursor.png) "text" | ![](vertical_text_cursor.png) "vertical-text" | ![](alias_cursor.png) "alias" | - * | ![](copy_cursor.png) "copy" | ![](no_drop_cursor.png) "no-drop" | ![](move_cursor.png) "move" | ![](not_allowed_cursor.png) "not-allowed" | - * | ![](grab_cursor.png) "grab" | ![](grabbing_cursor.png) "grabbing" | ![](all_scroll_cursor.png) "all-scroll" | ![](col_resize_cursor.png) "col-resize" | - * | ![](row_resize_cursor.png) "row-resize" | ![](n_resize_cursor.png) "n-resize" | ![](e_resize_cursor.png) "e-resize" | ![](s_resize_cursor.png) "s-resize" | - * | ![](w_resize_cursor.png) "w-resize" | ![](ne_resize_cursor.png) "ne-resize" | ![](nw_resize_cursor.png) "nw-resize" | ![](sw_resize_cursor.png) "sw-resize" | - * | ![](se_resize_cursor.png) "se-resize" | ![](ew_resize_cursor.png) "ew-resize" | ![](ns_resize_cursor.png) "ns-resize" | ![](nesw_resize_cursor.png) "nesw-resize" | - * | ![](nwse_resize_cursor.png) "nwse-resize" | ![](zoom_in_cursor.png) "zoom-in" | ![](zoom_out_cursor.png) "zoom-out" | | - * - * Params: - * name = the name of the cursor - * fallback = %NULL or the `GdkCursor` to fall back to when - * this one cannot be supported - * - * Returns: a new `GdkCursor`, or %NULL if there is no - * cursor with the given name - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, Cursor fallback) - { - auto __p = gdk_cursor_new_from_name(Str.toStringz(name), (fallback is null) ? null : fallback.getCursorStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_name"); - } - - this(cast(GdkCursor*) __p, true); - } - - /** - * Creates a new cursor from a `GdkTexture`. - * - * Params: - * texture = the texture providing the pixel data - * hotspotX = the horizontal offset of the “hotspot” of the cursor - * hotspotY = the vertical offset of the “hotspot” of the cursor - * fallback = %NULL or the `GdkCursor` to fall back to when - * this one cannot be supported - * - * Returns: a new `GdkCursor` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Texture texture, int hotspotX, int hotspotY, Cursor fallback) - { - auto __p = gdk_cursor_new_from_texture((texture is null) ? null : texture.getTextureStruct(), hotspotX, hotspotY, (fallback is null) ? null : fallback.getCursorStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_texture"); - } - - this(cast(GdkCursor*) __p, true); - } - - /** - * Returns the fallback for this @cursor. - * - * The fallback will be used if this cursor is not available on a given - * `GdkDisplay`. For named cursors, this can happen when using nonstandard - * names or when using an incomplete cursor theme. For textured cursors, - * this can happen when the texture is too large or when the `GdkDisplay` - * it is used on does not support textured cursors. - * - * Returns: the fallback of the cursor or %NULL - * to use the default cursor as fallback. - */ - public Cursor getFallback() - { - auto __p = gdk_cursor_get_fallback(gdkCursor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Cursor)(cast(GdkCursor*) __p); - } - - /** - * Returns the horizontal offset of the hotspot. - * - * The hotspot indicates the pixel that will be directly above the cursor. - * - * Note that named cursors may have a nonzero hotspot, but this function - * will only return the hotspot position for cursors created with - * [ctor@Gdk.Cursor.new_from_texture]. - * - * Returns: the horizontal offset of the hotspot or 0 for named cursors - */ - public int getHotspotX() - { - return gdk_cursor_get_hotspot_x(gdkCursor); - } - - /** - * Returns the vertical offset of the hotspot. - * - * The hotspot indicates the pixel that will be directly above the cursor. - * - * Note that named cursors may have a nonzero hotspot, but this function - * will only return the hotspot position for cursors created with - * [ctor@Gdk.Cursor.new_from_texture]. - * - * Returns: the vertical offset of the hotspot or 0 for named cursors - */ - public int getHotspotY() - { - return gdk_cursor_get_hotspot_y(gdkCursor); - } - - /** - * Returns the name of the cursor. - * - * If the cursor is not a named cursor, %NULL will be returned. - * - * Returns: the name of the cursor or %NULL - * if it is not a named cursor - */ - public string getName() - { - return Str.toString(gdk_cursor_get_name(gdkCursor)); - } - - /** - * Returns the texture for the cursor. - * - * If the cursor is a named cursor, %NULL will be returned. - * - * Returns: the texture for cursor or %NULL - * if it is a named cursor - */ - public Texture getTexture() - { - auto __p = gdk_cursor_get_texture(gdkCursor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Texture)(cast(GdkTexture*) __p); - } -} diff --git a/generated/gtkd/gdk/DNDEvent.d b/generated/gtkd/gdk/DNDEvent.d deleted file mode 100644 index 17705a867..000000000 --- a/generated/gtkd/gdk/DNDEvent.d +++ /dev/null @@ -1,88 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DNDEvent; - -private import gdk.Drop; -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; - - -/** - * An event related to drag and drop operations. - */ -public class DNDEvent : Event -{ - /** the main Gtk struct */ - protected GdkDNDEvent* gdkDNDEvent; - - /** Get the main Gtk struct */ - public GdkDNDEvent* getDNDEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDNDEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDNDEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDNDEvent* gdkDNDEvent, bool ownedRef = false) - { - this.gdkDNDEvent = gdkDNDEvent; - super(cast(GdkEvent*)gdkDNDEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_dnd_event_get_type(); - } - - /** - * Gets the `GdkDrop` object from a DND event. - * - * Returns: the drop - */ - public Drop getDrop() - { - auto __p = gdk_dnd_event_get_drop(cast(GdkEvent*)gdkDNDEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Drop)(cast(GdkDrop*) __p); - } -} diff --git a/generated/gtkd/gdk/DeleteEvent.d b/generated/gtkd/gdk/DeleteEvent.d deleted file mode 100644 index 3cb440dc5..000000000 --- a/generated/gtkd/gdk/DeleteEvent.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DeleteEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to closing a top-level surface. - */ -public class DeleteEvent : Event -{ - /** the main Gtk struct */ - protected GdkDeleteEvent* gdkDeleteEvent; - - /** Get the main Gtk struct */ - public GdkDeleteEvent* getDeleteEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDeleteEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDeleteEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDeleteEvent* gdkDeleteEvent, bool ownedRef = false) - { - this.gdkDeleteEvent = gdkDeleteEvent; - super(cast(GdkEvent*)gdkDeleteEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_delete_event_get_type(); - } -} diff --git a/generated/gtkd/gdk/Device.d b/generated/gtkd/gdk/Device.d deleted file mode 100644 index d25fa1387..000000000 --- a/generated/gtkd/gdk/Device.d +++ /dev/null @@ -1,373 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Device; - -private import gdk.DeviceTool; -private import gdk.Display; -private import gdk.Seat; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The `GdkDevice` object represents an input device, such - * as a keyboard, a mouse, or a touchpad. - * - * See the [class@Gdk.Seat] documentation for more information - * about the various kinds of devices, and their relationships. - */ -public class Device : ObjectG -{ - /** the main Gtk struct */ - protected GdkDevice* gdkDevice; - - /** Get the main Gtk struct */ - public GdkDevice* getDeviceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDevice; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDevice; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDevice* gdkDevice, bool ownedRef = false) - { - this.gdkDevice = gdkDevice; - super(cast(GObject*)gdkDevice, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_device_get_type(); - } - - /** - * Retrieves whether the Caps Lock modifier of the keyboard is locked. - * - * This is only relevant for keyboard devices. - * - * Returns: %TRUE if Caps Lock is on for @device - */ - public bool getCapsLockState() - { - return gdk_device_get_caps_lock_state(gdkDevice) != 0; - } - - /** - * Retrieves the current tool for @device. - * - * Returns: the `GdkDeviceTool`, or %NULL - */ - public DeviceTool getDeviceTool() - { - auto __p = gdk_device_get_device_tool(gdkDevice); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DeviceTool)(cast(GdkDeviceTool*) __p); - } - - /** - * Returns the direction of effective layout of the keyboard. - * - * This is only relevant for keyboard devices. - * - * The direction of a layout is the direction of the majority - * of its symbols. See [func@Pango.unichar_direction]. - * - * Returns: %PANGO_DIRECTION_LTR or %PANGO_DIRECTION_RTL - * if it can determine the direction. %PANGO_DIRECTION_NEUTRAL - * otherwise - */ - public PangoDirection getDirection() - { - return gdk_device_get_direction(gdkDevice); - } - - /** - * Returns the `GdkDisplay` to which @device pertains. - * - * Returns: a `GdkDisplay` - */ - public Display getDisplay() - { - auto __p = gdk_device_get_display(gdkDevice); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Determines whether the pointer follows device motion. - * - * This is not meaningful for keyboard devices, which - * don't have a pointer. - * - * Returns: %TRUE if the pointer follows device motion - */ - public bool getHasCursor() - { - return gdk_device_get_has_cursor(gdkDevice) != 0; - } - - /** - * Retrieves the current modifier state of the keyboard. - * - * This is only relevant for keyboard devices. - * - * Returns: the current modifier state - */ - public GdkModifierType getModifierState() - { - return gdk_device_get_modifier_state(gdkDevice); - } - - /** - * The name of the device, suitable for showing in a user interface. - * - * Returns: a name - */ - public string getName() - { - return Str.toString(gdk_device_get_name(gdkDevice)); - } - - /** - * Retrieves whether the Num Lock modifier of the keyboard is locked. - * - * This is only relevant for keyboard devices. - * - * Returns: %TRUE if Num Lock is on for @device - */ - public bool getNumLockState() - { - return gdk_device_get_num_lock_state(gdkDevice) != 0; - } - - /** - * Retrieves the number of touch points associated to @device. - * - * Returns: the number of touch points - */ - public uint getNumTouches() - { - return gdk_device_get_num_touches(gdkDevice); - } - - /** - * Returns the product ID of this device. - * - * This ID is retrieved from the device, and does not change. - * See [method@Gdk.Device.get_vendor_id] for more information. - * - * Returns: the product ID, or %NULL - */ - public string getProductId() - { - return Str.toString(gdk_device_get_product_id(gdkDevice)); - } - - /** - * Retrieves whether the Scroll Lock modifier of the keyboard is locked. - * - * This is only relevant for keyboard devices. - * - * Returns: %TRUE if Scroll Lock is on for @device - */ - public bool getScrollLockState() - { - return gdk_device_get_scroll_lock_state(gdkDevice) != 0; - } - - /** - * Returns the `GdkSeat` the device belongs to. - * - * Returns: a `GdkSeat` - */ - public Seat getSeat() - { - auto __p = gdk_device_get_seat(gdkDevice); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Seat)(cast(GdkSeat*) __p); - } - - /** - * Determines the type of the device. - * - * Returns: a `GdkInputSource` - */ - public GdkInputSource getSource() - { - return gdk_device_get_source(gdkDevice); - } - - /** - * Obtains the surface underneath @device, returning the location of the - * device in @win_x and @win_y - * - * Returns %NULL if the surface tree under @device is not known to GDK - * (for example, belongs to another application). - * - * Params: - * winX = return location for the X coordinate of the device location, - * relative to the surface origin, or %NULL. - * winY = return location for the Y coordinate of the device location, - * relative to the surface origin, or %NULL. - * - * Returns: the `GdkSurface` under the - * device position, or %NULL - */ - public Surface getSurfaceAtPosition(out double winX, out double winY) - { - auto __p = gdk_device_get_surface_at_position(gdkDevice, &winX, &winY); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Returns the timestamp of the last activity for this device. - * - * In practice, this means the timestamp of the last event that was - * received from the OS for this device. (GTK may occasionally produce - * events for a device that are not received from the OS, and will not - * update the timestamp). - * - * Returns: the timestamp of the last activity for this device - * - * Since: 4.2 - */ - public uint getTimestamp() - { - return gdk_device_get_timestamp(gdkDevice); - } - - /** - * Returns the vendor ID of this device. - * - * This ID is retrieved from the device, and does not change. - * - * This function, together with [method@Gdk.Device.get_product_id], - * can be used to eg. compose `GSettings` paths to store settings - * for this device. - * - * ```c - * static GSettings * - * get_device_settings (GdkDevice *device) - * { - * const char *vendor, *product; - * GSettings *settings; - * GdkDevice *device; - * char *path; - * - * vendor = gdk_device_get_vendor_id (device); - * product = gdk_device_get_product_id (device); - * - * path = g_strdup_printf ("/org/example/app/devices/%s:%s/", vendor, product); - * settings = g_settings_new_with_path (DEVICE_SCHEMA, path); - * g_free (path); - * - * return settings; - * } - * ``` - * - * Returns: the vendor ID, or %NULL - */ - public string getVendorId() - { - return Str.toString(gdk_device_get_vendor_id(gdkDevice)); - } - - /** - * Determines if layouts for both right-to-left and - * left-to-right languages are in use on the keyboard. - * - * This is only relevant for keyboard devices. - * - * Returns: %TRUE if there are layouts with both directions, - * %FALSE otherwise - */ - public bool hasBidiLayouts() - { - return gdk_device_has_bidi_layouts(gdkDevice) != 0; - } - - /** - * Emitted either when the the number of either axes or keys changes. - * - * On X11 this will normally happen when the physical device - * routing events through the logical device changes (for - * example, user switches from the USB mouse to a tablet); in - * that case the logical device will change to reflect the axes - * and keys on the new physical device. - */ - gulong addOnChanged(void delegate(Device) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted on pen/eraser devices whenever tools enter or leave proximity. - * - * Params: - * tool = The new current tool - */ - gulong addOnToolChanged(void delegate(DeviceTool, Device) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "tool-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/DevicePadIF.d b/generated/gtkd/gdk/DevicePadIF.d deleted file mode 100644 index 556b2a6e5..000000000 --- a/generated/gtkd/gdk/DevicePadIF.d +++ /dev/null @@ -1,107 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DevicePadIF; - -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * `GdkDevicePad` is an interface implemented by devices of type - * %GDK_SOURCE_TABLET_PAD - * - * It allows querying the features provided by the pad device. - * - * Tablet pads may contain one or more groups, each containing a subset - * of the buttons/rings/strips available. [method@Gdk.DevicePad.get_n_groups] - * can be used to obtain the number of groups, [method@Gdk.DevicePad.get_n_features] - * and [method@Gdk.DevicePad.get_feature_group] can be combined to find out - * the number of buttons/rings/strips the device has, and how are they grouped. - * - * Each of those groups have different modes, which may be used to map each - * individual pad feature to multiple actions. Only one mode is effective - * (current) for each given group, different groups may have different - * current modes. The number of available modes in a group can be found - * out through [method@Gdk.DevicePad.get_group_n_modes], and the current mode - * for a given group will be notified through events of type #GDK_PAD_GROUP_MODE. - */ -public interface DevicePadIF{ - /** Get the main Gtk struct */ - public GdkDevicePad* getDevicePadStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gdk_device_pad_get_type(); - } - - /** - * Returns the group the given @feature and @idx belong to. - * - * f the feature or index do not exist in @pad, -1 is returned. - * - * Params: - * feature = the feature type to get the group from - * featureIdx = the index of the feature to get the group from - * - * Returns: The group number of the queried pad feature. - */ - public int getFeatureGroup(GdkDevicePadFeature feature, int featureIdx); - - /** - * Returns the number of modes that @group may have. - * - * Params: - * groupIdx = group to get the number of available modes from - * - * Returns: The number of modes available in @group. - */ - public int getGroupNModes(int groupIdx); - - /** - * Returns the number of features a tablet pad has. - * - * Params: - * feature = a pad feature - * - * Returns: The amount of elements of type @feature that this pad has. - */ - public int getNFeatures(GdkDevicePadFeature feature); - - /** - * Returns the number of groups this pad device has. - * - * Pads have at least one group. A pad group is a subcollection of - * buttons/strip/rings that is affected collectively by a same - * current mode. - * - * Returns: The number of button/ring/strip groups in the pad. - */ - public int getNGroups(); -} diff --git a/generated/gtkd/gdk/DevicePadT.d b/generated/gtkd/gdk/DevicePadT.d deleted file mode 100644 index 421cb958d..000000000 --- a/generated/gtkd/gdk/DevicePadT.d +++ /dev/null @@ -1,116 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DevicePadT; - -public import gdk.c.functions; -public import gdk.c.types; - - -/** - * `GdkDevicePad` is an interface implemented by devices of type - * %GDK_SOURCE_TABLET_PAD - * - * It allows querying the features provided by the pad device. - * - * Tablet pads may contain one or more groups, each containing a subset - * of the buttons/rings/strips available. [method@Gdk.DevicePad.get_n_groups] - * can be used to obtain the number of groups, [method@Gdk.DevicePad.get_n_features] - * and [method@Gdk.DevicePad.get_feature_group] can be combined to find out - * the number of buttons/rings/strips the device has, and how are they grouped. - * - * Each of those groups have different modes, which may be used to map each - * individual pad feature to multiple actions. Only one mode is effective - * (current) for each given group, different groups may have different - * current modes. The number of available modes in a group can be found - * out through [method@Gdk.DevicePad.get_group_n_modes], and the current mode - * for a given group will be notified through events of type #GDK_PAD_GROUP_MODE. - */ -public template DevicePadT(TStruct) -{ - /** Get the main Gtk struct */ - public GdkDevicePad* getDevicePadStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GdkDevicePad*)getStruct(); - } - - - /** - * Returns the group the given @feature and @idx belong to. - * - * f the feature or index do not exist in @pad, -1 is returned. - * - * Params: - * feature = the feature type to get the group from - * featureIdx = the index of the feature to get the group from - * - * Returns: The group number of the queried pad feature. - */ - public int getFeatureGroup(GdkDevicePadFeature feature, int featureIdx) - { - return gdk_device_pad_get_feature_group(getDevicePadStruct(), feature, featureIdx); - } - - /** - * Returns the number of modes that @group may have. - * - * Params: - * groupIdx = group to get the number of available modes from - * - * Returns: The number of modes available in @group. - */ - public int getGroupNModes(int groupIdx) - { - return gdk_device_pad_get_group_n_modes(getDevicePadStruct(), groupIdx); - } - - /** - * Returns the number of features a tablet pad has. - * - * Params: - * feature = a pad feature - * - * Returns: The amount of elements of type @feature that this pad has. - */ - public int getNFeatures(GdkDevicePadFeature feature) - { - return gdk_device_pad_get_n_features(getDevicePadStruct(), feature); - } - - /** - * Returns the number of groups this pad device has. - * - * Pads have at least one group. A pad group is a subcollection of - * buttons/strip/rings that is affected collectively by a same - * current mode. - * - * Returns: The number of button/ring/strip groups in the pad. - */ - public int getNGroups() - { - return gdk_device_pad_get_n_groups(getDevicePadStruct()); - } -} diff --git a/generated/gtkd/gdk/DeviceTool.d b/generated/gtkd/gdk/DeviceTool.d deleted file mode 100644 index 02acecec8..000000000 --- a/generated/gtkd/gdk/DeviceTool.d +++ /dev/null @@ -1,124 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DeviceTool; - -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; - - -/** - * A physical tool associated to a `GdkDevice`. - */ -public class DeviceTool : ObjectG -{ - /** the main Gtk struct */ - protected GdkDeviceTool* gdkDeviceTool; - - /** Get the main Gtk struct */ - public GdkDeviceTool* getDeviceToolStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDeviceTool; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDeviceTool; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDeviceTool* gdkDeviceTool, bool ownedRef = false) - { - this.gdkDeviceTool = gdkDeviceTool; - super(cast(GObject*)gdkDeviceTool, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_device_tool_get_type(); - } - - /** - * Gets the axes of the tool. - * - * Returns: the axes of @tool - */ - public GdkAxisFlags getAxes() - { - return gdk_device_tool_get_axes(gdkDeviceTool); - } - - /** - * Gets the hardware ID of this tool, or 0 if it's not known. - * - * When non-zero, the identificator is unique for the given tool model, - * meaning that two identical tools will share the same @hardware_id, - * but will have different serial numbers (see - * [method@Gdk.DeviceTool.get_serial]). - * - * This is a more concrete (and device specific) method to identify - * a `GdkDeviceTool` than [method@Gdk.DeviceTool.get_tool_type], - * as a tablet may support multiple devices with the same - * `GdkDeviceToolType`, but different hardware identificators. - * - * Returns: The hardware identificator of this tool. - */ - public ulong getHardwareId() - { - return gdk_device_tool_get_hardware_id(gdkDeviceTool); - } - - /** - * Gets the serial number of this tool. - * - * This value can be used to identify a physical tool - * (eg. a tablet pen) across program executions. - * - * Returns: The serial ID for this tool - */ - public ulong getSerial() - { - return gdk_device_tool_get_serial(gdkDeviceTool); - } - - /** - * Gets the `GdkDeviceToolType` of the tool. - * - * Returns: The physical type for this tool. This can be used to - * figure out what sort of pen is being used, such as an airbrush - * or a pencil. - */ - public GdkDeviceToolType getToolType() - { - return gdk_device_tool_get_tool_type(gdkDeviceTool); - } -} diff --git a/generated/gtkd/gdk/Display.d b/generated/gtkd/gdk/Display.d deleted file mode 100644 index 559eeb50f..000000000 --- a/generated/gtkd/gdk/Display.d +++ /dev/null @@ -1,644 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Display; - -private import gdk.AppLaunchContext; -private import gdk.Clipboard; -private import gdk.Device; -private import gdk.Event; -private import gdk.MonitorGdk; -private import gdk.Seat; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import gio.ListModelIF; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import gobject.Value; -private import std.algorithm; - - -/** - * `GdkDisplay` objects are the GDK representation of a workstation. - * - * Their purpose are two-fold: - * - * - To manage and provide information about input devices (pointers, keyboards, etc) - * - To manage and provide information about output devices (monitors, projectors, etc) - * - * Most of the input device handling has been factored out into separate - * [class@Gdk.Seat] objects. Every display has a one or more seats, which - * can be accessed with [method@Gdk.Display.get_default_seat] and - * [method@Gdk.Display.list_seats]. - * - * Output devices are represented by [class@Gdk.Monitor] objects, which can - * be accessed with [method@Gdk.Display.get_monitor_at_surface] and similar APIs. - */ -public class Display : ObjectG -{ - /** the main Gtk struct */ - protected GdkDisplay* gdkDisplay; - - /** Get the main Gtk struct */ - public GdkDisplay* getDisplayStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDisplay; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDisplay; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDisplay* gdkDisplay, bool ownedRef = false) - { - this.gdkDisplay = gdkDisplay; - super(cast(GObject*)gdkDisplay, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_display_get_type(); - } - - /** - * Gets the default `GdkDisplay`. - * - * This is a convenience function for: - * `gdk_display_manager_get_default_display (gdk_display_manager_get ())`. - * - * Returns: a `GdkDisplay`, or %NULL if - * there is no default display - */ - public static Display getDefault() - { - auto __p = gdk_display_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Opens a display. - * - * Params: - * displayName = the name of the display to open - * - * Returns: a `GdkDisplay`, or %NULL if the - * display could not be opened - */ - public static Display open(string displayName) - { - auto __p = gdk_display_open(Str.toStringz(displayName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Emits a short beep on @display - */ - public void beep() - { - gdk_display_beep(gdkDisplay); - } - - /** - * Closes the connection to the windowing system for the given display. - * - * This cleans up associated resources. - */ - public void close() - { - gdk_display_close(gdkDisplay); - } - - /** - * Returns %TRUE if there is an ongoing grab on @device for @display. - * - * Params: - * device = a `GdkDevice` - * - * Returns: %TRUE if there is a grab in effect for @device. - */ - public bool deviceIsGrabbed(Device device) - { - return gdk_display_device_is_grabbed(gdkDisplay, (device is null) ? null : device.getDeviceStruct()) != 0; - } - - /** - * Flushes any requests queued for the windowing system. - * - * This happens automatically when the main loop blocks waiting for new events, - * but if your application is drawing without returning control to the main loop, - * you may need to call this function explicitly. A common case where this function - * needs to be called is when an application is executing drawing commands - * from a thread other than the thread where the main loop is running. - * - * This is most useful for X11. On windowing systems where requests are - * handled synchronously, this function will do nothing. - */ - public void flush() - { - gdk_display_flush(gdkDisplay); - } - - /** - * Returns a `GdkAppLaunchContext` suitable for launching - * applications on the given display. - * - * Returns: a new `GdkAppLaunchContext` for @display. - * Free with g_object_unref() when done - */ - public AppLaunchContext getAppLaunchContext() - { - auto __p = gdk_display_get_app_launch_context(gdkDisplay); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppLaunchContext)(cast(GdkAppLaunchContext*) __p, true); - } - - /** - * Gets the clipboard used for copy/paste operations. - * - * Returns: the display's clipboard - */ - public Clipboard getClipboard() - { - auto __p = gdk_display_get_clipboard(gdkDisplay); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clipboard)(cast(GdkClipboard*) __p); - } - - /** - * Returns the default `GdkSeat` for this display. - * - * Note that a display may not have a seat. In this case, - * this function will return %NULL. - * - * Returns: the default seat. - */ - public Seat getDefaultSeat() - { - auto __p = gdk_display_get_default_seat(gdkDisplay); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Seat)(cast(GdkSeat*) __p); - } - - /** - * Gets the monitor in which the largest area of @surface - * resides. - * - * Returns a monitor close to @surface if it is outside - * of all monitors. - * - * Params: - * surface = a `GdkSurface` - * - * Returns: the monitor with the largest - * overlap with @surface - */ - public MonitorGdk getMonitorAtSurface(Surface surface) - { - auto __p = gdk_display_get_monitor_at_surface(gdkDisplay, (surface is null) ? null : surface.getSurfaceStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MonitorGdk)(cast(GdkMonitor*) __p); - } - - /** - * Gets the list of monitors associated with this display. - * - * Subsequent calls to this function will always return the - * same list for the same display. - * - * You can listen to the GListModel::items-changed signal on - * this list to monitor changes to the monitor of this display. - * - * Returns: a #GListModel of `GdkMonitor` - */ - public ListModelIF getMonitors() - { - auto __p = gdk_display_get_monitors(gdkDisplay); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ListModelIF)(cast(GListModel*) __p); - } - - /** - * Gets the name of the display. - * - * Returns: a string representing the display name. This string is owned - * by GDK and should not be modified or freed. - */ - public string getName() - { - return Str.toString(gdk_display_get_name(gdkDisplay)); - } - - /** - * Gets the clipboard used for the primary selection. - * - * On backends where the primary clipboard is not supported natively, - * GDK emulates this clipboard locally. - * - * Returns: the primary clipboard - */ - public Clipboard getPrimaryClipboard() - { - auto __p = gdk_display_get_primary_clipboard(gdkDisplay); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Clipboard)(cast(GdkClipboard*) __p); - } - - /** - * Retrieves a desktop-wide setting such as double-click time - * for the @display. - * - * Params: - * name = the name of the setting - * value = location to store the value of the setting - * - * Returns: %TRUE if the setting existed and a value was stored - * in @value, %FALSE otherwise - */ - public bool getSetting(string name, Value value) - { - return gdk_display_get_setting(gdkDisplay, Str.toStringz(name), (value is null) ? null : value.getValueStruct()) != 0; - } - - /** - * Gets the startup notification ID for a Wayland display, or %NULL - * if no ID has been defined. - * - * Returns: the startup notification ID for @display, or %NULL - */ - public string getStartupNotificationId() - { - return Str.toString(gdk_display_get_startup_notification_id(gdkDisplay)); - } - - /** - * Finds out if the display has been closed. - * - * Returns: %TRUE if the display is closed. - */ - public bool isClosed() - { - return gdk_display_is_closed(gdkDisplay) != 0; - } - - /** - * Returns whether surfaces can reasonably be expected to have - * their alpha channel drawn correctly on the screen. - * - * Check [method@Gdk.Display.is_rgba] for whether the display - * supports an alpha channel. - * - * On X11 this function returns whether a compositing manager is - * compositing on @display. - * - * On modern displays, this value is always %TRUE. - * - * Returns: Whether surfaces with RGBA visuals can reasonably - * be expected to have their alpha channels drawn correctly - * on the screen. - */ - public bool isComposited() - { - return gdk_display_is_composited(gdkDisplay) != 0; - } - - /** - * Returns whether surfaces on this @display are created with an - * alpha channel. - * - * Even if a %TRUE is returned, it is possible that the - * surface’s alpha channel won’t be honored when displaying the - * surface on the screen: in particular, for X an appropriate - * windowing manager and compositing manager must be running to - * provide appropriate display. Use [method@Gdk.Display.is_composited] - * to check if that is the case. - * - * On modern displays, this value is always %TRUE. - * - * Returns: %TRUE if surfaces are created with an alpha channel or - * %FALSE if the display does not support this functionality. - */ - public bool isRgba() - { - return gdk_display_is_rgba(gdkDisplay) != 0; - } - - /** - * Returns the list of seats known to @display. - * - * Returns: the - * list of seats known to the `GdkDisplay` - */ - public ListG listSeats() - { - auto __p = gdk_display_list_seats(gdkDisplay); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Returns the keyvals bound to @keycode. - * - * The Nth `GdkKeymapKey` in @keys is bound to the Nth keyval in @keyvals. - * - * When a keycode is pressed by the user, the keyval from - * this list of entries is selected by considering the effective - * keyboard group and level. - * - * Free the returned arrays with g_free(). - * - * Params: - * keycode = a keycode - * keys = return - * location for array of `GdkKeymapKey`, or %NULL - * keyvals = return - * location for array of keyvals, or %NULL - * - * Returns: %TRUE if there were any entries - */ - public bool mapKeycode(uint keycode, out GdkKeymapKey[] keys, out uint[] keyvals) - { - GdkKeymapKey* outkeys; - uint* outkeyvals; - int nEntries; - - auto __p = gdk_display_map_keycode(gdkDisplay, keycode, &outkeys, &outkeyvals, &nEntries) != 0; - - keys = outkeys[0 .. nEntries]; - keyvals = outkeyvals[0 .. nEntries]; - - return __p; - } - - /** - * Obtains a list of keycode/group/level combinations that will - * generate @keyval. - * - * Groups and levels are two kinds of keyboard mode; in general, the level - * determines whether the top or bottom symbol on a key is used, and the - * group determines whether the left or right symbol is used. - * - * On US keyboards, the shift key changes the keyboard level, and there - * are no groups. A group switch key might convert a keyboard between - * Hebrew to English modes, for example. - * - * `GdkEventKey` contains a %group field that indicates the active - * keyboard group. The level is computed from the modifier mask. - * - * The returned array should be freed with g_free(). - * - * Params: - * keyval = a keyval, such as %GDK_KEY_a, %GDK_KEY_Up, %GDK_KEY_Return, etc. - * keys = return location - * for an array of `GdkKeymapKey` - * - * Returns: %TRUE if keys were found and returned - */ - public bool mapKeyval(uint keyval, out GdkKeymapKey[] keys) - { - GdkKeymapKey* outkeys; - int nKeys; - - auto __p = gdk_display_map_keyval(gdkDisplay, keyval, &outkeys, &nKeys) != 0; - - keys = outkeys[0 .. nKeys]; - - return __p; - } - - /** - * Indicates to the GUI environment that the application has - * finished loading, using a given identifier. - * - * GTK will call this function automatically for [class@Gtk.Window] - * with custom startup-notification identifier unless - * [method@Gtk.Window.set_auto_startup_notification] - * is called to disable that feature. - * - * Params: - * startupId = a startup-notification identifier, for which - * notification process should be completed - */ - public void notifyStartupComplete(string startupId) - { - gdk_display_notify_startup_complete(gdkDisplay, Str.toStringz(startupId)); - } - - /** - * Appends the given event onto the front of the event - * queue for @display. - * - * This function is only useful in very special situations - * and should not be used by applications. - * - * Params: - * event = a `GdkEvent` - */ - public void putEvent(Event event) - { - gdk_display_put_event(gdkDisplay, (event is null) ? null : event.getEventStruct()); - } - - /** - * Returns %TRUE if the display supports input shapes. - * - * This means that [method@Gdk.Surface.set_input_region] can - * be used to modify the input shape of surfaces on @display. - * - * On modern displays, this value is always %TRUE. - * - * Returns: %TRUE if surfaces with modified input shape are supported - */ - public bool supportsInputShapes() - { - return gdk_display_supports_input_shapes(gdkDisplay) != 0; - } - - /** - * Flushes any requests queued for the windowing system and waits until all - * requests have been handled. - * - * This is often used for making sure that the display is synchronized - * with the current state of the program. Calling [method@Gdk.Display.sync] - * before [method@GdkX11.Display.error_trap_pop] makes sure that any errors - * generated from earlier requests are handled before the error trap is removed. - * - * This is most useful for X11. On windowing systems where requests are - * handled synchronously, this function will do nothing. - */ - public void sync() - { - gdk_display_sync(gdkDisplay); - } - - /** - * Translates the contents of a `GdkEventKey` into a keyval, effective group, - * and level. - * - * Modifiers that affected the translation and are thus unavailable for - * application use are returned in @consumed_modifiers. - * - * The @effective_group is the group that was actually used for the - * translation; some keys such as Enter are not affected by the active - * keyboard group. The @level is derived from @state. - * - * @consumed_modifiers gives modifiers that should be masked out - * from @state when comparing this key press to a keyboard shortcut. - * For instance, on a US keyboard, the `plus` symbol is shifted, so - * when comparing a key press to a `plus` accelerator `` - * should be masked out. - * - * This function should rarely be needed, since `GdkEventKey` already - * contains the translated keyval. It is exported for the benefit of - * virtualized test environments. - * - * Params: - * keycode = a keycode - * state = a modifier state - * group = active keyboard group - * keyval = return location for keyval, or %NULL - * effectiveGroup = return location for effective - * group, or %NULL - * level = return location for level, or %NULL - * consumed = return location for modifiers - * that were used to determine the group or level, or %NULL - * - * Returns: %TRUE if there was a keyval bound to keycode/state/group. - */ - public bool translateKey(uint keycode, GdkModifierType state, int group, out uint keyval, out int effectiveGroup, out int level, out GdkModifierType consumed) - { - return gdk_display_translate_key(gdkDisplay, keycode, state, group, &keyval, &effectiveGroup, &level, &consumed) != 0; - } - - /** - * Emitted when the connection to the windowing system for @display is closed. - * - * Params: - * isError = %TRUE if the display was closed due to an error - */ - gulong addOnClosed(void delegate(bool, Display) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "closed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the connection to the windowing system for @display is opened. - */ - gulong addOnOpened(void delegate(Display) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "opened", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted whenever a new seat is made known to the windowing system. - * - * Params: - * seat = the seat that was just added - */ - gulong addOnSeatAdded(void delegate(Seat, Display) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "seat-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted whenever a seat is removed by the windowing system. - * - * Params: - * seat = the seat that was just removed - */ - gulong addOnSeatRemoved(void delegate(Seat, Display) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "seat-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted whenever a setting changes its value. - * - * Params: - * setting = the name of the setting that changed - */ - gulong addOnSettingChanged(void delegate(string, Display) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "setting-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/DisplayManager.d b/generated/gtkd/gdk/DisplayManager.d deleted file mode 100644 index 24c7d0ac7..000000000 --- a/generated/gtkd/gdk/DisplayManager.d +++ /dev/null @@ -1,220 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DisplayManager; - -private import gdk.Display; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ListSG; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A singleton object that offers notification when displays appear or - * disappear. - * - * You can use [func@Gdk.DisplayManager.get] to obtain the `GdkDisplayManager` - * singleton, but that should be rarely necessary. Typically, initializing - * GTK opens a display that you can work with without ever accessing the - * `GdkDisplayManager`. - * - * The GDK library can be built with support for multiple backends. - * The `GdkDisplayManager` object determines which backend is used - * at runtime. - * - * In the rare case that you need to influence which of the backends - * is being used, you can use [func@Gdk.set_allowed_backends]. Note - * that you need to call this function before initializing GTK. - * - * ## Backend-specific code - * - * When writing backend-specific code that is supposed to work with - * multiple GDK backends, you have to consider both compile time and - * runtime. At compile time, use the #GDK_WINDOWING_X11, #GDK_WINDOWING_WIN32 - * macros, etc. to find out which backends are present in the GDK library - * you are building your application against. At runtime, use type-check - * macros like GDK_IS_X11_DISPLAY() to find out which backend is in use: - * - * ```c - * #ifdef GDK_WINDOWING_X11 - * if (GDK_IS_X11_DISPLAY (display)) - * { - * // make X11-specific calls here - * } - * else - * #endif - * #ifdef GDK_WINDOWING_MACOS - * if (GDK_IS_MACOS_DISPLAY (display)) - * { - * // make Quartz-specific calls here - * } - * else - * #endif - * g_error ("Unsupported GDK backend"); - * ``` - */ -public class DisplayManager : ObjectG -{ - /** the main Gtk struct */ - protected GdkDisplayManager* gdkDisplayManager; - - /** Get the main Gtk struct */ - public GdkDisplayManager* getDisplayManagerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDisplayManager; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDisplayManager; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDisplayManager* gdkDisplayManager, bool ownedRef = false) - { - this.gdkDisplayManager = gdkDisplayManager; - super(cast(GObject*)gdkDisplayManager, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_display_manager_get_type(); - } - - /** - * Gets the singleton `GdkDisplayManager` object. - * - * When called for the first time, this function consults the - * `GDK_BACKEND` environment variable to find out which of the - * supported GDK backends to use (in case GDK has been compiled - * with multiple backends). - * - * Applications can use [func@set_allowed_backends] to limit what - * backends wil be used. - * - * Returns: The global `GdkDisplayManager` singleton - */ - public static DisplayManager get() - { - auto __p = gdk_display_manager_get(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DisplayManager)(cast(GdkDisplayManager*) __p); - } - - /** - * Gets the default `GdkDisplay`. - * - * Returns: a `GdkDisplay`, or %NULL if - * there is no default display. - */ - public Display getDefaultDisplay() - { - auto __p = gdk_display_manager_get_default_display(gdkDisplayManager); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * List all currently open displays. - * - * Returns: a newly - * allocated `GSList` of `GdkDisplay` objects. Free with g_slist_free() - * when you are done with it. - */ - public ListSG listDisplays() - { - auto __p = gdk_display_manager_list_displays(gdkDisplayManager); - - if(__p is null) - { - return null; - } - - return new ListSG(cast(GSList*) __p); - } - - /** - * Opens a display. - * - * Params: - * name = the name of the display to open - * - * Returns: a `GdkDisplay`, or %NULL - * if the display could not be opened - */ - public Display openDisplay(string name) - { - auto __p = gdk_display_manager_open_display(gdkDisplayManager, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Sets @display as the default display. - * - * Params: - * display = a `GdkDisplay` - */ - public void setDefaultDisplay(Display display) - { - gdk_display_manager_set_default_display(gdkDisplayManager, (display is null) ? null : display.getDisplayStruct()); - } - - /** - * Emitted when a display is opened. - * - * Params: - * display = the opened display - */ - gulong addOnDisplayOpened(void delegate(Display, DisplayManager) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "display-opened", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/Drag.d b/generated/gtkd/gdk/Drag.d deleted file mode 100644 index 5735ae5fe..000000000 --- a/generated/gtkd/gdk/Drag.d +++ /dev/null @@ -1,317 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Drag; - -private import gdk.ContentFormats; -private import gdk.ContentProvider; -private import gdk.Device; -private import gdk.Display; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The `GdkDrag` object represents the source of an ongoing DND operation. - * - * A `GdkDrag` is created when a drag is started, and stays alive for duration of - * the DND operation. After a drag has been started with [func@Gdk.Drag.begin], - * the caller gets informed about the status of the ongoing drag operation - * with signals on the `GdkDrag` object. - * - * GTK provides a higher level abstraction based on top of these functions, - * and so they are not normally needed in GTK applications. See the - * "Drag and Drop" section of the GTK documentation for more information. - */ -public class Drag : ObjectG -{ - /** the main Gtk struct */ - protected GdkDrag* gdkDrag; - - /** Get the main Gtk struct */ - public GdkDrag* getDragStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDrag; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDrag; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDrag* gdkDrag, bool ownedRef = false) - { - this.gdkDrag = gdkDrag; - super(cast(GObject*)gdkDrag, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_drag_get_type(); - } - - /** - * Starts a drag and creates a new drag context for it. - * - * This function is called by the drag source. After this call, you - * probably want to set up the drag icon using the surface returned - * by [method@Gdk.Drag.get_drag_surface]. - * - * This function returns a reference to the [class@Gdk.Drag] object, - * but GTK keeps its own reference as well, as long as the DND operation - * is going on. - * - * Note: if @actions include %GDK_ACTION_MOVE, you need to listen for - * the [signal@Gdk.Drag::dnd-finished] signal and delete the data at - * the source if [method@Gdk.Drag.get_selected_action] returns - * %GDK_ACTION_MOVE. - * - * Params: - * surface = the source surface for this drag - * device = the device that controls this drag - * content = the offered content - * actions = the actions supported by this drag - * dx = the x offset to @device's position where the drag nominally started - * dy = the y offset to @device's position where the drag nominally started - * - * Returns: a newly created [class@Gdk.Drag] - * or %NULL on error - */ - public static Drag begin(Surface surface, Device device, ContentProvider content, GdkDragAction actions, double dx, double dy) - { - auto __p = gdk_drag_begin((surface is null) ? null : surface.getSurfaceStruct(), (device is null) ? null : device.getDeviceStruct(), (content is null) ? null : content.getContentProviderStruct(), actions, dx, dy); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Drag)(cast(GdkDrag*) __p, true); - } - - /** - * Informs GDK that the drop ended. - * - * Passing %FALSE for @success may trigger a drag cancellation - * animation. - * - * This function is called by the drag source, and should be the - * last call before dropping the reference to the @drag. - * - * The `GdkDrag` will only take the first [method@Gdk.Drag.drop_done] - * call as effective, if this function is called multiple times, - * all subsequent calls will be ignored. - * - * Params: - * success = whether the drag was ultimatively successful - */ - public void dropDone(bool success) - { - gdk_drag_drop_done(gdkDrag, success); - } - - /** - * Determines the bitmask of possible actions proposed by the source. - * - * Returns: the `GdkDragAction` flags - */ - public GdkDragAction getActions() - { - return gdk_drag_get_actions(gdkDrag); - } - - /** - * Returns the `GdkContentProvider` associated to the `GdkDrag` object. - * - * Returns: The `GdkContentProvider` associated to @drag. - */ - public ContentProvider getContent() - { - auto __p = gdk_drag_get_content(gdkDrag); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentProvider)(cast(GdkContentProvider*) __p); - } - - /** - * Returns the `GdkDevice` associated to the `GdkDrag` object. - * - * Returns: The `GdkDevice` associated to @drag. - */ - public Device getDevice() - { - auto __p = gdk_drag_get_device(gdkDrag); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Device)(cast(GdkDevice*) __p); - } - - /** - * Gets the `GdkDisplay` that the drag object was created for. - * - * Returns: a `GdkDisplay` - */ - public Display getDisplay() - { - auto __p = gdk_drag_get_display(gdkDrag); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Returns the surface on which the drag icon should be rendered - * during the drag operation. - * - * Note that the surface may not be available until the drag operation - * has begun. GDK will move the surface in accordance with the ongoing - * drag operation. The surface is owned by @drag and will be destroyed - * when the drag operation is over. - * - * Returns: the drag surface, or %NULL - */ - public Surface getDragSurface() - { - auto __p = gdk_drag_get_drag_surface(gdkDrag); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Retrieves the formats supported by this `GdkDrag` object. - * - * Returns: a `GdkContentFormats` - */ - public ContentFormats getFormats() - { - auto __p = gdk_drag_get_formats(gdkDrag); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p); - } - - /** - * Determines the action chosen by the drag destination. - * - * Returns: a `GdkDragAction` value - */ - public GdkDragAction getSelectedAction() - { - return gdk_drag_get_selected_action(gdkDrag); - } - - /** - * Returns the `GdkSurface` where the drag originates. - * - * Returns: The `GdkSurface` where the drag originates - */ - public Surface getSurface() - { - auto __p = gdk_drag_get_surface(gdkDrag); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Sets the position of the drag surface that will be kept - * under the cursor hotspot. - * - * Initially, the hotspot is at the top left corner of the drag surface. - * - * Params: - * hotX = x coordinate of the drag surface hotspot - * hotY = y coordinate of the drag surface hotspot - */ - public void setHotspot(int hotX, int hotY) - { - gdk_drag_set_hotspot(gdkDrag, hotX, hotY); - } - - /** - * Emitted when the drag operation is cancelled. - * - * Params: - * reason = The reason the drag was cancelled - */ - gulong addOnCancel(void delegate(GdkDragCancelReason, Drag) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "cancel", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the destination side has finished reading all data. - * - * The drag object can now free all miscellaneous data. - */ - gulong addOnDndFinished(void delegate(Drag) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "dnd-finished", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the drop operation is performed on an accepting client. - */ - gulong addOnDropPerformed(void delegate(Drag) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "drop-performed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/DragSurfaceIF.d b/generated/gtkd/gdk/DragSurfaceIF.d deleted file mode 100644 index bb155e994..000000000 --- a/generated/gtkd/gdk/DragSurfaceIF.d +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DragSurfaceIF; - -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * A #GdkDragSurface is an interface for surfaces used during DND. - */ -public interface DragSurfaceIF{ - /** Get the main Gtk struct */ - public GdkDragSurface* getDragSurfaceStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gdk_drag_surface_get_type(); - } - - /** - * Present @drag_surface. - * - * Params: - * width = the unconstrained drag_surface width to layout - * height = the unconstrained drag_surface height to layout - * - * Returns: %FALSE if it failed to be presented, otherwise %TRUE. - */ - public bool present(int width, int height); -} diff --git a/generated/gtkd/gdk/DragSurfaceT.d b/generated/gtkd/gdk/DragSurfaceT.d deleted file mode 100644 index 50dd88994..000000000 --- a/generated/gtkd/gdk/DragSurfaceT.d +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DragSurfaceT; - -public import gdk.c.functions; -public import gdk.c.types; - - -/** - * A #GdkDragSurface is an interface for surfaces used during DND. - */ -public template DragSurfaceT(TStruct) -{ - /** Get the main Gtk struct */ - public GdkDragSurface* getDragSurfaceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GdkDragSurface*)getStruct(); - } - - - /** - * Present @drag_surface. - * - * Params: - * width = the unconstrained drag_surface width to layout - * height = the unconstrained drag_surface height to layout - * - * Returns: %FALSE if it failed to be presented, otherwise %TRUE. - */ - public bool present(int width, int height) - { - return gdk_drag_surface_present(getDragSurfaceStruct(), width, height) != 0; - } -} diff --git a/generated/gtkd/gdk/DrawContext.d b/generated/gtkd/gdk/DrawContext.d deleted file mode 100644 index 2354fc13f..000000000 --- a/generated/gtkd/gdk/DrawContext.d +++ /dev/null @@ -1,203 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.DrawContext; - -private import cairo.Region; -private import gdk.Display; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; - - -/** - * Base class for objects implementing different rendering methods. - * - * `GdkDrawContext` is the base object used by contexts implementing different - * rendering methods, such as [class@Gdk.CairoContext] or [class@Gdk.GLContext]. - * It provides shared functionality between those contexts. - * - * You will always interact with one of those subclasses. - * - * A `GdkDrawContext` is always associated with a single toplevel surface. - */ -public class DrawContext : ObjectG -{ - /** the main Gtk struct */ - protected GdkDrawContext* gdkDrawContext; - - /** Get the main Gtk struct */ - public GdkDrawContext* getDrawContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDrawContext; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDrawContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDrawContext* gdkDrawContext, bool ownedRef = false) - { - this.gdkDrawContext = gdkDrawContext; - super(cast(GObject*)gdkDrawContext, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_draw_context_get_type(); - } - - /** - * Indicates that you are beginning the process of redrawing @region - * on the @context's surface. - * - * Calling this function begins a drawing operation using @context on the - * surface that @context was created from. The actual requirements and - * guarantees for the drawing operation vary for different implementations - * of drawing, so a [class@Gdk.CairoContext] and a [class@Gdk.GLContext] - * need to be treated differently. - * - * A call to this function is a requirement for drawing and must be - * followed by a call to [method@Gdk.DrawContext.end_frame], which will - * complete the drawing operation and ensure the contents become visible - * on screen. - * - * Note that the @region passed to this function is the minimum region that - * needs to be drawn and depending on implementation, windowing system and - * hardware in use, it might be necessary to draw a larger region. Drawing - * implementation must use [method@Gdk.DrawContext.get_frame_region() to - * query the region that must be drawn. - * - * When using GTK, the widget system automatically places calls to - * gdk_draw_context_begin_frame() and gdk_draw_context_end_frame() via the - * use of [class@Gsk.Renderer]s, so application code does not need to call - * these functions explicitly. - * - * Params: - * region = minimum region that should be drawn - */ - public void beginFrame(Region region) - { - gdk_draw_context_begin_frame(gdkDrawContext, (region is null) ? null : region.getRegionStruct()); - } - - /** - * Ends a drawing operation started with gdk_draw_context_begin_frame(). - * - * This makes the drawing available on screen. - * See [method@Gdk.DrawContext.begin_frame] for more details about drawing. - * - * When using a [class@Gdk.GLContext], this function may call `glFlush()` - * implicitly before returning; it is not recommended to call `glFlush()` - * explicitly before calling this function. - */ - public void endFrame() - { - gdk_draw_context_end_frame(gdkDrawContext); - } - - /** - * Retrieves the `GdkDisplay` the @context is created for - * - * Returns: a `GdkDisplay` or %NULL - */ - public Display getDisplay() - { - auto __p = gdk_draw_context_get_display(gdkDrawContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Retrieves the region that is currently being repainted. - * - * After a call to [method@Gdk.DrawContext.begin_frame] this function will - * return a union of the region passed to that function and the area of the - * surface that the @context determined needs to be repainted. - * - * If @context is not in between calls to [method@Gdk.DrawContext.begin_frame] - * and [method@Gdk.DrawContext.end_frame], %NULL will be returned. - * - * Returns: a Cairo region or %NULL if not drawing - * a frame. - */ - public Region getFrameRegion() - { - auto __p = gdk_draw_context_get_frame_region(gdkDrawContext); - - if(__p is null) - { - return null; - } - - return new Region(cast(cairo_region_t*) __p); - } - - /** - * Retrieves the surface that @context is bound to. - * - * Returns: a #GdkSurface or %NULL - */ - public Surface getSurface() - { - auto __p = gdk_draw_context_get_surface(gdkDrawContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Returns %TRUE if @context is in the process of drawing to its surface. - * - * This is the case between calls to [method@Gdk.DrawContext.begin_frame] - * and [method@Gdk.DrawContext.end_frame]. In this situation, drawing commands - * may be effecting the contents of the @context's surface. - * - * Returns: %TRUE if the context is between [method@Gdk.DrawContext.begin_frame] - * and [method@Gdk.DrawContext.end_frame] calls. - */ - public bool isInFrame() - { - return gdk_draw_context_is_in_frame(gdkDrawContext) != 0; - } -} diff --git a/generated/gtkd/gdk/Drop.d b/generated/gtkd/gdk/Drop.d deleted file mode 100644 index a7adfbb7c..000000000 --- a/generated/gtkd/gdk/Drop.d +++ /dev/null @@ -1,360 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Drop; - -private import gdk.ContentFormats; -private import gdk.Device; -private import gdk.Display; -private import gdk.Drag; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InputStream; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; - - -/** - * The `GdkDrop` object represents the target of an ongoing DND operation. - * - * Possible drop sites get informed about the status of the ongoing drag - * operation with events of type %GDK_DRAG_ENTER, %GDK_DRAG_LEAVE, - * %GDK_DRAG_MOTION and %GDK_DROP_START. The `GdkDrop` object can be obtained - * from these [class@Gdk.Event] types using [method@Gdk.DNDEvent.get_drop]. - * - * The actual data transfer is initiated from the target side via an async - * read, using one of the `GdkDrop` methods for this purpose: - * [method@Gdk.Drop.read_async] or [method@Gdk.Drop.read_value_async]. - * - * GTK provides a higher level abstraction based on top of these functions, - * and so they are not normally needed in GTK applications. See the - * "Drag and Drop" section of the GTK documentation for more information. - */ -public class Drop : ObjectG -{ - /** the main Gtk struct */ - protected GdkDrop* gdkDrop; - - /** Get the main Gtk struct */ - public GdkDrop* getDropStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkDrop; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkDrop; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkDrop* gdkDrop, bool ownedRef = false) - { - this.gdkDrop = gdkDrop; - super(cast(GObject*)gdkDrop, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_drop_get_type(); - } - - /** - * Ends the drag operation after a drop. - * - * The @action must be a single action selected from the actions - * available via [method@Gdk.Drop.get_actions]. - * - * Params: - * action = the action performed by the destination or 0 if the drop failed - */ - public void finish(GdkDragAction action) - { - gdk_drop_finish(gdkDrop, action); - } - - /** - * Returns the possible actions for this `GdkDrop`. - * - * If this value contains multiple actions - i.e. - * [func@Gdk.DragAction.is_unique] returns %FALSE for the result - - * [method@Gdk.Drop.finish] must choose the action to use when - * accepting the drop. This will only happen if you passed - * %GDK_ACTION_ASK as one of the possible actions in - * [method@Gdk.Drop.status]. %GDK_ACTION_ASK itself will not - * be included in the actions returned by this function. - * - * This value may change over the lifetime of the [class@Gdk.Drop] - * both as a response to source side actions as well as to calls to - * [method@Gdk.Drop.status] or [method@Gdk.Drop.finish]. The source - * side will not change this value anymore once a drop has started. - * - * Returns: The possible `GdkDragActions` - */ - public GdkDragAction getActions() - { - return gdk_drop_get_actions(gdkDrop); - } - - /** - * Returns the `GdkDevice` performing the drop. - * - * Returns: The `GdkDevice` performing the drop. - */ - public Device getDevice() - { - auto __p = gdk_drop_get_device(gdkDrop); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Device)(cast(GdkDevice*) __p); - } - - /** - * Gets the `GdkDisplay` that @self was created for. - * - * Returns: a `GdkDisplay` - */ - public Display getDisplay() - { - auto __p = gdk_drop_get_display(gdkDrop); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * If this is an in-app drag-and-drop operation, returns the `GdkDrag` - * that corresponds to this drop. - * - * If it is not, %NULL is returned. - * - * Returns: the corresponding `GdkDrag` - */ - public Drag getDrag() - { - auto __p = gdk_drop_get_drag(gdkDrop); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Drag)(cast(GdkDrag*) __p); - } - - /** - * Returns the `GdkContentFormats` that the drop offers the data - * to be read in. - * - * Returns: The possible `GdkContentFormats` - */ - public ContentFormats getFormats() - { - auto __p = gdk_drop_get_formats(gdkDrop); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ContentFormats)(cast(GdkContentFormats*) __p); - } - - /** - * Returns the `GdkSurface` performing the drop. - * - * Returns: The `GdkSurface` performing the drop. - */ - public Surface getSurface() - { - auto __p = gdk_drop_get_surface(gdkDrop); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Asynchronously read the dropped data from a `GdkDrop` - * in a format that complies with one of the mime types. - * - * Params: - * mimeTypes = pointer to an array of mime types - * ioPriority = the I/O priority for the read operation - * cancellable = optional `GCancellable` object, - * %NULL to ignore - * callback = a `GAsyncReadyCallback` to call when - * the request is satisfied - * userData = the data to pass to @callback - */ - public void readAsync(string[] mimeTypes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_drop_read_async(gdkDrop, Str.toStringzArray(mimeTypes), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async drop read operation. - * - * Note that you must not use blocking read calls on the returned stream - * in the GTK thread, since some platforms might require communication with - * GTK to complete the data transfer. You can use async APIs such as - * g_input_stream_read_bytes_async(). - * - * See [method@Gdk.Drop.read_async]. - * - * Params: - * result = a `GAsyncResult` - * outMimeType = return location for the used mime type - * - * Returns: the `GInputStream`, or %NULL - * - * Throws: GException on failure. - */ - public InputStream readFinish(AsyncResultIF result, out string outMimeType) - { - char* outoutMimeType = null; - GError* err = null; - - auto __p = gdk_drop_read_finish(gdkDrop, (result is null) ? null : result.getAsyncResultStruct(), &outoutMimeType, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outMimeType = Str.toString(outoutMimeType); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p, true); - } - - /** - * Asynchronously request the drag operation's contents converted - * to the given @type. - * - * When the operation is finished @callback will be called. You must - * then call [method@Gdk.Drop.read_value_finish] to get the resulting - * `GValue`. - * - * For local drag'n'drop operations that are available in the given - * `GType`, the value will be copied directly. Otherwise, GDK will - * try to use [func@Gdk.content_deserialize_async] to convert the data. - * - * Params: - * type = a `GType` to read - * ioPriority = the I/O priority of the request. - * cancellable = optional `GCancellable` object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void readValueAsync(GType type, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_drop_read_value_async(gdkDrop, type, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async drop read. - * - * See [method@Gdk.Drop.read_value_async]. - * - * Params: - * result = a `GAsyncResult` - * - * Returns: a `GValue` containing the result. - * - * Throws: GException on failure. - */ - public Value readValueFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = gdk_drop_read_value_finish(gdkDrop, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Value)(cast(GValue*) __p); - } - - /** - * Selects all actions that are potentially supported by the destination. - * - * When calling this function, do not restrict the passed in actions to - * the ones provided by [method@Gdk.Drop.get_actions]. Those actions may - * change in the future, even depending on the actions you provide here. - * - * The @preferred action is a hint to the drag'n'drop mechanism about which - * action to use when multiple actions are possible. - * - * This function should be called by drag destinations in response to - * %GDK_DRAG_ENTER or %GDK_DRAG_MOTION events. If the destination does - * not yet know the exact actions it supports, it should set any possible - * actions first and then later call this function again. - * - * Params: - * actions = Supported actions of the destination, or 0 to indicate - * that a drop will not be accepted - * preferred = A unique action that's a member of @actions indicating the - * preferred action - */ - public void status(GdkDragAction actions, GdkDragAction preferred) - { - gdk_drop_status(gdkDrop, actions, preferred); - } -} diff --git a/generated/gtkd/gdk/Event.d b/generated/gtkd/gdk/Event.d deleted file mode 100644 index 98feae051..000000000 --- a/generated/gtkd/gdk/Event.d +++ /dev/null @@ -1,408 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Event; - -private import gdk.Device; -private import gdk.DeviceTool; -private import gdk.Display; -private import gdk.Seat; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * `GdkEvent`s are immutable data structures, created by GDK to - * represent windowing system events. - * - * In GTK applications the events are handled automatically by toplevel - * widgets and passed on to the event controllers of appropriate widgets, - * so using `GdkEvent` and its related API is rarely needed. - */ -public class Event -{ - /** the main Gtk struct */ - protected GdkEvent* gdkEvent; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkEvent* getEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkEvent; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkEvent* gdkEvent, bool ownedRef = false) - { - this.gdkEvent = gdkEvent; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDK) && ownedRef ) - gdk_event_unref(gdkEvent); - } - - - /** */ - public static GType getType() - { - return gdk_event_get_type(); - } - - /** - * Returns the relative angle from @event1 to @event2. - * - * The relative angle is the angle between the X axis and the line - * through both events' positions. The rotation direction for positive - * angles is from the positive X axis towards the positive Y axis. - * - * This assumes that both events have X/Y information. - * If not, this function returns %FALSE. - * - * Params: - * event2 = second `GdkEvent` - * angle = return location for the relative angle between both events - * - * Returns: %TRUE if the angle could be calculated. - */ - public bool GetAngle(Event event2, out double angle) - { - return gdk_events_get_angle(gdkEvent, (event2 is null) ? null : event2.getEventStruct(), &angle) != 0; - } - - /** - * Returns the point halfway between the events' positions. - * - * This assumes that both events have X/Y information. - * If not, this function returns %FALSE. - * - * Params: - * event2 = second `GdkEvent` - * x = return location for the X coordinate of the center - * y = return location for the Y coordinate of the center - * - * Returns: %TRUE if the center could be calculated. - */ - public bool GetCenter(Event event2, out double x, out double y) - { - return gdk_events_get_center(gdkEvent, (event2 is null) ? null : event2.getEventStruct(), &x, &y) != 0; - } - - /** - * Returns the distance between the event locations. - * - * This assumes that both events have X/Y information. - * If not, this function returns %FALSE. - * - * Params: - * event2 = second `GdkEvent` - * distance = return location for the distance - * - * Returns: %TRUE if the distance could be calculated. - */ - public bool GetDistance(Event event2, out double distance) - { - return gdk_events_get_distance(gdkEvent, (event2 is null) ? null : event2.getEventStruct(), &distance) != 0; - } - - /** - * Extracts all axis values from an event. - * - * Params: - * axes = the array of values for all axes - * - * Returns: %TRUE on success, otherwise %FALSE - */ - public bool getAxes(out double[] axes) - { - double* outaxes; - uint nAxes; - - auto __p = gdk_event_get_axes(gdkEvent, &outaxes, &nAxes) != 0; - - axes = outaxes[0 .. nAxes]; - - return __p; - } - - /** - * Extract the axis value for a particular axis use from - * an event structure. - * - * Params: - * axisUse = the axis use to look for - * value = location to store the value found - * - * Returns: %TRUE if the specified axis was found, otherwise %FALSE - */ - public bool getAxis(GdkAxisUse axisUse, out double value) - { - return gdk_event_get_axis(gdkEvent, axisUse, &value) != 0; - } - - /** - * Returns the device of an event. - * - * Returns: a #GdkDevice. - */ - public Device getDevice() - { - auto __p = gdk_event_get_device(gdkEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Device)(cast(GdkDevice*) __p); - } - - /** - * Returns a `GdkDeviceTool` representing the tool that - * caused the event. - * - * If the was not generated by a device that supports - * different tools (such as a tablet), this function will - * return %NULL. - * - * Note: the `GdkDeviceTool` will be constant during - * the application lifetime, if settings must be stored - * persistently across runs, see [method@Gdk.DeviceTool.get_serial]. - * - * Returns: The current device tool, or %NULL - */ - public DeviceTool getDeviceTool() - { - auto __p = gdk_event_get_device_tool(gdkEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DeviceTool)(cast(GdkDeviceTool*) __p); - } - - /** - * Retrieves the display associated to the @event. - * - * Returns: a #GdkDisplay - */ - public Display getDisplay() - { - auto __p = gdk_event_get_display(gdkEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Retuns the event sequence to which the event belongs. - * - * Related touch events are connected in a sequence. Other - * events typically don't have event sequence information. - * - * Returns: the event sequence that the event belongs to - */ - public GdkEventSequence* getEventSequence() - { - return gdk_event_get_event_sequence(gdkEvent); - } - - /** - * Retrieves the type of the event. - * - * Returns: a `GdkEvent`Type - */ - public GdkEventType getEventType() - { - return gdk_event_get_event_type(gdkEvent); - } - - /** - * Retrieves the history of the device that @event is for, as a list of - * time and coordinates. - * - * The history includes positions that are not delivered as separate events - * to the application because they occurred in the same frame as @event. - * - * Note that only motion and scroll events record history, and motion - * events do it only if one of the mouse buttons is down. - * - * Returns: an - * array of time and coordinates - */ - public GdkTimeCoord[] getHistory() - { - uint outNCoords; - - auto __p = gdk_event_get_history(gdkEvent, &outNCoords); - - return __p[0 .. outNCoords]; - } - - /** - * Returns the modifier state field of an event. - * - * Returns: the modifier state of @event - */ - public GdkModifierType getModifierState() - { - return gdk_event_get_modifier_state(gdkEvent); - } - - /** - * Returns whether this event is an 'emulated' pointer event. - * - * Emulated pointer events typically originate from a touch events. - * - * Returns: %TRUE if this event is emulated - */ - public bool getPointerEmulated() - { - return gdk_event_get_pointer_emulated(gdkEvent) != 0; - } - - /** - * Extract the event surface relative x/y coordinates from an event. - * - * Params: - * x = location to put event surface x coordinate - * y = location to put event surface y coordinate - */ - public bool getPosition(out double x, out double y) - { - return gdk_event_get_position(gdkEvent, &x, &y) != 0; - } - - /** - * Returns the seat that originated the event. - * - * Returns: a #GdkSeat. - */ - public Seat getSeat() - { - auto __p = gdk_event_get_seat(gdkEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Seat)(cast(GdkSeat*) __p); - } - - /** - * Extracts the surface associated with an event. - * - * Returns: The #GdkSurface associated with the event - */ - public Surface getSurface() - { - auto __p = gdk_event_get_surface(gdkEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Returns the timestamp of @event. - * - * Not all events have timestamps. In that case, this function - * returns %GDK_CURRENT_TIME. - * - * Returns: timestamp field from @event - */ - public uint getTime() - { - return gdk_event_get_time(gdkEvent); - } - - alias doref = ref_; - /** - * Increase the ref count of @event. - * - * Returns: @event - */ - public Event ref_() - { - auto __p = gdk_event_ref(gdkEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Event)(cast(GdkEvent*) __p, true); - } - - /** - * Returns whether a `GdkEvent` should trigger a context menu, - * according to platform conventions. - * - * The right mouse button typically triggers context menus. - * - * This function should always be used instead of simply checking for - * event->button == %GDK_BUTTON_SECONDARY. - * - * Returns: %TRUE if the event should trigger a context menu. - */ - public bool triggersContextMenu() - { - return gdk_event_triggers_context_menu(gdkEvent) != 0; - } - - /** - * Decrease the ref count of @event. - * - * If the last reference is dropped, the structure is freed. - */ - public void unref() - { - gdk_event_unref(gdkEvent); - } -} diff --git a/generated/gtkd/gdk/EventSequence.d b/generated/gtkd/gdk/EventSequence.d deleted file mode 100644 index 5ec633152..000000000 --- a/generated/gtkd/gdk/EventSequence.d +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.EventSequence; - -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * `GdkEventSequence` is an opaque type representing a sequence - * of related touch events. - */ -public struct EventSequence -{ - - /** */ - public static GType getType() - { - return gdk_event_sequence_get_type(); - } -} diff --git a/generated/gtkd/gdk/FocusEvent.d b/generated/gtkd/gdk/FocusEvent.d deleted file mode 100644 index 4a57faf89..000000000 --- a/generated/gtkd/gdk/FocusEvent.d +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.FocusEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a keyboard focus change. - */ -public class FocusEvent : Event -{ - /** the main Gtk struct */ - protected GdkFocusEvent* gdkFocusEvent; - - /** Get the main Gtk struct */ - public GdkFocusEvent* getFocusEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkFocusEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkFocusEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkFocusEvent* gdkFocusEvent, bool ownedRef = false) - { - this.gdkFocusEvent = gdkFocusEvent; - super(cast(GdkEvent*)gdkFocusEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_focus_event_get_type(); - } - - /** - * Extracts whether this event is about focus entering or - * leaving the surface. - * - * Returns: %TRUE of the focus is entering - */ - public bool getIn() - { - return gdk_focus_event_get_in(cast(GdkEvent*)gdkFocusEvent) != 0; - } -} diff --git a/generated/gtkd/gdk/FrameClock.d b/generated/gtkd/gdk/FrameClock.d deleted file mode 100644 index e84c8c69a..000000000 --- a/generated/gtkd/gdk/FrameClock.d +++ /dev/null @@ -1,359 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.FrameClock; - -private import gdk.FrameTimings; -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A `GdkFrameClock` tells the application when to update and repaint - * a surface. - * - * This may be synced to the vertical refresh rate of the monitor, for example. - * Even when the frame clock uses a simple timer rather than a hardware-based - * vertical sync, the frame clock helps because it ensures everything paints at - * the same time (reducing the total number of frames). - * - * The frame clock can also automatically stop painting when it knows the frames - * will not be visible, or scale back animation framerates. - * - * `GdkFrameClock` is designed to be compatible with an OpenGL-based implementation - * or with mozRequestAnimationFrame in Firefox, for example. - * - * A frame clock is idle until someone requests a frame with - * [method@Gdk.FrameClock.request_phase]. At some later point that makes sense - * for the synchronization being implemented, the clock will process a frame and - * emit signals for each phase that has been requested. (See the signals of the - * `GdkFrameClock` class for documentation of the phases. - * %GDK_FRAME_CLOCK_PHASE_UPDATE and the [signal@GdkFrameClock::update] signal - * are most interesting for application writers, and are used to update the - * animations, using the frame time given by [metohd@Gdk.FrameClock.get_frame_time]. - * - * The frame time is reported in microseconds and generally in the same - * timescale as g_get_monotonic_time(), however, it is not the same - * as g_get_monotonic_time(). The frame time does not advance during - * the time a frame is being painted, and outside of a frame, an attempt - * is made so that all calls to [method@Gdk.FrameClock.get_frame_time] that - * are called at a “similar” time get the same value. This means that - * if different animations are timed by looking at the difference in - * time between an initial value from [method@Gdk.FrameClock.get_frame_time] - * and the value inside the [signal@GdkFrameClock::update] signal of the clock, - * they will stay exactly synchronized. - */ -public class FrameClock : ObjectG -{ - /** the main Gtk struct */ - protected GdkFrameClock* gdkFrameClock; - - /** Get the main Gtk struct */ - public GdkFrameClock* getFrameClockStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkFrameClock; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkFrameClock; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkFrameClock* gdkFrameClock, bool ownedRef = false) - { - this.gdkFrameClock = gdkFrameClock; - super(cast(GObject*)gdkFrameClock, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_frame_clock_get_type(); - } - - /** - * Starts updates for an animation. - * - * Until a matching call to [method@Gdk.FrameClock.end_updating] is made, - * the frame clock will continually request a new frame with the - * %GDK_FRAME_CLOCK_PHASE_UPDATE phase. This function may be called multiple - * times and frames will be requested until gdk_frame_clock_end_updating() - * is called the same number of times. - */ - public void beginUpdating() - { - gdk_frame_clock_begin_updating(gdkFrameClock); - } - - /** - * Stops updates for an animation. - * - * See the documentation for [method@Gdk.FrameClock.begin_updating]. - */ - public void endUpdating() - { - gdk_frame_clock_end_updating(gdkFrameClock); - } - - /** - * Gets the frame timings for the current frame. - * - * Returns: the `GdkFrameTimings` for the - * frame currently being processed, or even no frame is being - * processed, for the previous frame. Before any frames have been - * processed, returns %NULL. - */ - public FrameTimings getCurrentTimings() - { - auto __p = gdk_frame_clock_get_current_timings(gdkFrameClock); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FrameTimings)(cast(GdkFrameTimings*) __p); - } - - /** - * Calculates the current frames-per-second, based on the - * frame timings of @frame_clock. - * - * Returns: the current fps, as a `double` - */ - public double getFps() - { - return gdk_frame_clock_get_fps(gdkFrameClock); - } - - /** - * `GdkFrameClock` maintains a 64-bit counter that increments for - * each frame drawn. - * - * Returns: inside frame processing, the value of the frame counter - * for the current frame. Outside of frame processing, the frame - * counter for the last frame. - */ - public long getFrameCounter() - { - return gdk_frame_clock_get_frame_counter(gdkFrameClock); - } - - /** - * Gets the time that should currently be used for animations. - * - * Inside the processing of a frame, it’s the time used to compute the - * animation position of everything in a frame. Outside of a frame, it's - * the time of the conceptual “previous frame,” which may be either - * the actual previous frame time, or if that’s too old, an updated - * time. - * - * Returns: a timestamp in microseconds, in the timescale of - * of g_get_monotonic_time(). - */ - public long getFrameTime() - { - return gdk_frame_clock_get_frame_time(gdkFrameClock); - } - - /** - * Returns the frame counter for the oldest frame available in history. - * - * `GdkFrameClock` internally keeps a history of `GdkFrameTimings` - * objects for recent frames that can be retrieved with - * [method@Gdk.FrameClock.get_timings]. The set of stored frames - * is the set from the counter values given by - * [method@Gdk.FrameClock.get_history_start] and - * [method@Gdk.FrameClock.get_frame_counter], inclusive. - * - * Returns: the frame counter value for the oldest frame - * that is available in the internal frame history of the - * `GdkFrameClock` - */ - public long getHistoryStart() - { - return gdk_frame_clock_get_history_start(gdkFrameClock); - } - - /** - * Predicts a presentation time, based on history. - * - * Using the frame history stored in the frame clock, finds the last - * known presentation time and refresh interval, and assuming that - * presentation times are separated by the refresh interval, - * predicts a presentation time that is a multiple of the refresh - * interval after the last presentation time, and later than @base_time. - * - * Params: - * baseTime = base time for determining a presentaton time - * refreshIntervalReturn = a location to store the - * determined refresh interval, or %NULL. A default refresh interval of - * 1/60th of a second will be stored if no history is present. - * presentationTimeReturn = a location to store the next - * candidate presentation time after the given base time. - * 0 will be will be stored if no history is present. - */ - public void getRefreshInfo(long baseTime, out long refreshIntervalReturn, out long presentationTimeReturn) - { - gdk_frame_clock_get_refresh_info(gdkFrameClock, baseTime, &refreshIntervalReturn, &presentationTimeReturn); - } - - /** - * Retrieves a `GdkFrameTimings` object holding timing information - * for the current frame or a recent frame. - * - * The `GdkFrameTimings` object may not yet be complete: see - * [method@Gdk.FrameTimings.get_complete]. - * - * Params: - * frameCounter = the frame counter value identifying the frame to - * be received - * - * Returns: the `GdkFrameTimings` object - * for the specified frame, or %NULL if it is not available. See - * [method@Gdk.FrameClock.get_history_start]. - */ - public FrameTimings getTimings(long frameCounter) - { - auto __p = gdk_frame_clock_get_timings(gdkFrameClock, frameCounter); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FrameTimings)(cast(GdkFrameTimings*) __p); - } - - /** - * Asks the frame clock to run a particular phase. - * - * The signal corresponding the requested phase will be emitted the next - * time the frame clock processes. Multiple calls to - * gdk_frame_clock_request_phase() will be combined together - * and only one frame processed. If you are displaying animated - * content and want to continually request the - * %GDK_FRAME_CLOCK_PHASE_UPDATE phase for a period of time, - * you should use [method@Gdk.FrameClock.begin_updating] instead, - * since this allows GTK to adjust system parameters to get maximally - * smooth animations. - * - * Params: - * phase = the phase that is requested - */ - public void requestPhase(GdkFrameClockPhase phase) - { - gdk_frame_clock_request_phase(gdkFrameClock, phase); - } - - /** - * This signal ends processing of the frame. - * - * Applications should generally not handle this signal. - */ - gulong addOnAfterPaint(void delegate(FrameClock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "after-paint", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Begins processing of the frame. - * - * Applications should generally not handle this signal. - */ - gulong addOnBeforePaint(void delegate(FrameClock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "before-paint", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Used to flush pending motion events that are being batched up and - * compressed together. - * - * Applications should not handle this signal. - */ - gulong addOnFlushEvents(void delegate(FrameClock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "flush-events", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted as the second step of toolkit and application processing - * of the frame. - * - * Any work to update sizes and positions of application elements - * should be performed. GTK normally handles this internally. - */ - gulong addOnLayout(void delegate(FrameClock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "layout", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted as the third step of toolkit and application processing - * of the frame. - * - * The frame is repainted. GDK normally handles this internally and - * emits [signal@Gdk.Surface::render] signals which are turned into - * [signal@Gtk.Widget::snapshot] signals by GTK. - */ - gulong addOnPaint(void delegate(FrameClock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "paint", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted after processing of the frame is finished. - * - * This signal is handled internally by GTK to resume normal - * event processing. Applications should not handle this signal. - */ - gulong addOnResumeEvents(void delegate(FrameClock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "resume-events", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted as the first step of toolkit and application processing - * of the frame. - * - * Animations should be updated using [method@Gdk.FrameClock.get_frame_time]. - * Applications can connect directly to this signal, or use - * [method@Gtk.Widget.add_tick_callback] as a more convenient interface. - */ - gulong addOnUpdate(void delegate(FrameClock) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "update", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/FrameTimings.d b/generated/gtkd/gdk/FrameTimings.d deleted file mode 100644 index 26eead5f9..000000000 --- a/generated/gtkd/gdk/FrameTimings.d +++ /dev/null @@ -1,213 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.FrameTimings; - -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * A `GdkFrameTimings` object holds timing information for a single frame - * of the application’s displays. - * - * To retrieve `GdkFrameTimings` objects, use [method@Gdk.FrameClock.get_timings] - * or [method@Gdk.FrameClock.get_current_timings]. The information in - * `GdkFrameTimings` is useful for precise synchronization of video with - * the event or audio streams, and for measuring quality metrics for the - * application’s display, such as latency and jitter. - */ -public class FrameTimings -{ - /** the main Gtk struct */ - protected GdkFrameTimings* gdkFrameTimings; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkFrameTimings* getFrameTimingsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkFrameTimings; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkFrameTimings; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkFrameTimings* gdkFrameTimings, bool ownedRef = false) - { - this.gdkFrameTimings = gdkFrameTimings; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDK) && ownedRef ) - gdk_frame_timings_unref(gdkFrameTimings); - } - - - /** */ - public static GType getType() - { - return gdk_frame_timings_get_type(); - } - - /** - * Returns whether @timings are complete. - * - * The timing information in a `GdkFrameTimings` is filled in - * incrementally as the frame as drawn and passed off to the - * window system for processing and display to the user. The - * accessor functions for `GdkFrameTimings` can return 0 to - * indicate an unavailable value for two reasons: either because - * the information is not yet available, or because it isn't - * available at all. - * - * Once this function returns %TRUE for a frame, you can be - * certain that no further values will become available and be - * stored in the `GdkFrameTimings`. - * - * Returns: %TRUE if all information that will be available - * for the frame has been filled in. - */ - public bool getComplete() - { - return gdk_frame_timings_get_complete(gdkFrameTimings) != 0; - } - - /** - * Gets the frame counter value of the `GdkFrameClock` when - * this frame was drawn. - * - * Returns: the frame counter value for this frame - */ - public long getFrameCounter() - { - return gdk_frame_timings_get_frame_counter(gdkFrameTimings); - } - - /** - * Returns the frame time for the frame. - * - * This is the time value that is typically used to time - * animations for the frame. See [method@Gdk.FrameClock.get_frame_time]. - * - * Returns: the frame time for the frame, in the timescale - * of g_get_monotonic_time() - */ - public long getFrameTime() - { - return gdk_frame_timings_get_frame_time(gdkFrameTimings); - } - - /** - * Gets the predicted time at which this frame will be displayed. - * - * Although no predicted time may be available, if one is available, - * it will be available while the frame is being generated, in contrast - * to [method@Gdk.FrameTimings.get_presentation_time], which is only - * available after the frame has been presented. - * - * In general, if you are simply animating, you should use - * [method@Gdk.FrameClock.get_frame_time] rather than this function, - * but this function is useful for applications that want exact control - * over latency. For example, a movie player may want this information - * for Audio/Video synchronization. - * - * Returns: The predicted time at which the frame will be presented, - * in the timescale of g_get_monotonic_time(), or 0 if no predicted - * presentation time is available. - */ - public long getPredictedPresentationTime() - { - return gdk_frame_timings_get_predicted_presentation_time(gdkFrameTimings); - } - - /** - * Reurns the presentation time. - * - * This is the time at which the frame became visible to the user. - * - * Returns: the time the frame was displayed to the user, in the - * timescale of g_get_monotonic_time(), or 0 if no presentation - * time is available. See [method@Gdk.FrameTimings.get_complete] - */ - public long getPresentationTime() - { - return gdk_frame_timings_get_presentation_time(gdkFrameTimings); - } - - /** - * Gets the natural interval between presentation times for - * the display that this frame was displayed on. - * - * Frame presentation usually happens during the “vertical - * blanking interval”. - * - * Returns: the refresh interval of the display, in microseconds, - * or 0 if the refresh interval is not available. - * See [method@Gdk.FrameTimings.get_complete]. - */ - public long getRefreshInterval() - { - return gdk_frame_timings_get_refresh_interval(gdkFrameTimings); - } - - alias doref = ref_; - /** - * Increases the reference count of @timings. - * - * Returns: @timings - */ - public FrameTimings ref_() - { - auto __p = gdk_frame_timings_ref(gdkFrameTimings); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FrameTimings)(cast(GdkFrameTimings*) __p, true); - } - - /** - * Decreases the reference count of @timings. - * - * If @timings is no longer referenced, it will be freed. - */ - public void unref() - { - gdk_frame_timings_unref(gdkFrameTimings); - } -} diff --git a/generated/gtkd/gdk/GLContext.d b/generated/gtkd/gdk/GLContext.d deleted file mode 100644 index 36314bce9..000000000 --- a/generated/gtkd/gdk/GLContext.d +++ /dev/null @@ -1,396 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.GLContext; - -private import gdk.Display; -private import gdk.DrawContext; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * `GdkGLContext` is an object representing a platform-specific - * OpenGL draw context. - * - * `GdkGLContext`s are created for a surface using - * [method@Gdk.Surface.create_gl_context], and the context will match - * the the characteristics of the surface. - * - * A `GdkGLContext` is not tied to any particular normal framebuffer. - * For instance, it cannot draw to the surface back buffer. The GDK - * repaint system is in full control of the painting to that. Instead, - * you can create render buffers or textures and use [func@cairo_draw_from_gl] - * in the draw function of your widget to draw them. Then GDK will handle - * the integration of your rendering with that of other widgets. - * - * Support for `GdkGLContext` is platform-specific and context creation - * can fail, returning %NULL context. - * - * A `GdkGLContext` has to be made "current" in order to start using - * it, otherwise any OpenGL call will be ignored. - * - * ## Creating a new OpenGL context - * - * In order to create a new `GdkGLContext` instance you need a `GdkSurface`, - * which you typically get during the realize call of a widget. - * - * A `GdkGLContext` is not realized until either [method@Gdk.GLContext.make_current] - * or [method@Gdk.GLContext.realize] is called. It is possible to specify - * details of the GL context like the OpenGL version to be used, or whether - * the GL context should have extra state validation enabled after calling - * [method@Gdk.Surface.create_gl_context] by calling [method@Gdk.GLContext.realize]. - * If the realization fails you have the option to change the settings of - * the `GdkGLContext` and try again. - * - * ## Using a GdkGLContext - * - * You will need to make the `GdkGLContext` the current context before issuing - * OpenGL calls; the system sends OpenGL commands to whichever context is current. - * It is possible to have multiple contexts, so you always need to ensure that - * the one which you want to draw with is the current one before issuing commands: - * - * ```c - * gdk_gl_context_make_current (context); - * ``` - * - * You can now perform your drawing using OpenGL commands. - * - * You can check which `GdkGLContext` is the current one by using - * [func@Gdk.GLContext.get_current]; you can also unset any `GdkGLContext` - * that is currently set by calling [func@Gdk.GLContext.clear_current]. - */ -public class GLContext : DrawContext -{ - /** the main Gtk struct */ - protected GdkGLContext* gdkGLContext; - - /** Get the main Gtk struct */ - public GdkGLContext* getGLContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkGLContext; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkGLContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkGLContext* gdkGLContext, bool ownedRef = false) - { - this.gdkGLContext = gdkGLContext; - super(cast(GdkDrawContext*)gdkGLContext, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_gl_context_get_type(); - } - - /** - * Clears the current `GdkGLContext`. - * - * Any OpenGL call after this function returns will be ignored - * until [method@Gdk.GLContext.make_current] is called. - */ - public static void clearCurrent() - { - gdk_gl_context_clear_current(); - } - - /** - * Retrieves the current `GdkGLContext`. - * - * Returns: the current `GdkGLContext`, or %NULL - */ - public static GLContext getCurrent() - { - auto __p = gdk_gl_context_get_current(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(GLContext)(cast(GdkGLContext*) __p); - } - - /** - * Retrieves whether the context is doing extra validations and runtime checking. - * - * See [method@Gdk.GLContext.set_debug_enabled]. - * - * Returns: %TRUE if debugging is enabled - */ - public bool getDebugEnabled() - { - return gdk_gl_context_get_debug_enabled(gdkGLContext) != 0; - } - - /** - * Retrieves the display the @context is created for - * - * Returns: a `GdkDisplay` or %NULL - */ - public override Display getDisplay() - { - auto __p = gdk_gl_context_get_display(gdkGLContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Retrieves whether the context is forward-compatible. - * - * See [method@Gdk.GLContext.set_forward_compatible]. - * - * Returns: %TRUE if the context should be forward-compatible - */ - public bool getForwardCompatible() - { - return gdk_gl_context_get_forward_compatible(gdkGLContext) != 0; - } - - /** - * Retrieves required OpenGL version. - * - * See [method@Gdk.GLContext.set_required_version]. - * - * Params: - * major = return location for the major version to request - * minor = return location for the minor version to request - */ - public void getRequiredVersion(out int major, out int minor) - { - gdk_gl_context_get_required_version(gdkGLContext, &major, &minor); - } - - /** - * Retrieves the `GdkGLContext` that this @context share data with. - * - * Returns: a `GdkGLContext` or %NULL - */ - public GLContext getSharedContext() - { - auto __p = gdk_gl_context_get_shared_context(gdkGLContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(GLContext)(cast(GdkGLContext*) __p); - } - - /** - * Retrieves the surface used by the @context. - * - * Returns: a `GdkSurface` or %NULL - */ - public override Surface getSurface() - { - auto __p = gdk_gl_context_get_surface(gdkGLContext); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Checks whether the @context is using an OpenGL or OpenGL ES profile. - * - * Returns: %TRUE if the `GdkGLContext` is using an OpenGL ES profile - */ - public bool getUseEs() - { - return gdk_gl_context_get_use_es(gdkGLContext) != 0; - } - - /** - * Retrieves the OpenGL version of the @context. - * - * The @context must be realized prior to calling this function. - * - * Params: - * major = return location for the major version - * minor = return location for the minor version - */ - public void getVersion(out int major, out int minor) - { - gdk_gl_context_get_version(gdkGLContext, &major, &minor); - } - - /** - * Whether the `GdkGLContext` is in legacy mode or not. - * - * The `GdkGLContext` must be realized before calling this function. - * - * When realizing a GL context, GDK will try to use the OpenGL 3.2 core - * profile; this profile removes all the OpenGL API that was deprecated - * prior to the 3.2 version of the specification. If the realization is - * successful, this function will return %FALSE. - * - * If the underlying OpenGL implementation does not support core profiles, - * GDK will fall back to a pre-3.2 compatibility profile, and this function - * will return %TRUE. - * - * You can use the value returned by this function to decide which kind - * of OpenGL API to use, or whether to do extension discovery, or what - * kind of shader programs to load. - * - * Returns: %TRUE if the GL context is in legacy mode - */ - public bool isLegacy() - { - return gdk_gl_context_is_legacy(gdkGLContext) != 0; - } - - /** - * Makes the @context the current one. - */ - public void makeCurrent() - { - gdk_gl_context_make_current(gdkGLContext); - } - - /** - * Realizes the given `GdkGLContext`. - * - * It is safe to call this function on a realized `GdkGLContext`. - * - * Returns: %TRUE if the context is realized - * - * Throws: GException on failure. - */ - public bool realize() - { - GError* err = null; - - auto __p = gdk_gl_context_realize(gdkGLContext, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets whether the `GdkGLContext` should perform extra validations and - * runtime checking. - * - * This is useful during development, but has additional overhead. - * - * The `GdkGLContext` must not be realized or made current prior to - * calling this function. - * - * Params: - * enabled = whether to enable debugging in the context - */ - public void setDebugEnabled(bool enabled) - { - gdk_gl_context_set_debug_enabled(gdkGLContext, enabled); - } - - /** - * Sets whether the `GdkGLContext` should be forward-compatible. - * - * Forward-compatible contexts must not support OpenGL functionality that - * has been marked as deprecated in the requested version; non-forward - * compatible contexts, on the other hand, must support both deprecated and - * non deprecated functionality. - * - * The `GdkGLContext` must not be realized or made current prior to calling - * this function. - * - * Params: - * compatible = whether the context should be forward-compatible - */ - public void setForwardCompatible(bool compatible) - { - gdk_gl_context_set_forward_compatible(gdkGLContext, compatible); - } - - /** - * Sets the major and minor version of OpenGL to request. - * - * Setting @major and @minor to zero will use the default values. - * - * The `GdkGLContext` must not be realized or made current prior to calling - * this function. - * - * Params: - * major = the major version to request - * minor = the minor version to request - */ - public void setRequiredVersion(int major, int minor) - { - gdk_gl_context_set_required_version(gdkGLContext, major, minor); - } - - /** - * Requests that GDK create an OpenGL ES context instead of an OpenGL one. - * - * Not all platforms support OpenGL ES. - * - * The @context must not have been realized. - * - * By default, GDK will attempt to automatically detect whether the - * underlying GL implementation is OpenGL or OpenGL ES once the @context - * is realized. - * - * You should check the return value of [method@Gdk.GLContext.get_use_es] - * after calling [method@Gdk.GLContext.realize] to decide whether to use - * the OpenGL or OpenGL ES API, extensions, or shaders. - * - * Params: - * useEs = whether the context should use OpenGL ES instead of OpenGL, - * or -1 to allow auto-detection - */ - public void setUseEs(int useEs) - { - gdk_gl_context_set_use_es(gdkGLContext, useEs); - } -} diff --git a/generated/gtkd/gdk/GLTexture.d b/generated/gtkd/gdk/GLTexture.d deleted file mode 100644 index d43d7d4ec..000000000 --- a/generated/gtkd/gdk/GLTexture.d +++ /dev/null @@ -1,116 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.GLTexture; - -private import gdk.GLContext; -private import gdk.Texture; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * A GdkTexture representing a GL texture object. - */ -public class GLTexture : Texture -{ - /** the main Gtk struct */ - protected GdkGLTexture* gdkGLTexture; - - /** Get the main Gtk struct */ - public GdkGLTexture* getGLTextureStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkGLTexture; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkGLTexture; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkGLTexture* gdkGLTexture, bool ownedRef = false) - { - this.gdkGLTexture = gdkGLTexture; - super(cast(GdkTexture*)gdkGLTexture, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_gl_texture_get_type(); - } - - /** - * Creates a new texture for an existing GL texture. - * - * Note that the GL texture must not be modified until @destroy is called, - * which will happen when the GdkTexture object is finalized, or due to - * an explicit call of [method@Gdk.GLTexture.release]. - * - * Params: - * context = a `GdkGLContext` - * id = the ID of a texture that was created with @context - * width = the nominal width of the texture - * height = the nominal height of the texture - * destroy = a destroy notify that will be called when the GL resources - * are released - * data = data that gets passed to @destroy - * - * Returns: A newly-created `GdkTexture` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GLContext context, uint id, int width, int height, GDestroyNotify destroy, void* data) - { - auto __p = gdk_gl_texture_new((context is null) ? null : context.getGLContextStruct(), id, width, height, destroy, data); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkGLTexture*) __p, true); - } - - /** - * Releases the GL resources held by a `GdkGLTexture`. - * - * The texture contents are still available via the - * [method@Gdk.Texture.download] function, after this - * function has been called. - */ - public void release() - { - gdk_gl_texture_release(gdkGLTexture); - } -} diff --git a/generated/gtkd/gdk/GrabBrokenEvent.d b/generated/gtkd/gdk/GrabBrokenEvent.d deleted file mode 100644 index 6082dfc05..000000000 --- a/generated/gtkd/gdk/GrabBrokenEvent.d +++ /dev/null @@ -1,98 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.GrabBrokenEvent; - -private import gdk.Event; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; - - -/** - * An event related to a broken windowing system grab. - */ -public class GrabBrokenEvent : Event -{ - /** the main Gtk struct */ - protected GdkGrabBrokenEvent* gdkGrabBrokenEvent; - - /** Get the main Gtk struct */ - public GdkGrabBrokenEvent* getGrabBrokenEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkGrabBrokenEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkGrabBrokenEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkGrabBrokenEvent* gdkGrabBrokenEvent, bool ownedRef = false) - { - this.gdkGrabBrokenEvent = gdkGrabBrokenEvent; - super(cast(GdkEvent*)gdkGrabBrokenEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_grab_broken_event_get_type(); - } - - /** - * Extracts the grab surface from a grab broken event. - * - * Returns: the grab surface of @event - */ - public Surface getGrabSurface() - { - auto __p = gdk_grab_broken_event_get_grab_surface(cast(GdkEvent*)gdkGrabBrokenEvent); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Checks whether the grab broken event is for an implicit grab. - * - * Returns: %TRUE if the an implicit grab was broken - */ - public bool getImplicit() - { - return gdk_grab_broken_event_get_implicit(cast(GdkEvent*)gdkGrabBrokenEvent) != 0; - } -} diff --git a/generated/gtkd/gdk/KeyEvent.d b/generated/gtkd/gdk/KeyEvent.d deleted file mode 100644 index 620556cf9..000000000 --- a/generated/gtkd/gdk/KeyEvent.d +++ /dev/null @@ -1,167 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.KeyEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a key-based device. - */ -public class KeyEvent : Event -{ - /** the main Gtk struct */ - protected GdkKeyEvent* gdkKeyEvent; - - /** Get the main Gtk struct */ - public GdkKeyEvent* getKeyEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkKeyEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkKeyEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkKeyEvent* gdkKeyEvent, bool ownedRef = false) - { - this.gdkKeyEvent = gdkKeyEvent; - super(cast(GdkEvent*)gdkKeyEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_key_event_get_type(); - } - - /** - * Extracts the consumed modifiers from a key event. - * - * Returns: the consumed modifiers or @event - */ - public GdkModifierType getConsumedModifiers() - { - return gdk_key_event_get_consumed_modifiers(cast(GdkEvent*)gdkKeyEvent); - } - - /** - * Extracts the keycode from a key event. - * - * Returns: the keycode of @event - */ - public uint getKeycode() - { - return gdk_key_event_get_keycode(cast(GdkEvent*)gdkKeyEvent); - } - - /** - * Extracts the keyval from a key event. - * - * Returns: the keyval of @event - */ - public uint getKeyval() - { - return gdk_key_event_get_keyval(cast(GdkEvent*)gdkKeyEvent); - } - - /** - * Extracts the layout from a key event. - * - * Returns: the layout of @event - */ - public uint getLayout() - { - return gdk_key_event_get_layout(cast(GdkEvent*)gdkKeyEvent); - } - - /** - * Extracts the shift level from a key event. - * - * Returns: the shift level of @event - */ - public uint getLevel() - { - return gdk_key_event_get_level(cast(GdkEvent*)gdkKeyEvent); - } - - /** - * Gets a keyval and modifier combination that will match - * the event. - * - * See [method@Gdk.KeyEvent.matches]. - * - * Params: - * keyval = return location for a keyval - * modifiers = return location for modifiers - * - * Returns: %TRUE on success - */ - public bool getMatch(out uint keyval, out GdkModifierType modifiers) - { - return gdk_key_event_get_match(cast(GdkEvent*)gdkKeyEvent, &keyval, &modifiers) != 0; - } - - /** - * Extracts whether the key event is for a modifier key. - * - * Returns: %TRUE if the @event is for a modifier key - */ - public bool isModifier() - { - return gdk_key_event_is_modifier(cast(GdkEvent*)gdkKeyEvent) != 0; - } - - /** - * Matches a key event against a keyval and modifiers. - * - * This is typically used to trigger keyboard shortcuts such as Ctrl-C. - * - * Partial matches are possible where the combination matches - * if the currently active group is ignored. - * - * Note that we ignore Caps Lock for matching. - * - * Params: - * keyval = the keyval to match - * modifiers = the modifiers to match - * - * Returns: a `GdkKeyMatch` value describing whether @event matches - */ - public GdkKeyMatch matches(uint keyval, GdkModifierType modifiers) - { - return gdk_key_event_matches(cast(GdkEvent*)gdkKeyEvent, keyval, modifiers); - } -} diff --git a/generated/gtkd/gdk/Keysyms.d b/generated/gtkd/gdk/Keysyms.d deleted file mode 100644 index 4c23efe1b..000000000 --- a/generated/gtkd/gdk/Keysyms.d +++ /dev/null @@ -1,2311 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Keysyms; - -/** - * GdkKeysyms. - */ -public enum GdkKeysyms -{ - GDK_0 = 48, - GDK_1 = 49, - GDK_2 = 50, - GDK_3 = 51, - GDK_3270_AltCursor = 64784, - GDK_3270_Attn = 64782, - GDK_3270_BackTab = 64773, - GDK_3270_ChangeScreen = 64793, - GDK_3270_Copy = 64789, - GDK_3270_CursorBlink = 64783, - GDK_3270_CursorSelect = 64796, - GDK_3270_DeleteWord = 64794, - GDK_3270_Duplicate = 64769, - GDK_3270_Enter = 64798, - GDK_3270_EraseEOF = 64774, - GDK_3270_EraseInput = 64775, - GDK_3270_ExSelect = 64795, - GDK_3270_FieldMark = 64770, - GDK_3270_Ident = 64787, - GDK_3270_Jump = 64786, - GDK_3270_KeyClick = 64785, - GDK_3270_Left2 = 64772, - GDK_3270_PA1 = 64778, - GDK_3270_PA2 = 64779, - GDK_3270_PA3 = 64780, - GDK_3270_Play = 64790, - GDK_3270_PrintScreen = 64797, - GDK_3270_Quit = 64777, - GDK_3270_Record = 64792, - GDK_3270_Reset = 64776, - GDK_3270_Right2 = 64771, - GDK_3270_Rule = 64788, - GDK_3270_Setup = 64791, - GDK_3270_Test = 64781, - GDK_4 = 52, - GDK_5 = 53, - GDK_6 = 54, - GDK_7 = 55, - GDK_8 = 56, - GDK_9 = 57, - GDK_A = 65, - GDK_AE = 198, - GDK_Aacute = 193, - GDK_Abelowdot = 16785056, - GDK_Abreve = 451, - GDK_Abreveacute = 16785070, - GDK_Abrevebelowdot = 16785078, - GDK_Abrevegrave = 16785072, - GDK_Abrevehook = 16785074, - GDK_Abrevetilde = 16785076, - GDK_AccessX_Enable = 65136, - GDK_AccessX_Feedback_Enable = 65137, - GDK_Acircumflex = 194, - GDK_Acircumflexacute = 16785060, - GDK_Acircumflexbelowdot = 16785068, - GDK_Acircumflexgrave = 16785062, - GDK_Acircumflexhook = 16785064, - GDK_Acircumflextilde = 16785066, - GDK_AddFavorite = 269025081, - GDK_Adiaeresis = 196, - GDK_Agrave = 192, - GDK_Ahook = 16785058, - GDK_Alt_L = 65513, - GDK_Alt_R = 65514, - GDK_Amacron = 960, - GDK_Aogonek = 417, - GDK_ApplicationLeft = 269025104, - GDK_ApplicationRight = 269025105, - GDK_Arabic_0 = 16778848, - GDK_Arabic_1 = 16778849, - GDK_Arabic_2 = 16778850, - GDK_Arabic_3 = 16778851, - GDK_Arabic_4 = 16778852, - GDK_Arabic_5 = 16778853, - GDK_Arabic_6 = 16778854, - GDK_Arabic_7 = 16778855, - GDK_Arabic_8 = 16778856, - GDK_Arabic_9 = 16778857, - GDK_Arabic_ain = 1497, - GDK_Arabic_alef = 1479, - GDK_Arabic_alefmaksura = 1513, - GDK_Arabic_beh = 1480, - GDK_Arabic_comma = 1452, - GDK_Arabic_dad = 1494, - GDK_Arabic_dal = 1487, - GDK_Arabic_damma = 1519, - GDK_Arabic_dammatan = 1516, - GDK_Arabic_ddal = 16778888, - GDK_Arabic_farsi_yeh = 16778956, - GDK_Arabic_fatha = 1518, - GDK_Arabic_fathatan = 1515, - GDK_Arabic_feh = 1505, - GDK_Arabic_fullstop = 16778964, - GDK_Arabic_gaf = 16778927, - GDK_Arabic_ghain = 1498, - GDK_Arabic_ha = 1511, - GDK_Arabic_hah = 1485, - GDK_Arabic_hamza = 1473, - GDK_Arabic_hamza_above = 16778836, - GDK_Arabic_hamza_below = 16778837, - GDK_Arabic_hamzaonalef = 1475, - GDK_Arabic_hamzaonwaw = 1476, - GDK_Arabic_hamzaonyeh = 1478, - GDK_Arabic_hamzaunderalef = 1477, - GDK_Arabic_heh = 1511, - GDK_Arabic_heh_doachashmee = 16778942, - GDK_Arabic_heh_goal = 16778945, - GDK_Arabic_jeem = 1484, - GDK_Arabic_jeh = 16778904, - GDK_Arabic_kaf = 1507, - GDK_Arabic_kasra = 1520, - GDK_Arabic_kasratan = 1517, - GDK_Arabic_keheh = 16778921, - GDK_Arabic_khah = 1486, - GDK_Arabic_lam = 1508, - GDK_Arabic_madda_above = 16778835, - GDK_Arabic_maddaonalef = 1474, - GDK_Arabic_meem = 1509, - GDK_Arabic_noon = 1510, - GDK_Arabic_noon_ghunna = 16778938, - GDK_Arabic_peh = 16778878, - GDK_Arabic_percent = 16778858, - GDK_Arabic_qaf = 1506, - GDK_Arabic_question_mark = 1471, - GDK_Arabic_ra = 1489, - GDK_Arabic_rreh = 16778897, - GDK_Arabic_sad = 1493, - GDK_Arabic_seen = 1491, - GDK_Arabic_semicolon = 1467, - GDK_Arabic_shadda = 1521, - GDK_Arabic_sheen = 1492, - GDK_Arabic_sukun = 1522, - GDK_Arabic_superscript_alef = 16778864, - GDK_Arabic_switch = 65406, - GDK_Arabic_tah = 1495, - GDK_Arabic_tatweel = 1504, - GDK_Arabic_tcheh = 16778886, - GDK_Arabic_teh = 1482, - GDK_Arabic_tehmarbuta = 1481, - GDK_Arabic_thal = 1488, - GDK_Arabic_theh = 1483, - GDK_Arabic_tteh = 16778873, - GDK_Arabic_veh = 16778916, - GDK_Arabic_waw = 1512, - GDK_Arabic_yeh = 1514, - GDK_Arabic_yeh_baree = 16778962, - GDK_Arabic_zah = 1496, - GDK_Arabic_zain = 1490, - GDK_Aring = 197, - GDK_Armenian_AT = 16778552, - GDK_Armenian_AYB = 16778545, - GDK_Armenian_BEN = 16778546, - GDK_Armenian_CHA = 16778569, - GDK_Armenian_DA = 16778548, - GDK_Armenian_DZA = 16778561, - GDK_Armenian_E = 16778551, - GDK_Armenian_FE = 16778582, - GDK_Armenian_GHAT = 16778562, - GDK_Armenian_GIM = 16778547, - GDK_Armenian_HI = 16778565, - GDK_Armenian_HO = 16778560, - GDK_Armenian_INI = 16778555, - GDK_Armenian_JE = 16778571, - GDK_Armenian_KE = 16778580, - GDK_Armenian_KEN = 16778559, - GDK_Armenian_KHE = 16778557, - GDK_Armenian_LYUN = 16778556, - GDK_Armenian_MEN = 16778564, - GDK_Armenian_NU = 16778566, - GDK_Armenian_O = 16778581, - GDK_Armenian_PE = 16778570, - GDK_Armenian_PYUR = 16778579, - GDK_Armenian_RA = 16778572, - GDK_Armenian_RE = 16778576, - GDK_Armenian_SE = 16778573, - GDK_Armenian_SHA = 16778567, - GDK_Armenian_TCHE = 16778563, - GDK_Armenian_TO = 16778553, - GDK_Armenian_TSA = 16778558, - GDK_Armenian_TSO = 16778577, - GDK_Armenian_TYUN = 16778575, - GDK_Armenian_VEV = 16778574, - GDK_Armenian_VO = 16778568, - GDK_Armenian_VYUN = 16778578, - GDK_Armenian_YECH = 16778549, - GDK_Armenian_ZA = 16778550, - GDK_Armenian_ZHE = 16778554, - GDK_Armenian_accent = 16778587, - GDK_Armenian_amanak = 16778588, - GDK_Armenian_apostrophe = 16778586, - GDK_Armenian_at = 16778600, - GDK_Armenian_ayb = 16778593, - GDK_Armenian_ben = 16778594, - GDK_Armenian_but = 16778589, - GDK_Armenian_cha = 16778617, - GDK_Armenian_da = 16778596, - GDK_Armenian_dza = 16778609, - GDK_Armenian_e = 16778599, - GDK_Armenian_exclam = 16778588, - GDK_Armenian_fe = 16778630, - GDK_Armenian_full_stop = 16778633, - GDK_Armenian_ghat = 16778610, - GDK_Armenian_gim = 16778595, - GDK_Armenian_hi = 16778613, - GDK_Armenian_ho = 16778608, - GDK_Armenian_hyphen = 16778634, - GDK_Armenian_ini = 16778603, - GDK_Armenian_je = 16778619, - GDK_Armenian_ke = 16778628, - GDK_Armenian_ken = 16778607, - GDK_Armenian_khe = 16778605, - GDK_Armenian_ligature_ew = 16778631, - GDK_Armenian_lyun = 16778604, - GDK_Armenian_men = 16778612, - GDK_Armenian_nu = 16778614, - GDK_Armenian_o = 16778629, - GDK_Armenian_paruyk = 16778590, - GDK_Armenian_pe = 16778618, - GDK_Armenian_pyur = 16778627, - GDK_Armenian_question = 16778590, - GDK_Armenian_ra = 16778620, - GDK_Armenian_re = 16778624, - GDK_Armenian_se = 16778621, - GDK_Armenian_separation_mark = 16778589, - GDK_Armenian_sha = 16778615, - GDK_Armenian_shesht = 16778587, - GDK_Armenian_tche = 16778611, - GDK_Armenian_to = 16778601, - GDK_Armenian_tsa = 16778606, - GDK_Armenian_tso = 16778625, - GDK_Armenian_tyun = 16778623, - GDK_Armenian_verjaket = 16778633, - GDK_Armenian_vev = 16778622, - GDK_Armenian_vo = 16778616, - GDK_Armenian_vyun = 16778626, - GDK_Armenian_yech = 16778597, - GDK_Armenian_yentamna = 16778634, - GDK_Armenian_za = 16778598, - GDK_Armenian_zhe = 16778602, - GDK_Atilde = 195, - GDK_AudibleBell_Enable = 65146, - GDK_AudioCycleTrack = 269025179, - GDK_AudioForward = 269025175, - GDK_AudioLowerVolume = 269025041, - GDK_AudioMedia = 269025074, - GDK_AudioMicMute = 269025202, - GDK_AudioMute = 269025042, - GDK_AudioNext = 269025047, - GDK_AudioPause = 269025073, - GDK_AudioPlay = 269025044, - GDK_AudioPreset = 269025206, - GDK_AudioPrev = 269025046, - GDK_AudioRaiseVolume = 269025043, - GDK_AudioRandomPlay = 269025177, - GDK_AudioRecord = 269025052, - GDK_AudioRepeat = 269025176, - GDK_AudioRewind = 269025086, - GDK_AudioStop = 269025045, - GDK_Away = 269025165, - GDK_B = 66, - GDK_Babovedot = 16784898, - GDK_Back = 269025062, - GDK_BackForward = 269025087, - GDK_BackSpace = 65288, - GDK_Battery = 269025171, - GDK_Begin = 65368, - GDK_Blue = 269025190, - GDK_Bluetooth = 269025172, - GDK_Book = 269025106, - GDK_BounceKeys_Enable = 65140, - GDK_Break = 65387, - GDK_BrightnessAdjust = 269025083, - GDK_Byelorussian_SHORTU = 1726, - GDK_Byelorussian_shortu = 1710, - GDK_C = 67, - GDK_CD = 269025107, - GDK_CH = 65186, - GDK_C_H = 65189, - GDK_C_h = 65188, - GDK_Cabovedot = 709, - GDK_Cacute = 454, - GDK_Calculator = 269025053, - GDK_Calendar = 269025056, - GDK_Cancel = 65385, - GDK_Caps_Lock = 65509, - GDK_Ccaron = 456, - GDK_Ccedilla = 199, - GDK_Ccircumflex = 710, - GDK_Ch = 65185, - GDK_Clear = 65291, - GDK_ClearGrab = 269024801, - GDK_Close = 269025110, - GDK_Codeinput = 65335, - GDK_ColonSign = 16785569, - GDK_Community = 269025085, - GDK_ContrastAdjust = 269025058, - GDK_Control_L = 65507, - GDK_Control_R = 65508, - GDK_Copy = 269025111, - GDK_CruzeiroSign = 16785570, - GDK_Cut = 269025112, - GDK_CycleAngle = 269025180, - GDK_Cyrillic_A = 1761, - GDK_Cyrillic_BE = 1762, - GDK_Cyrillic_CHE = 1790, - GDK_Cyrillic_CHE_descender = 16778422, - GDK_Cyrillic_CHE_vertstroke = 16778424, - GDK_Cyrillic_DE = 1764, - GDK_Cyrillic_DZHE = 1727, - GDK_Cyrillic_E = 1788, - GDK_Cyrillic_EF = 1766, - GDK_Cyrillic_EL = 1772, - GDK_Cyrillic_EM = 1773, - GDK_Cyrillic_EN = 1774, - GDK_Cyrillic_EN_descender = 16778402, - GDK_Cyrillic_ER = 1778, - GDK_Cyrillic_ES = 1779, - GDK_Cyrillic_GHE = 1767, - GDK_Cyrillic_GHE_bar = 16778386, - GDK_Cyrillic_HA = 1768, - GDK_Cyrillic_HARDSIGN = 1791, - GDK_Cyrillic_HA_descender = 16778418, - GDK_Cyrillic_I = 1769, - GDK_Cyrillic_IE = 1765, - GDK_Cyrillic_IO = 1715, - GDK_Cyrillic_I_macron = 16778466, - GDK_Cyrillic_JE = 1720, - GDK_Cyrillic_KA = 1771, - GDK_Cyrillic_KA_descender = 16778394, - GDK_Cyrillic_KA_vertstroke = 16778396, - GDK_Cyrillic_LJE = 1721, - GDK_Cyrillic_NJE = 1722, - GDK_Cyrillic_O = 1775, - GDK_Cyrillic_O_bar = 16778472, - GDK_Cyrillic_PE = 1776, - GDK_Cyrillic_SCHWA = 16778456, - GDK_Cyrillic_SHA = 1787, - GDK_Cyrillic_SHCHA = 1789, - GDK_Cyrillic_SHHA = 16778426, - GDK_Cyrillic_SHORTI = 1770, - GDK_Cyrillic_SOFTSIGN = 1784, - GDK_Cyrillic_TE = 1780, - GDK_Cyrillic_TSE = 1763, - GDK_Cyrillic_U = 1781, - GDK_Cyrillic_U_macron = 16778478, - GDK_Cyrillic_U_straight = 16778414, - GDK_Cyrillic_U_straight_bar = 16778416, - GDK_Cyrillic_VE = 1783, - GDK_Cyrillic_YA = 1777, - GDK_Cyrillic_YERU = 1785, - GDK_Cyrillic_YU = 1760, - GDK_Cyrillic_ZE = 1786, - GDK_Cyrillic_ZHE = 1782, - GDK_Cyrillic_ZHE_descender = 16778390, - GDK_Cyrillic_a = 1729, - GDK_Cyrillic_be = 1730, - GDK_Cyrillic_che = 1758, - GDK_Cyrillic_che_descender = 16778423, - GDK_Cyrillic_che_vertstroke = 16778425, - GDK_Cyrillic_de = 1732, - GDK_Cyrillic_dzhe = 1711, - GDK_Cyrillic_e = 1756, - GDK_Cyrillic_ef = 1734, - GDK_Cyrillic_el = 1740, - GDK_Cyrillic_em = 1741, - GDK_Cyrillic_en = 1742, - GDK_Cyrillic_en_descender = 16778403, - GDK_Cyrillic_er = 1746, - GDK_Cyrillic_es = 1747, - GDK_Cyrillic_ghe = 1735, - GDK_Cyrillic_ghe_bar = 16778387, - GDK_Cyrillic_ha = 1736, - GDK_Cyrillic_ha_descender = 16778419, - GDK_Cyrillic_hardsign = 1759, - GDK_Cyrillic_i = 1737, - GDK_Cyrillic_i_macron = 16778467, - GDK_Cyrillic_ie = 1733, - GDK_Cyrillic_io = 1699, - GDK_Cyrillic_je = 1704, - GDK_Cyrillic_ka = 1739, - GDK_Cyrillic_ka_descender = 16778395, - GDK_Cyrillic_ka_vertstroke = 16778397, - GDK_Cyrillic_lje = 1705, - GDK_Cyrillic_nje = 1706, - GDK_Cyrillic_o = 1743, - GDK_Cyrillic_o_bar = 16778473, - GDK_Cyrillic_pe = 1744, - GDK_Cyrillic_schwa = 16778457, - GDK_Cyrillic_sha = 1755, - GDK_Cyrillic_shcha = 1757, - GDK_Cyrillic_shha = 16778427, - GDK_Cyrillic_shorti = 1738, - GDK_Cyrillic_softsign = 1752, - GDK_Cyrillic_te = 1748, - GDK_Cyrillic_tse = 1731, - GDK_Cyrillic_u = 1749, - GDK_Cyrillic_u_macron = 16778479, - GDK_Cyrillic_u_straight = 16778415, - GDK_Cyrillic_u_straight_bar = 16778417, - GDK_Cyrillic_ve = 1751, - GDK_Cyrillic_ya = 1745, - GDK_Cyrillic_yeru = 1753, - GDK_Cyrillic_yu = 1728, - GDK_Cyrillic_ze = 1754, - GDK_Cyrillic_zhe = 1750, - GDK_Cyrillic_zhe_descender = 16778391, - GDK_D = 68, - GDK_DOS = 269025114, - GDK_Dabovedot = 16784906, - GDK_Dcaron = 463, - GDK_Delete = 65535, - GDK_Display = 269025113, - GDK_Documents = 269025115, - GDK_DongSign = 16785579, - GDK_Down = 65364, - GDK_Dstroke = 464, - GDK_E = 69, - GDK_ENG = 957, - GDK_ETH = 208, - GDK_EZH = 16777655, - GDK_Eabovedot = 972, - GDK_Eacute = 201, - GDK_Ebelowdot = 16785080, - GDK_Ecaron = 460, - GDK_Ecircumflex = 202, - GDK_Ecircumflexacute = 16785086, - GDK_Ecircumflexbelowdot = 16785094, - GDK_Ecircumflexgrave = 16785088, - GDK_Ecircumflexhook = 16785090, - GDK_Ecircumflextilde = 16785092, - GDK_EcuSign = 16785568, - GDK_Ediaeresis = 203, - GDK_Egrave = 200, - GDK_Ehook = 16785082, - GDK_Eisu_Shift = 65327, - GDK_Eisu_toggle = 65328, - GDK_Eject = 269025068, - GDK_Emacron = 938, - GDK_End = 65367, - GDK_Eogonek = 458, - GDK_Escape = 65307, - GDK_Eth = 208, - GDK_Etilde = 16785084, - GDK_EuroSign = 8364, - GDK_Excel = 269025116, - GDK_Execute = 65378, - GDK_Explorer = 269025117, - GDK_F = 70, - GDK_F1 = 65470, - GDK_F10 = 65479, - GDK_F11 = 65480, - GDK_F12 = 65481, - GDK_F13 = 65482, - GDK_F14 = 65483, - GDK_F15 = 65484, - GDK_F16 = 65485, - GDK_F17 = 65486, - GDK_F18 = 65487, - GDK_F19 = 65488, - GDK_F2 = 65471, - GDK_F20 = 65489, - GDK_F21 = 65490, - GDK_F22 = 65491, - GDK_F23 = 65492, - GDK_F24 = 65493, - GDK_F25 = 65494, - GDK_F26 = 65495, - GDK_F27 = 65496, - GDK_F28 = 65497, - GDK_F29 = 65498, - GDK_F3 = 65472, - GDK_F30 = 65499, - GDK_F31 = 65500, - GDK_F32 = 65501, - GDK_F33 = 65502, - GDK_F34 = 65503, - GDK_F35 = 65504, - GDK_F4 = 65473, - GDK_F5 = 65474, - GDK_F6 = 65475, - GDK_F7 = 65476, - GDK_F8 = 65477, - GDK_F9 = 65478, - GDK_FFrancSign = 16785571, - GDK_Fabovedot = 16784926, - GDK_Farsi_0 = 16778992, - GDK_Farsi_1 = 16778993, - GDK_Farsi_2 = 16778994, - GDK_Farsi_3 = 16778995, - GDK_Farsi_4 = 16778996, - GDK_Farsi_5 = 16778997, - GDK_Farsi_6 = 16778998, - GDK_Farsi_7 = 16778999, - GDK_Farsi_8 = 16779000, - GDK_Farsi_9 = 16779001, - GDK_Farsi_yeh = 16778956, - GDK_Favorites = 269025072, - GDK_Finance = 269025084, - GDK_Find = 65384, - GDK_First_Virtual_Screen = 65232, - GDK_Forward = 269025063, - GDK_FrameBack = 269025181, - GDK_FrameForward = 269025182, - GDK_G = 71, - GDK_Gabovedot = 725, - GDK_Game = 269025118, - GDK_Gbreve = 683, - GDK_Gcaron = 16777702, - GDK_Gcedilla = 939, - GDK_Gcircumflex = 728, - GDK_Georgian_an = 16781520, - GDK_Georgian_ban = 16781521, - GDK_Georgian_can = 16781546, - GDK_Georgian_char = 16781549, - GDK_Georgian_chin = 16781545, - GDK_Georgian_cil = 16781548, - GDK_Georgian_don = 16781523, - GDK_Georgian_en = 16781524, - GDK_Georgian_fi = 16781558, - GDK_Georgian_gan = 16781522, - GDK_Georgian_ghan = 16781542, - GDK_Georgian_hae = 16781552, - GDK_Georgian_har = 16781556, - GDK_Georgian_he = 16781553, - GDK_Georgian_hie = 16781554, - GDK_Georgian_hoe = 16781557, - GDK_Georgian_in = 16781528, - GDK_Georgian_jhan = 16781551, - GDK_Georgian_jil = 16781547, - GDK_Georgian_kan = 16781529, - GDK_Georgian_khar = 16781541, - GDK_Georgian_las = 16781530, - GDK_Georgian_man = 16781531, - GDK_Georgian_nar = 16781532, - GDK_Georgian_on = 16781533, - GDK_Georgian_par = 16781534, - GDK_Georgian_phar = 16781540, - GDK_Georgian_qar = 16781543, - GDK_Georgian_rae = 16781536, - GDK_Georgian_san = 16781537, - GDK_Georgian_shin = 16781544, - GDK_Georgian_tan = 16781527, - GDK_Georgian_tar = 16781538, - GDK_Georgian_un = 16781539, - GDK_Georgian_vin = 16781525, - GDK_Georgian_we = 16781555, - GDK_Georgian_xan = 16781550, - GDK_Georgian_zen = 16781526, - GDK_Georgian_zhar = 16781535, - GDK_Go = 269025119, - GDK_Greek_ALPHA = 1985, - GDK_Greek_ALPHAaccent = 1953, - GDK_Greek_BETA = 1986, - GDK_Greek_CHI = 2007, - GDK_Greek_DELTA = 1988, - GDK_Greek_EPSILON = 1989, - GDK_Greek_EPSILONaccent = 1954, - GDK_Greek_ETA = 1991, - GDK_Greek_ETAaccent = 1955, - GDK_Greek_GAMMA = 1987, - GDK_Greek_IOTA = 1993, - GDK_Greek_IOTAaccent = 1956, - GDK_Greek_IOTAdiaeresis = 1957, - GDK_Greek_IOTAdieresis = 1957, - GDK_Greek_KAPPA = 1994, - GDK_Greek_LAMBDA = 1995, - GDK_Greek_LAMDA = 1995, - GDK_Greek_MU = 1996, - GDK_Greek_NU = 1997, - GDK_Greek_OMEGA = 2009, - GDK_Greek_OMEGAaccent = 1963, - GDK_Greek_OMICRON = 1999, - GDK_Greek_OMICRONaccent = 1959, - GDK_Greek_PHI = 2006, - GDK_Greek_PI = 2000, - GDK_Greek_PSI = 2008, - GDK_Greek_RHO = 2001, - GDK_Greek_SIGMA = 2002, - GDK_Greek_TAU = 2004, - GDK_Greek_THETA = 1992, - GDK_Greek_UPSILON = 2005, - GDK_Greek_UPSILONaccent = 1960, - GDK_Greek_UPSILONdieresis = 1961, - GDK_Greek_XI = 1998, - GDK_Greek_ZETA = 1990, - GDK_Greek_accentdieresis = 1966, - GDK_Greek_alpha = 2017, - GDK_Greek_alphaaccent = 1969, - GDK_Greek_beta = 2018, - GDK_Greek_chi = 2039, - GDK_Greek_delta = 2020, - GDK_Greek_epsilon = 2021, - GDK_Greek_epsilonaccent = 1970, - GDK_Greek_eta = 2023, - GDK_Greek_etaaccent = 1971, - GDK_Greek_finalsmallsigma = 2035, - GDK_Greek_gamma = 2019, - GDK_Greek_horizbar = 1967, - GDK_Greek_iota = 2025, - GDK_Greek_iotaaccent = 1972, - GDK_Greek_iotaaccentdieresis = 1974, - GDK_Greek_iotadieresis = 1973, - GDK_Greek_kappa = 2026, - GDK_Greek_lambda = 2027, - GDK_Greek_lamda = 2027, - GDK_Greek_mu = 2028, - GDK_Greek_nu = 2029, - GDK_Greek_omega = 2041, - GDK_Greek_omegaaccent = 1979, - GDK_Greek_omicron = 2031, - GDK_Greek_omicronaccent = 1975, - GDK_Greek_phi = 2038, - GDK_Greek_pi = 2032, - GDK_Greek_psi = 2040, - GDK_Greek_rho = 2033, - GDK_Greek_sigma = 2034, - GDK_Greek_switch = 65406, - GDK_Greek_tau = 2036, - GDK_Greek_theta = 2024, - GDK_Greek_upsilon = 2037, - GDK_Greek_upsilonaccent = 1976, - GDK_Greek_upsilonaccentdieresis = 1978, - GDK_Greek_upsilondieresis = 1977, - GDK_Greek_xi = 2030, - GDK_Greek_zeta = 2022, - GDK_Green = 269025188, - GDK_H = 72, - GDK_Hangul = 65329, - GDK_Hangul_A = 3775, - GDK_Hangul_AE = 3776, - GDK_Hangul_AraeA = 3830, - GDK_Hangul_AraeAE = 3831, - GDK_Hangul_Banja = 65337, - GDK_Hangul_Cieuc = 3770, - GDK_Hangul_Codeinput = 65335, - GDK_Hangul_Dikeud = 3751, - GDK_Hangul_E = 3780, - GDK_Hangul_EO = 3779, - GDK_Hangul_EU = 3793, - GDK_Hangul_End = 65331, - GDK_Hangul_Hanja = 65332, - GDK_Hangul_Hieuh = 3774, - GDK_Hangul_I = 3795, - GDK_Hangul_Ieung = 3767, - GDK_Hangul_J_Cieuc = 3818, - GDK_Hangul_J_Dikeud = 3802, - GDK_Hangul_J_Hieuh = 3822, - GDK_Hangul_J_Ieung = 3816, - GDK_Hangul_J_Jieuj = 3817, - GDK_Hangul_J_Khieuq = 3819, - GDK_Hangul_J_Kiyeog = 3796, - GDK_Hangul_J_KiyeogSios = 3798, - GDK_Hangul_J_KkogjiDalrinIeung = 3833, - GDK_Hangul_J_Mieum = 3811, - GDK_Hangul_J_Nieun = 3799, - GDK_Hangul_J_NieunHieuh = 3801, - GDK_Hangul_J_NieunJieuj = 3800, - GDK_Hangul_J_PanSios = 3832, - GDK_Hangul_J_Phieuf = 3821, - GDK_Hangul_J_Pieub = 3812, - GDK_Hangul_J_PieubSios = 3813, - GDK_Hangul_J_Rieul = 3803, - GDK_Hangul_J_RieulHieuh = 3810, - GDK_Hangul_J_RieulKiyeog = 3804, - GDK_Hangul_J_RieulMieum = 3805, - GDK_Hangul_J_RieulPhieuf = 3809, - GDK_Hangul_J_RieulPieub = 3806, - GDK_Hangul_J_RieulSios = 3807, - GDK_Hangul_J_RieulTieut = 3808, - GDK_Hangul_J_Sios = 3814, - GDK_Hangul_J_SsangKiyeog = 3797, - GDK_Hangul_J_SsangSios = 3815, - GDK_Hangul_J_Tieut = 3820, - GDK_Hangul_J_YeorinHieuh = 3834, - GDK_Hangul_Jamo = 65333, - GDK_Hangul_Jeonja = 65336, - GDK_Hangul_Jieuj = 3768, - GDK_Hangul_Khieuq = 3771, - GDK_Hangul_Kiyeog = 3745, - GDK_Hangul_KiyeogSios = 3747, - GDK_Hangul_KkogjiDalrinIeung = 3827, - GDK_Hangul_Mieum = 3761, - GDK_Hangul_MultipleCandidate = 65341, - GDK_Hangul_Nieun = 3748, - GDK_Hangul_NieunHieuh = 3750, - GDK_Hangul_NieunJieuj = 3749, - GDK_Hangul_O = 3783, - GDK_Hangul_OE = 3786, - GDK_Hangul_PanSios = 3826, - GDK_Hangul_Phieuf = 3773, - GDK_Hangul_Pieub = 3762, - GDK_Hangul_PieubSios = 3764, - GDK_Hangul_PostHanja = 65339, - GDK_Hangul_PreHanja = 65338, - GDK_Hangul_PreviousCandidate = 65342, - GDK_Hangul_Rieul = 3753, - GDK_Hangul_RieulHieuh = 3760, - GDK_Hangul_RieulKiyeog = 3754, - GDK_Hangul_RieulMieum = 3755, - GDK_Hangul_RieulPhieuf = 3759, - GDK_Hangul_RieulPieub = 3756, - GDK_Hangul_RieulSios = 3757, - GDK_Hangul_RieulTieut = 3758, - GDK_Hangul_RieulYeorinHieuh = 3823, - GDK_Hangul_Romaja = 65334, - GDK_Hangul_SingleCandidate = 65340, - GDK_Hangul_Sios = 3765, - GDK_Hangul_Special = 65343, - GDK_Hangul_SsangDikeud = 3752, - GDK_Hangul_SsangJieuj = 3769, - GDK_Hangul_SsangKiyeog = 3746, - GDK_Hangul_SsangPieub = 3763, - GDK_Hangul_SsangSios = 3766, - GDK_Hangul_Start = 65330, - GDK_Hangul_SunkyeongeumMieum = 3824, - GDK_Hangul_SunkyeongeumPhieuf = 3828, - GDK_Hangul_SunkyeongeumPieub = 3825, - GDK_Hangul_Tieut = 3772, - GDK_Hangul_U = 3788, - GDK_Hangul_WA = 3784, - GDK_Hangul_WAE = 3785, - GDK_Hangul_WE = 3790, - GDK_Hangul_WEO = 3789, - GDK_Hangul_WI = 3791, - GDK_Hangul_YA = 3777, - GDK_Hangul_YAE = 3778, - GDK_Hangul_YE = 3782, - GDK_Hangul_YEO = 3781, - GDK_Hangul_YI = 3794, - GDK_Hangul_YO = 3787, - GDK_Hangul_YU = 3792, - GDK_Hangul_YeorinHieuh = 3829, - GDK_Hangul_switch = 65406, - GDK_Hankaku = 65321, - GDK_Hcircumflex = 678, - GDK_Hebrew_switch = 65406, - GDK_Help = 65386, - GDK_Henkan = 65315, - GDK_Henkan_Mode = 65315, - GDK_Hibernate = 269025192, - GDK_Hiragana = 65317, - GDK_Hiragana_Katakana = 65319, - GDK_History = 269025079, - GDK_Home = 65360, - GDK_HomePage = 269025048, - GDK_HotLinks = 269025082, - GDK_Hstroke = 673, - GDK_Hyper_L = 65517, - GDK_Hyper_R = 65518, - GDK_I = 73, - GDK_ISO_Center_Object = 65075, - GDK_ISO_Continuous_Underline = 65072, - GDK_ISO_Discontinuous_Underline = 65073, - GDK_ISO_Emphasize = 65074, - GDK_ISO_Enter = 65076, - GDK_ISO_Fast_Cursor_Down = 65071, - GDK_ISO_Fast_Cursor_Left = 65068, - GDK_ISO_Fast_Cursor_Right = 65069, - GDK_ISO_Fast_Cursor_Up = 65070, - GDK_ISO_First_Group = 65036, - GDK_ISO_First_Group_Lock = 65037, - GDK_ISO_Group_Latch = 65030, - GDK_ISO_Group_Lock = 65031, - GDK_ISO_Group_Shift = 65406, - GDK_ISO_Last_Group = 65038, - GDK_ISO_Last_Group_Lock = 65039, - GDK_ISO_Left_Tab = 65056, - GDK_ISO_Level2_Latch = 65026, - GDK_ISO_Level3_Latch = 65028, - GDK_ISO_Level3_Lock = 65029, - GDK_ISO_Level3_Shift = 65027, - GDK_ISO_Level5_Latch = 65042, - GDK_ISO_Level5_Lock = 65043, - GDK_ISO_Level5_Shift = 65041, - GDK_ISO_Lock = 65025, - GDK_ISO_Move_Line_Down = 65058, - GDK_ISO_Move_Line_Up = 65057, - GDK_ISO_Next_Group = 65032, - GDK_ISO_Next_Group_Lock = 65033, - GDK_ISO_Partial_Line_Down = 65060, - GDK_ISO_Partial_Line_Up = 65059, - GDK_ISO_Partial_Space_Left = 65061, - GDK_ISO_Partial_Space_Right = 65062, - GDK_ISO_Prev_Group = 65034, - GDK_ISO_Prev_Group_Lock = 65035, - GDK_ISO_Release_Both_Margins = 65067, - GDK_ISO_Release_Margin_Left = 65065, - GDK_ISO_Release_Margin_Right = 65066, - GDK_ISO_Set_Margin_Left = 65063, - GDK_ISO_Set_Margin_Right = 65064, - GDK_Iabovedot = 681, - GDK_Iacute = 205, - GDK_Ibelowdot = 16785098, - GDK_Ibreve = 16777516, - GDK_Icircumflex = 206, - GDK_Idiaeresis = 207, - GDK_Igrave = 204, - GDK_Ihook = 16785096, - GDK_Imacron = 975, - GDK_Insert = 65379, - GDK_Iogonek = 967, - GDK_Itilde = 933, - GDK_J = 74, - GDK_Jcircumflex = 684, - GDK_K = 75, - GDK_KP_0 = 65456, - GDK_KP_1 = 65457, - GDK_KP_2 = 65458, - GDK_KP_3 = 65459, - GDK_KP_4 = 65460, - GDK_KP_5 = 65461, - GDK_KP_6 = 65462, - GDK_KP_7 = 65463, - GDK_KP_8 = 65464, - GDK_KP_9 = 65465, - GDK_KP_Add = 65451, - GDK_KP_Begin = 65437, - GDK_KP_Decimal = 65454, - GDK_KP_Delete = 65439, - GDK_KP_Divide = 65455, - GDK_KP_Down = 65433, - GDK_KP_End = 65436, - GDK_KP_Enter = 65421, - GDK_KP_Equal = 65469, - GDK_KP_F1 = 65425, - GDK_KP_F2 = 65426, - GDK_KP_F3 = 65427, - GDK_KP_F4 = 65428, - GDK_KP_Home = 65429, - GDK_KP_Insert = 65438, - GDK_KP_Left = 65430, - GDK_KP_Multiply = 65450, - GDK_KP_Next = 65435, - GDK_KP_Page_Down = 65435, - GDK_KP_Page_Up = 65434, - GDK_KP_Prior = 65434, - GDK_KP_Right = 65432, - GDK_KP_Separator = 65452, - GDK_KP_Space = 65408, - GDK_KP_Subtract = 65453, - GDK_KP_Tab = 65417, - GDK_KP_Up = 65431, - GDK_Kana_Lock = 65325, - GDK_Kana_Shift = 65326, - GDK_Kanji = 65313, - GDK_Kanji_Bangou = 65335, - GDK_Katakana = 65318, - GDK_KbdBrightnessDown = 269025030, - GDK_KbdBrightnessUp = 269025029, - GDK_KbdLightOnOff = 269025028, - GDK_Kcedilla = 979, - GDK_Keyboard = 269025203, - GDK_Korean_Won = 3839, - GDK_L = 76, - GDK_L1 = 65480, - GDK_L10 = 65489, - GDK_L2 = 65481, - GDK_L3 = 65482, - GDK_L4 = 65483, - GDK_L5 = 65484, - GDK_L6 = 65485, - GDK_L7 = 65486, - GDK_L8 = 65487, - GDK_L9 = 65488, - GDK_Lacute = 453, - GDK_Last_Virtual_Screen = 65236, - GDK_Launch0 = 269025088, - GDK_Launch1 = 269025089, - GDK_Launch2 = 269025090, - GDK_Launch3 = 269025091, - GDK_Launch4 = 269025092, - GDK_Launch5 = 269025093, - GDK_Launch6 = 269025094, - GDK_Launch7 = 269025095, - GDK_Launch8 = 269025096, - GDK_Launch9 = 269025097, - GDK_LaunchA = 269025098, - GDK_LaunchB = 269025099, - GDK_LaunchC = 269025100, - GDK_LaunchD = 269025101, - GDK_LaunchE = 269025102, - GDK_LaunchF = 269025103, - GDK_Lbelowdot = 16784950, - GDK_Lcaron = 421, - GDK_Lcedilla = 934, - GDK_Left = 65361, - GDK_LightBulb = 269025077, - GDK_Linefeed = 65290, - GDK_LiraSign = 16785572, - GDK_LogGrabInfo = 269024805, - GDK_LogOff = 269025121, - GDK_LogWindowTree = 269024804, - GDK_Lstroke = 419, - GDK_M = 77, - GDK_Mabovedot = 16784960, - GDK_Macedonia_DSE = 1717, - GDK_Macedonia_GJE = 1714, - GDK_Macedonia_KJE = 1724, - GDK_Macedonia_dse = 1701, - GDK_Macedonia_gje = 1698, - GDK_Macedonia_kje = 1708, - GDK_Mae_Koho = 65342, - GDK_Mail = 269025049, - GDK_MailForward = 269025168, - GDK_Market = 269025122, - GDK_Massyo = 65324, - GDK_Meeting = 269025123, - GDK_Memo = 269025054, - GDK_Menu = 65383, - GDK_MenuKB = 269025125, - GDK_MenuPB = 269025126, - GDK_Messenger = 269025166, - GDK_Meta_L = 65511, - GDK_Meta_R = 65512, - GDK_MillSign = 16785573, - GDK_ModeLock = 269025025, - GDK_Mode_switch = 65406, - GDK_MonBrightnessDown = 269025027, - GDK_MonBrightnessUp = 269025026, - GDK_MouseKeys_Accel_Enable = 65143, - GDK_MouseKeys_Enable = 65142, - GDK_Muhenkan = 65314, - GDK_Multi_key = 65312, - GDK_MultipleCandidate = 65341, - GDK_Music = 269025170, - GDK_MyComputer = 269025075, - GDK_MySites = 269025127, - GDK_N = 78, - GDK_Nacute = 465, - GDK_NairaSign = 16785574, - GDK_Ncaron = 466, - GDK_Ncedilla = 977, - GDK_New = 269025128, - GDK_NewSheqelSign = 16785578, - GDK_News = 269025129, - GDK_Next = 65366, - GDK_Next_VMode = 269024802, - GDK_Next_Virtual_Screen = 65234, - GDK_Ntilde = 209, - GDK_Num_Lock = 65407, - GDK_O = 79, - GDK_OE = 5052, - GDK_Oacute = 211, - GDK_Obarred = 16777631, - GDK_Obelowdot = 16785100, - GDK_Ocaron = 16777681, - GDK_Ocircumflex = 212, - GDK_Ocircumflexacute = 16785104, - GDK_Ocircumflexbelowdot = 16785112, - GDK_Ocircumflexgrave = 16785106, - GDK_Ocircumflexhook = 16785108, - GDK_Ocircumflextilde = 16785110, - GDK_Odiaeresis = 214, - GDK_Odoubleacute = 469, - GDK_OfficeHome = 269025130, - GDK_Ograve = 210, - GDK_Ohook = 16785102, - GDK_Ohorn = 16777632, - GDK_Ohornacute = 16785114, - GDK_Ohornbelowdot = 16785122, - GDK_Ohorngrave = 16785116, - GDK_Ohornhook = 16785118, - GDK_Ohorntilde = 16785120, - GDK_Omacron = 978, - GDK_Ooblique = 216, - GDK_Open = 269025131, - GDK_OpenURL = 269025080, - GDK_Option = 269025132, - GDK_Oslash = 216, - GDK_Otilde = 213, - GDK_Overlay1_Enable = 65144, - GDK_Overlay2_Enable = 65145, - GDK_P = 80, - GDK_Pabovedot = 16784982, - GDK_Page_Down = 65366, - GDK_Page_Up = 65365, - GDK_Paste = 269025133, - GDK_Pause = 65299, - GDK_PesetaSign = 16785575, - GDK_Phone = 269025134, - GDK_Pictures = 269025169, - GDK_Pointer_Accelerate = 65274, - GDK_Pointer_Button1 = 65257, - GDK_Pointer_Button2 = 65258, - GDK_Pointer_Button3 = 65259, - GDK_Pointer_Button4 = 65260, - GDK_Pointer_Button5 = 65261, - GDK_Pointer_Button_Dflt = 65256, - GDK_Pointer_DblClick1 = 65263, - GDK_Pointer_DblClick2 = 65264, - GDK_Pointer_DblClick3 = 65265, - GDK_Pointer_DblClick4 = 65266, - GDK_Pointer_DblClick5 = 65267, - GDK_Pointer_DblClick_Dflt = 65262, - GDK_Pointer_DfltBtnNext = 65275, - GDK_Pointer_DfltBtnPrev = 65276, - GDK_Pointer_Down = 65251, - GDK_Pointer_DownLeft = 65254, - GDK_Pointer_DownRight = 65255, - GDK_Pointer_Drag1 = 65269, - GDK_Pointer_Drag2 = 65270, - GDK_Pointer_Drag3 = 65271, - GDK_Pointer_Drag4 = 65272, - GDK_Pointer_Drag5 = 65277, - GDK_Pointer_Drag_Dflt = 65268, - GDK_Pointer_EnableKeys = 65273, - GDK_Pointer_Left = 65248, - GDK_Pointer_Right = 65249, - GDK_Pointer_Up = 65250, - GDK_Pointer_UpLeft = 65252, - GDK_Pointer_UpRight = 65253, - GDK_PowerDown = 269025057, - GDK_PowerOff = 269025066, - GDK_Prev_VMode = 269024803, - GDK_Prev_Virtual_Screen = 65233, - GDK_PreviousCandidate = 65342, - GDK_Print = 65377, - GDK_Prior = 65365, - GDK_Q = 81, - GDK_R = 82, - GDK_R1 = 65490, - GDK_R10 = 65499, - GDK_R11 = 65500, - GDK_R12 = 65501, - GDK_R13 = 65502, - GDK_R14 = 65503, - GDK_R15 = 65504, - GDK_R2 = 65491, - GDK_R3 = 65492, - GDK_R4 = 65493, - GDK_R5 = 65494, - GDK_R6 = 65495, - GDK_R7 = 65496, - GDK_R8 = 65497, - GDK_R9 = 65498, - GDK_RFKill = 269025205, - GDK_Racute = 448, - GDK_Rcaron = 472, - GDK_Rcedilla = 931, - GDK_Red = 269025187, - GDK_Redo = 65382, - GDK_Refresh = 269025065, - GDK_Reload = 269025139, - GDK_RepeatKeys_Enable = 65138, - GDK_Reply = 269025138, - GDK_Return = 65293, - GDK_Right = 65363, - GDK_RockerDown = 269025060, - GDK_RockerEnter = 269025061, - GDK_RockerUp = 269025059, - GDK_Romaji = 65316, - GDK_RotateWindows = 269025140, - GDK_RotationKB = 269025142, - GDK_RotationPB = 269025141, - GDK_RupeeSign = 16785576, - GDK_S = 83, - GDK_SCHWA = 16777615, - GDK_Sabovedot = 16784992, - GDK_Sacute = 422, - GDK_Save = 269025143, - GDK_Scaron = 425, - GDK_Scedilla = 426, - GDK_Scircumflex = 734, - GDK_ScreenSaver = 269025069, - GDK_ScrollClick = 269025146, - GDK_ScrollDown = 269025145, - GDK_ScrollUp = 269025144, - GDK_Scroll_Lock = 65300, - GDK_Search = 269025051, - GDK_Select = 65376, - GDK_SelectButton = 269025184, - GDK_Send = 269025147, - GDK_Serbian_DJE = 1713, - GDK_Serbian_DZE = 1727, - GDK_Serbian_JE = 1720, - GDK_Serbian_LJE = 1721, - GDK_Serbian_NJE = 1722, - GDK_Serbian_TSHE = 1723, - GDK_Serbian_dje = 1697, - GDK_Serbian_dze = 1711, - GDK_Serbian_je = 1704, - GDK_Serbian_lje = 1705, - GDK_Serbian_nje = 1706, - GDK_Serbian_tshe = 1707, - GDK_Shift_L = 65505, - GDK_Shift_Lock = 65510, - GDK_Shift_R = 65506, - GDK_Shop = 269025078, - GDK_SingleCandidate = 65340, - GDK_Sinh_a = 16780677, - GDK_Sinh_aa = 16780678, - GDK_Sinh_aa2 = 16780751, - GDK_Sinh_ae = 16780679, - GDK_Sinh_ae2 = 16780752, - GDK_Sinh_aee = 16780680, - GDK_Sinh_aee2 = 16780753, - GDK_Sinh_ai = 16780691, - GDK_Sinh_ai2 = 16780763, - GDK_Sinh_al = 16780746, - GDK_Sinh_au = 16780694, - GDK_Sinh_au2 = 16780766, - GDK_Sinh_ba = 16780726, - GDK_Sinh_bha = 16780727, - GDK_Sinh_ca = 16780704, - GDK_Sinh_cha = 16780705, - GDK_Sinh_dda = 16780713, - GDK_Sinh_ddha = 16780714, - GDK_Sinh_dha = 16780719, - GDK_Sinh_dhha = 16780720, - GDK_Sinh_e = 16780689, - GDK_Sinh_e2 = 16780761, - GDK_Sinh_ee = 16780690, - GDK_Sinh_ee2 = 16780762, - GDK_Sinh_fa = 16780742, - GDK_Sinh_ga = 16780700, - GDK_Sinh_gha = 16780701, - GDK_Sinh_h2 = 16780675, - GDK_Sinh_ha = 16780740, - GDK_Sinh_i = 16780681, - GDK_Sinh_i2 = 16780754, - GDK_Sinh_ii = 16780682, - GDK_Sinh_ii2 = 16780755, - GDK_Sinh_ja = 16780706, - GDK_Sinh_jha = 16780707, - GDK_Sinh_jnya = 16780709, - GDK_Sinh_ka = 16780698, - GDK_Sinh_kha = 16780699, - GDK_Sinh_kunddaliya = 16780788, - GDK_Sinh_la = 16780733, - GDK_Sinh_lla = 16780741, - GDK_Sinh_lu = 16780687, - GDK_Sinh_lu2 = 16780767, - GDK_Sinh_luu = 16780688, - GDK_Sinh_luu2 = 16780787, - GDK_Sinh_ma = 16780728, - GDK_Sinh_mba = 16780729, - GDK_Sinh_na = 16780721, - GDK_Sinh_ndda = 16780716, - GDK_Sinh_ndha = 16780723, - GDK_Sinh_ng = 16780674, - GDK_Sinh_ng2 = 16780702, - GDK_Sinh_nga = 16780703, - GDK_Sinh_nja = 16780710, - GDK_Sinh_nna = 16780715, - GDK_Sinh_nya = 16780708, - GDK_Sinh_o = 16780692, - GDK_Sinh_o2 = 16780764, - GDK_Sinh_oo = 16780693, - GDK_Sinh_oo2 = 16780765, - GDK_Sinh_pa = 16780724, - GDK_Sinh_pha = 16780725, - GDK_Sinh_ra = 16780731, - GDK_Sinh_ri = 16780685, - GDK_Sinh_rii = 16780686, - GDK_Sinh_ru2 = 16780760, - GDK_Sinh_ruu2 = 16780786, - GDK_Sinh_sa = 16780739, - GDK_Sinh_sha = 16780737, - GDK_Sinh_ssha = 16780738, - GDK_Sinh_tha = 16780717, - GDK_Sinh_thha = 16780718, - GDK_Sinh_tta = 16780711, - GDK_Sinh_ttha = 16780712, - GDK_Sinh_u = 16780683, - GDK_Sinh_u2 = 16780756, - GDK_Sinh_uu = 16780684, - GDK_Sinh_uu2 = 16780758, - GDK_Sinh_va = 16780736, - GDK_Sinh_ya = 16780730, - GDK_Sleep = 269025071, - GDK_SlowKeys_Enable = 65139, - GDK_Spell = 269025148, - GDK_SplitScreen = 269025149, - GDK_Standby = 269025040, - GDK_Start = 269025050, - GDK_StickyKeys_Enable = 65141, - GDK_Stop = 269025064, - GDK_Subtitle = 269025178, - GDK_Super_L = 65515, - GDK_Super_R = 65516, - GDK_Support = 269025150, - GDK_Suspend = 269025191, - GDK_Switch_VT_1 = 269024769, - GDK_Switch_VT_10 = 269024778, - GDK_Switch_VT_11 = 269024779, - GDK_Switch_VT_12 = 269024780, - GDK_Switch_VT_2 = 269024770, - GDK_Switch_VT_3 = 269024771, - GDK_Switch_VT_4 = 269024772, - GDK_Switch_VT_5 = 269024773, - GDK_Switch_VT_6 = 269024774, - GDK_Switch_VT_7 = 269024775, - GDK_Switch_VT_8 = 269024776, - GDK_Switch_VT_9 = 269024777, - GDK_Sys_Req = 65301, - GDK_T = 84, - GDK_THORN = 222, - GDK_Tab = 65289, - GDK_Tabovedot = 16785002, - GDK_TaskPane = 269025151, - GDK_Tcaron = 427, - GDK_Tcedilla = 478, - GDK_Terminal = 269025152, - GDK_Terminate_Server = 65237, - GDK_Thai_baht = 3551, - GDK_Thai_bobaimai = 3514, - GDK_Thai_chochan = 3496, - GDK_Thai_chochang = 3498, - GDK_Thai_choching = 3497, - GDK_Thai_chochoe = 3500, - GDK_Thai_dochada = 3502, - GDK_Thai_dodek = 3508, - GDK_Thai_fofa = 3517, - GDK_Thai_fofan = 3519, - GDK_Thai_hohip = 3531, - GDK_Thai_honokhuk = 3534, - GDK_Thai_khokhai = 3490, - GDK_Thai_khokhon = 3493, - GDK_Thai_khokhuat = 3491, - GDK_Thai_khokhwai = 3492, - GDK_Thai_khorakhang = 3494, - GDK_Thai_kokai = 3489, - GDK_Thai_lakkhangyao = 3557, - GDK_Thai_lekchet = 3575, - GDK_Thai_lekha = 3573, - GDK_Thai_lekhok = 3574, - GDK_Thai_lekkao = 3577, - GDK_Thai_leknung = 3569, - GDK_Thai_lekpaet = 3576, - GDK_Thai_leksam = 3571, - GDK_Thai_leksi = 3572, - GDK_Thai_leksong = 3570, - GDK_Thai_leksun = 3568, - GDK_Thai_lochula = 3532, - GDK_Thai_loling = 3525, - GDK_Thai_lu = 3526, - GDK_Thai_maichattawa = 3563, - GDK_Thai_maiek = 3560, - GDK_Thai_maihanakat = 3537, - GDK_Thai_maihanakat_maitho = 3550, - GDK_Thai_maitaikhu = 3559, - GDK_Thai_maitho = 3561, - GDK_Thai_maitri = 3562, - GDK_Thai_maiyamok = 3558, - GDK_Thai_moma = 3521, - GDK_Thai_ngongu = 3495, - GDK_Thai_nikhahit = 3565, - GDK_Thai_nonen = 3507, - GDK_Thai_nonu = 3513, - GDK_Thai_oang = 3533, - GDK_Thai_paiyannoi = 3535, - GDK_Thai_phinthu = 3546, - GDK_Thai_phophan = 3518, - GDK_Thai_phophung = 3516, - GDK_Thai_phosamphao = 3520, - GDK_Thai_popla = 3515, - GDK_Thai_rorua = 3523, - GDK_Thai_ru = 3524, - GDK_Thai_saraa = 3536, - GDK_Thai_saraaa = 3538, - GDK_Thai_saraae = 3553, - GDK_Thai_saraaimaimalai = 3556, - GDK_Thai_saraaimaimuan = 3555, - GDK_Thai_saraam = 3539, - GDK_Thai_sarae = 3552, - GDK_Thai_sarai = 3540, - GDK_Thai_saraii = 3541, - GDK_Thai_sarao = 3554, - GDK_Thai_sarau = 3544, - GDK_Thai_saraue = 3542, - GDK_Thai_sarauee = 3543, - GDK_Thai_sarauu = 3545, - GDK_Thai_sorusi = 3529, - GDK_Thai_sosala = 3528, - GDK_Thai_soso = 3499, - GDK_Thai_sosua = 3530, - GDK_Thai_thanthakhat = 3564, - GDK_Thai_thonangmontho = 3505, - GDK_Thai_thophuthao = 3506, - GDK_Thai_thothahan = 3511, - GDK_Thai_thothan = 3504, - GDK_Thai_thothong = 3512, - GDK_Thai_thothung = 3510, - GDK_Thai_topatak = 3503, - GDK_Thai_totao = 3509, - GDK_Thai_wowaen = 3527, - GDK_Thai_yoyak = 3522, - GDK_Thai_yoying = 3501, - GDK_Thorn = 222, - GDK_Time = 269025183, - GDK_ToDoList = 269025055, - GDK_Tools = 269025153, - GDK_TopMenu = 269025186, - GDK_TouchpadOff = 269025201, - GDK_TouchpadOn = 269025200, - GDK_TouchpadToggle = 269025193, - GDK_Touroku = 65323, - GDK_Travel = 269025154, - GDK_Tslash = 940, - GDK_U = 85, - GDK_UWB = 269025174, - GDK_Uacute = 218, - GDK_Ubelowdot = 16785124, - GDK_Ubreve = 733, - GDK_Ucircumflex = 219, - GDK_Udiaeresis = 220, - GDK_Udoubleacute = 475, - GDK_Ugrave = 217, - GDK_Uhook = 16785126, - GDK_Uhorn = 16777647, - GDK_Uhornacute = 16785128, - GDK_Uhornbelowdot = 16785136, - GDK_Uhorngrave = 16785130, - GDK_Uhornhook = 16785132, - GDK_Uhorntilde = 16785134, - GDK_Ukrainian_GHE_WITH_UPTURN = 1725, - GDK_Ukrainian_I = 1718, - GDK_Ukrainian_IE = 1716, - GDK_Ukrainian_YI = 1719, - GDK_Ukrainian_ghe_with_upturn = 1709, - GDK_Ukrainian_i = 1702, - GDK_Ukrainian_ie = 1700, - GDK_Ukrainian_yi = 1703, - GDK_Ukranian_I = 1718, - GDK_Ukranian_JE = 1716, - GDK_Ukranian_YI = 1719, - GDK_Ukranian_i = 1702, - GDK_Ukranian_je = 1700, - GDK_Ukranian_yi = 1703, - GDK_Umacron = 990, - GDK_Undo = 65381, - GDK_Ungrab = 269024800, - GDK_Uogonek = 985, - GDK_Up = 65362, - GDK_Uring = 473, - GDK_User1KB = 269025157, - GDK_User2KB = 269025158, - GDK_UserPB = 269025156, - GDK_Utilde = 989, - GDK_V = 86, - GDK_VendorHome = 269025076, - GDK_Video = 269025159, - GDK_View = 269025185, - GDK_VoidSymbol = 16777215, - GDK_W = 87, - GDK_WLAN = 269025173, - GDK_WWAN = 269025204, - GDK_WWW = 269025070, - GDK_Wacute = 16785026, - GDK_WakeUp = 269025067, - GDK_Wcircumflex = 16777588, - GDK_Wdiaeresis = 16785028, - GDK_WebCam = 269025167, - GDK_Wgrave = 16785024, - GDK_WheelButton = 269025160, - GDK_WindowClear = 269025109, - GDK_WonSign = 16785577, - GDK_Word = 269025161, - GDK_X = 88, - GDK_Xabovedot = 16785034, - GDK_Xfer = 269025162, - GDK_Y = 89, - GDK_Yacute = 221, - GDK_Ybelowdot = 16785140, - GDK_Ycircumflex = 16777590, - GDK_Ydiaeresis = 5054, - GDK_Yellow = 269025189, - GDK_Ygrave = 16785138, - GDK_Yhook = 16785142, - GDK_Ytilde = 16785144, - GDK_Z = 90, - GDK_Zabovedot = 431, - GDK_Zacute = 428, - GDK_Zcaron = 430, - GDK_Zen_Koho = 65341, - GDK_Zenkaku = 65320, - GDK_Zenkaku_Hankaku = 65322, - GDK_ZoomIn = 269025163, - GDK_ZoomOut = 269025164, - GDK_Zstroke = 16777653, - GDK_a = 97, - GDK_aacute = 225, - GDK_abelowdot = 16785057, - GDK_abovedot = 511, - GDK_abreve = 483, - GDK_abreveacute = 16785071, - GDK_abrevebelowdot = 16785079, - GDK_abrevegrave = 16785073, - GDK_abrevehook = 16785075, - GDK_abrevetilde = 16785077, - GDK_acircumflex = 226, - GDK_acircumflexacute = 16785061, - GDK_acircumflexbelowdot = 16785069, - GDK_acircumflexgrave = 16785063, - GDK_acircumflexhook = 16785065, - GDK_acircumflextilde = 16785067, - GDK_acute = 180, - GDK_adiaeresis = 228, - GDK_ae = 230, - GDK_agrave = 224, - GDK_ahook = 16785059, - GDK_amacron = 992, - GDK_ampersand = 38, - GDK_aogonek = 433, - GDK_apostrophe = 39, - GDK_approxeq = 16785992, - GDK_approximate = 2248, - GDK_aring = 229, - GDK_asciicircum = 94, - GDK_asciitilde = 126, - GDK_asterisk = 42, - GDK_at = 64, - GDK_atilde = 227, - GDK_b = 98, - GDK_babovedot = 16784899, - GDK_backslash = 92, - GDK_ballotcross = 2804, - GDK_bar = 124, - GDK_because = 16785973, - GDK_blank = 2527, - GDK_botintegral = 2213, - GDK_botleftparens = 2220, - GDK_botleftsqbracket = 2216, - GDK_botleftsummation = 2226, - GDK_botrightparens = 2222, - GDK_botrightsqbracket = 2218, - GDK_botrightsummation = 2230, - GDK_bott = 2550, - GDK_botvertsummationconnector = 2228, - GDK_braceleft = 123, - GDK_braceright = 125, - GDK_bracketleft = 91, - GDK_bracketright = 93, - GDK_braille_blank = 16787456, - GDK_braille_dot_1 = 65521, - GDK_braille_dot_10 = 65530, - GDK_braille_dot_2 = 65522, - GDK_braille_dot_3 = 65523, - GDK_braille_dot_4 = 65524, - GDK_braille_dot_5 = 65525, - GDK_braille_dot_6 = 65526, - GDK_braille_dot_7 = 65527, - GDK_braille_dot_8 = 65528, - GDK_braille_dot_9 = 65529, - GDK_braille_dots_1 = 16787457, - GDK_braille_dots_12 = 16787459, - GDK_braille_dots_123 = 16787463, - GDK_braille_dots_1234 = 16787471, - GDK_braille_dots_12345 = 16787487, - GDK_braille_dots_123456 = 16787519, - GDK_braille_dots_1234567 = 16787583, - GDK_braille_dots_12345678 = 16787711, - GDK_braille_dots_1234568 = 16787647, - GDK_braille_dots_123457 = 16787551, - GDK_braille_dots_1234578 = 16787679, - GDK_braille_dots_123458 = 16787615, - GDK_braille_dots_12346 = 16787503, - GDK_braille_dots_123467 = 16787567, - GDK_braille_dots_1234678 = 16787695, - GDK_braille_dots_123468 = 16787631, - GDK_braille_dots_12347 = 16787535, - GDK_braille_dots_123478 = 16787663, - GDK_braille_dots_12348 = 16787599, - GDK_braille_dots_1235 = 16787479, - GDK_braille_dots_12356 = 16787511, - GDK_braille_dots_123567 = 16787575, - GDK_braille_dots_1235678 = 16787703, - GDK_braille_dots_123568 = 16787639, - GDK_braille_dots_12357 = 16787543, - GDK_braille_dots_123578 = 16787671, - GDK_braille_dots_12358 = 16787607, - GDK_braille_dots_1236 = 16787495, - GDK_braille_dots_12367 = 16787559, - GDK_braille_dots_123678 = 16787687, - GDK_braille_dots_12368 = 16787623, - GDK_braille_dots_1237 = 16787527, - GDK_braille_dots_12378 = 16787655, - GDK_braille_dots_1238 = 16787591, - GDK_braille_dots_124 = 16787467, - GDK_braille_dots_1245 = 16787483, - GDK_braille_dots_12456 = 16787515, - GDK_braille_dots_124567 = 16787579, - GDK_braille_dots_1245678 = 16787707, - GDK_braille_dots_124568 = 16787643, - GDK_braille_dots_12457 = 16787547, - GDK_braille_dots_124578 = 16787675, - GDK_braille_dots_12458 = 16787611, - GDK_braille_dots_1246 = 16787499, - GDK_braille_dots_12467 = 16787563, - GDK_braille_dots_124678 = 16787691, - GDK_braille_dots_12468 = 16787627, - GDK_braille_dots_1247 = 16787531, - GDK_braille_dots_12478 = 16787659, - GDK_braille_dots_1248 = 16787595, - GDK_braille_dots_125 = 16787475, - GDK_braille_dots_1256 = 16787507, - GDK_braille_dots_12567 = 16787571, - GDK_braille_dots_125678 = 16787699, - GDK_braille_dots_12568 = 16787635, - GDK_braille_dots_1257 = 16787539, - GDK_braille_dots_12578 = 16787667, - GDK_braille_dots_1258 = 16787603, - GDK_braille_dots_126 = 16787491, - GDK_braille_dots_1267 = 16787555, - GDK_braille_dots_12678 = 16787683, - GDK_braille_dots_1268 = 16787619, - GDK_braille_dots_127 = 16787523, - GDK_braille_dots_1278 = 16787651, - GDK_braille_dots_128 = 16787587, - GDK_braille_dots_13 = 16787461, - GDK_braille_dots_134 = 16787469, - GDK_braille_dots_1345 = 16787485, - GDK_braille_dots_13456 = 16787517, - GDK_braille_dots_134567 = 16787581, - GDK_braille_dots_1345678 = 16787709, - GDK_braille_dots_134568 = 16787645, - GDK_braille_dots_13457 = 16787549, - GDK_braille_dots_134578 = 16787677, - GDK_braille_dots_13458 = 16787613, - GDK_braille_dots_1346 = 16787501, - GDK_braille_dots_13467 = 16787565, - GDK_braille_dots_134678 = 16787693, - GDK_braille_dots_13468 = 16787629, - GDK_braille_dots_1347 = 16787533, - GDK_braille_dots_13478 = 16787661, - GDK_braille_dots_1348 = 16787597, - GDK_braille_dots_135 = 16787477, - GDK_braille_dots_1356 = 16787509, - GDK_braille_dots_13567 = 16787573, - GDK_braille_dots_135678 = 16787701, - GDK_braille_dots_13568 = 16787637, - GDK_braille_dots_1357 = 16787541, - GDK_braille_dots_13578 = 16787669, - GDK_braille_dots_1358 = 16787605, - GDK_braille_dots_136 = 16787493, - GDK_braille_dots_1367 = 16787557, - GDK_braille_dots_13678 = 16787685, - GDK_braille_dots_1368 = 16787621, - GDK_braille_dots_137 = 16787525, - GDK_braille_dots_1378 = 16787653, - GDK_braille_dots_138 = 16787589, - GDK_braille_dots_14 = 16787465, - GDK_braille_dots_145 = 16787481, - GDK_braille_dots_1456 = 16787513, - GDK_braille_dots_14567 = 16787577, - GDK_braille_dots_145678 = 16787705, - GDK_braille_dots_14568 = 16787641, - GDK_braille_dots_1457 = 16787545, - GDK_braille_dots_14578 = 16787673, - GDK_braille_dots_1458 = 16787609, - GDK_braille_dots_146 = 16787497, - GDK_braille_dots_1467 = 16787561, - GDK_braille_dots_14678 = 16787689, - GDK_braille_dots_1468 = 16787625, - GDK_braille_dots_147 = 16787529, - GDK_braille_dots_1478 = 16787657, - GDK_braille_dots_148 = 16787593, - GDK_braille_dots_15 = 16787473, - GDK_braille_dots_156 = 16787505, - GDK_braille_dots_1567 = 16787569, - GDK_braille_dots_15678 = 16787697, - GDK_braille_dots_1568 = 16787633, - GDK_braille_dots_157 = 16787537, - GDK_braille_dots_1578 = 16787665, - GDK_braille_dots_158 = 16787601, - GDK_braille_dots_16 = 16787489, - GDK_braille_dots_167 = 16787553, - GDK_braille_dots_1678 = 16787681, - GDK_braille_dots_168 = 16787617, - GDK_braille_dots_17 = 16787521, - GDK_braille_dots_178 = 16787649, - GDK_braille_dots_18 = 16787585, - GDK_braille_dots_2 = 16787458, - GDK_braille_dots_23 = 16787462, - GDK_braille_dots_234 = 16787470, - GDK_braille_dots_2345 = 16787486, - GDK_braille_dots_23456 = 16787518, - GDK_braille_dots_234567 = 16787582, - GDK_braille_dots_2345678 = 16787710, - GDK_braille_dots_234568 = 16787646, - GDK_braille_dots_23457 = 16787550, - GDK_braille_dots_234578 = 16787678, - GDK_braille_dots_23458 = 16787614, - GDK_braille_dots_2346 = 16787502, - GDK_braille_dots_23467 = 16787566, - GDK_braille_dots_234678 = 16787694, - GDK_braille_dots_23468 = 16787630, - GDK_braille_dots_2347 = 16787534, - GDK_braille_dots_23478 = 16787662, - GDK_braille_dots_2348 = 16787598, - GDK_braille_dots_235 = 16787478, - GDK_braille_dots_2356 = 16787510, - GDK_braille_dots_23567 = 16787574, - GDK_braille_dots_235678 = 16787702, - GDK_braille_dots_23568 = 16787638, - GDK_braille_dots_2357 = 16787542, - GDK_braille_dots_23578 = 16787670, - GDK_braille_dots_2358 = 16787606, - GDK_braille_dots_236 = 16787494, - GDK_braille_dots_2367 = 16787558, - GDK_braille_dots_23678 = 16787686, - GDK_braille_dots_2368 = 16787622, - GDK_braille_dots_237 = 16787526, - GDK_braille_dots_2378 = 16787654, - GDK_braille_dots_238 = 16787590, - GDK_braille_dots_24 = 16787466, - GDK_braille_dots_245 = 16787482, - GDK_braille_dots_2456 = 16787514, - GDK_braille_dots_24567 = 16787578, - GDK_braille_dots_245678 = 16787706, - GDK_braille_dots_24568 = 16787642, - GDK_braille_dots_2457 = 16787546, - GDK_braille_dots_24578 = 16787674, - GDK_braille_dots_2458 = 16787610, - GDK_braille_dots_246 = 16787498, - GDK_braille_dots_2467 = 16787562, - GDK_braille_dots_24678 = 16787690, - GDK_braille_dots_2468 = 16787626, - GDK_braille_dots_247 = 16787530, - GDK_braille_dots_2478 = 16787658, - GDK_braille_dots_248 = 16787594, - GDK_braille_dots_25 = 16787474, - GDK_braille_dots_256 = 16787506, - GDK_braille_dots_2567 = 16787570, - GDK_braille_dots_25678 = 16787698, - GDK_braille_dots_2568 = 16787634, - GDK_braille_dots_257 = 16787538, - GDK_braille_dots_2578 = 16787666, - GDK_braille_dots_258 = 16787602, - GDK_braille_dots_26 = 16787490, - GDK_braille_dots_267 = 16787554, - GDK_braille_dots_2678 = 16787682, - GDK_braille_dots_268 = 16787618, - GDK_braille_dots_27 = 16787522, - GDK_braille_dots_278 = 16787650, - GDK_braille_dots_28 = 16787586, - GDK_braille_dots_3 = 16787460, - GDK_braille_dots_34 = 16787468, - GDK_braille_dots_345 = 16787484, - GDK_braille_dots_3456 = 16787516, - GDK_braille_dots_34567 = 16787580, - GDK_braille_dots_345678 = 16787708, - GDK_braille_dots_34568 = 16787644, - GDK_braille_dots_3457 = 16787548, - GDK_braille_dots_34578 = 16787676, - GDK_braille_dots_3458 = 16787612, - GDK_braille_dots_346 = 16787500, - GDK_braille_dots_3467 = 16787564, - GDK_braille_dots_34678 = 16787692, - GDK_braille_dots_3468 = 16787628, - GDK_braille_dots_347 = 16787532, - GDK_braille_dots_3478 = 16787660, - GDK_braille_dots_348 = 16787596, - GDK_braille_dots_35 = 16787476, - GDK_braille_dots_356 = 16787508, - GDK_braille_dots_3567 = 16787572, - GDK_braille_dots_35678 = 16787700, - GDK_braille_dots_3568 = 16787636, - GDK_braille_dots_357 = 16787540, - GDK_braille_dots_3578 = 16787668, - GDK_braille_dots_358 = 16787604, - GDK_braille_dots_36 = 16787492, - GDK_braille_dots_367 = 16787556, - GDK_braille_dots_3678 = 16787684, - GDK_braille_dots_368 = 16787620, - GDK_braille_dots_37 = 16787524, - GDK_braille_dots_378 = 16787652, - GDK_braille_dots_38 = 16787588, - GDK_braille_dots_4 = 16787464, - GDK_braille_dots_45 = 16787480, - GDK_braille_dots_456 = 16787512, - GDK_braille_dots_4567 = 16787576, - GDK_braille_dots_45678 = 16787704, - GDK_braille_dots_4568 = 16787640, - GDK_braille_dots_457 = 16787544, - GDK_braille_dots_4578 = 16787672, - GDK_braille_dots_458 = 16787608, - GDK_braille_dots_46 = 16787496, - GDK_braille_dots_467 = 16787560, - GDK_braille_dots_4678 = 16787688, - GDK_braille_dots_468 = 16787624, - GDK_braille_dots_47 = 16787528, - GDK_braille_dots_478 = 16787656, - GDK_braille_dots_48 = 16787592, - GDK_braille_dots_5 = 16787472, - GDK_braille_dots_56 = 16787504, - GDK_braille_dots_567 = 16787568, - GDK_braille_dots_5678 = 16787696, - GDK_braille_dots_568 = 16787632, - GDK_braille_dots_57 = 16787536, - GDK_braille_dots_578 = 16787664, - GDK_braille_dots_58 = 16787600, - GDK_braille_dots_6 = 16787488, - GDK_braille_dots_67 = 16787552, - GDK_braille_dots_678 = 16787680, - GDK_braille_dots_68 = 16787616, - GDK_braille_dots_7 = 16787520, - GDK_braille_dots_78 = 16787648, - GDK_braille_dots_8 = 16787584, - GDK_breve = 418, - GDK_brokenbar = 166, - GDK_c = 99, - GDK_c_h = 65187, - GDK_cabovedot = 741, - GDK_cacute = 486, - GDK_careof = 2744, - GDK_caret = 2812, - GDK_caron = 439, - GDK_ccaron = 488, - GDK_ccedilla = 231, - GDK_ccircumflex = 742, - GDK_cedilla = 184, - GDK_cent = 162, - GDK_ch = 65184, - GDK_checkerboard = 2529, - GDK_checkmark = 2803, - GDK_circle = 3023, - GDK_club = 2796, - GDK_colon = 58, - GDK_comma = 44, - GDK_containsas = 16785931, - GDK_copyright = 169, - GDK_cr = 2532, - GDK_crossinglines = 2542, - GDK_cuberoot = 16785947, - GDK_currency = 164, - GDK_cursor = 2815, - GDK_d = 100, - GDK_dabovedot = 16784907, - GDK_dagger = 2801, - GDK_dcaron = 495, - GDK_dead_A = 65153, - GDK_dead_E = 65155, - GDK_dead_I = 65157, - GDK_dead_O = 65159, - GDK_dead_U = 65161, - GDK_dead_a = 65152, - GDK_dead_abovecomma = 65124, - GDK_dead_abovedot = 65110, - GDK_dead_abovereversedcomma = 65125, - GDK_dead_abovering = 65112, - GDK_dead_aboveverticalline = 65169, - GDK_dead_acute = 65105, - GDK_dead_belowbreve = 65131, - GDK_dead_belowcircumflex = 65129, - GDK_dead_belowcomma = 65134, - GDK_dead_belowdiaeresis = 65132, - GDK_dead_belowdot = 65120, - GDK_dead_belowmacron = 65128, - GDK_dead_belowring = 65127, - GDK_dead_belowtilde = 65130, - GDK_dead_belowverticalline = 65170, - GDK_dead_breve = 65109, - GDK_dead_capital_schwa = 65163, - GDK_dead_caron = 65114, - GDK_dead_cedilla = 65115, - GDK_dead_circumflex = 65106, - GDK_dead_currency = 65135, - GDK_dead_dasia = 65125, - GDK_dead_diaeresis = 65111, - GDK_dead_doubleacute = 65113, - GDK_dead_doublegrave = 65126, - GDK_dead_e = 65154, - GDK_dead_grave = 65104, - GDK_dead_greek = 65164, - GDK_dead_hook = 65121, - GDK_dead_horn = 65122, - GDK_dead_i = 65156, - GDK_dead_invertedbreve = 65133, - GDK_dead_iota = 65117, - GDK_dead_longsolidusoverlay = 65171, - GDK_dead_lowline = 65168, - GDK_dead_macron = 65108, - GDK_dead_o = 65158, - GDK_dead_ogonek = 65116, - GDK_dead_perispomeni = 65107, - GDK_dead_psili = 65124, - GDK_dead_semivoiced_sound = 65119, - GDK_dead_small_schwa = 65162, - GDK_dead_stroke = 65123, - GDK_dead_tilde = 65107, - GDK_dead_u = 65160, - GDK_dead_voiced_sound = 65118, - GDK_decimalpoint = 2749, - GDK_degree = 176, - GDK_diaeresis = 168, - GDK_diamond = 2797, - GDK_digitspace = 2725, - GDK_dintegral = 16785964, - GDK_division = 247, - GDK_dollar = 36, - GDK_doubbaselinedot = 2735, - GDK_doubleacute = 445, - GDK_doubledagger = 2802, - GDK_doublelowquotemark = 2814, - GDK_downarrow = 2302, - GDK_downcaret = 2984, - GDK_downshoe = 3030, - GDK_downstile = 3012, - GDK_downtack = 3010, - GDK_dstroke = 496, - GDK_e = 101, - GDK_eabovedot = 1004, - GDK_eacute = 233, - GDK_ebelowdot = 16785081, - GDK_ecaron = 492, - GDK_ecircumflex = 234, - GDK_ecircumflexacute = 16785087, - GDK_ecircumflexbelowdot = 16785095, - GDK_ecircumflexgrave = 16785089, - GDK_ecircumflexhook = 16785091, - GDK_ecircumflextilde = 16785093, - GDK_ediaeresis = 235, - GDK_egrave = 232, - GDK_ehook = 16785083, - GDK_eightsubscript = 16785544, - GDK_eightsuperior = 16785528, - GDK_elementof = 16785928, - GDK_ellipsis = 2734, - GDK_em3space = 2723, - GDK_em4space = 2724, - GDK_emacron = 954, - GDK_emdash = 2729, - GDK_emfilledcircle = 2782, - GDK_emfilledrect = 2783, - GDK_emopencircle = 2766, - GDK_emopenrectangle = 2767, - GDK_emptyset = 16785925, - GDK_emspace = 2721, - GDK_endash = 2730, - GDK_enfilledcircbullet = 2790, - GDK_enfilledsqbullet = 2791, - GDK_eng = 959, - GDK_enopencircbullet = 2784, - GDK_enopensquarebullet = 2785, - GDK_enspace = 2722, - GDK_eogonek = 490, - GDK_equal = 61, - GDK_eth = 240, - GDK_etilde = 16785085, - GDK_exclam = 33, - GDK_exclamdown = 161, - GDK_ezh = 16777874, - GDK_f = 102, - GDK_fabovedot = 16784927, - GDK_femalesymbol = 2808, - GDK_ff = 2531, - GDK_figdash = 2747, - GDK_filledlefttribullet = 2780, - GDK_filledrectbullet = 2779, - GDK_filledrighttribullet = 2781, - GDK_filledtribulletdown = 2793, - GDK_filledtribulletup = 2792, - GDK_fiveeighths = 2757, - GDK_fivesixths = 2743, - GDK_fivesubscript = 16785541, - GDK_fivesuperior = 16785525, - GDK_fourfifths = 2741, - GDK_foursubscript = 16785540, - GDK_foursuperior = 16785524, - GDK_fourthroot = 16785948, - GDK_function = 2294, - GDK_g = 103, - GDK_gabovedot = 757, - GDK_gbreve = 699, - GDK_gcaron = 16777703, - GDK_gcedilla = 955, - GDK_gcircumflex = 760, - GDK_grave = 96, - GDK_greater = 62, - GDK_greaterthanequal = 2238, - GDK_guillemotleft = 171, - GDK_guillemotright = 187, - GDK_h = 104, - GDK_hairspace = 2728, - GDK_hcircumflex = 694, - GDK_heart = 2798, - GDK_hebrew_aleph = 3296, - GDK_hebrew_ayin = 3314, - GDK_hebrew_bet = 3297, - GDK_hebrew_beth = 3297, - GDK_hebrew_chet = 3303, - GDK_hebrew_dalet = 3299, - GDK_hebrew_daleth = 3299, - GDK_hebrew_doublelowline = 3295, - GDK_hebrew_finalkaph = 3306, - GDK_hebrew_finalmem = 3309, - GDK_hebrew_finalnun = 3311, - GDK_hebrew_finalpe = 3315, - GDK_hebrew_finalzade = 3317, - GDK_hebrew_finalzadi = 3317, - GDK_hebrew_gimel = 3298, - GDK_hebrew_gimmel = 3298, - GDK_hebrew_he = 3300, - GDK_hebrew_het = 3303, - GDK_hebrew_kaph = 3307, - GDK_hebrew_kuf = 3319, - GDK_hebrew_lamed = 3308, - GDK_hebrew_mem = 3310, - GDK_hebrew_nun = 3312, - GDK_hebrew_pe = 3316, - GDK_hebrew_qoph = 3319, - GDK_hebrew_resh = 3320, - GDK_hebrew_samech = 3313, - GDK_hebrew_samekh = 3313, - GDK_hebrew_shin = 3321, - GDK_hebrew_taf = 3322, - GDK_hebrew_taw = 3322, - GDK_hebrew_tet = 3304, - GDK_hebrew_teth = 3304, - GDK_hebrew_waw = 3301, - GDK_hebrew_yod = 3305, - GDK_hebrew_zade = 3318, - GDK_hebrew_zadi = 3318, - GDK_hebrew_zain = 3302, - GDK_hebrew_zayin = 3302, - GDK_hexagram = 2778, - GDK_horizconnector = 2211, - GDK_horizlinescan1 = 2543, - GDK_horizlinescan3 = 2544, - GDK_horizlinescan5 = 2545, - GDK_horizlinescan7 = 2546, - GDK_horizlinescan9 = 2547, - GDK_hstroke = 689, - GDK_ht = 2530, - GDK_hyphen = 173, - GDK_i = 105, - GDK_iTouch = 269025120, - GDK_iacute = 237, - GDK_ibelowdot = 16785099, - GDK_ibreve = 16777517, - GDK_icircumflex = 238, - GDK_identical = 2255, - GDK_idiaeresis = 239, - GDK_idotless = 697, - GDK_ifonlyif = 2253, - GDK_igrave = 236, - GDK_ihook = 16785097, - GDK_imacron = 1007, - GDK_implies = 2254, - GDK_includedin = 2266, - GDK_includes = 2267, - GDK_infinity = 2242, - GDK_integral = 2239, - GDK_intersection = 2268, - GDK_iogonek = 999, - GDK_itilde = 949, - GDK_j = 106, - GDK_jcircumflex = 700, - GDK_jot = 3018, - GDK_k = 107, - GDK_kana_A = 1201, - GDK_kana_CHI = 1217, - GDK_kana_E = 1204, - GDK_kana_FU = 1228, - GDK_kana_HA = 1226, - GDK_kana_HE = 1229, - GDK_kana_HI = 1227, - GDK_kana_HO = 1230, - GDK_kana_HU = 1228, - GDK_kana_I = 1202, - GDK_kana_KA = 1206, - GDK_kana_KE = 1209, - GDK_kana_KI = 1207, - GDK_kana_KO = 1210, - GDK_kana_KU = 1208, - GDK_kana_MA = 1231, - GDK_kana_ME = 1234, - GDK_kana_MI = 1232, - GDK_kana_MO = 1235, - GDK_kana_MU = 1233, - GDK_kana_N = 1245, - GDK_kana_NA = 1221, - GDK_kana_NE = 1224, - GDK_kana_NI = 1222, - GDK_kana_NO = 1225, - GDK_kana_NU = 1223, - GDK_kana_O = 1205, - GDK_kana_RA = 1239, - GDK_kana_RE = 1242, - GDK_kana_RI = 1240, - GDK_kana_RO = 1243, - GDK_kana_RU = 1241, - GDK_kana_SA = 1211, - GDK_kana_SE = 1214, - GDK_kana_SHI = 1212, - GDK_kana_SO = 1215, - GDK_kana_SU = 1213, - GDK_kana_TA = 1216, - GDK_kana_TE = 1219, - GDK_kana_TI = 1217, - GDK_kana_TO = 1220, - GDK_kana_TSU = 1218, - GDK_kana_TU = 1218, - GDK_kana_U = 1203, - GDK_kana_WA = 1244, - GDK_kana_WO = 1190, - GDK_kana_YA = 1236, - GDK_kana_YO = 1238, - GDK_kana_YU = 1237, - GDK_kana_a = 1191, - GDK_kana_closingbracket = 1187, - GDK_kana_comma = 1188, - GDK_kana_conjunctive = 1189, - GDK_kana_e = 1194, - GDK_kana_fullstop = 1185, - GDK_kana_i = 1192, - GDK_kana_middledot = 1189, - GDK_kana_o = 1195, - GDK_kana_openingbracket = 1186, - GDK_kana_switch = 65406, - GDK_kana_tsu = 1199, - GDK_kana_tu = 1199, - GDK_kana_u = 1193, - GDK_kana_ya = 1196, - GDK_kana_yo = 1198, - GDK_kana_yu = 1197, - GDK_kappa = 930, - GDK_kcedilla = 1011, - GDK_kra = 930, - GDK_l = 108, - GDK_lacute = 485, - GDK_latincross = 2777, - GDK_lbelowdot = 16784951, - GDK_lcaron = 437, - GDK_lcedilla = 950, - GDK_leftanglebracket = 2748, - GDK_leftarrow = 2299, - GDK_leftcaret = 2979, - GDK_leftdoublequotemark = 2770, - GDK_leftmiddlecurlybrace = 2223, - GDK_leftopentriangle = 2764, - GDK_leftpointer = 2794, - GDK_leftradical = 2209, - GDK_leftshoe = 3034, - GDK_leftsinglequotemark = 2768, - GDK_leftt = 2548, - GDK_lefttack = 3036, - GDK_less = 60, - GDK_lessthanequal = 2236, - GDK_lf = 2533, - GDK_logicaland = 2270, - GDK_logicalor = 2271, - GDK_lowleftcorner = 2541, - GDK_lowrightcorner = 2538, - GDK_lstroke = 435, - GDK_m = 109, - GDK_mabovedot = 16784961, - GDK_macron = 175, - GDK_malesymbol = 2807, - GDK_maltesecross = 2800, - GDK_marker = 2751, - GDK_masculine = 186, - GDK_minus = 45, - GDK_minutes = 2774, - GDK_mu = 181, - GDK_multiply = 215, - GDK_musicalflat = 2806, - GDK_musicalsharp = 2805, - GDK_n = 110, - GDK_nabla = 2245, - GDK_nacute = 497, - GDK_ncaron = 498, - GDK_ncedilla = 1009, - GDK_ninesubscript = 16785545, - GDK_ninesuperior = 16785529, - GDK_nl = 2536, - GDK_nobreakspace = 160, - GDK_notapproxeq = 16785991, - GDK_notelementof = 16785929, - GDK_notequal = 2237, - GDK_notidentical = 16786018, - GDK_notsign = 172, - GDK_ntilde = 241, - GDK_numbersign = 35, - GDK_numerosign = 1712, - GDK_o = 111, - GDK_oacute = 243, - GDK_obarred = 16777845, - GDK_obelowdot = 16785101, - GDK_ocaron = 16777682, - GDK_ocircumflex = 244, - GDK_ocircumflexacute = 16785105, - GDK_ocircumflexbelowdot = 16785113, - GDK_ocircumflexgrave = 16785107, - GDK_ocircumflexhook = 16785109, - GDK_ocircumflextilde = 16785111, - GDK_odiaeresis = 246, - GDK_odoubleacute = 501, - GDK_oe = 5053, - GDK_ogonek = 434, - GDK_ograve = 242, - GDK_ohook = 16785103, - GDK_ohorn = 16777633, - GDK_ohornacute = 16785115, - GDK_ohornbelowdot = 16785123, - GDK_ohorngrave = 16785117, - GDK_ohornhook = 16785119, - GDK_ohorntilde = 16785121, - GDK_omacron = 1010, - GDK_oneeighth = 2755, - GDK_onefifth = 2738, - GDK_onehalf = 189, - GDK_onequarter = 188, - GDK_onesixth = 2742, - GDK_onesubscript = 16785537, - GDK_onesuperior = 185, - GDK_onethird = 2736, - GDK_ooblique = 248, - GDK_openrectbullet = 2786, - GDK_openstar = 2789, - GDK_opentribulletdown = 2788, - GDK_opentribulletup = 2787, - GDK_ordfeminine = 170, - GDK_oslash = 248, - GDK_otilde = 245, - GDK_overbar = 3008, - GDK_overline = 1150, - GDK_p = 112, - GDK_pabovedot = 16784983, - GDK_paragraph = 182, - GDK_parenleft = 40, - GDK_parenright = 41, - GDK_partdifferential = 16785922, - GDK_partialderivative = 2287, - GDK_percent = 37, - GDK_period = 46, - GDK_periodcentered = 183, - GDK_permille = 2773, - GDK_phonographcopyright = 2811, - GDK_plus = 43, - GDK_plusminus = 177, - GDK_prescription = 2772, - GDK_prolongedsound = 1200, - GDK_punctspace = 2726, - GDK_q = 113, - GDK_quad = 3020, - GDK_question = 63, - GDK_questiondown = 191, - GDK_quotedbl = 34, - GDK_quoteleft = 96, - GDK_quoteright = 39, - GDK_r = 114, - GDK_racute = 480, - GDK_radical = 2262, - GDK_rcaron = 504, - GDK_rcedilla = 947, - GDK_registered = 174, - GDK_rightanglebracket = 2750, - GDK_rightarrow = 2301, - GDK_rightcaret = 2982, - GDK_rightdoublequotemark = 2771, - GDK_rightmiddlecurlybrace = 2224, - GDK_rightmiddlesummation = 2231, - GDK_rightopentriangle = 2765, - GDK_rightpointer = 2795, - GDK_rightshoe = 3032, - GDK_rightsinglequotemark = 2769, - GDK_rightt = 2549, - GDK_righttack = 3068, - GDK_s = 115, - GDK_sabovedot = 16784993, - GDK_sacute = 438, - GDK_scaron = 441, - GDK_scedilla = 442, - GDK_schwa = 16777817, - GDK_scircumflex = 766, - GDK_script_switch = 65406, - GDK_seconds = 2775, - GDK_section = 167, - GDK_semicolon = 59, - GDK_semivoicedsound = 1247, - GDK_seveneighths = 2758, - GDK_sevensubscript = 16785543, - GDK_sevensuperior = 16785527, - GDK_signaturemark = 2762, - GDK_signifblank = 2732, - GDK_similarequal = 2249, - GDK_singlelowquotemark = 2813, - GDK_sixsubscript = 16785542, - GDK_sixsuperior = 16785526, - GDK_slash = 47, - GDK_soliddiamond = 2528, - GDK_space = 32, - GDK_squareroot = 16785946, - GDK_ssharp = 223, - GDK_sterling = 163, - GDK_stricteq = 16786019, - GDK_t = 116, - GDK_tabovedot = 16785003, - GDK_tcaron = 443, - GDK_tcedilla = 510, - GDK_telephone = 2809, - GDK_telephonerecorder = 2810, - GDK_therefore = 2240, - GDK_thinspace = 2727, - GDK_thorn = 254, - GDK_threeeighths = 2756, - GDK_threefifths = 2740, - GDK_threequarters = 190, - GDK_threesubscript = 16785539, - GDK_threesuperior = 179, - GDK_tintegral = 16785965, - GDK_topintegral = 2212, - GDK_topleftparens = 2219, - GDK_topleftradical = 2210, - GDK_topleftsqbracket = 2215, - GDK_topleftsummation = 2225, - GDK_toprightparens = 2221, - GDK_toprightsqbracket = 2217, - GDK_toprightsummation = 2229, - GDK_topt = 2551, - GDK_topvertsummationconnector = 2227, - GDK_trademark = 2761, - GDK_trademarkincircle = 2763, - GDK_tslash = 956, - GDK_twofifths = 2739, - GDK_twosubscript = 16785538, - GDK_twosuperior = 178, - GDK_twothirds = 2737, - GDK_u = 117, - GDK_uacute = 250, - GDK_ubelowdot = 16785125, - GDK_ubreve = 765, - GDK_ucircumflex = 251, - GDK_udiaeresis = 252, - GDK_udoubleacute = 507, - GDK_ugrave = 249, - GDK_uhook = 16785127, - GDK_uhorn = 16777648, - GDK_uhornacute = 16785129, - GDK_uhornbelowdot = 16785137, - GDK_uhorngrave = 16785131, - GDK_uhornhook = 16785133, - GDK_uhorntilde = 16785135, - GDK_umacron = 1022, - GDK_underbar = 3014, - GDK_underscore = 95, - GDK_union = 2269, - GDK_uogonek = 1017, - GDK_uparrow = 2300, - GDK_upcaret = 2985, - GDK_upleftcorner = 2540, - GDK_uprightcorner = 2539, - GDK_upshoe = 3011, - GDK_upstile = 3027, - GDK_uptack = 3022, - GDK_uring = 505, - GDK_utilde = 1021, - GDK_v = 118, - GDK_variation = 2241, - GDK_vertbar = 2552, - GDK_vertconnector = 2214, - GDK_voicedsound = 1246, - GDK_vt = 2537, - GDK_w = 119, - GDK_wacute = 16785027, - GDK_wcircumflex = 16777589, - GDK_wdiaeresis = 16785029, - GDK_wgrave = 16785025, - GDK_x = 120, - GDK_xabovedot = 16785035, - GDK_y = 121, - GDK_yacute = 253, - GDK_ybelowdot = 16785141, - GDK_ycircumflex = 16777591, - GDK_ydiaeresis = 255, - GDK_yen = 165, - GDK_ygrave = 16785139, - GDK_yhook = 16785143, - GDK_ytilde = 16785145, - GDK_z = 122, - GDK_zabovedot = 447, - GDK_zacute = 444, - GDK_zcaron = 446, - GDK_zerosubscript = 16785536, - GDK_zerosuperior = 16785520, - GDK_zstroke = 16777654, -} -alias Keysyms = GdkKeysyms; diff --git a/generated/gtkd/gdk/MemoryTexture.d b/generated/gtkd/gdk/MemoryTexture.d deleted file mode 100644 index 5501b40e0..000000000 --- a/generated/gtkd/gdk/MemoryTexture.d +++ /dev/null @@ -1,101 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.MemoryTexture; - -private import gdk.Texture; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * A `GdkTexture` representing image data in memory. - */ -public class MemoryTexture : Texture -{ - /** the main Gtk struct */ - protected GdkMemoryTexture* gdkMemoryTexture; - - /** Get the main Gtk struct */ - public GdkMemoryTexture* getMemoryTextureStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkMemoryTexture; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkMemoryTexture; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkMemoryTexture* gdkMemoryTexture, bool ownedRef = false) - { - this.gdkMemoryTexture = gdkMemoryTexture; - super(cast(GdkTexture*)gdkMemoryTexture, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_memory_texture_get_type(); - } - - /** - * Creates a new texture for a blob of image data. - * - * The `GBytes` must contain @stride x @height pixels - * in the given format. - * - * Params: - * width = the width of the texture - * height = the height of the texture - * format = the format of the data - * bytes = the `GBytes` containing the pixel data - * stride = rowstride for the data - * - * Returns: A newly-created `GdkTexture` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int width, int height, GdkMemoryFormat format, Bytes bytes, size_t stride) - { - auto __p = gdk_memory_texture_new(width, height, format, (bytes is null) ? null : bytes.getBytesStruct(), stride); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkMemoryTexture*) __p, true); - } -} diff --git a/generated/gtkd/gdk/MonitorGdk.d b/generated/gtkd/gdk/MonitorGdk.d deleted file mode 100644 index 6feb71c45..000000000 --- a/generated/gtkd/gdk/MonitorGdk.d +++ /dev/null @@ -1,233 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.MonitorGdk; - -private import gdk.Display; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * `GdkMonitor` objects represent the individual outputs that are - * associated with a `GdkDisplay`. - * - * `GdkDisplay` keeps a `GListModel` to enumerate and monitor - * monitors with [method@Gdk.Display.get_monitors]. You can use - * [method@Gdk.Display.get_monitor_at_surface] to find a particular - * monitor. - */ -public class MonitorGdk : ObjectG -{ - /** the main Gtk struct */ - protected GdkMonitor* gdkMonitor; - - /** Get the main Gtk struct */ - public GdkMonitor* getMonitorGdkStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkMonitor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkMonitor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkMonitor* gdkMonitor, bool ownedRef = false) - { - this.gdkMonitor = gdkMonitor; - super(cast(GObject*)gdkMonitor, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_monitor_get_type(); - } - - /** - * Gets the name of the monitor's connector, if available. - * - * Returns: the name of the connector - */ - public string getConnector() - { - return Str.toString(gdk_monitor_get_connector(gdkMonitor)); - } - - /** - * Gets the display that this monitor belongs to. - * - * Returns: the display - */ - public Display getDisplay() - { - auto __p = gdk_monitor_get_display(gdkMonitor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Retrieves the size and position of the monitor within the - * display coordinate space. - * - * The returned geometry is in ”application pixels”, not in - * ”device pixels” (see [method@Gdk.Monitor.get_scale_factor]). - * - * Params: - * geometry = a `GdkRectangle` to be filled with the monitor geometry - */ - public void getGeometry(out GdkRectangle geometry) - { - gdk_monitor_get_geometry(gdkMonitor, &geometry); - } - - /** - * Gets the height in millimeters of the monitor. - * - * Returns: the physical height of the monitor - */ - public int getHeightMm() - { - return gdk_monitor_get_height_mm(gdkMonitor); - } - - /** - * Gets the name or PNP ID of the monitor's manufacturer. - * - * Note that this value might also vary depending on actual - * display backend. - * - * The PNP ID registry is located at - * [https://uefi.org/pnp_id_list](https://uefi.org/pnp_id_list). - * - * Returns: the name of the manufacturer, - * or %NULL - */ - public string getManufacturer() - { - return Str.toString(gdk_monitor_get_manufacturer(gdkMonitor)); - } - - /** - * Gets the string identifying the monitor model, if available. - * - * Returns: the monitor model, or %NULL - */ - public string getModel() - { - return Str.toString(gdk_monitor_get_model(gdkMonitor)); - } - - /** - * Gets the refresh rate of the monitor, if available. - * - * The value is in milli-Hertz, so a refresh rate of 60Hz - * is returned as 60000. - * - * Returns: the refresh rate in milli-Hertz, or 0 - */ - public int getRefreshRate() - { - return gdk_monitor_get_refresh_rate(gdkMonitor); - } - - /** - * Gets the internal scale factor that maps from monitor coordinates - * to device pixels. - * - * On traditional systems this is 1, but on very high density outputs - * it can be a higher value (often 2). - * - * This can be used if you want to create pixel based data for a - * particular monitor, but most of the time you’re drawing to a surface - * where it is better to use [method@Gdk.Surface.get_scale_factor] instead. - * - * Returns: the scale factor - */ - public int getScaleFactor() - { - return gdk_monitor_get_scale_factor(gdkMonitor); - } - - /** - * Gets information about the layout of red, green and blue - * primaries for pixels. - * - * Returns: the subpixel layout - */ - public GdkSubpixelLayout getSubpixelLayout() - { - return gdk_monitor_get_subpixel_layout(gdkMonitor); - } - - /** - * Gets the width in millimeters of the monitor. - * - * Returns: the physical width of the monitor - */ - public int getWidthMm() - { - return gdk_monitor_get_width_mm(gdkMonitor); - } - - /** - * Returns %TRUE if the @monitor object corresponds to a - * physical monitor. - * - * The @monitor becomes invalid when the physical monitor - * is unplugged or removed. - * - * Returns: %TRUE if the object corresponds to a physical monitor - */ - public bool isValid() - { - return gdk_monitor_is_valid(gdkMonitor) != 0; - } - - /** - * Emitted when the output represented by @monitor gets disconnected. - */ - gulong addOnInvalidate(void delegate(MonitorGdk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "invalidate", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/MotionEvent.d b/generated/gtkd/gdk/MotionEvent.d deleted file mode 100644 index 6720b3ca2..000000000 --- a/generated/gtkd/gdk/MotionEvent.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.MotionEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a pointer or touch device motion. - */ -public class MotionEvent : Event -{ - /** the main Gtk struct */ - protected GdkMotionEvent* gdkMotionEvent; - - /** Get the main Gtk struct */ - public GdkMotionEvent* getMotionEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkMotionEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkMotionEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkMotionEvent* gdkMotionEvent, bool ownedRef = false) - { - this.gdkMotionEvent = gdkMotionEvent; - super(cast(GdkEvent*)gdkMotionEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_motion_event_get_type(); - } -} diff --git a/generated/gtkd/gdk/PadEvent.d b/generated/gtkd/gdk/PadEvent.d deleted file mode 100644 index 65907738b..000000000 --- a/generated/gtkd/gdk/PadEvent.d +++ /dev/null @@ -1,104 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.PadEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a pad-based device. - */ -public class PadEvent : Event -{ - /** the main Gtk struct */ - protected GdkPadEvent* gdkPadEvent; - - /** Get the main Gtk struct */ - public GdkPadEvent* getPadEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPadEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkPadEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPadEvent* gdkPadEvent, bool ownedRef = false) - { - this.gdkPadEvent = gdkPadEvent; - super(cast(GdkEvent*)gdkPadEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_pad_event_get_type(); - } - - /** - * Extracts the information from a pad strip or ring event. - * - * Params: - * index = Return location for the axis index - * value = Return location for the axis value - */ - public void getAxisValue(out uint index, out double value) - { - gdk_pad_event_get_axis_value(cast(GdkEvent*)gdkPadEvent, &index, &value); - } - - /** - * Extracts information about the pressed button from - * a pad event. - * - * Returns: the button of @event - */ - public uint getButton() - { - return gdk_pad_event_get_button(cast(GdkEvent*)gdkPadEvent); - } - - /** - * Extracts group and mode information from a pad event. - * - * Params: - * group = return location for the group - * mode = return location for the mode - */ - public void getGroupMode(out uint group, out uint mode) - { - gdk_pad_event_get_group_mode(cast(GdkEvent*)gdkPadEvent, &group, &mode); - } -} diff --git a/generated/gtkd/gdk/PaintableIF.d b/generated/gtkd/gdk/PaintableIF.d deleted file mode 100644 index 3c6c92639..000000000 --- a/generated/gtkd/gdk/PaintableIF.d +++ /dev/null @@ -1,268 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.PaintableIF; - -private import gdk.PaintableIF; -private import gdk.Snapshot; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * `GdkPaintable` is a simple interface used by GTK to represent content that - * can be painted. - * - * The content of a `GdkPaintable` can be painted anywhere at any size - * without requiring any sort of layout. The interface is inspired by - * similar concepts elsewhere, such as - * [ClutterContent](https://developer.gnome.org/clutter/stable/ClutterContent.html), - * [HTML/CSS Paint Sources](https://www.w3.org/TR/css-images-4/#paint-source), - * or [SVG Paint Servers](https://www.w3.org/TR/SVG2/pservers.html). - * - * A `GdkPaintable` can be snapshot at any time and size using - * [method@Gdk.Paintable.snapshot]. How the paintable interprets that size and - * if it scales or centers itself into the given rectangle is implementation - * defined, though if you are implementing a `GdkPaintable` and don't know what - * to do, it is suggested that you scale your paintable ignoring any potential - * aspect ratio. - * - * The contents that a `GdkPaintable` produces may depend on the [class@GdkSnapshot] - * passed to it. For example, paintables may decide to use more detailed images - * on higher resolution screens or when OpenGL is available. A `GdkPaintable` - * will however always produce the same output for the same snapshot. - * - * A `GdkPaintable` may change its contents, meaning that it will now produce - * a different output with the same snapshot. Once that happens, it will call - * [method@Gdk.Paintable.invalidate_contents] which will emit the - * [signal@GdkPaintable::invalidate-contents] signal. If a paintable is known - * to never change its contents, it will set the %GDK_PAINTABLE_STATIC_CONTENTS - * flag. If a consumer cannot deal with changing contents, it may call - * [method@Gdk.Paintable.get_current_image] which will return a static - * paintable and use that. - * - * A paintable can report an intrinsic (or preferred) size or aspect ratio it - * wishes to be rendered at, though it doesn't have to. Consumers of the interface - * can use this information to layout thepaintable appropriately. Just like the - * contents, the size of a paintable can change. A paintable will indicate this - * by calling [method@Gdk.Paintable.invalidate_size] which will emit the - * [signal@GdkPaintable::invalidate-size] signal. And just like for contents, - * if a paintable is known to never change its size, it will set the - * %GDK_PAINTABLE_STATIC_SIZE flag. - * - * Besides API for applications, there are some functions that are only - * useful for implementing subclasses and should not be used by applications: - * [method@Gdk.Paintable.invalidate_contents], - * [method@Gdk.Paintable.invalidate_size], - * [func@Gdk.Paintable.new_empty]. - */ -public interface PaintableIF{ - /** Get the main Gtk struct */ - public GdkPaintable* getPaintableStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gdk_paintable_get_type(); - } - - /** - * Compute a concrete size for the `GdkPaintable`. - * - * Applies the sizing algorithm outlined in the - * [CSS Image spec](https://drafts.csswg.org/css-images-3/#default-sizing) - * to the given @paintable. See that link for more details. - * - * It is not necessary to call this function when both @specified_width - * and @specified_height are known, but it is useful to call this - * function in GtkWidget:measure implementations to compute the - * other dimension when only one dimension is given. - * - * Params: - * specifiedWidth = the width @paintable could be drawn into or - * 0.0 if unknown - * specifiedHeight = the height @paintable could be drawn into or - * 0.0 if unknown - * defaultWidth = the width @paintable would be drawn into if - * no other constraints were given - * defaultHeight = the height @paintable would be drawn into if - * no other constraints were given - * concreteWidth = will be set to the concrete width - * computed. - * concreteHeight = will be set to the concrete height - * computed. - */ - public void computeConcreteSize(double specifiedWidth, double specifiedHeight, double defaultWidth, double defaultHeight, out double concreteWidth, out double concreteHeight); - - /** - * Gets an immutable paintable for the current contents displayed by @paintable. - * - * This is useful when you want to retain the current state of an animation, - * for example to take a screenshot of a running animation. - * - * If the @paintable is already immutable, it will return itself. - * - * Returns: An immutable paintable for the current - * contents of @paintable. - */ - public PaintableIF getCurrentImage(); - - /** - * Get flags for the paintable. - * - * This is oftentimes useful for optimizations. - * - * See [flags@Gdk.PaintableFlags] for the flags and what they mean. - * - * Returns: The `GdkPaintableFlags` for this paintable - */ - public GdkPaintableFlags getFlags(); - - /** - * Gets the preferred aspect ratio the @paintable would like to be displayed at. - * - * The aspect ratio is the width divided by the height, so a value of 0.5 - * means that the @paintable prefers to be displayed twice as high as it - * is wide. Consumers of this interface can use this to preserve aspect - * ratio when displaying the paintable. - * - * This is a purely informational value and does not in any way limit the - * values that may be passed to [method@Gdk.Paintable.snapshot]. - * - * Usually when a @paintable returns nonzero values from - * [method@Gdk.Paintable.get_intrinsic_width] and - * [method@Gdk.Paintable.get_intrinsic_height] the aspect ratio - * should conform to those values, though that is not required. - * - * If the @paintable does not have a preferred aspect ratio, - * it returns 0. Negative values are never returned. - * - * Returns: the intrinsic aspect ratio of @paintable or 0 if none. - */ - public double getIntrinsicAspectRatio(); - - /** - * Gets the preferred height the @paintable would like to be displayed at. - * - * Consumers of this interface can use this to reserve enough space to draw - * the paintable. - * - * This is a purely informational value and does not in any way limit the - * values that may be passed to [method@Gdk.Paintable.snapshot]. - * - * If the @paintable does not have a preferred height, it returns 0. - * Negative values are never returned. - * - * Returns: the intrinsic height of @paintable or 0 if none. - */ - public int getIntrinsicHeight(); - - /** - * Gets the preferred width the @paintable would like to be displayed at. - * - * Consumers of this interface can use this to reserve enough space to draw - * the paintable. - * - * This is a purely informational value and does not in any way limit the - * values that may be passed to [method@Gdk.Paintable.snapshot]. - * - * If the @paintable does not have a preferred width, it returns 0. - * Negative values are never returned. - * - * Returns: the intrinsic width of @paintable or 0 if none. - */ - public int getIntrinsicWidth(); - - /** - * Called by implementations of `GdkPaintable` to invalidate their contents. - * - * Unless the contents are invalidated, implementations must guarantee that - * multiple calls of [method@Gdk.Paintable.snapshot] produce the same output. - * - * This function will emit the [signal@Gdk.Paintable::invalidate-contents] - * signal. - * - * If a @paintable reports the %GDK_PAINTABLE_STATIC_CONTENTS flag, - * it must not call this function. - */ - public void invalidateContents(); - - /** - * Called by implementations of `GdkPaintable` to invalidate their size. - * - * As long as the size is not invalidated, @paintable must return the same - * values for its intrinsic width, height and aspect ratio. - * - * This function will emit the [signal@Gdk.Paintable::invalidate-size] - * signal. - * - * If a @paintable reports the %GDK_PAINTABLE_STATIC_SIZE flag, - * it must not call this function. - */ - public void invalidateSize(); - - /** - * Snapshots the given paintable with the given @width and @height. - * - * The paintable is drawn at the current (0,0) offset of the @snapshot. - * If @width and @height are not larger than zero, this function will - * do nothing. - * - * Params: - * snapshot = a `GdkSnapshot` to snapshot to - * width = width to snapshot in - * height = height to snapshot in - */ - public void snapshot(Snapshot snapshot, double width, double height); - - /** - * Emitted when the contents of the @paintable change. - * - * Examples for such an event would be videos changing to the next frame or - * the icon theme for an icon changing. - */ - gulong addOnInvalidateContents(void delegate(PaintableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Emitted when the intrinsic size of the @paintable changes. - * - * This means the values reported by at least one of - * [method@Gdk.Paintable.get_intrinsic_width], - * [method@Gdk.Paintable.get_intrinsic_height] or - * [method@Gdk.Paintable.get_intrinsic_aspect_ratio] - * has changed. - * - * Examples for such an event would be a paintable displaying - * the contents of a toplevel surface being resized. - */ - gulong addOnInvalidateSize(void delegate(PaintableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gdk/PaintableT.d b/generated/gtkd/gdk/PaintableT.d deleted file mode 100644 index 0b15825ea..000000000 --- a/generated/gtkd/gdk/PaintableT.d +++ /dev/null @@ -1,305 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.PaintableT; - -public import gdk.PaintableIF; -public import gdk.Snapshot; -public import gdk.c.functions; -public import gdk.c.types; -public import glib.ConstructionException; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * `GdkPaintable` is a simple interface used by GTK to represent content that - * can be painted. - * - * The content of a `GdkPaintable` can be painted anywhere at any size - * without requiring any sort of layout. The interface is inspired by - * similar concepts elsewhere, such as - * [ClutterContent](https://developer.gnome.org/clutter/stable/ClutterContent.html), - * [HTML/CSS Paint Sources](https://www.w3.org/TR/css-images-4/#paint-source), - * or [SVG Paint Servers](https://www.w3.org/TR/SVG2/pservers.html). - * - * A `GdkPaintable` can be snapshot at any time and size using - * [method@Gdk.Paintable.snapshot]. How the paintable interprets that size and - * if it scales or centers itself into the given rectangle is implementation - * defined, though if you are implementing a `GdkPaintable` and don't know what - * to do, it is suggested that you scale your paintable ignoring any potential - * aspect ratio. - * - * The contents that a `GdkPaintable` produces may depend on the [class@GdkSnapshot] - * passed to it. For example, paintables may decide to use more detailed images - * on higher resolution screens or when OpenGL is available. A `GdkPaintable` - * will however always produce the same output for the same snapshot. - * - * A `GdkPaintable` may change its contents, meaning that it will now produce - * a different output with the same snapshot. Once that happens, it will call - * [method@Gdk.Paintable.invalidate_contents] which will emit the - * [signal@GdkPaintable::invalidate-contents] signal. If a paintable is known - * to never change its contents, it will set the %GDK_PAINTABLE_STATIC_CONTENTS - * flag. If a consumer cannot deal with changing contents, it may call - * [method@Gdk.Paintable.get_current_image] which will return a static - * paintable and use that. - * - * A paintable can report an intrinsic (or preferred) size or aspect ratio it - * wishes to be rendered at, though it doesn't have to. Consumers of the interface - * can use this information to layout thepaintable appropriately. Just like the - * contents, the size of a paintable can change. A paintable will indicate this - * by calling [method@Gdk.Paintable.invalidate_size] which will emit the - * [signal@GdkPaintable::invalidate-size] signal. And just like for contents, - * if a paintable is known to never change its size, it will set the - * %GDK_PAINTABLE_STATIC_SIZE flag. - * - * Besides API for applications, there are some functions that are only - * useful for implementing subclasses and should not be used by applications: - * [method@Gdk.Paintable.invalidate_contents], - * [method@Gdk.Paintable.invalidate_size], - * [func@Gdk.Paintable.new_empty]. - */ -public template PaintableT(TStruct) -{ - /** Get the main Gtk struct */ - public GdkPaintable* getPaintableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GdkPaintable*)getStruct(); - } - - - /** - * Compute a concrete size for the `GdkPaintable`. - * - * Applies the sizing algorithm outlined in the - * [CSS Image spec](https://drafts.csswg.org/css-images-3/#default-sizing) - * to the given @paintable. See that link for more details. - * - * It is not necessary to call this function when both @specified_width - * and @specified_height are known, but it is useful to call this - * function in GtkWidget:measure implementations to compute the - * other dimension when only one dimension is given. - * - * Params: - * specifiedWidth = the width @paintable could be drawn into or - * 0.0 if unknown - * specifiedHeight = the height @paintable could be drawn into or - * 0.0 if unknown - * defaultWidth = the width @paintable would be drawn into if - * no other constraints were given - * defaultHeight = the height @paintable would be drawn into if - * no other constraints were given - * concreteWidth = will be set to the concrete width - * computed. - * concreteHeight = will be set to the concrete height - * computed. - */ - public void computeConcreteSize(double specifiedWidth, double specifiedHeight, double defaultWidth, double defaultHeight, out double concreteWidth, out double concreteHeight) - { - gdk_paintable_compute_concrete_size(getPaintableStruct(), specifiedWidth, specifiedHeight, defaultWidth, defaultHeight, &concreteWidth, &concreteHeight); - } - - /** - * Gets an immutable paintable for the current contents displayed by @paintable. - * - * This is useful when you want to retain the current state of an animation, - * for example to take a screenshot of a running animation. - * - * If the @paintable is already immutable, it will return itself. - * - * Returns: An immutable paintable for the current - * contents of @paintable. - */ - public PaintableIF getCurrentImage() - { - auto __p = gdk_paintable_get_current_image(getPaintableStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PaintableIF)(cast(GdkPaintable*) __p, true); - } - - /** - * Get flags for the paintable. - * - * This is oftentimes useful for optimizations. - * - * See [flags@Gdk.PaintableFlags] for the flags and what they mean. - * - * Returns: The `GdkPaintableFlags` for this paintable - */ - public GdkPaintableFlags getFlags() - { - return gdk_paintable_get_flags(getPaintableStruct()); - } - - /** - * Gets the preferred aspect ratio the @paintable would like to be displayed at. - * - * The aspect ratio is the width divided by the height, so a value of 0.5 - * means that the @paintable prefers to be displayed twice as high as it - * is wide. Consumers of this interface can use this to preserve aspect - * ratio when displaying the paintable. - * - * This is a purely informational value and does not in any way limit the - * values that may be passed to [method@Gdk.Paintable.snapshot]. - * - * Usually when a @paintable returns nonzero values from - * [method@Gdk.Paintable.get_intrinsic_width] and - * [method@Gdk.Paintable.get_intrinsic_height] the aspect ratio - * should conform to those values, though that is not required. - * - * If the @paintable does not have a preferred aspect ratio, - * it returns 0. Negative values are never returned. - * - * Returns: the intrinsic aspect ratio of @paintable or 0 if none. - */ - public double getIntrinsicAspectRatio() - { - return gdk_paintable_get_intrinsic_aspect_ratio(getPaintableStruct()); - } - - /** - * Gets the preferred height the @paintable would like to be displayed at. - * - * Consumers of this interface can use this to reserve enough space to draw - * the paintable. - * - * This is a purely informational value and does not in any way limit the - * values that may be passed to [method@Gdk.Paintable.snapshot]. - * - * If the @paintable does not have a preferred height, it returns 0. - * Negative values are never returned. - * - * Returns: the intrinsic height of @paintable or 0 if none. - */ - public int getIntrinsicHeight() - { - return gdk_paintable_get_intrinsic_height(getPaintableStruct()); - } - - /** - * Gets the preferred width the @paintable would like to be displayed at. - * - * Consumers of this interface can use this to reserve enough space to draw - * the paintable. - * - * This is a purely informational value and does not in any way limit the - * values that may be passed to [method@Gdk.Paintable.snapshot]. - * - * If the @paintable does not have a preferred width, it returns 0. - * Negative values are never returned. - * - * Returns: the intrinsic width of @paintable or 0 if none. - */ - public int getIntrinsicWidth() - { - return gdk_paintable_get_intrinsic_width(getPaintableStruct()); - } - - /** - * Called by implementations of `GdkPaintable` to invalidate their contents. - * - * Unless the contents are invalidated, implementations must guarantee that - * multiple calls of [method@Gdk.Paintable.snapshot] produce the same output. - * - * This function will emit the [signal@Gdk.Paintable::invalidate-contents] - * signal. - * - * If a @paintable reports the %GDK_PAINTABLE_STATIC_CONTENTS flag, - * it must not call this function. - */ - public void invalidateContents() - { - gdk_paintable_invalidate_contents(getPaintableStruct()); - } - - /** - * Called by implementations of `GdkPaintable` to invalidate their size. - * - * As long as the size is not invalidated, @paintable must return the same - * values for its intrinsic width, height and aspect ratio. - * - * This function will emit the [signal@Gdk.Paintable::invalidate-size] - * signal. - * - * If a @paintable reports the %GDK_PAINTABLE_STATIC_SIZE flag, - * it must not call this function. - */ - public void invalidateSize() - { - gdk_paintable_invalidate_size(getPaintableStruct()); - } - - /** - * Snapshots the given paintable with the given @width and @height. - * - * The paintable is drawn at the current (0,0) offset of the @snapshot. - * If @width and @height are not larger than zero, this function will - * do nothing. - * - * Params: - * snapshot = a `GdkSnapshot` to snapshot to - * width = width to snapshot in - * height = height to snapshot in - */ - public void snapshot(Snapshot snapshot, double width, double height) - { - gdk_paintable_snapshot(getPaintableStruct(), (snapshot is null) ? null : snapshot.getSnapshotStruct(), width, height); - } - - /** - * Emitted when the contents of the @paintable change. - * - * Examples for such an event would be videos changing to the next frame or - * the icon theme for an icon changing. - */ - gulong addOnInvalidateContents(void delegate(PaintableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "invalidate-contents", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the intrinsic size of the @paintable changes. - * - * This means the values reported by at least one of - * [method@Gdk.Paintable.get_intrinsic_width], - * [method@Gdk.Paintable.get_intrinsic_height] or - * [method@Gdk.Paintable.get_intrinsic_aspect_ratio] - * has changed. - * - * Examples for such an event would be a paintable displaying - * the contents of a toplevel surface being resized. - */ - gulong addOnInvalidateSize(void delegate(PaintableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "invalidate-size", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/PopupIF.d b/generated/gtkd/gdk/PopupIF.d deleted file mode 100644 index cdcead818..000000000 --- a/generated/gtkd/gdk/PopupIF.d +++ /dev/null @@ -1,130 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.PopupIF; - -private import gdk.PopupLayout; -private import gdk.Surface; -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; - - -/** - * A `GdkPopup` is a surface that is attached to another surface. - * - * The `GdkPopup` is positioned relative to its parent surface. - * - * `GdkPopup`s are typically used to implement menus and similar popups. - * They can be modal, which is indicated by the [property@GdkPopup:autohide] - * property. - */ -public interface PopupIF{ - /** Get the main Gtk struct */ - public GdkPopup* getPopupStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gdk_popup_get_type(); - } - - /** - * Returns whether this popup is set to hide on outside clicks. - * - * Returns: %TRUE if @popup will autohide - */ - public bool getAutohide(); - - /** - * Returns the parent surface of a popup. - * - * Returns: the parent surface - */ - public Surface getParent(); - - /** - * Obtains the position of the popup relative to its parent. - * - * Returns: the X coordinate of @popup position - */ - public int getPositionX(); - - /** - * Obtains the position of the popup relative to its parent. - * - * Returns: the Y coordinate of @popup position - */ - public int getPositionY(); - - /** - * Gets the current popup rectangle anchor. - * - * The value returned may change after calling [method@Gdk.Popup.present], - * or after the [signal@Gdk.Surface::layout] signal is emitted. - * - * Returns: the current rectangle anchor value of @popup - */ - public GdkGravity getRectAnchor(); - - /** - * Gets the current popup surface anchor. - * - * The value returned may change after calling [method@Gdk.Popup.present], - * or after the [signal@Gdk.Surface::layout] signal is emitted. - * - * Returns: the current surface anchor value of @popup - */ - public GdkGravity getSurfaceAnchor(); - - /** - * Present @popup after having processed the #GdkPopupLayout rules. - * - * If the popup was previously now showing, it will be showed, - * otherwise it will change position according to @layout. - * - * After calling this function, the result should be handled in response - * to the [signal@GdkSurface::layout] signal being emitted. The resulting - * popup position can be queried using [method@Gdk.Popup.get_position_x], - * [method@Gdk.Popup.get_position_y], and the resulting size will be sent as - * parameters in the layout signal. Use [method@Gdk.Popup.get_rect_anchor] - * and [method@Gdk.Popup.get_surface_anchor] to get the resulting anchors. - * - * Presenting may fail, for example if the @popup is set to autohide - * and is immediately hidden upon being presented. If presenting failed, - * the [signal@Gdk.Surface::layout] signal will not me emitted. - * - * Params: - * width = the unconstrained popup width to layout - * height = the unconstrained popup height to layout - * layout = the `GdkPopupLayout` object used to layout - * - * Returns: %FALSE if it failed to be presented, otherwise %TRUE. - */ - public bool present(int width, int height, PopupLayout layout); -} diff --git a/generated/gtkd/gdk/PopupLayout.d b/generated/gtkd/gdk/PopupLayout.d deleted file mode 100644 index ad2f0bca8..000000000 --- a/generated/gtkd/gdk/PopupLayout.d +++ /dev/null @@ -1,352 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.PopupLayout; - -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * The `GdkPopupLayout` struct contains information that is - * necessary position a [interface@Gdk.Popup] relative to its parent. - * - * The positioning requires a negotiation with the windowing system, - * since it depends on external constraints, such as the position of - * the parent surface, and the screen dimensions. - * - * The basic ingredients are a rectangle on the parent surface, - * and the anchor on both that rectangle and the popup. The anchors - * specify a side or corner to place next to each other. - * - * ![Popup anchors](popup-anchors.png) - * - * For cases where placing the anchors next to each other would make - * the popup extend offscreen, the layout includes some hints for how - * to resolve this problem. The hints may suggest to flip the anchor - * position to the other side, or to 'slide' the popup along a side, - * or to resize it. - * - * ![Flipping popups](popup-flip.png) - * - * ![Sliding popups](popup-slide.png) - * - * These hints may be combined. - * - * Ultimatively, it is up to the windowing system to determine the position - * and size of the popup. You can learn about the result by calling - * [method@Gdk.Popup.get_position_x], [method@Gdk.Popup.get_position_y], - * [method@Gdk.Popup.get_rect_anchor] and [method@Gdk.Popup.get_surface_anchor] - * after the popup has been presented. This can be used to adjust the rendering. - * For example, [class@Gtk.Popover] changes its arrow position accordingly. - * But you have to be careful avoid changing the size of the popover, or it - * has to be presented again. - */ -public class PopupLayout -{ - /** the main Gtk struct */ - protected GdkPopupLayout* gdkPopupLayout; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkPopupLayout* getPopupLayoutStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPopupLayout; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkPopupLayout; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPopupLayout* gdkPopupLayout, bool ownedRef = false) - { - this.gdkPopupLayout = gdkPopupLayout; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDK) && ownedRef ) - gdk_popup_layout_unref(gdkPopupLayout); - } - - - /** */ - public static GType getType() - { - return gdk_popup_layout_get_type(); - } - - /** - * Create a popup layout description. - * - * Used together with [method@Gdk.Popup.present] to describe how a popup - * surface should be placed and behave on-screen. - * - * @anchor_rect is relative to the top-left corner of the surface's parent. - * @rect_anchor and @surface_anchor determine anchor points on @anchor_rect - * and surface to pin together. - * - * The position of @anchor_rect's anchor point can optionally be offset using - * [method@Gdk.PopupLayout.set_offset], which is equivalent to offsetting the - * position of surface. - * - * Params: - * anchorRect = the anchor `GdkRectangle` to align @surface with - * rectAnchor = the point on @anchor_rect to align with @surface's anchor point - * surfaceAnchor = the point on @surface to align with @rect's anchor point - * - * Returns: newly created instance of `GdkPopupLayout` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GdkRectangle* anchorRect, GdkGravity rectAnchor, GdkGravity surfaceAnchor) - { - auto __p = gdk_popup_layout_new(anchorRect, rectAnchor, surfaceAnchor); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkPopupLayout*) __p); - } - - /** - * Makes a copy of @layout. - * - * Returns: a copy of @layout. - */ - public PopupLayout copy() - { - auto __p = gdk_popup_layout_copy(gdkPopupLayout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PopupLayout)(cast(GdkPopupLayout*) __p, true); - } - - /** - * Check whether @layout and @other has identical layout properties. - * - * Params: - * other = another `GdkPopupLayout` - * - * Returns: %TRUE if @layout and @other have identical layout properties, - * otherwise %FALSE. - */ - public bool equal(PopupLayout other) - { - return gdk_popup_layout_equal(gdkPopupLayout, (other is null) ? null : other.getPopupLayoutStruct()) != 0; - } - - /** - * Get the `GdkAnchorHints`. - * - * Returns: the `GdkAnchorHints` - */ - public GdkAnchorHints getAnchorHints() - { - return gdk_popup_layout_get_anchor_hints(gdkPopupLayout); - } - - /** - * Get the anchor rectangle. - * - * Returns: The anchor rectangle - */ - public GdkRectangle* getAnchorRect() - { - return gdk_popup_layout_get_anchor_rect(gdkPopupLayout); - } - - /** - * Retrieves the offset for the anchor rectangle. - * - * Params: - * dx = return location for the delta X coordinate - * dy = return location for the delta Y coordinate - */ - public void getOffset(out int dx, out int dy) - { - gdk_popup_layout_get_offset(gdkPopupLayout, &dx, &dy); - } - - /** - * Returns the anchor position on the anchor rectangle. - * - * Returns: the anchor on the anchor rectangle. - */ - public GdkGravity getRectAnchor() - { - return gdk_popup_layout_get_rect_anchor(gdkPopupLayout); - } - - /** - * Obtains the shadow widths of this layout. - * - * Params: - * left = return location for the left shadow width - * right = return location for the right shadow width - * top = return location for the top shadow width - * bottom = return location for the bottom shadow width - * - * Since: 4.2 - */ - public void getShadowWidth(out int left, out int right, out int top, out int bottom) - { - gdk_popup_layout_get_shadow_width(gdkPopupLayout, &left, &right, &top, &bottom); - } - - /** - * Returns the anchor position on the popup surface. - * - * Returns: the anchor on the popup surface. - */ - public GdkGravity getSurfaceAnchor() - { - return gdk_popup_layout_get_surface_anchor(gdkPopupLayout); - } - - alias doref = ref_; - /** - * Increases the reference count of @value. - * - * Returns: the same @layout - */ - public PopupLayout ref_() - { - auto __p = gdk_popup_layout_ref(gdkPopupLayout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PopupLayout)(cast(GdkPopupLayout*) __p, true); - } - - /** - * Set new anchor hints. - * - * The set @anchor_hints determines how @surface will be moved - * if the anchor points cause it to move off-screen. For example, - * %GDK_ANCHOR_FLIP_X will replace %GDK_GRAVITY_NORTH_WEST with - * %GDK_GRAVITY_NORTH_EAST and vice versa if @surface extends - * beyond the left or right edges of the monitor. - * - * Params: - * anchorHints = the new `GdkAnchorHints` - */ - public void setAnchorHints(GdkAnchorHints anchorHints) - { - gdk_popup_layout_set_anchor_hints(gdkPopupLayout, anchorHints); - } - - /** - * Set the anchor rectangle. - * - * Params: - * anchorRect = the new anchor rectangle - */ - public void setAnchorRect(GdkRectangle* anchorRect) - { - gdk_popup_layout_set_anchor_rect(gdkPopupLayout, anchorRect); - } - - /** - * Offset the position of the anchor rectangle with the given delta. - * - * Params: - * dx = x delta to offset the anchor rectangle with - * dy = y delta to offset the anchor rectangle with - */ - public void setOffset(int dx, int dy) - { - gdk_popup_layout_set_offset(gdkPopupLayout, dx, dy); - } - - /** - * Set the anchor on the anchor rectangle. - * - * Params: - * anchor = the new rect anchor - */ - public void setRectAnchor(GdkGravity anchor) - { - gdk_popup_layout_set_rect_anchor(gdkPopupLayout, anchor); - } - - /** - * Sets the shadow width of the popup. - * - * The shadow width corresponds to the part of the computed - * surface size that would consist of the shadow margin - * surrounding the window, would there be any. - * - * Params: - * left = width of the left part of the shadow - * right = width of the right part of the shadow - * top = height of the top part of the shadow - * bottom = height of the bottom part of the shadow - * - * Since: 4.2 - */ - public void setShadowWidth(int left, int right, int top, int bottom) - { - gdk_popup_layout_set_shadow_width(gdkPopupLayout, left, right, top, bottom); - } - - /** - * Set the anchor on the popup surface. - * - * Params: - * anchor = the new popup surface anchor - */ - public void setSurfaceAnchor(GdkGravity anchor) - { - gdk_popup_layout_set_surface_anchor(gdkPopupLayout, anchor); - } - - /** - * Decreases the reference count of @value. - */ - public void unref() - { - gdk_popup_layout_unref(gdkPopupLayout); - } -} diff --git a/generated/gtkd/gdk/PopupT.d b/generated/gtkd/gdk/PopupT.d deleted file mode 100644 index 19ab76b77..000000000 --- a/generated/gtkd/gdk/PopupT.d +++ /dev/null @@ -1,155 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.PopupT; - -public import gdk.PopupLayout; -public import gdk.Surface; -public import gdk.c.functions; -public import gdk.c.types; -public import gobject.ObjectG; - - -/** - * A `GdkPopup` is a surface that is attached to another surface. - * - * The `GdkPopup` is positioned relative to its parent surface. - * - * `GdkPopup`s are typically used to implement menus and similar popups. - * They can be modal, which is indicated by the [property@GdkPopup:autohide] - * property. - */ -public template PopupT(TStruct) -{ - /** Get the main Gtk struct */ - public GdkPopup* getPopupStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GdkPopup*)getStruct(); - } - - - /** - * Returns whether this popup is set to hide on outside clicks. - * - * Returns: %TRUE if @popup will autohide - */ - public bool getAutohide() - { - return gdk_popup_get_autohide(getPopupStruct()) != 0; - } - - /** - * Returns the parent surface of a popup. - * - * Returns: the parent surface - */ - public Surface getParent() - { - auto __p = gdk_popup_get_parent(getPopupStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Surface)(cast(GdkSurface*) __p); - } - - /** - * Obtains the position of the popup relative to its parent. - * - * Returns: the X coordinate of @popup position - */ - public int getPositionX() - { - return gdk_popup_get_position_x(getPopupStruct()); - } - - /** - * Obtains the position of the popup relative to its parent. - * - * Returns: the Y coordinate of @popup position - */ - public int getPositionY() - { - return gdk_popup_get_position_y(getPopupStruct()); - } - - /** - * Gets the current popup rectangle anchor. - * - * The value returned may change after calling [method@Gdk.Popup.present], - * or after the [signal@Gdk.Surface::layout] signal is emitted. - * - * Returns: the current rectangle anchor value of @popup - */ - public GdkGravity getRectAnchor() - { - return gdk_popup_get_rect_anchor(getPopupStruct()); - } - - /** - * Gets the current popup surface anchor. - * - * The value returned may change after calling [method@Gdk.Popup.present], - * or after the [signal@Gdk.Surface::layout] signal is emitted. - * - * Returns: the current surface anchor value of @popup - */ - public GdkGravity getSurfaceAnchor() - { - return gdk_popup_get_surface_anchor(getPopupStruct()); - } - - /** - * Present @popup after having processed the #GdkPopupLayout rules. - * - * If the popup was previously now showing, it will be showed, - * otherwise it will change position according to @layout. - * - * After calling this function, the result should be handled in response - * to the [signal@GdkSurface::layout] signal being emitted. The resulting - * popup position can be queried using [method@Gdk.Popup.get_position_x], - * [method@Gdk.Popup.get_position_y], and the resulting size will be sent as - * parameters in the layout signal. Use [method@Gdk.Popup.get_rect_anchor] - * and [method@Gdk.Popup.get_surface_anchor] to get the resulting anchors. - * - * Presenting may fail, for example if the @popup is set to autohide - * and is immediately hidden upon being presented. If presenting failed, - * the [signal@Gdk.Surface::layout] signal will not me emitted. - * - * Params: - * width = the unconstrained popup width to layout - * height = the unconstrained popup height to layout - * layout = the `GdkPopupLayout` object used to layout - * - * Returns: %FALSE if it failed to be presented, otherwise %TRUE. - */ - public bool present(int width, int height, PopupLayout layout) - { - return gdk_popup_present(getPopupStruct(), width, height, (layout is null) ? null : layout.getPopupLayoutStruct()) != 0; - } -} diff --git a/generated/gtkd/gdk/ProximityEvent.d b/generated/gtkd/gdk/ProximityEvent.d deleted file mode 100644 index 3f566d564..000000000 --- a/generated/gtkd/gdk/ProximityEvent.d +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ProximityEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to the proximity of a tool to a device. - */ -public class ProximityEvent : Event -{ - /** the main Gtk struct */ - protected GdkProximityEvent* gdkProximityEvent; - - /** Get the main Gtk struct */ - public GdkProximityEvent* getProximityEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkProximityEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkProximityEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkProximityEvent* gdkProximityEvent, bool ownedRef = false) - { - this.gdkProximityEvent = gdkProximityEvent; - super(cast(GdkEvent*)gdkProximityEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_proximity_event_get_type(); - } -} diff --git a/generated/gtkd/gdk/RGBA.d b/generated/gtkd/gdk/RGBA.d deleted file mode 100644 index a64c4f12b..000000000 --- a/generated/gtkd/gdk/RGBA.d +++ /dev/null @@ -1,303 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.RGBA; - -private import gdk.c.functions; -public import gdk.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * A `GdkRGBA` is used to represent a color, in a way that is compatible - * with cairo’s notion of color. - * - * `GdkRGBA` is a convenient way to pass colors around. It’s based on - * cairo’s way to deal with colors and mirrors its behavior. All values - * are in the range from 0.0 to 1.0 inclusive. So the color - * (0.0, 0.0, 0.0, 0.0) represents transparent black and - * (1.0, 1.0, 1.0, 1.0) is opaque white. Other values will - * be clamped to this range when drawing. - */ -public final class RGBA -{ - /** the main Gtk struct */ - protected GdkRGBA* gdkRGBA; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkRGBA* getRGBAStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkRGBA; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkRGBA; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkRGBA* gdkRGBA, bool ownedRef = false) - { - this.gdkRGBA = gdkRGBA; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDK) && ownedRef ) - gdk_rgba_free(gdkRGBA); - } - - /** - * Creates a new RGBA Color - */ - this() - { - GdkRGBA rgba = GdkRGBA(0, 0, 0, 0); - - this(gdk_rgba_copy(&rgba), true); - } - - /** ditto */ - this(double red, double green, double blue, double alpha = 1.0) - { - GdkRGBA rgba; - - rgba.red = red; - rgba.green = green; - rgba.blue = blue; - rgba.alpha = alpha; - - this(gdk_rgba_copy(&rgba), true); - } - - - /** - */ - - /** - * The intensity of the red channel from 0.0 to 1.0 inclusive - */ - public @property float red() - { - return gdkRGBA.red; - } - - /** Ditto */ - public @property void red(float value) - { - gdkRGBA.red = value; - } - - /** - * The intensity of the green channel from 0.0 to 1.0 inclusive - */ - public @property float green() - { - return gdkRGBA.green; - } - - /** Ditto */ - public @property void green(float value) - { - gdkRGBA.green = value; - } - - /** - * The intensity of the blue channel from 0.0 to 1.0 inclusive - */ - public @property float blue() - { - return gdkRGBA.blue; - } - - /** Ditto */ - public @property void blue(float value) - { - gdkRGBA.blue = value; - } - - /** - * The opacity of the color from 0.0 for completely translucent to - * 1.0 for opaque - */ - public @property float alpha() - { - return gdkRGBA.alpha; - } - - /** Ditto */ - public @property void alpha(float value) - { - gdkRGBA.alpha = value; - } - - /** */ - public static GType getType() - { - return gdk_rgba_get_type(); - } - - /** - * Makes a copy of a `GdkRGBA`. - * - * The result must be freed through [method@Gdk.RGBA.free]. - * - * Returns: A newly allocated `GdkRGBA`, with the same contents as @rgba - */ - public RGBA copy() - { - auto __p = gdk_rgba_copy(gdkRGBA); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(RGBA)(cast(GdkRGBA*) __p, true); - } - - /** - * Compares two `GdkRGBA` colors. - * - * Params: - * p2 = another `GdkRGBA` - * - * Returns: %TRUE if the two colors compare equal - */ - public bool equal(RGBA p2) - { - return gdk_rgba_equal(gdkRGBA, (p2 is null) ? null : p2.getRGBAStruct()) != 0; - } - - /** - * Frees a `GdkRGBA`. - */ - public void free() - { - gdk_rgba_free(gdkRGBA); - ownedRef = false; - } - - /** - * A hash function suitable for using for a hash - * table that stores `GdkRGBA`s. - * - * Returns: The hash value for @p - */ - public uint hash() - { - return gdk_rgba_hash(gdkRGBA); - } - - /** - * Checks if an @rgba value is transparent. - * - * That is, drawing with the value would not produce any change. - * - * Returns: %TRUE if the @rgba is clear - */ - public bool isClear() - { - return gdk_rgba_is_clear(gdkRGBA) != 0; - } - - /** - * Checks if an @rgba value is opaque. - * - * That is, drawing with the value will not retain any results - * from previous contents. - * - * Returns: %TRUE if the @rgba is opaque - */ - public bool isOpaque() - { - return gdk_rgba_is_opaque(gdkRGBA) != 0; - } - - /** - * Parses a textual representation of a color. - * - * The string can be either one of: - * - * - A standard name (Taken from the X11 rgb.txt file). - * - A hexadecimal value in the form “\#rgb”, “\#rrggbb”, - * “\#rrrgggbbb” or ”\#rrrrggggbbbb” - * - A hexadecimal value in the form “\#rgba”, “\#rrggbbaa”, - * or ”\#rrrrggggbbbbaaaa” - * - A RGB color in the form “rgb(r,g,b)” (In this case the color - * will have full opacity) - * - A RGBA color in the form “rgba(r,g,b,a)” - * - * Where “r”, “g”, “b” and “a” are respectively the red, green, - * blue and alpha color values. In the last two cases, “r”, “g”, - * and “b” are either integers in the range 0 to 255 or percentage - * values in the range 0% to 100%, and a is a floating point value - * in the range 0 to 1. - * - * Params: - * spec = the string specifying the color - * - * Returns: %TRUE if the parsing succeeded - */ - public bool parse(string spec) - { - return gdk_rgba_parse(gdkRGBA, Str.toStringz(spec)) != 0; - } - - /** - * Returns a textual specification of @rgba in the form - * `rgb(r,g,b)` or `rgba(r,g,b,a)`, where “r”, “g”, “b” and - * “a” represent the red, green, blue and alpha values - * respectively. “r”, “g”, and “b” are represented as integers - * in the range 0 to 255, and “a” is represented as a floating - * point value in the range 0 to 1. - * - * These string forms are string forms that are supported by - * the CSS3 colors module, and can be parsed by [method@Gdk.RGBA.parse]. - * - * Note that this string representation may lose some precision, - * since “r”, “g” and “b” are represented as 8-bit integers. If - * this is a concern, you should use a different representation. - * - * Returns: A newly allocated text string - */ - public override string toString() - { - auto retStr = gdk_rgba_to_string(gdkRGBA); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gtkd/gdk/Rectangle.d b/generated/gtkd/gdk/Rectangle.d deleted file mode 100644 index c58ef6cf7..000000000 --- a/generated/gtkd/gdk/Rectangle.d +++ /dev/null @@ -1,121 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Rectangle; - -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * A `GdkRectangle` data type for representing rectangles. - * - * `GdkRectangle` is identical to `cairo_rectangle_t`. Together with Cairo’s - * `cairo_region_t` data type, these are the central types for representing - * sets of pixels. - * - * The intersection of two rectangles can be computed with - * [method@Gdk.Rectangle.intersect]; to find the union of two rectangles use - * [method@Gdk.Rectangle.union]. - * - * The `cairo_region_t` type provided by Cairo is usually used for managing - * non-rectangular clipping of graphical operations. - * - * The Graphene library has a number of other data types for regions and - * volumes in 2D and 3D. - */ - -/** */ -public GType gdkRectangleGetType() -{ - return gdk_rectangle_get_type(); -} - -/** - * Returns #TRUE if @rect contains the point described by @x and @y. - * - * Params: - * x = X coordinate - * y = Y coordinate - * - * Returns: #TRUE if @rect contains the point - */ -public bool containsPoint(GdkRectangle* rect, int x, int y) -{ - return gdk_rectangle_contains_point(rect, x, y) != 0; -} - -/** - * Checks if the two given rectangles are equal. - * - * Params: - * rect2 = a `GdkRectangle` - * - * Returns: %TRUE if the rectangles are equal. - */ -public bool equal(GdkRectangle* rect1, GdkRectangle* rect2) -{ - return gdk_rectangle_equal(rect1, rect2) != 0; -} - -/** - * Calculates the intersection of two rectangles. - * - * It is allowed for @dest to be the same as either @src1 or @src2. - * If the rectangles do not intersect, @dest’s width and height is set - * to 0 and its x and y values are undefined. If you are only interested - * in whether the rectangles intersect, but not in the intersecting area - * itself, pass %NULL for @dest. - * - * Params: - * src2 = a `GdkRectangle` - * dest = return location for the - * intersection of @src1 and @src2, or %NULL - * - * Returns: %TRUE if the rectangles intersect. - */ -public bool intersect(GdkRectangle* src1, GdkRectangle* src2, out GdkRectangle dest) -{ - return gdk_rectangle_intersect(src1, src2, &dest) != 0; -} - -alias unio = union_; -/** - * Calculates the union of two rectangles. - * - * The union of rectangles @src1 and @src2 is the smallest rectangle which - * includes both @src1 and @src2 within it. It is allowed for @dest to be - * the same as either @src1 or @src2. - * - * Note that this function does not ignore 'empty' rectangles (ie. with - * zero width or height). - * - * Params: - * src2 = a `GdkRectangle` - * dest = return location for the union of @src1 and @src2 - */ -public void union_(GdkRectangle* src1, GdkRectangle* src2, out GdkRectangle dest) -{ - gdk_rectangle_union(src1, src2, &dest); -} diff --git a/generated/gtkd/gdk/ScrollEvent.d b/generated/gtkd/gdk/ScrollEvent.d deleted file mode 100644 index 831641ccc..000000000 --- a/generated/gtkd/gdk/ScrollEvent.d +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ScrollEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a scrolling motion. - */ -public class ScrollEvent : Event -{ - /** the main Gtk struct */ - protected GdkScrollEvent* gdkScrollEvent; - - /** Get the main Gtk struct */ - public GdkScrollEvent* getScrollEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkScrollEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkScrollEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkScrollEvent* gdkScrollEvent, bool ownedRef = false) - { - this.gdkScrollEvent = gdkScrollEvent; - super(cast(GdkEvent*)gdkScrollEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_scroll_event_get_type(); - } - - /** - * Extracts the scroll deltas of a scroll event. - * - * The deltas will be zero unless the scroll direction - * is %GDK_SCROLL_SMOOTH. - * - * Params: - * deltaX = return location for x scroll delta - * deltaY = return location for y scroll delta - */ - public void getDeltas(out double deltaX, out double deltaY) - { - gdk_scroll_event_get_deltas(cast(GdkEvent*)gdkScrollEvent, &deltaX, &deltaY); - } - - /** - * Extracts the direction of a scroll event. - * - * Returns: the scroll direction of @event - */ - public GdkScrollDirection getDirection() - { - return gdk_scroll_event_get_direction(cast(GdkEvent*)gdkScrollEvent); - } - - /** - * Check whether a scroll event is a stop scroll event. - * - * Scroll sequences with smooth scroll information may provide - * a stop scroll event once the interaction with the device finishes, - * e.g. by lifting a finger. This stop scroll event is the signal - * that a widget may trigger kinetic scrolling based on the current - * velocity. - * - * Stop scroll events always have a delta of 0/0. - * - * Returns: %TRUE if the event is a scroll stop event - */ - public bool isStop() - { - return gdk_scroll_event_is_stop(cast(GdkEvent*)gdkScrollEvent) != 0; - } -} diff --git a/generated/gtkd/gdk/Seat.d b/generated/gtkd/gdk/Seat.d deleted file mode 100644 index ab5a2c60a..000000000 --- a/generated/gtkd/gdk/Seat.d +++ /dev/null @@ -1,229 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Seat; - -private import gdk.Device; -private import gdk.DeviceTool; -private import gdk.Display; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ListG; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The `GdkSeat` object represents a collection of input devices - * that belong to a user. - */ -public class Seat : ObjectG -{ - /** the main Gtk struct */ - protected GdkSeat* gdkSeat; - - /** Get the main Gtk struct */ - public GdkSeat* getSeatStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkSeat; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkSeat; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkSeat* gdkSeat, bool ownedRef = false) - { - this.gdkSeat = gdkSeat; - super(cast(GObject*)gdkSeat, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_seat_get_type(); - } - - /** - * Returns the capabilities this `GdkSeat` currently has. - * - * Returns: the seat capabilities - */ - public GdkSeatCapabilities getCapabilities() - { - return gdk_seat_get_capabilities(gdkSeat); - } - - /** - * Returns the devices that match the given capabilities. - * - * Params: - * capabilities = capabilities to get devices for - * - * Returns: A list - * of `GdkDevices`. The list must be freed with g_list_free(), - * the elements are owned by GTK and must not be freed. - */ - public ListG getDevices(GdkSeatCapabilities capabilities) - { - auto __p = gdk_seat_get_devices(gdkSeat, capabilities); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Returns the `GdkDisplay` this seat belongs to. - * - * Returns: a `GdkDisplay`. This object - * is owned by GTK and must not be freed. - */ - public Display getDisplay() - { - auto __p = gdk_seat_get_display(gdkSeat); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Returns the device that routes keyboard events. - * - * Returns: a `GdkDevice` with keyboard - * capabilities. This object is owned by GTK and must not be freed. - */ - public Device getKeyboard() - { - auto __p = gdk_seat_get_keyboard(gdkSeat); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Device)(cast(GdkDevice*) __p); - } - - /** - * Returns the device that routes pointer events. - * - * Returns: a `GdkDevice` with pointer - * capabilities. This object is owned by GTK and must not be freed. - */ - public Device getPointer() - { - auto __p = gdk_seat_get_pointer(gdkSeat); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Device)(cast(GdkDevice*) __p); - } - - /** - * Returns all `GdkDeviceTools` that are known to the application. - * - * Returns: A list of tools. Free with g_list_free(). - */ - public ListG getTools() - { - auto __p = gdk_seat_get_tools(gdkSeat); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Emitted when a new input device is related to this seat. - * - * Params: - * device = the newly added `GdkDevice`. - */ - gulong addOnDeviceAdded(void delegate(Device, Seat) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "device-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when an input device is removed (e.g. unplugged). - * - * Params: - * device = the just removed `GdkDevice`. - */ - gulong addOnDeviceRemoved(void delegate(Device, Seat) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "device-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted whenever a new tool is made known to the seat. - * - * The tool may later be assigned to a device (i.e. on - * proximity with a tablet). The device will emit the - * [signalGdkDevice::tool-changed] signal accordingly. - * - * A same tool may be used by several devices. - * - * Params: - * tool = the new `GdkDeviceTool` known to the seat - */ - gulong addOnToolAdded(void delegate(DeviceTool, Seat) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "tool-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted whenever a tool is no longer known to this @seat. - * - * Params: - * tool = the just removed `GdkDeviceTool` - */ - gulong addOnToolRemoved(void delegate(DeviceTool, Seat) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "tool-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/Snapshot.d b/generated/gtkd/gdk/Snapshot.d deleted file mode 100644 index e095e2764..000000000 --- a/generated/gtkd/gdk/Snapshot.d +++ /dev/null @@ -1,71 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Snapshot; - -private import gdk.c.functions; -public import gdk.c.types; -private import gobject.ObjectG; - - -/** - * Base type for snapshot operations. - * - * The subclass of `GdkSnapshot` used by GTK is [class@Gtk.Snapshot]. - */ -public class Snapshot : ObjectG -{ - /** the main Gtk struct */ - protected GdkSnapshot* gdkSnapshot; - - /** Get the main Gtk struct */ - public GdkSnapshot* getSnapshotStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkSnapshot; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkSnapshot; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkSnapshot* gdkSnapshot, bool ownedRef = false) - { - this.gdkSnapshot = gdkSnapshot; - super(cast(GObject*)gdkSnapshot, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_snapshot_get_type(); - } -} diff --git a/generated/gtkd/gdk/Surface.d b/generated/gtkd/gdk/Surface.d deleted file mode 100644 index a33dd0709..000000000 --- a/generated/gtkd/gdk/Surface.d +++ /dev/null @@ -1,662 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Surface; - -private import cairo.Region; -private import cairo.Surface : CairoSurface = Surface; -private import gdk.CairoContext; -private import gdk.Cursor; -private import gdk.Device; -private import gdk.Display; -private import gdk.Event; -private import gdk.FrameClock; -private import gdk.GLContext; -private import gdk.MonitorGdk; -private import gdk.VulkanContext; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A `GdkSurface` is a rectangular region on the screen. - * - * It’s a low-level object, used to implement high-level objects - * such as [class@Gtk.Window] or [class@Gtk.Dialog] in GTK. - * - * The surfaces you see in practice are either [class@Gdk.Toplevel] or - * [class@Gdk.Popup], and those interfaces provide much of the required - * API to interact with these surfaces. Other, more specialized surface - * types exist, but you will rarely interact with them directly. - */ -public class Surface : ObjectG -{ - /** the main Gtk struct */ - protected GdkSurface* gdkSurface; - - /** Get the main Gtk struct */ - public GdkSurface* getSurfaceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkSurface; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkSurface; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkSurface* gdkSurface, bool ownedRef = false) - { - this.gdkSurface = gdkSurface; - super(cast(GObject*)gdkSurface, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_surface_get_type(); - } - - /** - * Create a new popup surface. - * - * The surface will be attached to @parent and can be positioned - * relative to it using [method@Gdk.Popup.present]. - * - * Params: - * parent = the parent surface to attach the surface to - * autohide = whether to hide the surface on outside clicks - * - * Returns: a new `GdkSurface` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Surface parent, bool autohide) - { - auto __p = gdk_surface_new_popup((parent is null) ? null : parent.getSurfaceStruct(), autohide); - - if(__p is null) - { - throw new ConstructionException("null returned by new_popup"); - } - - this(cast(GdkSurface*) __p, true); - } - - /** - * Creates a new toplevel surface. - * - * Params: - * display = the display to create the surface on - * - * Returns: the new `GdkSurface` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Display display) - { - auto __p = gdk_surface_new_toplevel((display is null) ? null : display.getDisplayStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_toplevel"); - } - - this(cast(GdkSurface*) __p, true); - } - - /** - * Emits a short beep associated to @surface. - * - * If the display of @surface does not support per-surface beeps, - * emits a short beep on the display just as [method@Gdk.Display.beep]. - */ - public void beep() - { - gdk_surface_beep(gdkSurface); - } - - /** - * Creates a new `GdkCairoContext` for rendering on @surface. - * - * Returns: the newly created `GdkCairoContext` - */ - public CairoContext createCairoContext() - { - auto __p = gdk_surface_create_cairo_context(gdkSurface); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(CairoContext)(cast(GdkCairoContext*) __p, true); - } - - /** - * Creates a new `GdkGLContext` for the `GdkSurface`. - * - * The context is disconnected from any particular surface or surface. - * If the creation of the `GdkGLContext` failed, @error will be set. - * Before using the returned `GdkGLContext`, you will need to - * call [method@Gdk.GLContext.make_current] or [method@Gdk.GLContext.realize]. - * - * Returns: the newly created `GdkGLContext`, - * or %NULL on error - * - * Throws: GException on failure. - */ - public GLContext createGlContext() - { - GError* err = null; - - auto __p = gdk_surface_create_gl_context(gdkSurface, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(GLContext)(cast(GdkGLContext*) __p, true); - } - - /** - * Create a new Cairo surface that is as compatible as possible with the - * given @surface. - * - * For example the new surface will have the same fallback resolution - * and font options as @surface. Generally, the new surface will also - * use the same backend as @surface, unless that is not possible for - * some reason. The type of the returned surface may be examined with - * cairo_surface_get_type(). - * - * Initially the surface contents are all 0 (transparent if contents - * have transparency, black otherwise.) - * - * This function always returns a valid pointer, but it will return a - * pointer to a “nil” surface if @other is already in an error state - * or any other error occurs. - * - * Params: - * content = the content for the new surface - * width = width of the new surface - * height = height of the new surface - * - * Returns: a pointer to the newly allocated surface. The caller - * owns the surface and should call cairo_surface_destroy() when done - * with it. - */ - public CairoSurface createSimilarSurface(cairo_content_t content, int width, int height) - { - auto __p = gdk_surface_create_similar_surface(gdkSurface, content, width, height); - - if(__p is null) - { - return null; - } - - return new CairoSurface(cast(cairo_surface_t*) __p); - } - - /** - * Creates a new `GdkVulkanContext` for rendering on @surface. - * - * If the creation of the `GdkVulkanContext` failed, @error will be set. - * - * Returns: the newly created `GdkVulkanContext`, or - * %NULL on error - * - * Throws: GException on failure. - */ - public VulkanContext createVulkanContext() - { - GError* err = null; - - auto __p = gdk_surface_create_vulkan_context(gdkSurface, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(VulkanContext)(cast(GdkVulkanContext*) __p, true); - } - - /** - * Destroys the window system resources associated with @surface and - * decrements @surface's reference count. - * - * The window system resources for all children of @surface are also - * destroyed, but the children’s reference counts are not decremented. - * - * Note that a surface will not be destroyed automatically when its - * reference count reaches zero. You must call this function yourself - * before that happens. - */ - public void destroy() - { - gdk_surface_destroy(gdkSurface); - } - - /** - * Retrieves a `GdkCursor` pointer for the cursor currently set on the - * `GdkSurface`. - * - * If the return value is %NULL then there is no custom cursor set on - * the surface, and it is using the cursor for its parent surface. - * - * Returns: a `GdkCursor`, or %NULL. The - * returned object is owned by the `GdkSurface` and should not be - * unreferenced directly. Use [method@Gdk.Surface.set_cursor] to - * unset the cursor of the surface - */ - public Cursor getCursor() - { - auto __p = gdk_surface_get_cursor(gdkSurface); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Cursor)(cast(GdkCursor*) __p); - } - - /** - * Retrieves a `GdkCursor` pointer for the @device currently set on the - * specified `GdkSurface`. - * - * If the return value is %NULL then there is no custom cursor set on the - * specified surface, and it is using the cursor for its parent surface. - * - * Params: - * device = a pointer `GdkDevice` - * - * Returns: a `GdkCursor`, or %NULL. The - * returned object is owned by the `GdkSurface` and should not be - * unreferenced directly. Use [method@Gdk.Surface.set_cursor] to unset - * the cursor of the surface - */ - public Cursor getDeviceCursor(Device device) - { - auto __p = gdk_surface_get_device_cursor(gdkSurface, (device is null) ? null : device.getDeviceStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Cursor)(cast(GdkCursor*) __p); - } - - /** - * Obtains the current device position and modifier state. - * - * The position is given in coordinates relative to the upper - * left corner of @surface. - * - * Params: - * device = pointer `GdkDevice` to query to - * x = return locatio for the X coordinate of @device, or %NULL - * y = return location for the Y coordinate of @device, or %NULL - * mask = return location for the modifier mask, or %NULL - * - * Returns: %TRUE if the device is over the surface - */ - public bool getDevicePosition(Device device, out double x, out double y, out GdkModifierType mask) - { - return gdk_surface_get_device_position(gdkSurface, (device is null) ? null : device.getDeviceStruct(), &x, &y, &mask) != 0; - } - - /** - * Gets the `GdkDisplay` associated with a `GdkSurface`. - * - * Returns: the `GdkDisplay` associated with @surface - */ - public Display getDisplay() - { - auto __p = gdk_surface_get_display(gdkSurface); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Display)(cast(GdkDisplay*) __p); - } - - /** - * Gets the frame clock for the surface. - * - * The frame clock for a surface never changes unless the surface is - * reparented to a new toplevel surface. - * - * Returns: the frame clock - */ - public FrameClock getFrameClock() - { - auto __p = gdk_surface_get_frame_clock(gdkSurface); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FrameClock)(cast(GdkFrameClock*) __p); - } - - /** - * Returns the height of the given @surface. - * - * Surface size is reported in ”application pixels”, not - * ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). - * - * Returns: The height of @surface - */ - public int getHeight() - { - return gdk_surface_get_height(gdkSurface); - } - - /** - * Checks whether the surface has been mapped. - * - * A surface is mapped with [method@Gdk.Toplevel.present] - * or [method@Gdk.Popup.present]. - * - * Returns: %TRUE if the surface is mapped - */ - public bool getMapped() - { - return gdk_surface_get_mapped(gdkSurface) != 0; - } - - /** - * Returns the internal scale factor that maps from surface coordinates - * to the actual device pixels. - * - * On traditional systems this is 1, but on very high density outputs - * this can be a higher value (often 2). A higher value means that drawing - * is automatically scaled up to a higher resolution, so any code doing - * drawing will automatically look nicer. However, if you are supplying - * pixel-based data the scale value can be used to determine whether to - * use a pixel resource with higher resolution data. - * - * The scale of a surface may change during runtime. - * - * Returns: the scale factor - */ - public int getScaleFactor() - { - return gdk_surface_get_scale_factor(gdkSurface); - } - - /** - * Returns the width of the given @surface. - * - * Surface size is reported in ”application pixels”, not - * ”device pixels” (see [method@Gdk.Surface.get_scale_factor]). - * - * Returns: The width of @surface - */ - public int getWidth() - { - return gdk_surface_get_width(gdkSurface); - } - - /** - * Hide the surface. - * - * For toplevel surfaces, withdraws them, so they will no longer be - * known to the window manager; for all surfaces, unmaps them, so - * they won’t be displayed. Normally done automatically as - * part of [method@Gtk.Widget.hide]. - */ - public void hide() - { - gdk_surface_hide(gdkSurface); - } - - /** - * Check to see if a surface is destroyed. - * - * Returns: %TRUE if the surface is destroyed - */ - public bool isDestroyed() - { - return gdk_surface_is_destroyed(gdkSurface) != 0; - } - - /** - * Forces a [signal@Gdk.Surface::render] signal emission for @surface - * to be scheduled. - * - * This function is useful for implementations that track invalid - * regions on their own. - */ - public void queueRender() - { - gdk_surface_queue_render(gdkSurface); - } - - /** - * Request a layout phase from the surface's frame clock. - * - * See [method@Gdk.FrameClock.request_phase]. - */ - public void requestLayout() - { - gdk_surface_request_layout(gdkSurface); - } - - /** - * Sets the default mouse pointer for a `GdkSurface`. - * - * Passing %NULL for the @cursor argument means that @surface will use - * the cursor of its parent surface. Most surfaces should use this default. - * Note that @cursor must be for the same display as @surface. - * - * Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] - * to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. - * - * Params: - * cursor = a `GdkCursor` - */ - public void setCursor(Cursor cursor) - { - gdk_surface_set_cursor(gdkSurface, (cursor is null) ? null : cursor.getCursorStruct()); - } - - /** - * Sets a specific `GdkCursor` for a given device when it gets inside @surface. - * - * Passing %NULL for the @cursor argument means that @surface will use the - * cursor of its parent surface. Most surfaces should use this default. - * - * Use [ctor@Gdk.Cursor.new_from_name] or [ctor@Gdk.Cursor.new_from_texture] - * to create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. - * - * Params: - * device = a pointer `GdkDevice` - * cursor = a `GdkCursor` - */ - public void setDeviceCursor(Device device, Cursor cursor) - { - gdk_surface_set_device_cursor(gdkSurface, (device is null) ? null : device.getDeviceStruct(), (cursor is null) ? null : cursor.getCursorStruct()); - } - - /** - * Apply the region to the surface for the purpose of event - * handling. - * - * Mouse events which happen while the pointer position corresponds - * to an unset bit in the mask will be passed on the surface below - * @surface. - * - * An input region is typically used with RGBA surfaces. The alpha - * channel of the surface defines which pixels are invisible and - * allows for nicely antialiased borders, and the input region - * controls where the surface is “clickable”. - * - * Use [method@Gdk.Display.supports_input_shapes] to find out if - * a particular backend supports input regions. - * - * Params: - * region = region of surface to be reactive - */ - public void setInputRegion(Region region) - { - gdk_surface_set_input_region(gdkSurface, (region is null) ? null : region.getRegionStruct()); - } - - /** - * Marks a region of the `GdkSurface` as opaque. - * - * For optimisation purposes, compositing window managers may - * like to not draw obscured regions of surfaces, or turn off blending - * during for these regions. With RGB windows with no transparency, - * this is just the shape of the window, but with ARGB32 windows, the - * compositor does not know what regions of the window are transparent - * or not. - * - * This function only works for toplevel surfaces. - * - * GTK will update this property automatically if the @surface background - * is opaque, as we know where the opaque regions are. If your surface - * background is not opaque, please update this property in your - * #GtkWidgetClass.css_changed() handler. - * - * Params: - * region = a region, or %NULL - */ - public void setOpaqueRegion(Region region) - { - gdk_surface_set_opaque_region(gdkSurface, (region is null) ? null : region.getRegionStruct()); - } - - /** - * Translates coordinates between two surfaces. - * - * Note that this only works if @to and @from are popups or - * transient-for to the same toplevel (directly or indirectly). - * - * Params: - * to = the target surface - * x = coordinates to translate - * y = coordinates to translate - * - * Returns: %TRUE if the coordinates were successfully translated - */ - public bool translateCoordinates(Surface to, ref double x, ref double y) - { - return gdk_surface_translate_coordinates(gdkSurface, (to is null) ? null : to.getSurfaceStruct(), &x, &y) != 0; - } - - /** - * Emitted when @surface starts being present on the monitor. - * - * Params: - * monitor = the monitor - */ - gulong addOnEnterMonitor(void delegate(MonitorGdk, Surface) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "enter-monitor", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when GDK receives an input event for @surface. - * - * Params: - * event = an input event - * - * Returns: %TRUE to indicate that the event has been handled - */ - gulong addOnEvent(bool delegate(Event, Surface) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "event", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the size of @surface is changed, or when relayout should - * be performed. - * - * Surface size is reported in ”application pixels”, not - * ”device pixels” (see gdk_surface_get_scale_factor()). - * - * Params: - * width = the current width - * height = the current height - */ - gulong addOnLayout(void delegate(int, int, Surface) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "layout", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when @surface stops being present on the monitor. - * - * Params: - * monitor = the monitor - */ - gulong addOnLeaveMonitor(void delegate(MonitorGdk, Surface) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "leave-monitor", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when part of the surface needs to be redrawn. - * - * Params: - * region = the region that needs to be redrawn - * - * Returns: %TRUE to indicate that the signal has been handled - */ - gulong addOnRender(bool delegate(Region, Surface) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "render", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/Texture.d b/generated/gtkd/gdk/Texture.d deleted file mode 100644 index 1824d8b4f..000000000 --- a/generated/gtkd/gdk/Texture.d +++ /dev/null @@ -1,250 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.Texture; - -private import gdk.PaintableIF; -private import gdk.PaintableT; -private import gdk.c.functions; -public import gdk.c.types; -private import gdkpixbuf.Pixbuf; -private import gio.FileIF; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * `GdkTexture` is the basic element used to refer to pixel data. - * - * It is primarily meant for pixel data that will not change over - * multiple frames, and will be used for a long time. - * - * There are various ways to create `GdkTexture` objects from a - * `GdkPixbuf`, or a Cairo surface, or other pixel data. - * - * The ownership of the pixel data is transferred to the `GdkTexture` - * instance; you can only make a copy of it, via - * [method@Gdk.Texture.download]. - * - * `GdkTexture` is an immutable object: That means you cannot change - * anything about it other than increasing the reference count via - * g_object_ref(). - */ -public class Texture : ObjectG, PaintableIF -{ - /** the main Gtk struct */ - protected GdkTexture* gdkTexture; - - /** Get the main Gtk struct */ - public GdkTexture* getTextureStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkTexture; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkTexture; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkTexture* gdkTexture, bool ownedRef = false) - { - this.gdkTexture = gdkTexture; - super(cast(GObject*)gdkTexture, ownedRef); - } - - // add the Paintable capabilities - mixin PaintableT!(GdkTexture); - - - /** */ - public static GType getType() - { - return gdk_texture_get_type(); - } - - /** - * Creates a new texture object representing the `GdkPixbuf`. - * - * Params: - * pixbuf = a `GdkPixbuf` - * - * Returns: a new `GdkTexture` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Pixbuf pixbuf) - { - auto __p = gdk_texture_new_for_pixbuf((pixbuf is null) ? null : pixbuf.getPixbufStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_pixbuf"); - } - - this(cast(GdkTexture*) __p, true); - } - - /** - * Creates a new texture by loading an image from a file. - * - * The file format is detected automatically. The supported formats - * are PNG and JPEG, though more formats might be available. - * - * If %NULL is returned, then @error will be set. - * - * Params: - * file = `GFile` to load - * - * Returns: A newly-created `GdkTexture` or %NULL if an error occurred. - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(FileIF file) - { - GError* err = null; - - auto __p = gdk_texture_new_from_file((file is null) ? null : file.getFileStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_file"); - } - - this(cast(GdkTexture*) __p, true); - } - - /** - * Creates a new texture by loading an image from a resource. - * - * The file format is detected automatically. The supported formats - * are PNG and JPEG, though more formats might be available. - * - * It is a fatal error if @resource_path does not specify a valid - * image resource and the program will abort if that happens. - * If you are unsure about the validity of a resource, use - * [ctor@Gdk.Texture.new_from_file] to load it. - * - * Params: - * resourcePath = the path of the resource file - * - * Returns: A newly-created `GdkTexture` - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string resourcePath) - { - auto __p = gdk_texture_new_from_resource(Str.toStringz(resourcePath)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_resource"); - } - - this(cast(GdkTexture*) __p, true); - } - - /** - * Downloads the @texture into local memory. - * - * This may be an expensive operation, as the actual texture data - * may reside on a GPU or on a remote display server. - * - * The data format of the downloaded data is equivalent to - * %CAIRO_FORMAT_ARGB32, so every downloaded pixel requires - * 4 bytes of memory. - * - * Downloading a texture into a Cairo image surface: - * ```c - * surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, - * gdk_texture_get_width (texture), - * gdk_texture_get_height (texture)); - * gdk_texture_download (texture, - * cairo_image_surface_get_data (surface), - * cairo_image_surface_get_stride (surface)); - * cairo_surface_mark_dirty (surface); - * ``` - * - * Params: - * data = pointer to enough memory to be filled with the - * downloaded data of @texture - * stride = rowstride in bytes - */ - public void download(char[] data, size_t stride) - { - gdk_texture_download(gdkTexture, data.ptr, stride); - } - - /** - * Returns the height of the @texture, in pixels. - * - * Returns: the height of the `GdkTexture` - */ - public int getHeight() - { - return gdk_texture_get_height(gdkTexture); - } - - /** - * Returns the width of @texture, in pixels. - * - * Returns: the width of the `GdkTexture` - */ - public int getWidth() - { - return gdk_texture_get_width(gdkTexture); - } - - /** - * Store the given @texture to the @filename as a PNG file. - * - * This is a utility function intended for debugging and testing. - * If you want more control over formats, proper error handling or - * want to store to a `GFile` or other location, you might want to - * look into using the gdk-pixbuf library. - * - * Params: - * filename = the filename to store to - * - * Returns: %TRUE if saving succeeded, %FALSE on failure. - */ - public bool saveToPng(string filename) - { - return gdk_texture_save_to_png(gdkTexture, Str.toStringz(filename)) != 0; - } -} diff --git a/generated/gtkd/gdk/ToplevelIF.d b/generated/gtkd/gdk/ToplevelIF.d deleted file mode 100644 index 09e5e3069..000000000 --- a/generated/gtkd/gdk/ToplevelIF.d +++ /dev/null @@ -1,321 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ToplevelIF; - -private import gdk.Device; -private import gdk.Event; -private import gdk.Surface; -private import gdk.Texture; -private import gdk.ToplevelLayout; -private import gdk.ToplevelSize; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ListG; -private import glib.Str; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A `GdkToplevel` is a freestanding toplevel surface. - * - * The `GdkToplevel` interface provides useful APIs for interacting with - * the windowing system, such as controlling maximization and size of the - * surface, setting icons and transient parents for dialogs. - */ -public interface ToplevelIF{ - /** Get the main Gtk struct */ - public GdkToplevel* getToplevelStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return gdk_toplevel_get_type(); - } - - /** - * Begins an interactive move operation. - * - * You might use this function to implement draggable titlebars. - * - * Params: - * device = the device used for the operation - * button = the button being used to drag, or 0 for a keyboard-initiated drag - * x = surface X coordinate of mouse click that began the drag - * y = surface Y coordinate of mouse click that began the drag - * timestamp = timestamp of mouse click that began the drag (use - * [method@Gdk.Event.get_time]) - */ - public void beginMove(Device device, int button, double x, double y, uint timestamp); - - /** - * Begins an interactive resize operation. - * - * You might use this function to implement a “window resize grip.” - * - * Params: - * edge = the edge or corner from which the drag is started - * device = the device used for the operation - * button = the button being used to drag, or 0 for a keyboard-initiated drag - * x = surface X coordinate of mouse click that began the drag - * y = surface Y coordinate of mouse click that began the drag - * timestamp = timestamp of mouse click that began the drag (use - * [method@Gdk.Event.get_time]) - */ - public void beginResize(GdkSurfaceEdge edge, Device device, int button, double x, double y, uint timestamp); - - /** - * Sets keyboard focus to @surface. - * - * In most cases, [method@Gtk.Window.present_with_time] should be - * used on a [class@Gtk.Window], rather than calling this function. - * - * Params: - * timestamp = timestamp of the event triggering the surface focus - */ - public void focus(uint timestamp); - - /** - * Gets the bitwise or of the currently active surface state flags, - * from the `GdkToplevelState` enumeration. - * - * Returns: surface state bitfield - */ - public GdkToplevelState getState(); - - /** - * Requests that the @toplevel inhibit the system shortcuts. - * - * This is asking the desktop environment/windowing system to let all - * keyboard events reach the surface, as long as it is focused, instead - * of triggering system actions. - * - * If granted, the rerouting remains active until the default shortcuts - * processing is restored with [method@Gdk.Toplevel.restore_system_shortcuts], - * or the request is revoked by the desktop environment, windowing system - * or the user. - * - * A typical use case for this API is remote desktop or virtual machine - * viewers which need to inhibit the default system keyboard shortcuts - * so that the remote session or virtual host gets those instead of the - * local environment. - * - * The windowing system or desktop environment may ask the user to grant - * or deny the request or even choose to ignore the request entirely. - * - * The caller can be notified whenever the request is granted or revoked - * by listening to the [property@Gdk.Toplevel:shortcuts-inhibited] property. - * - * Params: - * event = the `GdkEvent` that is triggering the inhibit - * request, or %NULL if none is available - */ - public void inhibitSystemShortcuts(Event event); - - /** - * Asks to lower the @toplevel below other windows. - * - * The windowing system may choose to ignore the request. - * - * Returns: %TRUE if the surface was lowered - */ - public bool lower(); - - /** - * Asks to minimize the @toplevel. - * - * The windowing system may choose to ignore the request. - * - * Returns: %TRUE if the surface was minimized - */ - public bool minimize(); - - /** - * Present @toplevel after having processed the `GdkToplevelLayout` rules. - * - * If the toplevel was previously not showing, it will be showed, - * otherwise it will change layout according to @layout. - * - * GDK may emit the [signal@Gdk.Toplevel::compute-size] signal to let - * the user of this toplevel compute the preferred size of the toplevel - * surface. - * - * Presenting is asynchronous and the specified layout parameters are not - * guaranteed to be respected. - * - * Params: - * layout = the `GdkToplevelLayout` object used to layout - */ - public void present(ToplevelLayout layout); - - /** - * Restore default system keyboard shortcuts which were previously - * inhibited. - * - * This undoes the effect of [method@Gdk.Toplevel.inhibit_system_shortcuts]. - */ - public void restoreSystemShortcuts(); - - /** - * Sets the toplevel to be decorated. - * - * Setting @decorated to %FALSE hints the desktop environment - * that the surface has its own, client-side decorations and - * does not need to have window decorations added. - * - * Params: - * decorated = %TRUE to request decorations - */ - public void setDecorated(bool decorated); - - /** - * Sets the toplevel to be deletable. - * - * Setting @deletable to %TRUE hints the desktop environment - * that it should offer the user a way to close the surface. - * - * Params: - * deletable = %TRUE to request a delete button - */ - public void setDeletable(bool deletable); - - /** - * Sets a list of icons for the surface. - * - * One of these will be used to represent the surface in iconic form. - * The icon may be shown in window lists or task bars. Which icon - * size is shown depends on the window manager. The window manager - * can scale the icon but setting several size icons can give better - * image quality. - * - * Note that some platforms don't support surface icons. - * - * Params: - * surfaces = A list of textures to use as icon, of different sizes - */ - public void setIconList(ListG surfaces); - - /** - * Sets the toplevel to be modal. - * - * The application can use this hint to tell the - * window manager that a certain surface has modal - * behaviour. The window manager can use this information - * to handle modal surfaces in a special way. - * - * You should only use this on surfaces for which you have - * previously called [method@Gdk.Toplevel.set_transient_for]. - * - * Params: - * modal = %TRUE if the surface is modal, %FALSE otherwise. - */ - public void setModal(bool modal); - - /** - * Sets the startup notification ID. - * - * When using GTK, typically you should use - * [method@Gtk.Window.set_startup_id] instead of this - * low-level function. - * - * Params: - * startupId = a string with startup-notification identifier - */ - public void setStartupId(string startupId); - - /** - * Sets the title of a toplevel surface. - * - * The title maybe be displayed in the titlebar, - * in lists of windows, etc. - * - * Params: - * title = title of @surface - */ - public void setTitle(string title); - - /** - * Sets a transient-for parent. - * - * Indicates to the window manager that @surface is a transient - * dialog associated with the application surface @parent. This - * allows the window manager to do things like center @surface - * on @parent and keep @surface above @parent. - * - * See [method@Gtk.Window.set_transient_for] if you’re using - * [class@Gtk.Window] or [class@Gtk.Dialog]. - * - * Params: - * parent = another toplevel `GdkSurface` - */ - public void setTransientFor(Surface parent); - - /** - * Asks the windowing system to show the window menu. - * - * The window menu is the menu shown when right-clicking the titlebar - * on traditional windows managed by the window manager. This is useful - * for windows using client-side decorations, activating it with a - * right-click on the window decorations. - * - * Params: - * event = a `GdkEvent` to show the menu for - * - * Returns: %TRUE if the window menu was shown and %FALSE otherwise. - */ - public bool showWindowMenu(Event event); - - /** - * Returns whether the desktop environment supports - * tiled window states. - * - * Returns: %TRUE if the desktop environment supports - * tiled window states - */ - public bool supportsEdgeConstraints(); - - /** - * Emitted when the size for the surface needs to be computed, when - * it is present. - * - * It will normally be emitted during or after [method@Gdk.Toplevel.present], - * depending on the configuration received by the windowing system. - * It may also be emitted at any other point in time, in response - * to the windowing system spontaneously changing the configuration. - * - * It is the responsibility of the toplevel user to handle this signal - * and compute the desired size of the toplevel, given the information - * passed via the [struct@Gdk.ToplevelSize] object. Failing to do so - * will result in an arbitrary size being used as a result. - * - * Params: - * size = a `GdkToplevelSize` - */ - gulong addOnComputeSize(void delegate(ToplevelSize, ToplevelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gdk/ToplevelLayout.d b/generated/gtkd/gdk/ToplevelLayout.d deleted file mode 100644 index 27e43cfaf..000000000 --- a/generated/gtkd/gdk/ToplevelLayout.d +++ /dev/null @@ -1,277 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ToplevelLayout; - -private import gdk.MonitorGdk; -private import gdk.c.functions; -public import gdk.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * The `GdkToplevelLayout` struct contains information that - * is necessary to present a sovereign window on screen. - * - * The `GdkToplevelLayout` struct is necessary for using - * [method@Gdk.Toplevel.present]. - * - * Toplevel surfaces are sovereign windows that can be presented - * to the user in various states (maximized, on all workspaces, - * etc). - */ -public class ToplevelLayout -{ - /** the main Gtk struct */ - protected GdkToplevelLayout* gdkToplevelLayout; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkToplevelLayout* getToplevelLayoutStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkToplevelLayout; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkToplevelLayout; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkToplevelLayout* gdkToplevelLayout, bool ownedRef = false) - { - this.gdkToplevelLayout = gdkToplevelLayout; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDK) && ownedRef ) - gdk_toplevel_layout_unref(gdkToplevelLayout); - } - - - /** */ - public static GType getType() - { - return gdk_toplevel_layout_get_type(); - } - - /** - * Create a toplevel layout description. - * - * Used together with gdk_toplevel_present() to describe - * how a toplevel surface should be placed and behave on-screen. - * - * The size is in ”application pixels”, not - * ”device pixels” (see gdk_surface_get_scale_factor()). - * - * Returns: newly created instance of #GdkToplevelLayout - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gdk_toplevel_layout_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkToplevelLayout*) __p); - } - - /** - * Create a new #GdkToplevelLayout and copy the contents of @layout into it. - * - * Returns: a copy of @layout. - */ - public ToplevelLayout copy() - { - auto __p = gdk_toplevel_layout_copy(gdkToplevelLayout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ToplevelLayout)(cast(GdkToplevelLayout*) __p, true); - } - - /** - * Check whether @layout and @other has identical layout properties. - * - * Params: - * other = another #GdkToplevelLayout - * - * Returns: %TRUE if @layout and @other have identical layout properties, - * otherwise %FALSE. - */ - public bool equal(ToplevelLayout other) - { - return gdk_toplevel_layout_equal(gdkToplevelLayout, (other is null) ? null : other.getToplevelLayoutStruct()) != 0; - } - - /** - * If the layout specifies whether to the toplevel should go fullscreen, - * the value pointed to by @fullscreen is set to %TRUE if it should go - * fullscreen, or %FALSE, if it should go unfullscreen. - * - * Params: - * fullscreen = location to store whether the toplevel should be fullscreen - * - * Returns: whether the @layout specifies the fullscreen state for the toplevel - */ - public bool getFullscreen(out bool fullscreen) - { - int outfullscreen; - - auto __p = gdk_toplevel_layout_get_fullscreen(gdkToplevelLayout, &outfullscreen) != 0; - - fullscreen = (outfullscreen == 1); - - return __p; - } - - /** - * Returns the monitor that the layout is fullscreening - * the surface on. - * - * Returns: the monitor on which @layout fullscreens - */ - public MonitorGdk getFullscreenMonitor() - { - auto __p = gdk_toplevel_layout_get_fullscreen_monitor(gdkToplevelLayout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MonitorGdk)(cast(GdkMonitor*) __p); - } - - /** - * If the layout specifies whether to the toplevel should go maximized, - * the value pointed to by @maximized is set to %TRUE if it should go - * fullscreen, or %FALSE, if it should go unmaximized. - * - * Params: - * maximized = set to %TRUE if the toplevel should be maximized - * - * Returns: whether the @layout specifies the maximized state for the toplevel - */ - public bool getMaximized(out bool maximized) - { - int outmaximized; - - auto __p = gdk_toplevel_layout_get_maximized(gdkToplevelLayout, &outmaximized) != 0; - - maximized = (outmaximized == 1); - - return __p; - } - - /** - * Returns whether the layout should allow the user - * to resize the surface. - * - * Returns: %TRUE if the layout is resizable - */ - public bool getResizable() - { - return gdk_toplevel_layout_get_resizable(gdkToplevelLayout) != 0; - } - - alias doref = ref_; - /** - * Increases the reference count of @layout. - * - * Returns: the same @layout - */ - public ToplevelLayout ref_() - { - auto __p = gdk_toplevel_layout_ref(gdkToplevelLayout); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ToplevelLayout)(cast(GdkToplevelLayout*) __p, true); - } - - /** - * Sets whether the layout should cause the surface - * to be fullscreen when presented. - * - * Params: - * fullscreen = %TRUE to fullscreen the surface - * monitor = the monitor to fullscreen on - */ - public void setFullscreen(bool fullscreen, MonitorGdk monitor) - { - gdk_toplevel_layout_set_fullscreen(gdkToplevelLayout, fullscreen, (monitor is null) ? null : monitor.getMonitorGdkStruct()); - } - - /** - * Sets whether the layout should cause the surface - * to be maximized when presented. - * - * Params: - * maximized = %TRUE to maximize - */ - public void setMaximized(bool maximized) - { - gdk_toplevel_layout_set_maximized(gdkToplevelLayout, maximized); - } - - /** - * Sets whether the layout should allow the user - * to resize the surface after it has been presented. - * - * Params: - * resizable = %TRUE to allow resizing - */ - public void setResizable(bool resizable) - { - gdk_toplevel_layout_set_resizable(gdkToplevelLayout, resizable); - } - - /** - * Decreases the reference count of @layout. - */ - public void unref() - { - gdk_toplevel_layout_unref(gdkToplevelLayout); - } -} diff --git a/generated/gtkd/gdk/ToplevelSize.d b/generated/gtkd/gdk/ToplevelSize.d deleted file mode 100644 index 815c44834..000000000 --- a/generated/gtkd/gdk/ToplevelSize.d +++ /dev/null @@ -1,137 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ToplevelSize; - -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * The `GdkToplevelSize` struct contains information that is useful - * to compute the size of a toplevel. - */ -public class ToplevelSize -{ - /** the main Gtk struct */ - protected GdkToplevelSize* gdkToplevelSize; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkToplevelSize* getToplevelSizeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkToplevelSize; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkToplevelSize; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkToplevelSize* gdkToplevelSize, bool ownedRef = false) - { - this.gdkToplevelSize = gdkToplevelSize; - this.ownedRef = ownedRef; - } - - - /** - * Retrieves the bounds the toplevel is placed within. - * - * The bounds represent the largest size a toplevel may have while still being - * able to fit within some type of boundary. Depending on the backend, this may - * be equivalent to the dimensions of the work area or the monitor on which the - * window is being presented on, or something else that limits the way a - * toplevel can be presented. - * - * Params: - * boundsWidth = return location for width - * boundsHeight = return location for height - */ - public void getBounds(out int boundsWidth, out int boundsHeight) - { - gdk_toplevel_size_get_bounds(gdkToplevelSize, &boundsWidth, &boundsHeight); - } - - /** - * Sets the minimum size of the toplevel. - * - * The minimum size corresponds to the limitations the toplevel can be shrunk - * to, without resulting in incorrect painting. A user of a `GdkToplevel` should - * calculate these given both the existing size, and the bounds retrieved from - * the `GdkToplevelSize` object. - * - * The minimum size should be within the bounds (see - * [method@Gdk.ToplevelSize.get_bounds]). - * - * Params: - * minWidth = the minimum width - * minHeight = the minimum height - */ - public void setMinSize(int minWidth, int minHeight) - { - gdk_toplevel_size_set_min_size(gdkToplevelSize, minWidth, minHeight); - } - - /** - * Sets the shadows size of the toplevel. - * - * The shadow width corresponds to the part of the computed surface size - * that would consist of the shadow margin surrounding the window, would - * there be any. - * - * Params: - * left = width of the left part of the shadow - * right = width of the right part of the shadow - * top = height of the top part of the shadow - * bottom = height of the bottom part of the shadow - */ - public void setShadowWidth(int left, int right, int top, int bottom) - { - gdk_toplevel_size_set_shadow_width(gdkToplevelSize, left, right, top, bottom); - } - - /** - * Sets the size the toplevel prefers to be resized to. - * - * The size should be within the bounds (see - * [method@Gdk.ToplevelSize.get_bounds]). The set size should - * be considered as a hint, and should not be assumed to be - * respected by the windowing system, or backend. - * - * Params: - * width = the width - * height = the height - */ - public void setSize(int width, int height) - { - gdk_toplevel_size_set_size(gdkToplevelSize, width, height); - } -} diff --git a/generated/gtkd/gdk/ToplevelT.d b/generated/gtkd/gdk/ToplevelT.d deleted file mode 100644 index 6d88e8780..000000000 --- a/generated/gtkd/gdk/ToplevelT.d +++ /dev/null @@ -1,375 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.ToplevelT; - -public import gdk.Device; -public import gdk.Event; -public import gdk.Surface; -public import gdk.Texture; -public import gdk.ToplevelLayout; -public import gdk.ToplevelSize; -public import gdk.c.functions; -public import gdk.c.types; -public import glib.ListG; -public import glib.Str; -public import gobject.Signals; -public import std.algorithm; - - -/** - * A `GdkToplevel` is a freestanding toplevel surface. - * - * The `GdkToplevel` interface provides useful APIs for interacting with - * the windowing system, such as controlling maximization and size of the - * surface, setting icons and transient parents for dialogs. - */ -public template ToplevelT(TStruct) -{ - /** Get the main Gtk struct */ - public GdkToplevel* getToplevelStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GdkToplevel*)getStruct(); - } - - - /** - * Begins an interactive move operation. - * - * You might use this function to implement draggable titlebars. - * - * Params: - * device = the device used for the operation - * button = the button being used to drag, or 0 for a keyboard-initiated drag - * x = surface X coordinate of mouse click that began the drag - * y = surface Y coordinate of mouse click that began the drag - * timestamp = timestamp of mouse click that began the drag (use - * [method@Gdk.Event.get_time]) - */ - public void beginMove(Device device, int button, double x, double y, uint timestamp) - { - gdk_toplevel_begin_move(getToplevelStruct(), (device is null) ? null : device.getDeviceStruct(), button, x, y, timestamp); - } - - /** - * Begins an interactive resize operation. - * - * You might use this function to implement a “window resize grip.” - * - * Params: - * edge = the edge or corner from which the drag is started - * device = the device used for the operation - * button = the button being used to drag, or 0 for a keyboard-initiated drag - * x = surface X coordinate of mouse click that began the drag - * y = surface Y coordinate of mouse click that began the drag - * timestamp = timestamp of mouse click that began the drag (use - * [method@Gdk.Event.get_time]) - */ - public void beginResize(GdkSurfaceEdge edge, Device device, int button, double x, double y, uint timestamp) - { - gdk_toplevel_begin_resize(getToplevelStruct(), edge, (device is null) ? null : device.getDeviceStruct(), button, x, y, timestamp); - } - - /** - * Sets keyboard focus to @surface. - * - * In most cases, [method@Gtk.Window.present_with_time] should be - * used on a [class@Gtk.Window], rather than calling this function. - * - * Params: - * timestamp = timestamp of the event triggering the surface focus - */ - public void focus(uint timestamp) - { - gdk_toplevel_focus(getToplevelStruct(), timestamp); - } - - /** - * Gets the bitwise or of the currently active surface state flags, - * from the `GdkToplevelState` enumeration. - * - * Returns: surface state bitfield - */ - public GdkToplevelState getState() - { - return gdk_toplevel_get_state(getToplevelStruct()); - } - - /** - * Requests that the @toplevel inhibit the system shortcuts. - * - * This is asking the desktop environment/windowing system to let all - * keyboard events reach the surface, as long as it is focused, instead - * of triggering system actions. - * - * If granted, the rerouting remains active until the default shortcuts - * processing is restored with [method@Gdk.Toplevel.restore_system_shortcuts], - * or the request is revoked by the desktop environment, windowing system - * or the user. - * - * A typical use case for this API is remote desktop or virtual machine - * viewers which need to inhibit the default system keyboard shortcuts - * so that the remote session or virtual host gets those instead of the - * local environment. - * - * The windowing system or desktop environment may ask the user to grant - * or deny the request or even choose to ignore the request entirely. - * - * The caller can be notified whenever the request is granted or revoked - * by listening to the [property@Gdk.Toplevel:shortcuts-inhibited] property. - * - * Params: - * event = the `GdkEvent` that is triggering the inhibit - * request, or %NULL if none is available - */ - public void inhibitSystemShortcuts(Event event) - { - gdk_toplevel_inhibit_system_shortcuts(getToplevelStruct(), (event is null) ? null : event.getEventStruct()); - } - - /** - * Asks to lower the @toplevel below other windows. - * - * The windowing system may choose to ignore the request. - * - * Returns: %TRUE if the surface was lowered - */ - public bool lower() - { - return gdk_toplevel_lower(getToplevelStruct()) != 0; - } - - /** - * Asks to minimize the @toplevel. - * - * The windowing system may choose to ignore the request. - * - * Returns: %TRUE if the surface was minimized - */ - public bool minimize() - { - return gdk_toplevel_minimize(getToplevelStruct()) != 0; - } - - /** - * Present @toplevel after having processed the `GdkToplevelLayout` rules. - * - * If the toplevel was previously not showing, it will be showed, - * otherwise it will change layout according to @layout. - * - * GDK may emit the [signal@Gdk.Toplevel::compute-size] signal to let - * the user of this toplevel compute the preferred size of the toplevel - * surface. - * - * Presenting is asynchronous and the specified layout parameters are not - * guaranteed to be respected. - * - * Params: - * layout = the `GdkToplevelLayout` object used to layout - */ - public void present(ToplevelLayout layout) - { - gdk_toplevel_present(getToplevelStruct(), (layout is null) ? null : layout.getToplevelLayoutStruct()); - } - - /** - * Restore default system keyboard shortcuts which were previously - * inhibited. - * - * This undoes the effect of [method@Gdk.Toplevel.inhibit_system_shortcuts]. - */ - public void restoreSystemShortcuts() - { - gdk_toplevel_restore_system_shortcuts(getToplevelStruct()); - } - - /** - * Sets the toplevel to be decorated. - * - * Setting @decorated to %FALSE hints the desktop environment - * that the surface has its own, client-side decorations and - * does not need to have window decorations added. - * - * Params: - * decorated = %TRUE to request decorations - */ - public void setDecorated(bool decorated) - { - gdk_toplevel_set_decorated(getToplevelStruct(), decorated); - } - - /** - * Sets the toplevel to be deletable. - * - * Setting @deletable to %TRUE hints the desktop environment - * that it should offer the user a way to close the surface. - * - * Params: - * deletable = %TRUE to request a delete button - */ - public void setDeletable(bool deletable) - { - gdk_toplevel_set_deletable(getToplevelStruct(), deletable); - } - - /** - * Sets a list of icons for the surface. - * - * One of these will be used to represent the surface in iconic form. - * The icon may be shown in window lists or task bars. Which icon - * size is shown depends on the window manager. The window manager - * can scale the icon but setting several size icons can give better - * image quality. - * - * Note that some platforms don't support surface icons. - * - * Params: - * surfaces = A list of textures to use as icon, of different sizes - */ - public void setIconList(ListG surfaces) - { - gdk_toplevel_set_icon_list(getToplevelStruct(), (surfaces is null) ? null : surfaces.getListGStruct()); - } - - /** - * Sets the toplevel to be modal. - * - * The application can use this hint to tell the - * window manager that a certain surface has modal - * behaviour. The window manager can use this information - * to handle modal surfaces in a special way. - * - * You should only use this on surfaces for which you have - * previously called [method@Gdk.Toplevel.set_transient_for]. - * - * Params: - * modal = %TRUE if the surface is modal, %FALSE otherwise. - */ - public void setModal(bool modal) - { - gdk_toplevel_set_modal(getToplevelStruct(), modal); - } - - /** - * Sets the startup notification ID. - * - * When using GTK, typically you should use - * [method@Gtk.Window.set_startup_id] instead of this - * low-level function. - * - * Params: - * startupId = a string with startup-notification identifier - */ - public void setStartupId(string startupId) - { - gdk_toplevel_set_startup_id(getToplevelStruct(), Str.toStringz(startupId)); - } - - /** - * Sets the title of a toplevel surface. - * - * The title maybe be displayed in the titlebar, - * in lists of windows, etc. - * - * Params: - * title = title of @surface - */ - public void setTitle(string title) - { - gdk_toplevel_set_title(getToplevelStruct(), Str.toStringz(title)); - } - - /** - * Sets a transient-for parent. - * - * Indicates to the window manager that @surface is a transient - * dialog associated with the application surface @parent. This - * allows the window manager to do things like center @surface - * on @parent and keep @surface above @parent. - * - * See [method@Gtk.Window.set_transient_for] if you’re using - * [class@Gtk.Window] or [class@Gtk.Dialog]. - * - * Params: - * parent = another toplevel `GdkSurface` - */ - public void setTransientFor(Surface parent) - { - gdk_toplevel_set_transient_for(getToplevelStruct(), (parent is null) ? null : parent.getSurfaceStruct()); - } - - /** - * Asks the windowing system to show the window menu. - * - * The window menu is the menu shown when right-clicking the titlebar - * on traditional windows managed by the window manager. This is useful - * for windows using client-side decorations, activating it with a - * right-click on the window decorations. - * - * Params: - * event = a `GdkEvent` to show the menu for - * - * Returns: %TRUE if the window menu was shown and %FALSE otherwise. - */ - public bool showWindowMenu(Event event) - { - return gdk_toplevel_show_window_menu(getToplevelStruct(), (event is null) ? null : event.getEventStruct()) != 0; - } - - /** - * Returns whether the desktop environment supports - * tiled window states. - * - * Returns: %TRUE if the desktop environment supports - * tiled window states - */ - public bool supportsEdgeConstraints() - { - return gdk_toplevel_supports_edge_constraints(getToplevelStruct()) != 0; - } - - /** - * Emitted when the size for the surface needs to be computed, when - * it is present. - * - * It will normally be emitted during or after [method@Gdk.Toplevel.present], - * depending on the configuration received by the windowing system. - * It may also be emitted at any other point in time, in response - * to the windowing system spontaneously changing the configuration. - * - * It is the responsibility of the toplevel user to handle this signal - * and compute the desired size of the toplevel, given the information - * passed via the [struct@Gdk.ToplevelSize] object. Failing to do so - * will result in an arbitrary size being used as a result. - * - * Params: - * size = a `GdkToplevelSize` - */ - gulong addOnComputeSize(void delegate(ToplevelSize, ToplevelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "compute-size", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/TouchEvent.d b/generated/gtkd/gdk/TouchEvent.d deleted file mode 100644 index f6706d459..000000000 --- a/generated/gtkd/gdk/TouchEvent.d +++ /dev/null @@ -1,79 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.TouchEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a touch-based device. - */ -public class TouchEvent : Event -{ - /** the main Gtk struct */ - protected GdkTouchEvent* gdkTouchEvent; - - /** Get the main Gtk struct */ - public GdkTouchEvent* getTouchEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkTouchEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkTouchEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkTouchEvent* gdkTouchEvent, bool ownedRef = false) - { - this.gdkTouchEvent = gdkTouchEvent; - super(cast(GdkEvent*)gdkTouchEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_touch_event_get_type(); - } - - /** - * Extracts whether a touch event is emulating a pointer event. - * - * Returns: %TRUE if @event is emulating - */ - public bool getEmulatingPointer() - { - return gdk_touch_event_get_emulating_pointer(cast(GdkEvent*)gdkTouchEvent) != 0; - } -} diff --git a/generated/gtkd/gdk/TouchpadEvent.d b/generated/gtkd/gdk/TouchpadEvent.d deleted file mode 100644 index 4ef9fde6c..000000000 --- a/generated/gtkd/gdk/TouchpadEvent.d +++ /dev/null @@ -1,126 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.TouchpadEvent; - -private import gdk.Event; -private import gdk.c.functions; -public import gdk.c.types; - - -/** - * An event related to a gesture on a touchpad device. - * - * Unlike touchscreens, where the windowing system sends basic - * sequences of begin, update, end events, and leaves gesture - * recognition to the clients, touchpad gestures are typically - * processed by the system, resulting in these events. - */ -public class TouchpadEvent : Event -{ - /** the main Gtk struct */ - protected GdkTouchpadEvent* gdkTouchpadEvent; - - /** Get the main Gtk struct */ - public GdkTouchpadEvent* getTouchpadEventStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkTouchpadEvent; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkTouchpadEvent; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkTouchpadEvent* gdkTouchpadEvent, bool ownedRef = false) - { - this.gdkTouchpadEvent = gdkTouchpadEvent; - super(cast(GdkEvent*)gdkTouchpadEvent, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_touchpad_event_get_type(); - } - - /** - * Extracts delta information from a touchpad event. - * - * Params: - * dx = return location for x - * dy = return location for y - */ - public void getDeltas(out double dx, out double dy) - { - gdk_touchpad_event_get_deltas(cast(GdkEvent*)gdkTouchpadEvent, &dx, &dy); - } - - /** - * Extracts the touchpad gesture phase from a touchpad event. - * - * Returns: the gesture phase of @event - */ - public GdkTouchpadGesturePhase getGesturePhase() - { - return gdk_touchpad_event_get_gesture_phase(cast(GdkEvent*)gdkTouchpadEvent); - } - - /** - * Extracts the number of fingers from a touchpad event. - * - * Returns: the number of fingers for @event - */ - public uint getNFingers() - { - return gdk_touchpad_event_get_n_fingers(cast(GdkEvent*)gdkTouchpadEvent); - } - - /** - * Extracts the angle delta from a touchpad pinch event. - * - * Returns: the angle delta of @event - */ - public double getPinchAngleDelta() - { - return gdk_touchpad_event_get_pinch_angle_delta(cast(GdkEvent*)gdkTouchpadEvent); - } - - /** - * Extracts the scale from a touchpad pinch event. - * - * Returns: the scale of @event - */ - public double getPinchScale() - { - return gdk_touchpad_event_get_pinch_scale(cast(GdkEvent*)gdkTouchpadEvent); - } -} diff --git a/generated/gtkd/gdk/VulkanContext.d b/generated/gtkd/gdk/VulkanContext.d deleted file mode 100644 index 6ecb108b2..000000000 --- a/generated/gtkd/gdk/VulkanContext.d +++ /dev/null @@ -1,95 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.VulkanContext; - -private import gdk.DrawContext; -private import gdk.c.functions; -public import gdk.c.types; -private import gio.InitableIF; -private import gio.InitableT; -private import gobject.Signals; -private import std.algorithm; - - -/** - * `GdkVulkanContext` is an object representing the platform-specific - * Vulkan draw context. - * - * `GdkVulkanContext`s are created for a surface using - * [method@Gdk.Surface.create_vulkan_context], and the context will match - * the the characteristics of the surface. - * - * Support for `GdkVulkanContext` is platform-specific and context creation - * can fail, returning %NULL context. - */ -public class VulkanContext : DrawContext, InitableIF -{ - /** the main Gtk struct */ - protected GdkVulkanContext* gdkVulkanContext; - - /** Get the main Gtk struct */ - public GdkVulkanContext* getVulkanContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkVulkanContext; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkVulkanContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkVulkanContext* gdkVulkanContext, bool ownedRef = false) - { - this.gdkVulkanContext = gdkVulkanContext; - super(cast(GdkDrawContext*)gdkVulkanContext, ownedRef); - } - - // add the Initable capabilities - mixin InitableT!(GdkVulkanContext); - - - /** */ - public static GType getType() - { - return gdk_vulkan_context_get_type(); - } - - /** - * Emitted when the images managed by this context have changed. - * - * Usually this means that the swapchain had to be recreated, - * for example in response to a change of the surface size. - */ - gulong addOnImagesUpdated(void delegate(VulkanContext) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "images-updated", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdk/c/functions.d b/generated/gtkd/gdk/c/functions.d deleted file mode 100644 index b4735c060..000000000 --- a/generated/gtkd/gdk/c/functions.d +++ /dev/null @@ -1,1845 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.c.functions; - -import std.stdio; -import gdk.c.types; -import cairo.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GDK = ["libgtk-4-1.dll;gtk-4-4.1.dll;gtk-4.dll"]; -else version (OSX) - static immutable LIBRARY_GDK = ["libgtk-4.1.dylib"]; -else - static immutable LIBRARY_GDK = ["libgtk-4.so.1"]; - -shared static this() -{ - // gdk.AppLaunchContext - - Linker.link(gdk_app_launch_context_get_type, "gdk_app_launch_context_get_type", LIBRARY_GDK); - Linker.link(gdk_app_launch_context_get_display, "gdk_app_launch_context_get_display", LIBRARY_GDK); - Linker.link(gdk_app_launch_context_set_desktop, "gdk_app_launch_context_set_desktop", LIBRARY_GDK); - Linker.link(gdk_app_launch_context_set_icon, "gdk_app_launch_context_set_icon", LIBRARY_GDK); - Linker.link(gdk_app_launch_context_set_icon_name, "gdk_app_launch_context_set_icon_name", LIBRARY_GDK); - Linker.link(gdk_app_launch_context_set_timestamp, "gdk_app_launch_context_set_timestamp", LIBRARY_GDK); - - // gdk.ButtonEvent - - Linker.link(gdk_button_event_get_type, "gdk_button_event_get_type", LIBRARY_GDK); - Linker.link(gdk_button_event_get_button, "gdk_button_event_get_button", LIBRARY_GDK); - - // gdk.CairoContext - - Linker.link(gdk_cairo_context_get_type, "gdk_cairo_context_get_type", LIBRARY_GDK); - Linker.link(gdk_cairo_context_cairo_create, "gdk_cairo_context_cairo_create", LIBRARY_GDK); - - // gdk.Clipboard - - Linker.link(gdk_clipboard_get_type, "gdk_clipboard_get_type", LIBRARY_GDK); - Linker.link(gdk_clipboard_get_content, "gdk_clipboard_get_content", LIBRARY_GDK); - Linker.link(gdk_clipboard_get_display, "gdk_clipboard_get_display", LIBRARY_GDK); - Linker.link(gdk_clipboard_get_formats, "gdk_clipboard_get_formats", LIBRARY_GDK); - Linker.link(gdk_clipboard_is_local, "gdk_clipboard_is_local", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_async, "gdk_clipboard_read_async", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_finish, "gdk_clipboard_read_finish", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_text_async, "gdk_clipboard_read_text_async", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_text_finish, "gdk_clipboard_read_text_finish", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_texture_async, "gdk_clipboard_read_texture_async", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_texture_finish, "gdk_clipboard_read_texture_finish", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_value_async, "gdk_clipboard_read_value_async", LIBRARY_GDK); - Linker.link(gdk_clipboard_read_value_finish, "gdk_clipboard_read_value_finish", LIBRARY_GDK); - Linker.link(gdk_clipboard_set, "gdk_clipboard_set", LIBRARY_GDK); - Linker.link(gdk_clipboard_set_content, "gdk_clipboard_set_content", LIBRARY_GDK); - Linker.link(gdk_clipboard_set_text, "gdk_clipboard_set_text", LIBRARY_GDK); - Linker.link(gdk_clipboard_set_texture, "gdk_clipboard_set_texture", LIBRARY_GDK); - Linker.link(gdk_clipboard_set_valist, "gdk_clipboard_set_valist", LIBRARY_GDK); - Linker.link(gdk_clipboard_set_value, "gdk_clipboard_set_value", LIBRARY_GDK); - Linker.link(gdk_clipboard_store_async, "gdk_clipboard_store_async", LIBRARY_GDK); - Linker.link(gdk_clipboard_store_finish, "gdk_clipboard_store_finish", LIBRARY_GDK); - - // gdk.ContentDeserializer - - Linker.link(gdk_content_deserializer_get_type, "gdk_content_deserializer_get_type", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_cancellable, "gdk_content_deserializer_get_cancellable", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_gtype, "gdk_content_deserializer_get_gtype", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_input_stream, "gdk_content_deserializer_get_input_stream", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_mime_type, "gdk_content_deserializer_get_mime_type", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_priority, "gdk_content_deserializer_get_priority", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_task_data, "gdk_content_deserializer_get_task_data", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_user_data, "gdk_content_deserializer_get_user_data", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_get_value, "gdk_content_deserializer_get_value", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_return_error, "gdk_content_deserializer_return_error", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_return_success, "gdk_content_deserializer_return_success", LIBRARY_GDK); - Linker.link(gdk_content_deserializer_set_task_data, "gdk_content_deserializer_set_task_data", LIBRARY_GDK); - - // gdk.ContentFormats - - Linker.link(gdk_content_formats_get_type, "gdk_content_formats_get_type", LIBRARY_GDK); - Linker.link(gdk_content_formats_new, "gdk_content_formats_new", LIBRARY_GDK); - Linker.link(gdk_content_formats_new_for_gtype, "gdk_content_formats_new_for_gtype", LIBRARY_GDK); - Linker.link(gdk_content_formats_contain_gtype, "gdk_content_formats_contain_gtype", LIBRARY_GDK); - Linker.link(gdk_content_formats_contain_mime_type, "gdk_content_formats_contain_mime_type", LIBRARY_GDK); - Linker.link(gdk_content_formats_get_gtypes, "gdk_content_formats_get_gtypes", LIBRARY_GDK); - Linker.link(gdk_content_formats_get_mime_types, "gdk_content_formats_get_mime_types", LIBRARY_GDK); - Linker.link(gdk_content_formats_match, "gdk_content_formats_match", LIBRARY_GDK); - Linker.link(gdk_content_formats_match_gtype, "gdk_content_formats_match_gtype", LIBRARY_GDK); - Linker.link(gdk_content_formats_match_mime_type, "gdk_content_formats_match_mime_type", LIBRARY_GDK); - Linker.link(gdk_content_formats_print, "gdk_content_formats_print", LIBRARY_GDK); - Linker.link(gdk_content_formats_ref, "gdk_content_formats_ref", LIBRARY_GDK); - Linker.link(gdk_content_formats_to_string, "gdk_content_formats_to_string", LIBRARY_GDK); - Linker.link(gdk_content_formats_union, "gdk_content_formats_union", LIBRARY_GDK); - Linker.link(gdk_content_formats_union_deserialize_gtypes, "gdk_content_formats_union_deserialize_gtypes", LIBRARY_GDK); - Linker.link(gdk_content_formats_union_deserialize_mime_types, "gdk_content_formats_union_deserialize_mime_types", LIBRARY_GDK); - Linker.link(gdk_content_formats_union_serialize_gtypes, "gdk_content_formats_union_serialize_gtypes", LIBRARY_GDK); - Linker.link(gdk_content_formats_union_serialize_mime_types, "gdk_content_formats_union_serialize_mime_types", LIBRARY_GDK); - Linker.link(gdk_content_formats_unref, "gdk_content_formats_unref", LIBRARY_GDK); - - // gdk.ContentFormatsBuilder - - Linker.link(gdk_content_formats_builder_get_type, "gdk_content_formats_builder_get_type", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_new, "gdk_content_formats_builder_new", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_add_formats, "gdk_content_formats_builder_add_formats", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_add_gtype, "gdk_content_formats_builder_add_gtype", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_add_mime_type, "gdk_content_formats_builder_add_mime_type", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_free_to_formats, "gdk_content_formats_builder_free_to_formats", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_ref, "gdk_content_formats_builder_ref", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_to_formats, "gdk_content_formats_builder_to_formats", LIBRARY_GDK); - Linker.link(gdk_content_formats_builder_unref, "gdk_content_formats_builder_unref", LIBRARY_GDK); - - // gdk.ContentProvider - - Linker.link(gdk_content_provider_get_type, "gdk_content_provider_get_type", LIBRARY_GDK); - Linker.link(gdk_content_provider_new_for_bytes, "gdk_content_provider_new_for_bytes", LIBRARY_GDK); - Linker.link(gdk_content_provider_new_for_value, "gdk_content_provider_new_for_value", LIBRARY_GDK); - Linker.link(gdk_content_provider_new_typed, "gdk_content_provider_new_typed", LIBRARY_GDK); - Linker.link(gdk_content_provider_new_union, "gdk_content_provider_new_union", LIBRARY_GDK); - Linker.link(gdk_content_provider_content_changed, "gdk_content_provider_content_changed", LIBRARY_GDK); - Linker.link(gdk_content_provider_get_value, "gdk_content_provider_get_value", LIBRARY_GDK); - Linker.link(gdk_content_provider_ref_formats, "gdk_content_provider_ref_formats", LIBRARY_GDK); - Linker.link(gdk_content_provider_ref_storable_formats, "gdk_content_provider_ref_storable_formats", LIBRARY_GDK); - Linker.link(gdk_content_provider_write_mime_type_async, "gdk_content_provider_write_mime_type_async", LIBRARY_GDK); - Linker.link(gdk_content_provider_write_mime_type_finish, "gdk_content_provider_write_mime_type_finish", LIBRARY_GDK); - - // gdk.ContentSerializer - - Linker.link(gdk_content_serializer_get_type, "gdk_content_serializer_get_type", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_cancellable, "gdk_content_serializer_get_cancellable", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_gtype, "gdk_content_serializer_get_gtype", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_mime_type, "gdk_content_serializer_get_mime_type", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_output_stream, "gdk_content_serializer_get_output_stream", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_priority, "gdk_content_serializer_get_priority", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_task_data, "gdk_content_serializer_get_task_data", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_user_data, "gdk_content_serializer_get_user_data", LIBRARY_GDK); - Linker.link(gdk_content_serializer_get_value, "gdk_content_serializer_get_value", LIBRARY_GDK); - Linker.link(gdk_content_serializer_return_error, "gdk_content_serializer_return_error", LIBRARY_GDK); - Linker.link(gdk_content_serializer_return_success, "gdk_content_serializer_return_success", LIBRARY_GDK); - Linker.link(gdk_content_serializer_set_task_data, "gdk_content_serializer_set_task_data", LIBRARY_GDK); - - // gdk.CrossingEvent - - Linker.link(gdk_crossing_event_get_type, "gdk_crossing_event_get_type", LIBRARY_GDK); - Linker.link(gdk_crossing_event_get_detail, "gdk_crossing_event_get_detail", LIBRARY_GDK); - Linker.link(gdk_crossing_event_get_focus, "gdk_crossing_event_get_focus", LIBRARY_GDK); - Linker.link(gdk_crossing_event_get_mode, "gdk_crossing_event_get_mode", LIBRARY_GDK); - - // gdk.Cursor - - Linker.link(gdk_cursor_get_type, "gdk_cursor_get_type", LIBRARY_GDK); - Linker.link(gdk_cursor_new_from_name, "gdk_cursor_new_from_name", LIBRARY_GDK); - Linker.link(gdk_cursor_new_from_texture, "gdk_cursor_new_from_texture", LIBRARY_GDK); - Linker.link(gdk_cursor_get_fallback, "gdk_cursor_get_fallback", LIBRARY_GDK); - Linker.link(gdk_cursor_get_hotspot_x, "gdk_cursor_get_hotspot_x", LIBRARY_GDK); - Linker.link(gdk_cursor_get_hotspot_y, "gdk_cursor_get_hotspot_y", LIBRARY_GDK); - Linker.link(gdk_cursor_get_name, "gdk_cursor_get_name", LIBRARY_GDK); - Linker.link(gdk_cursor_get_texture, "gdk_cursor_get_texture", LIBRARY_GDK); - - // gdk.DNDEvent - - Linker.link(gdk_dnd_event_get_type, "gdk_dnd_event_get_type", LIBRARY_GDK); - Linker.link(gdk_dnd_event_get_drop, "gdk_dnd_event_get_drop", LIBRARY_GDK); - - // gdk.DeleteEvent - - Linker.link(gdk_delete_event_get_type, "gdk_delete_event_get_type", LIBRARY_GDK); - - // gdk.Device - - Linker.link(gdk_device_get_type, "gdk_device_get_type", LIBRARY_GDK); - Linker.link(gdk_device_get_caps_lock_state, "gdk_device_get_caps_lock_state", LIBRARY_GDK); - Linker.link(gdk_device_get_device_tool, "gdk_device_get_device_tool", LIBRARY_GDK); - Linker.link(gdk_device_get_direction, "gdk_device_get_direction", LIBRARY_GDK); - Linker.link(gdk_device_get_display, "gdk_device_get_display", LIBRARY_GDK); - Linker.link(gdk_device_get_has_cursor, "gdk_device_get_has_cursor", LIBRARY_GDK); - Linker.link(gdk_device_get_modifier_state, "gdk_device_get_modifier_state", LIBRARY_GDK); - Linker.link(gdk_device_get_name, "gdk_device_get_name", LIBRARY_GDK); - Linker.link(gdk_device_get_num_lock_state, "gdk_device_get_num_lock_state", LIBRARY_GDK); - Linker.link(gdk_device_get_num_touches, "gdk_device_get_num_touches", LIBRARY_GDK); - Linker.link(gdk_device_get_product_id, "gdk_device_get_product_id", LIBRARY_GDK); - Linker.link(gdk_device_get_scroll_lock_state, "gdk_device_get_scroll_lock_state", LIBRARY_GDK); - Linker.link(gdk_device_get_seat, "gdk_device_get_seat", LIBRARY_GDK); - Linker.link(gdk_device_get_source, "gdk_device_get_source", LIBRARY_GDK); - Linker.link(gdk_device_get_surface_at_position, "gdk_device_get_surface_at_position", LIBRARY_GDK); - Linker.link(gdk_device_get_timestamp, "gdk_device_get_timestamp", LIBRARY_GDK); - Linker.link(gdk_device_get_vendor_id, "gdk_device_get_vendor_id", LIBRARY_GDK); - Linker.link(gdk_device_has_bidi_layouts, "gdk_device_has_bidi_layouts", LIBRARY_GDK); - - // gdk.DevicePad - - Linker.link(gdk_device_pad_get_type, "gdk_device_pad_get_type", LIBRARY_GDK); - Linker.link(gdk_device_pad_get_feature_group, "gdk_device_pad_get_feature_group", LIBRARY_GDK); - Linker.link(gdk_device_pad_get_group_n_modes, "gdk_device_pad_get_group_n_modes", LIBRARY_GDK); - Linker.link(gdk_device_pad_get_n_features, "gdk_device_pad_get_n_features", LIBRARY_GDK); - Linker.link(gdk_device_pad_get_n_groups, "gdk_device_pad_get_n_groups", LIBRARY_GDK); - - // gdk.DeviceTool - - Linker.link(gdk_device_tool_get_type, "gdk_device_tool_get_type", LIBRARY_GDK); - Linker.link(gdk_device_tool_get_axes, "gdk_device_tool_get_axes", LIBRARY_GDK); - Linker.link(gdk_device_tool_get_hardware_id, "gdk_device_tool_get_hardware_id", LIBRARY_GDK); - Linker.link(gdk_device_tool_get_serial, "gdk_device_tool_get_serial", LIBRARY_GDK); - Linker.link(gdk_device_tool_get_tool_type, "gdk_device_tool_get_tool_type", LIBRARY_GDK); - - // gdk.Display - - Linker.link(gdk_display_get_type, "gdk_display_get_type", LIBRARY_GDK); - Linker.link(gdk_display_get_default, "gdk_display_get_default", LIBRARY_GDK); - Linker.link(gdk_display_open, "gdk_display_open", LIBRARY_GDK); - Linker.link(gdk_display_beep, "gdk_display_beep", LIBRARY_GDK); - Linker.link(gdk_display_close, "gdk_display_close", LIBRARY_GDK); - Linker.link(gdk_display_device_is_grabbed, "gdk_display_device_is_grabbed", LIBRARY_GDK); - Linker.link(gdk_display_flush, "gdk_display_flush", LIBRARY_GDK); - Linker.link(gdk_display_get_app_launch_context, "gdk_display_get_app_launch_context", LIBRARY_GDK); - Linker.link(gdk_display_get_clipboard, "gdk_display_get_clipboard", LIBRARY_GDK); - Linker.link(gdk_display_get_default_seat, "gdk_display_get_default_seat", LIBRARY_GDK); - Linker.link(gdk_display_get_monitor_at_surface, "gdk_display_get_monitor_at_surface", LIBRARY_GDK); - Linker.link(gdk_display_get_monitors, "gdk_display_get_monitors", LIBRARY_GDK); - Linker.link(gdk_display_get_name, "gdk_display_get_name", LIBRARY_GDK); - Linker.link(gdk_display_get_primary_clipboard, "gdk_display_get_primary_clipboard", LIBRARY_GDK); - Linker.link(gdk_display_get_setting, "gdk_display_get_setting", LIBRARY_GDK); - Linker.link(gdk_display_get_startup_notification_id, "gdk_display_get_startup_notification_id", LIBRARY_GDK); - Linker.link(gdk_display_is_closed, "gdk_display_is_closed", LIBRARY_GDK); - Linker.link(gdk_display_is_composited, "gdk_display_is_composited", LIBRARY_GDK); - Linker.link(gdk_display_is_rgba, "gdk_display_is_rgba", LIBRARY_GDK); - Linker.link(gdk_display_list_seats, "gdk_display_list_seats", LIBRARY_GDK); - Linker.link(gdk_display_map_keycode, "gdk_display_map_keycode", LIBRARY_GDK); - Linker.link(gdk_display_map_keyval, "gdk_display_map_keyval", LIBRARY_GDK); - Linker.link(gdk_display_notify_startup_complete, "gdk_display_notify_startup_complete", LIBRARY_GDK); - Linker.link(gdk_display_put_event, "gdk_display_put_event", LIBRARY_GDK); - Linker.link(gdk_display_supports_input_shapes, "gdk_display_supports_input_shapes", LIBRARY_GDK); - Linker.link(gdk_display_sync, "gdk_display_sync", LIBRARY_GDK); - Linker.link(gdk_display_translate_key, "gdk_display_translate_key", LIBRARY_GDK); - - // gdk.DisplayManager - - Linker.link(gdk_display_manager_get_type, "gdk_display_manager_get_type", LIBRARY_GDK); - Linker.link(gdk_display_manager_get, "gdk_display_manager_get", LIBRARY_GDK); - Linker.link(gdk_display_manager_get_default_display, "gdk_display_manager_get_default_display", LIBRARY_GDK); - Linker.link(gdk_display_manager_list_displays, "gdk_display_manager_list_displays", LIBRARY_GDK); - Linker.link(gdk_display_manager_open_display, "gdk_display_manager_open_display", LIBRARY_GDK); - Linker.link(gdk_display_manager_set_default_display, "gdk_display_manager_set_default_display", LIBRARY_GDK); - - // gdk.Drag - - Linker.link(gdk_drag_get_type, "gdk_drag_get_type", LIBRARY_GDK); - Linker.link(gdk_drag_begin, "gdk_drag_begin", LIBRARY_GDK); - Linker.link(gdk_drag_drop_done, "gdk_drag_drop_done", LIBRARY_GDK); - Linker.link(gdk_drag_get_actions, "gdk_drag_get_actions", LIBRARY_GDK); - Linker.link(gdk_drag_get_content, "gdk_drag_get_content", LIBRARY_GDK); - Linker.link(gdk_drag_get_device, "gdk_drag_get_device", LIBRARY_GDK); - Linker.link(gdk_drag_get_display, "gdk_drag_get_display", LIBRARY_GDK); - Linker.link(gdk_drag_get_drag_surface, "gdk_drag_get_drag_surface", LIBRARY_GDK); - Linker.link(gdk_drag_get_formats, "gdk_drag_get_formats", LIBRARY_GDK); - Linker.link(gdk_drag_get_selected_action, "gdk_drag_get_selected_action", LIBRARY_GDK); - Linker.link(gdk_drag_get_surface, "gdk_drag_get_surface", LIBRARY_GDK); - Linker.link(gdk_drag_set_hotspot, "gdk_drag_set_hotspot", LIBRARY_GDK); - - // gdk.DragSurface - - Linker.link(gdk_drag_surface_get_type, "gdk_drag_surface_get_type", LIBRARY_GDK); - Linker.link(gdk_drag_surface_present, "gdk_drag_surface_present", LIBRARY_GDK); - - // gdk.DrawContext - - Linker.link(gdk_draw_context_get_type, "gdk_draw_context_get_type", LIBRARY_GDK); - Linker.link(gdk_draw_context_begin_frame, "gdk_draw_context_begin_frame", LIBRARY_GDK); - Linker.link(gdk_draw_context_end_frame, "gdk_draw_context_end_frame", LIBRARY_GDK); - Linker.link(gdk_draw_context_get_display, "gdk_draw_context_get_display", LIBRARY_GDK); - Linker.link(gdk_draw_context_get_frame_region, "gdk_draw_context_get_frame_region", LIBRARY_GDK); - Linker.link(gdk_draw_context_get_surface, "gdk_draw_context_get_surface", LIBRARY_GDK); - Linker.link(gdk_draw_context_is_in_frame, "gdk_draw_context_is_in_frame", LIBRARY_GDK); - - // gdk.Drop - - Linker.link(gdk_drop_get_type, "gdk_drop_get_type", LIBRARY_GDK); - Linker.link(gdk_drop_finish, "gdk_drop_finish", LIBRARY_GDK); - Linker.link(gdk_drop_get_actions, "gdk_drop_get_actions", LIBRARY_GDK); - Linker.link(gdk_drop_get_device, "gdk_drop_get_device", LIBRARY_GDK); - Linker.link(gdk_drop_get_display, "gdk_drop_get_display", LIBRARY_GDK); - Linker.link(gdk_drop_get_drag, "gdk_drop_get_drag", LIBRARY_GDK); - Linker.link(gdk_drop_get_formats, "gdk_drop_get_formats", LIBRARY_GDK); - Linker.link(gdk_drop_get_surface, "gdk_drop_get_surface", LIBRARY_GDK); - Linker.link(gdk_drop_read_async, "gdk_drop_read_async", LIBRARY_GDK); - Linker.link(gdk_drop_read_finish, "gdk_drop_read_finish", LIBRARY_GDK); - Linker.link(gdk_drop_read_value_async, "gdk_drop_read_value_async", LIBRARY_GDK); - Linker.link(gdk_drop_read_value_finish, "gdk_drop_read_value_finish", LIBRARY_GDK); - Linker.link(gdk_drop_status, "gdk_drop_status", LIBRARY_GDK); - - // gdk.Event - - Linker.link(gdk_event_get_type, "gdk_event_get_type", LIBRARY_GDK); - Linker.link(gdk_events_get_angle, "gdk_events_get_angle", LIBRARY_GDK); - Linker.link(gdk_events_get_center, "gdk_events_get_center", LIBRARY_GDK); - Linker.link(gdk_events_get_distance, "gdk_events_get_distance", LIBRARY_GDK); - Linker.link(gdk_event_get_axes, "gdk_event_get_axes", LIBRARY_GDK); - Linker.link(gdk_event_get_axis, "gdk_event_get_axis", LIBRARY_GDK); - Linker.link(gdk_event_get_device, "gdk_event_get_device", LIBRARY_GDK); - Linker.link(gdk_event_get_device_tool, "gdk_event_get_device_tool", LIBRARY_GDK); - Linker.link(gdk_event_get_display, "gdk_event_get_display", LIBRARY_GDK); - Linker.link(gdk_event_get_event_sequence, "gdk_event_get_event_sequence", LIBRARY_GDK); - Linker.link(gdk_event_get_event_type, "gdk_event_get_event_type", LIBRARY_GDK); - Linker.link(gdk_event_get_history, "gdk_event_get_history", LIBRARY_GDK); - Linker.link(gdk_event_get_modifier_state, "gdk_event_get_modifier_state", LIBRARY_GDK); - Linker.link(gdk_event_get_pointer_emulated, "gdk_event_get_pointer_emulated", LIBRARY_GDK); - Linker.link(gdk_event_get_position, "gdk_event_get_position", LIBRARY_GDK); - Linker.link(gdk_event_get_seat, "gdk_event_get_seat", LIBRARY_GDK); - Linker.link(gdk_event_get_surface, "gdk_event_get_surface", LIBRARY_GDK); - Linker.link(gdk_event_get_time, "gdk_event_get_time", LIBRARY_GDK); - Linker.link(gdk_event_ref, "gdk_event_ref", LIBRARY_GDK); - Linker.link(gdk_event_triggers_context_menu, "gdk_event_triggers_context_menu", LIBRARY_GDK); - Linker.link(gdk_event_unref, "gdk_event_unref", LIBRARY_GDK); - - // gdk.EventSequence - - Linker.link(gdk_event_sequence_get_type, "gdk_event_sequence_get_type", LIBRARY_GDK); - - // gdk.FocusEvent - - Linker.link(gdk_focus_event_get_type, "gdk_focus_event_get_type", LIBRARY_GDK); - Linker.link(gdk_focus_event_get_in, "gdk_focus_event_get_in", LIBRARY_GDK); - - // gdk.FrameClock - - Linker.link(gdk_frame_clock_get_type, "gdk_frame_clock_get_type", LIBRARY_GDK); - Linker.link(gdk_frame_clock_begin_updating, "gdk_frame_clock_begin_updating", LIBRARY_GDK); - Linker.link(gdk_frame_clock_end_updating, "gdk_frame_clock_end_updating", LIBRARY_GDK); - Linker.link(gdk_frame_clock_get_current_timings, "gdk_frame_clock_get_current_timings", LIBRARY_GDK); - Linker.link(gdk_frame_clock_get_fps, "gdk_frame_clock_get_fps", LIBRARY_GDK); - Linker.link(gdk_frame_clock_get_frame_counter, "gdk_frame_clock_get_frame_counter", LIBRARY_GDK); - Linker.link(gdk_frame_clock_get_frame_time, "gdk_frame_clock_get_frame_time", LIBRARY_GDK); - Linker.link(gdk_frame_clock_get_history_start, "gdk_frame_clock_get_history_start", LIBRARY_GDK); - Linker.link(gdk_frame_clock_get_refresh_info, "gdk_frame_clock_get_refresh_info", LIBRARY_GDK); - Linker.link(gdk_frame_clock_get_timings, "gdk_frame_clock_get_timings", LIBRARY_GDK); - Linker.link(gdk_frame_clock_request_phase, "gdk_frame_clock_request_phase", LIBRARY_GDK); - - // gdk.FrameTimings - - Linker.link(gdk_frame_timings_get_type, "gdk_frame_timings_get_type", LIBRARY_GDK); - Linker.link(gdk_frame_timings_get_complete, "gdk_frame_timings_get_complete", LIBRARY_GDK); - Linker.link(gdk_frame_timings_get_frame_counter, "gdk_frame_timings_get_frame_counter", LIBRARY_GDK); - Linker.link(gdk_frame_timings_get_frame_time, "gdk_frame_timings_get_frame_time", LIBRARY_GDK); - Linker.link(gdk_frame_timings_get_predicted_presentation_time, "gdk_frame_timings_get_predicted_presentation_time", LIBRARY_GDK); - Linker.link(gdk_frame_timings_get_presentation_time, "gdk_frame_timings_get_presentation_time", LIBRARY_GDK); - Linker.link(gdk_frame_timings_get_refresh_interval, "gdk_frame_timings_get_refresh_interval", LIBRARY_GDK); - Linker.link(gdk_frame_timings_ref, "gdk_frame_timings_ref", LIBRARY_GDK); - Linker.link(gdk_frame_timings_unref, "gdk_frame_timings_unref", LIBRARY_GDK); - - // gdk.GLContext - - Linker.link(gdk_gl_context_get_type, "gdk_gl_context_get_type", LIBRARY_GDK); - Linker.link(gdk_gl_context_clear_current, "gdk_gl_context_clear_current", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_current, "gdk_gl_context_get_current", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_debug_enabled, "gdk_gl_context_get_debug_enabled", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_display, "gdk_gl_context_get_display", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_forward_compatible, "gdk_gl_context_get_forward_compatible", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_required_version, "gdk_gl_context_get_required_version", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_shared_context, "gdk_gl_context_get_shared_context", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_surface, "gdk_gl_context_get_surface", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_use_es, "gdk_gl_context_get_use_es", LIBRARY_GDK); - Linker.link(gdk_gl_context_get_version, "gdk_gl_context_get_version", LIBRARY_GDK); - Linker.link(gdk_gl_context_is_legacy, "gdk_gl_context_is_legacy", LIBRARY_GDK); - Linker.link(gdk_gl_context_make_current, "gdk_gl_context_make_current", LIBRARY_GDK); - Linker.link(gdk_gl_context_realize, "gdk_gl_context_realize", LIBRARY_GDK); - Linker.link(gdk_gl_context_set_debug_enabled, "gdk_gl_context_set_debug_enabled", LIBRARY_GDK); - Linker.link(gdk_gl_context_set_forward_compatible, "gdk_gl_context_set_forward_compatible", LIBRARY_GDK); - Linker.link(gdk_gl_context_set_required_version, "gdk_gl_context_set_required_version", LIBRARY_GDK); - Linker.link(gdk_gl_context_set_use_es, "gdk_gl_context_set_use_es", LIBRARY_GDK); - - // gdk.GLTexture - - Linker.link(gdk_gl_texture_get_type, "gdk_gl_texture_get_type", LIBRARY_GDK); - Linker.link(gdk_gl_texture_new, "gdk_gl_texture_new", LIBRARY_GDK); - Linker.link(gdk_gl_texture_release, "gdk_gl_texture_release", LIBRARY_GDK); - - // gdk.GrabBrokenEvent - - Linker.link(gdk_grab_broken_event_get_type, "gdk_grab_broken_event_get_type", LIBRARY_GDK); - Linker.link(gdk_grab_broken_event_get_grab_surface, "gdk_grab_broken_event_get_grab_surface", LIBRARY_GDK); - Linker.link(gdk_grab_broken_event_get_implicit, "gdk_grab_broken_event_get_implicit", LIBRARY_GDK); - - // gdk.KeyEvent - - Linker.link(gdk_key_event_get_type, "gdk_key_event_get_type", LIBRARY_GDK); - Linker.link(gdk_key_event_get_consumed_modifiers, "gdk_key_event_get_consumed_modifiers", LIBRARY_GDK); - Linker.link(gdk_key_event_get_keycode, "gdk_key_event_get_keycode", LIBRARY_GDK); - Linker.link(gdk_key_event_get_keyval, "gdk_key_event_get_keyval", LIBRARY_GDK); - Linker.link(gdk_key_event_get_layout, "gdk_key_event_get_layout", LIBRARY_GDK); - Linker.link(gdk_key_event_get_level, "gdk_key_event_get_level", LIBRARY_GDK); - Linker.link(gdk_key_event_get_match, "gdk_key_event_get_match", LIBRARY_GDK); - Linker.link(gdk_key_event_is_modifier, "gdk_key_event_is_modifier", LIBRARY_GDK); - Linker.link(gdk_key_event_matches, "gdk_key_event_matches", LIBRARY_GDK); - - // gdk.MemoryTexture - - Linker.link(gdk_memory_texture_get_type, "gdk_memory_texture_get_type", LIBRARY_GDK); - Linker.link(gdk_memory_texture_new, "gdk_memory_texture_new", LIBRARY_GDK); - - // gdk.MonitorGdk - - Linker.link(gdk_monitor_get_type, "gdk_monitor_get_type", LIBRARY_GDK); - Linker.link(gdk_monitor_get_connector, "gdk_monitor_get_connector", LIBRARY_GDK); - Linker.link(gdk_monitor_get_display, "gdk_monitor_get_display", LIBRARY_GDK); - Linker.link(gdk_monitor_get_geometry, "gdk_monitor_get_geometry", LIBRARY_GDK); - Linker.link(gdk_monitor_get_height_mm, "gdk_monitor_get_height_mm", LIBRARY_GDK); - Linker.link(gdk_monitor_get_manufacturer, "gdk_monitor_get_manufacturer", LIBRARY_GDK); - Linker.link(gdk_monitor_get_model, "gdk_monitor_get_model", LIBRARY_GDK); - Linker.link(gdk_monitor_get_refresh_rate, "gdk_monitor_get_refresh_rate", LIBRARY_GDK); - Linker.link(gdk_monitor_get_scale_factor, "gdk_monitor_get_scale_factor", LIBRARY_GDK); - Linker.link(gdk_monitor_get_subpixel_layout, "gdk_monitor_get_subpixel_layout", LIBRARY_GDK); - Linker.link(gdk_monitor_get_width_mm, "gdk_monitor_get_width_mm", LIBRARY_GDK); - Linker.link(gdk_monitor_is_valid, "gdk_monitor_is_valid", LIBRARY_GDK); - - // gdk.MotionEvent - - Linker.link(gdk_motion_event_get_type, "gdk_motion_event_get_type", LIBRARY_GDK); - - // gdk.PadEvent - - Linker.link(gdk_pad_event_get_type, "gdk_pad_event_get_type", LIBRARY_GDK); - Linker.link(gdk_pad_event_get_axis_value, "gdk_pad_event_get_axis_value", LIBRARY_GDK); - Linker.link(gdk_pad_event_get_button, "gdk_pad_event_get_button", LIBRARY_GDK); - Linker.link(gdk_pad_event_get_group_mode, "gdk_pad_event_get_group_mode", LIBRARY_GDK); - - // gdk.Paintable - - Linker.link(gdk_paintable_get_type, "gdk_paintable_get_type", LIBRARY_GDK); - Linker.link(gdk_paintable_new_empty, "gdk_paintable_new_empty", LIBRARY_GDK); - Linker.link(gdk_paintable_compute_concrete_size, "gdk_paintable_compute_concrete_size", LIBRARY_GDK); - Linker.link(gdk_paintable_get_current_image, "gdk_paintable_get_current_image", LIBRARY_GDK); - Linker.link(gdk_paintable_get_flags, "gdk_paintable_get_flags", LIBRARY_GDK); - Linker.link(gdk_paintable_get_intrinsic_aspect_ratio, "gdk_paintable_get_intrinsic_aspect_ratio", LIBRARY_GDK); - Linker.link(gdk_paintable_get_intrinsic_height, "gdk_paintable_get_intrinsic_height", LIBRARY_GDK); - Linker.link(gdk_paintable_get_intrinsic_width, "gdk_paintable_get_intrinsic_width", LIBRARY_GDK); - Linker.link(gdk_paintable_invalidate_contents, "gdk_paintable_invalidate_contents", LIBRARY_GDK); - Linker.link(gdk_paintable_invalidate_size, "gdk_paintable_invalidate_size", LIBRARY_GDK); - Linker.link(gdk_paintable_snapshot, "gdk_paintable_snapshot", LIBRARY_GDK); - - // gdk.Popup - - Linker.link(gdk_popup_get_type, "gdk_popup_get_type", LIBRARY_GDK); - Linker.link(gdk_popup_get_autohide, "gdk_popup_get_autohide", LIBRARY_GDK); - Linker.link(gdk_popup_get_parent, "gdk_popup_get_parent", LIBRARY_GDK); - Linker.link(gdk_popup_get_position_x, "gdk_popup_get_position_x", LIBRARY_GDK); - Linker.link(gdk_popup_get_position_y, "gdk_popup_get_position_y", LIBRARY_GDK); - Linker.link(gdk_popup_get_rect_anchor, "gdk_popup_get_rect_anchor", LIBRARY_GDK); - Linker.link(gdk_popup_get_surface_anchor, "gdk_popup_get_surface_anchor", LIBRARY_GDK); - Linker.link(gdk_popup_present, "gdk_popup_present", LIBRARY_GDK); - - // gdk.PopupLayout - - Linker.link(gdk_popup_layout_get_type, "gdk_popup_layout_get_type", LIBRARY_GDK); - Linker.link(gdk_popup_layout_new, "gdk_popup_layout_new", LIBRARY_GDK); - Linker.link(gdk_popup_layout_copy, "gdk_popup_layout_copy", LIBRARY_GDK); - Linker.link(gdk_popup_layout_equal, "gdk_popup_layout_equal", LIBRARY_GDK); - Linker.link(gdk_popup_layout_get_anchor_hints, "gdk_popup_layout_get_anchor_hints", LIBRARY_GDK); - Linker.link(gdk_popup_layout_get_anchor_rect, "gdk_popup_layout_get_anchor_rect", LIBRARY_GDK); - Linker.link(gdk_popup_layout_get_offset, "gdk_popup_layout_get_offset", LIBRARY_GDK); - Linker.link(gdk_popup_layout_get_rect_anchor, "gdk_popup_layout_get_rect_anchor", LIBRARY_GDK); - Linker.link(gdk_popup_layout_get_shadow_width, "gdk_popup_layout_get_shadow_width", LIBRARY_GDK); - Linker.link(gdk_popup_layout_get_surface_anchor, "gdk_popup_layout_get_surface_anchor", LIBRARY_GDK); - Linker.link(gdk_popup_layout_ref, "gdk_popup_layout_ref", LIBRARY_GDK); - Linker.link(gdk_popup_layout_set_anchor_hints, "gdk_popup_layout_set_anchor_hints", LIBRARY_GDK); - Linker.link(gdk_popup_layout_set_anchor_rect, "gdk_popup_layout_set_anchor_rect", LIBRARY_GDK); - Linker.link(gdk_popup_layout_set_offset, "gdk_popup_layout_set_offset", LIBRARY_GDK); - Linker.link(gdk_popup_layout_set_rect_anchor, "gdk_popup_layout_set_rect_anchor", LIBRARY_GDK); - Linker.link(gdk_popup_layout_set_shadow_width, "gdk_popup_layout_set_shadow_width", LIBRARY_GDK); - Linker.link(gdk_popup_layout_set_surface_anchor, "gdk_popup_layout_set_surface_anchor", LIBRARY_GDK); - Linker.link(gdk_popup_layout_unref, "gdk_popup_layout_unref", LIBRARY_GDK); - - // gdk.ProximityEvent - - Linker.link(gdk_proximity_event_get_type, "gdk_proximity_event_get_type", LIBRARY_GDK); - - // gdk.RGBA - - Linker.link(gdk_rgba_get_type, "gdk_rgba_get_type", LIBRARY_GDK); - Linker.link(gdk_rgba_copy, "gdk_rgba_copy", LIBRARY_GDK); - Linker.link(gdk_rgba_equal, "gdk_rgba_equal", LIBRARY_GDK); - Linker.link(gdk_rgba_free, "gdk_rgba_free", LIBRARY_GDK); - Linker.link(gdk_rgba_hash, "gdk_rgba_hash", LIBRARY_GDK); - Linker.link(gdk_rgba_is_clear, "gdk_rgba_is_clear", LIBRARY_GDK); - Linker.link(gdk_rgba_is_opaque, "gdk_rgba_is_opaque", LIBRARY_GDK); - Linker.link(gdk_rgba_parse, "gdk_rgba_parse", LIBRARY_GDK); - Linker.link(gdk_rgba_to_string, "gdk_rgba_to_string", LIBRARY_GDK); - - // gdk.Rectangle - - Linker.link(gdk_rectangle_get_type, "gdk_rectangle_get_type", LIBRARY_GDK); - Linker.link(gdk_rectangle_contains_point, "gdk_rectangle_contains_point", LIBRARY_GDK); - Linker.link(gdk_rectangle_equal, "gdk_rectangle_equal", LIBRARY_GDK); - Linker.link(gdk_rectangle_intersect, "gdk_rectangle_intersect", LIBRARY_GDK); - Linker.link(gdk_rectangle_union, "gdk_rectangle_union", LIBRARY_GDK); - - // gdk.ScrollEvent - - Linker.link(gdk_scroll_event_get_type, "gdk_scroll_event_get_type", LIBRARY_GDK); - Linker.link(gdk_scroll_event_get_deltas, "gdk_scroll_event_get_deltas", LIBRARY_GDK); - Linker.link(gdk_scroll_event_get_direction, "gdk_scroll_event_get_direction", LIBRARY_GDK); - Linker.link(gdk_scroll_event_is_stop, "gdk_scroll_event_is_stop", LIBRARY_GDK); - - // gdk.Seat - - Linker.link(gdk_seat_get_type, "gdk_seat_get_type", LIBRARY_GDK); - Linker.link(gdk_seat_get_capabilities, "gdk_seat_get_capabilities", LIBRARY_GDK); - Linker.link(gdk_seat_get_devices, "gdk_seat_get_devices", LIBRARY_GDK); - Linker.link(gdk_seat_get_display, "gdk_seat_get_display", LIBRARY_GDK); - Linker.link(gdk_seat_get_keyboard, "gdk_seat_get_keyboard", LIBRARY_GDK); - Linker.link(gdk_seat_get_pointer, "gdk_seat_get_pointer", LIBRARY_GDK); - Linker.link(gdk_seat_get_tools, "gdk_seat_get_tools", LIBRARY_GDK); - - // gdk.Snapshot - - Linker.link(gdk_snapshot_get_type, "gdk_snapshot_get_type", LIBRARY_GDK); - - // gdk.Surface - - Linker.link(gdk_surface_get_type, "gdk_surface_get_type", LIBRARY_GDK); - Linker.link(gdk_surface_new_popup, "gdk_surface_new_popup", LIBRARY_GDK); - Linker.link(gdk_surface_new_toplevel, "gdk_surface_new_toplevel", LIBRARY_GDK); - Linker.link(gdk_surface_beep, "gdk_surface_beep", LIBRARY_GDK); - Linker.link(gdk_surface_create_cairo_context, "gdk_surface_create_cairo_context", LIBRARY_GDK); - Linker.link(gdk_surface_create_gl_context, "gdk_surface_create_gl_context", LIBRARY_GDK); - Linker.link(gdk_surface_create_similar_surface, "gdk_surface_create_similar_surface", LIBRARY_GDK); - Linker.link(gdk_surface_create_vulkan_context, "gdk_surface_create_vulkan_context", LIBRARY_GDK); - Linker.link(gdk_surface_destroy, "gdk_surface_destroy", LIBRARY_GDK); - Linker.link(gdk_surface_get_cursor, "gdk_surface_get_cursor", LIBRARY_GDK); - Linker.link(gdk_surface_get_device_cursor, "gdk_surface_get_device_cursor", LIBRARY_GDK); - Linker.link(gdk_surface_get_device_position, "gdk_surface_get_device_position", LIBRARY_GDK); - Linker.link(gdk_surface_get_display, "gdk_surface_get_display", LIBRARY_GDK); - Linker.link(gdk_surface_get_frame_clock, "gdk_surface_get_frame_clock", LIBRARY_GDK); - Linker.link(gdk_surface_get_height, "gdk_surface_get_height", LIBRARY_GDK); - Linker.link(gdk_surface_get_mapped, "gdk_surface_get_mapped", LIBRARY_GDK); - Linker.link(gdk_surface_get_scale_factor, "gdk_surface_get_scale_factor", LIBRARY_GDK); - Linker.link(gdk_surface_get_width, "gdk_surface_get_width", LIBRARY_GDK); - Linker.link(gdk_surface_hide, "gdk_surface_hide", LIBRARY_GDK); - Linker.link(gdk_surface_is_destroyed, "gdk_surface_is_destroyed", LIBRARY_GDK); - Linker.link(gdk_surface_queue_render, "gdk_surface_queue_render", LIBRARY_GDK); - Linker.link(gdk_surface_request_layout, "gdk_surface_request_layout", LIBRARY_GDK); - Linker.link(gdk_surface_set_cursor, "gdk_surface_set_cursor", LIBRARY_GDK); - Linker.link(gdk_surface_set_device_cursor, "gdk_surface_set_device_cursor", LIBRARY_GDK); - Linker.link(gdk_surface_set_input_region, "gdk_surface_set_input_region", LIBRARY_GDK); - Linker.link(gdk_surface_set_opaque_region, "gdk_surface_set_opaque_region", LIBRARY_GDK); - Linker.link(gdk_surface_translate_coordinates, "gdk_surface_translate_coordinates", LIBRARY_GDK); - - // gdk.Texture - - Linker.link(gdk_texture_get_type, "gdk_texture_get_type", LIBRARY_GDK); - Linker.link(gdk_texture_new_for_pixbuf, "gdk_texture_new_for_pixbuf", LIBRARY_GDK); - Linker.link(gdk_texture_new_from_file, "gdk_texture_new_from_file", LIBRARY_GDK); - Linker.link(gdk_texture_new_from_resource, "gdk_texture_new_from_resource", LIBRARY_GDK); - Linker.link(gdk_texture_download, "gdk_texture_download", LIBRARY_GDK); - Linker.link(gdk_texture_get_height, "gdk_texture_get_height", LIBRARY_GDK); - Linker.link(gdk_texture_get_width, "gdk_texture_get_width", LIBRARY_GDK); - Linker.link(gdk_texture_save_to_png, "gdk_texture_save_to_png", LIBRARY_GDK); - - // gdk.Toplevel - - Linker.link(gdk_toplevel_get_type, "gdk_toplevel_get_type", LIBRARY_GDK); - Linker.link(gdk_toplevel_begin_move, "gdk_toplevel_begin_move", LIBRARY_GDK); - Linker.link(gdk_toplevel_begin_resize, "gdk_toplevel_begin_resize", LIBRARY_GDK); - Linker.link(gdk_toplevel_focus, "gdk_toplevel_focus", LIBRARY_GDK); - Linker.link(gdk_toplevel_get_state, "gdk_toplevel_get_state", LIBRARY_GDK); - Linker.link(gdk_toplevel_inhibit_system_shortcuts, "gdk_toplevel_inhibit_system_shortcuts", LIBRARY_GDK); - Linker.link(gdk_toplevel_lower, "gdk_toplevel_lower", LIBRARY_GDK); - Linker.link(gdk_toplevel_minimize, "gdk_toplevel_minimize", LIBRARY_GDK); - Linker.link(gdk_toplevel_present, "gdk_toplevel_present", LIBRARY_GDK); - Linker.link(gdk_toplevel_restore_system_shortcuts, "gdk_toplevel_restore_system_shortcuts", LIBRARY_GDK); - Linker.link(gdk_toplevel_set_decorated, "gdk_toplevel_set_decorated", LIBRARY_GDK); - Linker.link(gdk_toplevel_set_deletable, "gdk_toplevel_set_deletable", LIBRARY_GDK); - Linker.link(gdk_toplevel_set_icon_list, "gdk_toplevel_set_icon_list", LIBRARY_GDK); - Linker.link(gdk_toplevel_set_modal, "gdk_toplevel_set_modal", LIBRARY_GDK); - Linker.link(gdk_toplevel_set_startup_id, "gdk_toplevel_set_startup_id", LIBRARY_GDK); - Linker.link(gdk_toplevel_set_title, "gdk_toplevel_set_title", LIBRARY_GDK); - Linker.link(gdk_toplevel_set_transient_for, "gdk_toplevel_set_transient_for", LIBRARY_GDK); - Linker.link(gdk_toplevel_show_window_menu, "gdk_toplevel_show_window_menu", LIBRARY_GDK); - Linker.link(gdk_toplevel_supports_edge_constraints, "gdk_toplevel_supports_edge_constraints", LIBRARY_GDK); - - // gdk.ToplevelLayout - - Linker.link(gdk_toplevel_layout_get_type, "gdk_toplevel_layout_get_type", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_new, "gdk_toplevel_layout_new", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_copy, "gdk_toplevel_layout_copy", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_equal, "gdk_toplevel_layout_equal", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_get_fullscreen, "gdk_toplevel_layout_get_fullscreen", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_get_fullscreen_monitor, "gdk_toplevel_layout_get_fullscreen_monitor", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_get_maximized, "gdk_toplevel_layout_get_maximized", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_get_resizable, "gdk_toplevel_layout_get_resizable", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_ref, "gdk_toplevel_layout_ref", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_set_fullscreen, "gdk_toplevel_layout_set_fullscreen", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_set_maximized, "gdk_toplevel_layout_set_maximized", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_set_resizable, "gdk_toplevel_layout_set_resizable", LIBRARY_GDK); - Linker.link(gdk_toplevel_layout_unref, "gdk_toplevel_layout_unref", LIBRARY_GDK); - - // gdk.ToplevelSize - - Linker.link(gdk_toplevel_size_get_bounds, "gdk_toplevel_size_get_bounds", LIBRARY_GDK); - Linker.link(gdk_toplevel_size_set_min_size, "gdk_toplevel_size_set_min_size", LIBRARY_GDK); - Linker.link(gdk_toplevel_size_set_shadow_width, "gdk_toplevel_size_set_shadow_width", LIBRARY_GDK); - Linker.link(gdk_toplevel_size_set_size, "gdk_toplevel_size_set_size", LIBRARY_GDK); - - // gdk.TouchEvent - - Linker.link(gdk_touch_event_get_type, "gdk_touch_event_get_type", LIBRARY_GDK); - Linker.link(gdk_touch_event_get_emulating_pointer, "gdk_touch_event_get_emulating_pointer", LIBRARY_GDK); - - // gdk.TouchpadEvent - - Linker.link(gdk_touchpad_event_get_type, "gdk_touchpad_event_get_type", LIBRARY_GDK); - Linker.link(gdk_touchpad_event_get_deltas, "gdk_touchpad_event_get_deltas", LIBRARY_GDK); - Linker.link(gdk_touchpad_event_get_gesture_phase, "gdk_touchpad_event_get_gesture_phase", LIBRARY_GDK); - Linker.link(gdk_touchpad_event_get_n_fingers, "gdk_touchpad_event_get_n_fingers", LIBRARY_GDK); - Linker.link(gdk_touchpad_event_get_pinch_angle_delta, "gdk_touchpad_event_get_pinch_angle_delta", LIBRARY_GDK); - Linker.link(gdk_touchpad_event_get_pinch_scale, "gdk_touchpad_event_get_pinch_scale", LIBRARY_GDK); - - // gdk.VulkanContext - - Linker.link(gdk_vulkan_context_get_type, "gdk_vulkan_context_get_type", LIBRARY_GDK); -} - -__gshared extern(C) -{ - - // gdk.AppLaunchContext - - GType function() c_gdk_app_launch_context_get_type; - GdkDisplay* function(GdkAppLaunchContext* context) c_gdk_app_launch_context_get_display; - void function(GdkAppLaunchContext* context, int desktop) c_gdk_app_launch_context_set_desktop; - void function(GdkAppLaunchContext* context, GIcon* icon) c_gdk_app_launch_context_set_icon; - void function(GdkAppLaunchContext* context, const(char)* iconName) c_gdk_app_launch_context_set_icon_name; - void function(GdkAppLaunchContext* context, uint timestamp) c_gdk_app_launch_context_set_timestamp; - - // gdk.ButtonEvent - - GType function() c_gdk_button_event_get_type; - uint function(GdkEvent* event) c_gdk_button_event_get_button; - - // gdk.CairoContext - - GType function() c_gdk_cairo_context_get_type; - cairo_t* function(GdkCairoContext* self) c_gdk_cairo_context_cairo_create; - - // gdk.Clipboard - - GType function() c_gdk_clipboard_get_type; - GdkContentProvider* function(GdkClipboard* clipboard) c_gdk_clipboard_get_content; - GdkDisplay* function(GdkClipboard* clipboard) c_gdk_clipboard_get_display; - GdkContentFormats* function(GdkClipboard* clipboard) c_gdk_clipboard_get_formats; - int function(GdkClipboard* clipboard) c_gdk_clipboard_is_local; - void function(GdkClipboard* clipboard, char** mimeTypes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_clipboard_read_async; - GInputStream* function(GdkClipboard* clipboard, GAsyncResult* result, char** outMimeType, GError** err) c_gdk_clipboard_read_finish; - void function(GdkClipboard* clipboard, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_clipboard_read_text_async; - char* function(GdkClipboard* clipboard, GAsyncResult* result, GError** err) c_gdk_clipboard_read_text_finish; - void function(GdkClipboard* clipboard, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_clipboard_read_texture_async; - GdkTexture* function(GdkClipboard* clipboard, GAsyncResult* result, GError** err) c_gdk_clipboard_read_texture_finish; - void function(GdkClipboard* clipboard, GType type, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_clipboard_read_value_async; - GValue* function(GdkClipboard* clipboard, GAsyncResult* result, GError** err) c_gdk_clipboard_read_value_finish; - void function(GdkClipboard* clipboard, GType type, ... ) c_gdk_clipboard_set; - int function(GdkClipboard* clipboard, GdkContentProvider* provider) c_gdk_clipboard_set_content; - void function(GdkClipboard* clipboard, const(char)* text) c_gdk_clipboard_set_text; - void function(GdkClipboard* clipboard, GdkTexture* texture) c_gdk_clipboard_set_texture; - void function(GdkClipboard* clipboard, GType type, void* args) c_gdk_clipboard_set_valist; - void function(GdkClipboard* clipboard, GValue* value) c_gdk_clipboard_set_value; - void function(GdkClipboard* clipboard, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_clipboard_store_async; - int function(GdkClipboard* clipboard, GAsyncResult* result, GError** err) c_gdk_clipboard_store_finish; - - // gdk.ContentDeserializer - - GType function() c_gdk_content_deserializer_get_type; - GCancellable* function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_cancellable; - GType function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_gtype; - GInputStream* function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_input_stream; - const(char)* function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_mime_type; - int function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_priority; - void* function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_task_data; - void* function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_user_data; - GValue* function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_get_value; - void function(GdkContentDeserializer* deserializer, GError* error) c_gdk_content_deserializer_return_error; - void function(GdkContentDeserializer* deserializer) c_gdk_content_deserializer_return_success; - void function(GdkContentDeserializer* deserializer, void* data, GDestroyNotify notify) c_gdk_content_deserializer_set_task_data; - - // gdk.ContentFormats - - GType function() c_gdk_content_formats_get_type; - GdkContentFormats* function(char** mimeTypes, uint nMimeTypes) c_gdk_content_formats_new; - GdkContentFormats* function(GType type) c_gdk_content_formats_new_for_gtype; - int function(GdkContentFormats* formats, GType type) c_gdk_content_formats_contain_gtype; - int function(GdkContentFormats* formats, const(char)* mimeType) c_gdk_content_formats_contain_mime_type; - GType* function(GdkContentFormats* formats, size_t* nGtypes) c_gdk_content_formats_get_gtypes; - char** function(GdkContentFormats* formats, size_t* nMimeTypes) c_gdk_content_formats_get_mime_types; - int function(GdkContentFormats* first, GdkContentFormats* second) c_gdk_content_formats_match; - GType function(GdkContentFormats* first, GdkContentFormats* second) c_gdk_content_formats_match_gtype; - const(char)* function(GdkContentFormats* first, GdkContentFormats* second) c_gdk_content_formats_match_mime_type; - void function(GdkContentFormats* formats, GString* string_) c_gdk_content_formats_print; - GdkContentFormats* function(GdkContentFormats* formats) c_gdk_content_formats_ref; - char* function(GdkContentFormats* formats) c_gdk_content_formats_to_string; - GdkContentFormats* function(GdkContentFormats* first, GdkContentFormats* second) c_gdk_content_formats_union; - GdkContentFormats* function(GdkContentFormats* formats) c_gdk_content_formats_union_deserialize_gtypes; - GdkContentFormats* function(GdkContentFormats* formats) c_gdk_content_formats_union_deserialize_mime_types; - GdkContentFormats* function(GdkContentFormats* formats) c_gdk_content_formats_union_serialize_gtypes; - GdkContentFormats* function(GdkContentFormats* formats) c_gdk_content_formats_union_serialize_mime_types; - void function(GdkContentFormats* formats) c_gdk_content_formats_unref; - - // gdk.ContentFormatsBuilder - - GType function() c_gdk_content_formats_builder_get_type; - GdkContentFormatsBuilder* function() c_gdk_content_formats_builder_new; - void function(GdkContentFormatsBuilder* builder, GdkContentFormats* formats) c_gdk_content_formats_builder_add_formats; - void function(GdkContentFormatsBuilder* builder, GType type) c_gdk_content_formats_builder_add_gtype; - void function(GdkContentFormatsBuilder* builder, const(char)* mimeType) c_gdk_content_formats_builder_add_mime_type; - GdkContentFormats* function(GdkContentFormatsBuilder* builder) c_gdk_content_formats_builder_free_to_formats; - GdkContentFormatsBuilder* function(GdkContentFormatsBuilder* builder) c_gdk_content_formats_builder_ref; - GdkContentFormats* function(GdkContentFormatsBuilder* builder) c_gdk_content_formats_builder_to_formats; - void function(GdkContentFormatsBuilder* builder) c_gdk_content_formats_builder_unref; - - // gdk.ContentProvider - - GType function() c_gdk_content_provider_get_type; - GdkContentProvider* function(const(char)* mimeType, GBytes* bytes) c_gdk_content_provider_new_for_bytes; - GdkContentProvider* function(GValue* value) c_gdk_content_provider_new_for_value; - GdkContentProvider* function(GType type, ... ) c_gdk_content_provider_new_typed; - GdkContentProvider* function(GdkContentProvider** providers, size_t nProviders) c_gdk_content_provider_new_union; - void function(GdkContentProvider* provider) c_gdk_content_provider_content_changed; - int function(GdkContentProvider* provider, GValue* value, GError** err) c_gdk_content_provider_get_value; - GdkContentFormats* function(GdkContentProvider* provider) c_gdk_content_provider_ref_formats; - GdkContentFormats* function(GdkContentProvider* provider) c_gdk_content_provider_ref_storable_formats; - void function(GdkContentProvider* provider, const(char)* mimeType, GOutputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_content_provider_write_mime_type_async; - int function(GdkContentProvider* provider, GAsyncResult* result, GError** err) c_gdk_content_provider_write_mime_type_finish; - - // gdk.ContentSerializer - - GType function() c_gdk_content_serializer_get_type; - GCancellable* function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_cancellable; - GType function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_gtype; - const(char)* function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_mime_type; - GOutputStream* function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_output_stream; - int function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_priority; - void* function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_task_data; - void* function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_user_data; - GValue* function(GdkContentSerializer* serializer) c_gdk_content_serializer_get_value; - void function(GdkContentSerializer* serializer, GError* error) c_gdk_content_serializer_return_error; - void function(GdkContentSerializer* serializer) c_gdk_content_serializer_return_success; - void function(GdkContentSerializer* serializer, void* data, GDestroyNotify notify) c_gdk_content_serializer_set_task_data; - - // gdk.CrossingEvent - - GType function() c_gdk_crossing_event_get_type; - GdkNotifyType function(GdkEvent* event) c_gdk_crossing_event_get_detail; - int function(GdkEvent* event) c_gdk_crossing_event_get_focus; - GdkCrossingMode function(GdkEvent* event) c_gdk_crossing_event_get_mode; - - // gdk.Cursor - - GType function() c_gdk_cursor_get_type; - GdkCursor* function(const(char)* name, GdkCursor* fallback) c_gdk_cursor_new_from_name; - GdkCursor* function(GdkTexture* texture, int hotspotX, int hotspotY, GdkCursor* fallback) c_gdk_cursor_new_from_texture; - GdkCursor* function(GdkCursor* cursor) c_gdk_cursor_get_fallback; - int function(GdkCursor* cursor) c_gdk_cursor_get_hotspot_x; - int function(GdkCursor* cursor) c_gdk_cursor_get_hotspot_y; - const(char)* function(GdkCursor* cursor) c_gdk_cursor_get_name; - GdkTexture* function(GdkCursor* cursor) c_gdk_cursor_get_texture; - - // gdk.DNDEvent - - GType function() c_gdk_dnd_event_get_type; - GdkDrop* function(GdkEvent* event) c_gdk_dnd_event_get_drop; - - // gdk.DeleteEvent - - GType function() c_gdk_delete_event_get_type; - - // gdk.Device - - GType function() c_gdk_device_get_type; - int function(GdkDevice* device) c_gdk_device_get_caps_lock_state; - GdkDeviceTool* function(GdkDevice* device) c_gdk_device_get_device_tool; - PangoDirection function(GdkDevice* device) c_gdk_device_get_direction; - GdkDisplay* function(GdkDevice* device) c_gdk_device_get_display; - int function(GdkDevice* device) c_gdk_device_get_has_cursor; - GdkModifierType function(GdkDevice* device) c_gdk_device_get_modifier_state; - const(char)* function(GdkDevice* device) c_gdk_device_get_name; - int function(GdkDevice* device) c_gdk_device_get_num_lock_state; - uint function(GdkDevice* device) c_gdk_device_get_num_touches; - const(char)* function(GdkDevice* device) c_gdk_device_get_product_id; - int function(GdkDevice* device) c_gdk_device_get_scroll_lock_state; - GdkSeat* function(GdkDevice* device) c_gdk_device_get_seat; - GdkInputSource function(GdkDevice* device) c_gdk_device_get_source; - GdkSurface* function(GdkDevice* device, double* winX, double* winY) c_gdk_device_get_surface_at_position; - uint function(GdkDevice* device) c_gdk_device_get_timestamp; - const(char)* function(GdkDevice* device) c_gdk_device_get_vendor_id; - int function(GdkDevice* device) c_gdk_device_has_bidi_layouts; - - // gdk.DevicePad - - GType function() c_gdk_device_pad_get_type; - int function(GdkDevicePad* pad, GdkDevicePadFeature feature, int featureIdx) c_gdk_device_pad_get_feature_group; - int function(GdkDevicePad* pad, int groupIdx) c_gdk_device_pad_get_group_n_modes; - int function(GdkDevicePad* pad, GdkDevicePadFeature feature) c_gdk_device_pad_get_n_features; - int function(GdkDevicePad* pad) c_gdk_device_pad_get_n_groups; - - // gdk.DeviceTool - - GType function() c_gdk_device_tool_get_type; - GdkAxisFlags function(GdkDeviceTool* tool) c_gdk_device_tool_get_axes; - ulong function(GdkDeviceTool* tool) c_gdk_device_tool_get_hardware_id; - ulong function(GdkDeviceTool* tool) c_gdk_device_tool_get_serial; - GdkDeviceToolType function(GdkDeviceTool* tool) c_gdk_device_tool_get_tool_type; - - // gdk.Display - - GType function() c_gdk_display_get_type; - GdkDisplay* function() c_gdk_display_get_default; - GdkDisplay* function(const(char)* displayName) c_gdk_display_open; - void function(GdkDisplay* display) c_gdk_display_beep; - void function(GdkDisplay* display) c_gdk_display_close; - int function(GdkDisplay* display, GdkDevice* device) c_gdk_display_device_is_grabbed; - void function(GdkDisplay* display) c_gdk_display_flush; - GdkAppLaunchContext* function(GdkDisplay* display) c_gdk_display_get_app_launch_context; - GdkClipboard* function(GdkDisplay* display) c_gdk_display_get_clipboard; - GdkSeat* function(GdkDisplay* display) c_gdk_display_get_default_seat; - GdkMonitor* function(GdkDisplay* display, GdkSurface* surface) c_gdk_display_get_monitor_at_surface; - GListModel* function(GdkDisplay* self) c_gdk_display_get_monitors; - const(char)* function(GdkDisplay* display) c_gdk_display_get_name; - GdkClipboard* function(GdkDisplay* display) c_gdk_display_get_primary_clipboard; - int function(GdkDisplay* display, const(char)* name, GValue* value) c_gdk_display_get_setting; - const(char)* function(GdkDisplay* display) c_gdk_display_get_startup_notification_id; - int function(GdkDisplay* display) c_gdk_display_is_closed; - int function(GdkDisplay* display) c_gdk_display_is_composited; - int function(GdkDisplay* display) c_gdk_display_is_rgba; - GList* function(GdkDisplay* display) c_gdk_display_list_seats; - int function(GdkDisplay* display, uint keycode, GdkKeymapKey** keys, uint** keyvals, int* nEntries) c_gdk_display_map_keycode; - int function(GdkDisplay* display, uint keyval, GdkKeymapKey** keys, int* nKeys) c_gdk_display_map_keyval; - void function(GdkDisplay* display, const(char)* startupId) c_gdk_display_notify_startup_complete; - void function(GdkDisplay* display, GdkEvent* event) c_gdk_display_put_event; - int function(GdkDisplay* display) c_gdk_display_supports_input_shapes; - void function(GdkDisplay* display) c_gdk_display_sync; - int function(GdkDisplay* display, uint keycode, GdkModifierType state, int group, uint* keyval, int* effectiveGroup, int* level, GdkModifierType* consumed) c_gdk_display_translate_key; - - // gdk.DisplayManager - - GType function() c_gdk_display_manager_get_type; - GdkDisplayManager* function() c_gdk_display_manager_get; - GdkDisplay* function(GdkDisplayManager* manager) c_gdk_display_manager_get_default_display; - GSList* function(GdkDisplayManager* manager) c_gdk_display_manager_list_displays; - GdkDisplay* function(GdkDisplayManager* manager, const(char)* name) c_gdk_display_manager_open_display; - void function(GdkDisplayManager* manager, GdkDisplay* display) c_gdk_display_manager_set_default_display; - - // gdk.Drag - - GType function() c_gdk_drag_get_type; - GdkDrag* function(GdkSurface* surface, GdkDevice* device, GdkContentProvider* content, GdkDragAction actions, double dx, double dy) c_gdk_drag_begin; - void function(GdkDrag* drag, int success) c_gdk_drag_drop_done; - GdkDragAction function(GdkDrag* drag) c_gdk_drag_get_actions; - GdkContentProvider* function(GdkDrag* drag) c_gdk_drag_get_content; - GdkDevice* function(GdkDrag* drag) c_gdk_drag_get_device; - GdkDisplay* function(GdkDrag* drag) c_gdk_drag_get_display; - GdkSurface* function(GdkDrag* drag) c_gdk_drag_get_drag_surface; - GdkContentFormats* function(GdkDrag* drag) c_gdk_drag_get_formats; - GdkDragAction function(GdkDrag* drag) c_gdk_drag_get_selected_action; - GdkSurface* function(GdkDrag* drag) c_gdk_drag_get_surface; - void function(GdkDrag* drag, int hotX, int hotY) c_gdk_drag_set_hotspot; - - // gdk.DragSurface - - GType function() c_gdk_drag_surface_get_type; - int function(GdkDragSurface* dragSurface, int width, int height) c_gdk_drag_surface_present; - - // gdk.DrawContext - - GType function() c_gdk_draw_context_get_type; - void function(GdkDrawContext* context, cairo_region_t* region) c_gdk_draw_context_begin_frame; - void function(GdkDrawContext* context) c_gdk_draw_context_end_frame; - GdkDisplay* function(GdkDrawContext* context) c_gdk_draw_context_get_display; - cairo_region_t* function(GdkDrawContext* context) c_gdk_draw_context_get_frame_region; - GdkSurface* function(GdkDrawContext* context) c_gdk_draw_context_get_surface; - int function(GdkDrawContext* context) c_gdk_draw_context_is_in_frame; - - // gdk.Drop - - GType function() c_gdk_drop_get_type; - void function(GdkDrop* self, GdkDragAction action) c_gdk_drop_finish; - GdkDragAction function(GdkDrop* self) c_gdk_drop_get_actions; - GdkDevice* function(GdkDrop* self) c_gdk_drop_get_device; - GdkDisplay* function(GdkDrop* self) c_gdk_drop_get_display; - GdkDrag* function(GdkDrop* self) c_gdk_drop_get_drag; - GdkContentFormats* function(GdkDrop* self) c_gdk_drop_get_formats; - GdkSurface* function(GdkDrop* self) c_gdk_drop_get_surface; - void function(GdkDrop* self, char** mimeTypes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_drop_read_async; - GInputStream* function(GdkDrop* self, GAsyncResult* result, char** outMimeType, GError** err) c_gdk_drop_read_finish; - void function(GdkDrop* self, GType type, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_drop_read_value_async; - GValue* function(GdkDrop* self, GAsyncResult* result, GError** err) c_gdk_drop_read_value_finish; - void function(GdkDrop* self, GdkDragAction actions, GdkDragAction preferred) c_gdk_drop_status; - - // gdk.Event - - GType function() c_gdk_event_get_type; - int function(GdkEvent* event1, GdkEvent* event2, double* angle) c_gdk_events_get_angle; - int function(GdkEvent* event1, GdkEvent* event2, double* x, double* y) c_gdk_events_get_center; - int function(GdkEvent* event1, GdkEvent* event2, double* distance) c_gdk_events_get_distance; - int function(GdkEvent* event, double** axes, uint* nAxes) c_gdk_event_get_axes; - int function(GdkEvent* event, GdkAxisUse axisUse, double* value) c_gdk_event_get_axis; - GdkDevice* function(GdkEvent* event) c_gdk_event_get_device; - GdkDeviceTool* function(GdkEvent* event) c_gdk_event_get_device_tool; - GdkDisplay* function(GdkEvent* event) c_gdk_event_get_display; - GdkEventSequence* function(GdkEvent* event) c_gdk_event_get_event_sequence; - GdkEventType function(GdkEvent* event) c_gdk_event_get_event_type; - GdkTimeCoord* function(GdkEvent* event, uint* outNCoords) c_gdk_event_get_history; - GdkModifierType function(GdkEvent* event) c_gdk_event_get_modifier_state; - int function(GdkEvent* event) c_gdk_event_get_pointer_emulated; - int function(GdkEvent* event, double* x, double* y) c_gdk_event_get_position; - GdkSeat* function(GdkEvent* event) c_gdk_event_get_seat; - GdkSurface* function(GdkEvent* event) c_gdk_event_get_surface; - uint function(GdkEvent* event) c_gdk_event_get_time; - GdkEvent* function(GdkEvent* event) c_gdk_event_ref; - int function(GdkEvent* event) c_gdk_event_triggers_context_menu; - void function(GdkEvent* event) c_gdk_event_unref; - - // gdk.EventSequence - - GType function() c_gdk_event_sequence_get_type; - - // gdk.FocusEvent - - GType function() c_gdk_focus_event_get_type; - int function(GdkEvent* event) c_gdk_focus_event_get_in; - - // gdk.FrameClock - - GType function() c_gdk_frame_clock_get_type; - void function(GdkFrameClock* frameClock) c_gdk_frame_clock_begin_updating; - void function(GdkFrameClock* frameClock) c_gdk_frame_clock_end_updating; - GdkFrameTimings* function(GdkFrameClock* frameClock) c_gdk_frame_clock_get_current_timings; - double function(GdkFrameClock* frameClock) c_gdk_frame_clock_get_fps; - long function(GdkFrameClock* frameClock) c_gdk_frame_clock_get_frame_counter; - long function(GdkFrameClock* frameClock) c_gdk_frame_clock_get_frame_time; - long function(GdkFrameClock* frameClock) c_gdk_frame_clock_get_history_start; - void function(GdkFrameClock* frameClock, long baseTime, long* refreshIntervalReturn, long* presentationTimeReturn) c_gdk_frame_clock_get_refresh_info; - GdkFrameTimings* function(GdkFrameClock* frameClock, long frameCounter) c_gdk_frame_clock_get_timings; - void function(GdkFrameClock* frameClock, GdkFrameClockPhase phase) c_gdk_frame_clock_request_phase; - - // gdk.FrameTimings - - GType function() c_gdk_frame_timings_get_type; - int function(GdkFrameTimings* timings) c_gdk_frame_timings_get_complete; - long function(GdkFrameTimings* timings) c_gdk_frame_timings_get_frame_counter; - long function(GdkFrameTimings* timings) c_gdk_frame_timings_get_frame_time; - long function(GdkFrameTimings* timings) c_gdk_frame_timings_get_predicted_presentation_time; - long function(GdkFrameTimings* timings) c_gdk_frame_timings_get_presentation_time; - long function(GdkFrameTimings* timings) c_gdk_frame_timings_get_refresh_interval; - GdkFrameTimings* function(GdkFrameTimings* timings) c_gdk_frame_timings_ref; - void function(GdkFrameTimings* timings) c_gdk_frame_timings_unref; - - // gdk.GLContext - - GType function() c_gdk_gl_context_get_type; - void function() c_gdk_gl_context_clear_current; - GdkGLContext* function() c_gdk_gl_context_get_current; - int function(GdkGLContext* context) c_gdk_gl_context_get_debug_enabled; - GdkDisplay* function(GdkGLContext* context) c_gdk_gl_context_get_display; - int function(GdkGLContext* context) c_gdk_gl_context_get_forward_compatible; - void function(GdkGLContext* context, int* major, int* minor) c_gdk_gl_context_get_required_version; - GdkGLContext* function(GdkGLContext* context) c_gdk_gl_context_get_shared_context; - GdkSurface* function(GdkGLContext* context) c_gdk_gl_context_get_surface; - int function(GdkGLContext* context) c_gdk_gl_context_get_use_es; - void function(GdkGLContext* context, int* major, int* minor) c_gdk_gl_context_get_version; - int function(GdkGLContext* context) c_gdk_gl_context_is_legacy; - void function(GdkGLContext* context) c_gdk_gl_context_make_current; - int function(GdkGLContext* context, GError** err) c_gdk_gl_context_realize; - void function(GdkGLContext* context, int enabled) c_gdk_gl_context_set_debug_enabled; - void function(GdkGLContext* context, int compatible) c_gdk_gl_context_set_forward_compatible; - void function(GdkGLContext* context, int major, int minor) c_gdk_gl_context_set_required_version; - void function(GdkGLContext* context, int useEs) c_gdk_gl_context_set_use_es; - - // gdk.GLTexture - - GType function() c_gdk_gl_texture_get_type; - GdkTexture* function(GdkGLContext* context, uint id, int width, int height, GDestroyNotify destroy, void* data) c_gdk_gl_texture_new; - void function(GdkGLTexture* self) c_gdk_gl_texture_release; - - // gdk.GrabBrokenEvent - - GType function() c_gdk_grab_broken_event_get_type; - GdkSurface* function(GdkEvent* event) c_gdk_grab_broken_event_get_grab_surface; - int function(GdkEvent* event) c_gdk_grab_broken_event_get_implicit; - - // gdk.KeyEvent - - GType function() c_gdk_key_event_get_type; - GdkModifierType function(GdkEvent* event) c_gdk_key_event_get_consumed_modifiers; - uint function(GdkEvent* event) c_gdk_key_event_get_keycode; - uint function(GdkEvent* event) c_gdk_key_event_get_keyval; - uint function(GdkEvent* event) c_gdk_key_event_get_layout; - uint function(GdkEvent* event) c_gdk_key_event_get_level; - int function(GdkEvent* event, uint* keyval, GdkModifierType* modifiers) c_gdk_key_event_get_match; - int function(GdkEvent* event) c_gdk_key_event_is_modifier; - GdkKeyMatch function(GdkEvent* event, uint keyval, GdkModifierType modifiers) c_gdk_key_event_matches; - - // gdk.MemoryTexture - - GType function() c_gdk_memory_texture_get_type; - GdkTexture* function(int width, int height, GdkMemoryFormat format, GBytes* bytes, size_t stride) c_gdk_memory_texture_new; - - // gdk.MonitorGdk - - GType function() c_gdk_monitor_get_type; - const(char)* function(GdkMonitor* monitor) c_gdk_monitor_get_connector; - GdkDisplay* function(GdkMonitor* monitor) c_gdk_monitor_get_display; - void function(GdkMonitor* monitor, GdkRectangle* geometry) c_gdk_monitor_get_geometry; - int function(GdkMonitor* monitor) c_gdk_monitor_get_height_mm; - const(char)* function(GdkMonitor* monitor) c_gdk_monitor_get_manufacturer; - const(char)* function(GdkMonitor* monitor) c_gdk_monitor_get_model; - int function(GdkMonitor* monitor) c_gdk_monitor_get_refresh_rate; - int function(GdkMonitor* monitor) c_gdk_monitor_get_scale_factor; - GdkSubpixelLayout function(GdkMonitor* monitor) c_gdk_monitor_get_subpixel_layout; - int function(GdkMonitor* monitor) c_gdk_monitor_get_width_mm; - int function(GdkMonitor* monitor) c_gdk_monitor_is_valid; - - // gdk.MotionEvent - - GType function() c_gdk_motion_event_get_type; - - // gdk.PadEvent - - GType function() c_gdk_pad_event_get_type; - void function(GdkEvent* event, uint* index, double* value) c_gdk_pad_event_get_axis_value; - uint function(GdkEvent* event) c_gdk_pad_event_get_button; - void function(GdkEvent* event, uint* group, uint* mode) c_gdk_pad_event_get_group_mode; - - // gdk.Paintable - - GType function() c_gdk_paintable_get_type; - GdkPaintable* function(int intrinsicWidth, int intrinsicHeight) c_gdk_paintable_new_empty; - void function(GdkPaintable* paintable, double specifiedWidth, double specifiedHeight, double defaultWidth, double defaultHeight, double* concreteWidth, double* concreteHeight) c_gdk_paintable_compute_concrete_size; - GdkPaintable* function(GdkPaintable* paintable) c_gdk_paintable_get_current_image; - GdkPaintableFlags function(GdkPaintable* paintable) c_gdk_paintable_get_flags; - double function(GdkPaintable* paintable) c_gdk_paintable_get_intrinsic_aspect_ratio; - int function(GdkPaintable* paintable) c_gdk_paintable_get_intrinsic_height; - int function(GdkPaintable* paintable) c_gdk_paintable_get_intrinsic_width; - void function(GdkPaintable* paintable) c_gdk_paintable_invalidate_contents; - void function(GdkPaintable* paintable) c_gdk_paintable_invalidate_size; - void function(GdkPaintable* paintable, GdkSnapshot* snapshot, double width, double height) c_gdk_paintable_snapshot; - - // gdk.Popup - - GType function() c_gdk_popup_get_type; - int function(GdkPopup* popup) c_gdk_popup_get_autohide; - GdkSurface* function(GdkPopup* popup) c_gdk_popup_get_parent; - int function(GdkPopup* popup) c_gdk_popup_get_position_x; - int function(GdkPopup* popup) c_gdk_popup_get_position_y; - GdkGravity function(GdkPopup* popup) c_gdk_popup_get_rect_anchor; - GdkGravity function(GdkPopup* popup) c_gdk_popup_get_surface_anchor; - int function(GdkPopup* popup, int width, int height, GdkPopupLayout* layout) c_gdk_popup_present; - - // gdk.PopupLayout - - GType function() c_gdk_popup_layout_get_type; - GdkPopupLayout* function(GdkRectangle* anchorRect, GdkGravity rectAnchor, GdkGravity surfaceAnchor) c_gdk_popup_layout_new; - GdkPopupLayout* function(GdkPopupLayout* layout) c_gdk_popup_layout_copy; - int function(GdkPopupLayout* layout, GdkPopupLayout* other) c_gdk_popup_layout_equal; - GdkAnchorHints function(GdkPopupLayout* layout) c_gdk_popup_layout_get_anchor_hints; - GdkRectangle* function(GdkPopupLayout* layout) c_gdk_popup_layout_get_anchor_rect; - void function(GdkPopupLayout* layout, int* dx, int* dy) c_gdk_popup_layout_get_offset; - GdkGravity function(GdkPopupLayout* layout) c_gdk_popup_layout_get_rect_anchor; - void function(GdkPopupLayout* layout, int* left, int* right, int* top, int* bottom) c_gdk_popup_layout_get_shadow_width; - GdkGravity function(GdkPopupLayout* layout) c_gdk_popup_layout_get_surface_anchor; - GdkPopupLayout* function(GdkPopupLayout* layout) c_gdk_popup_layout_ref; - void function(GdkPopupLayout* layout, GdkAnchorHints anchorHints) c_gdk_popup_layout_set_anchor_hints; - void function(GdkPopupLayout* layout, GdkRectangle* anchorRect) c_gdk_popup_layout_set_anchor_rect; - void function(GdkPopupLayout* layout, int dx, int dy) c_gdk_popup_layout_set_offset; - void function(GdkPopupLayout* layout, GdkGravity anchor) c_gdk_popup_layout_set_rect_anchor; - void function(GdkPopupLayout* layout, int left, int right, int top, int bottom) c_gdk_popup_layout_set_shadow_width; - void function(GdkPopupLayout* layout, GdkGravity anchor) c_gdk_popup_layout_set_surface_anchor; - void function(GdkPopupLayout* layout) c_gdk_popup_layout_unref; - - // gdk.ProximityEvent - - GType function() c_gdk_proximity_event_get_type; - - // gdk.RGBA - - GType function() c_gdk_rgba_get_type; - GdkRGBA* function(GdkRGBA* rgba) c_gdk_rgba_copy; - int function(void* p1, void* p2) c_gdk_rgba_equal; - void function(GdkRGBA* rgba) c_gdk_rgba_free; - uint function(void* p) c_gdk_rgba_hash; - int function(GdkRGBA* rgba) c_gdk_rgba_is_clear; - int function(GdkRGBA* rgba) c_gdk_rgba_is_opaque; - int function(GdkRGBA* rgba, const(char)* spec) c_gdk_rgba_parse; - char* function(GdkRGBA* rgba) c_gdk_rgba_to_string; - - // gdk.Rectangle - - GType function() c_gdk_rectangle_get_type; - int function(GdkRectangle* rect, int x, int y) c_gdk_rectangle_contains_point; - int function(GdkRectangle* rect1, GdkRectangle* rect2) c_gdk_rectangle_equal; - int function(GdkRectangle* src1, GdkRectangle* src2, GdkRectangle* dest) c_gdk_rectangle_intersect; - void function(GdkRectangle* src1, GdkRectangle* src2, GdkRectangle* dest) c_gdk_rectangle_union; - - // gdk.ScrollEvent - - GType function() c_gdk_scroll_event_get_type; - void function(GdkEvent* event, double* deltaX, double* deltaY) c_gdk_scroll_event_get_deltas; - GdkScrollDirection function(GdkEvent* event) c_gdk_scroll_event_get_direction; - int function(GdkEvent* event) c_gdk_scroll_event_is_stop; - - // gdk.Seat - - GType function() c_gdk_seat_get_type; - GdkSeatCapabilities function(GdkSeat* seat) c_gdk_seat_get_capabilities; - GList* function(GdkSeat* seat, GdkSeatCapabilities capabilities) c_gdk_seat_get_devices; - GdkDisplay* function(GdkSeat* seat) c_gdk_seat_get_display; - GdkDevice* function(GdkSeat* seat) c_gdk_seat_get_keyboard; - GdkDevice* function(GdkSeat* seat) c_gdk_seat_get_pointer; - GList* function(GdkSeat* seat) c_gdk_seat_get_tools; - - // gdk.Snapshot - - GType function() c_gdk_snapshot_get_type; - - // gdk.Surface - - GType function() c_gdk_surface_get_type; - GdkSurface* function(GdkSurface* parent, int autohide) c_gdk_surface_new_popup; - GdkSurface* function(GdkDisplay* display) c_gdk_surface_new_toplevel; - void function(GdkSurface* surface) c_gdk_surface_beep; - GdkCairoContext* function(GdkSurface* surface) c_gdk_surface_create_cairo_context; - GdkGLContext* function(GdkSurface* surface, GError** err) c_gdk_surface_create_gl_context; - cairo_surface_t* function(GdkSurface* surface, cairo_content_t content, int width, int height) c_gdk_surface_create_similar_surface; - GdkVulkanContext* function(GdkSurface* surface, GError** err) c_gdk_surface_create_vulkan_context; - void function(GdkSurface* surface) c_gdk_surface_destroy; - GdkCursor* function(GdkSurface* surface) c_gdk_surface_get_cursor; - GdkCursor* function(GdkSurface* surface, GdkDevice* device) c_gdk_surface_get_device_cursor; - int function(GdkSurface* surface, GdkDevice* device, double* x, double* y, GdkModifierType* mask) c_gdk_surface_get_device_position; - GdkDisplay* function(GdkSurface* surface) c_gdk_surface_get_display; - GdkFrameClock* function(GdkSurface* surface) c_gdk_surface_get_frame_clock; - int function(GdkSurface* surface) c_gdk_surface_get_height; - int function(GdkSurface* surface) c_gdk_surface_get_mapped; - int function(GdkSurface* surface) c_gdk_surface_get_scale_factor; - int function(GdkSurface* surface) c_gdk_surface_get_width; - void function(GdkSurface* surface) c_gdk_surface_hide; - int function(GdkSurface* surface) c_gdk_surface_is_destroyed; - void function(GdkSurface* surface) c_gdk_surface_queue_render; - void function(GdkSurface* surface) c_gdk_surface_request_layout; - void function(GdkSurface* surface, GdkCursor* cursor) c_gdk_surface_set_cursor; - void function(GdkSurface* surface, GdkDevice* device, GdkCursor* cursor) c_gdk_surface_set_device_cursor; - void function(GdkSurface* surface, cairo_region_t* region) c_gdk_surface_set_input_region; - void function(GdkSurface* surface, cairo_region_t* region) c_gdk_surface_set_opaque_region; - int function(GdkSurface* from, GdkSurface* to, double* x, double* y) c_gdk_surface_translate_coordinates; - - // gdk.Texture - - GType function() c_gdk_texture_get_type; - GdkTexture* function(GdkPixbuf* pixbuf) c_gdk_texture_new_for_pixbuf; - GdkTexture* function(GFile* file, GError** err) c_gdk_texture_new_from_file; - GdkTexture* function(const(char)* resourcePath) c_gdk_texture_new_from_resource; - void function(GdkTexture* texture, char* data, size_t stride) c_gdk_texture_download; - int function(GdkTexture* texture) c_gdk_texture_get_height; - int function(GdkTexture* texture) c_gdk_texture_get_width; - int function(GdkTexture* texture, const(char)* filename) c_gdk_texture_save_to_png; - - // gdk.Toplevel - - GType function() c_gdk_toplevel_get_type; - void function(GdkToplevel* toplevel, GdkDevice* device, int button, double x, double y, uint timestamp) c_gdk_toplevel_begin_move; - void function(GdkToplevel* toplevel, GdkSurfaceEdge edge, GdkDevice* device, int button, double x, double y, uint timestamp) c_gdk_toplevel_begin_resize; - void function(GdkToplevel* toplevel, uint timestamp) c_gdk_toplevel_focus; - GdkToplevelState function(GdkToplevel* toplevel) c_gdk_toplevel_get_state; - void function(GdkToplevel* toplevel, GdkEvent* event) c_gdk_toplevel_inhibit_system_shortcuts; - int function(GdkToplevel* toplevel) c_gdk_toplevel_lower; - int function(GdkToplevel* toplevel) c_gdk_toplevel_minimize; - void function(GdkToplevel* toplevel, GdkToplevelLayout* layout) c_gdk_toplevel_present; - void function(GdkToplevel* toplevel) c_gdk_toplevel_restore_system_shortcuts; - void function(GdkToplevel* toplevel, int decorated) c_gdk_toplevel_set_decorated; - void function(GdkToplevel* toplevel, int deletable) c_gdk_toplevel_set_deletable; - void function(GdkToplevel* toplevel, GList* surfaces) c_gdk_toplevel_set_icon_list; - void function(GdkToplevel* toplevel, int modal) c_gdk_toplevel_set_modal; - void function(GdkToplevel* toplevel, const(char)* startupId) c_gdk_toplevel_set_startup_id; - void function(GdkToplevel* toplevel, const(char)* title) c_gdk_toplevel_set_title; - void function(GdkToplevel* toplevel, GdkSurface* parent) c_gdk_toplevel_set_transient_for; - int function(GdkToplevel* toplevel, GdkEvent* event) c_gdk_toplevel_show_window_menu; - int function(GdkToplevel* toplevel) c_gdk_toplevel_supports_edge_constraints; - - // gdk.ToplevelLayout - - GType function() c_gdk_toplevel_layout_get_type; - GdkToplevelLayout* function() c_gdk_toplevel_layout_new; - GdkToplevelLayout* function(GdkToplevelLayout* layout) c_gdk_toplevel_layout_copy; - int function(GdkToplevelLayout* layout, GdkToplevelLayout* other) c_gdk_toplevel_layout_equal; - int function(GdkToplevelLayout* layout, int* fullscreen) c_gdk_toplevel_layout_get_fullscreen; - GdkMonitor* function(GdkToplevelLayout* layout) c_gdk_toplevel_layout_get_fullscreen_monitor; - int function(GdkToplevelLayout* layout, int* maximized) c_gdk_toplevel_layout_get_maximized; - int function(GdkToplevelLayout* layout) c_gdk_toplevel_layout_get_resizable; - GdkToplevelLayout* function(GdkToplevelLayout* layout) c_gdk_toplevel_layout_ref; - void function(GdkToplevelLayout* layout, int fullscreen, GdkMonitor* monitor) c_gdk_toplevel_layout_set_fullscreen; - void function(GdkToplevelLayout* layout, int maximized) c_gdk_toplevel_layout_set_maximized; - void function(GdkToplevelLayout* layout, int resizable) c_gdk_toplevel_layout_set_resizable; - void function(GdkToplevelLayout* layout) c_gdk_toplevel_layout_unref; - - // gdk.ToplevelSize - - void function(GdkToplevelSize* size, int* boundsWidth, int* boundsHeight) c_gdk_toplevel_size_get_bounds; - void function(GdkToplevelSize* size, int minWidth, int minHeight) c_gdk_toplevel_size_set_min_size; - void function(GdkToplevelSize* size, int left, int right, int top, int bottom) c_gdk_toplevel_size_set_shadow_width; - void function(GdkToplevelSize* size, int width, int height) c_gdk_toplevel_size_set_size; - - // gdk.TouchEvent - - GType function() c_gdk_touch_event_get_type; - int function(GdkEvent* event) c_gdk_touch_event_get_emulating_pointer; - - // gdk.TouchpadEvent - - GType function() c_gdk_touchpad_event_get_type; - void function(GdkEvent* event, double* dx, double* dy) c_gdk_touchpad_event_get_deltas; - GdkTouchpadGesturePhase function(GdkEvent* event) c_gdk_touchpad_event_get_gesture_phase; - uint function(GdkEvent* event) c_gdk_touchpad_event_get_n_fingers; - double function(GdkEvent* event) c_gdk_touchpad_event_get_pinch_angle_delta; - double function(GdkEvent* event) c_gdk_touchpad_event_get_pinch_scale; - - // gdk.VulkanContext - - GType function() c_gdk_vulkan_context_get_type; -} - - -// gdk.AppLaunchContext - -alias c_gdk_app_launch_context_get_type gdk_app_launch_context_get_type; -alias c_gdk_app_launch_context_get_display gdk_app_launch_context_get_display; -alias c_gdk_app_launch_context_set_desktop gdk_app_launch_context_set_desktop; -alias c_gdk_app_launch_context_set_icon gdk_app_launch_context_set_icon; -alias c_gdk_app_launch_context_set_icon_name gdk_app_launch_context_set_icon_name; -alias c_gdk_app_launch_context_set_timestamp gdk_app_launch_context_set_timestamp; - -// gdk.ButtonEvent - -alias c_gdk_button_event_get_type gdk_button_event_get_type; -alias c_gdk_button_event_get_button gdk_button_event_get_button; - -// gdk.CairoContext - -alias c_gdk_cairo_context_get_type gdk_cairo_context_get_type; -alias c_gdk_cairo_context_cairo_create gdk_cairo_context_cairo_create; - -// gdk.Clipboard - -alias c_gdk_clipboard_get_type gdk_clipboard_get_type; -alias c_gdk_clipboard_get_content gdk_clipboard_get_content; -alias c_gdk_clipboard_get_display gdk_clipboard_get_display; -alias c_gdk_clipboard_get_formats gdk_clipboard_get_formats; -alias c_gdk_clipboard_is_local gdk_clipboard_is_local; -alias c_gdk_clipboard_read_async gdk_clipboard_read_async; -alias c_gdk_clipboard_read_finish gdk_clipboard_read_finish; -alias c_gdk_clipboard_read_text_async gdk_clipboard_read_text_async; -alias c_gdk_clipboard_read_text_finish gdk_clipboard_read_text_finish; -alias c_gdk_clipboard_read_texture_async gdk_clipboard_read_texture_async; -alias c_gdk_clipboard_read_texture_finish gdk_clipboard_read_texture_finish; -alias c_gdk_clipboard_read_value_async gdk_clipboard_read_value_async; -alias c_gdk_clipboard_read_value_finish gdk_clipboard_read_value_finish; -alias c_gdk_clipboard_set gdk_clipboard_set; -alias c_gdk_clipboard_set_content gdk_clipboard_set_content; -alias c_gdk_clipboard_set_text gdk_clipboard_set_text; -alias c_gdk_clipboard_set_texture gdk_clipboard_set_texture; -alias c_gdk_clipboard_set_valist gdk_clipboard_set_valist; -alias c_gdk_clipboard_set_value gdk_clipboard_set_value; -alias c_gdk_clipboard_store_async gdk_clipboard_store_async; -alias c_gdk_clipboard_store_finish gdk_clipboard_store_finish; - -// gdk.ContentDeserializer - -alias c_gdk_content_deserializer_get_type gdk_content_deserializer_get_type; -alias c_gdk_content_deserializer_get_cancellable gdk_content_deserializer_get_cancellable; -alias c_gdk_content_deserializer_get_gtype gdk_content_deserializer_get_gtype; -alias c_gdk_content_deserializer_get_input_stream gdk_content_deserializer_get_input_stream; -alias c_gdk_content_deserializer_get_mime_type gdk_content_deserializer_get_mime_type; -alias c_gdk_content_deserializer_get_priority gdk_content_deserializer_get_priority; -alias c_gdk_content_deserializer_get_task_data gdk_content_deserializer_get_task_data; -alias c_gdk_content_deserializer_get_user_data gdk_content_deserializer_get_user_data; -alias c_gdk_content_deserializer_get_value gdk_content_deserializer_get_value; -alias c_gdk_content_deserializer_return_error gdk_content_deserializer_return_error; -alias c_gdk_content_deserializer_return_success gdk_content_deserializer_return_success; -alias c_gdk_content_deserializer_set_task_data gdk_content_deserializer_set_task_data; - -// gdk.ContentFormats - -alias c_gdk_content_formats_get_type gdk_content_formats_get_type; -alias c_gdk_content_formats_new gdk_content_formats_new; -alias c_gdk_content_formats_new_for_gtype gdk_content_formats_new_for_gtype; -alias c_gdk_content_formats_contain_gtype gdk_content_formats_contain_gtype; -alias c_gdk_content_formats_contain_mime_type gdk_content_formats_contain_mime_type; -alias c_gdk_content_formats_get_gtypes gdk_content_formats_get_gtypes; -alias c_gdk_content_formats_get_mime_types gdk_content_formats_get_mime_types; -alias c_gdk_content_formats_match gdk_content_formats_match; -alias c_gdk_content_formats_match_gtype gdk_content_formats_match_gtype; -alias c_gdk_content_formats_match_mime_type gdk_content_formats_match_mime_type; -alias c_gdk_content_formats_print gdk_content_formats_print; -alias c_gdk_content_formats_ref gdk_content_formats_ref; -alias c_gdk_content_formats_to_string gdk_content_formats_to_string; -alias c_gdk_content_formats_union gdk_content_formats_union; -alias c_gdk_content_formats_union_deserialize_gtypes gdk_content_formats_union_deserialize_gtypes; -alias c_gdk_content_formats_union_deserialize_mime_types gdk_content_formats_union_deserialize_mime_types; -alias c_gdk_content_formats_union_serialize_gtypes gdk_content_formats_union_serialize_gtypes; -alias c_gdk_content_formats_union_serialize_mime_types gdk_content_formats_union_serialize_mime_types; -alias c_gdk_content_formats_unref gdk_content_formats_unref; - -// gdk.ContentFormatsBuilder - -alias c_gdk_content_formats_builder_get_type gdk_content_formats_builder_get_type; -alias c_gdk_content_formats_builder_new gdk_content_formats_builder_new; -alias c_gdk_content_formats_builder_add_formats gdk_content_formats_builder_add_formats; -alias c_gdk_content_formats_builder_add_gtype gdk_content_formats_builder_add_gtype; -alias c_gdk_content_formats_builder_add_mime_type gdk_content_formats_builder_add_mime_type; -alias c_gdk_content_formats_builder_free_to_formats gdk_content_formats_builder_free_to_formats; -alias c_gdk_content_formats_builder_ref gdk_content_formats_builder_ref; -alias c_gdk_content_formats_builder_to_formats gdk_content_formats_builder_to_formats; -alias c_gdk_content_formats_builder_unref gdk_content_formats_builder_unref; - -// gdk.ContentProvider - -alias c_gdk_content_provider_get_type gdk_content_provider_get_type; -alias c_gdk_content_provider_new_for_bytes gdk_content_provider_new_for_bytes; -alias c_gdk_content_provider_new_for_value gdk_content_provider_new_for_value; -alias c_gdk_content_provider_new_typed gdk_content_provider_new_typed; -alias c_gdk_content_provider_new_union gdk_content_provider_new_union; -alias c_gdk_content_provider_content_changed gdk_content_provider_content_changed; -alias c_gdk_content_provider_get_value gdk_content_provider_get_value; -alias c_gdk_content_provider_ref_formats gdk_content_provider_ref_formats; -alias c_gdk_content_provider_ref_storable_formats gdk_content_provider_ref_storable_formats; -alias c_gdk_content_provider_write_mime_type_async gdk_content_provider_write_mime_type_async; -alias c_gdk_content_provider_write_mime_type_finish gdk_content_provider_write_mime_type_finish; - -// gdk.ContentSerializer - -alias c_gdk_content_serializer_get_type gdk_content_serializer_get_type; -alias c_gdk_content_serializer_get_cancellable gdk_content_serializer_get_cancellable; -alias c_gdk_content_serializer_get_gtype gdk_content_serializer_get_gtype; -alias c_gdk_content_serializer_get_mime_type gdk_content_serializer_get_mime_type; -alias c_gdk_content_serializer_get_output_stream gdk_content_serializer_get_output_stream; -alias c_gdk_content_serializer_get_priority gdk_content_serializer_get_priority; -alias c_gdk_content_serializer_get_task_data gdk_content_serializer_get_task_data; -alias c_gdk_content_serializer_get_user_data gdk_content_serializer_get_user_data; -alias c_gdk_content_serializer_get_value gdk_content_serializer_get_value; -alias c_gdk_content_serializer_return_error gdk_content_serializer_return_error; -alias c_gdk_content_serializer_return_success gdk_content_serializer_return_success; -alias c_gdk_content_serializer_set_task_data gdk_content_serializer_set_task_data; - -// gdk.CrossingEvent - -alias c_gdk_crossing_event_get_type gdk_crossing_event_get_type; -alias c_gdk_crossing_event_get_detail gdk_crossing_event_get_detail; -alias c_gdk_crossing_event_get_focus gdk_crossing_event_get_focus; -alias c_gdk_crossing_event_get_mode gdk_crossing_event_get_mode; - -// gdk.Cursor - -alias c_gdk_cursor_get_type gdk_cursor_get_type; -alias c_gdk_cursor_new_from_name gdk_cursor_new_from_name; -alias c_gdk_cursor_new_from_texture gdk_cursor_new_from_texture; -alias c_gdk_cursor_get_fallback gdk_cursor_get_fallback; -alias c_gdk_cursor_get_hotspot_x gdk_cursor_get_hotspot_x; -alias c_gdk_cursor_get_hotspot_y gdk_cursor_get_hotspot_y; -alias c_gdk_cursor_get_name gdk_cursor_get_name; -alias c_gdk_cursor_get_texture gdk_cursor_get_texture; - -// gdk.DNDEvent - -alias c_gdk_dnd_event_get_type gdk_dnd_event_get_type; -alias c_gdk_dnd_event_get_drop gdk_dnd_event_get_drop; - -// gdk.DeleteEvent - -alias c_gdk_delete_event_get_type gdk_delete_event_get_type; - -// gdk.Device - -alias c_gdk_device_get_type gdk_device_get_type; -alias c_gdk_device_get_caps_lock_state gdk_device_get_caps_lock_state; -alias c_gdk_device_get_device_tool gdk_device_get_device_tool; -alias c_gdk_device_get_direction gdk_device_get_direction; -alias c_gdk_device_get_display gdk_device_get_display; -alias c_gdk_device_get_has_cursor gdk_device_get_has_cursor; -alias c_gdk_device_get_modifier_state gdk_device_get_modifier_state; -alias c_gdk_device_get_name gdk_device_get_name; -alias c_gdk_device_get_num_lock_state gdk_device_get_num_lock_state; -alias c_gdk_device_get_num_touches gdk_device_get_num_touches; -alias c_gdk_device_get_product_id gdk_device_get_product_id; -alias c_gdk_device_get_scroll_lock_state gdk_device_get_scroll_lock_state; -alias c_gdk_device_get_seat gdk_device_get_seat; -alias c_gdk_device_get_source gdk_device_get_source; -alias c_gdk_device_get_surface_at_position gdk_device_get_surface_at_position; -alias c_gdk_device_get_timestamp gdk_device_get_timestamp; -alias c_gdk_device_get_vendor_id gdk_device_get_vendor_id; -alias c_gdk_device_has_bidi_layouts gdk_device_has_bidi_layouts; - -// gdk.DevicePad - -alias c_gdk_device_pad_get_type gdk_device_pad_get_type; -alias c_gdk_device_pad_get_feature_group gdk_device_pad_get_feature_group; -alias c_gdk_device_pad_get_group_n_modes gdk_device_pad_get_group_n_modes; -alias c_gdk_device_pad_get_n_features gdk_device_pad_get_n_features; -alias c_gdk_device_pad_get_n_groups gdk_device_pad_get_n_groups; - -// gdk.DeviceTool - -alias c_gdk_device_tool_get_type gdk_device_tool_get_type; -alias c_gdk_device_tool_get_axes gdk_device_tool_get_axes; -alias c_gdk_device_tool_get_hardware_id gdk_device_tool_get_hardware_id; -alias c_gdk_device_tool_get_serial gdk_device_tool_get_serial; -alias c_gdk_device_tool_get_tool_type gdk_device_tool_get_tool_type; - -// gdk.Display - -alias c_gdk_display_get_type gdk_display_get_type; -alias c_gdk_display_get_default gdk_display_get_default; -alias c_gdk_display_open gdk_display_open; -alias c_gdk_display_beep gdk_display_beep; -alias c_gdk_display_close gdk_display_close; -alias c_gdk_display_device_is_grabbed gdk_display_device_is_grabbed; -alias c_gdk_display_flush gdk_display_flush; -alias c_gdk_display_get_app_launch_context gdk_display_get_app_launch_context; -alias c_gdk_display_get_clipboard gdk_display_get_clipboard; -alias c_gdk_display_get_default_seat gdk_display_get_default_seat; -alias c_gdk_display_get_monitor_at_surface gdk_display_get_monitor_at_surface; -alias c_gdk_display_get_monitors gdk_display_get_monitors; -alias c_gdk_display_get_name gdk_display_get_name; -alias c_gdk_display_get_primary_clipboard gdk_display_get_primary_clipboard; -alias c_gdk_display_get_setting gdk_display_get_setting; -alias c_gdk_display_get_startup_notification_id gdk_display_get_startup_notification_id; -alias c_gdk_display_is_closed gdk_display_is_closed; -alias c_gdk_display_is_composited gdk_display_is_composited; -alias c_gdk_display_is_rgba gdk_display_is_rgba; -alias c_gdk_display_list_seats gdk_display_list_seats; -alias c_gdk_display_map_keycode gdk_display_map_keycode; -alias c_gdk_display_map_keyval gdk_display_map_keyval; -alias c_gdk_display_notify_startup_complete gdk_display_notify_startup_complete; -alias c_gdk_display_put_event gdk_display_put_event; -alias c_gdk_display_supports_input_shapes gdk_display_supports_input_shapes; -alias c_gdk_display_sync gdk_display_sync; -alias c_gdk_display_translate_key gdk_display_translate_key; - -// gdk.DisplayManager - -alias c_gdk_display_manager_get_type gdk_display_manager_get_type; -alias c_gdk_display_manager_get gdk_display_manager_get; -alias c_gdk_display_manager_get_default_display gdk_display_manager_get_default_display; -alias c_gdk_display_manager_list_displays gdk_display_manager_list_displays; -alias c_gdk_display_manager_open_display gdk_display_manager_open_display; -alias c_gdk_display_manager_set_default_display gdk_display_manager_set_default_display; - -// gdk.Drag - -alias c_gdk_drag_get_type gdk_drag_get_type; -alias c_gdk_drag_begin gdk_drag_begin; -alias c_gdk_drag_drop_done gdk_drag_drop_done; -alias c_gdk_drag_get_actions gdk_drag_get_actions; -alias c_gdk_drag_get_content gdk_drag_get_content; -alias c_gdk_drag_get_device gdk_drag_get_device; -alias c_gdk_drag_get_display gdk_drag_get_display; -alias c_gdk_drag_get_drag_surface gdk_drag_get_drag_surface; -alias c_gdk_drag_get_formats gdk_drag_get_formats; -alias c_gdk_drag_get_selected_action gdk_drag_get_selected_action; -alias c_gdk_drag_get_surface gdk_drag_get_surface; -alias c_gdk_drag_set_hotspot gdk_drag_set_hotspot; - -// gdk.DragSurface - -alias c_gdk_drag_surface_get_type gdk_drag_surface_get_type; -alias c_gdk_drag_surface_present gdk_drag_surface_present; - -// gdk.DrawContext - -alias c_gdk_draw_context_get_type gdk_draw_context_get_type; -alias c_gdk_draw_context_begin_frame gdk_draw_context_begin_frame; -alias c_gdk_draw_context_end_frame gdk_draw_context_end_frame; -alias c_gdk_draw_context_get_display gdk_draw_context_get_display; -alias c_gdk_draw_context_get_frame_region gdk_draw_context_get_frame_region; -alias c_gdk_draw_context_get_surface gdk_draw_context_get_surface; -alias c_gdk_draw_context_is_in_frame gdk_draw_context_is_in_frame; - -// gdk.Drop - -alias c_gdk_drop_get_type gdk_drop_get_type; -alias c_gdk_drop_finish gdk_drop_finish; -alias c_gdk_drop_get_actions gdk_drop_get_actions; -alias c_gdk_drop_get_device gdk_drop_get_device; -alias c_gdk_drop_get_display gdk_drop_get_display; -alias c_gdk_drop_get_drag gdk_drop_get_drag; -alias c_gdk_drop_get_formats gdk_drop_get_formats; -alias c_gdk_drop_get_surface gdk_drop_get_surface; -alias c_gdk_drop_read_async gdk_drop_read_async; -alias c_gdk_drop_read_finish gdk_drop_read_finish; -alias c_gdk_drop_read_value_async gdk_drop_read_value_async; -alias c_gdk_drop_read_value_finish gdk_drop_read_value_finish; -alias c_gdk_drop_status gdk_drop_status; - -// gdk.Event - -alias c_gdk_event_get_type gdk_event_get_type; -alias c_gdk_events_get_angle gdk_events_get_angle; -alias c_gdk_events_get_center gdk_events_get_center; -alias c_gdk_events_get_distance gdk_events_get_distance; -alias c_gdk_event_get_axes gdk_event_get_axes; -alias c_gdk_event_get_axis gdk_event_get_axis; -alias c_gdk_event_get_device gdk_event_get_device; -alias c_gdk_event_get_device_tool gdk_event_get_device_tool; -alias c_gdk_event_get_display gdk_event_get_display; -alias c_gdk_event_get_event_sequence gdk_event_get_event_sequence; -alias c_gdk_event_get_event_type gdk_event_get_event_type; -alias c_gdk_event_get_history gdk_event_get_history; -alias c_gdk_event_get_modifier_state gdk_event_get_modifier_state; -alias c_gdk_event_get_pointer_emulated gdk_event_get_pointer_emulated; -alias c_gdk_event_get_position gdk_event_get_position; -alias c_gdk_event_get_seat gdk_event_get_seat; -alias c_gdk_event_get_surface gdk_event_get_surface; -alias c_gdk_event_get_time gdk_event_get_time; -alias c_gdk_event_ref gdk_event_ref; -alias c_gdk_event_triggers_context_menu gdk_event_triggers_context_menu; -alias c_gdk_event_unref gdk_event_unref; - -// gdk.EventSequence - -alias c_gdk_event_sequence_get_type gdk_event_sequence_get_type; - -// gdk.FocusEvent - -alias c_gdk_focus_event_get_type gdk_focus_event_get_type; -alias c_gdk_focus_event_get_in gdk_focus_event_get_in; - -// gdk.FrameClock - -alias c_gdk_frame_clock_get_type gdk_frame_clock_get_type; -alias c_gdk_frame_clock_begin_updating gdk_frame_clock_begin_updating; -alias c_gdk_frame_clock_end_updating gdk_frame_clock_end_updating; -alias c_gdk_frame_clock_get_current_timings gdk_frame_clock_get_current_timings; -alias c_gdk_frame_clock_get_fps gdk_frame_clock_get_fps; -alias c_gdk_frame_clock_get_frame_counter gdk_frame_clock_get_frame_counter; -alias c_gdk_frame_clock_get_frame_time gdk_frame_clock_get_frame_time; -alias c_gdk_frame_clock_get_history_start gdk_frame_clock_get_history_start; -alias c_gdk_frame_clock_get_refresh_info gdk_frame_clock_get_refresh_info; -alias c_gdk_frame_clock_get_timings gdk_frame_clock_get_timings; -alias c_gdk_frame_clock_request_phase gdk_frame_clock_request_phase; - -// gdk.FrameTimings - -alias c_gdk_frame_timings_get_type gdk_frame_timings_get_type; -alias c_gdk_frame_timings_get_complete gdk_frame_timings_get_complete; -alias c_gdk_frame_timings_get_frame_counter gdk_frame_timings_get_frame_counter; -alias c_gdk_frame_timings_get_frame_time gdk_frame_timings_get_frame_time; -alias c_gdk_frame_timings_get_predicted_presentation_time gdk_frame_timings_get_predicted_presentation_time; -alias c_gdk_frame_timings_get_presentation_time gdk_frame_timings_get_presentation_time; -alias c_gdk_frame_timings_get_refresh_interval gdk_frame_timings_get_refresh_interval; -alias c_gdk_frame_timings_ref gdk_frame_timings_ref; -alias c_gdk_frame_timings_unref gdk_frame_timings_unref; - -// gdk.GLContext - -alias c_gdk_gl_context_get_type gdk_gl_context_get_type; -alias c_gdk_gl_context_clear_current gdk_gl_context_clear_current; -alias c_gdk_gl_context_get_current gdk_gl_context_get_current; -alias c_gdk_gl_context_get_debug_enabled gdk_gl_context_get_debug_enabled; -alias c_gdk_gl_context_get_display gdk_gl_context_get_display; -alias c_gdk_gl_context_get_forward_compatible gdk_gl_context_get_forward_compatible; -alias c_gdk_gl_context_get_required_version gdk_gl_context_get_required_version; -alias c_gdk_gl_context_get_shared_context gdk_gl_context_get_shared_context; -alias c_gdk_gl_context_get_surface gdk_gl_context_get_surface; -alias c_gdk_gl_context_get_use_es gdk_gl_context_get_use_es; -alias c_gdk_gl_context_get_version gdk_gl_context_get_version; -alias c_gdk_gl_context_is_legacy gdk_gl_context_is_legacy; -alias c_gdk_gl_context_make_current gdk_gl_context_make_current; -alias c_gdk_gl_context_realize gdk_gl_context_realize; -alias c_gdk_gl_context_set_debug_enabled gdk_gl_context_set_debug_enabled; -alias c_gdk_gl_context_set_forward_compatible gdk_gl_context_set_forward_compatible; -alias c_gdk_gl_context_set_required_version gdk_gl_context_set_required_version; -alias c_gdk_gl_context_set_use_es gdk_gl_context_set_use_es; - -// gdk.GLTexture - -alias c_gdk_gl_texture_get_type gdk_gl_texture_get_type; -alias c_gdk_gl_texture_new gdk_gl_texture_new; -alias c_gdk_gl_texture_release gdk_gl_texture_release; - -// gdk.GrabBrokenEvent - -alias c_gdk_grab_broken_event_get_type gdk_grab_broken_event_get_type; -alias c_gdk_grab_broken_event_get_grab_surface gdk_grab_broken_event_get_grab_surface; -alias c_gdk_grab_broken_event_get_implicit gdk_grab_broken_event_get_implicit; - -// gdk.KeyEvent - -alias c_gdk_key_event_get_type gdk_key_event_get_type; -alias c_gdk_key_event_get_consumed_modifiers gdk_key_event_get_consumed_modifiers; -alias c_gdk_key_event_get_keycode gdk_key_event_get_keycode; -alias c_gdk_key_event_get_keyval gdk_key_event_get_keyval; -alias c_gdk_key_event_get_layout gdk_key_event_get_layout; -alias c_gdk_key_event_get_level gdk_key_event_get_level; -alias c_gdk_key_event_get_match gdk_key_event_get_match; -alias c_gdk_key_event_is_modifier gdk_key_event_is_modifier; -alias c_gdk_key_event_matches gdk_key_event_matches; - -// gdk.MemoryTexture - -alias c_gdk_memory_texture_get_type gdk_memory_texture_get_type; -alias c_gdk_memory_texture_new gdk_memory_texture_new; - -// gdk.MonitorGdk - -alias c_gdk_monitor_get_type gdk_monitor_get_type; -alias c_gdk_monitor_get_connector gdk_monitor_get_connector; -alias c_gdk_monitor_get_display gdk_monitor_get_display; -alias c_gdk_monitor_get_geometry gdk_monitor_get_geometry; -alias c_gdk_monitor_get_height_mm gdk_monitor_get_height_mm; -alias c_gdk_monitor_get_manufacturer gdk_monitor_get_manufacturer; -alias c_gdk_monitor_get_model gdk_monitor_get_model; -alias c_gdk_monitor_get_refresh_rate gdk_monitor_get_refresh_rate; -alias c_gdk_monitor_get_scale_factor gdk_monitor_get_scale_factor; -alias c_gdk_monitor_get_subpixel_layout gdk_monitor_get_subpixel_layout; -alias c_gdk_monitor_get_width_mm gdk_monitor_get_width_mm; -alias c_gdk_monitor_is_valid gdk_monitor_is_valid; - -// gdk.MotionEvent - -alias c_gdk_motion_event_get_type gdk_motion_event_get_type; - -// gdk.PadEvent - -alias c_gdk_pad_event_get_type gdk_pad_event_get_type; -alias c_gdk_pad_event_get_axis_value gdk_pad_event_get_axis_value; -alias c_gdk_pad_event_get_button gdk_pad_event_get_button; -alias c_gdk_pad_event_get_group_mode gdk_pad_event_get_group_mode; - -// gdk.Paintable - -alias c_gdk_paintable_get_type gdk_paintable_get_type; -alias c_gdk_paintable_new_empty gdk_paintable_new_empty; -alias c_gdk_paintable_compute_concrete_size gdk_paintable_compute_concrete_size; -alias c_gdk_paintable_get_current_image gdk_paintable_get_current_image; -alias c_gdk_paintable_get_flags gdk_paintable_get_flags; -alias c_gdk_paintable_get_intrinsic_aspect_ratio gdk_paintable_get_intrinsic_aspect_ratio; -alias c_gdk_paintable_get_intrinsic_height gdk_paintable_get_intrinsic_height; -alias c_gdk_paintable_get_intrinsic_width gdk_paintable_get_intrinsic_width; -alias c_gdk_paintable_invalidate_contents gdk_paintable_invalidate_contents; -alias c_gdk_paintable_invalidate_size gdk_paintable_invalidate_size; -alias c_gdk_paintable_snapshot gdk_paintable_snapshot; - -// gdk.Popup - -alias c_gdk_popup_get_type gdk_popup_get_type; -alias c_gdk_popup_get_autohide gdk_popup_get_autohide; -alias c_gdk_popup_get_parent gdk_popup_get_parent; -alias c_gdk_popup_get_position_x gdk_popup_get_position_x; -alias c_gdk_popup_get_position_y gdk_popup_get_position_y; -alias c_gdk_popup_get_rect_anchor gdk_popup_get_rect_anchor; -alias c_gdk_popup_get_surface_anchor gdk_popup_get_surface_anchor; -alias c_gdk_popup_present gdk_popup_present; - -// gdk.PopupLayout - -alias c_gdk_popup_layout_get_type gdk_popup_layout_get_type; -alias c_gdk_popup_layout_new gdk_popup_layout_new; -alias c_gdk_popup_layout_copy gdk_popup_layout_copy; -alias c_gdk_popup_layout_equal gdk_popup_layout_equal; -alias c_gdk_popup_layout_get_anchor_hints gdk_popup_layout_get_anchor_hints; -alias c_gdk_popup_layout_get_anchor_rect gdk_popup_layout_get_anchor_rect; -alias c_gdk_popup_layout_get_offset gdk_popup_layout_get_offset; -alias c_gdk_popup_layout_get_rect_anchor gdk_popup_layout_get_rect_anchor; -alias c_gdk_popup_layout_get_shadow_width gdk_popup_layout_get_shadow_width; -alias c_gdk_popup_layout_get_surface_anchor gdk_popup_layout_get_surface_anchor; -alias c_gdk_popup_layout_ref gdk_popup_layout_ref; -alias c_gdk_popup_layout_set_anchor_hints gdk_popup_layout_set_anchor_hints; -alias c_gdk_popup_layout_set_anchor_rect gdk_popup_layout_set_anchor_rect; -alias c_gdk_popup_layout_set_offset gdk_popup_layout_set_offset; -alias c_gdk_popup_layout_set_rect_anchor gdk_popup_layout_set_rect_anchor; -alias c_gdk_popup_layout_set_shadow_width gdk_popup_layout_set_shadow_width; -alias c_gdk_popup_layout_set_surface_anchor gdk_popup_layout_set_surface_anchor; -alias c_gdk_popup_layout_unref gdk_popup_layout_unref; - -// gdk.ProximityEvent - -alias c_gdk_proximity_event_get_type gdk_proximity_event_get_type; - -// gdk.RGBA - -alias c_gdk_rgba_get_type gdk_rgba_get_type; -alias c_gdk_rgba_copy gdk_rgba_copy; -alias c_gdk_rgba_equal gdk_rgba_equal; -alias c_gdk_rgba_free gdk_rgba_free; -alias c_gdk_rgba_hash gdk_rgba_hash; -alias c_gdk_rgba_is_clear gdk_rgba_is_clear; -alias c_gdk_rgba_is_opaque gdk_rgba_is_opaque; -alias c_gdk_rgba_parse gdk_rgba_parse; -alias c_gdk_rgba_to_string gdk_rgba_to_string; - -// gdk.Rectangle - -alias c_gdk_rectangle_get_type gdk_rectangle_get_type; -alias c_gdk_rectangle_contains_point gdk_rectangle_contains_point; -alias c_gdk_rectangle_equal gdk_rectangle_equal; -alias c_gdk_rectangle_intersect gdk_rectangle_intersect; -alias c_gdk_rectangle_union gdk_rectangle_union; - -// gdk.ScrollEvent - -alias c_gdk_scroll_event_get_type gdk_scroll_event_get_type; -alias c_gdk_scroll_event_get_deltas gdk_scroll_event_get_deltas; -alias c_gdk_scroll_event_get_direction gdk_scroll_event_get_direction; -alias c_gdk_scroll_event_is_stop gdk_scroll_event_is_stop; - -// gdk.Seat - -alias c_gdk_seat_get_type gdk_seat_get_type; -alias c_gdk_seat_get_capabilities gdk_seat_get_capabilities; -alias c_gdk_seat_get_devices gdk_seat_get_devices; -alias c_gdk_seat_get_display gdk_seat_get_display; -alias c_gdk_seat_get_keyboard gdk_seat_get_keyboard; -alias c_gdk_seat_get_pointer gdk_seat_get_pointer; -alias c_gdk_seat_get_tools gdk_seat_get_tools; - -// gdk.Snapshot - -alias c_gdk_snapshot_get_type gdk_snapshot_get_type; - -// gdk.Surface - -alias c_gdk_surface_get_type gdk_surface_get_type; -alias c_gdk_surface_new_popup gdk_surface_new_popup; -alias c_gdk_surface_new_toplevel gdk_surface_new_toplevel; -alias c_gdk_surface_beep gdk_surface_beep; -alias c_gdk_surface_create_cairo_context gdk_surface_create_cairo_context; -alias c_gdk_surface_create_gl_context gdk_surface_create_gl_context; -alias c_gdk_surface_create_similar_surface gdk_surface_create_similar_surface; -alias c_gdk_surface_create_vulkan_context gdk_surface_create_vulkan_context; -alias c_gdk_surface_destroy gdk_surface_destroy; -alias c_gdk_surface_get_cursor gdk_surface_get_cursor; -alias c_gdk_surface_get_device_cursor gdk_surface_get_device_cursor; -alias c_gdk_surface_get_device_position gdk_surface_get_device_position; -alias c_gdk_surface_get_display gdk_surface_get_display; -alias c_gdk_surface_get_frame_clock gdk_surface_get_frame_clock; -alias c_gdk_surface_get_height gdk_surface_get_height; -alias c_gdk_surface_get_mapped gdk_surface_get_mapped; -alias c_gdk_surface_get_scale_factor gdk_surface_get_scale_factor; -alias c_gdk_surface_get_width gdk_surface_get_width; -alias c_gdk_surface_hide gdk_surface_hide; -alias c_gdk_surface_is_destroyed gdk_surface_is_destroyed; -alias c_gdk_surface_queue_render gdk_surface_queue_render; -alias c_gdk_surface_request_layout gdk_surface_request_layout; -alias c_gdk_surface_set_cursor gdk_surface_set_cursor; -alias c_gdk_surface_set_device_cursor gdk_surface_set_device_cursor; -alias c_gdk_surface_set_input_region gdk_surface_set_input_region; -alias c_gdk_surface_set_opaque_region gdk_surface_set_opaque_region; -alias c_gdk_surface_translate_coordinates gdk_surface_translate_coordinates; - -// gdk.Texture - -alias c_gdk_texture_get_type gdk_texture_get_type; -alias c_gdk_texture_new_for_pixbuf gdk_texture_new_for_pixbuf; -alias c_gdk_texture_new_from_file gdk_texture_new_from_file; -alias c_gdk_texture_new_from_resource gdk_texture_new_from_resource; -alias c_gdk_texture_download gdk_texture_download; -alias c_gdk_texture_get_height gdk_texture_get_height; -alias c_gdk_texture_get_width gdk_texture_get_width; -alias c_gdk_texture_save_to_png gdk_texture_save_to_png; - -// gdk.Toplevel - -alias c_gdk_toplevel_get_type gdk_toplevel_get_type; -alias c_gdk_toplevel_begin_move gdk_toplevel_begin_move; -alias c_gdk_toplevel_begin_resize gdk_toplevel_begin_resize; -alias c_gdk_toplevel_focus gdk_toplevel_focus; -alias c_gdk_toplevel_get_state gdk_toplevel_get_state; -alias c_gdk_toplevel_inhibit_system_shortcuts gdk_toplevel_inhibit_system_shortcuts; -alias c_gdk_toplevel_lower gdk_toplevel_lower; -alias c_gdk_toplevel_minimize gdk_toplevel_minimize; -alias c_gdk_toplevel_present gdk_toplevel_present; -alias c_gdk_toplevel_restore_system_shortcuts gdk_toplevel_restore_system_shortcuts; -alias c_gdk_toplevel_set_decorated gdk_toplevel_set_decorated; -alias c_gdk_toplevel_set_deletable gdk_toplevel_set_deletable; -alias c_gdk_toplevel_set_icon_list gdk_toplevel_set_icon_list; -alias c_gdk_toplevel_set_modal gdk_toplevel_set_modal; -alias c_gdk_toplevel_set_startup_id gdk_toplevel_set_startup_id; -alias c_gdk_toplevel_set_title gdk_toplevel_set_title; -alias c_gdk_toplevel_set_transient_for gdk_toplevel_set_transient_for; -alias c_gdk_toplevel_show_window_menu gdk_toplevel_show_window_menu; -alias c_gdk_toplevel_supports_edge_constraints gdk_toplevel_supports_edge_constraints; - -// gdk.ToplevelLayout - -alias c_gdk_toplevel_layout_get_type gdk_toplevel_layout_get_type; -alias c_gdk_toplevel_layout_new gdk_toplevel_layout_new; -alias c_gdk_toplevel_layout_copy gdk_toplevel_layout_copy; -alias c_gdk_toplevel_layout_equal gdk_toplevel_layout_equal; -alias c_gdk_toplevel_layout_get_fullscreen gdk_toplevel_layout_get_fullscreen; -alias c_gdk_toplevel_layout_get_fullscreen_monitor gdk_toplevel_layout_get_fullscreen_monitor; -alias c_gdk_toplevel_layout_get_maximized gdk_toplevel_layout_get_maximized; -alias c_gdk_toplevel_layout_get_resizable gdk_toplevel_layout_get_resizable; -alias c_gdk_toplevel_layout_ref gdk_toplevel_layout_ref; -alias c_gdk_toplevel_layout_set_fullscreen gdk_toplevel_layout_set_fullscreen; -alias c_gdk_toplevel_layout_set_maximized gdk_toplevel_layout_set_maximized; -alias c_gdk_toplevel_layout_set_resizable gdk_toplevel_layout_set_resizable; -alias c_gdk_toplevel_layout_unref gdk_toplevel_layout_unref; - -// gdk.ToplevelSize - -alias c_gdk_toplevel_size_get_bounds gdk_toplevel_size_get_bounds; -alias c_gdk_toplevel_size_set_min_size gdk_toplevel_size_set_min_size; -alias c_gdk_toplevel_size_set_shadow_width gdk_toplevel_size_set_shadow_width; -alias c_gdk_toplevel_size_set_size gdk_toplevel_size_set_size; - -// gdk.TouchEvent - -alias c_gdk_touch_event_get_type gdk_touch_event_get_type; -alias c_gdk_touch_event_get_emulating_pointer gdk_touch_event_get_emulating_pointer; - -// gdk.TouchpadEvent - -alias c_gdk_touchpad_event_get_type gdk_touchpad_event_get_type; -alias c_gdk_touchpad_event_get_deltas gdk_touchpad_event_get_deltas; -alias c_gdk_touchpad_event_get_gesture_phase gdk_touchpad_event_get_gesture_phase; -alias c_gdk_touchpad_event_get_n_fingers gdk_touchpad_event_get_n_fingers; -alias c_gdk_touchpad_event_get_pinch_angle_delta gdk_touchpad_event_get_pinch_angle_delta; -alias c_gdk_touchpad_event_get_pinch_scale gdk_touchpad_event_get_pinch_scale; - -// gdk.VulkanContext - -alias c_gdk_vulkan_context_get_type gdk_vulkan_context_get_type; diff --git a/generated/gtkd/gdk/c/types.d b/generated/gtkd/gdk/c/types.d deleted file mode 100644 index dfe736f02..000000000 --- a/generated/gtkd/gdk/c/types.d +++ /dev/null @@ -1,1602 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdk.c.types; - -public import cairo.c.types; -public import gdkpixbuf.c.types; -public import gio.c.types; -public import glib.c.types; -public import gobject.c.types; -public import pango.c.types; - - -/** - * Positioning hints for aligning a surface relative to a rectangle. - * - * These hints determine how the surface should be positioned in the case that - * the surface would fall off-screen if placed in its ideal position. - * - * For example, %GDK_ANCHOR_FLIP_X will replace %GDK_GRAVITY_NORTH_WEST with - * %GDK_GRAVITY_NORTH_EAST and vice versa if the surface extends beyond the left - * or right edges of the monitor. - * - * If %GDK_ANCHOR_SLIDE_X is set, the surface can be shifted horizontally to fit - * on-screen. If %GDK_ANCHOR_RESIZE_X is set, the surface can be shrunken - * horizontally to fit. - * - * In general, when multiple flags are set, flipping should take precedence over - * sliding, which should take precedence over resizing. - */ -public enum GdkAnchorHints -{ - /** - * allow flipping anchors horizontally - */ - FLIP_X = 1, - /** - * allow flipping anchors vertically - */ - FLIP_Y = 2, - /** - * allow sliding surface horizontally - */ - SLIDE_X = 4, - /** - * allow sliding surface vertically - */ - SLIDE_Y = 8, - /** - * allow resizing surface horizontally - */ - RESIZE_X = 16, - /** - * allow resizing surface vertically - */ - RESIZE_Y = 32, - /** - * allow flipping anchors on both axes - */ - FLIP = 3, - /** - * allow sliding surface on both axes - */ - SLIDE = 12, - /** - * allow resizing surface on both axes - */ - RESIZE = 48, -} -alias GdkAnchorHints AnchorHints; - -/** - * Flags describing the current capabilities of a device/tool. - */ -public enum GdkAxisFlags -{ - /** - * X axis is present - */ - X = 2, - /** - * Y axis is present - */ - Y = 4, - /** - * Scroll X delta axis is present - */ - DELTA_X = 8, - /** - * Scroll Y delta axis is present - */ - DELTA_Y = 16, - /** - * Pressure axis is present - */ - PRESSURE = 32, - /** - * X tilt axis is present - */ - XTILT = 64, - /** - * Y tilt axis is present - */ - YTILT = 128, - /** - * Wheel axis is present - */ - WHEEL = 256, - /** - * Distance axis is present - */ - DISTANCE = 512, - /** - * Z-axis rotation is present - */ - ROTATION = 1024, - /** - * Slider axis is present - */ - SLIDER = 2048, -} -alias GdkAxisFlags AxisFlags; - -/** - * Defines how device axes are interpreted by GTK. - * - * Note that the X and Y axes are not really needed; pointer devices - * report their location via the x/y members of events regardless. Whether - * X and Y are present as axes depends on the GDK backend. - */ -public enum GdkAxisUse -{ - /** - * the axis is ignored. - */ - IGNORE = 0, - /** - * the axis is used as the x axis. - */ - X = 1, - /** - * the axis is used as the y axis. - */ - Y = 2, - /** - * the axis is used as the scroll x delta - */ - DELTA_X = 3, - /** - * the axis is used as the scroll y delta - */ - DELTA_Y = 4, - /** - * the axis is used for pressure information. - */ - PRESSURE = 5, - /** - * the axis is used for x tilt information. - */ - XTILT = 6, - /** - * the axis is used for y tilt information. - */ - YTILT = 7, - /** - * the axis is used for wheel information. - */ - WHEEL = 8, - /** - * the axis is used for pen/tablet distance information - */ - DISTANCE = 9, - /** - * the axis is used for pen rotation information - */ - ROTATION = 10, - /** - * the axis is used for pen slider information - */ - SLIDER = 11, - /** - * a constant equal to the numerically highest axis value. - */ - LAST = 12, -} -alias GdkAxisUse AxisUse; - -/** - * Specifies the crossing mode for enter and leave events. - */ -public enum GdkCrossingMode -{ - /** - * crossing because of pointer motion. - */ - NORMAL = 0, - /** - * crossing because a grab is activated. - */ - GRAB = 1, - /** - * crossing because a grab is deactivated. - */ - UNGRAB = 2, - /** - * crossing because a GTK grab is activated. - */ - GTK_GRAB = 3, - /** - * crossing because a GTK grab is deactivated. - */ - GTK_UNGRAB = 4, - /** - * crossing because a GTK widget changed - * state (e.g. sensitivity). - */ - STATE_CHANGED = 5, - /** - * crossing because a touch sequence has begun, - * this event is synthetic as the pointer might have not left the surface. - */ - TOUCH_BEGIN = 6, - /** - * crossing because a touch sequence has ended, - * this event is synthetic as the pointer might have not left the surface. - */ - TOUCH_END = 7, - /** - * crossing because of a device switch (i.e. - * a mouse taking control of the pointer after a touch device), this event - * is synthetic as the pointer didn’t leave the surface. - */ - DEVICE_SWITCH = 8, -} -alias GdkCrossingMode CrossingMode; - -/** - * A pad feature. - */ -public enum GdkDevicePadFeature -{ - /** - * a button - */ - BUTTON = 0, - /** - * a ring-shaped interactive area - */ - RING = 1, - /** - * a straight interactive area - */ - STRIP = 2, -} -alias GdkDevicePadFeature DevicePadFeature; - -/** - * Indicates the specific type of tool being used being a tablet. Such as an - * airbrush, pencil, etc. - */ -public enum GdkDeviceToolType -{ - /** - * Tool is of an unknown type. - */ - UNKNOWN = 0, - /** - * Tool is a standard tablet stylus. - */ - PEN = 1, - /** - * Tool is standard tablet eraser. - */ - ERASER = 2, - /** - * Tool is a brush stylus. - */ - BRUSH = 3, - /** - * Tool is a pencil stylus. - */ - PENCIL = 4, - /** - * Tool is an airbrush stylus. - */ - AIRBRUSH = 5, - /** - * Tool is a mouse. - */ - MOUSE = 6, - /** - * Tool is a lens cursor. - */ - LENS = 7, -} -alias GdkDeviceToolType DeviceToolType; - -/** - * Used in `GdkDrop` and `GdkDrag` to indicate the actions that the - * destination can and should do with the dropped data. - */ -public enum GdkDragAction -{ - /** - * Copy the data. - */ - COPY = 1, - /** - * Move the data, i.e. first copy it, then delete - * it from the source using the DELETE target of the X selection protocol. - */ - MOVE = 2, - /** - * Add a link to the data. Note that this is only - * useful if source and destination agree on what it means, and is not - * supported on all platforms. - */ - LINK = 4, - /** - * Ask the user what to do with the data. - */ - ASK = 8, -} -alias GdkDragAction DragAction; - -/** - * Used in `GdkDrag` to the reason of a cancelled DND operation. - */ -public enum GdkDragCancelReason -{ - /** - * There is no suitable drop target. - */ - NO_TARGET = 0, - /** - * Drag cancelled by the user - */ - USER_CANCELLED = 1, - /** - * Unspecified error. - */ - ERROR = 2, -} -alias GdkDragCancelReason DragCancelReason; - -/** - * Specifies the type of the event. - */ -public enum GdkEventType -{ - /** - * the window manager has requested that the toplevel surface be - * hidden or destroyed, usually when the user clicks on a special icon in the - * title bar. - */ - DELETE = 0, - /** - * the pointer (usually a mouse) has moved. - */ - MOTION_NOTIFY = 1, - /** - * a mouse button has been pressed. - */ - BUTTON_PRESS = 2, - /** - * a mouse button has been released. - */ - BUTTON_RELEASE = 3, - /** - * a key has been pressed. - */ - KEY_PRESS = 4, - /** - * a key has been released. - */ - KEY_RELEASE = 5, - /** - * the pointer has entered the surface. - */ - ENTER_NOTIFY = 6, - /** - * the pointer has left the surface. - */ - LEAVE_NOTIFY = 7, - /** - * the keyboard focus has entered or left the surface. - */ - FOCUS_CHANGE = 8, - /** - * an input device has moved into contact with a sensing - * surface (e.g. a touchscreen or graphics tablet). - */ - PROXIMITY_IN = 9, - /** - * an input device has moved out of contact with a sensing - * surface. - */ - PROXIMITY_OUT = 10, - /** - * the mouse has entered the surface while a drag is in progress. - */ - DRAG_ENTER = 11, - /** - * the mouse has left the surface while a drag is in progress. - */ - DRAG_LEAVE = 12, - /** - * the mouse has moved in the surface while a drag is in - * progress. - */ - DRAG_MOTION = 13, - /** - * a drop operation onto the surface has started. - */ - DROP_START = 14, - /** - * the scroll wheel was turned - */ - SCROLL = 15, - /** - * a pointer or keyboard grab was broken. - */ - GRAB_BROKEN = 16, - /** - * A new touch event sequence has just started. - */ - TOUCH_BEGIN = 17, - /** - * A touch event sequence has been updated. - */ - TOUCH_UPDATE = 18, - /** - * A touch event sequence has finished. - */ - TOUCH_END = 19, - /** - * A touch event sequence has been canceled. - */ - TOUCH_CANCEL = 20, - /** - * A touchpad swipe gesture event, the current state - * is determined by its phase field. - */ - TOUCHPAD_SWIPE = 21, - /** - * A touchpad pinch gesture event, the current state - * is determined by its phase field. - */ - TOUCHPAD_PINCH = 22, - /** - * A tablet pad button press event. - */ - PAD_BUTTON_PRESS = 23, - /** - * A tablet pad button release event. - */ - PAD_BUTTON_RELEASE = 24, - /** - * A tablet pad axis event from a "ring". - */ - PAD_RING = 25, - /** - * A tablet pad axis event from a "strip". - */ - PAD_STRIP = 26, - /** - * A tablet pad group mode change. - */ - PAD_GROUP_MODE = 27, - /** - * marks the end of the GdkEventType enumeration. - */ - EVENT_LAST = 28, -} -alias GdkEventType EventType; - -/** - * Used to represent the different paint clock phases that can be requested. - * - * The elements of the enumeration correspond to the signals of `GdkFrameClock`. - */ -public enum GdkFrameClockPhase -{ - /** - * no phase - */ - NONE = 0, - /** - * corresponds to GdkFrameClock::flush-events. Should not be handled by applications. - */ - FLUSH_EVENTS = 1, - /** - * corresponds to GdkFrameClock::before-paint. Should not be handled by applications. - */ - BEFORE_PAINT = 2, - /** - * corresponds to GdkFrameClock::update. - */ - UPDATE = 4, - /** - * corresponds to GdkFrameClock::layout. Should not be handled by applicatiosn. - */ - LAYOUT = 8, - /** - * corresponds to GdkFrameClock::paint. - */ - PAINT = 16, - /** - * corresponds to GdkFrameClock::resume-events. Should not be handled by applications. - */ - RESUME_EVENTS = 32, - /** - * corresponds to GdkFrameClock::after-paint. Should not be handled by applications. - */ - AFTER_PAINT = 64, -} -alias GdkFrameClockPhase FrameClockPhase; - -/** - * Indicates which monitor a surface should span over when in fullscreen mode. - */ -public enum GdkFullscreenMode -{ - /** - * Fullscreen on current monitor only. - */ - CURRENT_MONITOR = 0, - /** - * Span across all monitors when fullscreen. - */ - ALL_MONITORS = 1, -} -alias GdkFullscreenMode FullscreenMode; - -/** - * Error enumeration for `GdkGLContext`. - */ -public enum GdkGLError -{ - /** - * OpenGL support is not available - */ - NOT_AVAILABLE = 0, - /** - * The requested visual format is not supported - */ - UNSUPPORTED_FORMAT = 1, - /** - * The requested profile is not supported - */ - UNSUPPORTED_PROFILE = 2, - /** - * The shader compilation failed - */ - COMPILATION_FAILED = 3, - /** - * The shader linking failed - */ - LINK_FAILED = 4, -} -alias GdkGLError GLError; - -/** - * Defines the reference point of a surface and is used in #GdkPopupLayout. - */ -public enum GdkGravity -{ - /** - * the reference point is at the top left corner. - */ - NORTH_WEST = 1, - /** - * the reference point is in the middle of the top edge. - */ - NORTH = 2, - /** - * the reference point is at the top right corner. - */ - NORTH_EAST = 3, - /** - * the reference point is at the middle of the left edge. - */ - WEST = 4, - /** - * the reference point is at the center of the surface. - */ - CENTER = 5, - /** - * the reference point is at the middle of the right edge. - */ - EAST = 6, - /** - * the reference point is at the lower left corner. - */ - SOUTH_WEST = 7, - /** - * the reference point is at the middle of the lower edge. - */ - SOUTH = 8, - /** - * the reference point is at the lower right corner. - */ - SOUTH_EAST = 9, - /** - * the reference point is at the top left corner of the - * surface itself, ignoring window manager decorations. - */ - STATIC = 10, -} -alias GdkGravity Gravity; - -/** - * An enumeration describing the type of an input device in general terms. - */ -public enum GdkInputSource -{ - /** - * the device is a mouse. (This will be reported for the core - * pointer, even if it is something else, such as a trackball.) - */ - MOUSE = 0, - /** - * the device is a stylus of a graphics tablet or similar device. - */ - PEN = 1, - /** - * the device is a keyboard. - */ - KEYBOARD = 2, - /** - * the device is a direct-input touch device, such - * as a touchscreen or tablet - */ - TOUCHSCREEN = 3, - /** - * the device is an indirect touch device, such - * as a touchpad - */ - TOUCHPAD = 4, - /** - * the device is a trackpoint - */ - TRACKPOINT = 5, - /** - * the device is a "pad", a collection of buttons, - * rings and strips found in drawing tablets - */ - TABLET_PAD = 6, -} -alias GdkInputSource InputSource; - -/** - * Describes how well an event matches a given keyval and modifiers. - * - * `GdkKeyMatch` values are returned by [method@Gdk.KeyEvent.matches]. - */ -public enum GdkKeyMatch -{ - /** - * The key event does not match - */ - NONE = 0, - /** - * The key event matches if keyboard state - * (specifically, the currently active group) is ignored - */ - PARTIAL = 1, - /** - * The key event matches - */ - EXACT = 2, -} -alias GdkKeyMatch KeyMatch; - -/** - * `GdkMemoryFormat` describes a format that bytes can have in memory. - * - * It describes formats by listing the contents of the memory passed to it. - * So GDK_MEMORY_A8R8G8B8 will be 1 byte (8 bits) of alpha, followed by a - * byte each of red, green and blue. It is not endian-dependent, so - * CAIRO_FORMAT_ARGB32 is represented by different `GdkMemoryFormats` - * on architectures with different endiannesses. - * - * Its naming is modelled after VkFormat (see - * https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VkFormat - * for details). - */ -public enum GdkMemoryFormat -{ - /** - * 4 bytes; for blue, green, red, alpha. - * The color values are premultiplied with the alpha value. - */ - B8G8R8A8_PREMULTIPLIED = 0, - /** - * 4 bytes; for alpha, red, green, blue. - * The color values are premultiplied with the alpha value. - */ - A8R8G8B8_PREMULTIPLIED = 1, - /** - * 4 bytes; for red, green, blue, alpha - * The color values are premultiplied with the alpha value. - */ - R8G8B8A8_PREMULTIPLIED = 2, - /** - * 4 bytes; for blue, green, red, alpha. - */ - B8G8R8A8 = 3, - /** - * 4 bytes; for alpha, red, green, blue. - */ - A8R8G8B8 = 4, - /** - * 4 bytes; for red, green, blue, alpha. - */ - R8G8B8A8 = 5, - /** - * 4 bytes; for alpha, blue, green, red. - */ - A8B8G8R8 = 6, - /** - * 3 bytes; for red, green, blue. The data is opaque. - */ - R8G8B8 = 7, - /** - * 3 bytes; for blue, green, red. The data is opaque. - */ - B8G8R8 = 8, - /** - * The number of formats. This value will change as - * more formats get added, so do not rely on its concrete integer. - */ - N_FORMATS = 9, -} -alias GdkMemoryFormat MemoryFormat; - -/** - * Flags to indicate the state of modifier keys and mouse buttons - * in events. - * - * Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, - * Apple, CapsLock or ShiftLock. - * - * Note that GDK may add internal values to events which include values outside - * of this enumeration. Your code should preserve and ignore them. You can use - * %GDK_MODIFIER_MASK to remove all private values. - */ -public enum GdkModifierType -{ - /** - * the Shift key. - */ - SHIFT_MASK = 1, - /** - * a Lock key (depending on the modifier mapping of the - * X server this may either be CapsLock or ShiftLock). - */ - LOCK_MASK = 2, - /** - * the Control key. - */ - CONTROL_MASK = 4, - /** - * the fourth modifier key (it depends on the modifier - * mapping of the X server which key is interpreted as this modifier, but - * normally it is the Alt key). - */ - ALT_MASK = 8, - /** - * the first mouse button. - */ - BUTTON1_MASK = 256, - /** - * the second mouse button. - */ - BUTTON2_MASK = 512, - /** - * the third mouse button. - */ - BUTTON3_MASK = 1024, - /** - * the fourth mouse button. - */ - BUTTON4_MASK = 2048, - /** - * the fifth mouse button. - */ - BUTTON5_MASK = 4096, - /** - * the Super modifier - */ - SUPER_MASK = 67108864, - /** - * the Hyper modifier - */ - HYPER_MASK = 134217728, - /** - * the Meta modifier - */ - META_MASK = 268435456, -} -alias GdkModifierType ModifierType; - -/** - * Specifies the kind of crossing for enter and leave events. - * - * See the X11 protocol specification of LeaveNotify for - * full details of crossing event generation. - */ -public enum GdkNotifyType -{ - /** - * the surface is entered from an ancestor or - * left towards an ancestor. - */ - ANCESTOR = 0, - /** - * the pointer moves between an ancestor and an - * inferior of the surface. - */ - VIRTUAL = 1, - /** - * the surface is entered from an inferior or - * left towards an inferior. - */ - INFERIOR = 2, - /** - * the surface is entered from or left towards - * a surface which is neither an ancestor nor an inferior. - */ - NONLINEAR = 3, - /** - * the pointer moves between two surfaces - * which are not ancestors of each other and the surface is part of - * the ancestor chain between one of these surfaces and their least - * common ancestor. - */ - NONLINEAR_VIRTUAL = 4, - /** - * an unknown type of enter/leave event occurred. - */ - UNKNOWN = 5, -} -alias GdkNotifyType NotifyType; - -/** - * Flags about a paintable object. - * - * Implementations use these for optimizations such as caching. - */ -public enum GdkPaintableFlags -{ - /** - * The size is immutable. - * The [signal@GdkPaintable::invalidate-size] signal will never be - * emitted. - */ - SIZE = 1, - /** - * The content is immutable. - * The [signal@GdkPaintable::invalidate-contents] signal will never be - * emitted. - */ - CONTENTS = 2, -} -alias GdkPaintableFlags PaintableFlags; - -/** - * Specifies the direction for scroll events. - */ -public enum GdkScrollDirection -{ - /** - * the surface is scrolled up. - */ - UP = 0, - /** - * the surface is scrolled down. - */ - DOWN = 1, - /** - * the surface is scrolled to the left. - */ - LEFT = 2, - /** - * the surface is scrolled to the right. - */ - RIGHT = 3, - /** - * the scrolling is determined by the delta values - * in scroll events. See gdk_scroll_event_get_deltas() - */ - SMOOTH = 4, -} -alias GdkScrollDirection ScrollDirection; - -/** - * Flags describing the seat capabilities. - */ -public enum GdkSeatCapabilities -{ - /** - * No input capabilities - */ - NONE = 0, - /** - * The seat has a pointer (e.g. mouse) - */ - POINTER = 1, - /** - * The seat has touchscreen(s) attached - */ - TOUCH = 2, - /** - * The seat has drawing tablet(s) attached - */ - TABLET_STYLUS = 4, - /** - * The seat has keyboard(s) attached - */ - KEYBOARD = 8, - /** - * The seat has drawing tablet pad(s) attached - */ - TABLET_PAD = 16, - /** - * The union of all pointing capabilities - */ - ALL_POINTING = 7, - /** - * The union of all capabilities - */ - ALL = 15, -} -alias GdkSeatCapabilities SeatCapabilities; - -/** - * This enumeration describes how the red, green and blue components - * of physical pixels on an output device are laid out. - */ -public enum GdkSubpixelLayout -{ - /** - * The layout is not known - */ - UNKNOWN = 0, - /** - * Not organized in this way - */ - NONE = 1, - /** - * The layout is horizontal, the order is RGB - */ - HORIZONTAL_RGB = 2, - /** - * The layout is horizontal, the order is BGR - */ - HORIZONTAL_BGR = 3, - /** - * The layout is vertical, the order is RGB - */ - VERTICAL_RGB = 4, - /** - * The layout is vertical, the order is BGR - */ - VERTICAL_BGR = 5, -} -alias GdkSubpixelLayout SubpixelLayout; - -/** - * Determines a surface edge or corner. - */ -public enum GdkSurfaceEdge -{ - /** - * the top left corner. - */ - NORTH_WEST = 0, - /** - * the top edge. - */ - NORTH = 1, - /** - * the top right corner. - */ - NORTH_EAST = 2, - /** - * the left edge. - */ - WEST = 3, - /** - * the right edge. - */ - EAST = 4, - /** - * the lower left corner. - */ - SOUTH_WEST = 5, - /** - * the lower edge. - */ - SOUTH = 6, - /** - * the lower right corner. - */ - SOUTH_EAST = 7, -} -alias GdkSurfaceEdge SurfaceEdge; - -/** - * Specifies the state of a toplevel surface. - * - * On platforms that support information about individual edges, the - * %GDK_TOPLEVEL_STATE_TILED state will be set whenever any of the individual - * tiled states is set. On platforms that lack that support, the tiled state - * will give an indication of tiledness without any of the per-edge states - * being set. - */ -public enum GdkToplevelState -{ - /** - * the surface is minimized - */ - MINIMIZED = 1, - /** - * the surface is maximized - */ - MAXIMIZED = 2, - /** - * the surface is sticky - */ - STICKY = 4, - /** - * the surface is maximized without decorations - */ - FULLSCREEN = 8, - /** - * the surface is kept above other surfaces - */ - ABOVE = 16, - /** - * the surface is kept below other surfaces - */ - BELOW = 32, - /** - * the surface is presented as focused (with active decorations) - */ - FOCUSED = 64, - /** - * the surface is in a tiled state - */ - TILED = 128, - /** - * whether the top edge is tiled - */ - TOP_TILED = 256, - /** - * whether the top edge is resizable - */ - TOP_RESIZABLE = 512, - /** - * whether the right edge is tiled - */ - RIGHT_TILED = 1024, - /** - * whether the right edge is resizable - */ - RIGHT_RESIZABLE = 2048, - /** - * whether the bottom edge is tiled - */ - BOTTOM_TILED = 4096, - /** - * whether the bottom edge is resizable - */ - BOTTOM_RESIZABLE = 8192, - /** - * whether the left edge is tiled - */ - LEFT_TILED = 16384, - /** - * whether the left edge is resizable - */ - LEFT_RESIZABLE = 32768, -} -alias GdkToplevelState ToplevelState; - -/** - * Specifies the current state of a touchpad gesture. - * - * All gestures are guaranteed to begin with an event with phase - * %GDK_TOUCHPAD_GESTURE_PHASE_BEGIN, followed by 0 or several events - * with phase %GDK_TOUCHPAD_GESTURE_PHASE_UPDATE. - * - * A finished gesture may have 2 possible outcomes, an event with phase - * %GDK_TOUCHPAD_GESTURE_PHASE_END will be emitted when the gesture is - * considered successful, this should be used as the hint to perform any - * permanent changes. - * - * Cancelled gestures may be so for a variety of reasons, due to hardware - * or the compositor, or due to the gesture recognition layers hinting the - * gesture did not finish resolutely (eg. a 3rd finger being added during - * a pinch gesture). In these cases, the last event will report the phase - * %GDK_TOUCHPAD_GESTURE_PHASE_CANCEL, this should be used as a hint - * to undo any visible/permanent changes that were done throughout the - * progress of the gesture. - */ -public enum GdkTouchpadGesturePhase -{ - /** - * The gesture has begun. - */ - BEGIN = 0, - /** - * The gesture has been updated. - */ - UPDATE = 1, - /** - * The gesture was finished, changes - * should be permanently applied. - */ - END = 2, - /** - * The gesture was cancelled, all - * changes should be undone. - */ - CANCEL = 3, -} -alias GdkTouchpadGesturePhase TouchpadGesturePhase; - -/** - * Error enumeration for #GdkVulkanContext. - */ -public enum GdkVulkanError -{ - /** - * Vulkan is not supported on this backend or has not been - * compiled in. - */ - UNSUPPORTED = 0, - /** - * Vulkan support is not available on this Surface - */ - NOT_AVAILABLE = 1, -} -alias GdkVulkanError VulkanError; - -struct GdkAppLaunchContext; - -struct GdkButtonEvent; - -struct GdkCairoContext; - -struct GdkClipboard; - -struct GdkContentDeserializer; - -struct GdkContentFormats; - -struct GdkContentFormatsBuilder; - -struct GdkContentProvider -{ - GObject parent; -} - -/** - * Class structure for #GdkContentProvider. - */ -struct GdkContentProviderClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GdkContentProvider* provider) contentChanged; - /** */ - extern(C) void function(GdkContentProvider* provider, GdkClipboard* clipboard) attachClipboard; - /** */ - extern(C) void function(GdkContentProvider* provider, GdkClipboard* clipboard) detachClipboard; - /** - * - * Params: - * provider = a #GdkContentProvider - * Returns: The formats of the provider - */ - extern(C) GdkContentFormats* function(GdkContentProvider* provider) refFormats; - /** - * - * Params: - * provider = a #GdkContentProvider - * Returns: The storable formats of the provider - */ - extern(C) GdkContentFormats* function(GdkContentProvider* provider) refStorableFormats; - /** */ - extern(C) void function(GdkContentProvider* provider, const(char)* mimeType, GOutputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) writeMimeTypeAsync; - /** - * - * Params: - * provider = a `GdkContentProvider` - * result = a `GAsyncResult` - * Returns: %TRUE if the operation was completed successfully. Otherwise - * @error will be set to describe the failure. - * - * Throws: GException on failure. - */ - extern(C) int function(GdkContentProvider* provider, GAsyncResult* result, GError** err) writeMimeTypeFinish; - /** - * - * Params: - * provider = a `GdkContentProvider` - * value = the `GValue` to fill - * Returns: %TRUE if the value was set successfully. Otherwise - * @error will be set to describe the failure. - * - * Throws: GException on failure. - */ - extern(C) int function(GdkContentProvider* provider, GValue* value, GError** err) getValue; - void*[8] padding; -} - -struct GdkContentSerializer; - -struct GdkCrossingEvent; - -struct GdkCursor; - -struct GdkDNDEvent; - -struct GdkDeleteEvent; - -struct GdkDevice; - -struct GdkDevicePad; - -struct GdkDevicePadInterface; - -struct GdkDeviceTool; - -struct GdkDisplay; - -struct GdkDisplayManager; - -struct GdkDrag; - -struct GdkDragSurface; - -/** - * The `GdkDragSurfaceInterface` implementation is private to GDK. - */ -struct GdkDragSurfaceInterface; - -struct GdkDrawContext; - -struct GdkDrop; - -struct GdkEvent; - -/** - * `GdkEventSequence` is an opaque type representing a sequence - * of related touch events. - */ -struct GdkEventSequence; - -struct GdkFocusEvent; - -struct GdkFrameClock; - -struct GdkFrameClockClass; - -struct GdkFrameClockPrivate; - -struct GdkFrameTimings; - -struct GdkGLContext; - -struct GdkGLTexture; - -struct GdkGLTextureClass; - -struct GdkGrabBrokenEvent; - -struct GdkKeyEvent; - -/** - * A `GdkKeymapKey` is a hardware key that can be mapped to a keyval. - */ -struct GdkKeymapKey -{ - /** - * the hardware keycode. This is an identifying number for a - * physical key. - */ - uint keycode; - /** - * indicates movement in a horizontal direction. Usually groups are used - * for two different languages. In group 0, a key might have two English - * characters, and in group 1 it might have two Hebrew characters. The Hebrew - * characters will be printed on the key next to the English characters. - */ - int group; - /** - * indicates which symbol on the key will be used, in a vertical direction. - * So on a standard US keyboard, the key with the number “1” on it also has the - * exclamation point ("!") character on it. The level indicates whether to use - * the “1” or the “!” symbol. The letter keys are considered to have a lowercase - * letter at level 0, and an uppercase letter at level 1, though only the - * uppercase letter is printed. - */ - int level; -} - -struct GdkMemoryTexture; - -struct GdkMemoryTextureClass; - -struct GdkMonitor; - -struct GdkMonitorClass; - -struct GdkMotionEvent; - -struct GdkPadEvent; - -struct GdkPaintable; - -/** - * The list of functions that can be implemented for the `GdkPaintable` - * interface. - * - * Note that apart from the #GdkPaintableInterface.snapshot() function, no - * virtual function of this interface is mandatory to implement, though it - * is a good idea to implement #GdkPaintableInterface.get_current_image() - * for non-static paintables and #GdkPaintableInterface.get_flags() if the - * image is not dynamic as the default implementation returns no flags and - * that will make the implementation likely quite slow. - */ -struct GdkPaintableInterface -{ - GTypeInterface gIface; - /** */ - extern(C) void function(GdkPaintable* paintable, GdkSnapshot* snapshot, double width, double height) snapshot; - /** - * - * Params: - * paintable = a `GdkPaintable` - * Returns: An immutable paintable for the current - * contents of @paintable. - */ - extern(C) GdkPaintable* function(GdkPaintable* paintable) getCurrentImage; - /** - * - * Params: - * paintable = a `GdkPaintable` - * Returns: The `GdkPaintableFlags` for this paintable - */ - extern(C) GdkPaintableFlags function(GdkPaintable* paintable) getFlags; - /** - * - * Params: - * paintable = a `GdkPaintable` - * Returns: the intrinsic width of @paintable or 0 if none. - */ - extern(C) int function(GdkPaintable* paintable) getIntrinsicWidth; - /** - * - * Params: - * paintable = a `GdkPaintable` - * Returns: the intrinsic height of @paintable or 0 if none. - */ - extern(C) int function(GdkPaintable* paintable) getIntrinsicHeight; - /** - * - * Params: - * paintable = a `GdkPaintable` - * Returns: the intrinsic aspect ratio of @paintable or 0 if none. - */ - extern(C) double function(GdkPaintable* paintable) getIntrinsicAspectRatio; -} - -struct GdkPopup; - -struct GdkPopupInterface; - -struct GdkPopupLayout; - -struct GdkProximityEvent; - -struct GdkRGBA -{ - /** - * The intensity of the red channel from 0.0 to 1.0 inclusive - */ - float red; - /** - * The intensity of the green channel from 0.0 to 1.0 inclusive - */ - float green; - /** - * The intensity of the blue channel from 0.0 to 1.0 inclusive - */ - float blue; - /** - * The opacity of the color from 0.0 for completely translucent to - * 1.0 for opaque - */ - float alpha; -} - -/** - * A `GdkRectangle` data type for representing rectangles. - * - * `GdkRectangle` is identical to `cairo_rectangle_t`. Together with Cairo’s - * `cairo_region_t` data type, these are the central types for representing - * sets of pixels. - * - * The intersection of two rectangles can be computed with - * [method@Gdk.Rectangle.intersect]; to find the union of two rectangles use - * [method@Gdk.Rectangle.union]. - * - * The `cairo_region_t` type provided by Cairo is usually used for managing - * non-rectangular clipping of graphical operations. - * - * The Graphene library has a number of other data types for regions and - * volumes in 2D and 3D. - */ -struct GdkRectangle -{ - /** - * the x coordinate of the top left corner - */ - int x; - /** - * the y coordinate of the top left corner - */ - int y; - /** - * the width of the rectangle - */ - int width; - /** - * the height of the rectangle - */ - int height; -} - -struct GdkScrollEvent; - -struct GdkSeat -{ - GObject parentInstance; -} - -struct GdkSnapshot; - -struct GdkSnapshotClass; - -struct GdkSurface; - -struct GdkSurfaceClass; - -struct GdkTexture; - -struct GdkTextureClass; - -/** - * A #GdkTimeCoord stores a single event in a motion history. - */ -struct GdkTimeCoord -{ - /** - * The timestamp for this event. - */ - uint time; - /** - * Flags indicating what axes are present - */ - GdkAxisFlags flags; - /** - * axis values - */ - double[12] axes; -} - -struct GdkToplevel; - -struct GdkToplevelInterface; - -struct GdkToplevelLayout; - -struct GdkToplevelSize; - -struct GdkTouchEvent; - -struct GdkTouchpadEvent; - -struct GdkVulkanContext; - -/** - * The type of a function that can be registered with gdk_content_register_deserializer(). - * - * When the function gets called to operate on content, it can call functions on the - * @deserializer object to obtain the mime type, input stream, user data, etc. for its - * operation. - * - * Params: - * deserializer = a #GdkContentDeserializer - */ -public alias extern(C) void function(GdkContentDeserializer* deserializer) GdkContentDeserializeFunc; - -/** - * The type of a function that can be registered with gdk_content_register_serializer(). - * - * When the function gets called to operate on content, it can call functions on the - * @serializer object to obtain the mime type, output stream, user data, etc. for its - * operation. - * - * Params: - * serializer = a #GdkContentSerializer - */ -public alias extern(C) void function(GdkContentSerializer* serializer) GdkContentSerializeFunc; - -/** - * Defines all possible DND actions. - * - * This can be used in [method@Gdk.Drop.status] messages when any drop - * can be accepted or a more specific drop method is not yet known. - */ -enum ACTION_ALL = 7; -alias GDK_ACTION_ALL = ACTION_ALL; - -/** - * The middle button. - */ -enum BUTTON_MIDDLE = 2; -alias GDK_BUTTON_MIDDLE = BUTTON_MIDDLE; - -/** - * The primary button. This is typically the left mouse button, or the - * right button in a left-handed setup. - */ -enum BUTTON_PRIMARY = 1; -alias GDK_BUTTON_PRIMARY = BUTTON_PRIMARY; - -/** - * The secondary button. This is typically the right mouse button, or the - * left button in a left-handed setup. - */ -enum BUTTON_SECONDARY = 3; -alias GDK_BUTTON_SECONDARY = BUTTON_SECONDARY; - -/** - * Represents the current time, and can be used anywhere a time is expected. - */ -enum CURRENT_TIME = 0; -alias GDK_CURRENT_TIME = CURRENT_TIME; - -/** - * Use this macro as the return value for continuing the propagation of - * an event handler. - */ -enum EVENT_PROPAGATE = false; -alias GDK_EVENT_PROPAGATE = EVENT_PROPAGATE; - -/** - * Use this macro as the return value for stopping the propagation of - * an event handler. - */ -enum EVENT_STOP = true; -alias GDK_EVENT_STOP = EVENT_STOP; - -/** - * A mask covering all entries in `GdkModifierType`. - */ -enum MODIFIER_MASK = 469769999; -alias GDK_MODIFIER_MASK = MODIFIER_MASK; - -/** - * This is the priority that the idle handler processing surface updates - * is given in the main loop. - */ -enum PRIORITY_REDRAW = 120; -alias GDK_PRIORITY_REDRAW = PRIORITY_REDRAW; diff --git a/generated/gtkd/gdkpixbuf/Pixbuf.d b/generated/gtkd/gdkpixbuf/Pixbuf.d deleted file mode 100644 index c238c6529..000000000 --- a/generated/gtkd/gdkpixbuf/Pixbuf.d +++ /dev/null @@ -1,1856 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.Pixbuf; - -private import gdkpixbuf.PixbufFormat; -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.IconIF; -private import gio.IconT; -private import gio.InputStream; -private import gio.LoadableIconIF; -private import gio.LoadableIconT; -private import gio.OutputStream; -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.HashTable; -private import glib.ListSG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * A pixel buffer. - * - * `GdkPixbuf` contains information about an image's pixel data, - * its color space, bits per sample, width and height, and the - * rowstride (the number of bytes between the start of one row - * and the start of the next). - * - * ## Creating new `GdkPixbuf` - * - * The most basic way to create a pixbuf is to wrap an existing pixel - * buffer with a [class@GdkPixbuf.Pixbuf] instance. You can use the - * [`ctor@GdkPixbuf.Pixbuf.new_from_data`] function to do this. - * - * Every time you create a new `GdkPixbuf` instance for some data, you - * will need to specify the destroy notification function that will be - * called when the data buffer needs to be freed; this will happen when - * a `GdkPixbuf` is finalized by the reference counting functions. If - * you have a chunk of static data compiled into your application, you - * can pass in `NULL` as the destroy notification function so that the - * data will not be freed. - * - * The [`ctor@GdkPixbuf.Pixbuf.new`] constructor function can be used - * as a convenience to create a pixbuf with an empty buffer; this is - * equivalent to allocating a data buffer using `malloc()` and then - * wrapping it with `gdk_pixbuf_new_from_data()`. The `gdk_pixbuf_new()` - * function will compute an optimal rowstride so that rendering can be - * performed with an efficient algorithm. - * - * As a special case, you can use the [`ctor@GdkPixbuf.Pixbuf.new_from_xpm_data`] - * function to create a pixbuf from inline XPM image data. - * - * You can also copy an existing pixbuf with the [method@Pixbuf.copy] - * function. This is not the same as just acquiring a reference to - * the old pixbuf instance: the copy function will actually duplicate - * the pixel data in memory and create a new [class@Pixbuf] instance - * for it. - * - * ## Reference counting - * - * `GdkPixbuf` structures are reference counted. This means that an - * application can share a single pixbuf among many parts of the - * code. When a piece of the program needs to use a pixbuf, it should - * acquire a reference to it by calling `g_object_ref()`; when it no - * longer needs the pixbuf, it should release the reference it acquired - * by calling `g_object_unref()`. The resources associated with a - * `GdkPixbuf` will be freed when its reference count drops to zero. - * Newly-created `GdkPixbuf` instances start with a reference count - * of one. - * - * ## Image Data - * - * Image data in a pixbuf is stored in memory in an uncompressed, - * packed format. Rows in the image are stored top to bottom, and - * in each row pixels are stored from left to right. - * - * There may be padding at the end of a row. - * - * The "rowstride" value of a pixbuf, as returned by [`method@GdkPixbuf.Pixbuf.get_rowstride`], - * indicates the number of bytes between rows. - * - * **NOTE**: If you are copying raw pixbuf data with `memcpy()` note that the - * last row in the pixbuf may not be as wide as the full rowstride, but rather - * just as wide as the pixel data needs to be; that is: it is unsafe to do - * `memcpy (dest, pixels, rowstride * height)` to copy a whole pixbuf. Use - * [method@GdkPixbuf.Pixbuf.copy] instead, or compute the width in bytes of the - * last row as: - * - * ```c - * last_row = width * ((n_channels * bits_per_sample + 7) / 8); - * ``` - * - * The same rule applies when iterating over each row of a `GdkPixbuf` pixels - * array. - * - * The following code illustrates a simple `put_pixel()` - * function for RGB pixbufs with 8 bits per channel with an alpha - * channel. - * - * ```c - * static void - * put_pixel (GdkPixbuf *pixbuf, - * int x, - * int y, - * guchar red, - * guchar green, - * guchar blue, - * guchar alpha) - * { - * int n_channels = gdk_pixbuf_get_n_channels (pixbuf); - * - * // Ensure that the pixbuf is valid - * g_assert (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB); - * g_assert (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8); - * g_assert (gdk_pixbuf_get_has_alpha (pixbuf)); - * g_assert (n_channels == 4); - * - * int width = gdk_pixbuf_get_width (pixbuf); - * int height = gdk_pixbuf_get_height (pixbuf); - * - * // Ensure that the coordinates are in a valid range - * g_assert (x >= 0 && x < width); - * g_assert (y >= 0 && y < height); - * - * int rowstride = gdk_pixbuf_get_rowstride (pixbuf); - * - * // The pixel buffer in the GdkPixbuf instance - * guchar *pixels = gdk_pixbuf_get_pixels (pixbuf); - * - * // The pixel we wish to modify - * guchar *p = pixels + y * rowstride + x * n_channels; - * p[0] = red; - * p[1] = green; - * p[2] = blue; - * p[3] = alpha; - * } - * ``` - * - * ## Loading images - * - * The `GdkPixBuf` class provides a simple mechanism for loading - * an image from a file in synchronous and asynchronous fashion. - * - * For GUI applications, it is recommended to use the asynchronous - * stream API to avoid blocking the control flow of the application. - * - * Additionally, `GdkPixbuf` provides the [class@GdkPixbuf.PixbufLoader`] - * API for progressive image loading. - * - * ## Saving images - * - * The `GdkPixbuf` class provides methods for saving image data in - * a number of file formats. The formatted data can be written to a - * file or to a memory buffer. `GdkPixbuf` can also call a user-defined - * callback on the data, which allows to e.g. write the image - * to a socket or store it in a database. - */ -public class Pixbuf : ObjectG, IconIF, LoadableIconIF -{ - /** the main Gtk struct */ - protected GdkPixbuf* gdkPixbuf; - - /** Get the main Gtk struct */ - public GdkPixbuf* getPixbufStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixbuf; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkPixbuf; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixbuf* gdkPixbuf, bool ownedRef = false) - { - this.gdkPixbuf = gdkPixbuf; - super(cast(GObject*)gdkPixbuf, ownedRef); - } - - // add the Icon capabilities - mixin IconT!(GdkPixbuf); - - // add the LoadableIcon capabilities - mixin LoadableIconT!(GdkPixbuf); - - /** - * Saves pixbuf to a new buffer in format @type, which is currently "jpeg", - * "tiff", "png", "ico" or "bmp". See gdk_pixbuf_save_to_buffer() - * for more details. - * - * Params: - * buffer = location to receive a pointer to the new buffer. - * bufferSize = location to receive the size of the new buffer. - * type = name of file format. - * optionKeys = name of options to set, %NULL-terminated - * optionValues = values for named options - * - * Return: whether an error was set - * - * Since: 2.4 - * - * Throws: GException on failure. - */ - public bool saveToBuffer(out ubyte[] buffer, string type, string[] optionKeys, string[] optionValues) - { - char* outbuffer = null; - size_t bufferSize; - GError* err = null; - - auto p = gdk_pixbuf_save_to_bufferv(gdkPixbuf, &outbuffer, &bufferSize, Str.toStringz(type), Str.toStringzArray(optionKeys), Str.toStringzArray(optionValues), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - buffer = (cast(ubyte*)outbuffer)[0 .. bufferSize]; - - return p; - } - - /** - * Creates a new pixbuf by loading an image from an resource. - * - * The file format is detected automatically. - * - * Params: - * resourcePath = the path of the resource file - * - * Return: A newly-created pixbuf, or null if any of several error - * conditions occurred: the file could not be opened, the image format is - * not supported, there was not enough memory to allocate the image buffer, - * the stream contained invalid data, or the operation was cancelled. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static Pixbuf newFromResource(string resourcePath) - { - GError* err = null; - - auto p = gdk_pixbuf_new_from_resource(Str.toStringz(resourcePath), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return new Pixbuf(cast(GdkPixbuf*) p, true); - } - - /** - * Creates a new pixbuf by loading an image from an resource. - * - * The file format is detected automatically. - * - * The image will be scaled to fit in the requested size, optionally - * preserving the image's aspect ratio. When preserving the aspect ratio, - * a width of -1 will cause the image to be scaled to the exact given - * height, and a height of -1 will cause the image to be scaled to the - * exact given width. When not preserving aspect ratio, a width or - * height of -1 means to not scale the image at all in that dimension. - * - * The stream is not closed. - * - * Params: - * resourcePath = the path of the resource file - * width = The width the image should have or -1 to not constrain the width - * height = The height the image should have or -1 to not constrain the height - * preserveAspectRatio = true to preserve the image's aspect ratio - * - * Return: A newly-created pixbuf, or null if any of several error - * conditions occurred: the file could not be opened, the image format is - * not supported, there was not enough memory to allocate the image buffer, - * the stream contained invalid data, or the operation was cancelled. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static Pixbuf newFromResource(string resourcePath, int width, int height, bool preserveAspectRatio) - { - GError* err = null; - - auto p = gdk_pixbuf_new_from_resource_at_scale(Str.toStringz(resourcePath), width, height, preserveAspectRatio, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return new Pixbuf(cast(GdkPixbuf*) p, true); - } - - /** - * Queries a pointer to the pixel data of a pixbuf. - * - * Return: A pointer to the pixbuf's pixel data. - * Please see the section on [image data](image-data) for information - * about how the pixel data is stored in memory. - * - * This function will cause an implicit copy of the pixbuf data if the - * pixbuf was created from read-only data. - */ - public char* getPixels() - { - return gdk_pixbuf_get_pixels(gdkPixbuf); - } - - /** - */ - - /** */ - public static GType getType() - { - return gdk_pixbuf_get_type(); - } - - /** - * Creates a new `GdkPixbuf` structure and allocates a buffer for it. - * - * If the allocation of the buffer failed, this function will return `NULL`. - * - * The buffer has an optimal rowstride. Note that the buffer is not cleared; - * you will have to fill it completely yourself. - * - * Params: - * colorspace = Color space for image - * hasAlpha = Whether the image should have transparency information - * bitsPerSample = Number of bits per color sample - * width = Width of image in pixels, must be > 0 - * height = Height of image in pixels, must be > 0 - * - * Returns: A newly-created pixel buffer - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GdkColorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height) - { - auto __p = gdk_pixbuf_new(colorspace, hasAlpha, bitsPerSample, width, height); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new #GdkPixbuf out of in-memory readonly image data. - * - * Currently only RGB images with 8 bits per sample are supported. - * - * This is the `GBytes` variant of gdk_pixbuf_new_from_data(), useful - * for language bindings. - * - * Params: - * data = Image data in 8-bit/sample packed format inside a #GBytes - * colorspace = Colorspace for the image data - * hasAlpha = Whether the data has an opacity channel - * bitsPerSample = Number of bits per sample - * width = Width of the image in pixels, must be > 0 - * height = Height of the image in pixels, must be > 0 - * rowstride = Distance in bytes between row starts - * - * Returns: A newly-created pixbuf - * - * Since: 2.32 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Bytes data, GdkColorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height, int rowstride) - { - auto __p = gdk_pixbuf_new_from_bytes((data is null) ? null : data.getBytesStruct(), colorspace, hasAlpha, bitsPerSample, width, height, rowstride); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_bytes"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new #GdkPixbuf out of in-memory image data. - * - * Currently only RGB images with 8 bits per sample are supported. - * - * Since you are providing a pre-allocated pixel buffer, you must also - * specify a way to free that data. This is done with a function of - * type `GdkPixbufDestroyNotify`. When a pixbuf created with is - * finalized, your destroy notification function will be called, and - * it is its responsibility to free the pixel array. - * - * See also: [ctor@GdkPixbuf.Pixbuf.new_from_bytes] - * - * Params: - * data = Image data in 8-bit/sample packed format - * colorspace = Colorspace for the image data - * hasAlpha = Whether the data has an opacity channel - * bitsPerSample = Number of bits per sample - * width = Width of the image in pixels, must be > 0 - * height = Height of the image in pixels, must be > 0 - * rowstride = Distance in bytes between row starts - * destroyFn = Function used to free the data when the pixbuf's reference count - * drops to zero, or %NULL if the data should not be freed - * destroyFnData = Closure data to pass to the destroy notification function - * - * Returns: A newly-created pixbuf - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(char[] data, GdkColorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height, int rowstride, GdkPixbufDestroyNotify destroyFn, void* destroyFnData) - { - auto __p = gdk_pixbuf_new_from_data(data.ptr, colorspace, hasAlpha, bitsPerSample, width, height, rowstride, destroyFn, destroyFnData); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_data"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new pixbuf by loading an image from a file. - * - * The file format is detected automatically. - * - * If `NULL` is returned, then @error will be set. Possible errors are: - * - * - the file could not be opened - * - there is no loader for the file's format - * - there is not enough memory to allocate the image buffer - * - the image buffer contains invalid data - * - * The error domains are `GDK_PIXBUF_ERROR` and `G_FILE_ERROR`. - * - * Params: - * filename = Name of file to load, in the GLib file - * name encoding - * - * Returns: A newly-created pixbuf - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string filename) - { - GError* err = null; - - auto __p = gdk_pixbuf_new_from_file(Str.toStringz(filename), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_file"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new pixbuf by loading an image from a file. - * - * The file format is detected automatically. - * - * If `NULL` is returned, then @error will be set. Possible errors are: - * - * - the file could not be opened - * - there is no loader for the file's format - * - there is not enough memory to allocate the image buffer - * - the image buffer contains invalid data - * - * The error domains are `GDK_PIXBUF_ERROR` and `G_FILE_ERROR`. - * - * The image will be scaled to fit in the requested size, optionally preserving - * the image's aspect ratio. - * - * When preserving the aspect ratio, a `width` of -1 will cause the image - * to be scaled to the exact given height, and a `height` of -1 will cause - * the image to be scaled to the exact given width. When not preserving - * aspect ratio, a `width` or `height` of -1 means to not scale the image - * at all in that dimension. Negative values for `width` and `height` are - * allowed since 2.8. - * - * Params: - * filename = Name of file to load, in the GLib file - * name encoding - * width = The width the image should have or -1 to not constrain the width - * height = The height the image should have or -1 to not constrain the height - * preserveAspectRatio = `TRUE` to preserve the image's aspect ratio - * - * Returns: A newly-created pixbuf - * - * Since: 2.6 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string filename, int width, int height, bool preserveAspectRatio) - { - GError* err = null; - - auto __p = gdk_pixbuf_new_from_file_at_scale(Str.toStringz(filename), width, height, preserveAspectRatio, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_file_at_scale"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new pixbuf by loading an image from a file. - * - * The file format is detected automatically. - * - * If `NULL` is returned, then @error will be set. Possible errors are: - * - * - the file could not be opened - * - there is no loader for the file's format - * - there is not enough memory to allocate the image buffer - * - the image buffer contains invalid data - * - * The error domains are `GDK_PIXBUF_ERROR` and `G_FILE_ERROR`. - * - * The image will be scaled to fit in the requested size, preserving - * the image's aspect ratio. Note that the returned pixbuf may be smaller - * than `width` x `height`, if the aspect ratio requires it. To load - * and image at the requested size, regardless of aspect ratio, use - * [ctor@GdkPixbuf.Pixbuf.new_from_file_at_scale]. - * - * Params: - * filename = Name of file to load, in the GLib file - * name encoding - * width = The width the image should have or -1 to not constrain the width - * height = The height the image should have or -1 to not constrain the height - * - * Returns: A newly-created pixbuf - * - * Since: 2.4 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string filename, int width, int height) - { - GError* err = null; - - auto __p = gdk_pixbuf_new_from_file_at_size(Str.toStringz(filename), width, height, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_file_at_size"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a `GdkPixbuf` from a flat representation that is suitable for - * storing as inline data in a program. - * - * This is useful if you want to ship a program with images, but don't want - * to depend on any external files. - * - * GdkPixbuf ships with a program called `gdk-pixbuf-csource`, which allows - * for conversion of `GdkPixbuf`s into such a inline representation. - * - * In almost all cases, you should pass the `--raw` option to - * `gdk-pixbuf-csource`. A sample invocation would be: - * - * ``` - * gdk-pixbuf-csource --raw --name=myimage_inline myimage.png - * ``` - * - * For the typical case where the inline pixbuf is read-only static data, - * you don't need to copy the pixel data unless you intend to write to - * it, so you can pass `FALSE` for `copy_pixels`. If you pass `--rle` to - * `gdk-pixbuf-csource`, a copy will be made even if `copy_pixels` is `FALSE`, - * so using this option is generally a bad idea. - * - * If you create a pixbuf from const inline data compiled into your - * program, it's probably safe to ignore errors and disable length checks, - * since things will always succeed: - * - * ```c - * pixbuf = gdk_pixbuf_new_from_inline (-1, myimage_inline, FALSE, NULL); - * ``` - * - * For non-const inline data, you could get out of memory. For untrusted - * inline data located at runtime, you could have corrupt inline data in - * addition. - * - * Deprecated: Use `GResource` instead. - * - * Params: - * data = Byte data containing a - * serialized `GdkPixdata` structure - * copyPixels = Whether to copy the pixel data, or use direct pointers - * `data` for the resulting pixbuf - * - * Returns: A newly-created pixbuf - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data, bool copyPixels) - { - GError* err = null; - - auto __p = gdk_pixbuf_new_from_inline(cast(int)data.length, data.ptr, copyPixels, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_inline"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new pixbuf by loading an image from an input stream. - * - * The file format is detected automatically. - * - * If `NULL` is returned, then `error` will be set. - * - * The `cancellable` can be used to abort the operation from another thread. - * If the operation was cancelled, the error `G_IO_ERROR_CANCELLED` will be - * returned. Other possible errors are in the `GDK_PIXBUF_ERROR` and - * `G_IO_ERROR` domains. - * - * The stream is not closed. - * - * Params: - * stream = a `GInputStream` to load the pixbuf from - * cancellable = optional `GCancellable` object, `NULL` to ignore - * - * Returns: A newly-created pixbuf - * - * Since: 2.14 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream stream, Cancellable cancellable) - { - GError* err = null; - - auto __p = gdk_pixbuf_new_from_stream((stream is null) ? null : stream.getInputStreamStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_stream"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new pixbuf by loading an image from an input stream. - * - * The file format is detected automatically. If `NULL` is returned, then - * @error will be set. The @cancellable can be used to abort the operation - * from another thread. If the operation was cancelled, the error - * `G_IO_ERROR_CANCELLED` will be returned. Other possible errors are in - * the `GDK_PIXBUF_ERROR` and `G_IO_ERROR` domains. - * - * The image will be scaled to fit in the requested size, optionally - * preserving the image's aspect ratio. - * - * When preserving the aspect ratio, a `width` of -1 will cause the image to be - * scaled to the exact given height, and a `height` of -1 will cause the image - * to be scaled to the exact given width. If both `width` and `height` are - * given, this function will behave as if the smaller of the two values - * is passed as -1. - * - * When not preserving aspect ratio, a `width` or `height` of -1 means to not - * scale the image at all in that dimension. - * - * The stream is not closed. - * - * Params: - * stream = a `GInputStream` to load the pixbuf from - * width = The width the image should have or -1 to not constrain the width - * height = The height the image should have or -1 to not constrain the height - * preserveAspectRatio = `TRUE` to preserve the image's aspect ratio - * cancellable = optional `GCancellable` object, `NULL` to ignore - * - * Returns: A newly-created pixbuf - * - * Since: 2.14 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream stream, int width, int height, bool preserveAspectRatio, Cancellable cancellable) - { - GError* err = null; - - auto __p = gdk_pixbuf_new_from_stream_at_scale((stream is null) ? null : stream.getInputStreamStruct(), width, height, preserveAspectRatio, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_stream_at_scale"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Finishes an asynchronous pixbuf creation operation started with - * gdk_pixbuf_new_from_stream_async(). - * - * Params: - * asyncResult = a `GAsyncResult` - * - * Returns: the newly created pixbuf - * - * Since: 2.24 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(AsyncResultIF asyncResult) - { - GError* err = null; - - auto __p = gdk_pixbuf_new_from_stream_finish((asyncResult is null) ? null : asyncResult.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_stream_finish"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new pixbuf by parsing XPM data in memory. - * - * This data is commonly the result of including an XPM file into a - * program's C source. - * - * Params: - * data = Pointer to inline XPM data. - * - * Returns: A newly-created pixbuf - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string[] data) - { - auto __p = gdk_pixbuf_new_from_xpm_data(Str.toStringzArray(data)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_xpm_data"); - } - - this(cast(GdkPixbuf*) __p, true); - } - - /** - * Calculates the rowstride that an image created with those values would - * have. - * - * This function is useful for front-ends and backends that want to check - * image values without needing to create a `GdkPixbuf`. - * - * Params: - * colorspace = Color space for image - * hasAlpha = Whether the image should have transparency information - * bitsPerSample = Number of bits per color sample - * width = Width of image in pixels, must be > 0 - * height = Height of image in pixels, must be > 0 - * - * Returns: the rowstride for the given values, or -1 in case of error. - * - * Since: 2.36.8 - */ - public static int calculateRowstride(GdkColorspace colorspace, bool hasAlpha, int bitsPerSample, int width, int height) - { - return gdk_pixbuf_calculate_rowstride(colorspace, hasAlpha, bitsPerSample, width, height); - } - - /** - * Parses an image file far enough to determine its format and size. - * - * Params: - * filename = The name of the file to identify. - * width = Return location for the width of the image - * height = Return location for the height of the image - * - * Returns: A `GdkPixbufFormat` describing - * the image format of the file - * - * Since: 2.4 - */ - public static PixbufFormat getFileInfo(string filename, out int width, out int height) - { - auto __p = gdk_pixbuf_get_file_info(Str.toStringz(filename), &width, &height); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PixbufFormat)(cast(GdkPixbufFormat*) __p); - } - - /** - * Asynchronously parses an image file far enough to determine its - * format and size. - * - * For more details see gdk_pixbuf_get_file_info(), which is the synchronous - * version of this function. - * - * When the operation is finished, @callback will be called in the - * main thread. You can then call gdk_pixbuf_get_file_info_finish() to - * get the result of the operation. - * - * Params: - * filename = The name of the file to identify - * cancellable = optional `GCancellable` object, `NULL` to ignore - * callback = a `GAsyncReadyCallback` to call when the file info is available - * userData = the data to pass to the callback function - * - * Since: 2.32 - */ - public static void getFileInfoAsync(string filename, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_pixbuf_get_file_info_async(Str.toStringz(filename), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous pixbuf parsing operation started with - * gdk_pixbuf_get_file_info_async(). - * - * Params: - * asyncResult = a `GAsyncResult` - * width = Return location for the width of the image, or `NULL` - * height = Return location for the height of the image, or `NULL` - * - * Returns: A `GdkPixbufFormat` describing the - * image format of the file - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public static PixbufFormat getFileInfoFinish(AsyncResultIF asyncResult, out int width, out int height) - { - GError* err = null; - - auto __p = gdk_pixbuf_get_file_info_finish((asyncResult is null) ? null : asyncResult.getAsyncResultStruct(), &width, &height, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PixbufFormat)(cast(GdkPixbufFormat*) __p); - } - - /** - * Obtains the available information about the image formats supported - * by GdkPixbuf. - * - * Returns: A list of - * support image formats. - * - * Since: 2.2 - */ - public static ListSG getFormats() - { - auto __p = gdk_pixbuf_get_formats(); - - if(__p is null) - { - return null; - } - - return new ListSG(cast(GSList*) __p); - } - - /** - * Initalizes the gdk-pixbuf loader modules referenced by the `loaders.cache` - * file present inside that directory. - * - * This is to be used by applications that want to ship certain loaders - * in a different location from the system ones. - * - * This is needed when the OS or runtime ships a minimal number of loaders - * so as to reduce the potential attack surface of carefully crafted image - * files, especially for uncommon file types. Applications that require - * broader image file types coverage, such as image viewers, would be - * expected to ship the gdk-pixbuf modules in a separate location, bundled - * with the application in a separate directory from the OS or runtime- - * provided modules. - * - * Params: - * path = Path to directory where the `loaders.cache` is installed - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public static bool initModules(string path) - { - GError* err = null; - - auto __p = gdk_pixbuf_init_modules(Str.toStringz(path), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a new pixbuf by asynchronously loading an image from an input stream. - * - * For more details see gdk_pixbuf_new_from_stream(), which is the synchronous - * version of this function. - * - * When the operation is finished, @callback will be called in the main thread. - * You can then call gdk_pixbuf_new_from_stream_finish() to get the result of - * the operation. - * - * Params: - * stream = a `GInputStream` from which to load the pixbuf - * cancellable = optional `GCancellable` object, `NULL` to ignore - * callback = a `GAsyncReadyCallback` to call when the pixbuf is loaded - * userData = the data to pass to the callback function - * - * Since: 2.24 - */ - public static void newFromStreamAsync(InputStream stream, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_pixbuf_new_from_stream_async((stream is null) ? null : stream.getInputStreamStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Creates a new pixbuf by asynchronously loading an image from an input stream. - * - * For more details see gdk_pixbuf_new_from_stream_at_scale(), which is the synchronous - * version of this function. - * - * When the operation is finished, @callback will be called in the main thread. - * You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation. - * - * Params: - * stream = a `GInputStream` from which to load the pixbuf - * width = the width the image should have or -1 to not constrain the width - * height = the height the image should have or -1 to not constrain the height - * preserveAspectRatio = `TRUE` to preserve the image's aspect ratio - * cancellable = optional `GCancellable` object, `NULL` to ignore - * callback = a `GAsyncReadyCallback` to call when the pixbuf is loaded - * userData = the data to pass to the callback function - * - * Since: 2.24 - */ - public static void newFromStreamAtScaleAsync(InputStream stream, int width, int height, bool preserveAspectRatio, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_pixbuf_new_from_stream_at_scale_async((stream is null) ? null : stream.getInputStreamStruct(), width, height, preserveAspectRatio, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous pixbuf save operation started with - * gdk_pixbuf_save_to_stream_async(). - * - * Params: - * asyncResult = a `GAsyncResult` - * - * Returns: `TRUE` if the pixbuf was saved successfully, `FALSE` if an error was set. - * - * Since: 2.24 - * - * Throws: GException on failure. - */ - public static bool saveToStreamFinish(AsyncResultIF asyncResult) - { - GError* err = null; - - auto __p = gdk_pixbuf_save_to_stream_finish((asyncResult is null) ? null : asyncResult.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Takes an existing pixbuf and adds an alpha channel to it. - * - * If the existing pixbuf already had an alpha channel, the channel - * values are copied from the original; otherwise, the alpha channel - * is initialized to 255 (full opacity). - * - * If `substitute_color` is `TRUE`, then the color specified by the - * (`r`, `g`, `b`) arguments will be assigned zero opacity. That is, - * if you pass `(255, 255, 255)` for the substitute color, all white - * pixels will become fully transparent. - * - * If `substitute_color` is `FALSE`, then the (`r`, `g`, `b`) arguments - * will be ignored. - * - * Params: - * substituteColor = Whether to set a color to zero opacity. - * r = Red value to substitute. - * g = Green value to substitute. - * b = Blue value to substitute. - * - * Returns: A newly-created pixbuf - */ - public Pixbuf addAlpha(bool substituteColor, char r, char g, char b) - { - auto __p = gdk_pixbuf_add_alpha(gdkPixbuf, substituteColor, r, g, b); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Takes an existing pixbuf and checks for the presence of an - * associated "orientation" option. - * - * The orientation option may be provided by the JPEG loader (which - * reads the exif orientation tag) or the TIFF loader (which reads - * the TIFF orientation tag, and compensates it for the partial - * transforms performed by libtiff). - * - * If an orientation option/tag is present, the appropriate transform - * will be performed so that the pixbuf is oriented correctly. - * - * Returns: A newly-created pixbuf - * - * Since: 2.12 - */ - public Pixbuf applyEmbeddedOrientation() - { - auto __p = gdk_pixbuf_apply_embedded_orientation(gdkPixbuf); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a transformation of the source image @src by scaling by - * @scale_x and @scale_y then translating by @offset_x and @offset_y. - * - * This gives an image in the coordinates of the destination pixbuf. - * The rectangle (@dest_x, @dest_y, @dest_width, @dest_height) - * is then alpha blended onto the corresponding rectangle of the - * original destination image. - * - * When the destination rectangle contains parts not in the source - * image, the data at the edges of the source image is replicated - * to infinity. - * - * ![](composite.png) - * - * Params: - * dest = the #GdkPixbuf into which to render the results - * destX = the left coordinate for region to render - * destY = the top coordinate for region to render - * destWidth = the width of the region to render - * destHeight = the height of the region to render - * offsetX = the offset in the X direction (currently rounded to an integer) - * offsetY = the offset in the Y direction (currently rounded to an integer) - * scaleX = the scale factor in the X direction - * scaleY = the scale factor in the Y direction - * interpType = the interpolation type for the transformation. - * overallAlpha = overall alpha for source image (0..255) - */ - public void composite(Pixbuf dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, GdkInterpType interpType, int overallAlpha) - { - gdk_pixbuf_composite(gdkPixbuf, (dest is null) ? null : dest.getPixbufStruct(), destX, destY, destWidth, destHeight, offsetX, offsetY, scaleX, scaleY, interpType, overallAlpha); - } - - /** - * Creates a transformation of the source image @src by scaling by - * @scale_x and @scale_y then translating by @offset_x and @offset_y, - * then alpha blends the rectangle (@dest_x ,@dest_y, @dest_width, - * @dest_height) of the resulting image with a checkboard of the - * colors @color1 and @color2 and renders it onto the destination - * image. - * - * If the source image has no alpha channel, and @overall_alpha is 255, a fast - * path is used which omits the alpha blending and just performs the scaling. - * - * See gdk_pixbuf_composite_color_simple() for a simpler variant of this - * function suitable for many tasks. - * - * Params: - * dest = the #GdkPixbuf into which to render the results - * destX = the left coordinate for region to render - * destY = the top coordinate for region to render - * destWidth = the width of the region to render - * destHeight = the height of the region to render - * offsetX = the offset in the X direction (currently rounded to an integer) - * offsetY = the offset in the Y direction (currently rounded to an integer) - * scaleX = the scale factor in the X direction - * scaleY = the scale factor in the Y direction - * interpType = the interpolation type for the transformation. - * overallAlpha = overall alpha for source image (0..255) - * checkX = the X offset for the checkboard (origin of checkboard is at -@check_x, -@check_y) - * checkY = the Y offset for the checkboard - * checkSize = the size of checks in the checkboard (must be a power of two) - * color1 = the color of check at upper left - * color2 = the color of the other check - */ - public void compositeColor(Pixbuf dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, GdkInterpType interpType, int overallAlpha, int checkX, int checkY, int checkSize, uint color1, uint color2) - { - gdk_pixbuf_composite_color(gdkPixbuf, (dest is null) ? null : dest.getPixbufStruct(), destX, destY, destWidth, destHeight, offsetX, offsetY, scaleX, scaleY, interpType, overallAlpha, checkX, checkY, checkSize, color1, color2); - } - - /** - * Creates a new pixbuf by scaling `src` to `dest_width` x `dest_height` - * and alpha blending the result with a checkboard of colors `color1` - * and `color2`. - * - * Params: - * destWidth = the width of destination image - * destHeight = the height of destination image - * interpType = the interpolation type for the transformation. - * overallAlpha = overall alpha for source image (0..255) - * checkSize = the size of checks in the checkboard (must be a power of two) - * color1 = the color of check at upper left - * color2 = the color of the other check - * - * Returns: the new pixbuf - */ - public Pixbuf compositeColorSimple(int destWidth, int destHeight, GdkInterpType interpType, int overallAlpha, int checkSize, uint color1, uint color2) - { - auto __p = gdk_pixbuf_composite_color_simple(gdkPixbuf, destWidth, destHeight, interpType, overallAlpha, checkSize, color1, color2); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Creates a new `GdkPixbuf` with a copy of the information in the specified - * `pixbuf`. - * - * Note that this does not copy the options set on the original `GdkPixbuf`, - * use gdk_pixbuf_copy_options() for this. - * - * Returns: A newly-created pixbuf - */ - public Pixbuf copy() - { - auto __p = gdk_pixbuf_copy(gdkPixbuf); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Copies a rectangular area from `src_pixbuf` to `dest_pixbuf`. - * - * Conversion of pixbuf formats is done automatically. - * - * If the source rectangle overlaps the destination rectangle on the - * same pixbuf, it will be overwritten during the copy operation. - * Therefore, you can not use this function to scroll a pixbuf. - * - * Params: - * srcX = Source X coordinate within @src_pixbuf. - * srcY = Source Y coordinate within @src_pixbuf. - * width = Width of the area to copy. - * height = Height of the area to copy. - * destPixbuf = Destination pixbuf. - * destX = X coordinate within @dest_pixbuf. - * destY = Y coordinate within @dest_pixbuf. - */ - public void copyArea(int srcX, int srcY, int width, int height, Pixbuf destPixbuf, int destX, int destY) - { - gdk_pixbuf_copy_area(gdkPixbuf, srcX, srcY, width, height, (destPixbuf is null) ? null : destPixbuf.getPixbufStruct(), destX, destY); - } - - /** - * Copies the key/value pair options attached to a `GdkPixbuf` to another - * `GdkPixbuf`. - * - * This is useful to keep original metadata after having manipulated - * a file. However be careful to remove metadata which you've already - * applied, such as the "orientation" option after rotating the image. - * - * Params: - * destPixbuf = the destination pixbuf - * - * Returns: `TRUE` on success. - * - * Since: 2.36 - */ - public bool copyOptions(Pixbuf destPixbuf) - { - return gdk_pixbuf_copy_options(gdkPixbuf, (destPixbuf is null) ? null : destPixbuf.getPixbufStruct()) != 0; - } - - /** - * Clears a pixbuf to the given RGBA value, converting the RGBA value into - * the pixbuf's pixel format. - * - * The alpha component will be ignored if the pixbuf doesn't have an alpha - * channel. - * - * Params: - * pixel = RGBA pixel to used to clear (`0xffffffff` is opaque white, - * `0x00000000` transparent black) - */ - public void fill(uint pixel) - { - gdk_pixbuf_fill(gdkPixbuf, pixel); - } - - /** - * Flips a pixbuf horizontally or vertically and returns the - * result in a new pixbuf. - * - * Params: - * horizontal = `TRUE` to flip horizontally, `FALSE` to flip vertically - * - * Returns: the new pixbuf - * - * Since: 2.6 - */ - public Pixbuf flip(bool horizontal) - { - auto __p = gdk_pixbuf_flip(gdkPixbuf, horizontal); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Queries the number of bits per color sample in a pixbuf. - * - * Returns: Number of bits per color sample. - */ - public int getBitsPerSample() - { - return gdk_pixbuf_get_bits_per_sample(gdkPixbuf); - } - - /** - * Returns the length of the pixel data, in bytes. - * - * Returns: The length of the pixel data. - * - * Since: 2.26 - */ - public size_t getByteLength() - { - return gdk_pixbuf_get_byte_length(gdkPixbuf); - } - - /** - * Queries the color space of a pixbuf. - * - * Returns: Color space. - */ - public GdkColorspace getColorspace() - { - return gdk_pixbuf_get_colorspace(gdkPixbuf); - } - - /** - * Queries whether a pixbuf has an alpha channel (opacity information). - * - * Returns: `TRUE` if it has an alpha channel, `FALSE` otherwise. - */ - public bool getHasAlpha() - { - return gdk_pixbuf_get_has_alpha(gdkPixbuf) != 0; - } - - /** - * Queries the height of a pixbuf. - * - * Returns: Height in pixels. - */ - public int getHeight() - { - return gdk_pixbuf_get_height(gdkPixbuf); - } - - /** - * Queries the number of channels of a pixbuf. - * - * Returns: Number of channels. - */ - public int getNChannels() - { - return gdk_pixbuf_get_n_channels(gdkPixbuf); - } - - /** - * Looks up @key in the list of options that may have been attached to the - * @pixbuf when it was loaded, or that may have been attached by another - * function using gdk_pixbuf_set_option(). - * - * For instance, the ANI loader provides "Title" and "Artist" options. - * The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot - * options for cursor definitions. The PNG loader provides the tEXt ancillary - * chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders - * return an "orientation" option string that corresponds to the embedded - * TIFF/Exif orientation tag (if present). Since 2.32, the TIFF loader sets - * the "multipage" option string to "yes" when a multi-page TIFF is loaded. - * Since 2.32 the JPEG and PNG loaders set "x-dpi" and "y-dpi" if the file - * contains image density information in dots per inch. - * Since 2.36.6, the JPEG loader sets the "comment" option with the comment - * EXIF tag. - * - * Params: - * key = a nul-terminated string. - * - * Returns: the value associated with `key` - */ - public string getOption(string key) - { - return Str.toString(gdk_pixbuf_get_option(gdkPixbuf, Str.toStringz(key))); - } - - /** - * Returns a `GHashTable` with a list of all the options that may have been - * attached to the `pixbuf` when it was loaded, or that may have been - * attached by another function using [method@GdkPixbuf.Pixbuf.set_option]. - * - * Returns: a #GHashTable - * of key/values pairs - * - * Since: 2.32 - */ - public HashTable getOptions() - { - auto __p = gdk_pixbuf_get_options(gdkPixbuf); - - if(__p is null) - { - return null; - } - - return new HashTable(cast(GHashTable*) __p); - } - - /** - * Queries a pointer to the pixel data of a pixbuf. - * - * This function will cause an implicit copy of the pixbuf data if the - * pixbuf was created from read-only data. - * - * Please see the section on [image data](#image-data) for information - * about how the pixel data is stored in memory. - * - * Returns: A pointer to the pixbuf's - * pixel data. - * - * Since: 2.26 - */ - public char[] getPixelsWithLength() - { - uint length; - - auto __p = gdk_pixbuf_get_pixels_with_length(gdkPixbuf, &length); - - return __p[0 .. length]; - } - - /** - * Queries the rowstride of a pixbuf, which is the number of bytes between - * the start of a row and the start of the next row. - * - * Returns: Distance between row starts. - */ - public int getRowstride() - { - return gdk_pixbuf_get_rowstride(gdkPixbuf); - } - - /** - * Queries the width of a pixbuf. - * - * Returns: Width in pixels. - */ - public int getWidth() - { - return gdk_pixbuf_get_width(gdkPixbuf); - } - - /** - * Creates a new pixbuf which represents a sub-region of `src_pixbuf`. - * - * The new pixbuf shares its pixels with the original pixbuf, so - * writing to one affects both. The new pixbuf holds a reference to - * `src_pixbuf`, so `src_pixbuf` will not be finalized until the new - * pixbuf is finalized. - * - * Note that if `src_pixbuf` is read-only, this function will force it - * to be mutable. - * - * Params: - * srcX = X coord in @src_pixbuf - * srcY = Y coord in @src_pixbuf - * width = width of region in @src_pixbuf - * height = height of region in @src_pixbuf - * - * Returns: a new pixbuf - */ - public Pixbuf newSubpixbuf(int srcX, int srcY, int width, int height) - { - auto __p = gdk_pixbuf_new_subpixbuf(gdkPixbuf, srcX, srcY, width, height); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Provides a #GBytes buffer containing the raw pixel data; the data - * must not be modified. - * - * This function allows skipping the implicit copy that must be made - * if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. - * - * Returns: A new reference to a read-only copy of - * the pixel data. Note that for mutable pixbufs, this function will - * incur a one-time copy of the pixel data for conversion into the - * returned #GBytes. - * - * Since: 2.32 - */ - public Bytes readPixelBytes() - { - auto __p = gdk_pixbuf_read_pixel_bytes(gdkPixbuf); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Provides a read-only pointer to the raw pixel data. - * - * This function allows skipping the implicit copy that must be made - * if gdk_pixbuf_get_pixels() is called on a read-only pixbuf. - * - * Returns: a read-only pointer to the raw pixel data - * - * Since: 2.32 - */ - public ubyte* readPixels() - { - return gdk_pixbuf_read_pixels(gdkPixbuf); - } - - /** - * Removes the key/value pair option attached to a `GdkPixbuf`. - * - * Params: - * key = a nul-terminated string representing the key to remove. - * - * Returns: `TRUE` if an option was removed, `FALSE` if not. - * - * Since: 2.36 - */ - public bool removeOption(string key) - { - return gdk_pixbuf_remove_option(gdkPixbuf, Str.toStringz(key)) != 0; - } - - /** - * Rotates a pixbuf by a multiple of 90 degrees, and returns the - * result in a new pixbuf. - * - * If `angle` is 0, this function will return a copy of `src`. - * - * Params: - * angle = the angle to rotate by - * - * Returns: the new pixbuf - * - * Since: 2.6 - */ - public Pixbuf rotateSimple(GdkPixbufRotation angle) - { - auto __p = gdk_pixbuf_rotate_simple(gdkPixbuf, angle); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Modifies saturation and optionally pixelates `src`, placing the result in - * `dest`. - * - * The `src` and `dest` pixbufs must have the same image format, size, and - * rowstride. - * - * The `src` and `dest` arguments may be the same pixbuf with no ill effects. - * - * If `saturation` is 1.0 then saturation is not changed. If it's less than 1.0, - * saturation is reduced (the image turns toward grayscale); if greater than - * 1.0, saturation is increased (the image gets more vivid colors). - * - * If `pixelate` is `TRUE`, then pixels are faded in a checkerboard pattern to - * create a pixelated image. - * - * Params: - * dest = place to write modified version of @src - * saturation = saturation factor - * pixelate = whether to pixelate - */ - public void saturateAndPixelate(Pixbuf dest, float saturation, bool pixelate) - { - gdk_pixbuf_saturate_and_pixelate(gdkPixbuf, (dest is null) ? null : dest.getPixbufStruct(), saturation, pixelate); - } - - /** - * Vector version of `gdk_pixbuf_save_to_callback()`. - * - * Saves pixbuf to a callback in format @type, which is currently "jpeg", - * "png", "tiff", "ico" or "bmp". - * - * If @error is set, `FALSE` will be returned. - * - * See [method@GdkPixbuf.Pixbuf.save_to_callback] for more details. - * - * Params: - * saveFunc = a function that is called to save each block of data that - * the save routine generates. - * userData = user data to pass to the save function. - * type = name of file format. - * optionKeys = name of options to set - * optionValues = values for named options - * - * Returns: whether an error was set - * - * Since: 2.4 - * - * Throws: GException on failure. - */ - public bool saveToCallbackv(GdkPixbufSaveFunc saveFunc, void* userData, string type, string[] optionKeys, string[] optionValues) - { - GError* err = null; - - auto __p = gdk_pixbuf_save_to_callbackv(gdkPixbuf, saveFunc, userData, Str.toStringz(type), Str.toStringzArray(optionKeys), Str.toStringzArray(optionValues), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Saves `pixbuf` to an output stream. - * - * Supported file formats are currently "jpeg", "tiff", "png", "ico" or - * "bmp". - * - * See [method@GdkPixbuf.Pixbuf.save_to_stream] for more details. - * - * Params: - * stream = a `GOutputStream` to save the pixbuf to - * type = name of file format - * optionKeys = name of options to set - * optionValues = values for named options - * cancellable = optional `GCancellable` object, `NULL` to ignore - * - * Returns: `TRUE` if the pixbuf was saved successfully, `FALSE` if an - * error was set. - * - * Since: 2.36 - * - * Throws: GException on failure. - */ - public bool saveToStreamv(OutputStream stream, string type, string[] optionKeys, string[] optionValues, Cancellable cancellable) - { - GError* err = null; - - auto __p = gdk_pixbuf_save_to_streamv(gdkPixbuf, (stream is null) ? null : stream.getOutputStreamStruct(), Str.toStringz(type), Str.toStringzArray(optionKeys), Str.toStringzArray(optionValues), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Saves `pixbuf` to an output stream asynchronously. - * - * For more details see gdk_pixbuf_save_to_streamv(), which is the synchronous - * version of this function. - * - * When the operation is finished, `callback` will be called in the main thread. - * - * You can then call gdk_pixbuf_save_to_stream_finish() to get the result of - * the operation. - * - * Params: - * stream = a `GOutputStream` to which to save the pixbuf - * type = name of file format - * optionKeys = name of options to set - * optionValues = values for named options - * cancellable = optional `GCancellable` object, `NULL` to ignore - * callback = a `GAsyncReadyCallback` to call when the pixbuf is saved - * userData = the data to pass to the callback function - * - * Since: 2.36 - */ - public void saveToStreamvAsync(OutputStream stream, string type, string[] optionKeys, string[] optionValues, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_pixbuf_save_to_streamv_async(gdkPixbuf, (stream is null) ? null : stream.getOutputStreamStruct(), Str.toStringz(type), Str.toStringzArray(optionKeys), Str.toStringzArray(optionValues), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Vector version of `gdk_pixbuf_save()`. - * - * Saves pixbuf to a file in `type`, which is currently "jpeg", "png", "tiff", "ico" or "bmp". - * - * If @error is set, `FALSE` will be returned. - * - * See [method@GdkPixbuf.Pixbuf.save] for more details. - * - * Params: - * filename = name of file to save. - * type = name of file format. - * optionKeys = name of options to set - * optionValues = values for named options - * - * Returns: whether an error was set - * - * Throws: GException on failure. - */ - public bool savev(string filename, string type, string[] optionKeys, string[] optionValues) - { - GError* err = null; - - auto __p = gdk_pixbuf_savev(gdkPixbuf, Str.toStringz(filename), Str.toStringz(type), Str.toStringzArray(optionKeys), Str.toStringzArray(optionValues), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a transformation of the source image @src by scaling by - * @scale_x and @scale_y then translating by @offset_x and @offset_y, - * then renders the rectangle (@dest_x, @dest_y, @dest_width, - * @dest_height) of the resulting image onto the destination image - * replacing the previous contents. - * - * Try to use gdk_pixbuf_scale_simple() first; this function is - * the industrial-strength power tool you can fall back to, if - * gdk_pixbuf_scale_simple() isn't powerful enough. - * - * If the source rectangle overlaps the destination rectangle on the - * same pixbuf, it will be overwritten during the scaling which - * results in rendering artifacts. - * - * Params: - * dest = the #GdkPixbuf into which to render the results - * destX = the left coordinate for region to render - * destY = the top coordinate for region to render - * destWidth = the width of the region to render - * destHeight = the height of the region to render - * offsetX = the offset in the X direction (currently rounded to an integer) - * offsetY = the offset in the Y direction (currently rounded to an integer) - * scaleX = the scale factor in the X direction - * scaleY = the scale factor in the Y direction - * interpType = the interpolation type for the transformation. - */ - public void scale(Pixbuf dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, GdkInterpType interpType) - { - gdk_pixbuf_scale(gdkPixbuf, (dest is null) ? null : dest.getPixbufStruct(), destX, destY, destWidth, destHeight, offsetX, offsetY, scaleX, scaleY, interpType); - } - - /** - * Create a new pixbuf containing a copy of `src` scaled to - * `dest_width` x `dest_height`. - * - * This function leaves `src` unaffected. - * - * The `interp_type` should be `GDK_INTERP_NEAREST` if you want maximum - * speed (but when scaling down `GDK_INTERP_NEAREST` is usually unusably - * ugly). The default `interp_type` should be `GDK_INTERP_BILINEAR` which - * offers reasonable quality and speed. - * - * You can scale a sub-portion of `src` by creating a sub-pixbuf - * pointing into `src`; see [method@GdkPixbuf.Pixbuf.new_subpixbuf]. - * - * If `dest_width` and `dest_height` are equal to the width and height of - * `src`, this function will return an unscaled copy of `src`. - * - * For more complicated scaling/alpha blending see [method@GdkPixbuf.Pixbuf.scale] - * and [method@GdkPixbuf.Pixbuf.composite]. - * - * Params: - * destWidth = the width of destination image - * destHeight = the height of destination image - * interpType = the interpolation type for the transformation. - * - * Returns: the new pixbuf - */ - public Pixbuf scaleSimple(int destWidth, int destHeight, GdkInterpType interpType) - { - auto __p = gdk_pixbuf_scale_simple(gdkPixbuf, destWidth, destHeight, interpType); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p, true); - } - - /** - * Attaches a key/value pair as an option to a `GdkPixbuf`. - * - * If `key` already exists in the list of options attached to the `pixbuf`, - * the new value is ignored and `FALSE` is returned. - * - * Params: - * key = a nul-terminated string. - * value = a nul-terminated string. - * - * Returns: `TRUE` on success - * - * Since: 2.2 - */ - public bool setOption(string key, string value) - { - return gdk_pixbuf_set_option(gdkPixbuf, Str.toStringz(key), Str.toStringz(value)) != 0; - } -} diff --git a/generated/gtkd/gdkpixbuf/PixbufAnimation.d b/generated/gtkd/gdkpixbuf/PixbufAnimation.d deleted file mode 100644 index 8eb449a34..000000000 --- a/generated/gtkd/gdkpixbuf/PixbufAnimation.d +++ /dev/null @@ -1,374 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.PixbufAnimation; - -private import gdkpixbuf.Pixbuf; -private import gdkpixbuf.PixbufAnimationIter; -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InputStream; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.TimeVal; -private import gobject.ObjectG; - - -/** - * An opaque object representing an animation. - * - * The GdkPixBuf library provides a simple mechanism to load and - * represent animations. An animation is conceptually a series of - * frames to be displayed over time. - * - * The animation may not be represented as a series of frames - * internally; for example, it may be stored as a sprite and - * instructions for moving the sprite around a background. - * - * To display an animation you don't need to understand its - * representation, however; you just ask `GdkPixbuf` what should - * be displayed at a given point in time. - */ -public class PixbufAnimation : ObjectG -{ - /** the main Gtk struct */ - protected GdkPixbufAnimation* gdkPixbufAnimation; - - /** Get the main Gtk struct */ - public GdkPixbufAnimation* getPixbufAnimationStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixbufAnimation; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkPixbufAnimation; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixbufAnimation* gdkPixbufAnimation, bool ownedRef = false) - { - this.gdkPixbufAnimation = gdkPixbufAnimation; - super(cast(GObject*)gdkPixbufAnimation, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_pixbuf_animation_get_type(); - } - - /** - * Creates a new animation by loading it from a file. - * - * The file format is detected automatically. - * - * If the file's format does not support multi-frame images, then an animation - * with a single frame will be created. - * - * Possible errors are in the `GDK_PIXBUF_ERROR` and `G_FILE_ERROR` domains. - * - * Params: - * filename = Name of file to load, in the GLib file - * name encoding - * - * Returns: A newly-created animation - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string filename) - { - GError* err = null; - - auto __p = gdk_pixbuf_animation_new_from_file(Str.toStringz(filename), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_file"); - } - - this(cast(GdkPixbufAnimation*) __p, true); - } - - /** - * Creates a new animation by loading it from an input stream. - * - * The file format is detected automatically. - * - * If `NULL` is returned, then @error will be set. - * - * The @cancellable can be used to abort the operation from another thread. - * If the operation was cancelled, the error `G_IO_ERROR_CANCELLED` will be - * returned. Other possible errors are in the `GDK_PIXBUF_ERROR` and - * `G_IO_ERROR` domains. - * - * The stream is not closed. - * - * Params: - * stream = a `GInputStream` to load the pixbuf from - * cancellable = optional `GCancellable` object - * - * Returns: A newly-created animation - * - * Since: 2.28 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream stream, Cancellable cancellable) - { - GError* err = null; - - auto __p = gdk_pixbuf_animation_new_from_stream((stream is null) ? null : stream.getInputStreamStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_stream"); - } - - this(cast(GdkPixbufAnimation*) __p, true); - } - - /** - * Finishes an asynchronous pixbuf animation creation operation started with - * [func@GdkPixbuf.PixbufAnimation.new_from_stream_async]. - * - * Params: - * asyncResult = a #GAsyncResult - * - * Returns: the newly created animation - * - * Since: 2.28 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(AsyncResultIF asyncResult) - { - GError* err = null; - - auto __p = gdk_pixbuf_animation_new_from_stream_finish((asyncResult is null) ? null : asyncResult.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_stream_finish"); - } - - this(cast(GdkPixbufAnimation*) __p, true); - } - - /** - * Creates a new animation by asynchronously loading an image from an input stream. - * - * For more details see gdk_pixbuf_new_from_stream(), which is the synchronous - * version of this function. - * - * When the operation is finished, `callback` will be called in the main thread. - * You can then call gdk_pixbuf_animation_new_from_stream_finish() to get the - * result of the operation. - * - * Params: - * stream = a #GInputStream from which to load the animation - * cancellable = optional #GCancellable object - * callback = a `GAsyncReadyCallback` to call when the pixbuf is loaded - * userData = the data to pass to the callback function - * - * Since: 2.28 - */ - public static void newFromStreamAsync(InputStream stream, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - gdk_pixbuf_animation_new_from_stream_async((stream is null) ? null : stream.getInputStreamStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Queries the height of the bounding box of a pixbuf animation. - * - * Returns: Height of the bounding box of the animation. - */ - public int getHeight() - { - return gdk_pixbuf_animation_get_height(gdkPixbufAnimation); - } - - /** - * Get an iterator for displaying an animation. - * - * The iterator provides the frames that should be displayed at a - * given time. - * - * @start_time would normally come from g_get_current_time(), and marks - * the beginning of animation playback. After creating an iterator, you - * should immediately display the pixbuf returned by - * gdk_pixbuf_animation_iter_get_pixbuf(). Then, you should install - * a timeout (with g_timeout_add()) or by some other mechanism ensure - * that you'll update the image after - * gdk_pixbuf_animation_iter_get_delay_time() milliseconds. Each time - * the image is updated, you should reinstall the timeout with the new, - * possibly-changed delay time. - * - * As a shortcut, if @start_time is `NULL`, the result of - * g_get_current_time() will be used automatically. - * - * To update the image (i.e. possibly change the result of - * gdk_pixbuf_animation_iter_get_pixbuf() to a new frame of the animation), - * call gdk_pixbuf_animation_iter_advance(). - * - * If you're using #GdkPixbufLoader, in addition to updating the image - * after the delay time, you should also update it whenever you - * receive the area_updated signal and - * gdk_pixbuf_animation_iter_on_currently_loading_frame() returns - * `TRUE`. In this case, the frame currently being fed into the loader - * has received new data, so needs to be refreshed. The delay time for - * a frame may also be modified after an area_updated signal, for - * example if the delay time for a frame is encoded in the data after - * the frame itself. So your timeout should be reinstalled after any - * area_updated signal. - * - * A delay time of -1 is possible, indicating "infinite". - * - * Params: - * startTime = time when the animation starts playing - * - * Returns: an iterator to move over the animation - */ - public PixbufAnimationIter getIter(TimeVal startTime) - { - auto __p = gdk_pixbuf_animation_get_iter(gdkPixbufAnimation, (startTime is null) ? null : startTime.getTimeValStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PixbufAnimationIter)(cast(GdkPixbufAnimationIter*) __p, true); - } - - /** - * Retrieves a static image for the animation. - * - * If an animation is really just a plain image (has only one frame), - * this function returns that image. - * - * If the animation is an animation, this function returns a reasonable - * image to use as a static unanimated image, which might be the first - * frame, or something more sophisticated depending on the file format. - * - * If an animation hasn't loaded any frames yet, this function will - * return `NULL`. - * - * Returns: unanimated image representing the animation - */ - public Pixbuf getStaticImage() - { - auto __p = gdk_pixbuf_animation_get_static_image(gdkPixbufAnimation); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p); - } - - /** - * Queries the width of the bounding box of a pixbuf animation. - * - * Returns: Width of the bounding box of the animation. - */ - public int getWidth() - { - return gdk_pixbuf_animation_get_width(gdkPixbufAnimation); - } - - /** - * Checks whether the animation is a static image. - * - * If you load a file with gdk_pixbuf_animation_new_from_file() and it - * turns out to be a plain, unanimated image, then this function will - * return `TRUE`. Use gdk_pixbuf_animation_get_static_image() to retrieve - * the image. - * - * Returns: `TRUE` if the "animation" was really just an image - */ - public bool isStaticImage() - { - return gdk_pixbuf_animation_is_static_image(gdkPixbufAnimation) != 0; - } - - alias doref = ref_; - /** - * Adds a reference to an animation. - * - * Deprecated: Use g_object_ref(). - * - * Returns: The same as the @animation argument. - */ - public override PixbufAnimation ref_() - { - auto __p = gdk_pixbuf_animation_ref(gdkPixbufAnimation); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PixbufAnimation)(cast(GdkPixbufAnimation*) __p); - } - - /** - * Removes a reference from an animation. - * - * Deprecated: Use g_object_unref(). - */ - public override void unref() - { - gdk_pixbuf_animation_unref(gdkPixbufAnimation); - } -} diff --git a/generated/gtkd/gdkpixbuf/PixbufAnimationIter.d b/generated/gtkd/gdkpixbuf/PixbufAnimationIter.d deleted file mode 100644 index b7777a208..000000000 --- a/generated/gtkd/gdkpixbuf/PixbufAnimationIter.d +++ /dev/null @@ -1,169 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.PixbufAnimationIter; - -private import gdkpixbuf.Pixbuf; -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import glib.TimeVal; -private import gobject.ObjectG; - - -/** - * An opaque object representing an iterator which points to a - * certain position in an animation. - */ -public class PixbufAnimationIter : ObjectG -{ - /** the main Gtk struct */ - protected GdkPixbufAnimationIter* gdkPixbufAnimationIter; - - /** Get the main Gtk struct */ - public GdkPixbufAnimationIter* getPixbufAnimationIterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixbufAnimationIter; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkPixbufAnimationIter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixbufAnimationIter* gdkPixbufAnimationIter, bool ownedRef = false) - { - this.gdkPixbufAnimationIter = gdkPixbufAnimationIter; - super(cast(GObject*)gdkPixbufAnimationIter, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_pixbuf_animation_iter_get_type(); - } - - /** - * Possibly advances an animation to a new frame. - * - * Chooses the frame based on the start time passed to - * gdk_pixbuf_animation_get_iter(). - * - * @current_time would normally come from g_get_current_time(), and - * must be greater than or equal to the time passed to - * gdk_pixbuf_animation_get_iter(), and must increase or remain - * unchanged each time gdk_pixbuf_animation_iter_get_pixbuf() is - * called. That is, you can't go backward in time; animations only - * play forward. - * - * As a shortcut, pass `NULL` for the current time and g_get_current_time() - * will be invoked on your behalf. So you only need to explicitly pass - * @current_time if you're doing something odd like playing the animation - * at double speed. - * - * If this function returns `FALSE`, there's no need to update the animation - * display, assuming the display had been rendered prior to advancing; - * if `TRUE`, you need to call gdk_pixbuf_animation_iter_get_pixbuf() - * and update the display with the new pixbuf. - * - * Params: - * currentTime = current time - * - * Returns: `TRUE` if the image may need updating - */ - public bool advance(TimeVal currentTime) - { - return gdk_pixbuf_animation_iter_advance(gdkPixbufAnimationIter, (currentTime is null) ? null : currentTime.getTimeValStruct()) != 0; - } - - /** - * Gets the number of milliseconds the current pixbuf should be displayed, - * or -1 if the current pixbuf should be displayed forever. - * - * The `g_timeout_add()` function conveniently takes a timeout in milliseconds, - * so you can use a timeout to schedule the next update. - * - * Note that some formats, like GIF, might clamp the timeout values in the - * image file to avoid updates that are just too quick. The minimum timeout - * for GIF images is currently 20 milliseconds. - * - * Returns: delay time in milliseconds (thousandths of a second) - */ - public int getDelayTime() - { - return gdk_pixbuf_animation_iter_get_delay_time(gdkPixbufAnimationIter); - } - - /** - * Gets the current pixbuf which should be displayed. - * - * The pixbuf might not be the same size as the animation itself - * (gdk_pixbuf_animation_get_width(), gdk_pixbuf_animation_get_height()). - * - * This pixbuf should be displayed for gdk_pixbuf_animation_iter_get_delay_time() - * milliseconds. - * - * The caller of this function does not own a reference to the returned - * pixbuf; the returned pixbuf will become invalid when the iterator - * advances to the next frame, which may happen anytime you call - * gdk_pixbuf_animation_iter_advance(). - * - * Copy the pixbuf to keep it (don't just add a reference), as it may get - * recycled as you advance the iterator. - * - * Returns: the pixbuf to be displayed - */ - public Pixbuf getPixbuf() - { - auto __p = gdk_pixbuf_animation_iter_get_pixbuf(gdkPixbufAnimationIter); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p); - } - - /** - * Used to determine how to respond to the area_updated signal on - * #GdkPixbufLoader when loading an animation. - * - * The `::area_updated` signal is emitted for an area of the frame currently - * streaming in to the loader. So if you're on the currently loading frame, - * you will need to redraw the screen for the updated area. - * - * Returns: `TRUE` if the frame we're on is partially loaded, or the last frame - */ - public bool onCurrentlyLoadingFrame() - { - return gdk_pixbuf_animation_iter_on_currently_loading_frame(gdkPixbufAnimationIter) != 0; - } -} diff --git a/generated/gtkd/gdkpixbuf/PixbufFormat.d b/generated/gtkd/gdkpixbuf/PixbufFormat.d deleted file mode 100644 index 458bae8f1..000000000 --- a/generated/gtkd/gdkpixbuf/PixbufFormat.d +++ /dev/null @@ -1,405 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.PixbufFormat; - -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * A `GdkPixbufFormat` contains information about the image format accepted - * by a module. - * - * Only modules should access the fields directly, applications should - * use the `gdk_pixbuf_format_*` family of functions. - * - * Since: 2.2 - */ -public final class PixbufFormat -{ - /** the main Gtk struct */ - protected GdkPixbufFormat* gdkPixbufFormat; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkPixbufFormat* getPixbufFormatStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixbufFormat; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkPixbufFormat; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixbufFormat* gdkPixbufFormat, bool ownedRef = false) - { - this.gdkPixbufFormat = gdkPixbufFormat; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDKPIXBUF) && ownedRef ) - gdk_pixbuf_format_free(gdkPixbufFormat); - } - - - /** - * the name of the image format - */ - public @property string name() - { - return Str.toString(gdkPixbufFormat.name); - } - - /** Ditto */ - public @property void name(string value) - { - gdkPixbufFormat.name = Str.toStringz(value); - } - - /** - * the signature of the module - */ - public @property GdkPixbufModulePattern* signature() - { - return gdkPixbufFormat.signature; - } - - /** Ditto */ - public @property void signature(GdkPixbufModulePattern* value) - { - gdkPixbufFormat.signature = value; - } - - /** - * the message domain for the `description` - */ - public @property string domain() - { - return Str.toString(gdkPixbufFormat.domain); - } - - /** Ditto */ - public @property void domain(string value) - { - gdkPixbufFormat.domain = Str.toStringz(value); - } - - /** - * a description of the image format - */ - public @property string description() - { - return Str.toString(gdkPixbufFormat.description); - } - - /** Ditto */ - public @property void description(string value) - { - gdkPixbufFormat.description = Str.toStringz(value); - } - - /** - * the MIME types for the image format - */ - public @property string[] mimeTypes() - { - return Str.toStringArray(gdkPixbufFormat.mimeTypes); - } - - /** Ditto */ - public @property void mimeTypes(string[] value) - { - gdkPixbufFormat.mimeTypes = Str.toStringzArray(value); - } - - /** - * typical filename extensions for the - * image format - */ - public @property string[] extensions() - { - return Str.toStringArray(gdkPixbufFormat.extensions); - } - - /** Ditto */ - public @property void extensions(string[] value) - { - gdkPixbufFormat.extensions = Str.toStringzArray(value); - } - - /** - * a combination of `GdkPixbufFormatFlags` - */ - public @property uint flags() - { - return gdkPixbufFormat.flags; - } - - /** Ditto */ - public @property void flags(uint value) - { - gdkPixbufFormat.flags = value; - } - - /** - * a boolean determining whether the loader is disabled` - */ - public @property bool disabled() - { - return gdkPixbufFormat.disabled != 0; - } - - /** Ditto */ - public @property void disabled(bool value) - { - gdkPixbufFormat.disabled = value; - } - - /** - * a string containing license information, typically set to - * shorthands like "GPL", "LGPL", etc. - */ - public @property string license() - { - return Str.toString(gdkPixbufFormat.license); - } - - /** Ditto */ - public @property void license(string value) - { - gdkPixbufFormat.license = Str.toStringz(value); - } - - /** */ - public static GType getType() - { - return gdk_pixbuf_format_get_type(); - } - - /** - * Creates a copy of `format`. - * - * Returns: the newly allocated copy of a `GdkPixbufFormat`. Use - * gdk_pixbuf_format_free() to free the resources when done - * - * Since: 2.22 - */ - public PixbufFormat copy() - { - auto __p = gdk_pixbuf_format_copy(gdkPixbufFormat); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PixbufFormat)(cast(GdkPixbufFormat*) __p, true); - } - - /** - * Frees the resources allocated when copying a `GdkPixbufFormat` - * using gdk_pixbuf_format_copy() - * - * Since: 2.22 - */ - public void free() - { - gdk_pixbuf_format_free(gdkPixbufFormat); - ownedRef = false; - } - - /** - * Returns a description of the format. - * - * Returns: a description of the format. - * - * Since: 2.2 - */ - public string getDescription() - { - auto retStr = gdk_pixbuf_format_get_description(gdkPixbufFormat); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Returns the filename extensions typically used for files in the - * given format. - * - * Returns: an array of - * filename extensions - * - * Since: 2.2 - */ - public string[] getExtensions() - { - auto retStr = gdk_pixbuf_format_get_extensions(gdkPixbufFormat); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Returns information about the license of the image loader for the format. - * - * The returned string should be a shorthand for a well known license, e.g. - * "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. - * - * Returns: a string describing the license of the pixbuf format - * - * Since: 2.6 - */ - public string getLicense() - { - auto retStr = gdk_pixbuf_format_get_license(gdkPixbufFormat); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Returns the mime types supported by the format. - * - * Returns: an array of mime types - * - * Since: 2.2 - */ - public string[] getMimeTypes() - { - auto retStr = gdk_pixbuf_format_get_mime_types(gdkPixbufFormat); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Returns the name of the format. - * - * Returns: the name of the format. - * - * Since: 2.2 - */ - public string getName() - { - auto retStr = gdk_pixbuf_format_get_name(gdkPixbufFormat); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Returns whether this image format is disabled. - * - * See gdk_pixbuf_format_set_disabled(). - * - * Returns: whether this image format is disabled. - * - * Since: 2.6 - */ - public bool isDisabled() - { - return gdk_pixbuf_format_is_disabled(gdkPixbufFormat) != 0; - } - - /** - * Returns `TRUE` if the save option specified by @option_key is supported when - * saving a pixbuf using the module implementing @format. - * - * See gdk_pixbuf_save() for more information about option keys. - * - * Params: - * optionKey = the name of an option - * - * Returns: `TRUE` if the specified option is supported - * - * Since: 2.36 - */ - public bool isSaveOptionSupported(string optionKey) - { - return gdk_pixbuf_format_is_save_option_supported(gdkPixbufFormat, Str.toStringz(optionKey)) != 0; - } - - /** - * Returns whether this image format is scalable. - * - * If a file is in a scalable format, it is preferable to load it at - * the desired size, rather than loading it at the default size and - * scaling the resulting pixbuf to the desired size. - * - * Returns: whether this image format is scalable. - * - * Since: 2.6 - */ - public bool isScalable() - { - return gdk_pixbuf_format_is_scalable(gdkPixbufFormat) != 0; - } - - /** - * Returns whether pixbufs can be saved in the given format. - * - * Returns: whether pixbufs can be saved in the given format. - * - * Since: 2.2 - */ - public bool isWritable() - { - return gdk_pixbuf_format_is_writable(gdkPixbufFormat) != 0; - } - - /** - * Disables or enables an image format. - * - * If a format is disabled, GdkPixbuf won't use the image loader for - * this format to load images. - * - * Applications can use this to avoid using image loaders with an - * inappropriate license, see gdk_pixbuf_format_get_license(). - * - * Params: - * disabled = `TRUE` to disable the format @format - * - * Since: 2.6 - */ - public void setDisabled(bool disabled) - { - gdk_pixbuf_format_set_disabled(gdkPixbufFormat, disabled); - } -} diff --git a/generated/gtkd/gdkpixbuf/PixbufLoader.d b/generated/gtkd/gdkpixbuf/PixbufLoader.d deleted file mode 100644 index 090423355..000000000 --- a/generated/gtkd/gdkpixbuf/PixbufLoader.d +++ /dev/null @@ -1,438 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.PixbufLoader; - -private import gdkpixbuf.Pixbuf; -private import gdkpixbuf.PixbufAnimation; -private import gdkpixbuf.PixbufFormat; -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * Incremental image loader. - * - * `GdkPixbufLoader` provides a way for applications to drive the - * process of loading an image, by letting them send the image data - * directly to the loader instead of having the loader read the data - * from a file. Applications can use this functionality instead of - * `gdk_pixbuf_new_from_file()` or `gdk_pixbuf_animation_new_from_file()` - * when they need to parse image data in small chunks. For example, - * it should be used when reading an image from a (potentially) slow - * network connection, or when loading an extremely large file. - * - * To use `GdkPixbufLoader` to load an image, create a new instance, - * and call [method@GdkPixbuf.PixbufLoader.write] to send the data - * to it. When done, [method@GdkPixbuf.PixbufLoader.close] should be - * called to end the stream and finalize everything. - * - * The loader will emit three important signals throughout the process: - * - * - [signal@GdkPixbuf.PixbufLoader::size-prepared] will be emitted as - * soon as the image has enough information to determine the size of - * the image to be used. If you want to scale the image while loading - * it, you can call [method@GdkPixbuf.PixbufLoader.set_size] in - * response to this signal. - * - [signal@GdkPixbuf.PixbufLoader::area-prepared] will be emitted as - * soon as the pixbuf of the desired has been allocated. You can obtain - * the `GdkPixbuf` instance by calling [method@GdkPixbuf.PixbufLoader.get_pixbuf]. - * If you want to use it, simply acquire a reference to it. You can - * also call `gdk_pixbuf_loader_get_pixbuf()` later to get the same - * pixbuf. - * - [signal@GdkPixbuf.PixbufLoader::area-updated] will be emitted every - * time a region is updated. This way you can update a partially - * completed image. Note that you do not know anything about the - * completeness of an image from the updated area. For example, in an - * interlaced image you will need to make several passes before the - * image is done loading. - * - * ## Loading an animation - * - * Loading an animation is almost as easy as loading an image. Once the - * first [signal@GdkPixbuf.PixbufLoader::area-prepared] signal has been - * emitted, you can call [method@GdkPixbuf.PixbufLoader.get_animation] to - * get the [class@GdkPixbuf.PixbufAnimation] instance, and then call - * and [method@GdkPixbuf.PixbufAnimation.get_iter] to get a - * [class@GdkPixbuf.PixbufAnimationIter] to retrieve the pixbuf for the - * desired time stamp. - */ -public class PixbufLoader : ObjectG -{ - /** the main Gtk struct */ - protected GdkPixbufLoader* gdkPixbufLoader; - - /** Get the main Gtk struct */ - public GdkPixbufLoader* getPixbufLoaderStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixbufLoader; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkPixbufLoader; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixbufLoader* gdkPixbufLoader, bool ownedRef = false) - { - this.gdkPixbufLoader = gdkPixbufLoader; - super(cast(GObject*)gdkPixbufLoader, ownedRef); - } - - /** - * Creates a new pixbuf loader object that always attempts to parse - * image data as if it were an image of type @image_type, instead of - * identifying the type automatically. Useful if you want an error if - * the image isn't the expected type, for loading image formats - * that can't be reliably identified by looking at the data, or if - * the user manually forces a specific type. - * - * The list of supported image formats depends on what image loaders - * are installed, but typically "png", "jpeg", "gif", "tiff" and - * "xpm" are among the supported formats. To obtain the full list of - * supported image formats, call gdk_pixbuf_format_get_name() on each - * of the #GdkPixbufFormat structs returned by gdk_pixbuf_get_formats(). - * - * Params: - * imageType = name of the image format to be loaded with the image - * isMimeType = Set to true if type is a mime type - * - * Return: A newly-created pixbuf loader. - * - * Throws: GException on failure. - */ - public this(string type, bool isMimeType=false) - { - GError* err = null; - GdkPixbufLoader* p; - - if ( isMimeType ) - { - p = cast(GdkPixbufLoader*)gdk_pixbuf_loader_new_with_mime_type(Str.toStringz(type), &err); - } - else - { - p = cast(GdkPixbufLoader*)gdk_pixbuf_loader_new_with_type(Str.toStringz(type), &err); - } - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - this(cast(GdkPixbufLoader*) p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return gdk_pixbuf_loader_get_type(); - } - - /** - * Creates a new pixbuf loader object. - * - * Returns: A newly-created pixbuf loader. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = gdk_pixbuf_loader_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkPixbufLoader*) __p, true); - } - - /** - * Informs a pixbuf loader that no further writes with - * gdk_pixbuf_loader_write() will occur, so that it can free its - * internal loading structures. - * - * This function also tries to parse any data that hasn't yet been parsed; - * if the remaining data is partial or corrupt, an error will be returned. - * - * If `FALSE` is returned, `error` will be set to an error from the - * `GDK_PIXBUF_ERROR` or `G_FILE_ERROR` domains. - * - * If you're just cancelling a load rather than expecting it to be finished, - * passing `NULL` for `error` to ignore it is reasonable. - * - * Remember that this function does not release a reference on the loader, so - * you will need to explicitly release any reference you hold. - * - * Returns: `TRUE` if all image data written so far was successfully - * passed out via the update_area signal - * - * Throws: GException on failure. - */ - public bool close() - { - GError* err = null; - - auto __p = gdk_pixbuf_loader_close(gdkPixbufLoader, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Queries the #GdkPixbufAnimation that a pixbuf loader is currently creating. - * - * In general it only makes sense to call this function after the - * [signal@GdkPixbuf.PixbufLoader::area-prepared] signal has been emitted by - * the loader. - * - * If the loader doesn't have enough bytes yet, and hasn't emitted the `area-prepared` - * signal, this function will return `NULL`. - * - * Returns: The animation that the loader is - * currently loading - */ - public PixbufAnimation getAnimation() - { - auto __p = gdk_pixbuf_loader_get_animation(gdkPixbufLoader); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PixbufAnimation)(cast(GdkPixbufAnimation*) __p); - } - - /** - * Obtains the available information about the format of the - * currently loading image file. - * - * Returns: A #GdkPixbufFormat - * - * Since: 2.2 - */ - public PixbufFormat getFormat() - { - auto __p = gdk_pixbuf_loader_get_format(gdkPixbufLoader); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(PixbufFormat)(cast(GdkPixbufFormat*) __p); - } - - /** - * Queries the #GdkPixbuf that a pixbuf loader is currently creating. - * - * In general it only makes sense to call this function after the - * [signal@GdkPixbuf.PixbufLoader::area-prepared] signal has been - * emitted by the loader; this means that enough data has been read - * to know the size of the image that will be allocated. - * - * If the loader has not received enough data via gdk_pixbuf_loader_write(), - * then this function returns `NULL`. - * - * The returned pixbuf will be the same in all future calls to the loader, - * so if you want to keep using it, you should acquire a reference to it. - * - * Additionally, if the loader is an animation, it will return the "static - * image" of the animation (see gdk_pixbuf_animation_get_static_image()). - * - * Returns: The pixbuf that the loader is - * creating - */ - public Pixbuf getPixbuf() - { - auto __p = gdk_pixbuf_loader_get_pixbuf(gdkPixbufLoader); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) __p); - } - - /** - * Causes the image to be scaled while it is loaded. - * - * The desired image size can be determined relative to the original - * size of the image by calling gdk_pixbuf_loader_set_size() from a - * signal handler for the ::size-prepared signal. - * - * Attempts to set the desired image size are ignored after the - * emission of the ::size-prepared signal. - * - * Params: - * width = The desired width of the image being loaded. - * height = The desired height of the image being loaded. - * - * Since: 2.2 - */ - public void setSize(int width, int height) - { - gdk_pixbuf_loader_set_size(gdkPixbufLoader, width, height); - } - - /** - * Parses the next `count` bytes in the given image buffer. - * - * Params: - * buf = Pointer to image data. - * - * Returns: `TRUE` if the write was successful, or - * `FALSE` if the loader cannot parse the buffer - * - * Throws: GException on failure. - */ - public bool write(char[] buf) - { - GError* err = null; - - auto __p = gdk_pixbuf_loader_write(gdkPixbufLoader, buf.ptr, cast(size_t)buf.length, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Parses the next contents of the given image buffer. - * - * Params: - * buffer = The image data as a `GBytes` buffer. - * - * Returns: `TRUE` if the write was successful, or `FALSE` if - * the loader cannot parse the buffer - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public bool writeBytes(Bytes buffer) - { - GError* err = null; - - auto __p = gdk_pixbuf_loader_write_bytes(gdkPixbufLoader, (buffer is null) ? null : buffer.getBytesStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * This signal is emitted when the pixbuf loader has allocated the - * pixbuf in the desired size. - * - * After this signal is emitted, applications can call - * gdk_pixbuf_loader_get_pixbuf() to fetch the partially-loaded - * pixbuf. - */ - gulong addOnAreaPrepared(void delegate(PixbufLoader) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "area-prepared", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This signal is emitted when a significant area of the image being - * loaded has been updated. - * - * Normally it means that a complete scanline has been read in, but - * it could be a different area as well. - * - * Applications can use this signal to know when to repaint - * areas of an image that is being loaded. - * - * Params: - * x = X offset of upper-left corner of the updated area. - * y = Y offset of upper-left corner of the updated area. - * width = Width of updated area. - * height = Height of updated area. - */ - gulong addOnAreaUpdated(void delegate(int, int, int, int, PixbufLoader) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "area-updated", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This signal is emitted when gdk_pixbuf_loader_close() is called. - * - * It can be used by different parts of an application to receive - * notification when an image loader is closed by the code that - * drives it. - */ - gulong addOnClosed(void delegate(PixbufLoader) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "closed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This signal is emitted when the pixbuf loader has been fed the - * initial amount of data that is required to figure out the size - * of the image that it will create. - * - * Applications can call gdk_pixbuf_loader_set_size() in response - * to this signal to set the desired size to which the image - * should be scaled. - * - * Params: - * width = the original width of the image - * height = the original height of the image - */ - gulong addOnSizePrepared(void delegate(int, int, PixbufLoader) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "size-prepared", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gdkpixbuf/PixbufNonAnim.d b/generated/gtkd/gdkpixbuf/PixbufNonAnim.d deleted file mode 100644 index 860225dfb..000000000 --- a/generated/gtkd/gdkpixbuf/PixbufNonAnim.d +++ /dev/null @@ -1,83 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.PixbufNonAnim; - -private import gdkpixbuf.Pixbuf; -private import gdkpixbuf.PixbufAnimation; -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** */ -public class PixbufNonAnim : PixbufAnimation -{ - /** the main Gtk struct */ - protected GdkPixbufNonAnim* gdkPixbufNonAnim; - - /** Get the main Gtk struct */ - public GdkPixbufNonAnim* getPixbufNonAnimStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixbufNonAnim; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkPixbufNonAnim; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixbufNonAnim* gdkPixbufNonAnim, bool ownedRef = false) - { - this.gdkPixbufNonAnim = gdkPixbufNonAnim; - super(cast(GdkPixbufAnimation*)gdkPixbufNonAnim, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_pixbuf_non_anim_get_type(); - } - - /** */ - public this(Pixbuf pixbuf) - { - auto __p = gdk_pixbuf_non_anim_new((pixbuf is null) ? null : pixbuf.getPixbufStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkPixbufNonAnim*) __p, true); - } -} diff --git a/generated/gtkd/gdkpixbuf/PixbufSimpleAnimation.d b/generated/gtkd/gdkpixbuf/PixbufSimpleAnimation.d deleted file mode 100644 index 0619d3043..000000000 --- a/generated/gtkd/gdkpixbuf/PixbufSimpleAnimation.d +++ /dev/null @@ -1,138 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.PixbufSimpleAnimation; - -private import gdkpixbuf.Pixbuf; -private import gdkpixbuf.PixbufAnimation; -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * An opaque struct representing a simple animation. - */ -public class PixbufSimpleAnimation : PixbufAnimation -{ - /** the main Gtk struct */ - protected GdkPixbufSimpleAnim* gdkPixbufSimpleAnim; - - /** Get the main Gtk struct */ - public GdkPixbufSimpleAnim* getPixbufSimpleAnimationStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixbufSimpleAnim; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gdkPixbufSimpleAnim; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixbufSimpleAnim* gdkPixbufSimpleAnim, bool ownedRef = false) - { - this.gdkPixbufSimpleAnim = gdkPixbufSimpleAnim; - super(cast(GdkPixbufAnimation*)gdkPixbufSimpleAnim, ownedRef); - } - - - /** */ - public static GType getType() - { - return gdk_pixbuf_simple_anim_get_type(); - } - - /** - * Creates a new, empty animation. - * - * Params: - * width = the width of the animation - * height = the height of the animation - * rate = the speed of the animation, in frames per second - * - * Returns: a newly allocated #GdkPixbufSimpleAnim - * - * Since: 2.8 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int width, int height, float rate) - { - auto __p = gdk_pixbuf_simple_anim_new(width, height, rate); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GdkPixbufSimpleAnim*) __p, true); - } - - /** - * Adds a new frame to @animation. The @pixbuf must - * have the dimensions specified when the animation - * was constructed. - * - * Params: - * pixbuf = the pixbuf to add - * - * Since: 2.8 - */ - public void addFrame(Pixbuf pixbuf) - { - gdk_pixbuf_simple_anim_add_frame(gdkPixbufSimpleAnim, (pixbuf is null) ? null : pixbuf.getPixbufStruct()); - } - - /** - * Gets whether @animation should loop indefinitely when it reaches the end. - * - * Returns: %TRUE if the animation loops forever, %FALSE otherwise - * - * Since: 2.18 - */ - public bool getLoop() - { - return gdk_pixbuf_simple_anim_get_loop(gdkPixbufSimpleAnim) != 0; - } - - /** - * Sets whether @animation should loop indefinitely when it reaches the end. - * - * Params: - * loop = whether to loop the animation - * - * Since: 2.18 - */ - public void setLoop(bool loop) - { - gdk_pixbuf_simple_anim_set_loop(gdkPixbufSimpleAnim, loop); - } -} diff --git a/generated/gtkd/gdkpixbuf/Pixdata.d b/generated/gtkd/gdkpixbuf/Pixdata.d deleted file mode 100644 index 30bb0814c..000000000 --- a/generated/gtkd/gdkpixbuf/Pixdata.d +++ /dev/null @@ -1,288 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.Pixdata; - -private import gdkpixbuf.Pixbuf; -private import gdkpixbuf.c.functions; -public import gdkpixbuf.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.StringG; -private import gtkd.Loader; - - -/** - * A pixel buffer suitable for serialization and streaming. - * - * Using `GdkPixdata`, images can be compiled into an application, - * making it unnecessary to refer to external image files at runtime. - * - * `GdkPixbuf` includes a utility named `gdk-pixbuf-csource`, which - * can be used to convert image files into `GdkPixdata` structures suitable - * for inclusion in C sources. To convert the `GdkPixdata` structures back - * into a `GdkPixbuf`, use `gdk_pixbuf_from_pixdata()`. - * - * Deprecated: `GdkPixdata` should not be used any more. `GResource` - * should be used to save the original compressed images inside the - * program's binary - */ -public final class Pixdata -{ - /** the main Gtk struct */ - protected GdkPixdata* gdkPixdata; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GdkPixdata* getPixdataStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gdkPixdata; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gdkPixdata; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GdkPixdata* gdkPixdata, bool ownedRef = false) - { - this.gdkPixdata = gdkPixdata; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GDKPIXBUF) && ownedRef ) - sliceFree(gdkPixdata); - } - - /** - * Converts a `GdkPixbuf` to a `GdkPixdata`. - * - * If `use_rle` is `TRUE`, the pixel data is run-length encoded into - * newly-allocated memory and a pointer to that memory is returned. - * - * Deprecated: Use #GResource instead. - * - * Params: - * pixbuf = the data to fill `pixdata` with. - * useRle = whether to use run-length encoding for the pixel data. - * - * Returns: If `use_rle` is - * `TRUE`, a pointer to the newly-allocated memory for the run-length - * encoded pixel data, otherwise `NULL`. - */ - public ubyte[] fromPixbuf(Pixbuf pixbuf, bool useRle) - { - auto __p = gdk_pixdata_from_pixbuf(gdkPixdata, (pixbuf is null) ? null : pixbuf.getPixbufStruct(), useRle); - - return cast(ubyte[])__p[0 .. getArrayLength(cast(ubyte *)__p)]; - } - - /** - */ - - /** - * magic number. A valid `GdkPixdata` structure must have - * `GDK_PIXBUF_MAGIC_NUMBER` here - */ - public @property uint magic() - { - return gdkPixdata.magic; - } - - /** Ditto */ - public @property void magic(uint value) - { - gdkPixdata.magic = value; - } - - /** - * less than 1 to disable length checks, otherwise - * `GDK_PIXDATA_HEADER_LENGTH` plus the length of `pixel_data` - */ - public @property int length() - { - return gdkPixdata.length; - } - - /** Ditto */ - public @property void length(int value) - { - gdkPixdata.length = value; - } - - /** - * information about colorspace, sample width and - * encoding, in a `GdkPixdataType` - */ - public @property uint pixdataType() - { - return gdkPixdata.pixdataType; - } - - /** Ditto */ - public @property void pixdataType(uint value) - { - gdkPixdata.pixdataType = value; - } - - /** - * Distance in bytes between rows - */ - public @property uint rowstride() - { - return gdkPixdata.rowstride; - } - - /** Ditto */ - public @property void rowstride(uint value) - { - gdkPixdata.rowstride = value; - } - - /** - * Width of the image in pixels - */ - public @property uint width() - { - return gdkPixdata.width; - } - - /** Ditto */ - public @property void width(uint value) - { - gdkPixdata.width = value; - } - - /** - * Height of the image in pixels - */ - public @property uint height() - { - return gdkPixdata.height; - } - - /** Ditto */ - public @property void height(uint value) - { - gdkPixdata.height = value; - } - - - /** - * Deserializes (reconstruct) a #GdkPixdata structure from a byte stream. - * - * The byte stream consists of a straightforward writeout of the - * `GdkPixdata` fields in network byte order, plus the `pixel_data` - * bytes the structure points to. - * - * The `pixdata` contents are reconstructed byte by byte and are checked - * for validity. - * - * This function may fail with `GDK_PIXBUF_ERROR_CORRUPT_IMAGE` - * or `GDK_PIXBUF_ERROR_UNKNOWN_TYPE`. - * - * Deprecated: Use `GResource` instead. - * - * Params: - * stream = stream of bytes containing a - * serialized #GdkPixdata structure. - * - * Returns: Upon successful deserialization `TRUE` is returned, - * `FALSE` otherwise. - * - * Throws: GException on failure. - */ - public bool deserialize(ubyte[] stream) - { - GError* err = null; - - auto __p = gdk_pixdata_deserialize(gdkPixdata, cast(uint)stream.length, stream.ptr, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Serializes a #GdkPixdata structure into a byte stream. - * The byte stream consists of a straightforward writeout of the - * #GdkPixdata fields in network byte order, plus the @pixel_data - * bytes the structure points to. - * - * Deprecated: Use #GResource instead. - * - * Returns: A - * newly-allocated string containing the serialized #GdkPixdata - * structure. - */ - public ubyte[] serialize() - { - uint streamLengthP; - - auto __p = gdk_pixdata_serialize(gdkPixdata, &streamLengthP); - - return __p[0 .. streamLengthP]; - } - - /** - * Generates C source code suitable for compiling images directly - * into programs. - * - * GdkPixbuf ships with a program called `gdk-pixbuf-csource`, which offers - * a command line interface to this function. - * - * Deprecated: Use #GResource instead. - * - * Params: - * name = used for naming generated data structures or macros - * dumpType = the kind of C source to be generated - * - * Returns: a newly-allocated string buffer containing - * the C source form of `pixdata`. - */ - public StringG toCsource(string name, GdkPixdataDumpType dumpType) - { - auto __p = gdk_pixdata_to_csource(gdkPixdata, Str.toStringz(name), dumpType); - - if(__p is null) - { - return null; - } - - return new StringG(cast(GString*) __p, true); - } -} diff --git a/generated/gtkd/gdkpixbuf/c/functions.d b/generated/gtkd/gdkpixbuf/c/functions.d deleted file mode 100644 index 7d9e429b8..000000000 --- a/generated/gtkd/gdkpixbuf/c/functions.d +++ /dev/null @@ -1,485 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.c.functions; - -import std.stdio; -import gdkpixbuf.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GDKPIXBUF = ["libgdk_pixbuf-2.0-0.dll;gdk_pixbuf-2.0-0.dll;gdk_pixbuf-2.dll"]; -else version (OSX) - static immutable LIBRARY_GDKPIXBUF = ["libgdk_pixbuf-2.0.0.dylib"]; -else - static immutable LIBRARY_GDKPIXBUF = ["libgdk_pixbuf-2.0.so.0"]; - -shared static this() -{ - // gdkpixbuf.Pixbuf - - Linker.link(gdk_pixbuf_get_type, "gdk_pixbuf_get_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new, "gdk_pixbuf_new", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_bytes, "gdk_pixbuf_new_from_bytes", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_data, "gdk_pixbuf_new_from_data", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_file, "gdk_pixbuf_new_from_file", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_file_at_scale, "gdk_pixbuf_new_from_file_at_scale", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_file_at_size, "gdk_pixbuf_new_from_file_at_size", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_inline, "gdk_pixbuf_new_from_inline", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_resource, "gdk_pixbuf_new_from_resource", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_resource_at_scale, "gdk_pixbuf_new_from_resource_at_scale", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_stream, "gdk_pixbuf_new_from_stream", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_stream_at_scale, "gdk_pixbuf_new_from_stream_at_scale", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_stream_finish, "gdk_pixbuf_new_from_stream_finish", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_xpm_data, "gdk_pixbuf_new_from_xpm_data", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_calculate_rowstride, "gdk_pixbuf_calculate_rowstride", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_file_info, "gdk_pixbuf_get_file_info", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_file_info_async, "gdk_pixbuf_get_file_info_async", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_file_info_finish, "gdk_pixbuf_get_file_info_finish", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_formats, "gdk_pixbuf_get_formats", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_init_modules, "gdk_pixbuf_init_modules", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_stream_async, "gdk_pixbuf_new_from_stream_async", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_from_stream_at_scale_async, "gdk_pixbuf_new_from_stream_at_scale_async", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_stream_finish, "gdk_pixbuf_save_to_stream_finish", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_add_alpha, "gdk_pixbuf_add_alpha", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_apply_embedded_orientation, "gdk_pixbuf_apply_embedded_orientation", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_composite, "gdk_pixbuf_composite", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_composite_color, "gdk_pixbuf_composite_color", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_composite_color_simple, "gdk_pixbuf_composite_color_simple", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_copy, "gdk_pixbuf_copy", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_copy_area, "gdk_pixbuf_copy_area", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_copy_options, "gdk_pixbuf_copy_options", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_fill, "gdk_pixbuf_fill", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_flip, "gdk_pixbuf_flip", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_bits_per_sample, "gdk_pixbuf_get_bits_per_sample", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_byte_length, "gdk_pixbuf_get_byte_length", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_colorspace, "gdk_pixbuf_get_colorspace", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_has_alpha, "gdk_pixbuf_get_has_alpha", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_height, "gdk_pixbuf_get_height", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_n_channels, "gdk_pixbuf_get_n_channels", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_option, "gdk_pixbuf_get_option", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_options, "gdk_pixbuf_get_options", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_pixels, "gdk_pixbuf_get_pixels", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_pixels_with_length, "gdk_pixbuf_get_pixels_with_length", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_rowstride, "gdk_pixbuf_get_rowstride", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_get_width, "gdk_pixbuf_get_width", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_new_subpixbuf, "gdk_pixbuf_new_subpixbuf", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_read_pixel_bytes, "gdk_pixbuf_read_pixel_bytes", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_read_pixels, "gdk_pixbuf_read_pixels", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_ref, "gdk_pixbuf_ref", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_remove_option, "gdk_pixbuf_remove_option", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_rotate_simple, "gdk_pixbuf_rotate_simple", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_saturate_and_pixelate, "gdk_pixbuf_saturate_and_pixelate", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save, "gdk_pixbuf_save", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_buffer, "gdk_pixbuf_save_to_buffer", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_bufferv, "gdk_pixbuf_save_to_bufferv", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_callback, "gdk_pixbuf_save_to_callback", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_callbackv, "gdk_pixbuf_save_to_callbackv", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_stream, "gdk_pixbuf_save_to_stream", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_stream_async, "gdk_pixbuf_save_to_stream_async", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_streamv, "gdk_pixbuf_save_to_streamv", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_save_to_streamv_async, "gdk_pixbuf_save_to_streamv_async", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_savev, "gdk_pixbuf_savev", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_scale, "gdk_pixbuf_scale", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_scale_simple, "gdk_pixbuf_scale_simple", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_set_option, "gdk_pixbuf_set_option", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_unref, "gdk_pixbuf_unref", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.PixbufAnimation - - Linker.link(gdk_pixbuf_animation_get_type, "gdk_pixbuf_animation_get_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_new_from_file, "gdk_pixbuf_animation_new_from_file", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_new_from_resource, "gdk_pixbuf_animation_new_from_resource", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_new_from_stream, "gdk_pixbuf_animation_new_from_stream", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_new_from_stream_finish, "gdk_pixbuf_animation_new_from_stream_finish", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_new_from_stream_async, "gdk_pixbuf_animation_new_from_stream_async", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_get_height, "gdk_pixbuf_animation_get_height", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_get_iter, "gdk_pixbuf_animation_get_iter", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_get_static_image, "gdk_pixbuf_animation_get_static_image", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_get_width, "gdk_pixbuf_animation_get_width", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_is_static_image, "gdk_pixbuf_animation_is_static_image", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_ref, "gdk_pixbuf_animation_ref", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_unref, "gdk_pixbuf_animation_unref", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.PixbufAnimationIter - - Linker.link(gdk_pixbuf_animation_iter_get_type, "gdk_pixbuf_animation_iter_get_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_iter_advance, "gdk_pixbuf_animation_iter_advance", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_iter_get_delay_time, "gdk_pixbuf_animation_iter_get_delay_time", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_iter_get_pixbuf, "gdk_pixbuf_animation_iter_get_pixbuf", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_animation_iter_on_currently_loading_frame, "gdk_pixbuf_animation_iter_on_currently_loading_frame", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.PixbufFormat - - Linker.link(gdk_pixbuf_format_get_type, "gdk_pixbuf_format_get_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_copy, "gdk_pixbuf_format_copy", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_free, "gdk_pixbuf_format_free", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_get_description, "gdk_pixbuf_format_get_description", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_get_extensions, "gdk_pixbuf_format_get_extensions", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_get_license, "gdk_pixbuf_format_get_license", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_get_mime_types, "gdk_pixbuf_format_get_mime_types", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_get_name, "gdk_pixbuf_format_get_name", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_is_disabled, "gdk_pixbuf_format_is_disabled", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_is_save_option_supported, "gdk_pixbuf_format_is_save_option_supported", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_is_scalable, "gdk_pixbuf_format_is_scalable", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_is_writable, "gdk_pixbuf_format_is_writable", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_format_set_disabled, "gdk_pixbuf_format_set_disabled", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.PixbufLoader - - Linker.link(gdk_pixbuf_loader_get_type, "gdk_pixbuf_loader_get_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_new, "gdk_pixbuf_loader_new", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_new_with_mime_type, "gdk_pixbuf_loader_new_with_mime_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_new_with_type, "gdk_pixbuf_loader_new_with_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_close, "gdk_pixbuf_loader_close", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_get_animation, "gdk_pixbuf_loader_get_animation", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_get_format, "gdk_pixbuf_loader_get_format", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_get_pixbuf, "gdk_pixbuf_loader_get_pixbuf", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_set_size, "gdk_pixbuf_loader_set_size", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_write, "gdk_pixbuf_loader_write", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_loader_write_bytes, "gdk_pixbuf_loader_write_bytes", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.PixbufNonAnim - - Linker.link(gdk_pixbuf_non_anim_get_type, "gdk_pixbuf_non_anim_get_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_non_anim_new, "gdk_pixbuf_non_anim_new", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.PixbufSimpleAnimation - - Linker.link(gdk_pixbuf_simple_anim_get_type, "gdk_pixbuf_simple_anim_get_type", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_simple_anim_new, "gdk_pixbuf_simple_anim_new", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_simple_anim_add_frame, "gdk_pixbuf_simple_anim_add_frame", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_simple_anim_get_loop, "gdk_pixbuf_simple_anim_get_loop", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixbuf_simple_anim_set_loop, "gdk_pixbuf_simple_anim_set_loop", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.PixbufSimpleAnimationIter - - Linker.link(gdk_pixbuf_simple_anim_iter_get_type, "gdk_pixbuf_simple_anim_iter_get_type", LIBRARY_GDKPIXBUF); - - // gdkpixbuf.Pixdata - - Linker.link(gdk_pixdata_deserialize, "gdk_pixdata_deserialize", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixdata_from_pixbuf, "gdk_pixdata_from_pixbuf", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixdata_serialize, "gdk_pixdata_serialize", LIBRARY_GDKPIXBUF); - Linker.link(gdk_pixdata_to_csource, "gdk_pixdata_to_csource", LIBRARY_GDKPIXBUF); -} - -__gshared extern(C) -{ - - // gdkpixbuf.Pixbuf - - GType function() c_gdk_pixbuf_get_type; - GdkPixbuf* function(GdkColorspace colorspace, int hasAlpha, int bitsPerSample, int width, int height) c_gdk_pixbuf_new; - GdkPixbuf* function(GBytes* data, GdkColorspace colorspace, int hasAlpha, int bitsPerSample, int width, int height, int rowstride) c_gdk_pixbuf_new_from_bytes; - GdkPixbuf* function(char* data, GdkColorspace colorspace, int hasAlpha, int bitsPerSample, int width, int height, int rowstride, GdkPixbufDestroyNotify destroyFn, void* destroyFnData) c_gdk_pixbuf_new_from_data; - GdkPixbuf* function(char* filename, GError** err) c_gdk_pixbuf_new_from_file; - GdkPixbuf* function(char* filename, int width, int height, int preserveAspectRatio, GError** err) c_gdk_pixbuf_new_from_file_at_scale; - GdkPixbuf* function(char* filename, int width, int height, GError** err) c_gdk_pixbuf_new_from_file_at_size; - GdkPixbuf* function(int dataLength, ubyte* data, int copyPixels, GError** err) c_gdk_pixbuf_new_from_inline; - GdkPixbuf* function(const(char)* resourcePath, GError** err) c_gdk_pixbuf_new_from_resource; - GdkPixbuf* function(const(char)* resourcePath, int width, int height, int preserveAspectRatio, GError** err) c_gdk_pixbuf_new_from_resource_at_scale; - GdkPixbuf* function(GInputStream* stream, GCancellable* cancellable, GError** err) c_gdk_pixbuf_new_from_stream; - GdkPixbuf* function(GInputStream* stream, int width, int height, int preserveAspectRatio, GCancellable* cancellable, GError** err) c_gdk_pixbuf_new_from_stream_at_scale; - GdkPixbuf* function(GAsyncResult* asyncResult, GError** err) c_gdk_pixbuf_new_from_stream_finish; - GdkPixbuf* function(char** data) c_gdk_pixbuf_new_from_xpm_data; - int function(GdkColorspace colorspace, int hasAlpha, int bitsPerSample, int width, int height) c_gdk_pixbuf_calculate_rowstride; - GdkPixbufFormat* function(char* filename, int* width, int* height) c_gdk_pixbuf_get_file_info; - void function(char* filename, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_pixbuf_get_file_info_async; - GdkPixbufFormat* function(GAsyncResult* asyncResult, int* width, int* height, GError** err) c_gdk_pixbuf_get_file_info_finish; - GSList* function() c_gdk_pixbuf_get_formats; - int function(const(char)* path, GError** err) c_gdk_pixbuf_init_modules; - void function(GInputStream* stream, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_pixbuf_new_from_stream_async; - void function(GInputStream* stream, int width, int height, int preserveAspectRatio, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_pixbuf_new_from_stream_at_scale_async; - int function(GAsyncResult* asyncResult, GError** err) c_gdk_pixbuf_save_to_stream_finish; - GdkPixbuf* function(GdkPixbuf* pixbuf, int substituteColor, char r, char g, char b) c_gdk_pixbuf_add_alpha; - GdkPixbuf* function(GdkPixbuf* src) c_gdk_pixbuf_apply_embedded_orientation; - void function(GdkPixbuf* src, GdkPixbuf* dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, GdkInterpType interpType, int overallAlpha) c_gdk_pixbuf_composite; - void function(GdkPixbuf* src, GdkPixbuf* dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, GdkInterpType interpType, int overallAlpha, int checkX, int checkY, int checkSize, uint color1, uint color2) c_gdk_pixbuf_composite_color; - GdkPixbuf* function(GdkPixbuf* src, int destWidth, int destHeight, GdkInterpType interpType, int overallAlpha, int checkSize, uint color1, uint color2) c_gdk_pixbuf_composite_color_simple; - GdkPixbuf* function(GdkPixbuf* pixbuf) c_gdk_pixbuf_copy; - void function(GdkPixbuf* srcPixbuf, int srcX, int srcY, int width, int height, GdkPixbuf* destPixbuf, int destX, int destY) c_gdk_pixbuf_copy_area; - int function(GdkPixbuf* srcPixbuf, GdkPixbuf* destPixbuf) c_gdk_pixbuf_copy_options; - void function(GdkPixbuf* pixbuf, uint pixel) c_gdk_pixbuf_fill; - GdkPixbuf* function(GdkPixbuf* src, int horizontal) c_gdk_pixbuf_flip; - int function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_bits_per_sample; - size_t function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_byte_length; - GdkColorspace function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_colorspace; - int function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_has_alpha; - int function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_height; - int function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_n_channels; - const(char)* function(GdkPixbuf* pixbuf, const(char)* key) c_gdk_pixbuf_get_option; - GHashTable* function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_options; - char* function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_pixels; - char* function(GdkPixbuf* pixbuf, uint* length) c_gdk_pixbuf_get_pixels_with_length; - int function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_rowstride; - int function(GdkPixbuf* pixbuf) c_gdk_pixbuf_get_width; - GdkPixbuf* function(GdkPixbuf* srcPixbuf, int srcX, int srcY, int width, int height) c_gdk_pixbuf_new_subpixbuf; - GBytes* function(GdkPixbuf* pixbuf) c_gdk_pixbuf_read_pixel_bytes; - ubyte* function(GdkPixbuf* pixbuf) c_gdk_pixbuf_read_pixels; - GdkPixbuf* function(GdkPixbuf* pixbuf) c_gdk_pixbuf_ref; - int function(GdkPixbuf* pixbuf, const(char)* key) c_gdk_pixbuf_remove_option; - GdkPixbuf* function(GdkPixbuf* src, GdkPixbufRotation angle) c_gdk_pixbuf_rotate_simple; - void function(GdkPixbuf* src, GdkPixbuf* dest, float saturation, int pixelate) c_gdk_pixbuf_saturate_and_pixelate; - int function(GdkPixbuf* pixbuf, char* filename, const(char)* type, GError** error, ... ) c_gdk_pixbuf_save; - int function(GdkPixbuf* pixbuf, char** buffer, size_t* bufferSize, const(char)* type, GError** error, ... ) c_gdk_pixbuf_save_to_buffer; - int function(GdkPixbuf* pixbuf, char** buffer, size_t* bufferSize, const(char)* type, char** optionKeys, char** optionValues, GError** err) c_gdk_pixbuf_save_to_bufferv; - int function(GdkPixbuf* pixbuf, GdkPixbufSaveFunc saveFunc, void* userData, const(char)* type, GError** error, ... ) c_gdk_pixbuf_save_to_callback; - int function(GdkPixbuf* pixbuf, GdkPixbufSaveFunc saveFunc, void* userData, const(char)* type, char** optionKeys, char** optionValues, GError** err) c_gdk_pixbuf_save_to_callbackv; - int function(GdkPixbuf* pixbuf, GOutputStream* stream, const(char)* type, GCancellable* cancellable, GError** error, ... ) c_gdk_pixbuf_save_to_stream; - void function(GdkPixbuf* pixbuf, GOutputStream* stream, const(char)* type, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData, ... ) c_gdk_pixbuf_save_to_stream_async; - int function(GdkPixbuf* pixbuf, GOutputStream* stream, const(char)* type, char** optionKeys, char** optionValues, GCancellable* cancellable, GError** err) c_gdk_pixbuf_save_to_streamv; - void function(GdkPixbuf* pixbuf, GOutputStream* stream, const(char)* type, char** optionKeys, char** optionValues, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_pixbuf_save_to_streamv_async; - int function(GdkPixbuf* pixbuf, char* filename, const(char)* type, char** optionKeys, char** optionValues, GError** err) c_gdk_pixbuf_savev; - void function(GdkPixbuf* src, GdkPixbuf* dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, GdkInterpType interpType) c_gdk_pixbuf_scale; - GdkPixbuf* function(GdkPixbuf* src, int destWidth, int destHeight, GdkInterpType interpType) c_gdk_pixbuf_scale_simple; - int function(GdkPixbuf* pixbuf, const(char)* key, const(char)* value) c_gdk_pixbuf_set_option; - void function(GdkPixbuf* pixbuf) c_gdk_pixbuf_unref; - - // gdkpixbuf.PixbufAnimation - - GType function() c_gdk_pixbuf_animation_get_type; - GdkPixbufAnimation* function(char* filename, GError** err) c_gdk_pixbuf_animation_new_from_file; - GdkPixbufAnimation* function(const(char)* resourcePath, GError** err) c_gdk_pixbuf_animation_new_from_resource; - GdkPixbufAnimation* function(GInputStream* stream, GCancellable* cancellable, GError** err) c_gdk_pixbuf_animation_new_from_stream; - GdkPixbufAnimation* function(GAsyncResult* asyncResult, GError** err) c_gdk_pixbuf_animation_new_from_stream_finish; - void function(GInputStream* stream, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_pixbuf_animation_new_from_stream_async; - int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_height; - GdkPixbufAnimationIter* function(GdkPixbufAnimation* animation, GTimeVal* startTime) c_gdk_pixbuf_animation_get_iter; - GdkPixbuf* function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_static_image; - int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_width; - int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_is_static_image; - GdkPixbufAnimation* function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_ref; - void function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_unref; - - // gdkpixbuf.PixbufAnimationIter - - GType function() c_gdk_pixbuf_animation_iter_get_type; - int function(GdkPixbufAnimationIter* iter, GTimeVal* currentTime) c_gdk_pixbuf_animation_iter_advance; - int function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_delay_time; - GdkPixbuf* function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_pixbuf; - int function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_on_currently_loading_frame; - - // gdkpixbuf.PixbufFormat - - GType function() c_gdk_pixbuf_format_get_type; - GdkPixbufFormat* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_copy; - void function(GdkPixbufFormat* format) c_gdk_pixbuf_format_free; - char* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_description; - char** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_extensions; - char* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_license; - char** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_mime_types; - char* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_name; - int function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_disabled; - int function(GdkPixbufFormat* format, const(char)* optionKey) c_gdk_pixbuf_format_is_save_option_supported; - int function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_scalable; - int function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_writable; - void function(GdkPixbufFormat* format, int disabled) c_gdk_pixbuf_format_set_disabled; - - // gdkpixbuf.PixbufLoader - - GType function() c_gdk_pixbuf_loader_get_type; - GdkPixbufLoader* function() c_gdk_pixbuf_loader_new; - GdkPixbufLoader* function(const(char)* mimeType, GError** err) c_gdk_pixbuf_loader_new_with_mime_type; - GdkPixbufLoader* function(const(char)* imageType, GError** err) c_gdk_pixbuf_loader_new_with_type; - int function(GdkPixbufLoader* loader, GError** err) c_gdk_pixbuf_loader_close; - GdkPixbufAnimation* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_animation; - GdkPixbufFormat* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_format; - GdkPixbuf* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_pixbuf; - void function(GdkPixbufLoader* loader, int width, int height) c_gdk_pixbuf_loader_set_size; - int function(GdkPixbufLoader* loader, char* buf, size_t count, GError** err) c_gdk_pixbuf_loader_write; - int function(GdkPixbufLoader* loader, GBytes* buffer, GError** err) c_gdk_pixbuf_loader_write_bytes; - - // gdkpixbuf.PixbufNonAnim - - GType function() c_gdk_pixbuf_non_anim_get_type; - GdkPixbufAnimation* function(GdkPixbuf* pixbuf) c_gdk_pixbuf_non_anim_new; - - // gdkpixbuf.PixbufSimpleAnimation - - GType function() c_gdk_pixbuf_simple_anim_get_type; - GdkPixbufSimpleAnim* function(int width, int height, float rate) c_gdk_pixbuf_simple_anim_new; - void function(GdkPixbufSimpleAnim* animation, GdkPixbuf* pixbuf) c_gdk_pixbuf_simple_anim_add_frame; - int function(GdkPixbufSimpleAnim* animation) c_gdk_pixbuf_simple_anim_get_loop; - void function(GdkPixbufSimpleAnim* animation, int loop) c_gdk_pixbuf_simple_anim_set_loop; - - // gdkpixbuf.PixbufSimpleAnimationIter - - GType function() c_gdk_pixbuf_simple_anim_iter_get_type; - - // gdkpixbuf.Pixdata - - int function(GdkPixdata* pixdata, uint streamLength, ubyte* stream, GError** err) c_gdk_pixdata_deserialize; - void* function(GdkPixdata* pixdata, GdkPixbuf* pixbuf, int useRle) c_gdk_pixdata_from_pixbuf; - ubyte* function(GdkPixdata* pixdata, uint* streamLengthP) c_gdk_pixdata_serialize; - GString* function(GdkPixdata* pixdata, const(char)* name, GdkPixdataDumpType dumpType) c_gdk_pixdata_to_csource; -} - - -// gdkpixbuf.Pixbuf - -alias c_gdk_pixbuf_get_type gdk_pixbuf_get_type; -alias c_gdk_pixbuf_new gdk_pixbuf_new; -alias c_gdk_pixbuf_new_from_bytes gdk_pixbuf_new_from_bytes; -alias c_gdk_pixbuf_new_from_data gdk_pixbuf_new_from_data; -alias c_gdk_pixbuf_new_from_file gdk_pixbuf_new_from_file; -alias c_gdk_pixbuf_new_from_file_at_scale gdk_pixbuf_new_from_file_at_scale; -alias c_gdk_pixbuf_new_from_file_at_size gdk_pixbuf_new_from_file_at_size; -alias c_gdk_pixbuf_new_from_inline gdk_pixbuf_new_from_inline; -alias c_gdk_pixbuf_new_from_resource gdk_pixbuf_new_from_resource; -alias c_gdk_pixbuf_new_from_resource_at_scale gdk_pixbuf_new_from_resource_at_scale; -alias c_gdk_pixbuf_new_from_stream gdk_pixbuf_new_from_stream; -alias c_gdk_pixbuf_new_from_stream_at_scale gdk_pixbuf_new_from_stream_at_scale; -alias c_gdk_pixbuf_new_from_stream_finish gdk_pixbuf_new_from_stream_finish; -alias c_gdk_pixbuf_new_from_xpm_data gdk_pixbuf_new_from_xpm_data; -alias c_gdk_pixbuf_calculate_rowstride gdk_pixbuf_calculate_rowstride; -alias c_gdk_pixbuf_get_file_info gdk_pixbuf_get_file_info; -alias c_gdk_pixbuf_get_file_info_async gdk_pixbuf_get_file_info_async; -alias c_gdk_pixbuf_get_file_info_finish gdk_pixbuf_get_file_info_finish; -alias c_gdk_pixbuf_get_formats gdk_pixbuf_get_formats; -alias c_gdk_pixbuf_init_modules gdk_pixbuf_init_modules; -alias c_gdk_pixbuf_new_from_stream_async gdk_pixbuf_new_from_stream_async; -alias c_gdk_pixbuf_new_from_stream_at_scale_async gdk_pixbuf_new_from_stream_at_scale_async; -alias c_gdk_pixbuf_save_to_stream_finish gdk_pixbuf_save_to_stream_finish; -alias c_gdk_pixbuf_add_alpha gdk_pixbuf_add_alpha; -alias c_gdk_pixbuf_apply_embedded_orientation gdk_pixbuf_apply_embedded_orientation; -alias c_gdk_pixbuf_composite gdk_pixbuf_composite; -alias c_gdk_pixbuf_composite_color gdk_pixbuf_composite_color; -alias c_gdk_pixbuf_composite_color_simple gdk_pixbuf_composite_color_simple; -alias c_gdk_pixbuf_copy gdk_pixbuf_copy; -alias c_gdk_pixbuf_copy_area gdk_pixbuf_copy_area; -alias c_gdk_pixbuf_copy_options gdk_pixbuf_copy_options; -alias c_gdk_pixbuf_fill gdk_pixbuf_fill; -alias c_gdk_pixbuf_flip gdk_pixbuf_flip; -alias c_gdk_pixbuf_get_bits_per_sample gdk_pixbuf_get_bits_per_sample; -alias c_gdk_pixbuf_get_byte_length gdk_pixbuf_get_byte_length; -alias c_gdk_pixbuf_get_colorspace gdk_pixbuf_get_colorspace; -alias c_gdk_pixbuf_get_has_alpha gdk_pixbuf_get_has_alpha; -alias c_gdk_pixbuf_get_height gdk_pixbuf_get_height; -alias c_gdk_pixbuf_get_n_channels gdk_pixbuf_get_n_channels; -alias c_gdk_pixbuf_get_option gdk_pixbuf_get_option; -alias c_gdk_pixbuf_get_options gdk_pixbuf_get_options; -alias c_gdk_pixbuf_get_pixels gdk_pixbuf_get_pixels; -alias c_gdk_pixbuf_get_pixels_with_length gdk_pixbuf_get_pixels_with_length; -alias c_gdk_pixbuf_get_rowstride gdk_pixbuf_get_rowstride; -alias c_gdk_pixbuf_get_width gdk_pixbuf_get_width; -alias c_gdk_pixbuf_new_subpixbuf gdk_pixbuf_new_subpixbuf; -alias c_gdk_pixbuf_read_pixel_bytes gdk_pixbuf_read_pixel_bytes; -alias c_gdk_pixbuf_read_pixels gdk_pixbuf_read_pixels; -alias c_gdk_pixbuf_ref gdk_pixbuf_ref; -alias c_gdk_pixbuf_remove_option gdk_pixbuf_remove_option; -alias c_gdk_pixbuf_rotate_simple gdk_pixbuf_rotate_simple; -alias c_gdk_pixbuf_saturate_and_pixelate gdk_pixbuf_saturate_and_pixelate; -alias c_gdk_pixbuf_save gdk_pixbuf_save; -alias c_gdk_pixbuf_save_to_buffer gdk_pixbuf_save_to_buffer; -alias c_gdk_pixbuf_save_to_bufferv gdk_pixbuf_save_to_bufferv; -alias c_gdk_pixbuf_save_to_callback gdk_pixbuf_save_to_callback; -alias c_gdk_pixbuf_save_to_callbackv gdk_pixbuf_save_to_callbackv; -alias c_gdk_pixbuf_save_to_stream gdk_pixbuf_save_to_stream; -alias c_gdk_pixbuf_save_to_stream_async gdk_pixbuf_save_to_stream_async; -alias c_gdk_pixbuf_save_to_streamv gdk_pixbuf_save_to_streamv; -alias c_gdk_pixbuf_save_to_streamv_async gdk_pixbuf_save_to_streamv_async; -alias c_gdk_pixbuf_savev gdk_pixbuf_savev; -alias c_gdk_pixbuf_scale gdk_pixbuf_scale; -alias c_gdk_pixbuf_scale_simple gdk_pixbuf_scale_simple; -alias c_gdk_pixbuf_set_option gdk_pixbuf_set_option; -alias c_gdk_pixbuf_unref gdk_pixbuf_unref; - -// gdkpixbuf.PixbufAnimation - -alias c_gdk_pixbuf_animation_get_type gdk_pixbuf_animation_get_type; -alias c_gdk_pixbuf_animation_new_from_file gdk_pixbuf_animation_new_from_file; -alias c_gdk_pixbuf_animation_new_from_resource gdk_pixbuf_animation_new_from_resource; -alias c_gdk_pixbuf_animation_new_from_stream gdk_pixbuf_animation_new_from_stream; -alias c_gdk_pixbuf_animation_new_from_stream_finish gdk_pixbuf_animation_new_from_stream_finish; -alias c_gdk_pixbuf_animation_new_from_stream_async gdk_pixbuf_animation_new_from_stream_async; -alias c_gdk_pixbuf_animation_get_height gdk_pixbuf_animation_get_height; -alias c_gdk_pixbuf_animation_get_iter gdk_pixbuf_animation_get_iter; -alias c_gdk_pixbuf_animation_get_static_image gdk_pixbuf_animation_get_static_image; -alias c_gdk_pixbuf_animation_get_width gdk_pixbuf_animation_get_width; -alias c_gdk_pixbuf_animation_is_static_image gdk_pixbuf_animation_is_static_image; -alias c_gdk_pixbuf_animation_ref gdk_pixbuf_animation_ref; -alias c_gdk_pixbuf_animation_unref gdk_pixbuf_animation_unref; - -// gdkpixbuf.PixbufAnimationIter - -alias c_gdk_pixbuf_animation_iter_get_type gdk_pixbuf_animation_iter_get_type; -alias c_gdk_pixbuf_animation_iter_advance gdk_pixbuf_animation_iter_advance; -alias c_gdk_pixbuf_animation_iter_get_delay_time gdk_pixbuf_animation_iter_get_delay_time; -alias c_gdk_pixbuf_animation_iter_get_pixbuf gdk_pixbuf_animation_iter_get_pixbuf; -alias c_gdk_pixbuf_animation_iter_on_currently_loading_frame gdk_pixbuf_animation_iter_on_currently_loading_frame; - -// gdkpixbuf.PixbufFormat - -alias c_gdk_pixbuf_format_get_type gdk_pixbuf_format_get_type; -alias c_gdk_pixbuf_format_copy gdk_pixbuf_format_copy; -alias c_gdk_pixbuf_format_free gdk_pixbuf_format_free; -alias c_gdk_pixbuf_format_get_description gdk_pixbuf_format_get_description; -alias c_gdk_pixbuf_format_get_extensions gdk_pixbuf_format_get_extensions; -alias c_gdk_pixbuf_format_get_license gdk_pixbuf_format_get_license; -alias c_gdk_pixbuf_format_get_mime_types gdk_pixbuf_format_get_mime_types; -alias c_gdk_pixbuf_format_get_name gdk_pixbuf_format_get_name; -alias c_gdk_pixbuf_format_is_disabled gdk_pixbuf_format_is_disabled; -alias c_gdk_pixbuf_format_is_save_option_supported gdk_pixbuf_format_is_save_option_supported; -alias c_gdk_pixbuf_format_is_scalable gdk_pixbuf_format_is_scalable; -alias c_gdk_pixbuf_format_is_writable gdk_pixbuf_format_is_writable; -alias c_gdk_pixbuf_format_set_disabled gdk_pixbuf_format_set_disabled; - -// gdkpixbuf.PixbufLoader - -alias c_gdk_pixbuf_loader_get_type gdk_pixbuf_loader_get_type; -alias c_gdk_pixbuf_loader_new gdk_pixbuf_loader_new; -alias c_gdk_pixbuf_loader_new_with_mime_type gdk_pixbuf_loader_new_with_mime_type; -alias c_gdk_pixbuf_loader_new_with_type gdk_pixbuf_loader_new_with_type; -alias c_gdk_pixbuf_loader_close gdk_pixbuf_loader_close; -alias c_gdk_pixbuf_loader_get_animation gdk_pixbuf_loader_get_animation; -alias c_gdk_pixbuf_loader_get_format gdk_pixbuf_loader_get_format; -alias c_gdk_pixbuf_loader_get_pixbuf gdk_pixbuf_loader_get_pixbuf; -alias c_gdk_pixbuf_loader_set_size gdk_pixbuf_loader_set_size; -alias c_gdk_pixbuf_loader_write gdk_pixbuf_loader_write; -alias c_gdk_pixbuf_loader_write_bytes gdk_pixbuf_loader_write_bytes; - -// gdkpixbuf.PixbufNonAnim - -alias c_gdk_pixbuf_non_anim_get_type gdk_pixbuf_non_anim_get_type; -alias c_gdk_pixbuf_non_anim_new gdk_pixbuf_non_anim_new; - -// gdkpixbuf.PixbufSimpleAnimation - -alias c_gdk_pixbuf_simple_anim_get_type gdk_pixbuf_simple_anim_get_type; -alias c_gdk_pixbuf_simple_anim_new gdk_pixbuf_simple_anim_new; -alias c_gdk_pixbuf_simple_anim_add_frame gdk_pixbuf_simple_anim_add_frame; -alias c_gdk_pixbuf_simple_anim_get_loop gdk_pixbuf_simple_anim_get_loop; -alias c_gdk_pixbuf_simple_anim_set_loop gdk_pixbuf_simple_anim_set_loop; - -// gdkpixbuf.PixbufSimpleAnimationIter - -alias c_gdk_pixbuf_simple_anim_iter_get_type gdk_pixbuf_simple_anim_iter_get_type; - -// gdkpixbuf.Pixdata - -alias c_gdk_pixdata_deserialize gdk_pixdata_deserialize; -alias c_gdk_pixdata_from_pixbuf gdk_pixdata_from_pixbuf; -alias c_gdk_pixdata_serialize gdk_pixdata_serialize; -alias c_gdk_pixdata_to_csource gdk_pixdata_to_csource; diff --git a/generated/gtkd/gdkpixbuf/c/types.d b/generated/gtkd/gdkpixbuf/c/types.d deleted file mode 100644 index 6fc9df068..000000000 --- a/generated/gtkd/gdkpixbuf/c/types.d +++ /dev/null @@ -1,827 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gdkpixbuf.c.types; - -public import gio.c.types; -public import glib.c.types; -public import gobject.c.types; - - -/** - * This enumeration defines the color spaces that are supported by - * the gdk-pixbuf library. - * - * Currently only RGB is supported. - */ -public enum GdkColorspace -{ - /** - * Indicates a red/green/blue additive color space. - */ - RGB = 0, -} -alias GdkColorspace Colorspace; - -/** - * Interpolation modes for scaling functions. - * - * The `GDK_INTERP_NEAREST` mode is the fastest scaling method, but has - * horrible quality when scaling down; `GDK_INTERP_BILINEAR` is the best - * choice if you aren't sure what to choose, it has a good speed/quality - * balance. - * - * **Note**: Cubic filtering is missing from the list; hyperbolic - * interpolation is just as fast and results in higher quality. - */ -public enum GdkInterpType -{ - /** - * Nearest neighbor sampling; this is the fastest - * and lowest quality mode. Quality is normally unacceptable when scaling - * down, but may be OK when scaling up. - */ - NEAREST = 0, - /** - * This is an accurate simulation of the PostScript - * image operator without any interpolation enabled. Each pixel is - * rendered as a tiny parallelogram of solid color, the edges of which - * are implemented with antialiasing. It resembles nearest neighbor for - * enlargement, and bilinear for reduction. - */ - TILES = 1, - /** - * Best quality/speed balance; use this mode by - * default. Bilinear interpolation. For enlargement, it is - * equivalent to point-sampling the ideal bilinear-interpolated image. - * For reduction, it is equivalent to laying down small tiles and - * integrating over the coverage area. - */ - BILINEAR = 2, - /** - * This is the slowest and highest quality - * reconstruction function. It is derived from the hyperbolic filters in - * Wolberg's "Digital Image Warping", and is formally defined as the - * hyperbolic-filter sampling the ideal hyperbolic-filter interpolated - * image (the filter is designed to be idempotent for 1:1 pixel mapping). - * **Deprecated**: this interpolation filter is deprecated, as in reality - * it has a lower quality than the @GDK_INTERP_BILINEAR filter - * (Since: 2.38) - */ - HYPER = 3, -} -alias GdkInterpType InterpType; - -/** - * Control the alpha channel for drawables. - * - * These values can be passed to gdk_pixbuf_xlib_render_to_drawable_alpha() - * in gdk-pixbuf-xlib to control how the alpha channel of an image should - * be handled. - * - * This function can create a bilevel clipping mask (black and white) and use - * it while painting the image. - * - * In the future, when the X Window System gets an alpha channel extension, - * it will be possible to do full alpha compositing onto arbitrary drawables. - * For now both cases fall back to a bilevel clipping mask. - * - * Deprecated: There is no user of GdkPixbufAlphaMode in GdkPixbuf, - * and the Xlib utility functions have been split out to their own - * library, gdk-pixbuf-xlib - */ -public enum GdkPixbufAlphaMode -{ - /** - * A bilevel clipping mask (black and white) - * will be created and used to draw the image. Pixels below 0.5 opacity - * will be considered fully transparent, and all others will be - * considered fully opaque. - */ - BILEVEL = 0, - /** - * For now falls back to #GDK_PIXBUF_ALPHA_BILEVEL. - * In the future it will do full alpha compositing. - */ - FULL = 1, -} -alias GdkPixbufAlphaMode PixbufAlphaMode; - -/** - * An error code in the `GDK_PIXBUF_ERROR` domain. - * - * Many gdk-pixbuf operations can cause errors in this domain, or in - * the `G_FILE_ERROR` domain. - */ -public enum GdkPixbufError -{ - /** - * An image file was broken somehow. - */ - CORRUPT_IMAGE = 0, - /** - * Not enough memory. - */ - INSUFFICIENT_MEMORY = 1, - /** - * A bad option was passed to a pixbuf save module. - */ - BAD_OPTION = 2, - /** - * Unknown image type. - */ - UNKNOWN_TYPE = 3, - /** - * Don't know how to perform the - * given operation on the type of image at hand. - */ - UNSUPPORTED_OPERATION = 4, - /** - * Generic failure code, something went wrong. - */ - FAILED = 5, - /** - * Only part of the animation was loaded. - */ - INCOMPLETE_ANIMATION = 6, -} -alias GdkPixbufError PixbufError; - -/** - * Flags which allow a module to specify further details about the supported - * operations. - * - * Since: 2.2 - */ -public enum GdkPixbufFormatFlags -{ - /** - * the module can write out images in the format. - */ - WRITABLE = 1, - /** - * the image format is scalable - */ - SCALABLE = 2, - /** - * the module is threadsafe. gdk-pixbuf - * ignores modules that are not marked as threadsafe. (Since 2.28). - */ - THREADSAFE = 4, -} -alias GdkPixbufFormatFlags PixbufFormatFlags; - -/** - * The possible rotations which can be passed to gdk_pixbuf_rotate_simple(). - * - * To make them easier to use, their numerical values are the actual degrees. - */ -public enum GdkPixbufRotation -{ - /** - * No rotation. - */ - NONE = 0, - /** - * Rotate by 90 degrees. - */ - COUNTERCLOCKWISE = 90, - /** - * Rotate by 180 degrees. - */ - UPSIDEDOWN = 180, - /** - * Rotate by 270 degrees. - */ - CLOCKWISE = 270, -} -alias GdkPixbufRotation PixbufRotation; - -/** - * An enumeration which is used by gdk_pixdata_to_csource() to - * determine the form of C source to be generated. The three values - * @GDK_PIXDATA_DUMP_PIXDATA_STREAM, @GDK_PIXDATA_DUMP_PIXDATA_STRUCT - * and @GDK_PIXDATA_DUMP_MACROS are mutually exclusive, as are - * @GDK_PIXBUF_DUMP_GTYPES and @GDK_PIXBUF_DUMP_CTYPES. The remaining - * elements are optional flags that can be freely added. - */ -public enum GdkPixdataDumpType -{ - /** - * Generate pixbuf data stream (a single - * string containing a serialized #GdkPixdata structure in network byte - * order). - */ - PIXDATA_STREAM = 0, - /** - * Generate #GdkPixdata structure (needs - * the #GdkPixdata structure definition from gdk-pixdata.h). - */ - PIXDATA_STRUCT = 1, - /** - * Generate *_ROWSTRIDE, - * *_WIDTH, *_HEIGHT, - * *_BYTES_PER_PIXEL and - * *_RLE_PIXEL_DATA or *_PIXEL_DATA - * macro definitions for the image. - */ - MACROS = 2, - /** - * Generate GLib data types instead of - * standard C data types. - */ - GTYPES = 0, - /** - * Generate standard C data types instead of - * GLib data types. - */ - CTYPES = 256, - /** - * Generate static symbols. - */ - STATIC = 512, - /** - * Generate const symbols. - */ - CONST = 1024, - /** - * Provide a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp) - * macro definition to decode run-length encoded image data. - */ - RLE_DECODER = 65536, -} -alias GdkPixdataDumpType PixdataDumpType; - -/** - * An enumeration containing three sets of flags for a #GdkPixdata struct: - * one for the used colorspace, one for the width of the samples and one - * for the encoding of the pixel data. - */ -public enum GdkPixdataType -{ - /** - * each pixel has red, green and blue samples. - */ - COLOR_TYPE_RGB = 1, - /** - * each pixel has red, green and blue samples - * and an alpha value. - */ - COLOR_TYPE_RGBA = 2, - /** - * mask for the colortype flags of the enum. - */ - COLOR_TYPE_MASK = 255, - /** - * each sample has 8 bits. - */ - SAMPLE_WIDTH_8 = 65536, - /** - * mask for the sample width flags of the enum. - */ - SAMPLE_WIDTH_MASK = 983040, - /** - * the pixel data is in raw form. - */ - ENCODING_RAW = 16777216, - /** - * the pixel data is run-length encoded. Runs may - * be up to 127 bytes long; their length is stored in a single byte - * preceding the pixel data for the run. If a run is constant, its length - * byte has the high bit set and the pixel data consists of a single pixel - * which must be repeated. - */ - ENCODING_RLE = 33554432, - /** - * mask for the encoding flags of the enum. - */ - ENCODING_MASK = 251658240, -} -alias GdkPixdataType PixdataType; - -struct GdkPixbuf; - -struct GdkPixbufAnimation -{ - GObject parentInstance; -} - -/** - * Modules supporting animations must derive a type from - * #GdkPixbufAnimation, providing suitable implementations of the - * virtual functions. - */ -struct GdkPixbufAnimationClass -{ - /** - * the parent class - */ - GObjectClass parentClass; - /** - * - * Params: - * animation = a #GdkPixbufAnimation - * Returns: `TRUE` if the "animation" was really just an image - */ - extern(C) int function(GdkPixbufAnimation* animation) isStaticImage; - /** - * - * Params: - * animation = a #GdkPixbufAnimation - * Returns: unanimated image representing the animation - */ - extern(C) GdkPixbuf* function(GdkPixbufAnimation* animation) getStaticImage; - /** */ - extern(C) void function(GdkPixbufAnimation* animation, int* width, int* height) getSize; - /** - * - * Params: - * animation = a #GdkPixbufAnimation - * startTime = time when the animation starts playing - * Returns: an iterator to move over the animation - */ - extern(C) GdkPixbufAnimationIter* function(GdkPixbufAnimation* animation, GTimeVal* startTime) getIter; -} - -struct GdkPixbufAnimationIter -{ - GObject parentInstance; -} - -/** - * Modules supporting animations must derive a type from - * #GdkPixbufAnimationIter, providing suitable implementations of the - * virtual functions. - */ -struct GdkPixbufAnimationIterClass -{ - /** - * the parent class - */ - GObjectClass parentClass; - /** - * - * Params: - * iter = an animation iterator - * Returns: delay time in milliseconds (thousandths of a second) - */ - extern(C) int function(GdkPixbufAnimationIter* iter) getDelayTime; - /** - * - * Params: - * iter = an animation iterator - * Returns: the pixbuf to be displayed - */ - extern(C) GdkPixbuf* function(GdkPixbufAnimationIter* iter) getPixbuf; - /** - * - * Params: - * iter = a #GdkPixbufAnimationIter - * Returns: `TRUE` if the frame we're on is partially loaded, or the last frame - */ - extern(C) int function(GdkPixbufAnimationIter* iter) onCurrentlyLoadingFrame; - /** - * - * Params: - * iter = a #GdkPixbufAnimationIter - * currentTime = current time - * Returns: `TRUE` if the image may need updating - */ - extern(C) int function(GdkPixbufAnimationIter* iter, GTimeVal* currentTime) advance; -} - -struct GdkPixbufFormat -{ - /** - * the name of the image format - */ - char* name; - /** - * the signature of the module - */ - GdkPixbufModulePattern* signature; - /** - * the message domain for the `description` - */ - char* domain; - /** - * a description of the image format - */ - char* description; - /** - * the MIME types for the image format - */ - char** mimeTypes; - /** - * typical filename extensions for the - * image format - */ - char** extensions; - /** - * a combination of `GdkPixbufFormatFlags` - */ - uint flags; - /** - * a boolean determining whether the loader is disabled` - */ - bool disabled; - /** - * a string containing license information, typically set to - * shorthands like "GPL", "LGPL", etc. - */ - char* license; -} - -struct GdkPixbufLoader -{ - GObject parentInstance; - void* priv; -} - -struct GdkPixbufLoaderClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GdkPixbufLoader* loader, int width, int height) sizePrepared; - /** */ - extern(C) void function(GdkPixbufLoader* loader) areaPrepared; - /** */ - extern(C) void function(GdkPixbufLoader* loader, int x, int y, int width, int height) areaUpdated; - /** */ - extern(C) void function(GdkPixbufLoader* loader) closed; -} - -/** - * A `GdkPixbufModule` contains the necessary functions to load and save - * images in a certain file format. - * - * If `GdkPixbuf` has been compiled with `GModule` support, it can be extended - * by modules which can load (and perhaps also save) new image and animation - * formats. - * - * ## Implementing modules - * - * The `GdkPixbuf` interfaces needed for implementing modules are contained in - * `gdk-pixbuf-io.h` (and `gdk-pixbuf-animation.h` if the module supports - * animations). They are not covered by the same stability guarantees as the - * regular GdkPixbuf API. To underline this fact, they are protected by the - * `GDK_PIXBUF_ENABLE_BACKEND` pre-processor symbol. - * - * Each loadable module must contain a `GdkPixbufModuleFillVtableFunc` function - * named `fill_vtable`, which will get called when the module - * is loaded and must set the function pointers of the `GdkPixbufModule`. - * - * In order to make format-checking work before actually loading the modules - * (which may require calling `dlopen` to load image libraries), modules export - * their signatures (and other information) via the `fill_info` function. An - * external utility, `gdk-pixbuf-query-loaders`, uses this to create a text - * file containing a list of all available loaders and their signatures. - * This file is then read at runtime by `GdkPixbuf` to obtain the list of - * available loaders and their signatures. - * - * Modules may only implement a subset of the functionality available via - * `GdkPixbufModule`. If a particular functionality is not implemented, the - * `fill_vtable` function will simply not set the corresponding - * function pointers of the `GdkPixbufModule` structure. If a module supports - * incremental loading (i.e. provides `begin_load`, `stop_load` and - * `load_increment`), it doesn't have to implement `load`, since `GdkPixbuf` - * can supply a generic `load` implementation wrapping the incremental loading. - * - * ## Installing modules - * - * Installing a module is a two-step process: - * - * - copy the module file(s) to the loader directory (normally - * `$libdir/gdk-pixbuf-2.0/$version/loaders`, unless overridden by the - * environment variable `GDK_PIXBUF_MODULEDIR`) - * - call `gdk-pixbuf-query-loaders` to update the module file (normally - * `$libdir/gdk-pixbuf-2.0/$version/loaders.cache`, unless overridden - * by the environment variable `GDK_PIXBUF_MODULE_FILE`) - */ -struct GdkPixbufModule -{ - /** - * the name of the module, usually the same as the - * usual file extension for images of this type, eg. "xpm", "jpeg" or "png". - */ - char* moduleName; - /** - * the path from which the module is loaded. - */ - char* modulePath; - /** - * the loaded `GModule`. - */ - GModule* module_; - /** - * a `GdkPixbufFormat` holding information about the module. - */ - GdkPixbufFormat* info; - /** */ - extern(C) GdkPixbuf* function(FILE* f, GError** err) load; - /** */ - extern(C) GdkPixbuf* function(char** data) loadXpmData; - /** */ - extern(C) void* function(GdkPixbufModuleSizeFunc sizeFunc, GdkPixbufModulePreparedFunc preparedFunc, GdkPixbufModuleUpdatedFunc updatedFunc, void* userData, GError** err) beginLoad; - /** */ - extern(C) int function(void* context, GError** err) stopLoad; - /** */ - extern(C) int function(void* context, char* buf, uint size, GError** err) loadIncrement; - /** */ - extern(C) GdkPixbufAnimation* function(FILE* f, GError** err) loadAnimation; - /** */ - extern(C) int function(FILE* f, GdkPixbuf* pixbuf, char** paramKeys, char** paramValues, GError** err) save; - /** */ - extern(C) int function(GdkPixbufSaveFunc saveFunc, void* userData, GdkPixbuf* pixbuf, char** optionKeys, char** optionValues, GError** err) saveToCallback; - /** */ - extern(C) int function(const(char)* optionKey) isSaveOptionSupported; - /** */ - extern(C) void function() Reserved1; - /** */ - extern(C) void function() Reserved2; - /** */ - extern(C) void function() Reserved3; - /** */ - extern(C) void function() Reserved4; -} - -/** - * The signature prefix for a module. - * - * The signature of a module is a set of prefixes. Prefixes are encoded as - * pairs of ordinary strings, where the second string, called the mask, if - * not `NULL`, must be of the same length as the first one and may contain - * ' ', '!', 'x', 'z', and 'n' to indicate bytes that must be matched, - * not matched, "don't-care"-bytes, zeros and non-zeros, respectively. - * - * Each prefix has an associated integer that describes the relevance of - * the prefix, with 0 meaning a mismatch and 100 a "perfect match". - * - * Starting with gdk-pixbuf 2.8, the first byte of the mask may be '*', - * indicating an unanchored pattern that matches not only at the beginning, - * but also in the middle. Versions prior to 2.8 will interpret the '*' - * like an 'x'. - * - * The signature of a module is stored as an array of - * `GdkPixbufModulePatterns`. The array is terminated by a pattern - * where the `prefix` is `NULL`. - * - * ```c - * GdkPixbufModulePattern *signature[] = { - * { "abcdx", " !x z", 100 }, - * { "bla", NULL, 90 }, - * { NULL, NULL, 0 } - * }; - * ``` - * - * In the example above, the signature matches e.g. "auud\0" with - * relevance 100, and "blau" with relevance 90. - * - * Since: 2.2 - */ -struct GdkPixbufModulePattern -{ - /** - * the prefix for this pattern - */ - char* prefix; - /** - * mask containing bytes which modify how the prefix is matched against - * test data - */ - char* mask; - /** - * relevance of this pattern - */ - int relevance; -} - -struct GdkPixbufNonAnim; - -struct GdkPixbufSimpleAnim; - -struct GdkPixbufSimpleAnimClass; - -struct GdkPixbufSimpleAnimIter; - -struct GdkPixdata -{ - /** - * magic number. A valid `GdkPixdata` structure must have - * `GDK_PIXBUF_MAGIC_NUMBER` here - */ - uint magic; - /** - * less than 1 to disable length checks, otherwise - * `GDK_PIXDATA_HEADER_LENGTH` plus the length of `pixel_data` - */ - int length; - /** - * information about colorspace, sample width and - * encoding, in a `GdkPixdataType` - */ - uint pixdataType; - /** - * Distance in bytes between rows - */ - uint rowstride; - /** - * Width of the image in pixels - */ - uint width; - /** - * Height of the image in pixels - */ - uint height; - /** - * `width` x `height` - * pixels, encoded according to `pixdata_type` and `rowstride` - */ - ubyte* pixelData; -} - -/** - * A function of this type is responsible for freeing the pixel array - * of a pixbuf. - * - * The gdk_pixbuf_new_from_data() function lets you pass in a pre-allocated - * pixel array so that a pixbuf can be created from it; in this case you - * will need to pass in a function of type `GdkPixbufDestroyNotify` so that - * the pixel data can be freed when the pixbuf is finalized. - * - * Params: - * pixels = The pixel array of the pixbuf - * that is being finalized. - * data = User closure data. - */ -public alias extern(C) void function(char* pixels, void* data) GdkPixbufDestroyNotify; - -/** - * Defines the type of the function used to fill a - * #GdkPixbufFormat structure with information about a module. - * - * Params: - * info = a #GdkPixbufFormat. - * - * Since: 2.2 - */ -public alias extern(C) void function(GdkPixbufFormat* info) GdkPixbufModuleFillInfoFunc; - -/** - * Defines the type of the function used to set the vtable of a - * #GdkPixbufModule when it is loaded. - * - * Params: - * module_ = a #GdkPixbufModule. - * - * Since: 2.2 - */ -public alias extern(C) void function(GdkPixbufModule* module_) GdkPixbufModuleFillVtableFunc; - -/** - * Defines the type of the function that gets called once the initial - * setup of @pixbuf is done. - * - * #GdkPixbufLoader uses a function of this type to emit the - * "area_prepared" - * signal. - * - * Params: - * pixbuf = the #GdkPixbuf that is currently being loaded. - * anim = if an animation is being loaded, the #GdkPixbufAnimation, else %NULL. - * userData = the loader. - * - * Since: 2.2 - */ -public alias extern(C) void function(GdkPixbuf* pixbuf, GdkPixbufAnimation* anim, void* userData) GdkPixbufModulePreparedFunc; - -/** - * Defines the type of the function that gets called once the size - * of the loaded image is known. - * - * The function is expected to set @width and @height to the desired - * size to which the image should be scaled. If a module has no efficient - * way to achieve the desired scaling during the loading of the image, it may - * either ignore the size request, or only approximate it - gdk-pixbuf will - * then perform the required scaling on the completely loaded image. - * - * If the function sets @width or @height to zero, the module should interpret - * this as a hint that it will be closed soon and shouldn't allocate further - * resources. This convention is used to implement gdk_pixbuf_get_file_info() - * efficiently. - * - * Params: - * width = pointer to a location containing the current image width - * height = pointer to a location containing the current image height - * userData = the loader. - * - * Since: 2.2 - */ -public alias extern(C) void function(int* width, int* height, void* userData) GdkPixbufModuleSizeFunc; - -/** - * Defines the type of the function that gets called every time a region - * of @pixbuf is updated. - * - * #GdkPixbufLoader uses a function of this type to emit the - * "area_updated" - * signal. - * - * Params: - * pixbuf = the #GdkPixbuf that is currently being loaded. - * x = the X origin of the updated area. - * y = the Y origin of the updated area. - * width = the width of the updated area. - * height = the height of the updated area. - * userData = the loader. - * - * Since: 2.2 - */ -public alias extern(C) void function(GdkPixbuf* pixbuf, int x, int y, int width, int height, void* userData) GdkPixbufModuleUpdatedFunc; - -/** - * Save functions used by [method@GdkPixbuf.Pixbuf.save_to_callback]. - * - * This function is called once for each block of bytes that is "written" - * by `gdk_pixbuf_save_to_callback()`. - * - * If successful it should return `TRUE`; if an error occurs it should set - * `error` and return `FALSE`, in which case `gdk_pixbuf_save_to_callback()` - * will fail with the same error. - * - * Params: - * buf = bytes to be written. - * count = number of bytes in @buf. - * error = A location to return an error. - * data = user data passed to gdk_pixbuf_save_to_callback(). - * - * Returns: `TRUE` if successful, `FALSE` otherwise - * - * Since: 2.4 - */ -public alias extern(C) int function(char* buf, size_t count, GError** error, void* data) GdkPixbufSaveFunc; - -import core.stdc.stdio; - -/** - * Major version of gdk-pixbuf library, that is the "0" in - * "0.8.2" for example. - */ -enum PIXBUF_MAJOR = 2; -alias GDK_PIXBUF_MAJOR = PIXBUF_MAJOR; - -/** - * Micro version of gdk-pixbuf library, that is the "2" in - * "0.8.2" for example. - */ -enum PIXBUF_MICRO = 6; -alias GDK_PIXBUF_MICRO = PIXBUF_MICRO; - -/** - * Minor version of gdk-pixbuf library, that is the "8" in - * "0.8.2" for example. - */ -enum PIXBUF_MINOR = 42; -alias GDK_PIXBUF_MINOR = PIXBUF_MINOR; - -/** - * Contains the full version of GdkPixbuf as a string. - * - * This is the version being compiled against; contrast with - * `gdk_pixbuf_version`. - */ -enum PIXBUF_VERSION = "2.42.6"; -alias GDK_PIXBUF_VERSION = PIXBUF_VERSION; - -/** - * Magic number for #GdkPixdata structures. - */ -enum PIXBUF_MAGIC_NUMBER = 1197763408; -alias GDK_PIXBUF_MAGIC_NUMBER = PIXBUF_MAGIC_NUMBER; - -/** - * The length of a #GdkPixdata structure without the @pixel_data pointer. - */ -enum PIXDATA_HEADER_LENGTH = 24; -alias GDK_PIXDATA_HEADER_LENGTH = PIXDATA_HEADER_LENGTH; diff --git a/generated/gtkd/gio/ActionGroupIF.d b/generated/gtkd/gio/ActionGroupIF.d deleted file mode 100644 index 4fb938144..000000000 --- a/generated/gtkd/gio/ActionGroupIF.d +++ /dev/null @@ -1,439 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ActionGroupIF; - -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import glib.c.functions; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GActionGroup represents a group of actions. Actions can be used to - * expose functionality in a structured way, either from one part of a - * program to another, or to the outside world. Action groups are often - * used together with a #GMenuModel that provides additional - * representation data for displaying the actions to the user, e.g. in - * a menu. - * - * The main way to interact with the actions in a GActionGroup is to - * activate them with g_action_group_activate_action(). Activating an - * action may require a #GVariant parameter. The required type of the - * parameter can be inquired with g_action_group_get_action_parameter_type(). - * Actions may be disabled, see g_action_group_get_action_enabled(). - * Activating a disabled action has no effect. - * - * Actions may optionally have a state in the form of a #GVariant. The - * current state of an action can be inquired with - * g_action_group_get_action_state(). Activating a stateful action may - * change its state, but it is also possible to set the state by calling - * g_action_group_change_action_state(). - * - * As typical example, consider a text editing application which has an - * option to change the current font to 'bold'. A good way to represent - * this would be a stateful action, with a boolean state. Activating the - * action would toggle the state. - * - * Each action in the group has a unique name (which is a string). All - * method calls, except g_action_group_list_actions() take the name of - * an action as an argument. - * - * The #GActionGroup API is meant to be the 'public' API to the action - * group. The calls here are exactly the interaction that 'external - * forces' (eg: UI, incoming D-Bus messages, etc.) are supposed to have - * with actions. 'Internal' APIs (ie: ones meant only to be accessed by - * the action group implementation) are found on subclasses. This is - * why you will find - for example - g_action_group_get_action_enabled() - * but not an equivalent set() call. - * - * Signals are emitted on the action group in response to state changes - * on individual actions. - * - * Implementations of #GActionGroup should provide implementations for - * the virtual functions g_action_group_list_actions() and - * g_action_group_query_action(). The other virtual functions should - * not be implemented - their "wrappers" are actually implemented with - * calls to g_action_group_query_action(). - */ -public interface ActionGroupIF{ - /** Get the main Gtk struct */ - public GActionGroup* getActionGroupStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_action_group_get_type(); - } - - /** - * Emits the #GActionGroup::action-added signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * - * Since: 2.28 - */ - public void actionAdded(string actionName); - - /** - * Emits the #GActionGroup::action-enabled-changed signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * enabled = whether or not the action is now enabled - * - * Since: 2.28 - */ - public void actionEnabledChanged(string actionName, bool enabled); - - /** - * Emits the #GActionGroup::action-removed signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * - * Since: 2.28 - */ - public void actionRemoved(string actionName); - - /** - * Emits the #GActionGroup::action-state-changed signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * state = the new state of the named action - * - * Since: 2.28 - */ - public void actionStateChanged(string actionName, Variant state); - - /** - * Activate the named action within @action_group. - * - * If the action is expecting a parameter, then the correct type of - * parameter must be given as @parameter. If the action is expecting no - * parameters then @parameter must be %NULL. See - * g_action_group_get_action_parameter_type(). - * - * If the #GActionGroup implementation supports asynchronous remote - * activation over D-Bus, this call may return before the relevant - * D-Bus traffic has been sent, or any replies have been received. In - * order to block on such asynchronous activation calls, - * g_dbus_connection_flush() should be called prior to the code, which - * depends on the result of the action activation. Without flushing - * the D-Bus connection, there is no guarantee that the action would - * have been activated. - * - * The following code which runs in a remote app instance, shows an - * example of a "quit" action being activated on the primary app - * instance over D-Bus. Here g_dbus_connection_flush() is called - * before `exit()`. Without g_dbus_connection_flush(), the "quit" action - * may fail to be activated on the primary instance. - * - * |[ - * // call "quit" action on primary instance - * g_action_group_activate_action (G_ACTION_GROUP (app), "quit", NULL); - * - * // make sure the action is activated now - * g_dbus_connection_flush (...); - * - * g_debug ("application has been terminated. exiting."); - * - * exit (0); - * ]| - * - * Params: - * actionName = the name of the action to activate - * parameter = parameters to the activation - * - * Since: 2.28 - */ - public void activateAction(string actionName, Variant parameter); - - /** - * Request for the state of the named action within @action_group to be - * changed to @value. - * - * The action must be stateful and @value must be of the correct type. - * See g_action_group_get_action_state_type(). - * - * This call merely requests a change. The action may refuse to change - * its state or may change its state to something other than @value. - * See g_action_group_get_action_state_hint(). - * - * If the @value GVariant is floating, it is consumed. - * - * Params: - * actionName = the name of the action to request the change on - * value = the new state - * - * Since: 2.28 - */ - public void changeActionState(string actionName, Variant value); - - /** - * Checks if the named action within @action_group is currently enabled. - * - * An action must be enabled in order to be activated or in order to - * have its state changed from outside callers. - * - * Params: - * actionName = the name of the action to query - * - * Returns: whether or not the action is currently enabled - * - * Since: 2.28 - */ - public bool getActionEnabled(string actionName); - - /** - * Queries the type of the parameter that must be given when activating - * the named action within @action_group. - * - * When activating the action using g_action_group_activate_action(), - * the #GVariant given to that function must be of the type returned - * by this function. - * - * In the case that this function returns %NULL, you must not give any - * #GVariant, but %NULL instead. - * - * The parameter type of a particular action will never change but it is - * possible for an action to be removed and for a new action to be added - * with the same name but a different parameter type. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the parameter type - * - * Since: 2.28 - */ - public VariantType getActionParameterType(string actionName); - - /** - * Queries the current state of the named action within @action_group. - * - * If the action is not stateful then %NULL will be returned. If the - * action is stateful then the type of the return value is the type - * given by g_action_group_get_action_state_type(). - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the current state of the action - * - * Since: 2.28 - */ - public Variant getActionState(string actionName); - - /** - * Requests a hint about the valid range of values for the state of the - * named action within @action_group. - * - * If %NULL is returned it either means that the action is not stateful - * or that there is no hint about the valid range of values for the - * state of the action. - * - * If a #GVariant array is returned then each item in the array is a - * possible value for the state. If a #GVariant pair (ie: two-tuple) is - * returned then the tuple specifies the inclusive lower and upper bound - * of valid values for the state. - * - * In any case, the information is merely a hint. It may be possible to - * have a state value outside of the hinted range and setting a value - * within the range may fail. - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the state range hint - * - * Since: 2.28 - */ - public Variant getActionStateHint(string actionName); - - /** - * Queries the type of the state of the named action within - * @action_group. - * - * If the action is stateful then this function returns the - * #GVariantType of the state. All calls to - * g_action_group_change_action_state() must give a #GVariant of this - * type and g_action_group_get_action_state() will return a #GVariant - * of the same type. - * - * If the action is not stateful then this function will return %NULL. - * In that case, g_action_group_get_action_state() will return %NULL - * and you must not call g_action_group_change_action_state(). - * - * The state type of a particular action will never change but it is - * possible for an action to be removed and for a new action to be added - * with the same name but a different state type. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the state type, if the action is stateful - * - * Since: 2.28 - */ - public VariantType getActionStateType(string actionName); - - /** - * Checks if the named action exists within @action_group. - * - * Params: - * actionName = the name of the action to check for - * - * Returns: whether the named action exists - * - * Since: 2.28 - */ - public bool hasAction(string actionName); - - /** - * Lists the actions contained within @action_group. - * - * The caller is responsible for freeing the list with g_strfreev() when - * it is no longer required. - * - * Returns: a %NULL-terminated array of the names of the - * actions in the group - * - * Since: 2.28 - */ - public string[] listActions(); - - /** - * Queries all aspects of the named action within an @action_group. - * - * This function acquires the information available from - * g_action_group_has_action(), g_action_group_get_action_enabled(), - * g_action_group_get_action_parameter_type(), - * g_action_group_get_action_state_type(), - * g_action_group_get_action_state_hint() and - * g_action_group_get_action_state() with a single function call. - * - * This provides two main benefits. - * - * The first is the improvement in efficiency that comes with not having - * to perform repeated lookups of the action in order to discover - * different things about it. The second is that implementing - * #GActionGroup can now be done by only overriding this one virtual - * function. - * - * The interface provides a default implementation of this function that - * calls the individual functions, as required, to fetch the - * information. The interface also provides default implementations of - * those functions that call this function. All implementations, - * therefore, must override either this function or all of the others. - * - * If the action exists, %TRUE is returned and any of the requested - * fields (as indicated by having a non-%NULL reference passed in) are - * filled. If the action doesn't exist, %FALSE is returned and the - * fields may or may not have been modified. - * - * Params: - * actionName = the name of an action in the group - * enabled = if the action is presently enabled - * parameterType = the parameter type, or %NULL if none needed - * stateType = the state type, or %NULL if stateless - * stateHint = the state hint, or %NULL if none - * state = the current state, or %NULL if stateless - * - * Returns: %TRUE if the action exists, else %FALSE - * - * Since: 2.32 - */ - public bool queryAction(string actionName, out bool enabled, out VariantType parameterType, out VariantType stateType, out Variant stateHint, out Variant state); - - /** - * Signals that a new action was just added to the group. - * This signal is emitted after the action has been added - * and is now visible. - * - * Params: - * actionName = the name of the action in @action_group - * - * Since: 2.28 - */ - gulong addOnActionAdded(void delegate(string, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Signals that the enabled status of the named action has changed. - * - * Params: - * actionName = the name of the action in @action_group - * enabled = whether the action is enabled or not - * - * Since: 2.28 - */ - gulong addOnActionEnabledChanged(void delegate(string, bool, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Signals that an action is just about to be removed from the group. - * This signal is emitted before the action is removed, so the action - * is still visible and can be queried from the signal handler. - * - * Params: - * actionName = the name of the action in @action_group - * - * Since: 2.28 - */ - gulong addOnActionRemoved(void delegate(string, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Signals that the state of the named action has changed. - * - * Params: - * actionName = the name of the action in @action_group - * value = the new value of the state - * - * Since: 2.28 - */ - gulong addOnActionStateChanged(void delegate(string, Variant, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/ActionGroupT.d b/generated/gtkd/gio/ActionGroupT.d deleted file mode 100644 index f28b82567..000000000 --- a/generated/gtkd/gio/ActionGroupT.d +++ /dev/null @@ -1,535 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ActionGroupT; - -public import gio.c.functions; -public import gio.c.types; -public import glib.Str; -public import glib.Variant; -public import glib.VariantType; -public import glib.c.functions; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #GActionGroup represents a group of actions. Actions can be used to - * expose functionality in a structured way, either from one part of a - * program to another, or to the outside world. Action groups are often - * used together with a #GMenuModel that provides additional - * representation data for displaying the actions to the user, e.g. in - * a menu. - * - * The main way to interact with the actions in a GActionGroup is to - * activate them with g_action_group_activate_action(). Activating an - * action may require a #GVariant parameter. The required type of the - * parameter can be inquired with g_action_group_get_action_parameter_type(). - * Actions may be disabled, see g_action_group_get_action_enabled(). - * Activating a disabled action has no effect. - * - * Actions may optionally have a state in the form of a #GVariant. The - * current state of an action can be inquired with - * g_action_group_get_action_state(). Activating a stateful action may - * change its state, but it is also possible to set the state by calling - * g_action_group_change_action_state(). - * - * As typical example, consider a text editing application which has an - * option to change the current font to 'bold'. A good way to represent - * this would be a stateful action, with a boolean state. Activating the - * action would toggle the state. - * - * Each action in the group has a unique name (which is a string). All - * method calls, except g_action_group_list_actions() take the name of - * an action as an argument. - * - * The #GActionGroup API is meant to be the 'public' API to the action - * group. The calls here are exactly the interaction that 'external - * forces' (eg: UI, incoming D-Bus messages, etc.) are supposed to have - * with actions. 'Internal' APIs (ie: ones meant only to be accessed by - * the action group implementation) are found on subclasses. This is - * why you will find - for example - g_action_group_get_action_enabled() - * but not an equivalent set() call. - * - * Signals are emitted on the action group in response to state changes - * on individual actions. - * - * Implementations of #GActionGroup should provide implementations for - * the virtual functions g_action_group_list_actions() and - * g_action_group_query_action(). The other virtual functions should - * not be implemented - their "wrappers" are actually implemented with - * calls to g_action_group_query_action(). - */ -public template ActionGroupT(TStruct) -{ - /** Get the main Gtk struct */ - public GActionGroup* getActionGroupStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GActionGroup*)getStruct(); - } - - - /** - * Emits the #GActionGroup::action-added signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * - * Since: 2.28 - */ - public void actionAdded(string actionName) - { - g_action_group_action_added(getActionGroupStruct(), Str.toStringz(actionName)); - } - - /** - * Emits the #GActionGroup::action-enabled-changed signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * enabled = whether or not the action is now enabled - * - * Since: 2.28 - */ - public void actionEnabledChanged(string actionName, bool enabled) - { - g_action_group_action_enabled_changed(getActionGroupStruct(), Str.toStringz(actionName), enabled); - } - - /** - * Emits the #GActionGroup::action-removed signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * - * Since: 2.28 - */ - public void actionRemoved(string actionName) - { - g_action_group_action_removed(getActionGroupStruct(), Str.toStringz(actionName)); - } - - /** - * Emits the #GActionGroup::action-state-changed signal on @action_group. - * - * This function should only be called by #GActionGroup implementations. - * - * Params: - * actionName = the name of an action in the group - * state = the new state of the named action - * - * Since: 2.28 - */ - public void actionStateChanged(string actionName, Variant state) - { - g_action_group_action_state_changed(getActionGroupStruct(), Str.toStringz(actionName), (state is null) ? null : state.getVariantStruct()); - } - - /** - * Activate the named action within @action_group. - * - * If the action is expecting a parameter, then the correct type of - * parameter must be given as @parameter. If the action is expecting no - * parameters then @parameter must be %NULL. See - * g_action_group_get_action_parameter_type(). - * - * If the #GActionGroup implementation supports asynchronous remote - * activation over D-Bus, this call may return before the relevant - * D-Bus traffic has been sent, or any replies have been received. In - * order to block on such asynchronous activation calls, - * g_dbus_connection_flush() should be called prior to the code, which - * depends on the result of the action activation. Without flushing - * the D-Bus connection, there is no guarantee that the action would - * have been activated. - * - * The following code which runs in a remote app instance, shows an - * example of a "quit" action being activated on the primary app - * instance over D-Bus. Here g_dbus_connection_flush() is called - * before `exit()`. Without g_dbus_connection_flush(), the "quit" action - * may fail to be activated on the primary instance. - * - * |[ - * // call "quit" action on primary instance - * g_action_group_activate_action (G_ACTION_GROUP (app), "quit", NULL); - * - * // make sure the action is activated now - * g_dbus_connection_flush (...); - * - * g_debug ("application has been terminated. exiting."); - * - * exit (0); - * ]| - * - * Params: - * actionName = the name of the action to activate - * parameter = parameters to the activation - * - * Since: 2.28 - */ - public void activateAction(string actionName, Variant parameter) - { - g_action_group_activate_action(getActionGroupStruct(), Str.toStringz(actionName), (parameter is null) ? null : parameter.getVariantStruct()); - } - - /** - * Request for the state of the named action within @action_group to be - * changed to @value. - * - * The action must be stateful and @value must be of the correct type. - * See g_action_group_get_action_state_type(). - * - * This call merely requests a change. The action may refuse to change - * its state or may change its state to something other than @value. - * See g_action_group_get_action_state_hint(). - * - * If the @value GVariant is floating, it is consumed. - * - * Params: - * actionName = the name of the action to request the change on - * value = the new state - * - * Since: 2.28 - */ - public void changeActionState(string actionName, Variant value) - { - g_action_group_change_action_state(getActionGroupStruct(), Str.toStringz(actionName), (value is null) ? null : value.getVariantStruct()); - } - - /** - * Checks if the named action within @action_group is currently enabled. - * - * An action must be enabled in order to be activated or in order to - * have its state changed from outside callers. - * - * Params: - * actionName = the name of the action to query - * - * Returns: whether or not the action is currently enabled - * - * Since: 2.28 - */ - public bool getActionEnabled(string actionName) - { - return g_action_group_get_action_enabled(getActionGroupStruct(), Str.toStringz(actionName)) != 0; - } - - /** - * Queries the type of the parameter that must be given when activating - * the named action within @action_group. - * - * When activating the action using g_action_group_activate_action(), - * the #GVariant given to that function must be of the type returned - * by this function. - * - * In the case that this function returns %NULL, you must not give any - * #GVariant, but %NULL instead. - * - * The parameter type of a particular action will never change but it is - * possible for an action to be removed and for a new action to be added - * with the same name but a different parameter type. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the parameter type - * - * Since: 2.28 - */ - public VariantType getActionParameterType(string actionName) - { - auto __p = g_action_group_get_action_parameter_type(getActionGroupStruct(), Str.toStringz(actionName)); - - if(__p is null) - { - return null; - } - - return new VariantType(cast(GVariantType*) __p); - } - - /** - * Queries the current state of the named action within @action_group. - * - * If the action is not stateful then %NULL will be returned. If the - * action is stateful then the type of the return value is the type - * given by g_action_group_get_action_state_type(). - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the current state of the action - * - * Since: 2.28 - */ - public Variant getActionState(string actionName) - { - auto __p = g_action_group_get_action_state(getActionGroupStruct(), Str.toStringz(actionName)); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Requests a hint about the valid range of values for the state of the - * named action within @action_group. - * - * If %NULL is returned it either means that the action is not stateful - * or that there is no hint about the valid range of values for the - * state of the action. - * - * If a #GVariant array is returned then each item in the array is a - * possible value for the state. If a #GVariant pair (ie: two-tuple) is - * returned then the tuple specifies the inclusive lower and upper bound - * of valid values for the state. - * - * In any case, the information is merely a hint. It may be possible to - * have a state value outside of the hinted range and setting a value - * within the range may fail. - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the state range hint - * - * Since: 2.28 - */ - public Variant getActionStateHint(string actionName) - { - auto __p = g_action_group_get_action_state_hint(getActionGroupStruct(), Str.toStringz(actionName)); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Queries the type of the state of the named action within - * @action_group. - * - * If the action is stateful then this function returns the - * #GVariantType of the state. All calls to - * g_action_group_change_action_state() must give a #GVariant of this - * type and g_action_group_get_action_state() will return a #GVariant - * of the same type. - * - * If the action is not stateful then this function will return %NULL. - * In that case, g_action_group_get_action_state() will return %NULL - * and you must not call g_action_group_change_action_state(). - * - * The state type of a particular action will never change but it is - * possible for an action to be removed and for a new action to be added - * with the same name but a different state type. - * - * Params: - * actionName = the name of the action to query - * - * Returns: the state type, if the action is stateful - * - * Since: 2.28 - */ - public VariantType getActionStateType(string actionName) - { - auto __p = g_action_group_get_action_state_type(getActionGroupStruct(), Str.toStringz(actionName)); - - if(__p is null) - { - return null; - } - - return new VariantType(cast(GVariantType*) __p); - } - - /** - * Checks if the named action exists within @action_group. - * - * Params: - * actionName = the name of the action to check for - * - * Returns: whether the named action exists - * - * Since: 2.28 - */ - public bool hasAction(string actionName) - { - return g_action_group_has_action(getActionGroupStruct(), Str.toStringz(actionName)) != 0; - } - - /** - * Lists the actions contained within @action_group. - * - * The caller is responsible for freeing the list with g_strfreev() when - * it is no longer required. - * - * Returns: a %NULL-terminated array of the names of the - * actions in the group - * - * Since: 2.28 - */ - public string[] listActions() - { - auto retStr = g_action_group_list_actions(getActionGroupStruct()); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Queries all aspects of the named action within an @action_group. - * - * This function acquires the information available from - * g_action_group_has_action(), g_action_group_get_action_enabled(), - * g_action_group_get_action_parameter_type(), - * g_action_group_get_action_state_type(), - * g_action_group_get_action_state_hint() and - * g_action_group_get_action_state() with a single function call. - * - * This provides two main benefits. - * - * The first is the improvement in efficiency that comes with not having - * to perform repeated lookups of the action in order to discover - * different things about it. The second is that implementing - * #GActionGroup can now be done by only overriding this one virtual - * function. - * - * The interface provides a default implementation of this function that - * calls the individual functions, as required, to fetch the - * information. The interface also provides default implementations of - * those functions that call this function. All implementations, - * therefore, must override either this function or all of the others. - * - * If the action exists, %TRUE is returned and any of the requested - * fields (as indicated by having a non-%NULL reference passed in) are - * filled. If the action doesn't exist, %FALSE is returned and the - * fields may or may not have been modified. - * - * Params: - * actionName = the name of an action in the group - * enabled = if the action is presently enabled - * parameterType = the parameter type, or %NULL if none needed - * stateType = the state type, or %NULL if stateless - * stateHint = the state hint, or %NULL if none - * state = the current state, or %NULL if stateless - * - * Returns: %TRUE if the action exists, else %FALSE - * - * Since: 2.32 - */ - public bool queryAction(string actionName, out bool enabled, out VariantType parameterType, out VariantType stateType, out Variant stateHint, out Variant state) - { - int outenabled; - GVariantType* outparameterType = null; - GVariantType* outstateType = null; - GVariant* outstateHint = null; - GVariant* outstate = null; - - auto __p = g_action_group_query_action(getActionGroupStruct(), Str.toStringz(actionName), &outenabled, &outparameterType, &outstateType, &outstateHint, &outstate) != 0; - - enabled = (outenabled == 1); - parameterType = new VariantType(outparameterType); - stateType = new VariantType(outstateType); - stateHint = new Variant(outstateHint); - state = new Variant(outstate); - - return __p; - } - - /** - * Signals that a new action was just added to the group. - * This signal is emitted after the action has been added - * and is now visible. - * - * Params: - * actionName = the name of the action in @action_group - * - * Since: 2.28 - */ - gulong addOnActionAdded(void delegate(string, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "action-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signals that the enabled status of the named action has changed. - * - * Params: - * actionName = the name of the action in @action_group - * enabled = whether the action is enabled or not - * - * Since: 2.28 - */ - gulong addOnActionEnabledChanged(void delegate(string, bool, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "action-enabled-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signals that an action is just about to be removed from the group. - * This signal is emitted before the action is removed, so the action - * is still visible and can be queried from the signal handler. - * - * Params: - * actionName = the name of the action in @action_group - * - * Since: 2.28 - */ - gulong addOnActionRemoved(void delegate(string, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "action-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Signals that the state of the named action has changed. - * - * Params: - * actionName = the name of the action in @action_group - * value = the new value of the state - * - * Since: 2.28 - */ - gulong addOnActionStateChanged(void delegate(string, Variant, ActionGroupIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "action-state-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/ActionIF.d b/generated/gtkd/gio/ActionIF.d deleted file mode 100644 index 4c1f0cfd2..000000000 --- a/generated/gtkd/gio/ActionIF.d +++ /dev/null @@ -1,320 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ActionIF; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import glib.c.functions; - - -/** - * #GAction represents a single named action. - * - * The main interface to an action is that it can be activated with - * g_action_activate(). This results in the 'activate' signal being - * emitted. An activation has a #GVariant parameter (which may be - * %NULL). The correct type for the parameter is determined by a static - * parameter type (which is given at construction time). - * - * An action may optionally have a state, in which case the state may be - * set with g_action_change_state(). This call takes a #GVariant. The - * correct type for the state is determined by a static state type - * (which is given at construction time). - * - * The state may have a hint associated with it, specifying its valid - * range. - * - * #GAction is merely the interface to the concept of an action, as - * described above. Various implementations of actions exist, including - * #GSimpleAction. - * - * In all cases, the implementing class is responsible for storing the - * name of the action, the parameter type, the enabled state, the - * optional state type and the state and emitting the appropriate - * signals when these change. The implementor is responsible for filtering - * calls to g_action_activate() and g_action_change_state() for type - * safety and for the state being enabled. - * - * Probably the only useful thing to do with a #GAction is to put it - * inside of a #GSimpleActionGroup. - */ -public interface ActionIF{ - /** Get the main Gtk struct */ - public GAction* getActionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_action_get_type(); - } - - /** - * Checks if @action_name is valid. - * - * @action_name is valid if it consists only of alphanumeric characters, - * plus '-' and '.'. The empty string is not a valid action name. - * - * It is an error to call this function with a non-utf8 @action_name. - * @action_name must not be %NULL. - * - * Params: - * actionName = a potential action name - * - * Returns: %TRUE if @action_name is valid - * - * Since: 2.38 - */ - public static bool nameIsValid(string actionName) - { - return g_action_name_is_valid(Str.toStringz(actionName)) != 0; - } - - /** - * Parses a detailed action name into its separate name and target - * components. - * - * Detailed action names can have three formats. - * - * The first format is used to represent an action name with no target - * value and consists of just an action name containing no whitespace - * nor the characters ':', '(' or ')'. For example: "app.action". - * - * The second format is used to represent an action with a target value - * that is a non-empty string consisting only of alphanumerics, plus '-' - * and '.'. In that case, the action name and target value are - * separated by a double colon ("::"). For example: - * "app.action::target". - * - * The third format is used to represent an action with any type of - * target value, including strings. The target value follows the action - * name, surrounded in parens. For example: "app.action(42)". The - * target value is parsed using g_variant_parse(). If a tuple-typed - * value is desired, it must be specified in the same way, resulting in - * two sets of parens, for example: "app.action((1,2,3))". A string - * target can be specified this way as well: "app.action('target')". - * For strings, this third format must be used if * target value is - * empty or contains characters other than alphanumerics, '-' and '.'. - * - * Params: - * detailedName = a detailed action name - * actionName = the action name - * targetValue = the target value, or %NULL for no target - * - * Returns: %TRUE if successful, else %FALSE with @error set - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public static bool parseDetailedName(string detailedName, out string actionName, out Variant targetValue) - { - char* outactionName = null; - GVariant* outtargetValue = null; - GError* err = null; - - auto __p = g_action_parse_detailed_name(Str.toStringz(detailedName), &outactionName, &outtargetValue, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - actionName = Str.toString(outactionName); - targetValue = new Variant(outtargetValue); - - return __p; - } - - /** - * Formats a detailed action name from @action_name and @target_value. - * - * It is an error to call this function with an invalid action name. - * - * This function is the opposite of g_action_parse_detailed_name(). - * It will produce a string that can be parsed back to the @action_name - * and @target_value by that function. - * - * See that function for the types of strings that will be printed by - * this function. - * - * Params: - * actionName = a valid action name - * targetValue = a #GVariant target value, or %NULL - * - * Returns: a detailed format string - * - * Since: 2.38 - */ - public static string printDetailedName(string actionName, Variant targetValue) - { - auto retStr = g_action_print_detailed_name(Str.toStringz(actionName), (targetValue is null) ? null : targetValue.getVariantStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Activates the action. - * - * @parameter must be the correct type of parameter for the action (ie: - * the parameter type given at construction time). If the parameter - * type was %NULL then @parameter must also be %NULL. - * - * If the @parameter GVariant is floating, it is consumed. - * - * Params: - * parameter = the parameter to the activation - * - * Since: 2.28 - */ - public void activate(Variant parameter); - - /** - * Request for the state of @action to be changed to @value. - * - * The action must be stateful and @value must be of the correct type. - * See g_action_get_state_type(). - * - * This call merely requests a change. The action may refuse to change - * its state or may change its state to something other than @value. - * See g_action_get_state_hint(). - * - * If the @value GVariant is floating, it is consumed. - * - * Params: - * value = the new state - * - * Since: 2.30 - */ - public void changeState(Variant value); - - /** - * Checks if @action is currently enabled. - * - * An action must be enabled in order to be activated or in order to - * have its state changed from outside callers. - * - * Returns: whether the action is enabled - * - * Since: 2.28 - */ - public bool getEnabled(); - - /** - * Queries the name of @action. - * - * Returns: the name of the action - * - * Since: 2.28 - */ - public string getName(); - - /** - * Queries the type of the parameter that must be given when activating - * @action. - * - * When activating the action using g_action_activate(), the #GVariant - * given to that function must be of the type returned by this function. - * - * In the case that this function returns %NULL, you must not give any - * #GVariant, but %NULL instead. - * - * Returns: the parameter type - * - * Since: 2.28 - */ - public VariantType getParameterType(); - - /** - * Queries the current state of @action. - * - * If the action is not stateful then %NULL will be returned. If the - * action is stateful then the type of the return value is the type - * given by g_action_get_state_type(). - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Returns: the current state of the action - * - * Since: 2.28 - */ - public Variant getState(); - - /** - * Requests a hint about the valid range of values for the state of - * @action. - * - * If %NULL is returned it either means that the action is not stateful - * or that there is no hint about the valid range of values for the - * state of the action. - * - * If a #GVariant array is returned then each item in the array is a - * possible value for the state. If a #GVariant pair (ie: two-tuple) is - * returned then the tuple specifies the inclusive lower and upper bound - * of valid values for the state. - * - * In any case, the information is merely a hint. It may be possible to - * have a state value outside of the hinted range and setting a value - * within the range may fail. - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Returns: the state range hint - * - * Since: 2.28 - */ - public Variant getStateHint(); - - /** - * Queries the type of the state of @action. - * - * If the action is stateful (e.g. created with - * g_simple_action_new_stateful()) then this function returns the - * #GVariantType of the state. This is the type of the initial value - * given as the state. All calls to g_action_change_state() must give a - * #GVariant of this type and g_action_get_state() will return a - * #GVariant of the same type. - * - * If the action is not stateful (e.g. created with g_simple_action_new()) - * then this function will return %NULL. In that case, g_action_get_state() - * will return %NULL and you must not call g_action_change_state(). - * - * Returns: the state type, if the action is stateful - * - * Since: 2.28 - */ - public VariantType getStateType(); -} diff --git a/generated/gtkd/gio/ActionMapIF.d b/generated/gtkd/gio/ActionMapIF.d deleted file mode 100644 index f67814897..000000000 --- a/generated/gtkd/gio/ActionMapIF.d +++ /dev/null @@ -1,149 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ActionMapIF; - -private import gio.ActionIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * The GActionMap interface is implemented by #GActionGroup - * implementations that operate by containing a number of - * named #GAction instances, such as #GSimpleActionGroup. - * - * One useful application of this interface is to map the - * names of actions from various action groups to unique, - * prefixed names (e.g. by prepending "app." or "win."). - * This is the motivation for the 'Map' part of the interface - * name. - * - * Since: 2.32 - */ -public interface ActionMapIF{ - /** Get the main Gtk struct */ - public GActionMap* getActionMapStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_action_map_get_type(); - } - - /** - * Adds an action to the @action_map. - * - * If the action map already contains an action with the same name - * as @action then the old action is dropped from the action map. - * - * The action map takes its own reference on @action. - * - * Params: - * action = a #GAction - * - * Since: 2.32 - */ - public void addAction(ActionIF action); - - /** - * A convenience function for creating multiple #GSimpleAction instances - * and adding them to a #GActionMap. - * - * Each action is constructed as per one #GActionEntry. - * - * |[ - * static void - * activate_quit (GSimpleAction *simple, - * GVariant *parameter, - * gpointer user_data) - * { - * exit (0); - * } - * - * static void - * activate_print_string (GSimpleAction *simple, - * GVariant *parameter, - * gpointer user_data) - * { - * g_print ("%s\n", g_variant_get_string (parameter, NULL)); - * } - * - * static GActionGroup * - * create_action_group (void) - * { - * const GActionEntry entries[] = { - * { "quit", activate_quit }, - * { "print-string", activate_print_string, "s" } - * }; - * GSimpleActionGroup *group; - * - * group = g_simple_action_group_new (); - * g_action_map_add_action_entries (G_ACTION_MAP (group), entries, G_N_ELEMENTS (entries), NULL); - * - * return G_ACTION_GROUP (group); - * } - * ]| - * - * Params: - * entries = a pointer to - * the first item in an array of #GActionEntry structs - * userData = the user data for signal connections - * - * Since: 2.32 - */ - public void addActionEntries(GActionEntry[] entries, void* userData); - - /** - * Looks up the action with the name @action_name in @action_map. - * - * If no such action exists, returns %NULL. - * - * Params: - * actionName = the name of an action - * - * Returns: a #GAction, or %NULL - * - * Since: 2.32 - */ - public ActionIF lookupAction(string actionName); - - /** - * Removes the named action from the action map. - * - * If no action of this name is in the map then nothing happens. - * - * Params: - * actionName = the name of the action - * - * Since: 2.32 - */ - public void removeAction(string actionName); -} diff --git a/generated/gtkd/gio/ActionMapT.d b/generated/gtkd/gio/ActionMapT.d deleted file mode 100644 index bdab53b10..000000000 --- a/generated/gtkd/gio/ActionMapT.d +++ /dev/null @@ -1,165 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ActionMapT; - -public import gio.ActionIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.Str; -public import gobject.ObjectG; - - -/** - * The GActionMap interface is implemented by #GActionGroup - * implementations that operate by containing a number of - * named #GAction instances, such as #GSimpleActionGroup. - * - * One useful application of this interface is to map the - * names of actions from various action groups to unique, - * prefixed names (e.g. by prepending "app." or "win."). - * This is the motivation for the 'Map' part of the interface - * name. - * - * Since: 2.32 - */ -public template ActionMapT(TStruct) -{ - /** Get the main Gtk struct */ - public GActionMap* getActionMapStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GActionMap*)getStruct(); - } - - - /** - * Adds an action to the @action_map. - * - * If the action map already contains an action with the same name - * as @action then the old action is dropped from the action map. - * - * The action map takes its own reference on @action. - * - * Params: - * action = a #GAction - * - * Since: 2.32 - */ - public void addAction(ActionIF action) - { - g_action_map_add_action(getActionMapStruct(), (action is null) ? null : action.getActionStruct()); - } - - /** - * A convenience function for creating multiple #GSimpleAction instances - * and adding them to a #GActionMap. - * - * Each action is constructed as per one #GActionEntry. - * - * |[ - * static void - * activate_quit (GSimpleAction *simple, - * GVariant *parameter, - * gpointer user_data) - * { - * exit (0); - * } - * - * static void - * activate_print_string (GSimpleAction *simple, - * GVariant *parameter, - * gpointer user_data) - * { - * g_print ("%s\n", g_variant_get_string (parameter, NULL)); - * } - * - * static GActionGroup * - * create_action_group (void) - * { - * const GActionEntry entries[] = { - * { "quit", activate_quit }, - * { "print-string", activate_print_string, "s" } - * }; - * GSimpleActionGroup *group; - * - * group = g_simple_action_group_new (); - * g_action_map_add_action_entries (G_ACTION_MAP (group), entries, G_N_ELEMENTS (entries), NULL); - * - * return G_ACTION_GROUP (group); - * } - * ]| - * - * Params: - * entries = a pointer to - * the first item in an array of #GActionEntry structs - * userData = the user data for signal connections - * - * Since: 2.32 - */ - public void addActionEntries(GActionEntry[] entries, void* userData) - { - g_action_map_add_action_entries(getActionMapStruct(), entries.ptr, cast(int)entries.length, userData); - } - - /** - * Looks up the action with the name @action_name in @action_map. - * - * If no such action exists, returns %NULL. - * - * Params: - * actionName = the name of an action - * - * Returns: a #GAction, or %NULL - * - * Since: 2.32 - */ - public ActionIF lookupAction(string actionName) - { - auto __p = g_action_map_lookup_action(getActionMapStruct(), Str.toStringz(actionName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ActionIF)(cast(GAction*) __p); - } - - /** - * Removes the named action from the action map. - * - * If no action of this name is in the map then nothing happens. - * - * Params: - * actionName = the name of the action - * - * Since: 2.32 - */ - public void removeAction(string actionName) - { - g_action_map_remove_action(getActionMapStruct(), Str.toStringz(actionName)); - } -} diff --git a/generated/gtkd/gio/ActionT.d b/generated/gtkd/gio/ActionT.d deleted file mode 100644 index 174277d2f..000000000 --- a/generated/gtkd/gio/ActionT.d +++ /dev/null @@ -1,264 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ActionT; - -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.Variant; -public import glib.VariantType; -public import glib.c.functions; - - -/** - * #GAction represents a single named action. - * - * The main interface to an action is that it can be activated with - * g_action_activate(). This results in the 'activate' signal being - * emitted. An activation has a #GVariant parameter (which may be - * %NULL). The correct type for the parameter is determined by a static - * parameter type (which is given at construction time). - * - * An action may optionally have a state, in which case the state may be - * set with g_action_change_state(). This call takes a #GVariant. The - * correct type for the state is determined by a static state type - * (which is given at construction time). - * - * The state may have a hint associated with it, specifying its valid - * range. - * - * #GAction is merely the interface to the concept of an action, as - * described above. Various implementations of actions exist, including - * #GSimpleAction. - * - * In all cases, the implementing class is responsible for storing the - * name of the action, the parameter type, the enabled state, the - * optional state type and the state and emitting the appropriate - * signals when these change. The implementor is responsible for filtering - * calls to g_action_activate() and g_action_change_state() for type - * safety and for the state being enabled. - * - * Probably the only useful thing to do with a #GAction is to put it - * inside of a #GSimpleActionGroup. - */ -public template ActionT(TStruct) -{ - /** Get the main Gtk struct */ - public GAction* getActionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GAction*)getStruct(); - } - - - /** - * Activates the action. - * - * @parameter must be the correct type of parameter for the action (ie: - * the parameter type given at construction time). If the parameter - * type was %NULL then @parameter must also be %NULL. - * - * If the @parameter GVariant is floating, it is consumed. - * - * Params: - * parameter = the parameter to the activation - * - * Since: 2.28 - */ - public void activate(Variant parameter) - { - g_action_activate(getActionStruct(), (parameter is null) ? null : parameter.getVariantStruct()); - } - - /** - * Request for the state of @action to be changed to @value. - * - * The action must be stateful and @value must be of the correct type. - * See g_action_get_state_type(). - * - * This call merely requests a change. The action may refuse to change - * its state or may change its state to something other than @value. - * See g_action_get_state_hint(). - * - * If the @value GVariant is floating, it is consumed. - * - * Params: - * value = the new state - * - * Since: 2.30 - */ - public void changeState(Variant value) - { - g_action_change_state(getActionStruct(), (value is null) ? null : value.getVariantStruct()); - } - - /** - * Checks if @action is currently enabled. - * - * An action must be enabled in order to be activated or in order to - * have its state changed from outside callers. - * - * Returns: whether the action is enabled - * - * Since: 2.28 - */ - public bool getEnabled() - { - return g_action_get_enabled(getActionStruct()) != 0; - } - - /** - * Queries the name of @action. - * - * Returns: the name of the action - * - * Since: 2.28 - */ - public string getName() - { - return Str.toString(g_action_get_name(getActionStruct())); - } - - /** - * Queries the type of the parameter that must be given when activating - * @action. - * - * When activating the action using g_action_activate(), the #GVariant - * given to that function must be of the type returned by this function. - * - * In the case that this function returns %NULL, you must not give any - * #GVariant, but %NULL instead. - * - * Returns: the parameter type - * - * Since: 2.28 - */ - public VariantType getParameterType() - { - auto __p = g_action_get_parameter_type(getActionStruct()); - - if(__p is null) - { - return null; - } - - return new VariantType(cast(GVariantType*) __p); - } - - /** - * Queries the current state of @action. - * - * If the action is not stateful then %NULL will be returned. If the - * action is stateful then the type of the return value is the type - * given by g_action_get_state_type(). - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Returns: the current state of the action - * - * Since: 2.28 - */ - public Variant getState() - { - auto __p = g_action_get_state(getActionStruct()); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Requests a hint about the valid range of values for the state of - * @action. - * - * If %NULL is returned it either means that the action is not stateful - * or that there is no hint about the valid range of values for the - * state of the action. - * - * If a #GVariant array is returned then each item in the array is a - * possible value for the state. If a #GVariant pair (ie: two-tuple) is - * returned then the tuple specifies the inclusive lower and upper bound - * of valid values for the state. - * - * In any case, the information is merely a hint. It may be possible to - * have a state value outside of the hinted range and setting a value - * within the range may fail. - * - * The return value (if non-%NULL) should be freed with - * g_variant_unref() when it is no longer required. - * - * Returns: the state range hint - * - * Since: 2.28 - */ - public Variant getStateHint() - { - auto __p = g_action_get_state_hint(getActionStruct()); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Queries the type of the state of @action. - * - * If the action is stateful (e.g. created with - * g_simple_action_new_stateful()) then this function returns the - * #GVariantType of the state. This is the type of the initial value - * given as the state. All calls to g_action_change_state() must give a - * #GVariant of this type and g_action_get_state() will return a - * #GVariant of the same type. - * - * If the action is not stateful (e.g. created with g_simple_action_new()) - * then this function will return %NULL. In that case, g_action_get_state() - * will return %NULL and you must not call g_action_change_state(). - * - * Returns: the state type, if the action is stateful - * - * Since: 2.28 - */ - public VariantType getStateType() - { - auto __p = g_action_get_state_type(getActionStruct()); - - if(__p is null) - { - return null; - } - - return new VariantType(cast(GVariantType*) __p); - } -} diff --git a/generated/gtkd/gio/AppInfoIF.d b/generated/gtkd/gio/AppInfoIF.d deleted file mode 100644 index 7e4e2714e..000000000 --- a/generated/gtkd/gio/AppInfoIF.d +++ /dev/null @@ -1,706 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AppInfoIF; - -private import gio.AppInfoIF; -private import gio.AppLaunchContext; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.FileIF; -private import gio.IconIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GAppInfo and #GAppLaunchContext are used for describing and launching - * applications installed on the system. - * - * As of GLib 2.20, URIs will always be converted to POSIX paths - * (using g_file_get_path()) when using g_app_info_launch() even if - * the application requested an URI and not a POSIX path. For example - * for a desktop-file based application with Exec key `totem - * %U` and a single URI, `sftp://foo/file.avi`, then - * `/home/user/.gvfs/sftp on foo/file.avi` will be passed. This will - * only work if a set of suitable GIO extensions (such as gvfs 2.26 - * compiled with FUSE support), is available and operational; if this - * is not the case, the URI will be passed unmodified to the application. - * Some URIs, such as `mailto:`, of course cannot be mapped to a POSIX - * path (in gvfs there's no FUSE mount for it); such URIs will be - * passed unmodified to the application. - * - * Specifically for gvfs 2.26 and later, the POSIX URI will be mapped - * back to the GIO URI in the #GFile constructors (since gvfs - * implements the #GVfs extension point). As such, if the application - * needs to examine the URI, it needs to use g_file_get_uri() or - * similar on #GFile. In other words, an application cannot assume - * that the URI passed to e.g. g_file_new_for_commandline_arg() is - * equal to the result of g_file_get_uri(). The following snippet - * illustrates this: - * - * |[ - * GFile *f; - * char *uri; - * - * file = g_file_new_for_commandline_arg (uri_from_commandline); - * - * uri = g_file_get_uri (file); - * strcmp (uri, uri_from_commandline) == 0; - * g_free (uri); - * - * if (g_file_has_uri_scheme (file, "cdda")) - * { - * // do something special with uri - * } - * g_object_unref (file); - * ]| - * - * This code will work when both `cdda://sr0/Track 1.wav` and - * `/home/user/.gvfs/cdda on sr0/Track 1.wav` is passed to the - * application. It should be noted that it's generally not safe - * for applications to rely on the format of a particular URIs. - * Different launcher applications (e.g. file managers) may have - * different ideas of what a given URI means. - */ -public interface AppInfoIF{ - /** Get the main Gtk struct */ - public GAppInfo* getAppInfoStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_app_info_get_type(); - } - - /** - * Creates a new #GAppInfo from the given information. - * - * Note that for @commandline, the quoting rules of the Exec key of the - * [freedesktop.org Desktop Entry Specification](http://freedesktop.org/Standards/desktop-entry-spec) - * are applied. For example, if the @commandline contains - * percent-encoded URIs, the percent-character must be doubled in order to prevent it from - * being swallowed by Exec key unquoting. See the specification for exact quoting rules. - * - * Params: - * commandline = the commandline to use - * applicationName = the application name, or %NULL to use @commandline - * flags = flags that can specify details of the created #GAppInfo - * - * Returns: new #GAppInfo for given command. - * - * Throws: GException on failure. - */ - public static AppInfoIF createFromCommandline(string commandline, string applicationName, GAppInfoCreateFlags flags) - { - GError* err = null; - - auto __p = g_app_info_create_from_commandline(Str.toStringz(commandline), Str.toStringz(applicationName), flags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoIF)(cast(GAppInfo*) __p, true); - } - - /** - * Gets a list of all of the applications currently registered - * on this system. - * - * For desktop files, this includes applications that have - * `NoDisplay=true` set or are excluded from display by means - * of `OnlyShowIn` or `NotShowIn`. See g_app_info_should_show(). - * The returned list does not include applications which have - * the `Hidden` key set. - * - * Returns: a newly allocated #GList of references to #GAppInfos. - */ - public static ListG getAll() - { - auto __p = g_app_info_get_all(); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets a list of all #GAppInfos for a given content type, - * including the recommended and fallback #GAppInfos. See - * g_app_info_get_recommended_for_type() and - * g_app_info_get_fallback_for_type(). - * - * Params: - * contentType = the content type to find a #GAppInfo for - * - * Returns: #GList of #GAppInfos - * for given @content_type or %NULL on error. - */ - public static ListG getAllForType(string contentType) - { - auto __p = g_app_info_get_all_for_type(Str.toStringz(contentType)); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets the default #GAppInfo for a given content type. - * - * Params: - * contentType = the content type to find a #GAppInfo for - * mustSupportUris = if %TRUE, the #GAppInfo is expected to - * support URIs - * - * Returns: #GAppInfo for given @content_type or - * %NULL on error. - */ - public static AppInfoIF getDefaultForType(string contentType, bool mustSupportUris) - { - auto __p = g_app_info_get_default_for_type(Str.toStringz(contentType), mustSupportUris); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoIF)(cast(GAppInfo*) __p, true); - } - - /** - * Gets the default application for handling URIs with - * the given URI scheme. A URI scheme is the initial part - * of the URI, up to but not including the ':', e.g. "http", - * "ftp" or "sip". - * - * Params: - * uriScheme = a string containing a URI scheme. - * - * Returns: #GAppInfo for given @uri_scheme or - * %NULL on error. - */ - public static AppInfoIF getDefaultForUriScheme(string uriScheme) - { - auto __p = g_app_info_get_default_for_uri_scheme(Str.toStringz(uriScheme)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoIF)(cast(GAppInfo*) __p, true); - } - - /** - * Gets a list of fallback #GAppInfos for a given content type, i.e. - * those applications which claim to support the given content type - * by MIME type subclassing and not directly. - * - * Params: - * contentType = the content type to find a #GAppInfo for - * - * Returns: #GList of #GAppInfos - * for given @content_type or %NULL on error. - * - * Since: 2.28 - */ - public static ListG getFallbackForType(string contentType) - { - auto __p = g_app_info_get_fallback_for_type(Str.toStringz(contentType)); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets a list of recommended #GAppInfos for a given content type, i.e. - * those applications which claim to support the given content type exactly, - * and not by MIME type subclassing. - * Note that the first application of the list is the last used one, i.e. - * the last one for which g_app_info_set_as_last_used_for_type() has been - * called. - * - * Params: - * contentType = the content type to find a #GAppInfo for - * - * Returns: #GList of #GAppInfos - * for given @content_type or %NULL on error. - * - * Since: 2.28 - */ - public static ListG getRecommendedForType(string contentType) - { - auto __p = g_app_info_get_recommended_for_type(Str.toStringz(contentType)); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Utility function that launches the default application - * registered to handle the specified uri. Synchronous I/O - * is done on the uri to detect the type of the file if - * required. - * - * The D-Bus–activated applications don't have to be started if your application - * terminates too soon after this function. To prevent this, use - * g_app_info_launch_default_for_uri_async() instead. - * - * Params: - * uri = the uri to show - * context = an optional #GAppLaunchContext - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public static bool launchDefaultForUri(string uri, AppLaunchContext context) - { - GError* err = null; - - auto __p = g_app_info_launch_default_for_uri(Str.toStringz(uri), (context is null) ? null : context.getAppLaunchContextStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Async version of g_app_info_launch_default_for_uri(). - * - * This version is useful if you are interested in receiving - * error information in the case where the application is - * sandboxed and the portal may present an application chooser - * dialog to the user. - * - * This is also useful if you want to be sure that the D-Bus–activated - * applications are really started before termination and if you are interested - * in receiving error information from their activation. - * - * Params: - * uri = the uri to show - * context = an optional #GAppLaunchContext - * cancellable = a #GCancellable - * callback = a #GAsyncReadyCallback to call when the request is done - * userData = data to pass to @callback - * - * Since: 2.50 - */ - public static void launchDefaultForUriAsync(string uri, AppLaunchContext context, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_app_info_launch_default_for_uri_async(Str.toStringz(uri), (context is null) ? null : context.getAppLaunchContextStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous launch-default-for-uri operation. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the launch was successful, %FALSE if @error is set - * - * Since: 2.50 - * - * Throws: GException on failure. - */ - public static bool launchDefaultForUriFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_app_info_launch_default_for_uri_finish((result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes all changes to the type associations done by - * g_app_info_set_as_default_for_type(), - * g_app_info_set_as_default_for_extension(), - * g_app_info_add_supports_type() or - * g_app_info_remove_supports_type(). - * - * Params: - * contentType = a content type - * - * Since: 2.20 - */ - public static void resetTypeAssociations(string contentType) - { - g_app_info_reset_type_associations(Str.toStringz(contentType)); - } - - /** - * Adds a content type to the application information to indicate the - * application is capable of opening files with the given content type. - * - * Params: - * contentType = a string. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool addSupportsType(string contentType); - - /** - * Obtains the information whether the #GAppInfo can be deleted. - * See g_app_info_delete(). - * - * Returns: %TRUE if @appinfo can be deleted - * - * Since: 2.20 - */ - public bool canDelete(); - - /** - * Checks if a supported content type can be removed from an application. - * - * Returns: %TRUE if it is possible to remove supported - * content types from a given @appinfo, %FALSE if not. - */ - public bool canRemoveSupportsType(); - - alias delet = delete_; - /** - * Tries to delete a #GAppInfo. - * - * On some platforms, there may be a difference between user-defined - * #GAppInfos which can be deleted, and system-wide ones which cannot. - * See g_app_info_can_delete(). - * - * Returns: %TRUE if @appinfo has been deleted - * - * Since: 2.20 - */ - public bool delete_(); - - /** - * Creates a duplicate of a #GAppInfo. - * - * Returns: a duplicate of @appinfo. - */ - public AppInfoIF dup(); - - /** - * Checks if two #GAppInfos are equal. - * - * Note that the check *may not* compare each individual - * field, and only does an identity check. In case detecting changes in the - * contents is needed, program code must additionally compare relevant fields. - * - * Params: - * appinfo2 = the second #GAppInfo. - * - * Returns: %TRUE if @appinfo1 is equal to @appinfo2. %FALSE otherwise. - */ - public bool equal(AppInfoIF appinfo2); - - /** - * Gets the commandline with which the application will be - * started. - * - * Returns: a string containing the @appinfo's commandline, - * or %NULL if this information is not available - * - * Since: 2.20 - */ - public string getCommandline(); - - /** - * Gets a human-readable description of an installed application. - * - * Returns: a string containing a description of the - * application @appinfo, or %NULL if none. - */ - public string getDescription(); - - /** - * Gets the display name of the application. The display name is often more - * descriptive to the user than the name itself. - * - * Returns: the display name of the application for @appinfo, or the name if - * no display name is available. - * - * Since: 2.24 - */ - public string getDisplayName(); - - /** - * Gets the executable's name for the installed application. - * - * Returns: a string containing the @appinfo's application - * binaries name - */ - public string getExecutable(); - - /** - * Gets the icon for the application. - * - * Returns: the default #GIcon for @appinfo or %NULL - * if there is no default icon. - */ - public IconIF getIcon(); - - /** - * Gets the ID of an application. An id is a string that - * identifies the application. The exact format of the id is - * platform dependent. For instance, on Unix this is the - * desktop file id from the xdg menu specification. - * - * Note that the returned ID may be %NULL, depending on how - * the @appinfo has been constructed. - * - * Returns: a string containing the application's ID. - */ - public string getId(); - - /** - * Gets the installed name of the application. - * - * Returns: the name of the application for @appinfo. - */ - public string getName(); - - /** - * Retrieves the list of content types that @app_info claims to support. - * If this information is not provided by the environment, this function - * will return %NULL. - * This function does not take in consideration associations added with - * g_app_info_add_supports_type(), but only those exported directly by - * the application. - * - * Returns: a list of content types. - * - * Since: 2.34 - */ - public string[] getSupportedTypes(); - - /** - * Launches the application. Passes @files to the launched application - * as arguments, using the optional @context to get information - * about the details of the launcher (like what screen it is on). - * On error, @error will be set accordingly. - * - * To launch the application without arguments pass a %NULL @files list. - * - * Note that even if the launch is successful the application launched - * can fail to start if it runs into problems during startup. There is - * no way to detect this. - * - * Some URIs can be changed when passed through a GFile (for instance - * unsupported URIs with strange formats like mailto:), so if you have - * a textual URI you want to pass in as argument, consider using - * g_app_info_launch_uris() instead. - * - * The launched application inherits the environment of the launching - * process, but it can be modified with g_app_launch_context_setenv() - * and g_app_launch_context_unsetenv(). - * - * On UNIX, this function sets the `GIO_LAUNCHED_DESKTOP_FILE` - * environment variable with the path of the launched desktop file and - * `GIO_LAUNCHED_DESKTOP_FILE_PID` to the process id of the launched - * process. This can be used to ignore `GIO_LAUNCHED_DESKTOP_FILE`, - * should it be inherited by further processes. The `DISPLAY` and - * `DESKTOP_STARTUP_ID` environment variables are also set, based - * on information provided in @context. - * - * Params: - * files = a #GList of #GFile objects - * context = a #GAppLaunchContext or %NULL - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool launch(ListG files, AppLaunchContext context); - - /** - * Launches the application. This passes the @uris to the launched application - * as arguments, using the optional @context to get information - * about the details of the launcher (like what screen it is on). - * On error, @error will be set accordingly. - * - * To launch the application without arguments pass a %NULL @uris list. - * - * Note that even if the launch is successful the application launched - * can fail to start if it runs into problems during startup. There is - * no way to detect this. - * - * Params: - * uris = a #GList containing URIs to launch. - * context = a #GAppLaunchContext or %NULL - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool launchUris(ListG uris, AppLaunchContext context); - - /** - * Async version of g_app_info_launch_uris(). - * - * The @callback is invoked immediately after the application launch, but it - * waits for activation in case of D-Bus–activated applications and also provides - * extended error information for sandboxed applications, see notes for - * g_app_info_launch_default_for_uri_async(). - * - * Params: - * uris = a #GList containing URIs to launch. - * context = a #GAppLaunchContext or %NULL - * cancellable = a #GCancellable - * callback = a #GAsyncReadyCallback to call when the request is done - * userData = data to pass to @callback - * - * Since: 2.60 - */ - public void launchUrisAsync(ListG uris, AppLaunchContext context, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes a g_app_info_launch_uris_async() operation. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public bool launchUrisFinish(AsyncResultIF result); - - /** - * Removes a supported type from an application, if possible. - * - * Params: - * contentType = a string. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool removeSupportsType(string contentType); - - /** - * Sets the application as the default handler for the given file extension. - * - * Params: - * extension = a string containing the file extension - * (without the dot). - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool setAsDefaultForExtension(string extension); - - /** - * Sets the application as the default handler for a given type. - * - * Params: - * contentType = the content type. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool setAsDefaultForType(string contentType); - - /** - * Sets the application as the last used application for a given type. - * This will make the application appear as first in the list returned - * by g_app_info_get_recommended_for_type(), regardless of the default - * application for that content type. - * - * Params: - * contentType = the content type. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool setAsLastUsedForType(string contentType); - - /** - * Checks if the application info should be shown in menus that - * list available applications. - * - * Returns: %TRUE if the @appinfo should be shown, %FALSE otherwise. - */ - public bool shouldShow(); - - /** - * Checks if the application accepts files as arguments. - * - * Returns: %TRUE if the @appinfo supports files. - */ - public bool supportsFiles(); - - /** - * Checks if the application supports reading files and directories from URIs. - * - * Returns: %TRUE if the @appinfo supports URIs. - */ - public bool supportsUris(); -} diff --git a/generated/gtkd/gio/AppInfoMonitor.d b/generated/gtkd/gio/AppInfoMonitor.d deleted file mode 100644 index daeac398a..000000000 --- a/generated/gtkd/gio/AppInfoMonitor.d +++ /dev/null @@ -1,125 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AppInfoMonitor; - -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GAppInfoMonitor is a very simple object used for monitoring the app - * info database for changes (ie: newly installed or removed - * applications). - * - * Call g_app_info_monitor_get() to get a #GAppInfoMonitor and connect - * to the "changed" signal. - * - * In the usual case, applications should try to make note of the change - * (doing things like invalidating caches) but not act on it. In - * particular, applications should avoid making calls to #GAppInfo APIs - * in response to the change signal, deferring these until the time that - * the data is actually required. The exception to this case is when - * application information is actually being displayed on the screen - * (eg: during a search or when the list of all applications is shown). - * The reason for this is that changes to the list of installed - * applications often come in groups (like during system updates) and - * rescanning the list on every change is pointless and expensive. - * - * Since: 2.40 - */ -public class AppInfoMonitor : ObjectG -{ - /** the main Gtk struct */ - protected GAppInfoMonitor* gAppInfoMonitor; - - /** Get the main Gtk struct */ - public GAppInfoMonitor* getAppInfoMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gAppInfoMonitor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gAppInfoMonitor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GAppInfoMonitor* gAppInfoMonitor, bool ownedRef = false) - { - this.gAppInfoMonitor = gAppInfoMonitor; - super(cast(GObject*)gAppInfoMonitor, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_app_info_monitor_get_type(); - } - - /** - * Gets the #GAppInfoMonitor for the current thread-default main - * context. - * - * The #GAppInfoMonitor will emit a "changed" signal in the - * thread-default main context whenever the list of installed - * applications (as reported by g_app_info_get_all()) may have changed. - * - * You must only call g_object_unref() on the return value from under - * the same main context as you created it. - * - * Returns: a reference to a #GAppInfoMonitor - * - * Since: 2.40 - */ - public static AppInfoMonitor get() - { - auto __p = g_app_info_monitor_get(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoMonitor)(cast(GAppInfoMonitor*) __p, true); - } - - /** - * Signal emitted when the app info database for changes (ie: newly installed - * or removed applications). - */ - gulong addOnChanged(void delegate(AppInfoMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/AppInfoT.d b/generated/gtkd/gio/AppInfoT.d deleted file mode 100644 index a3fb33dc5..000000000 --- a/generated/gtkd/gio/AppInfoT.d +++ /dev/null @@ -1,578 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AppInfoT; - -public import gio.AppInfoIF; -public import gio.AppLaunchContext; -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.FileIF; -public import gio.IconIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.ListG; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; - - -/** - * #GAppInfo and #GAppLaunchContext are used for describing and launching - * applications installed on the system. - * - * As of GLib 2.20, URIs will always be converted to POSIX paths - * (using g_file_get_path()) when using g_app_info_launch() even if - * the application requested an URI and not a POSIX path. For example - * for a desktop-file based application with Exec key `totem - * %U` and a single URI, `sftp://foo/file.avi`, then - * `/home/user/.gvfs/sftp on foo/file.avi` will be passed. This will - * only work if a set of suitable GIO extensions (such as gvfs 2.26 - * compiled with FUSE support), is available and operational; if this - * is not the case, the URI will be passed unmodified to the application. - * Some URIs, such as `mailto:`, of course cannot be mapped to a POSIX - * path (in gvfs there's no FUSE mount for it); such URIs will be - * passed unmodified to the application. - * - * Specifically for gvfs 2.26 and later, the POSIX URI will be mapped - * back to the GIO URI in the #GFile constructors (since gvfs - * implements the #GVfs extension point). As such, if the application - * needs to examine the URI, it needs to use g_file_get_uri() or - * similar on #GFile. In other words, an application cannot assume - * that the URI passed to e.g. g_file_new_for_commandline_arg() is - * equal to the result of g_file_get_uri(). The following snippet - * illustrates this: - * - * |[ - * GFile *f; - * char *uri; - * - * file = g_file_new_for_commandline_arg (uri_from_commandline); - * - * uri = g_file_get_uri (file); - * strcmp (uri, uri_from_commandline) == 0; - * g_free (uri); - * - * if (g_file_has_uri_scheme (file, "cdda")) - * { - * // do something special with uri - * } - * g_object_unref (file); - * ]| - * - * This code will work when both `cdda://sr0/Track 1.wav` and - * `/home/user/.gvfs/cdda on sr0/Track 1.wav` is passed to the - * application. It should be noted that it's generally not safe - * for applications to rely on the format of a particular URIs. - * Different launcher applications (e.g. file managers) may have - * different ideas of what a given URI means. - */ -public template AppInfoT(TStruct) -{ - /** Get the main Gtk struct */ - public GAppInfo* getAppInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GAppInfo*)getStruct(); - } - - - /** - * Adds a content type to the application information to indicate the - * application is capable of opening files with the given content type. - * - * Params: - * contentType = a string. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool addSupportsType(string contentType) - { - GError* err = null; - - auto __p = g_app_info_add_supports_type(getAppInfoStruct(), Str.toStringz(contentType), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Obtains the information whether the #GAppInfo can be deleted. - * See g_app_info_delete(). - * - * Returns: %TRUE if @appinfo can be deleted - * - * Since: 2.20 - */ - public bool canDelete() - { - return g_app_info_can_delete(getAppInfoStruct()) != 0; - } - - /** - * Checks if a supported content type can be removed from an application. - * - * Returns: %TRUE if it is possible to remove supported - * content types from a given @appinfo, %FALSE if not. - */ - public bool canRemoveSupportsType() - { - return g_app_info_can_remove_supports_type(getAppInfoStruct()) != 0; - } - - alias delet = delete_; - /** - * Tries to delete a #GAppInfo. - * - * On some platforms, there may be a difference between user-defined - * #GAppInfos which can be deleted, and system-wide ones which cannot. - * See g_app_info_can_delete(). - * - * Returns: %TRUE if @appinfo has been deleted - * - * Since: 2.20 - */ - public bool delete_() - { - return g_app_info_delete(getAppInfoStruct()) != 0; - } - - /** - * Creates a duplicate of a #GAppInfo. - * - * Returns: a duplicate of @appinfo. - */ - public AppInfoIF dup() - { - auto __p = g_app_info_dup(getAppInfoStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoIF)(cast(GAppInfo*) __p, true); - } - - /** - * Checks if two #GAppInfos are equal. - * - * Note that the check *may not* compare each individual - * field, and only does an identity check. In case detecting changes in the - * contents is needed, program code must additionally compare relevant fields. - * - * Params: - * appinfo2 = the second #GAppInfo. - * - * Returns: %TRUE if @appinfo1 is equal to @appinfo2. %FALSE otherwise. - */ - public bool equal(AppInfoIF appinfo2) - { - return g_app_info_equal(getAppInfoStruct(), (appinfo2 is null) ? null : appinfo2.getAppInfoStruct()) != 0; - } - - /** - * Gets the commandline with which the application will be - * started. - * - * Returns: a string containing the @appinfo's commandline, - * or %NULL if this information is not available - * - * Since: 2.20 - */ - public string getCommandline() - { - return Str.toString(g_app_info_get_commandline(getAppInfoStruct())); - } - - /** - * Gets a human-readable description of an installed application. - * - * Returns: a string containing a description of the - * application @appinfo, or %NULL if none. - */ - public string getDescription() - { - return Str.toString(g_app_info_get_description(getAppInfoStruct())); - } - - /** - * Gets the display name of the application. The display name is often more - * descriptive to the user than the name itself. - * - * Returns: the display name of the application for @appinfo, or the name if - * no display name is available. - * - * Since: 2.24 - */ - public string getDisplayName() - { - return Str.toString(g_app_info_get_display_name(getAppInfoStruct())); - } - - /** - * Gets the executable's name for the installed application. - * - * Returns: a string containing the @appinfo's application - * binaries name - */ - public string getExecutable() - { - return Str.toString(g_app_info_get_executable(getAppInfoStruct())); - } - - /** - * Gets the icon for the application. - * - * Returns: the default #GIcon for @appinfo or %NULL - * if there is no default icon. - */ - public IconIF getIcon() - { - auto __p = g_app_info_get_icon(getAppInfoStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p); - } - - /** - * Gets the ID of an application. An id is a string that - * identifies the application. The exact format of the id is - * platform dependent. For instance, on Unix this is the - * desktop file id from the xdg menu specification. - * - * Note that the returned ID may be %NULL, depending on how - * the @appinfo has been constructed. - * - * Returns: a string containing the application's ID. - */ - public string getId() - { - return Str.toString(g_app_info_get_id(getAppInfoStruct())); - } - - /** - * Gets the installed name of the application. - * - * Returns: the name of the application for @appinfo. - */ - public string getName() - { - return Str.toString(g_app_info_get_name(getAppInfoStruct())); - } - - /** - * Retrieves the list of content types that @app_info claims to support. - * If this information is not provided by the environment, this function - * will return %NULL. - * This function does not take in consideration associations added with - * g_app_info_add_supports_type(), but only those exported directly by - * the application. - * - * Returns: a list of content types. - * - * Since: 2.34 - */ - public string[] getSupportedTypes() - { - return Str.toStringArray(g_app_info_get_supported_types(getAppInfoStruct())); - } - - /** - * Launches the application. Passes @files to the launched application - * as arguments, using the optional @context to get information - * about the details of the launcher (like what screen it is on). - * On error, @error will be set accordingly. - * - * To launch the application without arguments pass a %NULL @files list. - * - * Note that even if the launch is successful the application launched - * can fail to start if it runs into problems during startup. There is - * no way to detect this. - * - * Some URIs can be changed when passed through a GFile (for instance - * unsupported URIs with strange formats like mailto:), so if you have - * a textual URI you want to pass in as argument, consider using - * g_app_info_launch_uris() instead. - * - * The launched application inherits the environment of the launching - * process, but it can be modified with g_app_launch_context_setenv() - * and g_app_launch_context_unsetenv(). - * - * On UNIX, this function sets the `GIO_LAUNCHED_DESKTOP_FILE` - * environment variable with the path of the launched desktop file and - * `GIO_LAUNCHED_DESKTOP_FILE_PID` to the process id of the launched - * process. This can be used to ignore `GIO_LAUNCHED_DESKTOP_FILE`, - * should it be inherited by further processes. The `DISPLAY` and - * `DESKTOP_STARTUP_ID` environment variables are also set, based - * on information provided in @context. - * - * Params: - * files = a #GList of #GFile objects - * context = a #GAppLaunchContext or %NULL - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool launch(ListG files, AppLaunchContext context) - { - GError* err = null; - - auto __p = g_app_info_launch(getAppInfoStruct(), (files is null) ? null : files.getListGStruct(), (context is null) ? null : context.getAppLaunchContextStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Launches the application. This passes the @uris to the launched application - * as arguments, using the optional @context to get information - * about the details of the launcher (like what screen it is on). - * On error, @error will be set accordingly. - * - * To launch the application without arguments pass a %NULL @uris list. - * - * Note that even if the launch is successful the application launched - * can fail to start if it runs into problems during startup. There is - * no way to detect this. - * - * Params: - * uris = a #GList containing URIs to launch. - * context = a #GAppLaunchContext or %NULL - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool launchUris(ListG uris, AppLaunchContext context) - { - GError* err = null; - - auto __p = g_app_info_launch_uris(getAppInfoStruct(), (uris is null) ? null : uris.getListGStruct(), (context is null) ? null : context.getAppLaunchContextStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Async version of g_app_info_launch_uris(). - * - * The @callback is invoked immediately after the application launch, but it - * waits for activation in case of D-Bus–activated applications and also provides - * extended error information for sandboxed applications, see notes for - * g_app_info_launch_default_for_uri_async(). - * - * Params: - * uris = a #GList containing URIs to launch. - * context = a #GAppLaunchContext or %NULL - * cancellable = a #GCancellable - * callback = a #GAsyncReadyCallback to call when the request is done - * userData = data to pass to @callback - * - * Since: 2.60 - */ - public void launchUrisAsync(ListG uris, AppLaunchContext context, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_app_info_launch_uris_async(getAppInfoStruct(), (uris is null) ? null : uris.getListGStruct(), (context is null) ? null : context.getAppLaunchContextStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a g_app_info_launch_uris_async() operation. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public bool launchUrisFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_app_info_launch_uris_finish(getAppInfoStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes a supported type from an application, if possible. - * - * Params: - * contentType = a string. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool removeSupportsType(string contentType) - { - GError* err = null; - - auto __p = g_app_info_remove_supports_type(getAppInfoStruct(), Str.toStringz(contentType), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the application as the default handler for the given file extension. - * - * Params: - * extension = a string containing the file extension - * (without the dot). - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool setAsDefaultForExtension(string extension) - { - GError* err = null; - - auto __p = g_app_info_set_as_default_for_extension(getAppInfoStruct(), Str.toStringz(extension), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the application as the default handler for a given type. - * - * Params: - * contentType = the content type. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool setAsDefaultForType(string contentType) - { - GError* err = null; - - auto __p = g_app_info_set_as_default_for_type(getAppInfoStruct(), Str.toStringz(contentType), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the application as the last used application for a given type. - * This will make the application appear as first in the list returned - * by g_app_info_get_recommended_for_type(), regardless of the default - * application for that content type. - * - * Params: - * contentType = the content type. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool setAsLastUsedForType(string contentType) - { - GError* err = null; - - auto __p = g_app_info_set_as_last_used_for_type(getAppInfoStruct(), Str.toStringz(contentType), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks if the application info should be shown in menus that - * list available applications. - * - * Returns: %TRUE if the @appinfo should be shown, %FALSE otherwise. - */ - public bool shouldShow() - { - return g_app_info_should_show(getAppInfoStruct()) != 0; - } - - /** - * Checks if the application accepts files as arguments. - * - * Returns: %TRUE if the @appinfo supports files. - */ - public bool supportsFiles() - { - return g_app_info_supports_files(getAppInfoStruct()) != 0; - } - - /** - * Checks if the application supports reading files and directories from URIs. - * - * Returns: %TRUE if the @appinfo supports URIs. - */ - public bool supportsUris() - { - return g_app_info_supports_uris(getAppInfoStruct()) != 0; - } -} diff --git a/generated/gtkd/gio/AppLaunchContext.d b/generated/gtkd/gio/AppLaunchContext.d deleted file mode 100644 index 0524ddb85..000000000 --- a/generated/gtkd/gio/AppLaunchContext.d +++ /dev/null @@ -1,233 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AppLaunchContext; - -private import gio.AppInfoIF; -private import gio.FileIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * Integrating the launch with the launching application. This is used to - * handle for instance startup notification and launching the new application - * on the same screen as the launching window. - */ -public class AppLaunchContext : ObjectG -{ - /** the main Gtk struct */ - protected GAppLaunchContext* gAppLaunchContext; - - /** Get the main Gtk struct */ - public GAppLaunchContext* getAppLaunchContextStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gAppLaunchContext; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gAppLaunchContext; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GAppLaunchContext* gAppLaunchContext, bool ownedRef = false) - { - this.gAppLaunchContext = gAppLaunchContext; - super(cast(GObject*)gAppLaunchContext, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_app_launch_context_get_type(); - } - - /** - * Creates a new application launch context. This is not normally used, - * instead you instantiate a subclass of this, such as #GdkAppLaunchContext. - * - * Returns: a #GAppLaunchContext. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_app_launch_context_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GAppLaunchContext*) __p, true); - } - - /** - * Gets the display string for the @context. This is used to ensure new - * applications are started on the same display as the launching - * application, by setting the `DISPLAY` environment variable. - * - * Params: - * info = a #GAppInfo - * files = a #GList of #GFile objects - * - * Returns: a display string for the display. - */ - public string getDisplay(AppInfoIF info, ListG files) - { - auto retStr = g_app_launch_context_get_display(gAppLaunchContext, (info is null) ? null : info.getAppInfoStruct(), (files is null) ? null : files.getListGStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the complete environment variable list to be passed to - * the child process when @context is used to launch an application. - * This is a %NULL-terminated array of strings, where each string has - * the form `KEY=VALUE`. - * - * Returns: the child's environment - * - * Since: 2.32 - */ - public string[] getEnvironment() - { - auto retStr = g_app_launch_context_get_environment(gAppLaunchContext); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Initiates startup notification for the application and returns the - * `DESKTOP_STARTUP_ID` for the launched operation, if supported. - * - * Startup notification IDs are defined in the - * [FreeDesktop.Org Startup Notifications standard](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt). - * - * Params: - * info = a #GAppInfo - * files = a #GList of of #GFile objects - * - * Returns: a startup notification ID for the application, or %NULL if - * not supported. - */ - public string getStartupNotifyId(AppInfoIF info, ListG files) - { - auto retStr = g_app_launch_context_get_startup_notify_id(gAppLaunchContext, (info is null) ? null : info.getAppInfoStruct(), (files is null) ? null : files.getListGStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Called when an application has failed to launch, so that it can cancel - * the application startup notification started in g_app_launch_context_get_startup_notify_id(). - * - * Params: - * startupNotifyId = the startup notification id that was returned by g_app_launch_context_get_startup_notify_id(). - */ - public void launchFailed(string startupNotifyId) - { - g_app_launch_context_launch_failed(gAppLaunchContext, Str.toStringz(startupNotifyId)); - } - - /** - * Arranges for @variable to be set to @value in the child's - * environment when @context is used to launch an application. - * - * Params: - * variable = the environment variable to set - * value = the value for to set the variable to. - * - * Since: 2.32 - */ - public void setenv(string variable, string value) - { - g_app_launch_context_setenv(gAppLaunchContext, Str.toStringz(variable), Str.toStringz(value)); - } - - /** - * Arranges for @variable to be unset in the child's environment - * when @context is used to launch an application. - * - * Params: - * variable = the environment variable to remove - * - * Since: 2.32 - */ - public void unsetenv(string variable) - { - g_app_launch_context_unsetenv(gAppLaunchContext, Str.toStringz(variable)); - } - - /** - * The ::launch-failed signal is emitted when a #GAppInfo launch - * fails. The startup notification id is provided, so that the launcher - * can cancel the startup notification. - * - * Params: - * startupNotifyId = the startup notification id for the failed launch - * - * Since: 2.36 - */ - gulong addOnLaunchFailed(void delegate(string, AppLaunchContext) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "launch-failed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::launched signal is emitted when a #GAppInfo is successfully - * launched. The @platform_data is an GVariant dictionary mapping - * strings to variants (ie a{sv}), which contains additional, - * platform-specific data about this launch. On UNIX, at least the - * "pid" and "startup-notification-id" keys will be present. - * - * Params: - * info = the #GAppInfo that was just launched - * platformData = additional platform-specific data for this launch - * - * Since: 2.36 - */ - gulong addOnLaunched(void delegate(AppInfoIF, Variant, AppLaunchContext) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "launched", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/Application.d b/generated/gtkd/gio/Application.d deleted file mode 100644 index 8d53dbca8..000000000 --- a/generated/gtkd/gio/Application.d +++ /dev/null @@ -1,1349 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Application; - -private import gio.ActionGroupIF; -private import gio.ActionGroupT; -private import gio.ActionMapIF; -private import gio.ActionMapT; -private import gio.ApplicationCommandLine; -private import gio.Cancellable; -private import gio.DBusConnection; -private import gio.FileIF; -private import gio.Notification; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.OptionGroup; -private import glib.Str; -private import glib.VariantDict; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A #GApplication is the foundation of an application. It wraps some - * low-level platform-specific services and is intended to act as the - * foundation for higher-level application classes such as - * #GtkApplication or #MxApplication. In general, you should not use - * this class outside of a higher level framework. - * - * GApplication provides convenient life cycle management by maintaining - * a "use count" for the primary application instance. The use count can - * be changed using g_application_hold() and g_application_release(). If - * it drops to zero, the application exits. Higher-level classes such as - * #GtkApplication employ the use count to ensure that the application - * stays alive as long as it has any opened windows. - * - * Another feature that GApplication (optionally) provides is process - * uniqueness. Applications can make use of this functionality by - * providing a unique application ID. If given, only one application - * with this ID can be running at a time per session. The session - * concept is platform-dependent, but corresponds roughly to a graphical - * desktop login. When your application is launched again, its - * arguments are passed through platform communication to the already - * running program. The already running instance of the program is - * called the "primary instance"; for non-unique applications this is - * always the current instance. On Linux, the D-Bus session bus - * is used for communication. - * - * The use of #GApplication differs from some other commonly-used - * uniqueness libraries (such as libunique) in important ways. The - * application is not expected to manually register itself and check - * if it is the primary instance. Instead, the main() function of a - * #GApplication should do very little more than instantiating the - * application instance, possibly connecting signal handlers, then - * calling g_application_run(). All checks for uniqueness are done - * internally. If the application is the primary instance then the - * startup signal is emitted and the mainloop runs. If the application - * is not the primary instance then a signal is sent to the primary - * instance and g_application_run() promptly returns. See the code - * examples below. - * - * If used, the expected form of an application identifier is the same as - * that of of a - * [D-Bus well-known bus name](https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus). - * Examples include: `com.example.MyApp`, `org.example.internal_apps.Calculator`, - * `org._7_zip.Archiver`. - * For details on valid application identifiers, see g_application_id_is_valid(). - * - * On Linux, the application identifier is claimed as a well-known bus name - * on the user's session bus. This means that the uniqueness of your - * application is scoped to the current session. It also means that your - * application may provide additional services (through registration of other - * object paths) at that bus name. The registration of these object paths - * should be done with the shared GDBus session bus. Note that due to the - * internal architecture of GDBus, method calls can be dispatched at any time - * (even if a main loop is not running). For this reason, you must ensure that - * any object paths that you wish to register are registered before #GApplication - * attempts to acquire the bus name of your application (which happens in - * g_application_register()). Unfortunately, this means that you cannot use - * g_application_get_is_remote() to decide if you want to register object paths. - * - * GApplication also implements the #GActionGroup and #GActionMap - * interfaces and lets you easily export actions by adding them with - * g_action_map_add_action(). When invoking an action by calling - * g_action_group_activate_action() on the application, it is always - * invoked in the primary instance. The actions are also exported on - * the session bus, and GIO provides the #GDBusActionGroup wrapper to - * conveniently access them remotely. GIO provides a #GDBusMenuModel wrapper - * for remote access to exported #GMenuModels. - * - * There is a number of different entry points into a GApplication: - * - * - via 'Activate' (i.e. just starting the application) - * - * - via 'Open' (i.e. opening some files) - * - * - by handling a command-line - * - * - via activating an action - * - * The #GApplication::startup signal lets you handle the application - * initialization for all of these in a single place. - * - * Regardless of which of these entry points is used to start the - * application, GApplication passes some ‘platform data’ from the - * launching instance to the primary instance, in the form of a - * #GVariant dictionary mapping strings to variants. To use platform - * data, override the @before_emit or @after_emit virtual functions - * in your #GApplication subclass. When dealing with - * #GApplicationCommandLine objects, the platform data is - * directly available via g_application_command_line_get_cwd(), - * g_application_command_line_get_environ() and - * g_application_command_line_get_platform_data(). - * - * As the name indicates, the platform data may vary depending on the - * operating system, but it always includes the current directory (key - * "cwd"), and optionally the environment (ie the set of environment - * variables and their values) of the calling process (key "environ"). - * The environment is only added to the platform data if the - * %G_APPLICATION_SEND_ENVIRONMENT flag is set. #GApplication subclasses - * can add their own platform data by overriding the @add_platform_data - * virtual function. For instance, #GtkApplication adds startup notification - * data in this way. - * - * To parse commandline arguments you may handle the - * #GApplication::command-line signal or override the local_command_line() - * vfunc, to parse them in either the primary instance or the local instance, - * respectively. - * - * For an example of opening files with a GApplication, see - * [gapplication-example-open.c](https://git.gnome.org/browse/glib/tree/gio/tests/gapplication-example-open.c). - * - * For an example of using actions with GApplication, see - * [gapplication-example-actions.c](https://git.gnome.org/browse/glib/tree/gio/tests/gapplication-example-actions.c). - * - * For an example of using extra D-Bus hooks with GApplication, see - * [gapplication-example-dbushooks.c](https://git.gnome.org/browse/glib/tree/gio/tests/gapplication-example-dbushooks.c). - * - * Since: 2.28 - */ -public class Application : ObjectG, ActionGroupIF, ActionMapIF -{ - /** the main Gtk struct */ - protected GApplication* gApplication; - - /** Get the main Gtk struct */ - public GApplication* getApplicationStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gApplication; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gApplication; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GApplication* gApplication, bool ownedRef = false) - { - this.gApplication = gApplication; - super(cast(GObject*)gApplication, ownedRef); - } - - // add the ActionGroup capabilities - mixin ActionGroupT!(GApplication); - - // add the ActionMap capabilities - mixin ActionMapT!(GApplication); - - /** - * The ::command-line signal is emitted on the primary instance when - * a commandline is not handled locally. See g_application_run() and - * the #GApplicationCommandLine documentation for more information. - * - * Params: - * commandLine = a #GApplicationCommandLine representing the - * passed commandline - * - * Return: An integer that is set as the exit status for the calling - * process. See g_application_command_line_set_exit_status(). - */ - gulong addOnCommandLine(int delegate(Scoped!ApplicationCommandLine, Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "command-line", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::open signal is emitted on the primary instance when there are - * files to open. See g_application_open() for more information. - * - * Params: - * files = an array of #GFiles - * nFiles = the length of @files - * hint = a hint provided by the calling instance - */ - gulong addOnOpen(void delegate(FileIF[], string, Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "open", delegate void (GFile* gfiles, int nFiles, string hint, Application app){ - FileIF[] files = new FileIF[nFiles]; - for(int i = 0; i < nFiles; i++) - { - files[i] = ObjectG.getDObject!FileIF((cast(GFile**)gfiles)[i]); - } - dlg(files, hint, app); - }, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_application_get_type(); - } - - /** - * Creates a new #GApplication instance. - * - * If non-%NULL, the application id must be valid. See - * g_application_id_is_valid(). - * - * If no application ID is given then some features of #GApplication - * (most notably application uniqueness) will be disabled. - * - * Params: - * applicationId = the application id - * flags = the application flags - * - * Returns: a new #GApplication instance - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string applicationId, GApplicationFlags flags) - { - auto __p = g_application_new(Str.toStringz(applicationId), flags); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GApplication*) __p, true); - } - - /** - * Returns the default #GApplication instance for this process. - * - * Normally there is only one #GApplication per process and it becomes - * the default when it is created. You can exercise more control over - * this by using g_application_set_default(). - * - * If there is no default application then %NULL is returned. - * - * Returns: the default application for this process, or %NULL - * - * Since: 2.32 - */ - public static Application getDefault() - { - auto __p = g_application_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Application)(cast(GApplication*) __p); - } - - /** - * Checks if @application_id is a valid application identifier. - * - * A valid ID is required for calls to g_application_new() and - * g_application_set_application_id(). - * - * Application identifiers follow the same format as - * [D-Bus well-known bus names](https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus). - * For convenience, the restrictions on application identifiers are - * reproduced here: - * - * - Application identifiers are composed of 1 or more elements separated by a - * period (`.`) character. All elements must contain at least one character. - * - * - Each element must only contain the ASCII characters `[A-Z][a-z][0-9]_-`, - * with `-` discouraged in new application identifiers. Each element must not - * begin with a digit. - * - * - Application identifiers must contain at least one `.` (period) character - * (and thus at least two elements). - * - * - Application identifiers must not begin with a `.` (period) character. - * - * - Application identifiers must not exceed 255 characters. - * - * Note that the hyphen (`-`) character is allowed in application identifiers, - * but is problematic or not allowed in various specifications and APIs that - * refer to D-Bus, such as - * [Flatpak application IDs](http://docs.flatpak.org/en/latest/introduction.html#identifiers), - * the - * [`DBusActivatable` interface in the Desktop Entry Specification](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#dbus), - * and the convention that an application's "main" interface and object path - * resemble its application identifier and bus name. To avoid situations that - * require special-case handling, it is recommended that new application - * identifiers consistently replace hyphens with underscores. - * - * Like D-Bus interface names, application identifiers should start with the - * reversed DNS domain name of the author of the interface (in lower-case), and - * it is conventional for the rest of the application identifier to consist of - * words run together, with initial capital letters. - * - * As with D-Bus interface names, if the author's DNS domain name contains - * hyphen/minus characters they should be replaced by underscores, and if it - * contains leading digits they should be escaped by prepending an underscore. - * For example, if the owner of 7-zip.org used an application identifier for an - * archiving application, it might be named `org._7_zip.Archiver`. - * - * Params: - * applicationId = a potential application identifier - * - * Returns: %TRUE if @application_id is valid - */ - public static bool idIsValid(string applicationId) - { - return g_application_id_is_valid(Str.toStringz(applicationId)) != 0; - } - - /** - * Activates the application. - * - * In essence, this results in the #GApplication::activate signal being - * emitted in the primary instance. - * - * The application must be registered before calling this function. - * - * Since: 2.28 - */ - public void activate() - { - g_application_activate(gApplication); - } - - /** - * Add an option to be handled by @application. - * - * Calling this function is the equivalent of calling - * g_application_add_main_option_entries() with a single #GOptionEntry - * that has its arg_data member set to %NULL. - * - * The parsed arguments will be packed into a #GVariantDict which - * is passed to #GApplication::handle-local-options. If - * %G_APPLICATION_HANDLES_COMMAND_LINE is set, then it will also - * be sent to the primary instance. See - * g_application_add_main_option_entries() for more details. - * - * See #GOptionEntry for more documentation of the arguments. - * - * Params: - * longName = the long name of an option used to specify it in a commandline - * shortName = the short name of an option - * flags = flags from #GOptionFlags - * arg = the type of the option, as a #GOptionArg - * description = the description for the option in `--help` output - * argDescription = the placeholder to use for the extra argument - * parsed by the option in `--help` output - * - * Since: 2.42 - */ - public void addMainOption(string longName, char shortName, GOptionFlags flags, GOptionArg arg, string description, string argDescription) - { - g_application_add_main_option(gApplication, Str.toStringz(longName), shortName, flags, arg, Str.toStringz(description), Str.toStringz(argDescription)); - } - - /** - * Adds main option entries to be handled by @application. - * - * This function is comparable to g_option_context_add_main_entries(). - * - * After the commandline arguments are parsed, the - * #GApplication::handle-local-options signal will be emitted. At this - * point, the application can inspect the values pointed to by @arg_data - * in the given #GOptionEntrys. - * - * Unlike #GOptionContext, #GApplication supports giving a %NULL - * @arg_data for a non-callback #GOptionEntry. This results in the - * argument in question being packed into a #GVariantDict which is also - * passed to #GApplication::handle-local-options, where it can be - * inspected and modified. If %G_APPLICATION_HANDLES_COMMAND_LINE is - * set, then the resulting dictionary is sent to the primary instance, - * where g_application_command_line_get_options_dict() will return it. - * This "packing" is done according to the type of the argument -- - * booleans for normal flags, strings for strings, bytestrings for - * filenames, etc. The packing only occurs if the flag is given (ie: we - * do not pack a "false" #GVariant in the case that a flag is missing). - * - * In general, it is recommended that all commandline arguments are - * parsed locally. The options dictionary should then be used to - * transmit the result of the parsing to the primary instance, where - * g_variant_dict_lookup() can be used. For local options, it is - * possible to either use @arg_data in the usual way, or to consult (and - * potentially remove) the option from the options dictionary. - * - * This function is new in GLib 2.40. Before then, the only real choice - * was to send all of the commandline arguments (options and all) to the - * primary instance for handling. #GApplication ignored them completely - * on the local side. Calling this function "opts in" to the new - * behaviour, and in particular, means that unrecognised options will be - * treated as errors. Unrecognised options have never been ignored when - * %G_APPLICATION_HANDLES_COMMAND_LINE is unset. - * - * If #GApplication::handle-local-options needs to see the list of - * filenames, then the use of %G_OPTION_REMAINING is recommended. If - * @arg_data is %NULL then %G_OPTION_REMAINING can be used as a key into - * the options dictionary. If you do use %G_OPTION_REMAINING then you - * need to handle these arguments for yourself because once they are - * consumed, they will no longer be visible to the default handling - * (which treats them as filenames to be opened). - * - * It is important to use the proper GVariant format when retrieving - * the options with g_variant_dict_lookup(): - * - for %G_OPTION_ARG_NONE, use `b` - * - for %G_OPTION_ARG_STRING, use `&s` - * - for %G_OPTION_ARG_INT, use `i` - * - for %G_OPTION_ARG_INT64, use `x` - * - for %G_OPTION_ARG_DOUBLE, use `d` - * - for %G_OPTION_ARG_FILENAME, use `^&ay` - * - for %G_OPTION_ARG_STRING_ARRAY, use `^a&s` - * - for %G_OPTION_ARG_FILENAME_ARRAY, use `^a&ay` - * - * Params: - * entries = a - * %NULL-terminated list of #GOptionEntrys - * - * Since: 2.40 - */ - public void addMainOptionEntries(GOptionEntry[] entries) - { - g_application_add_main_option_entries(gApplication, entries.ptr); - } - - /** - * Adds a #GOptionGroup to the commandline handling of @application. - * - * This function is comparable to g_option_context_add_group(). - * - * Unlike g_application_add_main_option_entries(), this function does - * not deal with %NULL @arg_data and never transmits options to the - * primary instance. - * - * The reason for that is because, by the time the options arrive at the - * primary instance, it is typically too late to do anything with them. - * Taking the GTK option group as an example: GTK will already have been - * initialised by the time the #GApplication::command-line handler runs. - * In the case that this is not the first-running instance of the - * application, the existing instance may already have been running for - * a very long time. - * - * This means that the options from #GOptionGroup are only really usable - * in the case that the instance of the application being run is the - * first instance. Passing options like `--display=` or `--gdk-debug=` - * on future runs will have no effect on the existing primary instance. - * - * Calling this function will cause the options in the supplied option - * group to be parsed, but it does not cause you to be "opted in" to the - * new functionality whereby unrecognised options are rejected even if - * %G_APPLICATION_HANDLES_COMMAND_LINE was given. - * - * Params: - * group = a #GOptionGroup - * - * Since: 2.40 - */ - public void addOptionGroup(OptionGroup group) - { - g_application_add_option_group(gApplication, (group is null) ? null : group.getOptionGroupStruct(true)); - } - - /** - * Marks @application as busy (see g_application_mark_busy()) while - * @property on @object is %TRUE. - * - * The binding holds a reference to @application while it is active, but - * not to @object. Instead, the binding is destroyed when @object is - * finalized. - * - * Params: - * object = a #GObject - * property = the name of a boolean property of @object - * - * Since: 2.44 - */ - public void bindBusyProperty(ObjectG object, string property) - { - g_application_bind_busy_property(gApplication, (object is null) ? null : object.getObjectGStruct(), Str.toStringz(property)); - } - - /** - * Gets the unique identifier for @application. - * - * Returns: the identifier for @application, owned by @application - * - * Since: 2.28 - */ - public string getApplicationId() - { - return Str.toString(g_application_get_application_id(gApplication)); - } - - /** - * Gets the #GDBusConnection being used by the application, or %NULL. - * - * If #GApplication is using its D-Bus backend then this function will - * return the #GDBusConnection being used for uniqueness and - * communication with the desktop environment and other instances of the - * application. - * - * If #GApplication is not using D-Bus then this function will return - * %NULL. This includes the situation where the D-Bus backend would - * normally be in use but we were unable to connect to the bus. - * - * This function must not be called before the application has been - * registered. See g_application_get_is_registered(). - * - * Returns: a #GDBusConnection, or %NULL - * - * Since: 2.34 - */ - public DBusConnection getDbusConnection() - { - auto __p = g_application_get_dbus_connection(gApplication); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p); - } - - /** - * Gets the D-Bus object path being used by the application, or %NULL. - * - * If #GApplication is using its D-Bus backend then this function will - * return the D-Bus object path that #GApplication is using. If the - * application is the primary instance then there is an object published - * at this path. If the application is not the primary instance then - * the result of this function is undefined. - * - * If #GApplication is not using D-Bus then this function will return - * %NULL. This includes the situation where the D-Bus backend would - * normally be in use but we were unable to connect to the bus. - * - * This function must not be called before the application has been - * registered. See g_application_get_is_registered(). - * - * Returns: the object path, or %NULL - * - * Since: 2.34 - */ - public string getDbusObjectPath() - { - return Str.toString(g_application_get_dbus_object_path(gApplication)); - } - - /** - * Gets the flags for @application. - * - * See #GApplicationFlags. - * - * Returns: the flags for @application - * - * Since: 2.28 - */ - public GApplicationFlags getFlags() - { - return g_application_get_flags(gApplication); - } - - /** - * Gets the current inactivity timeout for the application. - * - * This is the amount of time (in milliseconds) after the last call to - * g_application_release() before the application stops running. - * - * Returns: the timeout, in milliseconds - * - * Since: 2.28 - */ - public uint getInactivityTimeout() - { - return g_application_get_inactivity_timeout(gApplication); - } - - /** - * Gets the application's current busy state, as set through - * g_application_mark_busy() or g_application_bind_busy_property(). - * - * Returns: %TRUE if @application is currently marked as busy - * - * Since: 2.44 - */ - public bool getIsBusy() - { - return g_application_get_is_busy(gApplication) != 0; - } - - /** - * Checks if @application is registered. - * - * An application is registered if g_application_register() has been - * successfully called. - * - * Returns: %TRUE if @application is registered - * - * Since: 2.28 - */ - public bool getIsRegistered() - { - return g_application_get_is_registered(gApplication) != 0; - } - - /** - * Checks if @application is remote. - * - * If @application is remote then it means that another instance of - * application already exists (the 'primary' instance). Calls to - * perform actions on @application will result in the actions being - * performed by the primary instance. - * - * The value of this property cannot be accessed before - * g_application_register() has been called. See - * g_application_get_is_registered(). - * - * Returns: %TRUE if @application is remote - * - * Since: 2.28 - */ - public bool getIsRemote() - { - return g_application_get_is_remote(gApplication) != 0; - } - - /** - * Gets the resource base path of @application. - * - * See g_application_set_resource_base_path() for more information. - * - * Returns: the base resource path, if one is set - * - * Since: 2.42 - */ - public string getResourceBasePath() - { - return Str.toString(g_application_get_resource_base_path(gApplication)); - } - - /** - * Increases the use count of @application. - * - * Use this function to indicate that the application has a reason to - * continue to run. For example, g_application_hold() is called by GTK+ - * when a toplevel window is on the screen. - * - * To cancel the hold, call g_application_release(). - */ - public void hold() - { - g_application_hold(gApplication); - } - - /** - * Increases the busy count of @application. - * - * Use this function to indicate that the application is busy, for instance - * while a long running operation is pending. - * - * The busy state will be exposed to other processes, so a session shell will - * use that information to indicate the state to the user (e.g. with a - * spinner). - * - * To cancel the busy indication, use g_application_unmark_busy(). - * - * Since: 2.38 - */ - public void markBusy() - { - g_application_mark_busy(gApplication); - } - - /** - * Opens the given files. - * - * In essence, this results in the #GApplication::open signal being emitted - * in the primary instance. - * - * @n_files must be greater than zero. - * - * @hint is simply passed through to the ::open signal. It is - * intended to be used by applications that have multiple modes for - * opening files (eg: "view" vs "edit", etc). Unless you have a need - * for this functionality, you should use "". - * - * The application must be registered before calling this function - * and it must have the %G_APPLICATION_HANDLES_OPEN flag set. - * - * Params: - * files = an array of #GFiles to open - * hint = a hint (or ""), but never %NULL - * - * Since: 2.28 - */ - public void open(FileIF[] files, string hint) - { - GFile*[] filesArray = new GFile*[files.length]; - for ( int i = 0; i < files.length; i++ ) - { - filesArray[i] = files[i].getFileStruct(); - } - - g_application_open(gApplication, filesArray.ptr, cast(int)files.length, Str.toStringz(hint)); - } - - /** - * Immediately quits the application. - * - * Upon return to the mainloop, g_application_run() will return, - * calling only the 'shutdown' function before doing so. - * - * The hold count is ignored. - * Take care if your code has called g_application_hold() on the application and - * is therefore still expecting it to exist. - * (Note that you may have called g_application_hold() indirectly, for example - * through gtk_application_add_window().) - * - * The result of calling g_application_run() again after it returns is - * unspecified. - * - * Since: 2.32 - */ - public void quit() - { - g_application_quit(gApplication); - } - - /** - * Attempts registration of the application. - * - * This is the point at which the application discovers if it is the - * primary instance or merely acting as a remote for an already-existing - * primary instance. This is implemented by attempting to acquire the - * application identifier as a unique bus name on the session bus using - * GDBus. - * - * If there is no application ID or if %G_APPLICATION_NON_UNIQUE was - * given, then this process will always become the primary instance. - * - * Due to the internal architecture of GDBus, method calls can be - * dispatched at any time (even if a main loop is not running). For - * this reason, you must ensure that any object paths that you wish to - * register are registered before calling this function. - * - * If the application has already been registered then %TRUE is - * returned with no work performed. - * - * The #GApplication::startup signal is emitted if registration succeeds - * and @application is the primary instance (including the non-unique - * case). - * - * In the event of an error (such as @cancellable being cancelled, or a - * failure to connect to the session bus), %FALSE is returned and @error - * is set appropriately. - * - * Note: the return value of this function is not an indicator that this - * instance is or is not the primary instance of the application. See - * g_application_get_is_remote() for that. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE if registration succeeded - * - * Since: 2.28 - * - * Throws: GException on failure. - */ - public bool register(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_application_register(gApplication, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Decrease the use count of @application. - * - * When the use count reaches zero, the application will stop running. - * - * Never call this function except to cancel the effect of a previous - * call to g_application_hold(). - */ - public void release() - { - g_application_release(gApplication); - } - - /** - * Runs the application. - * - * This function is intended to be run from main() and its return value - * is intended to be returned by main(). Although you are expected to pass - * the @argc, @argv parameters from main() to this function, it is possible - * to pass %NULL if @argv is not available or commandline handling is not - * required. Note that on Windows, @argc and @argv are ignored, and - * g_win32_get_command_line() is called internally (for proper support - * of Unicode commandline arguments). - * - * #GApplication will attempt to parse the commandline arguments. You - * can add commandline flags to the list of recognised options by way of - * g_application_add_main_option_entries(). After this, the - * #GApplication::handle-local-options signal is emitted, from which the - * application can inspect the values of its #GOptionEntrys. - * - * #GApplication::handle-local-options is a good place to handle options - * such as `--version`, where an immediate reply from the local process is - * desired (instead of communicating with an already-running instance). - * A #GApplication::handle-local-options handler can stop further processing - * by returning a non-negative value, which then becomes the exit status of - * the process. - * - * What happens next depends on the flags: if - * %G_APPLICATION_HANDLES_COMMAND_LINE was specified then the remaining - * commandline arguments are sent to the primary instance, where a - * #GApplication::command-line signal is emitted. Otherwise, the - * remaining commandline arguments are assumed to be a list of files. - * If there are no files listed, the application is activated via the - * #GApplication::activate signal. If there are one or more files, and - * %G_APPLICATION_HANDLES_OPEN was specified then the files are opened - * via the #GApplication::open signal. - * - * If you are interested in doing more complicated local handling of the - * commandline then you should implement your own #GApplication subclass - * and override local_command_line(). In this case, you most likely want - * to return %TRUE from your local_command_line() implementation to - * suppress the default handling. See - * [gapplication-example-cmdline2.c][gapplication-example-cmdline2] - * for an example. - * - * If, after the above is done, the use count of the application is zero - * then the exit status is returned immediately. If the use count is - * non-zero then the default main context is iterated until the use count - * falls to zero, at which point 0 is returned. - * - * If the %G_APPLICATION_IS_SERVICE flag is set, then the service will - * run for as much as 10 seconds with a use count of zero while waiting - * for the message that caused the activation to arrive. After that, - * if the use count falls to zero the application will exit immediately, - * except in the case that g_application_set_inactivity_timeout() is in - * use. - * - * This function sets the prgname (g_set_prgname()), if not already set, - * to the basename of argv[0]. - * - * Much like g_main_loop_run(), this function will acquire the main context - * for the duration that the application is running. - * - * Since 2.40, applications that are not explicitly flagged as services - * or launchers (ie: neither %G_APPLICATION_IS_SERVICE or - * %G_APPLICATION_IS_LAUNCHER are given as flags) will check (from the - * default handler for local_command_line) if "--gapplication-service" - * was given in the command line. If this flag is present then normal - * commandline processing is interrupted and the - * %G_APPLICATION_IS_SERVICE flag is set. This provides a "compromise" - * solution whereby running an application directly from the commandline - * will invoke it in the normal way (which can be useful for debugging) - * while still allowing applications to be D-Bus activated in service - * mode. The D-Bus service file should invoke the executable with - * "--gapplication-service" as the sole commandline argument. This - * approach is suitable for use by most graphical applications but - * should not be used from applications like editors that need precise - * control over when processes invoked via the commandline will exit and - * what their exit status will be. - * - * Params: - * argv = the argv from main(), or %NULL - * - * Returns: the exit status - * - * Since: 2.28 - */ - public int run(string[] argv) - { - return g_application_run(gApplication, cast(int)argv.length, Str.toStringzArray(argv)); - } - - /** - * Sends a notification on behalf of @application to the desktop shell. - * There is no guarantee that the notification is displayed immediately, - * or even at all. - * - * Notifications may persist after the application exits. It will be - * D-Bus-activated when the notification or one of its actions is - * activated. - * - * Modifying @notification after this call has no effect. However, the - * object can be reused for a later call to this function. - * - * @id may be any string that uniquely identifies the event for the - * application. It does not need to be in any special format. For - * example, "new-message" might be appropriate for a notification about - * new messages. - * - * If a previous notification was sent with the same @id, it will be - * replaced with @notification and shown again as if it was a new - * notification. This works even for notifications sent from a previous - * execution of the application, as long as @id is the same string. - * - * @id may be %NULL, but it is impossible to replace or withdraw - * notifications without an id. - * - * If @notification is no longer relevant, it can be withdrawn with - * g_application_withdraw_notification(). - * - * Params: - * id = id of the notification, or %NULL - * notification = the #GNotification to send - * - * Since: 2.40 - */ - public void sendNotification(string id, Notification notification) - { - g_application_send_notification(gApplication, Str.toStringz(id), (notification is null) ? null : notification.getNotificationStruct()); - } - - /** - * This used to be how actions were associated with a #GApplication. - * Now there is #GActionMap for that. - * - * Deprecated: Use the #GActionMap interface instead. Never ever - * mix use of this API with use of #GActionMap on the same @application - * or things will go very badly wrong. This function is known to - * introduce buggy behaviour (ie: signals not emitted on changes to the - * action group), so you should really use #GActionMap instead. - * - * Params: - * actionGroup = a #GActionGroup, or %NULL - * - * Since: 2.28 - */ - public void setActionGroup(ActionGroupIF actionGroup) - { - g_application_set_action_group(gApplication, (actionGroup is null) ? null : actionGroup.getActionGroupStruct()); - } - - /** - * Sets the unique identifier for @application. - * - * The application id can only be modified if @application has not yet - * been registered. - * - * If non-%NULL, the application id must be valid. See - * g_application_id_is_valid(). - * - * Params: - * applicationId = the identifier for @application - * - * Since: 2.28 - */ - public void setApplicationId(string applicationId) - { - g_application_set_application_id(gApplication, Str.toStringz(applicationId)); - } - - /** - * Sets or unsets the default application for the process, as returned - * by g_application_get_default(). - * - * This function does not take its own reference on @application. If - * @application is destroyed then the default application will revert - * back to %NULL. - * - * Since: 2.32 - */ - public void setDefault() - { - g_application_set_default(gApplication); - } - - /** - * Sets the flags for @application. - * - * The flags can only be modified if @application has not yet been - * registered. - * - * See #GApplicationFlags. - * - * Params: - * flags = the flags for @application - * - * Since: 2.28 - */ - public void setFlags(GApplicationFlags flags) - { - g_application_set_flags(gApplication, flags); - } - - /** - * Sets the current inactivity timeout for the application. - * - * This is the amount of time (in milliseconds) after the last call to - * g_application_release() before the application stops running. - * - * This call has no side effects of its own. The value set here is only - * used for next time g_application_release() drops the use count to - * zero. Any timeouts currently in progress are not impacted. - * - * Params: - * inactivityTimeout = the timeout, in milliseconds - * - * Since: 2.28 - */ - public void setInactivityTimeout(uint inactivityTimeout) - { - g_application_set_inactivity_timeout(gApplication, inactivityTimeout); - } - - /** - * Adds a description to the @application option context. - * - * See g_option_context_set_description() for more information. - * - * Params: - * description = a string to be shown in `--help` output - * after the list of options, or %NULL - * - * Since: 2.56 - */ - public void setOptionContextDescription(string description) - { - g_application_set_option_context_description(gApplication, Str.toStringz(description)); - } - - /** - * Sets the parameter string to be used by the commandline handling of @application. - * - * This function registers the argument to be passed to g_option_context_new() - * when the internal #GOptionContext of @application is created. - * - * See g_option_context_new() for more information about @parameter_string. - * - * Params: - * parameterString = a string which is displayed - * in the first line of `--help` output, after the usage summary `programname [OPTION...]`. - * - * Since: 2.56 - */ - public void setOptionContextParameterString(string parameterString) - { - g_application_set_option_context_parameter_string(gApplication, Str.toStringz(parameterString)); - } - - /** - * Adds a summary to the @application option context. - * - * See g_option_context_set_summary() for more information. - * - * Params: - * summary = a string to be shown in `--help` output - * before the list of options, or %NULL - * - * Since: 2.56 - */ - public void setOptionContextSummary(string summary) - { - g_application_set_option_context_summary(gApplication, Str.toStringz(summary)); - } - - /** - * Sets (or unsets) the base resource path of @application. - * - * The path is used to automatically load various [application - * resources][gresource] such as menu layouts and action descriptions. - * The various types of resources will be found at fixed names relative - * to the given base path. - * - * By default, the resource base path is determined from the application - * ID by prefixing '/' and replacing each '.' with '/'. This is done at - * the time that the #GApplication object is constructed. Changes to - * the application ID after that point will not have an impact on the - * resource base path. - * - * As an example, if the application has an ID of "org.example.app" then - * the default resource base path will be "/org/example/app". If this - * is a #GtkApplication (and you have not manually changed the path) - * then Gtk will then search for the menus of the application at - * "/org/example/app/gtk/menus.ui". - * - * See #GResource for more information about adding resources to your - * application. - * - * You can disable automatic resource loading functionality by setting - * the path to %NULL. - * - * Changing the resource base path once the application is running is - * not recommended. The point at which the resource path is consulted - * for forming paths for various purposes is unspecified. When writing - * a sub-class of #GApplication you should either set the - * #GApplication:resource-base-path property at construction time, or call - * this function during the instance initialization. Alternatively, you - * can call this function in the #GApplicationClass.startup virtual function, - * before chaining up to the parent implementation. - * - * Params: - * resourcePath = the resource path to use - * - * Since: 2.42 - */ - public void setResourceBasePath(string resourcePath) - { - g_application_set_resource_base_path(gApplication, Str.toStringz(resourcePath)); - } - - /** - * Destroys a binding between @property and the busy state of - * @application that was previously created with - * g_application_bind_busy_property(). - * - * Params: - * object = a #GObject - * property = the name of a boolean property of @object - * - * Since: 2.44 - */ - public void unbindBusyProperty(ObjectG object, string property) - { - g_application_unbind_busy_property(gApplication, (object is null) ? null : object.getObjectGStruct(), Str.toStringz(property)); - } - - /** - * Decreases the busy count of @application. - * - * When the busy count reaches zero, the new state will be propagated - * to other processes. - * - * This function must only be called to cancel the effect of a previous - * call to g_application_mark_busy(). - * - * Since: 2.38 - */ - public void unmarkBusy() - { - g_application_unmark_busy(gApplication); - } - - /** - * Withdraws a notification that was sent with - * g_application_send_notification(). - * - * This call does nothing if a notification with @id doesn't exist or - * the notification was never sent. - * - * This function works even for notifications sent in previous - * executions of this application, as long @id is the same as it was for - * the sent notification. - * - * Note that notifications are dismissed when the user clicks on one - * of the buttons in a notification or triggers its default action, so - * there is no need to explicitly withdraw the notification in that case. - * - * Params: - * id = id of a previously sent notification - * - * Since: 2.40 - */ - public void withdrawNotification(string id) - { - g_application_withdraw_notification(gApplication, Str.toStringz(id)); - } - - /** - * The ::activate signal is emitted on the primary instance when an - * activation occurs. See g_application_activate(). - */ - gulong addOnActivate(void delegate(Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "activate", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::command-line signal is emitted on the primary instance when - * a commandline is not handled locally. See g_application_run() and - * the #GApplicationCommandLine documentation for more information. - * - * Params: - * commandLine = a #GApplicationCommandLine representing the - * passed commandline - * - * Returns: An integer that is set as the exit status for the calling - * process. See g_application_command_line_set_exit_status(). - */ - gulong addOnCommandLine(int delegate(ApplicationCommandLine, Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "command-line", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::handle-local-options signal is emitted on the local instance - * after the parsing of the commandline options has occurred. - * - * You can add options to be recognised during commandline option - * parsing using g_application_add_main_option_entries() and - * g_application_add_option_group(). - * - * Signal handlers can inspect @options (along with values pointed to - * from the @arg_data of an installed #GOptionEntrys) in order to - * decide to perform certain actions, including direct local handling - * (which may be useful for options like --version). - * - * In the event that the application is marked - * %G_APPLICATION_HANDLES_COMMAND_LINE the "normal processing" will - * send the @options dictionary to the primary instance where it can be - * read with g_application_command_line_get_options_dict(). The signal - * handler can modify the dictionary before returning, and the - * modified dictionary will be sent. - * - * In the event that %G_APPLICATION_HANDLES_COMMAND_LINE is not set, - * "normal processing" will treat the remaining uncollected command - * line arguments as filenames or URIs. If there are no arguments, - * the application is activated by g_application_activate(). One or - * more arguments results in a call to g_application_open(). - * - * If you want to handle the local commandline arguments for yourself - * by converting them to calls to g_application_open() or - * g_action_group_activate_action() then you must be sure to register - * the application first. You should probably not call - * g_application_activate() for yourself, however: just return -1 and - * allow the default handler to do it for you. This will ensure that - * the `--gapplication-service` switch works properly (i.e. no activation - * in that case). - * - * Note that this signal is emitted from the default implementation of - * local_command_line(). If you override that function and don't - * chain up then this signal will never be emitted. - * - * You can override local_command_line() if you need more powerful - * capabilities than what is provided here, but this should not - * normally be required. - * - * Params: - * options = the options dictionary - * - * Returns: an exit code. If you have handled your options and want - * to exit the process, return a non-negative option, 0 for success, - * and a positive value for failure. To continue, return -1 to let - * the default option processing continue. - * - * Since: 2.40 - */ - gulong addOnHandleLocalOptions(int delegate(VariantDict, Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "handle-local-options", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::name-lost signal is emitted only on the registered primary instance - * when a new instance has taken over. This can only happen if the application - * is using the %G_APPLICATION_ALLOW_REPLACEMENT flag. - * - * The default handler for this signal calls g_application_quit(). - * - * Returns: %TRUE if the signal has been handled - * - * Since: 2.60 - */ - gulong addOnNameLost(bool delegate(Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "name-lost", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::open signal is emitted on the primary instance when there are - * files to open. See g_application_open() for more information. - * - * Params: - * files = an array of #GFiles - * nFiles = the length of @files - * hint = a hint provided by the calling instance - */ - gulong addOnOpen(void delegate(void*, int, string, Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "open", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::shutdown signal is emitted only on the registered primary instance - * immediately after the main loop terminates. - */ - gulong addOnShutdown(void delegate(Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "shutdown", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The ::startup signal is emitted on the primary instance immediately - * after registration. See g_application_register(). - */ - gulong addOnStartup(void delegate(Application) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "startup", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/ApplicationCommandLine.d b/generated/gtkd/gio/ApplicationCommandLine.d deleted file mode 100644 index 1a472af26..000000000 --- a/generated/gtkd/gio/ApplicationCommandLine.d +++ /dev/null @@ -1,491 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ApplicationCommandLine; - -private import gio.FileIF; -private import gio.InputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.Variant; -private import glib.VariantDict; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GApplicationCommandLine represents a command-line invocation of - * an application. It is created by #GApplication and emitted - * in the #GApplication::command-line signal and virtual function. - * - * The class contains the list of arguments that the program was invoked - * with. It is also possible to query if the commandline invocation was - * local (ie: the current process is running in direct response to the - * invocation) or remote (ie: some other process forwarded the - * commandline to this process). - * - * The GApplicationCommandLine object can provide the @argc and @argv - * parameters for use with the #GOptionContext command-line parsing API, - * with the g_application_command_line_get_arguments() function. See - * [gapplication-example-cmdline3.c][gapplication-example-cmdline3] - * for an example. - * - * The exit status of the originally-invoked process may be set and - * messages can be printed to stdout or stderr of that process. The - * lifecycle of the originally-invoked process is tied to the lifecycle - * of this object (ie: the process exits when the last reference is - * dropped). - * - * The main use for #GApplicationCommandLine (and the - * #GApplication::command-line signal) is 'Emacs server' like use cases: - * You can set the `EDITOR` environment variable to have e.g. git use - * your favourite editor to edit commit messages, and if you already - * have an instance of the editor running, the editing will happen - * in the running instance, instead of opening a new one. An important - * aspect of this use case is that the process that gets started by git - * does not return until the editing is done. - * - * Normally, the commandline is completely handled in the - * #GApplication::command-line handler. The launching instance exits - * once the signal handler in the primary instance has returned, and - * the return value of the signal handler becomes the exit status - * of the launching instance. - * |[ - * static int - * command_line (GApplication *application, - * GApplicationCommandLine *cmdline) - * { - * gchar **argv; - * gint argc; - * gint i; - * - * argv = g_application_command_line_get_arguments (cmdline, &argc); - * - * g_application_command_line_print (cmdline, - * "This text is written back\n" - * "to stdout of the caller\n"); - * - * for (i = 0; i < argc; i++) - * g_print ("argument %d: %s\n", i, argv[i]); - * - * g_strfreev (argv); - * - * return 0; - * } - * ]| - * The complete example can be found here: - * [gapplication-example-cmdline.c](https://git.gnome.org/browse/glib/tree/gio/tests/gapplication-example-cmdline.c) - * - * In more complicated cases, the handling of the comandline can be - * split between the launcher and the primary instance. - * |[ - * static gboolean - * test_local_cmdline (GApplication *application, - * gchar ***arguments, - * gint *exit_status) - * { - * gint i, j; - * gchar **argv; - * - * argv = *arguments; - * - * i = 1; - * while (argv[i]) - * { - * if (g_str_has_prefix (argv[i], "--local-")) - * { - * g_print ("handling argument %s locally\n", argv[i]); - * g_free (argv[i]); - * for (j = i; argv[j]; j++) - * argv[j] = argv[j + 1]; - * } - * else - * { - * g_print ("not handling argument %s locally\n", argv[i]); - * i++; - * } - * } - * - * *exit_status = 0; - * - * return FALSE; - * } - * - * static void - * test_application_class_init (TestApplicationClass *class) - * { - * G_APPLICATION_CLASS (class)->local_command_line = test_local_cmdline; - * - * ... - * } - * ]| - * In this example of split commandline handling, options that start - * with `--local-` are handled locally, all other options are passed - * to the #GApplication::command-line handler which runs in the primary - * instance. - * - * The complete example can be found here: - * [gapplication-example-cmdline2.c](https://git.gnome.org/browse/glib/tree/gio/tests/gapplication-example-cmdline2.c) - * - * If handling the commandline requires a lot of work, it may - * be better to defer it. - * |[ - * static gboolean - * my_cmdline_handler (gpointer data) - * { - * GApplicationCommandLine *cmdline = data; - * - * // do the heavy lifting in an idle - * - * g_application_command_line_set_exit_status (cmdline, 0); - * g_object_unref (cmdline); // this releases the application - * - * return G_SOURCE_REMOVE; - * } - * - * static int - * command_line (GApplication *application, - * GApplicationCommandLine *cmdline) - * { - * // keep the application running until we are done with this commandline - * g_application_hold (application); - * - * g_object_set_data_full (G_OBJECT (cmdline), - * "application", application, - * (GDestroyNotify)g_application_release); - * - * g_object_ref (cmdline); - * g_idle_add (my_cmdline_handler, cmdline); - * - * return 0; - * } - * ]| - * In this example the commandline is not completely handled before - * the #GApplication::command-line handler returns. Instead, we keep - * a reference to the #GApplicationCommandLine object and handle it - * later (in this example, in an idle). Note that it is necessary to - * hold the application until you are done with the commandline. - * - * The complete example can be found here: - * [gapplication-example-cmdline3.c](https://git.gnome.org/browse/glib/tree/gio/tests/gapplication-example-cmdline3.c) - */ -public class ApplicationCommandLine : ObjectG -{ - /** the main Gtk struct */ - protected GApplicationCommandLine* gApplicationCommandLine; - - /** Get the main Gtk struct */ - public GApplicationCommandLine* getApplicationCommandLineStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gApplicationCommandLine; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gApplicationCommandLine; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GApplicationCommandLine* gApplicationCommandLine, bool ownedRef = false) - { - this.gApplicationCommandLine = gApplicationCommandLine; - super(cast(GObject*)gApplicationCommandLine, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_application_command_line_get_type(); - } - - /** - * Creates a #GFile corresponding to a filename that was given as part - * of the invocation of @cmdline. - * - * This differs from g_file_new_for_commandline_arg() in that it - * resolves relative pathnames using the current working directory of - * the invoking process rather than the local process. - * - * Params: - * arg = an argument from @cmdline - * - * Returns: a new #GFile - * - * Since: 2.36 - */ - public FileIF createFileForArg(string arg) - { - auto __p = g_application_command_line_create_file_for_arg(gApplicationCommandLine, Str.toStringz(arg)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets the list of arguments that was passed on the command line. - * - * The strings in the array may contain non-UTF-8 data on UNIX (such as - * filenames or arguments given in the system locale) but are always in - * UTF-8 on Windows. - * - * If you wish to use the return value with #GOptionContext, you must - * use g_option_context_parse_strv(). - * - * The return value is %NULL-terminated and should be freed using - * g_strfreev(). - * - * Returns: the string array containing the arguments (the argv) - * - * Since: 2.28 - */ - public string[] getArguments() - { - int argc; - - auto retStr = g_application_command_line_get_arguments(gApplicationCommandLine, &argc); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr, argc); - } - - /** - * Gets the working directory of the command line invocation. - * The string may contain non-utf8 data. - * - * It is possible that the remote application did not send a working - * directory, so this may be %NULL. - * - * The return value should not be modified or freed and is valid for as - * long as @cmdline exists. - * - * Returns: the current directory, or %NULL - * - * Since: 2.28 - */ - public string getCwd() - { - return Str.toString(g_application_command_line_get_cwd(gApplicationCommandLine)); - } - - /** - * Gets the contents of the 'environ' variable of the command line - * invocation, as would be returned by g_get_environ(), ie as a - * %NULL-terminated list of strings in the form 'NAME=VALUE'. - * The strings may contain non-utf8 data. - * - * The remote application usually does not send an environment. Use - * %G_APPLICATION_SEND_ENVIRONMENT to affect that. Even with this flag - * set it is possible that the environment is still not available (due - * to invocation messages from other applications). - * - * The return value should not be modified or freed and is valid for as - * long as @cmdline exists. - * - * See g_application_command_line_getenv() if you are only interested - * in the value of a single environment variable. - * - * Returns: the environment strings, or %NULL if they were not sent - * - * Since: 2.28 - */ - public string[] getEnviron() - { - return Str.toStringArray(g_application_command_line_get_environ(gApplicationCommandLine)); - } - - /** - * Gets the exit status of @cmdline. See - * g_application_command_line_set_exit_status() for more information. - * - * Returns: the exit status - * - * Since: 2.28 - */ - public int getExitStatus() - { - return g_application_command_line_get_exit_status(gApplicationCommandLine); - } - - /** - * Determines if @cmdline represents a remote invocation. - * - * Returns: %TRUE if the invocation was remote - * - * Since: 2.28 - */ - public bool getIsRemote() - { - return g_application_command_line_get_is_remote(gApplicationCommandLine) != 0; - } - - /** - * Gets the options there were passed to g_application_command_line(). - * - * If you did not override local_command_line() then these are the same - * options that were parsed according to the #GOptionEntrys added to the - * application with g_application_add_main_option_entries() and possibly - * modified from your GApplication::handle-local-options handler. - * - * If no options were sent then an empty dictionary is returned so that - * you don't need to check for %NULL. - * - * Returns: a #GVariantDict with the options - * - * Since: 2.40 - */ - public VariantDict getOptionsDict() - { - auto __p = g_application_command_line_get_options_dict(gApplicationCommandLine); - - if(__p is null) - { - return null; - } - - return new VariantDict(cast(GVariantDict*) __p); - } - - /** - * Gets the platform data associated with the invocation of @cmdline. - * - * This is a #GVariant dictionary containing information about the - * context in which the invocation occurred. It typically contains - * information like the current working directory and the startup - * notification ID. - * - * For local invocation, it will be %NULL. - * - * Returns: the platform data, or %NULL - * - * Since: 2.28 - */ - public Variant getPlatformData() - { - auto __p = g_application_command_line_get_platform_data(gApplicationCommandLine); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the stdin of the invoking process. - * - * The #GInputStream can be used to read data passed to the standard - * input of the invoking process. - * This doesn't work on all platforms. Presently, it is only available - * on UNIX when using a D-Bus daemon capable of passing file descriptors. - * If stdin is not available then %NULL will be returned. In the - * future, support may be expanded to other platforms. - * - * You must only call this function once per commandline invocation. - * - * Returns: a #GInputStream for stdin - * - * Since: 2.34 - */ - public InputStream getStdin() - { - auto __p = g_application_command_line_get_stdin(gApplicationCommandLine); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p, true); - } - - /** - * Gets the value of a particular environment variable of the command - * line invocation, as would be returned by g_getenv(). The strings may - * contain non-utf8 data. - * - * The remote application usually does not send an environment. Use - * %G_APPLICATION_SEND_ENVIRONMENT to affect that. Even with this flag - * set it is possible that the environment is still not available (due - * to invocation messages from other applications). - * - * The return value should not be modified or freed and is valid for as - * long as @cmdline exists. - * - * Params: - * name = the environment variable to get - * - * Returns: the value of the variable, or %NULL if unset or unsent - * - * Since: 2.28 - */ - public string getenv(string name) - { - return Str.toString(g_application_command_line_getenv(gApplicationCommandLine, Str.toStringz(name))); - } - - /** - * Sets the exit status that will be used when the invoking process - * exits. - * - * The return value of the #GApplication::command-line signal is - * passed to this function when the handler returns. This is the usual - * way of setting the exit status. - * - * In the event that you want the remote invocation to continue running - * and want to decide on the exit status in the future, you can use this - * call. For the case of a remote invocation, the remote process will - * typically exit when the last reference is dropped on @cmdline. The - * exit status of the remote process will be equal to the last value - * that was set with this function. - * - * In the case that the commandline invocation is local, the situation - * is slightly more complicated. If the commandline invocation results - * in the mainloop running (ie: because the use-count of the application - * increased to a non-zero value) then the application is considered to - * have been 'successful' in a certain sense, and the exit status is - * always zero. If the application use count is zero, though, the exit - * status of the local #GApplicationCommandLine is used. - * - * Params: - * exitStatus = the exit status - * - * Since: 2.28 - */ - public void setExitStatus(int exitStatus) - { - g_application_command_line_set_exit_status(gApplicationCommandLine, exitStatus); - } -} diff --git a/generated/gtkd/gio/AsyncInitableIF.d b/generated/gtkd/gio/AsyncInitableIF.d deleted file mode 100644 index 4e24be6fa..000000000 --- a/generated/gtkd/gio/AsyncInitableIF.d +++ /dev/null @@ -1,288 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AsyncInitableIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * This is the asynchronous version of #GInitable; it behaves the same - * in all ways except that initialization is asynchronous. For more details - * see the descriptions on #GInitable. - * - * A class may implement both the #GInitable and #GAsyncInitable interfaces. - * - * Users of objects implementing this are not intended to use the interface - * method directly; instead it will be used automatically in various ways. - * For C applications you generally just call g_async_initable_new_async() - * directly, or indirectly via a foo_thing_new_async() wrapper. This will call - * g_async_initable_init_async() under the cover, calling back with %NULL and - * a set %GError on failure. - * - * A typical implementation might look something like this: - * - * |[ - * enum { - * NOT_INITIALIZED, - * INITIALIZING, - * INITIALIZED - * }; - * - * static void - * _foo_ready_cb (Foo *self) - * { - * GList *l; - * - * self->priv->state = INITIALIZED; - * - * for (l = self->priv->init_results; l != NULL; l = l->next) - * { - * GTask *task = l->data; - * - * if (self->priv->success) - * g_task_return_boolean (task, TRUE); - * else - * g_task_return_new_error (task, ...); - * g_object_unref (task); - * } - * - * g_list_free (self->priv->init_results); - * self->priv->init_results = NULL; - * } - * - * static void - * foo_init_async (GAsyncInitable *initable, - * int io_priority, - * GCancellable *cancellable, - * GAsyncReadyCallback callback, - * gpointer user_data) - * { - * Foo *self = FOO (initable); - * GTask *task; - * - * task = g_task_new (initable, cancellable, callback, user_data); - * g_task_set_name (task, G_STRFUNC); - * - * switch (self->priv->state) - * { - * case NOT_INITIALIZED: - * _foo_get_ready (self); - * self->priv->init_results = g_list_append (self->priv->init_results, - * task); - * self->priv->state = INITIALIZING; - * break; - * case INITIALIZING: - * self->priv->init_results = g_list_append (self->priv->init_results, - * task); - * break; - * case INITIALIZED: - * if (!self->priv->success) - * g_task_return_new_error (task, ...); - * else - * g_task_return_boolean (task, TRUE); - * g_object_unref (task); - * break; - * } - * } - * - * static gboolean - * foo_init_finish (GAsyncInitable *initable, - * GAsyncResult *result, - * GError **error) - * { - * g_return_val_if_fail (g_task_is_valid (result, initable), FALSE); - * - * return g_task_propagate_boolean (G_TASK (result), error); - * } - * - * static void - * foo_async_initable_iface_init (gpointer g_iface, - * gpointer data) - * { - * GAsyncInitableIface *iface = g_iface; - * - * iface->init_async = foo_init_async; - * iface->init_finish = foo_init_finish; - * } - * ]| - * - * Since: 2.22 - */ -public interface AsyncInitableIF{ - /** Get the main Gtk struct */ - public GAsyncInitable* getAsyncInitableStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_async_initable_get_type(); - } - - /** - * Helper function for constructing #GAsyncInitable object. This is - * similar to g_object_new_valist() but also initializes the object - * asynchronously. - * - * When the initialization is finished, @callback will be called. You can - * then call g_async_initable_new_finish() to get the new object and check - * for any errors. - * - * Params: - * objectType = a #GType supporting #GAsyncInitable. - * firstPropertyName = the name of the first property, followed by - * the value, and other property value pairs, and ended by %NULL. - * varArgs = The var args list generated from @first_property_name. - * ioPriority = the [I/O priority][io-priority] of the operation - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the initialization is - * finished - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public static void newValistAsync(GType objectType, string firstPropertyName, void* varArgs, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_async_initable_new_valist_async(objectType, Str.toStringz(firstPropertyName), varArgs, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Helper function for constructing #GAsyncInitable object. This is - * similar to g_object_newv() but also initializes the object asynchronously. - * - * When the initialization is finished, @callback will be called. You can - * then call g_async_initable_new_finish() to get the new object and check - * for any errors. - * - * Deprecated: Use g_object_new_with_properties() and - * g_async_initable_init_async() instead. See #GParameter for more information. - * - * Params: - * objectType = a #GType supporting #GAsyncInitable. - * nParameters = the number of parameters in @parameters - * parameters = the parameters to use to construct the object - * ioPriority = the [I/O priority][io-priority] of the operation - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the initialization is - * finished - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public static void newvAsync(GType objectType, uint nParameters, GParameter* parameters, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_async_initable_newv_async(objectType, nParameters, parameters, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Starts asynchronous initialization of the object implementing the - * interface. This must be done before any real use of the object after - * initial construction. If the object also implements #GInitable you can - * optionally call g_initable_init() instead. - * - * This method is intended for language bindings. If writing in C, - * g_async_initable_new_async() should typically be used instead. - * - * When the initialization is finished, @callback will be called. You can - * then call g_async_initable_init_finish() to get the result of the - * initialization. - * - * Implementations may also support cancellation. If @cancellable is not - * %NULL, then initialization can be cancelled by triggering the cancellable - * object from another thread. If the operation was cancelled, the error - * %G_IO_ERROR_CANCELLED will be returned. If @cancellable is not %NULL, and - * the object doesn't support cancellable initialization, the error - * %G_IO_ERROR_NOT_SUPPORTED will be returned. - * - * As with #GInitable, if the object is not initialized, or initialization - * returns with an error, then all operations on the object except - * g_object_ref() and g_object_unref() are considered to be invalid, and - * have undefined behaviour. They will often fail with g_critical() or - * g_warning(), but this must not be relied on. - * - * Callers should not assume that a class which implements #GAsyncInitable can - * be initialized multiple times; for more information, see g_initable_init(). - * If a class explicitly supports being initialized multiple times, - * implementation requires yielding all subsequent calls to init_async() on the - * results of the first call. - * - * For classes that also support the #GInitable interface, the default - * implementation of this method will run the g_initable_init() function - * in a thread, so if you want to support asynchronous initialization via - * threads, just implement the #GAsyncInitable interface without overriding - * any interface methods. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the operation - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void initAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes asynchronous initialization and returns the result. - * See g_async_initable_init_async(). - * - * Params: - * res = a #GAsyncResult. - * - * Returns: %TRUE if successful. If an error has occurred, this function - * will return %FALSE and set @error appropriately if present. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool initFinish(AsyncResultIF res); - - /** - * Finishes the async construction for the various g_async_initable_new - * calls, returning the created object or %NULL on error. - * - * Params: - * res = the #GAsyncResult from the callback - * - * Returns: a newly created #GObject, - * or %NULL on error. Free with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ObjectG newFinish(AsyncResultIF res); -} diff --git a/generated/gtkd/gio/AsyncInitableT.d b/generated/gtkd/gio/AsyncInitableT.d deleted file mode 100644 index 928a3357b..000000000 --- a/generated/gtkd/gio/AsyncInitableT.d +++ /dev/null @@ -1,262 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AsyncInitableT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import gobject.ObjectG; - - -/** - * This is the asynchronous version of #GInitable; it behaves the same - * in all ways except that initialization is asynchronous. For more details - * see the descriptions on #GInitable. - * - * A class may implement both the #GInitable and #GAsyncInitable interfaces. - * - * Users of objects implementing this are not intended to use the interface - * method directly; instead it will be used automatically in various ways. - * For C applications you generally just call g_async_initable_new_async() - * directly, or indirectly via a foo_thing_new_async() wrapper. This will call - * g_async_initable_init_async() under the cover, calling back with %NULL and - * a set %GError on failure. - * - * A typical implementation might look something like this: - * - * |[ - * enum { - * NOT_INITIALIZED, - * INITIALIZING, - * INITIALIZED - * }; - * - * static void - * _foo_ready_cb (Foo *self) - * { - * GList *l; - * - * self->priv->state = INITIALIZED; - * - * for (l = self->priv->init_results; l != NULL; l = l->next) - * { - * GTask *task = l->data; - * - * if (self->priv->success) - * g_task_return_boolean (task, TRUE); - * else - * g_task_return_new_error (task, ...); - * g_object_unref (task); - * } - * - * g_list_free (self->priv->init_results); - * self->priv->init_results = NULL; - * } - * - * static void - * foo_init_async (GAsyncInitable *initable, - * int io_priority, - * GCancellable *cancellable, - * GAsyncReadyCallback callback, - * gpointer user_data) - * { - * Foo *self = FOO (initable); - * GTask *task; - * - * task = g_task_new (initable, cancellable, callback, user_data); - * g_task_set_name (task, G_STRFUNC); - * - * switch (self->priv->state) - * { - * case NOT_INITIALIZED: - * _foo_get_ready (self); - * self->priv->init_results = g_list_append (self->priv->init_results, - * task); - * self->priv->state = INITIALIZING; - * break; - * case INITIALIZING: - * self->priv->init_results = g_list_append (self->priv->init_results, - * task); - * break; - * case INITIALIZED: - * if (!self->priv->success) - * g_task_return_new_error (task, ...); - * else - * g_task_return_boolean (task, TRUE); - * g_object_unref (task); - * break; - * } - * } - * - * static gboolean - * foo_init_finish (GAsyncInitable *initable, - * GAsyncResult *result, - * GError **error) - * { - * g_return_val_if_fail (g_task_is_valid (result, initable), FALSE); - * - * return g_task_propagate_boolean (G_TASK (result), error); - * } - * - * static void - * foo_async_initable_iface_init (gpointer g_iface, - * gpointer data) - * { - * GAsyncInitableIface *iface = g_iface; - * - * iface->init_async = foo_init_async; - * iface->init_finish = foo_init_finish; - * } - * ]| - * - * Since: 2.22 - */ -public template AsyncInitableT(TStruct) -{ - /** Get the main Gtk struct */ - public GAsyncInitable* getAsyncInitableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GAsyncInitable*)getStruct(); - } - - - /** - * Starts asynchronous initialization of the object implementing the - * interface. This must be done before any real use of the object after - * initial construction. If the object also implements #GInitable you can - * optionally call g_initable_init() instead. - * - * This method is intended for language bindings. If writing in C, - * g_async_initable_new_async() should typically be used instead. - * - * When the initialization is finished, @callback will be called. You can - * then call g_async_initable_init_finish() to get the result of the - * initialization. - * - * Implementations may also support cancellation. If @cancellable is not - * %NULL, then initialization can be cancelled by triggering the cancellable - * object from another thread. If the operation was cancelled, the error - * %G_IO_ERROR_CANCELLED will be returned. If @cancellable is not %NULL, and - * the object doesn't support cancellable initialization, the error - * %G_IO_ERROR_NOT_SUPPORTED will be returned. - * - * As with #GInitable, if the object is not initialized, or initialization - * returns with an error, then all operations on the object except - * g_object_ref() and g_object_unref() are considered to be invalid, and - * have undefined behaviour. They will often fail with g_critical() or - * g_warning(), but this must not be relied on. - * - * Callers should not assume that a class which implements #GAsyncInitable can - * be initialized multiple times; for more information, see g_initable_init(). - * If a class explicitly supports being initialized multiple times, - * implementation requires yielding all subsequent calls to init_async() on the - * results of the first call. - * - * For classes that also support the #GInitable interface, the default - * implementation of this method will run the g_initable_init() function - * in a thread, so if you want to support asynchronous initialization via - * threads, just implement the #GAsyncInitable interface without overriding - * any interface methods. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the operation - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void initAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_async_initable_init_async(getAsyncInitableStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes asynchronous initialization and returns the result. - * See g_async_initable_init_async(). - * - * Params: - * res = a #GAsyncResult. - * - * Returns: %TRUE if successful. If an error has occurred, this function - * will return %FALSE and set @error appropriately if present. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool initFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_async_initable_init_finish(getAsyncInitableStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Finishes the async construction for the various g_async_initable_new - * calls, returning the created object or %NULL on error. - * - * Params: - * res = the #GAsyncResult from the callback - * - * Returns: a newly created #GObject, - * or %NULL on error. Free with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ObjectG newFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_async_initable_new_finish(getAsyncInitableStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p, true); - } -} diff --git a/generated/gtkd/gio/AsyncResultIF.d b/generated/gtkd/gio/AsyncResultIF.d deleted file mode 100644 index 1f0e895c4..000000000 --- a/generated/gtkd/gio/AsyncResultIF.d +++ /dev/null @@ -1,183 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AsyncResultIF; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * Provides a base class for implementing asynchronous function results. - * - * Asynchronous operations are broken up into two separate operations - * which are chained together by a #GAsyncReadyCallback. To begin - * an asynchronous operation, provide a #GAsyncReadyCallback to the - * asynchronous function. This callback will be triggered when the - * operation has completed, and must be run in a later iteration of - * the [thread-default main context][g-main-context-push-thread-default] - * from where the operation was initiated. It will be passed a - * #GAsyncResult instance filled with the details of the operation's - * success or failure, the object the asynchronous function was - * started for and any error codes returned. The asynchronous callback - * function is then expected to call the corresponding "_finish()" - * function, passing the object the function was called for, the - * #GAsyncResult instance, and (optionally) an @error to grab any - * error conditions that may have occurred. - * - * The "_finish()" function for an operation takes the generic result - * (of type #GAsyncResult) and returns the specific result that the - * operation in question yields (e.g. a #GFileEnumerator for a - * "enumerate children" operation). If the result or error status of the - * operation is not needed, there is no need to call the "_finish()" - * function; GIO will take care of cleaning up the result and error - * information after the #GAsyncReadyCallback returns. You can pass - * %NULL for the #GAsyncReadyCallback if you don't need to take any - * action at all after the operation completes. Applications may also - * take a reference to the #GAsyncResult and call "_finish()" later; - * however, the "_finish()" function may be called at most once. - * - * Example of a typical asynchronous operation flow: - * |[ - * void _theoretical_frobnitz_async (Theoretical *t, - * GCancellable *c, - * GAsyncReadyCallback cb, - * gpointer u); - * - * gboolean _theoretical_frobnitz_finish (Theoretical *t, - * GAsyncResult *res, - * GError **e); - * - * static void - * frobnitz_result_func (GObject *source_object, - * GAsyncResult *res, - * gpointer user_data) - * { - * gboolean success = FALSE; - * - * success = _theoretical_frobnitz_finish (source_object, res, NULL); - * - * if (success) - * g_printf ("Hurray!\n"); - * else - * g_printf ("Uh oh!\n"); - * - * ... - * - * } - * - * int main (int argc, void *argv[]) - * { - * ... - * - * _theoretical_frobnitz_async (theoretical_data, - * NULL, - * frobnitz_result_func, - * NULL); - * - * ... - * } - * ]| - * - * The callback for an asynchronous operation is called only once, and is - * always called, even in the case of a cancelled operation. On cancellation - * the result is a %G_IO_ERROR_CANCELLED error. - * - * ## I/O Priority # {#io-priority} - * - * Many I/O-related asynchronous operations have a priority parameter, - * which is used in certain cases to determine the order in which - * operations are executed. They are not used to determine system-wide - * I/O scheduling. Priorities are integers, with lower numbers indicating - * higher priority. It is recommended to choose priorities between - * %G_PRIORITY_LOW and %G_PRIORITY_HIGH, with %G_PRIORITY_DEFAULT - * as a default. - */ -public interface AsyncResultIF{ - /** Get the main Gtk struct */ - public GAsyncResult* getAsyncResultStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_async_result_get_type(); - } - - /** - * Gets the source object from a #GAsyncResult. - * - * Returns: a new reference to the source - * object for the @res, or %NULL if there is none. - */ - public ObjectG getSourceObject(); - - /** - * Gets the user data from a #GAsyncResult. - * - * Returns: the user data for @res. - */ - public void* getUserData(); - - /** - * Checks if @res has the given @source_tag (generally a function - * pointer indicating the function @res was created by). - * - * Params: - * sourceTag = an application-defined tag - * - * Returns: %TRUE if @res has the indicated @source_tag, %FALSE if - * not. - * - * Since: 2.34 - */ - public bool isTagged(void* sourceTag); - - /** - * If @res is a #GSimpleAsyncResult, this is equivalent to - * g_simple_async_result_propagate_error(). Otherwise it returns - * %FALSE. - * - * This can be used for legacy error handling in async *_finish() - * wrapper functions that traditionally handled #GSimpleAsyncResult - * error returns themselves rather than calling into the virtual method. - * This should not be used in new code; #GAsyncResult errors that are - * set by virtual methods should also be extracted by virtual methods, - * to enable subclasses to chain up correctly. - * - * Returns: %TRUE if @error is has been filled in with an error from - * @res, %FALSE if not. - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public bool legacyPropagateError(); -} diff --git a/generated/gtkd/gio/AsyncResultT.d b/generated/gtkd/gio/AsyncResultT.d deleted file mode 100644 index 6875ea4db..000000000 --- a/generated/gtkd/gio/AsyncResultT.d +++ /dev/null @@ -1,208 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.AsyncResultT; - -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import gobject.ObjectG; - - -/** - * Provides a base class for implementing asynchronous function results. - * - * Asynchronous operations are broken up into two separate operations - * which are chained together by a #GAsyncReadyCallback. To begin - * an asynchronous operation, provide a #GAsyncReadyCallback to the - * asynchronous function. This callback will be triggered when the - * operation has completed, and must be run in a later iteration of - * the [thread-default main context][g-main-context-push-thread-default] - * from where the operation was initiated. It will be passed a - * #GAsyncResult instance filled with the details of the operation's - * success or failure, the object the asynchronous function was - * started for and any error codes returned. The asynchronous callback - * function is then expected to call the corresponding "_finish()" - * function, passing the object the function was called for, the - * #GAsyncResult instance, and (optionally) an @error to grab any - * error conditions that may have occurred. - * - * The "_finish()" function for an operation takes the generic result - * (of type #GAsyncResult) and returns the specific result that the - * operation in question yields (e.g. a #GFileEnumerator for a - * "enumerate children" operation). If the result or error status of the - * operation is not needed, there is no need to call the "_finish()" - * function; GIO will take care of cleaning up the result and error - * information after the #GAsyncReadyCallback returns. You can pass - * %NULL for the #GAsyncReadyCallback if you don't need to take any - * action at all after the operation completes. Applications may also - * take a reference to the #GAsyncResult and call "_finish()" later; - * however, the "_finish()" function may be called at most once. - * - * Example of a typical asynchronous operation flow: - * |[ - * void _theoretical_frobnitz_async (Theoretical *t, - * GCancellable *c, - * GAsyncReadyCallback cb, - * gpointer u); - * - * gboolean _theoretical_frobnitz_finish (Theoretical *t, - * GAsyncResult *res, - * GError **e); - * - * static void - * frobnitz_result_func (GObject *source_object, - * GAsyncResult *res, - * gpointer user_data) - * { - * gboolean success = FALSE; - * - * success = _theoretical_frobnitz_finish (source_object, res, NULL); - * - * if (success) - * g_printf ("Hurray!\n"); - * else - * g_printf ("Uh oh!\n"); - * - * ... - * - * } - * - * int main (int argc, void *argv[]) - * { - * ... - * - * _theoretical_frobnitz_async (theoretical_data, - * NULL, - * frobnitz_result_func, - * NULL); - * - * ... - * } - * ]| - * - * The callback for an asynchronous operation is called only once, and is - * always called, even in the case of a cancelled operation. On cancellation - * the result is a %G_IO_ERROR_CANCELLED error. - * - * ## I/O Priority # {#io-priority} - * - * Many I/O-related asynchronous operations have a priority parameter, - * which is used in certain cases to determine the order in which - * operations are executed. They are not used to determine system-wide - * I/O scheduling. Priorities are integers, with lower numbers indicating - * higher priority. It is recommended to choose priorities between - * %G_PRIORITY_LOW and %G_PRIORITY_HIGH, with %G_PRIORITY_DEFAULT - * as a default. - */ -public template AsyncResultT(TStruct) -{ - /** Get the main Gtk struct */ - public GAsyncResult* getAsyncResultStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GAsyncResult*)getStruct(); - } - - - /** - * Gets the source object from a #GAsyncResult. - * - * Returns: a new reference to the source - * object for the @res, or %NULL if there is none. - */ - public ObjectG getSourceObject() - { - auto __p = g_async_result_get_source_object(getAsyncResultStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p, true); - } - - /** - * Gets the user data from a #GAsyncResult. - * - * Returns: the user data for @res. - */ - public void* getUserData() - { - return g_async_result_get_user_data(getAsyncResultStruct()); - } - - /** - * Checks if @res has the given @source_tag (generally a function - * pointer indicating the function @res was created by). - * - * Params: - * sourceTag = an application-defined tag - * - * Returns: %TRUE if @res has the indicated @source_tag, %FALSE if - * not. - * - * Since: 2.34 - */ - public bool isTagged(void* sourceTag) - { - return g_async_result_is_tagged(getAsyncResultStruct(), sourceTag) != 0; - } - - /** - * If @res is a #GSimpleAsyncResult, this is equivalent to - * g_simple_async_result_propagate_error(). Otherwise it returns - * %FALSE. - * - * This can be used for legacy error handling in async *_finish() - * wrapper functions that traditionally handled #GSimpleAsyncResult - * error returns themselves rather than calling into the virtual method. - * This should not be used in new code; #GAsyncResult errors that are - * set by virtual methods should also be extracted by virtual methods, - * to enable subclasses to chain up correctly. - * - * Returns: %TRUE if @error is has been filled in with an error from - * @res, %FALSE if not. - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public bool legacyPropagateError() - { - GError* err = null; - - auto __p = g_async_result_legacy_propagate_error(getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/BufferedInputStream.d b/generated/gtkd/gio/BufferedInputStream.d deleted file mode 100644 index e8e3ca477..000000000 --- a/generated/gtkd/gio/BufferedInputStream.d +++ /dev/null @@ -1,340 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.BufferedInputStream; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.FilterInputStream; -private import gio.InputStream; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * Buffered input stream implements #GFilterInputStream and provides - * for buffered reads. - * - * By default, #GBufferedInputStream's buffer size is set at 4 kilobytes. - * - * To create a buffered input stream, use g_buffered_input_stream_new(), - * or g_buffered_input_stream_new_sized() to specify the buffer's size at - * construction. - * - * To get the size of a buffer within a buffered input stream, use - * g_buffered_input_stream_get_buffer_size(). To change the size of a - * buffered input stream's buffer, use - * g_buffered_input_stream_set_buffer_size(). Note that the buffer's size - * cannot be reduced below the size of the data within the buffer. - */ -public class BufferedInputStream : FilterInputStream, SeekableIF -{ - /** the main Gtk struct */ - protected GBufferedInputStream* gBufferedInputStream; - - /** Get the main Gtk struct */ - public GBufferedInputStream* getBufferedInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gBufferedInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gBufferedInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GBufferedInputStream* gBufferedInputStream, bool ownedRef = false) - { - this.gBufferedInputStream = gBufferedInputStream; - super(cast(GFilterInputStream*)gBufferedInputStream, ownedRef); - } - - // add the Seekable capabilities - mixin SeekableT!(GBufferedInputStream); - - /** - * Returns the buffer with the currently available bytes. The returned - * buffer must not be modified and will become invalid when reading from - * the stream or filling the buffer. - * - * Params: - * count = a #gsize to get the number of bytes available in the buffer - * - * Return: read-only buffer - */ - public ubyte[] peekBuffer() - { - size_t count; - - auto p = g_buffered_input_stream_peek_buffer(gBufferedInputStream, &count); - - return (cast(ubyte*)p)[0 .. count]; - } - - /** - */ - - /** */ - public static GType getType() - { - return g_buffered_input_stream_get_type(); - } - - /** - * Creates a new #GInputStream from the given @base_stream, with - * a buffer set to the default size (4 kilobytes). - * - * Params: - * baseStream = a #GInputStream - * - * Returns: a #GInputStream for the given @base_stream. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream baseStream) - { - auto __p = g_buffered_input_stream_new((baseStream is null) ? null : baseStream.getInputStreamStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GBufferedInputStream*) __p, true); - } - - /** - * Creates a new #GBufferedInputStream from the given @base_stream, - * with a buffer set to @size. - * - * Params: - * baseStream = a #GInputStream - * size = a #gsize - * - * Returns: a #GInputStream. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream baseStream, size_t size) - { - auto __p = g_buffered_input_stream_new_sized((baseStream is null) ? null : baseStream.getInputStreamStruct(), size); - - if(__p is null) - { - throw new ConstructionException("null returned by new_sized"); - } - - this(cast(GBufferedInputStream*) __p, true); - } - - /** - * Tries to read @count bytes from the stream into the buffer. - * Will block during this read. - * - * If @count is zero, returns zero and does nothing. A value of @count - * larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, the number of bytes read into the buffer is returned. - * It is not an error if this is not the same as the requested size, as it - * can happen e.g. near the end of a file. Zero is returned on end of file - * (or if @count is zero), but never otherwise. - * - * If @count is -1 then the attempted read size is equal to the number of - * bytes that are required to fill the buffer. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * On error -1 is returned and @error is set accordingly. - * - * For the asynchronous, non-blocking, version of this function, see - * g_buffered_input_stream_fill_async(). - * - * Params: - * count = the number of bytes that will be read from the stream - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: the number of bytes read into @stream's buffer, up to @count, - * or -1 on error. - * - * Throws: GException on failure. - */ - public ptrdiff_t fill(ptrdiff_t count, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_buffered_input_stream_fill(gBufferedInputStream, count, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Reads data into @stream's buffer asynchronously, up to @count size. - * @io_priority can be used to prioritize reads. For the synchronous - * version of this function, see g_buffered_input_stream_fill(). - * - * If @count is -1 then the attempted read size is equal to the number - * of bytes that are required to fill the buffer. - * - * Params: - * count = the number of bytes that will be read from the stream - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object - * callback = a #GAsyncReadyCallback - * userData = a #gpointer - */ - public void fillAsync(ptrdiff_t count, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_buffered_input_stream_fill_async(gBufferedInputStream, count, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous read. - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #gssize of the read stream, or `-1` on an error. - * - * Throws: GException on failure. - */ - public ptrdiff_t fillFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_buffered_input_stream_fill_finish(gBufferedInputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the size of the available data within the stream. - * - * Returns: size of the available stream. - */ - public size_t getAvailable() - { - return g_buffered_input_stream_get_available(gBufferedInputStream); - } - - /** - * Gets the size of the input buffer. - * - * Returns: the current buffer size. - */ - public size_t getBufferSize() - { - return g_buffered_input_stream_get_buffer_size(gBufferedInputStream); - } - - /** - * Peeks in the buffer, copying data of size @count into @buffer, - * offset @offset bytes. - * - * Params: - * buffer = a pointer to - * an allocated chunk of memory - * offset = a #gsize - * - * Returns: a #gsize of the number of bytes peeked, or -1 on error. - */ - public size_t peek(ubyte[] buffer, size_t offset) - { - return g_buffered_input_stream_peek(gBufferedInputStream, buffer.ptr, offset, cast(size_t)buffer.length); - } - - /** - * Tries to read a single byte from the stream or the buffer. Will block - * during this read. - * - * On success, the byte read from the stream is returned. On end of stream - * -1 is returned but it's not an exceptional error and @error is not set. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * On error -1 is returned and @error is set accordingly. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: the byte read from the @stream, or -1 on end of stream or error. - * - * Throws: GException on failure. - */ - public int readByte(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_buffered_input_stream_read_byte(gBufferedInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the size of the internal buffer of @stream to @size, or to the - * size of the contents of the buffer. The buffer can never be resized - * smaller than its current contents. - * - * Params: - * size = a #gsize - */ - public void setBufferSize(size_t size) - { - g_buffered_input_stream_set_buffer_size(gBufferedInputStream, size); - } -} diff --git a/generated/gtkd/gio/BufferedOutputStream.d b/generated/gtkd/gio/BufferedOutputStream.d deleted file mode 100644 index cef0d0c3e..000000000 --- a/generated/gtkd/gio/BufferedOutputStream.d +++ /dev/null @@ -1,181 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.BufferedOutputStream; - -private import gio.FilterOutputStream; -private import gio.OutputStream; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * Buffered output stream implements #GFilterOutputStream and provides - * for buffered writes. - * - * By default, #GBufferedOutputStream's buffer size is set at 4 kilobytes. - * - * To create a buffered output stream, use g_buffered_output_stream_new(), - * or g_buffered_output_stream_new_sized() to specify the buffer's size - * at construction. - * - * To get the size of a buffer within a buffered input stream, use - * g_buffered_output_stream_get_buffer_size(). To change the size of a - * buffered output stream's buffer, use - * g_buffered_output_stream_set_buffer_size(). Note that the buffer's - * size cannot be reduced below the size of the data within the buffer. - */ -public class BufferedOutputStream : FilterOutputStream, SeekableIF -{ - /** the main Gtk struct */ - protected GBufferedOutputStream* gBufferedOutputStream; - - /** Get the main Gtk struct */ - public GBufferedOutputStream* getBufferedOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gBufferedOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gBufferedOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GBufferedOutputStream* gBufferedOutputStream, bool ownedRef = false) - { - this.gBufferedOutputStream = gBufferedOutputStream; - super(cast(GFilterOutputStream*)gBufferedOutputStream, ownedRef); - } - - // add the Seekable capabilities - mixin SeekableT!(GBufferedOutputStream); - - - /** */ - public static GType getType() - { - return g_buffered_output_stream_get_type(); - } - - /** - * Creates a new buffered output stream for a base stream. - * - * Params: - * baseStream = a #GOutputStream. - * - * Returns: a #GOutputStream for the given @base_stream. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(OutputStream baseStream) - { - auto __p = g_buffered_output_stream_new((baseStream is null) ? null : baseStream.getOutputStreamStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GBufferedOutputStream*) __p, true); - } - - /** - * Creates a new buffered output stream with a given buffer size. - * - * Params: - * baseStream = a #GOutputStream. - * size = a #gsize. - * - * Returns: a #GOutputStream with an internal buffer set to @size. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(OutputStream baseStream, size_t size) - { - auto __p = g_buffered_output_stream_new_sized((baseStream is null) ? null : baseStream.getOutputStreamStruct(), size); - - if(__p is null) - { - throw new ConstructionException("null returned by new_sized"); - } - - this(cast(GBufferedOutputStream*) __p, true); - } - - /** - * Checks if the buffer automatically grows as data is added. - * - * Returns: %TRUE if the @stream's buffer automatically grows, - * %FALSE otherwise. - */ - public bool getAutoGrow() - { - return g_buffered_output_stream_get_auto_grow(gBufferedOutputStream) != 0; - } - - /** - * Gets the size of the buffer in the @stream. - * - * Returns: the current size of the buffer. - */ - public size_t getBufferSize() - { - return g_buffered_output_stream_get_buffer_size(gBufferedOutputStream); - } - - /** - * Sets whether or not the @stream's buffer should automatically grow. - * If @auto_grow is true, then each write will just make the buffer - * larger, and you must manually flush the buffer to actually write out - * the data to the underlying stream. - * - * Params: - * autoGrow = a #gboolean. - */ - public void setAutoGrow(bool autoGrow) - { - g_buffered_output_stream_set_auto_grow(gBufferedOutputStream, autoGrow); - } - - /** - * Sets the size of the internal buffer to @size. - * - * Params: - * size = a #gsize. - */ - public void setBufferSize(size_t size) - { - g_buffered_output_stream_set_buffer_size(gBufferedOutputStream, size); - } -} diff --git a/generated/gtkd/gio/BytesIcon.d b/generated/gtkd/gio/BytesIcon.d deleted file mode 100644 index 0cf2ec133..000000000 --- a/generated/gtkd/gio/BytesIcon.d +++ /dev/null @@ -1,131 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.BytesIcon; - -private import gio.IconIF; -private import gio.IconT; -private import gio.LoadableIconIF; -private import gio.LoadableIconT; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GBytesIcon specifies an image held in memory in a common format (usually - * png) to be used as icon. - * - * Since: 2.38 - */ -public class BytesIcon : ObjectG, IconIF, LoadableIconIF -{ - /** the main Gtk struct */ - protected GBytesIcon* gBytesIcon; - - /** Get the main Gtk struct */ - public GBytesIcon* getBytesIconStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gBytesIcon; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gBytesIcon; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GBytesIcon* gBytesIcon, bool ownedRef = false) - { - this.gBytesIcon = gBytesIcon; - super(cast(GObject*)gBytesIcon, ownedRef); - } - - // add the Icon capabilities - mixin IconT!(GBytesIcon); - - // add the LoadableIcon capabilities - mixin LoadableIconT!(GBytesIcon); - - - /** */ - public static GType getType() - { - return g_bytes_icon_get_type(); - } - - /** - * Creates a new icon for a bytes. - * - * This cannot fail, but loading and interpreting the bytes may fail later on - * (for example, if g_loadable_icon_load() is called) if the image is invalid. - * - * Params: - * bytes = a #GBytes. - * - * Returns: a #GIcon for the given - * @bytes. - * - * Since: 2.38 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Bytes bytes) - { - auto __p = g_bytes_icon_new((bytes is null) ? null : bytes.getBytesStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GBytesIcon*) __p, true); - } - - /** - * Gets the #GBytes associated with the given @icon. - * - * Returns: a #GBytes. - * - * Since: 2.38 - */ - public Bytes getBytes() - { - auto __p = g_bytes_icon_get_bytes(gBytesIcon); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p); - } -} diff --git a/generated/gtkd/gio/Cancellable.d b/generated/gtkd/gio/Cancellable.d deleted file mode 100644 index b9b6e0722..000000000 --- a/generated/gtkd/gio/Cancellable.d +++ /dev/null @@ -1,439 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Cancellable; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Source; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * GCancellable is a thread-safe operation cancellation stack used - * throughout GIO to allow for cancellation of synchronous and - * asynchronous operations. - */ -public class Cancellable : ObjectG -{ - /** the main Gtk struct */ - protected GCancellable* gCancellable; - - /** Get the main Gtk struct */ - public GCancellable* getCancellableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gCancellable; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gCancellable; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GCancellable* gCancellable, bool ownedRef = false) - { - this.gCancellable = gCancellable; - super(cast(GObject*)gCancellable, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_cancellable_get_type(); - } - - /** - * Creates a new #GCancellable object. - * - * Applications that want to start one or more operations - * that should be cancellable should create a #GCancellable - * and pass it to the operations. - * - * One #GCancellable can be used in multiple consecutive - * operations or in multiple concurrent operations. - * - * Returns: a #GCancellable. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_cancellable_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GCancellable*) __p, true); - } - - /** - * Gets the top cancellable from the stack. - * - * Returns: a #GCancellable from the top - * of the stack, or %NULL if the stack is empty. - */ - public static Cancellable getCurrent() - { - auto __p = g_cancellable_get_current(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Cancellable)(cast(GCancellable*) __p); - } - - /** - * Will set @cancellable to cancelled, and will emit the - * #GCancellable::cancelled signal. (However, see the warning about - * race conditions in the documentation for that signal if you are - * planning to connect to it.) - * - * This function is thread-safe. In other words, you can safely call - * it from a thread other than the one running the operation that was - * passed the @cancellable. - * - * If @cancellable is %NULL, this function returns immediately for convenience. - * - * The convention within GIO is that cancelling an asynchronous - * operation causes it to complete asynchronously. That is, if you - * cancel the operation from the same thread in which it is running, - * then the operation's #GAsyncReadyCallback will not be invoked until - * the application returns to the main loop. - */ - public void cancel() - { - g_cancellable_cancel(gCancellable); - } - - /** - * Convenience function to connect to the #GCancellable::cancelled - * signal. Also handles the race condition that may happen - * if the cancellable is cancelled right before connecting. - * - * @callback is called at most once, either directly at the - * time of the connect if @cancellable is already cancelled, - * or when @cancellable is cancelled in some thread. - * - * @data_destroy_func will be called when the handler is - * disconnected, or immediately if the cancellable is already - * cancelled. - * - * See #GCancellable::cancelled for details on how to use this. - * - * Since GLib 2.40, the lock protecting @cancellable is not held when - * @callback is invoked. This lifts a restriction in place for - * earlier GLib versions which now makes it easier to write cleanup - * code that unconditionally invokes e.g. g_cancellable_cancel(). - * - * Params: - * callback = The #GCallback to connect. - * data = Data to pass to @callback. - * dataDestroyFunc = Free function for @data or %NULL. - * - * Returns: The id of the signal handler or 0 if @cancellable has already - * been cancelled. - * - * Since: 2.22 - */ - public gulong connect(GCallback callback, void* data, GDestroyNotify dataDestroyFunc) - { - return g_cancellable_connect(gCancellable, callback, data, dataDestroyFunc); - } - - /** - * Disconnects a handler from a cancellable instance similar to - * g_signal_handler_disconnect(). Additionally, in the event that a - * signal handler is currently running, this call will block until the - * handler has finished. Calling this function from a - * #GCancellable::cancelled signal handler will therefore result in a - * deadlock. - * - * This avoids a race condition where a thread cancels at the - * same time as the cancellable operation is finished and the - * signal handler is removed. See #GCancellable::cancelled for - * details on how to use this. - * - * If @cancellable is %NULL or @handler_id is `0` this function does - * nothing. - * - * Params: - * handlerId = Handler id of the handler to be disconnected, or `0`. - * - * Since: 2.22 - */ - public void disconnect(gulong handlerId) - { - g_cancellable_disconnect(gCancellable, handlerId); - } - - /** - * Gets the file descriptor for a cancellable job. This can be used to - * implement cancellable operations on Unix systems. The returned fd will - * turn readable when @cancellable is cancelled. - * - * You are not supposed to read from the fd yourself, just check for - * readable status. Reading to unset the readable status is done - * with g_cancellable_reset(). - * - * After a successful return from this function, you should use - * g_cancellable_release_fd() to free up resources allocated for - * the returned file descriptor. - * - * See also g_cancellable_make_pollfd(). - * - * Returns: A valid file descriptor. `-1` if the file descriptor - * is not supported, or on errors. - */ - public int getFd() - { - return g_cancellable_get_fd(gCancellable); - } - - /** - * Checks if a cancellable job has been cancelled. - * - * Returns: %TRUE if @cancellable is cancelled, - * FALSE if called with %NULL or if item is not cancelled. - */ - public bool isCancelled() - { - return g_cancellable_is_cancelled(gCancellable) != 0; - } - - /** - * Creates a #GPollFD corresponding to @cancellable; this can be passed - * to g_poll() and used to poll for cancellation. This is useful both - * for unix systems without a native poll and for portability to - * windows. - * - * When this function returns %TRUE, you should use - * g_cancellable_release_fd() to free up resources allocated for the - * @pollfd. After a %FALSE return, do not call g_cancellable_release_fd(). - * - * If this function returns %FALSE, either no @cancellable was given or - * resource limits prevent this function from allocating the necessary - * structures for polling. (On Linux, you will likely have reached - * the maximum number of file descriptors.) The suggested way to handle - * these cases is to ignore the @cancellable. - * - * You are not supposed to read from the fd yourself, just check for - * readable status. Reading to unset the readable status is done - * with g_cancellable_reset(). - * - * Params: - * pollfd = a pointer to a #GPollFD - * - * Returns: %TRUE if @pollfd was successfully initialized, %FALSE on - * failure to prepare the cancellable. - * - * Since: 2.22 - */ - public bool makePollfd(GPollFD* pollfd) - { - return g_cancellable_make_pollfd(gCancellable, pollfd) != 0; - } - - /** - * Pops @cancellable off the cancellable stack (verifying that @cancellable - * is on the top of the stack). - */ - public void popCurrent() - { - g_cancellable_pop_current(gCancellable); - } - - /** - * Pushes @cancellable onto the cancellable stack. The current - * cancellable can then be received using g_cancellable_get_current(). - * - * This is useful when implementing cancellable operations in - * code that does not allow you to pass down the cancellable object. - * - * This is typically called automatically by e.g. #GFile operations, - * so you rarely have to call this yourself. - */ - public void pushCurrent() - { - g_cancellable_push_current(gCancellable); - } - - /** - * Releases a resources previously allocated by g_cancellable_get_fd() - * or g_cancellable_make_pollfd(). - * - * For compatibility reasons with older releases, calling this function - * is not strictly required, the resources will be automatically freed - * when the @cancellable is finalized. However, the @cancellable will - * block scarce file descriptors until it is finalized if this function - * is not called. This can cause the application to run out of file - * descriptors when many #GCancellables are used at the same time. - * - * Since: 2.22 - */ - public void releaseFd() - { - g_cancellable_release_fd(gCancellable); - } - - /** - * Resets @cancellable to its uncancelled state. - * - * If cancellable is currently in use by any cancellable operation - * then the behavior of this function is undefined. - * - * Note that it is generally not a good idea to reuse an existing - * cancellable for more operations after it has been cancelled once, - * as this function might tempt you to do. The recommended practice - * is to drop the reference to a cancellable after cancelling it, - * and let it die with the outstanding async operations. You should - * create a fresh cancellable for further async operations. - */ - public void reset() - { - g_cancellable_reset(gCancellable); - } - - /** - * If the @cancellable is cancelled, sets the error to notify - * that the operation was cancelled. - * - * Returns: %TRUE if @cancellable was cancelled, %FALSE if it was not - * - * Throws: GException on failure. - */ - public bool setErrorIfCancelled() - { - GError* err = null; - - auto __p = g_cancellable_set_error_if_cancelled(gCancellable, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a source that triggers if @cancellable is cancelled and - * calls its callback of type #GCancellableSourceFunc. This is - * primarily useful for attaching to another (non-cancellable) source - * with g_source_add_child_source() to add cancellability to it. - * - * For convenience, you can call this with a %NULL #GCancellable, - * in which case the source will never trigger. - * - * The new #GSource will hold a reference to the #GCancellable. - * - * Returns: the new #GSource. - * - * Since: 2.28 - */ - public Source sourceNew() - { - auto __p = g_cancellable_source_new(gCancellable); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); - } - - /** - * Emitted when the operation has been cancelled. - * - * Can be used by implementations of cancellable operations. If the - * operation is cancelled from another thread, the signal will be - * emitted in the thread that cancelled the operation, not the - * thread that is running the operation. - * - * Note that disconnecting from this signal (or any signal) in a - * multi-threaded program is prone to race conditions. For instance - * it is possible that a signal handler may be invoked even after - * a call to g_signal_handler_disconnect() for that handler has - * already returned. - * - * There is also a problem when cancellation happens right before - * connecting to the signal. If this happens the signal will - * unexpectedly not be emitted, and checking before connecting to - * the signal leaves a race condition where this is still happening. - * - * In order to make it safe and easy to connect handlers there - * are two helper functions: g_cancellable_connect() and - * g_cancellable_disconnect() which protect against problems - * like this. - * - * An example of how to us this: - * |[ - * // Make sure we don't do unnecessary work if already cancelled - * if (g_cancellable_set_error_if_cancelled (cancellable, error)) - * return; - * - * // Set up all the data needed to be able to handle cancellation - * // of the operation - * my_data = my_data_new (...); - * - * id = 0; - * if (cancellable) - * id = g_cancellable_connect (cancellable, - * G_CALLBACK (cancelled_handler) - * data, NULL); - * - * // cancellable operation here... - * - * g_cancellable_disconnect (cancellable, id); - * - * // cancelled_handler is never called after this, it is now safe - * // to free the data - * my_data_free (my_data); - * ]| - * - * Note that the cancelled signal is emitted in the thread that - * the user cancelled from, which may be the main thread. So, the - * cancellable signal should not do something that can block. - */ - gulong addOnCancelled(void delegate(Cancellable) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "cancelled", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/CharsetConverter.d b/generated/gtkd/gio/CharsetConverter.d deleted file mode 100644 index 7e71c4803..000000000 --- a/generated/gtkd/gio/CharsetConverter.d +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.CharsetConverter; - -private import gio.ConverterIF; -private import gio.ConverterT; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GCharsetConverter is an implementation of #GConverter based on - * GIConv. - */ -public class CharsetConverter : ObjectG, ConverterIF, InitableIF -{ - /** the main Gtk struct */ - protected GCharsetConverter* gCharsetConverter; - - /** Get the main Gtk struct */ - public GCharsetConverter* getCharsetConverterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gCharsetConverter; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gCharsetConverter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GCharsetConverter* gCharsetConverter, bool ownedRef = false) - { - this.gCharsetConverter = gCharsetConverter; - super(cast(GObject*)gCharsetConverter, ownedRef); - } - - // add the Converter capabilities - mixin ConverterT!(GCharsetConverter); - - // add the Initable capabilities - mixin InitableT!(GCharsetConverter); - - - /** */ - public static GType getType() - { - return g_charset_converter_get_type(); - } - - /** - * Creates a new #GCharsetConverter. - * - * Params: - * toCharset = destination charset - * fromCharset = source charset - * - * Returns: a new #GCharsetConverter or %NULL on error. - * - * Since: 2.24 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string toCharset, string fromCharset) - { - GError* err = null; - - auto __p = g_charset_converter_new(Str.toStringz(toCharset), Str.toStringz(fromCharset), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GCharsetConverter*) __p, true); - } - - /** - * Gets the number of fallbacks that @converter has applied so far. - * - * Returns: the number of fallbacks that @converter has applied - * - * Since: 2.24 - */ - public uint getNumFallbacks() - { - return g_charset_converter_get_num_fallbacks(gCharsetConverter); - } - - /** - * Gets the #GCharsetConverter:use-fallback property. - * - * Returns: %TRUE if fallbacks are used by @converter - * - * Since: 2.24 - */ - public bool getUseFallback() - { - return g_charset_converter_get_use_fallback(gCharsetConverter) != 0; - } - - /** - * Sets the #GCharsetConverter:use-fallback property. - * - * Params: - * useFallback = %TRUE to use fallbacks - * - * Since: 2.24 - */ - public void setUseFallback(bool useFallback) - { - g_charset_converter_set_use_fallback(gCharsetConverter, useFallback); - } -} diff --git a/generated/gtkd/gio/ContentType.d b/generated/gtkd/gio/ContentType.d deleted file mode 100644 index 075a4063b..000000000 --- a/generated/gtkd/gio/ContentType.d +++ /dev/null @@ -1,368 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ContentType; - -private import gio.FileIF; -private import gio.IconIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** */ -public struct ContentType -{ - - /** - * Checks if a content type can be executable. Note that for instance - * things like text files can be executables (i.e. scripts and batch files). - * - * Params: - * type = a content type string - * - * Returns: %TRUE if the file type corresponds to a type that - * can be executable, %FALSE otherwise. - */ - public static bool canBeExecutable(string type) - { - return g_content_type_can_be_executable(Str.toStringz(type)) != 0; - } - - /** - * Compares two content types for equality. - * - * Params: - * type1 = a content type string - * type2 = a content type string - * - * Returns: %TRUE if the two strings are identical or equivalent, - * %FALSE otherwise. - */ - public static bool equals(string type1, string type2) - { - return g_content_type_equals(Str.toStringz(type1), Str.toStringz(type2)) != 0; - } - - /** - * Tries to find a content type based on the mime type name. - * - * Params: - * mimeType = a mime type string - * - * Returns: Newly allocated string with content type or - * %NULL. Free with g_free() - * - * Since: 2.18 - */ - public static string fromMimeType(string mimeType) - { - auto retStr = g_content_type_from_mime_type(Str.toStringz(mimeType)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the human readable description of the content type. - * - * Params: - * type = a content type string - * - * Returns: a short description of the content type @type. Free the - * returned string with g_free() - */ - public static string getDescription(string type) - { - auto retStr = g_content_type_get_description(Str.toStringz(type)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the generic icon name for a content type. - * - * See the - * [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) - * specification for more on the generic icon name. - * - * Params: - * type = a content type string - * - * Returns: the registered generic icon name for the given @type, - * or %NULL if unknown. Free with g_free() - * - * Since: 2.34 - */ - public static string getGenericIconName(string type) - { - auto retStr = g_content_type_get_generic_icon_name(Str.toStringz(type)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the icon for a content type. - * - * Params: - * type = a content type string - * - * Returns: #GIcon corresponding to the content type. Free the returned - * object with g_object_unref() - */ - public static IconIF getIcon(string type) - { - auto __p = g_content_type_get_icon(Str.toStringz(type)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Gets the mime type for the content type, if one is registered. - * - * Params: - * type = a content type string - * - * Returns: the registered mime type for the - * given @type, or %NULL if unknown; free with g_free(). - */ - public static string getMimeType(string type) - { - auto retStr = g_content_type_get_mime_type(Str.toStringz(type)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the symbolic icon for a content type. - * - * Params: - * type = a content type string - * - * Returns: symbolic #GIcon corresponding to the content type. - * Free the returned object with g_object_unref() - * - * Since: 2.34 - */ - public static IconIF getSymbolicIcon(string type) - { - auto __p = g_content_type_get_symbolic_icon(Str.toStringz(type)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Guesses the content type based on example data. If the function is - * uncertain, @result_uncertain will be set to %TRUE. Either @filename - * or @data may be %NULL, in which case the guess will be based solely - * on the other argument. - * - * Params: - * filename = a string, or %NULL - * data = a stream of data, or %NULL - * resultUncertain = return location for the certainty - * of the result, or %NULL - * - * Returns: a string indicating a guessed content type for the - * given data. Free with g_free() - */ - public static string typeGuess(string filename, char[] data, out bool resultUncertain) - { - int outresultUncertain; - - auto retStr = g_content_type_guess(Str.toStringz(filename), data.ptr, cast(size_t)data.length, &outresultUncertain); - - resultUncertain = (outresultUncertain == 1); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Tries to guess the type of the tree with root @root, by - * looking at the files it contains. The result is an array - * of content types, with the best guess coming first. - * - * The types returned all have the form x-content/foo, e.g. - * x-content/audio-cdda (for audio CDs) or x-content/image-dcf - * (for a camera memory card). See the - * [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) - * specification for more on x-content types. - * - * This function is useful in the implementation of - * g_mount_guess_content_type(). - * - * Params: - * root = the root of the tree to guess a type for - * - * Returns: an %NULL-terminated - * array of zero or more content types. Free with g_strfreev() - * - * Since: 2.18 - */ - public static string[] guessForTree(FileIF root) - { - auto retStr = g_content_type_guess_for_tree((root is null) ? null : root.getFileStruct()); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Determines if @type is a subset of @supertype. - * - * Params: - * type = a content type string - * supertype = a content type string - * - * Returns: %TRUE if @type is a kind of @supertype, - * %FALSE otherwise. - */ - public static bool isA(string type, string supertype) - { - return g_content_type_is_a(Str.toStringz(type), Str.toStringz(supertype)) != 0; - } - - /** - * Checks if the content type is the generic "unknown" type. - * On UNIX this is the "application/octet-stream" mimetype, - * while on win32 it is "*" and on OSX it is a dynamic type - * or octet-stream. - * - * Params: - * type = a content type string - * - * Returns: %TRUE if the type is the unknown type. - */ - public static bool isUnknown(string type) - { - return g_content_type_is_unknown(Str.toStringz(type)) != 0; - } - - /** - * Gets a list of strings containing all the registered content types - * known to the system. The list and its data should be freed using - * `g_list_free_full (list, g_free)`. - * - * Returns: list of the registered - * content types - */ - public static ListG contentTypesGetRegistered() - { - auto __p = g_content_types_get_registered(); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Determines if @type is a subset of @mime_type. - * Convenience wrapper around g_content_type_is_a(). - * - * Params: - * type = a content type string - * mimeType = a mime type string - * - * Returns: %TRUE if @type is a kind of @mime_type, - * %FALSE otherwise. - * - * Since: 2.52 - */ - public static bool isMimeType(string type, string mimeType) - { - return g_content_type_is_mime_type(Str.toStringz(type), Str.toStringz(mimeType)) != 0; - } - - /** - * Get the list of directories which MIME data is loaded from. See - * g_content_type_set_mime_dirs() for details. - * - * Returns: %NULL-terminated list of - * directories to load MIME data from, including any `mime/` subdirectory, - * and with the first directory to try listed first - * - * Since: 2.60 - */ - public static string[] getMimeDirs() - { - return Str.toStringArray(g_content_type_get_mime_dirs()); - } - - /** - * Set the list of directories used by GIO to load the MIME database. - * If @dirs is %NULL, the directories used are the default: - * - * - the `mime` subdirectory of the directory in `$XDG_DATA_HOME` - * - the `mime` subdirectory of every directory in `$XDG_DATA_DIRS` - * - * This function is intended to be used when writing tests that depend on - * information stored in the MIME database, in order to control the data. - * - * Typically, in case your tests use %G_TEST_OPTION_ISOLATE_DIRS, but they - * depend on the system’s MIME database, you should call this function - * with @dirs set to %NULL before calling g_test_init(), for instance: - * - * |[ - * // Load MIME data from the system - * g_content_type_set_mime_dirs (NULL); - * // Isolate the environment - * g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL); - * - * … - * - * return g_test_run (); - * ]| - * - * Params: - * dirs = %NULL-terminated list of - * directories to load MIME data from, including any `mime/` subdirectory, - * and with the first directory to try listed first - * - * Since: 2.60 - */ - public static void setMimeDirs(string[] dirs) - { - g_content_type_set_mime_dirs(Str.toStringzArray(dirs)); - } -} diff --git a/generated/gtkd/gio/ConverterIF.d b/generated/gtkd/gio/ConverterIF.d deleted file mode 100644 index 2421c47ef..000000000 --- a/generated/gtkd/gio/ConverterIF.d +++ /dev/null @@ -1,167 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ConverterIF; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; - - -/** - * #GConverter is implemented by objects that convert - * binary data in various ways. The conversion can be - * stateful and may fail at any place. - * - * Some example conversions are: character set conversion, - * compression, decompression and regular expression - * replace. - * - * Since: 2.24 - */ -public interface ConverterIF{ - /** Get the main Gtk struct */ - public GConverter* getConverterStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_converter_get_type(); - } - - /** - * This is the main operation used when converting data. It is to be called - * multiple times in a loop, and each time it will do some work, i.e. - * producing some output (in @outbuf) or consuming some input (from @inbuf) or - * both. If its not possible to do any work an error is returned. - * - * Note that a single call may not consume all input (or any input at all). - * Also a call may produce output even if given no input, due to state stored - * in the converter producing output. - * - * If any data was either produced or consumed, and then an error happens, then - * only the successful conversion is reported and the error is returned on the - * next call. - * - * A full conversion loop involves calling this method repeatedly, each time - * giving it new input and space output space. When there is no more input - * data after the data in @inbuf, the flag %G_CONVERTER_INPUT_AT_END must be set. - * The loop will be (unless some error happens) returning %G_CONVERTER_CONVERTED - * each time until all data is consumed and all output is produced, then - * %G_CONVERTER_FINISHED is returned instead. Note, that %G_CONVERTER_FINISHED - * may be returned even if %G_CONVERTER_INPUT_AT_END is not set, for instance - * in a decompression converter where the end of data is detectable from the - * data (and there might even be other data after the end of the compressed data). - * - * When some data has successfully been converted @bytes_read and is set to - * the number of bytes read from @inbuf, and @bytes_written is set to indicate - * how many bytes was written to @outbuf. If there are more data to output - * or consume (i.e. unless the %G_CONVERTER_INPUT_AT_END is specified) then - * %G_CONVERTER_CONVERTED is returned, and if no more data is to be output - * then %G_CONVERTER_FINISHED is returned. - * - * On error %G_CONVERTER_ERROR is returned and @error is set accordingly. - * Some errors need special handling: - * - * %G_IO_ERROR_NO_SPACE is returned if there is not enough space - * to write the resulting converted data, the application should - * call the function again with a larger @outbuf to continue. - * - * %G_IO_ERROR_PARTIAL_INPUT is returned if there is not enough - * input to fully determine what the conversion should produce, - * and the %G_CONVERTER_INPUT_AT_END flag is not set. This happens for - * example with an incomplete multibyte sequence when converting text, - * or when a regexp matches up to the end of the input (and may match - * further input). It may also happen when @inbuf_size is zero and - * there is no more data to produce. - * - * When this happens the application should read more input and then - * call the function again. If further input shows that there is no - * more data call the function again with the same data but with - * the %G_CONVERTER_INPUT_AT_END flag set. This may cause the conversion - * to finish as e.g. in the regexp match case (or, to fail again with - * %G_IO_ERROR_PARTIAL_INPUT in e.g. a charset conversion where the - * input is actually partial). - * - * After g_converter_convert() has returned %G_CONVERTER_FINISHED the - * converter object is in an invalid state where its not allowed - * to call g_converter_convert() anymore. At this time you can only - * free the object or call g_converter_reset() to reset it to the - * initial state. - * - * If the flag %G_CONVERTER_FLUSH is set then conversion is modified - * to try to write out all internal state to the output. The application - * has to call the function multiple times with the flag set, and when - * the available input has been consumed and all internal state has - * been produced then %G_CONVERTER_FLUSHED (or %G_CONVERTER_FINISHED if - * really at the end) is returned instead of %G_CONVERTER_CONVERTED. - * This is somewhat similar to what happens at the end of the input stream, - * but done in the middle of the data. - * - * This has different meanings for different conversions. For instance - * in a compression converter it would mean that we flush all the - * compression state into output such that if you uncompress the - * compressed data you get back all the input data. Doing this may - * make the final file larger due to padding though. Another example - * is a regexp conversion, where if you at the end of the flushed data - * have a match, but there is also a potential longer match. In the - * non-flushed case we would ask for more input, but when flushing we - * treat this as the end of input and do the match. - * - * Flushing is not always possible (like if a charset converter flushes - * at a partial multibyte sequence). Converters are supposed to try - * to produce as much output as possible and then return an error - * (typically %G_IO_ERROR_PARTIAL_INPUT). - * - * Params: - * inbuf = the buffer - * containing the data to convert. - * outbuf = a buffer to write - * converted data in. - * flags = a #GConverterFlags controlling the conversion details - * bytesRead = will be set to the number of bytes read from @inbuf on success - * bytesWritten = will be set to the number of bytes written to @outbuf on success - * - * Returns: a #GConverterResult, %G_CONVERTER_ERROR on error. - * - * Since: 2.24 - * - * Throws: GException on failure. - */ - public GConverterResult convert(ubyte[] inbuf, ubyte[] outbuf, GConverterFlags flags, out size_t bytesRead, out size_t bytesWritten); - - /** - * Resets all internal state in the converter, making it behave - * as if it was just created. If the converter has any internal - * state that would produce output then that output is lost. - * - * Since: 2.24 - */ - public void reset(); -} diff --git a/generated/gtkd/gio/ConverterInputStream.d b/generated/gtkd/gio/ConverterInputStream.d deleted file mode 100644 index d85326f4e..000000000 --- a/generated/gtkd/gio/ConverterInputStream.d +++ /dev/null @@ -1,124 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ConverterInputStream; - -private import gio.ConverterIF; -private import gio.FilterInputStream; -private import gio.InputStream; -private import gio.PollableInputStreamIF; -private import gio.PollableInputStreamT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * Converter input stream implements #GInputStream and allows - * conversion of data of various types during reading. - * - * As of GLib 2.34, #GConverterInputStream implements - * #GPollableInputStream. - */ -public class ConverterInputStream : FilterInputStream, PollableInputStreamIF -{ - /** the main Gtk struct */ - protected GConverterInputStream* gConverterInputStream; - - /** Get the main Gtk struct */ - public GConverterInputStream* getConverterInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gConverterInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gConverterInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GConverterInputStream* gConverterInputStream, bool ownedRef = false) - { - this.gConverterInputStream = gConverterInputStream; - super(cast(GFilterInputStream*)gConverterInputStream, ownedRef); - } - - // add the PollableInputStream capabilities - mixin PollableInputStreamT!(GConverterInputStream); - - - /** */ - public static GType getType() - { - return g_converter_input_stream_get_type(); - } - - /** - * Creates a new converter input stream for the @base_stream. - * - * Params: - * baseStream = a #GInputStream - * converter = a #GConverter - * - * Returns: a new #GInputStream. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream baseStream, ConverterIF converter) - { - auto __p = g_converter_input_stream_new((baseStream is null) ? null : baseStream.getInputStreamStruct(), (converter is null) ? null : converter.getConverterStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GConverterInputStream*) __p, true); - } - - /** - * Gets the #GConverter that is used by @converter_stream. - * - * Returns: the converter of the converter input stream - * - * Since: 2.24 - */ - public ConverterIF getConverter() - { - auto __p = g_converter_input_stream_get_converter(gConverterInputStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ConverterIF)(cast(GConverter*) __p); - } -} diff --git a/generated/gtkd/gio/ConverterOutputStream.d b/generated/gtkd/gio/ConverterOutputStream.d deleted file mode 100644 index f13bec747..000000000 --- a/generated/gtkd/gio/ConverterOutputStream.d +++ /dev/null @@ -1,124 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ConverterOutputStream; - -private import gio.ConverterIF; -private import gio.FilterOutputStream; -private import gio.OutputStream; -private import gio.PollableOutputStreamIF; -private import gio.PollableOutputStreamT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * Converter output stream implements #GOutputStream and allows - * conversion of data of various types during reading. - * - * As of GLib 2.34, #GConverterOutputStream implements - * #GPollableOutputStream. - */ -public class ConverterOutputStream : FilterOutputStream, PollableOutputStreamIF -{ - /** the main Gtk struct */ - protected GConverterOutputStream* gConverterOutputStream; - - /** Get the main Gtk struct */ - public GConverterOutputStream* getConverterOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gConverterOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gConverterOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GConverterOutputStream* gConverterOutputStream, bool ownedRef = false) - { - this.gConverterOutputStream = gConverterOutputStream; - super(cast(GFilterOutputStream*)gConverterOutputStream, ownedRef); - } - - // add the PollableOutputStream capabilities - mixin PollableOutputStreamT!(GConverterOutputStream); - - - /** */ - public static GType getType() - { - return g_converter_output_stream_get_type(); - } - - /** - * Creates a new converter output stream for the @base_stream. - * - * Params: - * baseStream = a #GOutputStream - * converter = a #GConverter - * - * Returns: a new #GOutputStream. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(OutputStream baseStream, ConverterIF converter) - { - auto __p = g_converter_output_stream_new((baseStream is null) ? null : baseStream.getOutputStreamStruct(), (converter is null) ? null : converter.getConverterStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GConverterOutputStream*) __p, true); - } - - /** - * Gets the #GConverter that is used by @converter_stream. - * - * Returns: the converter of the converter output stream - * - * Since: 2.24 - */ - public ConverterIF getConverter() - { - auto __p = g_converter_output_stream_get_converter(gConverterOutputStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ConverterIF)(cast(GConverter*) __p); - } -} diff --git a/generated/gtkd/gio/ConverterT.d b/generated/gtkd/gio/ConverterT.d deleted file mode 100644 index e72898ab7..000000000 --- a/generated/gtkd/gio/ConverterT.d +++ /dev/null @@ -1,179 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ConverterT; - -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; - - -/** - * #GConverter is implemented by objects that convert - * binary data in various ways. The conversion can be - * stateful and may fail at any place. - * - * Some example conversions are: character set conversion, - * compression, decompression and regular expression - * replace. - * - * Since: 2.24 - */ -public template ConverterT(TStruct) -{ - /** Get the main Gtk struct */ - public GConverter* getConverterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GConverter*)getStruct(); - } - - - /** - * This is the main operation used when converting data. It is to be called - * multiple times in a loop, and each time it will do some work, i.e. - * producing some output (in @outbuf) or consuming some input (from @inbuf) or - * both. If its not possible to do any work an error is returned. - * - * Note that a single call may not consume all input (or any input at all). - * Also a call may produce output even if given no input, due to state stored - * in the converter producing output. - * - * If any data was either produced or consumed, and then an error happens, then - * only the successful conversion is reported and the error is returned on the - * next call. - * - * A full conversion loop involves calling this method repeatedly, each time - * giving it new input and space output space. When there is no more input - * data after the data in @inbuf, the flag %G_CONVERTER_INPUT_AT_END must be set. - * The loop will be (unless some error happens) returning %G_CONVERTER_CONVERTED - * each time until all data is consumed and all output is produced, then - * %G_CONVERTER_FINISHED is returned instead. Note, that %G_CONVERTER_FINISHED - * may be returned even if %G_CONVERTER_INPUT_AT_END is not set, for instance - * in a decompression converter where the end of data is detectable from the - * data (and there might even be other data after the end of the compressed data). - * - * When some data has successfully been converted @bytes_read and is set to - * the number of bytes read from @inbuf, and @bytes_written is set to indicate - * how many bytes was written to @outbuf. If there are more data to output - * or consume (i.e. unless the %G_CONVERTER_INPUT_AT_END is specified) then - * %G_CONVERTER_CONVERTED is returned, and if no more data is to be output - * then %G_CONVERTER_FINISHED is returned. - * - * On error %G_CONVERTER_ERROR is returned and @error is set accordingly. - * Some errors need special handling: - * - * %G_IO_ERROR_NO_SPACE is returned if there is not enough space - * to write the resulting converted data, the application should - * call the function again with a larger @outbuf to continue. - * - * %G_IO_ERROR_PARTIAL_INPUT is returned if there is not enough - * input to fully determine what the conversion should produce, - * and the %G_CONVERTER_INPUT_AT_END flag is not set. This happens for - * example with an incomplete multibyte sequence when converting text, - * or when a regexp matches up to the end of the input (and may match - * further input). It may also happen when @inbuf_size is zero and - * there is no more data to produce. - * - * When this happens the application should read more input and then - * call the function again. If further input shows that there is no - * more data call the function again with the same data but with - * the %G_CONVERTER_INPUT_AT_END flag set. This may cause the conversion - * to finish as e.g. in the regexp match case (or, to fail again with - * %G_IO_ERROR_PARTIAL_INPUT in e.g. a charset conversion where the - * input is actually partial). - * - * After g_converter_convert() has returned %G_CONVERTER_FINISHED the - * converter object is in an invalid state where its not allowed - * to call g_converter_convert() anymore. At this time you can only - * free the object or call g_converter_reset() to reset it to the - * initial state. - * - * If the flag %G_CONVERTER_FLUSH is set then conversion is modified - * to try to write out all internal state to the output. The application - * has to call the function multiple times with the flag set, and when - * the available input has been consumed and all internal state has - * been produced then %G_CONVERTER_FLUSHED (or %G_CONVERTER_FINISHED if - * really at the end) is returned instead of %G_CONVERTER_CONVERTED. - * This is somewhat similar to what happens at the end of the input stream, - * but done in the middle of the data. - * - * This has different meanings for different conversions. For instance - * in a compression converter it would mean that we flush all the - * compression state into output such that if you uncompress the - * compressed data you get back all the input data. Doing this may - * make the final file larger due to padding though. Another example - * is a regexp conversion, where if you at the end of the flushed data - * have a match, but there is also a potential longer match. In the - * non-flushed case we would ask for more input, but when flushing we - * treat this as the end of input and do the match. - * - * Flushing is not always possible (like if a charset converter flushes - * at a partial multibyte sequence). Converters are supposed to try - * to produce as much output as possible and then return an error - * (typically %G_IO_ERROR_PARTIAL_INPUT). - * - * Params: - * inbuf = the buffer - * containing the data to convert. - * outbuf = a buffer to write - * converted data in. - * flags = a #GConverterFlags controlling the conversion details - * bytesRead = will be set to the number of bytes read from @inbuf on success - * bytesWritten = will be set to the number of bytes written to @outbuf on success - * - * Returns: a #GConverterResult, %G_CONVERTER_ERROR on error. - * - * Since: 2.24 - * - * Throws: GException on failure. - */ - public GConverterResult convert(ubyte[] inbuf, ubyte[] outbuf, GConverterFlags flags, out size_t bytesRead, out size_t bytesWritten) - { - GError* err = null; - - auto __p = g_converter_convert(getConverterStruct(), inbuf.ptr, cast(size_t)inbuf.length, outbuf.ptr, cast(size_t)outbuf.length, flags, &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Resets all internal state in the converter, making it behave - * as if it was just created. If the converter has any internal - * state that would produce output then that output is lost. - * - * Since: 2.24 - */ - public void reset() - { - g_converter_reset(getConverterStruct()); - } -} diff --git a/generated/gtkd/gio/Credentials.d b/generated/gtkd/gio/Credentials.d deleted file mode 100644 index 977bd96df..000000000 --- a/generated/gtkd/gio/Credentials.d +++ /dev/null @@ -1,309 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Credentials; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * The #GCredentials type is a reference-counted wrapper for native - * credentials. This information is typically used for identifying, - * authenticating and authorizing other processes. - * - * Some operating systems supports looking up the credentials of the - * remote peer of a communication endpoint - see e.g. - * g_socket_get_credentials(). - * - * Some operating systems supports securely sending and receiving - * credentials over a Unix Domain Socket, see - * #GUnixCredentialsMessage, g_unix_connection_send_credentials() and - * g_unix_connection_receive_credentials() for details. - * - * On Linux, the native credential type is a `struct ucred` - see the - * unix(7) man page for details. This corresponds to - * %G_CREDENTIALS_TYPE_LINUX_UCRED. - * - * On Apple operating systems (including iOS, tvOS, and macOS), - * the native credential type is a `struct xucred`. - * This corresponds to %G_CREDENTIALS_TYPE_APPLE_XUCRED. - * - * On FreeBSD, Debian GNU/kFreeBSD, and GNU/Hurd, the native - * credential type is a `struct cmsgcred`. This corresponds - * to %G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED. - * - * On NetBSD, the native credential type is a `struct unpcbid`. - * This corresponds to %G_CREDENTIALS_TYPE_NETBSD_UNPCBID. - * - * On OpenBSD, the native credential type is a `struct sockpeercred`. - * This corresponds to %G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED. - * - * On Solaris (including OpenSolaris and its derivatives), the native - * credential type is a `ucred_t`. This corresponds to - * %G_CREDENTIALS_TYPE_SOLARIS_UCRED. - * - * Since: 2.26 - */ -public class Credentials : ObjectG -{ - /** the main Gtk struct */ - protected GCredentials* gCredentials; - - /** Get the main Gtk struct */ - public GCredentials* getCredentialsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gCredentials; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gCredentials; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GCredentials* gCredentials, bool ownedRef = false) - { - this.gCredentials = gCredentials; - super(cast(GObject*)gCredentials, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_credentials_get_type(); - } - - /** - * Creates a new #GCredentials object with credentials matching the - * the current process. - * - * Returns: A #GCredentials. Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_credentials_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GCredentials*) __p, true); - } - - /** - * Gets a pointer to native credentials of type @native_type from - * @credentials. - * - * It is a programming error (which will cause a warning to be - * logged) to use this method if there is no #GCredentials support for - * the OS or if @native_type isn't supported by the OS. - * - * Params: - * nativeType = The type of native credentials to get. - * - * Returns: The pointer to native credentials or - * %NULL if there is no #GCredentials support for the OS or if @native_type - * isn't supported by the OS. Do not free the returned data, it is owned - * by @credentials. - * - * Since: 2.26 - */ - public void* getNative(GCredentialsType nativeType) - { - return g_credentials_get_native(gCredentials, nativeType); - } - - /** - * Tries to get the UNIX process identifier from @credentials. This - * method is only available on UNIX platforms. - * - * This operation can fail if #GCredentials is not supported on the - * OS or if the native credentials type does not contain information - * about the UNIX process ID (for example this is the case for - * %G_CREDENTIALS_TYPE_APPLE_XUCRED). - * - * Returns: The UNIX process ID, or `-1` if @error is set. - * - * Since: 2.36 - * - * Throws: GException on failure. - */ - public pid_t getUnixPid() - { - GError* err = null; - - auto __p = g_credentials_get_unix_pid(gCredentials, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tries to get the UNIX user identifier from @credentials. This - * method is only available on UNIX platforms. - * - * This operation can fail if #GCredentials is not supported on the - * OS or if the native credentials type does not contain information - * about the UNIX user. - * - * Returns: The UNIX user identifier or `-1` if @error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public uid_t getUnixUser() - { - GError* err = null; - - auto __p = g_credentials_get_unix_user(gCredentials, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks if @credentials and @other_credentials is the same user. - * - * This operation can fail if #GCredentials is not supported on the - * the OS. - * - * Params: - * otherCredentials = A #GCredentials. - * - * Returns: %TRUE if @credentials and @other_credentials has the same - * user, %FALSE otherwise or if @error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool isSameUser(Credentials otherCredentials) - { - GError* err = null; - - auto __p = g_credentials_is_same_user(gCredentials, (otherCredentials is null) ? null : otherCredentials.getCredentialsStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Copies the native credentials of type @native_type from @native - * into @credentials. - * - * It is a programming error (which will cause a warning to be - * logged) to use this method if there is no #GCredentials support for - * the OS or if @native_type isn't supported by the OS. - * - * Params: - * nativeType = The type of native credentials to set. - * native = A pointer to native credentials. - * - * Since: 2.26 - */ - public void setNative(GCredentialsType nativeType, void* native) - { - g_credentials_set_native(gCredentials, nativeType, native); - } - - /** - * Tries to set the UNIX user identifier on @credentials. This method - * is only available on UNIX platforms. - * - * This operation can fail if #GCredentials is not supported on the - * OS or if the native credentials type does not contain information - * about the UNIX user. It can also fail if the OS does not allow the - * use of "spoofed" credentials. - * - * Params: - * uid = The UNIX user identifier to set. - * - * Returns: %TRUE if @uid was set, %FALSE if error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool setUnixUser(uid_t uid) - { - GError* err = null; - - auto __p = g_credentials_set_unix_user(gCredentials, uid, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a human-readable textual representation of @credentials - * that can be used in logging and debug messages. The format of the - * returned string may change in future GLib release. - * - * Returns: A string that should be freed with g_free(). - * - * Since: 2.26 - */ - public override string toString() - { - auto retStr = g_credentials_to_string(gCredentials); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gtkd/gio/DBusActionGroup.d b/generated/gtkd/gio/DBusActionGroup.d deleted file mode 100644 index d8fb4f495..000000000 --- a/generated/gtkd/gio/DBusActionGroup.d +++ /dev/null @@ -1,137 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusActionGroup; - -private import gio.ActionGroupIF; -private import gio.ActionGroupT; -private import gio.DBusConnection; -private import gio.RemoteActionGroupIF; -private import gio.RemoteActionGroupT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GDBusActionGroup is an implementation of the #GActionGroup - * interface that can be used as a proxy for an action group - * that is exported over D-Bus with g_dbus_connection_export_action_group(). - */ -public class DBusActionGroup : ObjectG, ActionGroupIF, RemoteActionGroupIF -{ - /** the main Gtk struct */ - protected GDBusActionGroup* gDBusActionGroup; - - /** Get the main Gtk struct */ - public GDBusActionGroup* getDBusActionGroupStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusActionGroup; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusActionGroup; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusActionGroup* gDBusActionGroup, bool ownedRef = false) - { - this.gDBusActionGroup = gDBusActionGroup; - super(cast(GObject*)gDBusActionGroup, ownedRef); - } - - // add the ActionGroup capabilities - mixin ActionGroupT!(GDBusActionGroup); - - // add the RemoteActionGroup capabilities - mixin RemoteActionGroupT!(GDBusActionGroup); - - /** - * See_Also: get(). - */ - this(DBusConnection connection, string busName, string objectPath) - { - auto p = g_dbus_action_group_get((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(busName), Str.toStringz(objectPath)); - - if(p is null) - { - throw new ConstructionException("null returned by g_dbus_action_group_get"); - } - this(cast(GDBusActionGroup*) p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_dbus_action_group_get_type(); - } - - /** - * Obtains a #GDBusActionGroup for the action group which is exported at - * the given @bus_name and @object_path. - * - * The thread default main context is taken at the time of this call. - * All signals on the menu model (and any linked models) are reported - * with respect to this context. All calls on the returned menu model - * (and linked models) must also originate from this same context, with - * the thread default main context unchanged. - * - * This call is non-blocking. The returned action group may or may not - * already be filled in. The correct thing to do is connect the signals - * for the action group to monitor for changes and then to call - * g_action_group_list_actions() to get the initial list. - * - * Params: - * connection = A #GDBusConnection - * busName = the bus name which exports the action - * group or %NULL if @connection is not a message bus connection - * objectPath = the object path at which the action group is exported - * - * Returns: a #GDBusActionGroup - * - * Since: 2.32 - */ - public static DBusActionGroup get(DBusConnection connection, string busName, string objectPath) - { - auto __p = g_dbus_action_group_get((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(busName), Str.toStringz(objectPath)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusActionGroup)(cast(GDBusActionGroup*) __p, true); - } -} diff --git a/generated/gtkd/gio/DBusAnnotationInfo.d b/generated/gtkd/gio/DBusAnnotationInfo.d deleted file mode 100644 index 1c8da8f85..000000000 --- a/generated/gtkd/gio/DBusAnnotationInfo.d +++ /dev/null @@ -1,211 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusAnnotationInfo; - -private import gio.c.functions; -public import gio.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Information about an annotation. - * - * Since: 2.26 - */ -public final class DBusAnnotationInfo -{ - /** the main Gtk struct */ - protected GDBusAnnotationInfo* gDBusAnnotationInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDBusAnnotationInfo* getDBusAnnotationInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusAnnotationInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDBusAnnotationInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusAnnotationInfo* gDBusAnnotationInfo, bool ownedRef = false) - { - this.gDBusAnnotationInfo = gDBusAnnotationInfo; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_dbus_annotation_info_unref(gDBusAnnotationInfo); - } - - /** - * Looks up the value of an annotation. - * - * The cost of this function is O(n) in number of annotations. - * - * Params: - * annotations = A %NULL-terminated array of annotations or %NULL. - * name = The name of the annotation to look up. - * - * Return: The value or %NULL if not found. Do not free, it is owned by @annotations. - * - * Since: 2.26 - */ - public static string lookup(DBusAnnotationInfo[] annotations, string name) - { - GDBusAnnotationInfo*[] annotationsArray = new GDBusAnnotationInfo*[annotations.length+1]; - for ( int i = 0; i < annotations.length ; i++ ) - { - annotationsArray[i] = annotations[i].getDBusAnnotationInfoStruct(); - } - annotationsArray[$-1] = null; - - return Str.toString(g_dbus_annotation_info_lookup(annotationsArray.ptr, Str.toStringz(name))); - } - - /** - */ - - /** - * The reference count or -1 if statically allocated. - */ - public @property int refCount() - { - return gDBusAnnotationInfo.refCount; - } - - /** Ditto */ - public @property void refCount(int value) - { - gDBusAnnotationInfo.refCount = value; - } - - /** - * The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated". - */ - public @property string key() - { - return Str.toString(gDBusAnnotationInfo.key); - } - - /** Ditto */ - public @property void key(string value) - { - gDBusAnnotationInfo.key = Str.toStringz(value); - } - - /** - * The value of the annotation. - */ - public @property string value() - { - return Str.toString(gDBusAnnotationInfo.value); - } - - /** Ditto */ - public @property void value(string value) - { - gDBusAnnotationInfo.value = Str.toStringz(value); - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - public @property DBusAnnotationInfo[] annotations() - { - DBusAnnotationInfo[] arr = new DBusAnnotationInfo[getArrayLength(gDBusAnnotationInfo.annotations)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusAnnotationInfo)(gDBusAnnotationInfo.annotations[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void annotations(DBusAnnotationInfo[] value) - { - GDBusAnnotationInfo*[] arr = new GDBusAnnotationInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusAnnotationInfoStruct(); - } - arr[value.length] = null; - - gDBusAnnotationInfo.annotations = arr.ptr; - } - - /** */ - public static GType getType() - { - return g_dbus_annotation_info_get_type(); - } - - alias doref = ref_; - /** - * If @info is statically allocated does nothing. Otherwise increases - * the reference count. - * - * Returns: The same @info. - * - * Since: 2.26 - */ - public DBusAnnotationInfo ref_() - { - auto __p = g_dbus_annotation_info_ref(gDBusAnnotationInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusAnnotationInfo)(cast(GDBusAnnotationInfo*) __p, true); - } - - /** - * If @info is statically allocated, does nothing. Otherwise decreases - * the reference count of @info. When its reference count drops to 0, - * the memory used is freed. - * - * Since: 2.26 - */ - public void unref() - { - g_dbus_annotation_info_unref(gDBusAnnotationInfo); - } -} diff --git a/generated/gtkd/gio/DBusArgInfo.d b/generated/gtkd/gio/DBusArgInfo.d deleted file mode 100644 index 1f3aafccb..000000000 --- a/generated/gtkd/gio/DBusArgInfo.d +++ /dev/null @@ -1,185 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusArgInfo; - -private import gio.DBusAnnotationInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Information about an argument for a method or a signal. - * - * Since: 2.26 - */ -public final class DBusArgInfo -{ - /** the main Gtk struct */ - protected GDBusArgInfo* gDBusArgInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDBusArgInfo* getDBusArgInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusArgInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDBusArgInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusArgInfo* gDBusArgInfo, bool ownedRef = false) - { - this.gDBusArgInfo = gDBusArgInfo; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_dbus_arg_info_unref(gDBusArgInfo); - } - - - /** - * The reference count or -1 if statically allocated. - */ - public @property int refCount() - { - return gDBusArgInfo.refCount; - } - - /** Ditto */ - public @property void refCount(int value) - { - gDBusArgInfo.refCount = value; - } - - /** - * Name of the argument, e.g. @unix_user_id. - */ - public @property string name() - { - return Str.toString(gDBusArgInfo.name); - } - - /** Ditto */ - public @property void name(string value) - { - gDBusArgInfo.name = Str.toStringz(value); - } - - /** - * D-Bus signature of the argument (a single complete type). - */ - public @property string signature() - { - return Str.toString(gDBusArgInfo.signature); - } - - /** Ditto */ - public @property void signature(string value) - { - gDBusArgInfo.signature = Str.toStringz(value); - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - public @property DBusAnnotationInfo[] annotations() - { - DBusAnnotationInfo[] arr = new DBusAnnotationInfo[getArrayLength(gDBusArgInfo.annotations)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusAnnotationInfo)(gDBusArgInfo.annotations[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void annotations(DBusAnnotationInfo[] value) - { - GDBusAnnotationInfo*[] arr = new GDBusAnnotationInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusAnnotationInfoStruct(); - } - arr[value.length] = null; - - gDBusArgInfo.annotations = arr.ptr; - } - - /** */ - public static GType getType() - { - return g_dbus_arg_info_get_type(); - } - - alias doref = ref_; - /** - * If @info is statically allocated does nothing. Otherwise increases - * the reference count. - * - * Returns: The same @info. - * - * Since: 2.26 - */ - public DBusArgInfo ref_() - { - auto __p = g_dbus_arg_info_ref(gDBusArgInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusArgInfo)(cast(GDBusArgInfo*) __p, true); - } - - /** - * If @info is statically allocated, does nothing. Otherwise decreases - * the reference count of @info. When its reference count drops to 0, - * the memory used is freed. - * - * Since: 2.26 - */ - public void unref() - { - g_dbus_arg_info_unref(gDBusArgInfo); - } -} diff --git a/generated/gtkd/gio/DBusAuthObserver.d b/generated/gtkd/gio/DBusAuthObserver.d deleted file mode 100644 index 29cd8168f..000000000 --- a/generated/gtkd/gio/DBusAuthObserver.d +++ /dev/null @@ -1,222 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusAuthObserver; - -private import gio.Credentials; -private import gio.IOStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The #GDBusAuthObserver type provides a mechanism for participating - * in how a #GDBusServer (or a #GDBusConnection) authenticates remote - * peers. Simply instantiate a #GDBusAuthObserver and connect to the - * signals you are interested in. Note that new signals may be added - * in the future - * - * ## Controlling Authentication Mechanisms - * - * By default, a #GDBusServer or server-side #GDBusConnection will allow - * any authentication mechanism to be used. If you only - * want to allow D-Bus connections with the `EXTERNAL` mechanism, - * which makes use of credentials passing and is the recommended - * mechanism for modern Unix platforms such as Linux and the BSD family, - * you would use a signal handler like this: - * - * |[ - * static gboolean - * on_allow_mechanism (GDBusAuthObserver *observer, - * const gchar *mechanism, - * gpointer user_data) - * { - * if (g_strcmp0 (mechanism, "EXTERNAL") == 0) - * { - * return TRUE; - * } - * - * return FALSE; - * } - * ]| - * - * ## Controlling Authorization # {#auth-observer} - * - * By default, a #GDBusServer or server-side #GDBusConnection will accept - * connections from any successfully authenticated user (but not from - * anonymous connections using the `ANONYMOUS` mechanism). If you only - * want to allow D-Bus connections from processes owned by the same uid - * as the server, since GLib 2.68, you should use the - * %G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER flag. It’s equivalent - * to the following signal handler: - * - * |[ - * static gboolean - * on_authorize_authenticated_peer (GDBusAuthObserver *observer, - * GIOStream *stream, - * GCredentials *credentials, - * gpointer user_data) - * { - * gboolean authorized; - * - * authorized = FALSE; - * if (credentials != NULL) - * { - * GCredentials *own_credentials; - * own_credentials = g_credentials_new (); - * if (g_credentials_is_same_user (credentials, own_credentials, NULL)) - * authorized = TRUE; - * g_object_unref (own_credentials); - * } - * - * return authorized; - * } - * ]| - * - * Since: 2.26 - */ -public class DBusAuthObserver : ObjectG -{ - /** the main Gtk struct */ - protected GDBusAuthObserver* gDBusAuthObserver; - - /** Get the main Gtk struct */ - public GDBusAuthObserver* getDBusAuthObserverStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusAuthObserver; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusAuthObserver; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusAuthObserver* gDBusAuthObserver, bool ownedRef = false) - { - this.gDBusAuthObserver = gDBusAuthObserver; - super(cast(GObject*)gDBusAuthObserver, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_dbus_auth_observer_get_type(); - } - - /** - * Creates a new #GDBusAuthObserver object. - * - * Returns: A #GDBusAuthObserver. Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_dbus_auth_observer_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDBusAuthObserver*) __p, true); - } - - /** - * Emits the #GDBusAuthObserver::allow-mechanism signal on @observer. - * - * Params: - * mechanism = The name of the mechanism, e.g. `DBUS_COOKIE_SHA1`. - * - * Returns: %TRUE if @mechanism can be used to authenticate the other peer, %FALSE if not. - * - * Since: 2.34 - */ - public bool allowMechanism(string mechanism) - { - return g_dbus_auth_observer_allow_mechanism(gDBusAuthObserver, Str.toStringz(mechanism)) != 0; - } - - /** - * Emits the #GDBusAuthObserver::authorize-authenticated-peer signal on @observer. - * - * Params: - * stream = A #GIOStream for the #GDBusConnection. - * credentials = Credentials received from the peer or %NULL. - * - * Returns: %TRUE if the peer is authorized, %FALSE if not. - * - * Since: 2.26 - */ - public bool authorizeAuthenticatedPeer(IOStream stream, Credentials credentials) - { - return g_dbus_auth_observer_authorize_authenticated_peer(gDBusAuthObserver, (stream is null) ? null : stream.getIOStreamStruct(), (credentials is null) ? null : credentials.getCredentialsStruct()) != 0; - } - - /** - * Emitted to check if @mechanism is allowed to be used. - * - * Params: - * mechanism = The name of the mechanism, e.g. `DBUS_COOKIE_SHA1`. - * - * Returns: %TRUE if @mechanism can be used to authenticate the other peer, %FALSE if not. - * - * Since: 2.34 - */ - gulong addOnAllowMechanism(bool delegate(string, DBusAuthObserver) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "allow-mechanism", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted to check if a peer that is successfully authenticated - * is authorized. - * - * Params: - * stream = A #GIOStream for the #GDBusConnection. - * credentials = Credentials received from the peer or %NULL. - * - * Returns: %TRUE if the peer is authorized, %FALSE if not. - * - * Since: 2.26 - */ - gulong addOnAuthorizeAuthenticatedPeer(bool delegate(IOStream, Credentials, DBusAuthObserver) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "authorize-authenticated-peer", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusConnection.d b/generated/gtkd/gio/DBusConnection.d deleted file mode 100644 index b5fde60c4..000000000 --- a/generated/gtkd/gio/DBusConnection.d +++ /dev/null @@ -1,1932 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusConnection; - -private import gio.ActionGroupIF; -private import gio.AsyncInitableIF; -private import gio.AsyncInitableT; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.Credentials; -private import gio.DBusAuthObserver; -private import gio.DBusInterfaceInfo; -private import gio.DBusMessage; -private import gio.IOStream; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.MenuModel; -private import gio.UnixFDList; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import glib.c.functions; -private import gobject.Closure; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The #GDBusConnection type is used for D-Bus connections to remote - * peers such as a message buses. It is a low-level API that offers a - * lot of flexibility. For instance, it lets you establish a connection - * over any transport that can by represented as a #GIOStream. - * - * This class is rarely used directly in D-Bus clients. If you are writing - * a D-Bus client, it is often easier to use the g_bus_own_name(), - * g_bus_watch_name() or g_dbus_proxy_new_for_bus() APIs. - * - * As an exception to the usual GLib rule that a particular object must not - * be used by two threads at the same time, #GDBusConnection's methods may be - * called from any thread. This is so that g_bus_get() and g_bus_get_sync() - * can safely return the same #GDBusConnection when called from any thread. - * - * Most of the ways to obtain a #GDBusConnection automatically initialize it - * (i.e. connect to D-Bus): for instance, g_dbus_connection_new() and - * g_bus_get(), and the synchronous versions of those methods, give you an - * initialized connection. Language bindings for GIO should use - * g_initable_new() or g_async_initable_new_async(), which also initialize the - * connection. - * - * If you construct an uninitialized #GDBusConnection, such as via - * g_object_new(), you must initialize it via g_initable_init() or - * g_async_initable_init_async() before using its methods or properties. - * Calling methods or accessing properties on a #GDBusConnection that has not - * completed initialization successfully is considered to be invalid, and leads - * to undefined behaviour. In particular, if initialization fails with a - * #GError, the only valid thing you can do with that #GDBusConnection is to - * free it with g_object_unref(). - * - * ## An example D-Bus server # {#gdbus-server} - * - * Here is an example for a D-Bus server: - * [gdbus-example-server.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-server.c) - * - * ## An example for exporting a subtree # {#gdbus-subtree-server} - * - * Here is an example for exporting a subtree: - * [gdbus-example-subtree.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-subtree.c) - * - * ## An example for file descriptor passing # {#gdbus-unix-fd-client} - * - * Here is an example for passing UNIX file descriptors: - * [gdbus-unix-fd-client.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-unix-fd-client.c) - * - * ## An example for exporting a GObject # {#gdbus-export} - * - * Here is an example for exporting a #GObject: - * [gdbus-example-export.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-export.c) - * - * Since: 2.26 - */ -public class DBusConnection : ObjectG, AsyncInitableIF, InitableIF -{ - /** the main Gtk struct */ - protected GDBusConnection* gDBusConnection; - - /** Get the main Gtk struct */ - public GDBusConnection* getDBusConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusConnection; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusConnection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusConnection* gDBusConnection, bool ownedRef = false) - { - this.gDBusConnection = gDBusConnection; - super(cast(GObject*)gDBusConnection, ownedRef); - } - - // add the AsyncInitable capabilities - mixin AsyncInitableT!(GDBusConnection); - - // add the Initable capabilities - mixin InitableT!(GDBusConnection); - - /** - * Finishes an operation started with g_dbus_connection_new(). - * - * Params: - * res = A GAsyncResult obtained from the GAsyncReadyCallback - * passed to g_dbus_connection_new(). - * address = If true finish an address. - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - * - * Since: 2.26 - */ - public this (AsyncResultIF res, bool address = false) - { - GError* err = null; - GDBusConnection* p; - - if ( address ) - { - p = g_dbus_connection_new_for_address_finish((res is null) ? null : res.getAsyncResultStruct(), &err); - } - else - { - p = g_dbus_connection_new_finish((res is null) ? null : res.getAsyncResultStruct(), &err); - } - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(p is null) - { - throw new ConstructionException("null returned by g_dbus_connection_new_finish((res is null) ? null : res.getAsyncResultStruct(), &err)"); - } - this(p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_dbus_connection_get_type(); - } - - /** - * Synchronously connects and sets up a D-Bus client connection for - * exchanging D-Bus messages with an endpoint specified by @address - * which must be in the - * [D-Bus address format](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses). - * - * This constructor can only be used to initiate client-side - * connections - use g_dbus_connection_new_sync() if you need to act - * as the server. In particular, @flags cannot contain the - * %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER, - * %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS or - * %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER flags. - * - * This is a synchronous failable constructor. See - * g_dbus_connection_new_for_address() for the asynchronous version. - * - * If @observer is not %NULL it may be used to control the - * authentication process. - * - * Params: - * address = a D-Bus address - * flags = flags describing how to make the connection - * observer = a #GDBusAuthObserver or %NULL - * cancellable = a #GCancellable or %NULL - * - * Returns: a #GDBusConnection or %NULL if @error is set. - * Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string address, GDBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_connection_new_for_address_sync(Str.toStringz(address), flags, (observer is null) ? null : observer.getDBusAuthObserverStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_address_sync"); - } - - this(cast(GDBusConnection*) __p, true); - } - - /** - * Synchronously sets up a D-Bus connection for exchanging D-Bus messages - * with the end represented by @stream. - * - * If @stream is a #GSocketConnection, then the corresponding #GSocket - * will be put into non-blocking mode. - * - * The D-Bus connection will interact with @stream from a worker thread. - * As a result, the caller should not interact with @stream after this - * method has been called, except by calling g_object_unref() on it. - * - * If @observer is not %NULL it may be used to control the - * authentication process. - * - * This is a synchronous failable constructor. See - * g_dbus_connection_new() for the asynchronous version. - * - * Params: - * stream = a #GIOStream - * guid = the GUID to use if authenticating as a server or %NULL - * flags = flags describing how to make the connection - * observer = a #GDBusAuthObserver or %NULL - * cancellable = a #GCancellable or %NULL - * - * Returns: a #GDBusConnection or %NULL if @error is set. - * Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(IOStream stream, string guid, GDBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_connection_new_sync((stream is null) ? null : stream.getIOStreamStruct(), Str.toStringz(guid), flags, (observer is null) ? null : observer.getDBusAuthObserverStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_sync"); - } - - this(cast(GDBusConnection*) __p, true); - } - - /** - * Asynchronously sets up a D-Bus connection for exchanging D-Bus messages - * with the end represented by @stream. - * - * If @stream is a #GSocketConnection, then the corresponding #GSocket - * will be put into non-blocking mode. - * - * The D-Bus connection will interact with @stream from a worker thread. - * As a result, the caller should not interact with @stream after this - * method has been called, except by calling g_object_unref() on it. - * - * If @observer is not %NULL it may be used to control the - * authentication process. - * - * When the operation is finished, @callback will be invoked. You can - * then call g_dbus_connection_new_finish() to get the result of the - * operation. - * - * This is an asynchronous failable constructor. See - * g_dbus_connection_new_sync() for the synchronous - * version. - * - * Params: - * stream = a #GIOStream - * guid = the GUID to use if authenticating as a server or %NULL - * flags = flags describing how to make the connection - * observer = a #GDBusAuthObserver or %NULL - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to @callback - * - * Since: 2.26 - */ - public static void new_(IOStream stream, string guid, GDBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_connection_new((stream is null) ? null : stream.getIOStreamStruct(), Str.toStringz(guid), flags, (observer is null) ? null : observer.getDBusAuthObserverStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Asynchronously connects and sets up a D-Bus client connection for - * exchanging D-Bus messages with an endpoint specified by @address - * which must be in the - * [D-Bus address format](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses). - * - * This constructor can only be used to initiate client-side - * connections - use g_dbus_connection_new() if you need to act as the - * server. In particular, @flags cannot contain the - * %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER, - * %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS or - * %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER flags. - * - * When the operation is finished, @callback will be invoked. You can - * then call g_dbus_connection_new_for_address_finish() to get the result of - * the operation. - * - * If @observer is not %NULL it may be used to control the - * authentication process. - * - * This is an asynchronous failable constructor. See - * g_dbus_connection_new_for_address_sync() for the synchronous - * version. - * - * Params: - * address = a D-Bus address - * flags = flags describing how to make the connection - * observer = a #GDBusAuthObserver or %NULL - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to @callback - * - * Since: 2.26 - */ - public static void newForAddress(string address, GDBusConnectionFlags flags, DBusAuthObserver observer, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_connection_new_for_address(Str.toStringz(address), flags, (observer is null) ? null : observer.getDBusAuthObserverStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Adds a message filter. Filters are handlers that are run on all - * incoming and outgoing messages, prior to standard dispatch. Filters - * are run in the order that they were added. The same handler can be - * added as a filter more than once, in which case it will be run more - * than once. Filters added during a filter callback won't be run on - * the message being processed. Filter functions are allowed to modify - * and even drop messages. - * - * Note that filters are run in a dedicated message handling thread so - * they can't block and, generally, can't do anything but signal a - * worker thread. Also note that filters are rarely needed - use API - * such as g_dbus_connection_send_message_with_reply(), - * g_dbus_connection_signal_subscribe() or g_dbus_connection_call() instead. - * - * If a filter consumes an incoming message the message is not - * dispatched anywhere else - not even the standard dispatch machinery - * (that API such as g_dbus_connection_signal_subscribe() and - * g_dbus_connection_send_message_with_reply() relies on) will see the - * message. Similarly, if a filter consumes an outgoing message, the - * message will not be sent to the other peer. - * - * If @user_data_free_func is non-%NULL, it will be called (in the - * thread-default main context of the thread you are calling this - * method from) at some point after @user_data is no longer - * needed. (It is not guaranteed to be called synchronously when the - * filter is removed, and may be called after @connection has been - * destroyed.) - * - * Params: - * filterFunction = a filter function - * userData = user data to pass to @filter_function - * userDataFreeFunc = function to free @user_data with when filter - * is removed or %NULL - * - * Returns: a filter identifier that can be used with - * g_dbus_connection_remove_filter() - * - * Since: 2.26 - */ - public uint addFilter(GDBusMessageFilterFunction filterFunction, void* userData, GDestroyNotify userDataFreeFunc) - { - return g_dbus_connection_add_filter(gDBusConnection, filterFunction, userData, userDataFreeFunc); - } - - /** - * Asynchronously invokes the @method_name method on the - * @interface_name D-Bus interface on the remote object at - * @object_path owned by @bus_name. - * - * If @connection is closed then the operation will fail with - * %G_IO_ERROR_CLOSED. If @cancellable is canceled, the operation will - * fail with %G_IO_ERROR_CANCELLED. If @parameters contains a value - * not compatible with the D-Bus protocol, the operation fails with - * %G_IO_ERROR_INVALID_ARGUMENT. - * - * If @reply_type is non-%NULL then the reply will be checked for having this type and an - * error will be raised if it does not match. Said another way, if you give a @reply_type - * then any non-%NULL return value will be of this type. Unless it’s - * %G_VARIANT_TYPE_UNIT, the @reply_type will be a tuple containing one or more - * values. - * - * If the @parameters #GVariant is floating, it is consumed. This allows - * convenient 'inline' use of g_variant_new(), e.g.: - * |[ - * g_dbus_connection_call (connection, - * "org.freedesktop.StringThings", - * "/org/freedesktop/StringThings", - * "org.freedesktop.StringThings", - * "TwoStrings", - * g_variant_new ("(ss)", - * "Thing One", - * "Thing Two"), - * NULL, - * G_DBUS_CALL_FLAGS_NONE, - * -1, - * NULL, - * (GAsyncReadyCallback) two_strings_done, - * NULL); - * ]| - * - * This is an asynchronous method. When the operation is finished, - * @callback will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. You can then call - * g_dbus_connection_call_finish() to get the result of the operation. - * See g_dbus_connection_call_sync() for the synchronous version of this - * function. - * - * If @callback is %NULL then the D-Bus method call message will be sent with - * the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. - * - * Params: - * busName = a unique or well-known bus name or %NULL if - * @connection is not a message bus connection - * objectPath = path of remote object - * interfaceName = D-Bus interface to invoke method on - * methodName = the name of the method to invoke - * parameters = a #GVariant tuple with parameters for the method - * or %NULL if not passing parameters - * replyType = the expected type of the reply (which will be a - * tuple), or %NULL - * flags = flags from the #GDBusCallFlags enumeration - * timeoutMsec = the timeout in milliseconds, -1 to use the default - * timeout or %G_MAXINT for no timeout - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the request - * is satisfied or %NULL if you don't care about the result of the - * method invocation - * userData = the data to pass to @callback - * - * Since: 2.26 - */ - public void call(string busName, string objectPath, string interfaceName, string methodName, Variant parameters, VariantType replyType, GDBusCallFlags flags, int timeoutMsec, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_connection_call(gDBusConnection, Str.toStringz(busName), Str.toStringz(objectPath), Str.toStringz(interfaceName), Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), (replyType is null) ? null : replyType.getVariantTypeStruct(), flags, timeoutMsec, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_connection_call(). - * - * Params: - * res = a #GAsyncResult obtained from the #GAsyncReadyCallback passed to g_dbus_connection_call() - * - * Returns: %NULL if @error is set. Otherwise a non-floating - * #GVariant tuple with return values. Free with g_variant_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public Variant callFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_dbus_connection_call_finish(gDBusConnection, (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Synchronously invokes the @method_name method on the - * @interface_name D-Bus interface on the remote object at - * @object_path owned by @bus_name. - * - * If @connection is closed then the operation will fail with - * %G_IO_ERROR_CLOSED. If @cancellable is canceled, the - * operation will fail with %G_IO_ERROR_CANCELLED. If @parameters - * contains a value not compatible with the D-Bus protocol, the operation - * fails with %G_IO_ERROR_INVALID_ARGUMENT. - * - * If @reply_type is non-%NULL then the reply will be checked for having - * this type and an error will be raised if it does not match. Said - * another way, if you give a @reply_type then any non-%NULL return - * value will be of this type. - * - * If the @parameters #GVariant is floating, it is consumed. - * This allows convenient 'inline' use of g_variant_new(), e.g.: - * |[ - * g_dbus_connection_call_sync (connection, - * "org.freedesktop.StringThings", - * "/org/freedesktop/StringThings", - * "org.freedesktop.StringThings", - * "TwoStrings", - * g_variant_new ("(ss)", - * "Thing One", - * "Thing Two"), - * NULL, - * G_DBUS_CALL_FLAGS_NONE, - * -1, - * NULL, - * &error); - * ]| - * - * The calling thread is blocked until a reply is received. See - * g_dbus_connection_call() for the asynchronous version of - * this method. - * - * Params: - * busName = a unique or well-known bus name or %NULL if - * @connection is not a message bus connection - * objectPath = path of remote object - * interfaceName = D-Bus interface to invoke method on - * methodName = the name of the method to invoke - * parameters = a #GVariant tuple with parameters for the method - * or %NULL if not passing parameters - * replyType = the expected type of the reply, or %NULL - * flags = flags from the #GDBusCallFlags enumeration - * timeoutMsec = the timeout in milliseconds, -1 to use the default - * timeout or %G_MAXINT for no timeout - * cancellable = a #GCancellable or %NULL - * - * Returns: %NULL if @error is set. Otherwise a non-floating - * #GVariant tuple with return values. Free with g_variant_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public Variant callSync(string busName, string objectPath, string interfaceName, string methodName, Variant parameters, VariantType replyType, GDBusCallFlags flags, int timeoutMsec, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_connection_call_sync(gDBusConnection, Str.toStringz(busName), Str.toStringz(objectPath), Str.toStringz(interfaceName), Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), (replyType is null) ? null : replyType.getVariantTypeStruct(), flags, timeoutMsec, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Like g_dbus_connection_call() but also takes a #GUnixFDList object. - * - * The file descriptors normally correspond to %G_VARIANT_TYPE_HANDLE - * values in the body of the message. For example, if a message contains - * two file descriptors, @fd_list would have length 2, and - * `g_variant_new_handle (0)` and `g_variant_new_handle (1)` would appear - * somewhere in the body of the message (not necessarily in that order!) - * to represent the file descriptors at indexes 0 and 1 respectively. - * - * When designing D-Bus APIs that are intended to be interoperable, - * please note that non-GDBus implementations of D-Bus can usually only - * access file descriptors if they are referenced in this way by a - * value of type %G_VARIANT_TYPE_HANDLE in the body of the message. - * - * This method is only available on UNIX. - * - * Params: - * busName = a unique or well-known bus name or %NULL if - * @connection is not a message bus connection - * objectPath = path of remote object - * interfaceName = D-Bus interface to invoke method on - * methodName = the name of the method to invoke - * parameters = a #GVariant tuple with parameters for the method - * or %NULL if not passing parameters - * replyType = the expected type of the reply, or %NULL - * flags = flags from the #GDBusCallFlags enumeration - * timeoutMsec = the timeout in milliseconds, -1 to use the default - * timeout or %G_MAXINT for no timeout - * fdList = a #GUnixFDList or %NULL - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the request is - * satisfied or %NULL if you don't * care about the result of the - * method invocation - * userData = The data to pass to @callback. - * - * Since: 2.30 - */ - public void callWithUnixFdList(string busName, string objectPath, string interfaceName, string methodName, Variant parameters, VariantType replyType, GDBusCallFlags flags, int timeoutMsec, UnixFDList fdList, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_connection_call_with_unix_fd_list(gDBusConnection, Str.toStringz(busName), Str.toStringz(objectPath), Str.toStringz(interfaceName), Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), (replyType is null) ? null : replyType.getVariantTypeStruct(), flags, timeoutMsec, (fdList is null) ? null : fdList.getUnixFDListStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_connection_call_with_unix_fd_list(). - * - * The file descriptors normally correspond to %G_VARIANT_TYPE_HANDLE - * values in the body of the message. For example, - * if g_variant_get_handle() returns 5, that is intended to be a reference - * to the file descriptor that can be accessed by - * `g_unix_fd_list_get (*out_fd_list, 5, ...)`. - * - * When designing D-Bus APIs that are intended to be interoperable, - * please note that non-GDBus implementations of D-Bus can usually only - * access file descriptors if they are referenced in this way by a - * value of type %G_VARIANT_TYPE_HANDLE in the body of the message. - * - * Params: - * outFdList = return location for a #GUnixFDList or %NULL - * res = a #GAsyncResult obtained from the #GAsyncReadyCallback passed to - * g_dbus_connection_call_with_unix_fd_list() - * - * Returns: %NULL if @error is set. Otherwise a non-floating - * #GVariant tuple with return values. Free with g_variant_unref(). - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public Variant callWithUnixFdListFinish(out UnixFDList outFdList, AsyncResultIF res) - { - GUnixFDList* outoutFdList = null; - GError* err = null; - - auto __p = g_dbus_connection_call_with_unix_fd_list_finish(gDBusConnection, &outoutFdList, (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outFdList = ObjectG.getDObject!(UnixFDList)(outoutFdList); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Like g_dbus_connection_call_sync() but also takes and returns #GUnixFDList objects. - * See g_dbus_connection_call_with_unix_fd_list() and - * g_dbus_connection_call_with_unix_fd_list_finish() for more details. - * - * This method is only available on UNIX. - * - * Params: - * busName = a unique or well-known bus name or %NULL - * if @connection is not a message bus connection - * objectPath = path of remote object - * interfaceName = D-Bus interface to invoke method on - * methodName = the name of the method to invoke - * parameters = a #GVariant tuple with parameters for - * the method or %NULL if not passing parameters - * replyType = the expected type of the reply, or %NULL - * flags = flags from the #GDBusCallFlags enumeration - * timeoutMsec = the timeout in milliseconds, -1 to use the default - * timeout or %G_MAXINT for no timeout - * fdList = a #GUnixFDList or %NULL - * outFdList = return location for a #GUnixFDList or %NULL - * cancellable = a #GCancellable or %NULL - * - * Returns: %NULL if @error is set. Otherwise a non-floating - * #GVariant tuple with return values. Free with g_variant_unref(). - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public Variant callWithUnixFdListSync(string busName, string objectPath, string interfaceName, string methodName, Variant parameters, VariantType replyType, GDBusCallFlags flags, int timeoutMsec, UnixFDList fdList, out UnixFDList outFdList, Cancellable cancellable) - { - GUnixFDList* outoutFdList = null; - GError* err = null; - - auto __p = g_dbus_connection_call_with_unix_fd_list_sync(gDBusConnection, Str.toStringz(busName), Str.toStringz(objectPath), Str.toStringz(interfaceName), Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), (replyType is null) ? null : replyType.getVariantTypeStruct(), flags, timeoutMsec, (fdList is null) ? null : fdList.getUnixFDListStruct(), &outoutFdList, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outFdList = ObjectG.getDObject!(UnixFDList)(outoutFdList); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Closes @connection. Note that this never causes the process to - * exit (this might only happen if the other end of a shared message - * bus connection disconnects, see #GDBusConnection:exit-on-close). - * - * Once the connection is closed, operations such as sending a message - * will return with the error %G_IO_ERROR_CLOSED. Closing a connection - * will not automatically flush the connection so queued messages may - * be lost. Use g_dbus_connection_flush() if you need such guarantees. - * - * If @connection is already closed, this method fails with - * %G_IO_ERROR_CLOSED. - * - * When @connection has been closed, the #GDBusConnection::closed - * signal is emitted in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread that @connection was constructed in. - * - * This is an asynchronous method. When the operation is finished, - * @callback will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. You can - * then call g_dbus_connection_close_finish() to get the result of the - * operation. See g_dbus_connection_close_sync() for the synchronous - * version. - * - * Params: - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the request is - * satisfied or %NULL if you don't care about the result - * userData = The data to pass to @callback - * - * Since: 2.26 - */ - public void close(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_connection_close(gDBusConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_connection_close(). - * - * Params: - * res = a #GAsyncResult obtained from the #GAsyncReadyCallback passed - * to g_dbus_connection_close() - * - * Returns: %TRUE if the operation succeeded, %FALSE if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool closeFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_dbus_connection_close_finish(gDBusConnection, (res is null) ? null : res.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Synchronously closes @connection. The calling thread is blocked - * until this is done. See g_dbus_connection_close() for the - * asynchronous version of this method and more details about what it - * does. - * - * Params: - * cancellable = a #GCancellable or %NULL - * - * Returns: %TRUE if the operation succeeded, %FALSE if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool closeSync(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_connection_close_sync(gDBusConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Emits a signal. - * - * If the parameters GVariant is floating, it is consumed. - * - * This can only fail if @parameters is not compatible with the D-Bus protocol - * (%G_IO_ERROR_INVALID_ARGUMENT), or if @connection has been closed - * (%G_IO_ERROR_CLOSED). - * - * Params: - * destinationBusName = the unique bus name for the destination - * for the signal or %NULL to emit to all listeners - * objectPath = path of remote object - * interfaceName = D-Bus interface to emit a signal on - * signalName = the name of the signal to emit - * parameters = a #GVariant tuple with parameters for the signal - * or %NULL if not passing parameters - * - * Returns: %TRUE unless @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool emitSignal(string destinationBusName, string objectPath, string interfaceName, string signalName, Variant parameters) - { - GError* err = null; - - auto __p = g_dbus_connection_emit_signal(gDBusConnection, Str.toStringz(destinationBusName), Str.toStringz(objectPath), Str.toStringz(interfaceName), Str.toStringz(signalName), (parameters is null) ? null : parameters.getVariantStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Exports @action_group on @connection at @object_path. - * - * The implemented D-Bus API should be considered private. It is - * subject to change in the future. - * - * A given object path can only have one action group exported on it. - * If this constraint is violated, the export will fail and 0 will be - * returned (with @error set accordingly). - * - * You can unexport the action group using - * g_dbus_connection_unexport_action_group() with the return value of - * this function. - * - * The thread default main context is taken at the time of this call. - * All incoming action activations and state change requests are - * reported from this context. Any changes on the action group that - * cause it to emit signals must also come from this same context. - * Since incoming action activations and state change requests are - * rather likely to cause changes on the action group, this effectively - * limits a given action group to being exported from only one main - * context. - * - * Params: - * objectPath = a D-Bus object path - * actionGroup = a #GActionGroup - * - * Returns: the ID of the export (never zero), or 0 in case of failure - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public uint exportActionGroup(string objectPath, ActionGroupIF actionGroup) - { - GError* err = null; - - auto __p = g_dbus_connection_export_action_group(gDBusConnection, Str.toStringz(objectPath), (actionGroup is null) ? null : actionGroup.getActionGroupStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Exports @menu on @connection at @object_path. - * - * The implemented D-Bus API should be considered private. - * It is subject to change in the future. - * - * An object path can only have one menu model exported on it. If this - * constraint is violated, the export will fail and 0 will be - * returned (with @error set accordingly). - * - * You can unexport the menu model using - * g_dbus_connection_unexport_menu_model() with the return value of - * this function. - * - * Params: - * objectPath = a D-Bus object path - * menu = a #GMenuModel - * - * Returns: the ID of the export (never zero), or 0 in case of failure - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public uint exportMenuModel(string objectPath, MenuModel menu) - { - GError* err = null; - - auto __p = g_dbus_connection_export_menu_model(gDBusConnection, Str.toStringz(objectPath), (menu is null) ? null : menu.getMenuModelStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously flushes @connection, that is, writes all queued - * outgoing message to the transport and then flushes the transport - * (using g_output_stream_flush_async()). This is useful in programs - * that wants to emit a D-Bus signal and then exit immediately. Without - * flushing the connection, there is no guaranteed that the message has - * been sent to the networking buffers in the OS kernel. - * - * This is an asynchronous method. When the operation is finished, - * @callback will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. You can - * then call g_dbus_connection_flush_finish() to get the result of the - * operation. See g_dbus_connection_flush_sync() for the synchronous - * version. - * - * Params: - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied or %NULL if you don't care about the result - * userData = The data to pass to @callback - * - * Since: 2.26 - */ - public void flush(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_connection_flush(gDBusConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_connection_flush(). - * - * Params: - * res = a #GAsyncResult obtained from the #GAsyncReadyCallback passed - * to g_dbus_connection_flush() - * - * Returns: %TRUE if the operation succeeded, %FALSE if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool flushFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_dbus_connection_flush_finish(gDBusConnection, (res is null) ? null : res.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Synchronously flushes @connection. The calling thread is blocked - * until this is done. See g_dbus_connection_flush() for the - * asynchronous version of this method and more details about what it - * does. - * - * Params: - * cancellable = a #GCancellable or %NULL - * - * Returns: %TRUE if the operation succeeded, %FALSE if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool flushSync(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_connection_flush_sync(gDBusConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the capabilities negotiated with the remote peer - * - * Returns: zero or more flags from the #GDBusCapabilityFlags enumeration - * - * Since: 2.26 - */ - public GDBusCapabilityFlags getCapabilities() - { - return g_dbus_connection_get_capabilities(gDBusConnection); - } - - /** - * Gets whether the process is terminated when @connection is - * closed by the remote peer. See - * #GDBusConnection:exit-on-close for more details. - * - * Returns: whether the process is terminated when @connection is - * closed by the remote peer - * - * Since: 2.26 - */ - public bool getExitOnClose() - { - return g_dbus_connection_get_exit_on_close(gDBusConnection) != 0; - } - - /** - * Gets the flags used to construct this connection - * - * Returns: zero or more flags from the #GDBusConnectionFlags enumeration - * - * Since: 2.60 - */ - public GDBusConnectionFlags getFlags() - { - return g_dbus_connection_get_flags(gDBusConnection); - } - - /** - * The GUID of the peer performing the role of server when - * authenticating. See #GDBusConnection:guid for more details. - * - * Returns: The GUID. Do not free this string, it is owned by - * @connection. - * - * Since: 2.26 - */ - public string getGuid() - { - return Str.toString(g_dbus_connection_get_guid(gDBusConnection)); - } - - /** - * Retrieves the last serial number assigned to a #GDBusMessage on - * the current thread. This includes messages sent via both low-level - * API such as g_dbus_connection_send_message() as well as - * high-level API such as g_dbus_connection_emit_signal(), - * g_dbus_connection_call() or g_dbus_proxy_call(). - * - * Returns: the last used serial or zero when no message has been sent - * within the current thread - * - * Since: 2.34 - */ - public uint getLastSerial() - { - return g_dbus_connection_get_last_serial(gDBusConnection); - } - - /** - * Gets the credentials of the authenticated peer. This will always - * return %NULL unless @connection acted as a server - * (e.g. %G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER was passed) - * when set up and the client passed credentials as part of the - * authentication process. - * - * In a message bus setup, the message bus is always the server and - * each application is a client. So this method will always return - * %NULL for message bus clients. - * - * Returns: a #GCredentials or %NULL if not - * available. Do not free this object, it is owned by @connection. - * - * Since: 2.26 - */ - public Credentials getPeerCredentials() - { - auto __p = g_dbus_connection_get_peer_credentials(gDBusConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Credentials)(cast(GCredentials*) __p); - } - - /** - * Gets the underlying stream used for IO. - * - * While the #GDBusConnection is active, it will interact with this - * stream from a worker thread, so it is not safe to interact with - * the stream directly. - * - * Returns: the stream used for IO - * - * Since: 2.26 - */ - public IOStream getStream() - { - auto __p = g_dbus_connection_get_stream(gDBusConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOStream)(cast(GIOStream*) __p); - } - - /** - * Gets the unique name of @connection as assigned by the message - * bus. This can also be used to figure out if @connection is a - * message bus connection. - * - * Returns: the unique name or %NULL if @connection is not a message - * bus connection. Do not free this string, it is owned by - * @connection. - * - * Since: 2.26 - */ - public string getUniqueName() - { - return Str.toString(g_dbus_connection_get_unique_name(gDBusConnection)); - } - - /** - * Gets whether @connection is closed. - * - * Returns: %TRUE if the connection is closed, %FALSE otherwise - * - * Since: 2.26 - */ - public bool isClosed() - { - return g_dbus_connection_is_closed(gDBusConnection) != 0; - } - - /** - * Registers callbacks for exported objects at @object_path with the - * D-Bus interface that is described in @interface_info. - * - * Calls to functions in @vtable (and @user_data_free_func) will happen - * in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. - * - * Note that all #GVariant values passed to functions in @vtable will match - * the signature given in @interface_info - if a remote caller passes - * incorrect values, the `org.freedesktop.DBus.Error.InvalidArgs` - * is returned to the remote caller. - * - * Additionally, if the remote caller attempts to invoke methods or - * access properties not mentioned in @interface_info the - * `org.freedesktop.DBus.Error.UnknownMethod` resp. - * `org.freedesktop.DBus.Error.InvalidArgs` errors - * are returned to the caller. - * - * It is considered a programming error if the - * #GDBusInterfaceGetPropertyFunc function in @vtable returns a - * #GVariant of incorrect type. - * - * If an existing callback is already registered at @object_path and - * @interface_name, then @error is set to #G_IO_ERROR_EXISTS. - * - * GDBus automatically implements the standard D-Bus interfaces - * org.freedesktop.DBus.Properties, org.freedesktop.DBus.Introspectable - * and org.freedesktop.Peer, so you don't have to implement those for the - * objects you export. You can implement org.freedesktop.DBus.Properties - * yourself, e.g. to handle getting and setting of properties asynchronously. - * - * Note that the reference count on @interface_info will be - * incremented by 1 (unless allocated statically, e.g. if the - * reference count is -1, see g_dbus_interface_info_ref()) for as long - * as the object is exported. Also note that @vtable will be copied. - * - * See this [server][gdbus-server] for an example of how to use this method. - * - * Params: - * objectPath = the object path to register at - * interfaceInfo = introspection data for the interface - * vtable = a #GDBusInterfaceVTable to call into or %NULL - * userData = data to pass to functions in @vtable - * userDataFreeFunc = function to call when the object path is unregistered - * - * Returns: 0 if @error is set, otherwise a registration id (never 0) - * that can be used with g_dbus_connection_unregister_object() - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public uint registerObject(string objectPath, DBusInterfaceInfo interfaceInfo, GDBusInterfaceVTable* vtable, void* userData, GDestroyNotify userDataFreeFunc) - { - GError* err = null; - - auto __p = g_dbus_connection_register_object(gDBusConnection, Str.toStringz(objectPath), (interfaceInfo is null) ? null : interfaceInfo.getDBusInterfaceInfoStruct(), vtable, userData, userDataFreeFunc, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Version of g_dbus_connection_register_object() using closures instead of a - * #GDBusInterfaceVTable for easier binding in other languages. - * - * Params: - * objectPath = The object path to register at. - * interfaceInfo = Introspection data for the interface. - * methodCallClosure = #GClosure for handling incoming method calls. - * getPropertyClosure = #GClosure for getting a property. - * setPropertyClosure = #GClosure for setting a property. - * - * Returns: 0 if @error is set, otherwise a registration ID (never 0) - * that can be used with g_dbus_connection_unregister_object() . - * - * Since: 2.46 - * - * Throws: GException on failure. - */ - public uint registerObjectWithClosures(string objectPath, DBusInterfaceInfo interfaceInfo, Closure methodCallClosure, Closure getPropertyClosure, Closure setPropertyClosure) - { - GError* err = null; - - auto __p = g_dbus_connection_register_object_with_closures(gDBusConnection, Str.toStringz(objectPath), (interfaceInfo is null) ? null : interfaceInfo.getDBusInterfaceInfoStruct(), (methodCallClosure is null) ? null : methodCallClosure.getClosureStruct(), (getPropertyClosure is null) ? null : getPropertyClosure.getClosureStruct(), (setPropertyClosure is null) ? null : setPropertyClosure.getClosureStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Registers a whole subtree of dynamic objects. - * - * The @enumerate and @introspection functions in @vtable are used to - * convey, to remote callers, what nodes exist in the subtree rooted - * by @object_path. - * - * When handling remote calls into any node in the subtree, first the - * @enumerate function is used to check if the node exists. If the node exists - * or the #G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES flag is set - * the @introspection function is used to check if the node supports the - * requested method. If so, the @dispatch function is used to determine - * where to dispatch the call. The collected #GDBusInterfaceVTable and - * #gpointer will be used to call into the interface vtable for processing - * the request. - * - * All calls into user-provided code will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. - * - * If an existing subtree is already registered at @object_path or - * then @error is set to #G_IO_ERROR_EXISTS. - * - * Note that it is valid to register regular objects (using - * g_dbus_connection_register_object()) in a subtree registered with - * g_dbus_connection_register_subtree() - if so, the subtree handler - * is tried as the last resort. One way to think about a subtree - * handler is to consider it a fallback handler for object paths not - * registered via g_dbus_connection_register_object() or other bindings. - * - * Note that @vtable will be copied so you cannot change it after - * registration. - * - * See this [server][gdbus-subtree-server] for an example of how to use - * this method. - * - * Params: - * objectPath = the object path to register the subtree at - * vtable = a #GDBusSubtreeVTable to enumerate, introspect and - * dispatch nodes in the subtree - * flags = flags used to fine tune the behavior of the subtree - * userData = data to pass to functions in @vtable - * userDataFreeFunc = function to call when the subtree is unregistered - * - * Returns: 0 if @error is set, otherwise a subtree registration ID (never 0) - * that can be used with g_dbus_connection_unregister_subtree() - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public uint registerSubtree(string objectPath, GDBusSubtreeVTable* vtable, GDBusSubtreeFlags flags, void* userData, GDestroyNotify userDataFreeFunc) - { - GError* err = null; - - auto __p = g_dbus_connection_register_subtree(gDBusConnection, Str.toStringz(objectPath), vtable, flags, userData, userDataFreeFunc, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes a filter. - * - * Note that since filters run in a different thread, there is a race - * condition where it is possible that the filter will be running even - * after calling g_dbus_connection_remove_filter(), so you cannot just - * free data that the filter might be using. Instead, you should pass - * a #GDestroyNotify to g_dbus_connection_add_filter(), which will be - * called when it is guaranteed that the data is no longer needed. - * - * Params: - * filterId = an identifier obtained from g_dbus_connection_add_filter() - * - * Since: 2.26 - */ - public void removeFilter(uint filterId) - { - g_dbus_connection_remove_filter(gDBusConnection, filterId); - } - - /** - * Asynchronously sends @message to the peer represented by @connection. - * - * Unless @flags contain the - * %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag, the serial number - * will be assigned by @connection and set on @message via - * g_dbus_message_set_serial(). If @out_serial is not %NULL, then the - * serial number used will be written to this location prior to - * submitting the message to the underlying transport. While it has a `volatile` - * qualifier, this is a historical artifact and the argument passed to it should - * not be `volatile`. - * - * If @connection is closed then the operation will fail with - * %G_IO_ERROR_CLOSED. If @message is not well-formed, - * the operation fails with %G_IO_ERROR_INVALID_ARGUMENT. - * - * See this [server][gdbus-server] and [client][gdbus-unix-fd-client] - * for an example of how to use this low-level API to send and receive - * UNIX file descriptors. - * - * Note that @message must be unlocked, unless @flags contain the - * %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. - * - * Params: - * message = a #GDBusMessage - * flags = flags affecting how the message is sent - * outSerial = return location for serial number assigned - * to @message when sending it or %NULL - * - * Returns: %TRUE if the message was well-formed and queued for - * transmission, %FALSE if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool sendMessage(DBusMessage message, GDBusSendMessageFlags flags, out uint outSerial) - { - GError* err = null; - - auto __p = g_dbus_connection_send_message(gDBusConnection, (message is null) ? null : message.getDBusMessageStruct(), flags, &outSerial, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously sends @message to the peer represented by @connection. - * - * Unless @flags contain the - * %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag, the serial number - * will be assigned by @connection and set on @message via - * g_dbus_message_set_serial(). If @out_serial is not %NULL, then the - * serial number used will be written to this location prior to - * submitting the message to the underlying transport. While it has a `volatile` - * qualifier, this is a historical artifact and the argument passed to it should - * not be `volatile`. - * - * If @connection is closed then the operation will fail with - * %G_IO_ERROR_CLOSED. If @cancellable is canceled, the operation will - * fail with %G_IO_ERROR_CANCELLED. If @message is not well-formed, - * the operation fails with %G_IO_ERROR_INVALID_ARGUMENT. - * - * This is an asynchronous method. When the operation is finished, @callback - * will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. You can then call - * g_dbus_connection_send_message_with_reply_finish() to get the result of the operation. - * See g_dbus_connection_send_message_with_reply_sync() for the synchronous version. - * - * Note that @message must be unlocked, unless @flags contain the - * %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. - * - * See this [server][gdbus-server] and [client][gdbus-unix-fd-client] - * for an example of how to use this low-level API to send and receive - * UNIX file descriptors. - * - * Params: - * message = a #GDBusMessage - * flags = flags affecting how the message is sent - * timeoutMsec = the timeout in milliseconds, -1 to use the default - * timeout or %G_MAXINT for no timeout - * outSerial = return location for serial number assigned - * to @message when sending it or %NULL - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the request - * is satisfied or %NULL if you don't care about the result - * userData = The data to pass to @callback - * - * Since: 2.26 - */ - public void sendMessageWithReply(DBusMessage message, GDBusSendMessageFlags flags, int timeoutMsec, out uint outSerial, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_connection_send_message_with_reply(gDBusConnection, (message is null) ? null : message.getDBusMessageStruct(), flags, timeoutMsec, &outSerial, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_connection_send_message_with_reply(). - * - * Note that @error is only set if a local in-process error - * occurred. That is to say that the returned #GDBusMessage object may - * be of type %G_DBUS_MESSAGE_TYPE_ERROR. Use - * g_dbus_message_to_gerror() to transcode this to a #GError. - * - * See this [server][gdbus-server] and [client][gdbus-unix-fd-client] - * for an example of how to use this low-level API to send and receive - * UNIX file descriptors. - * - * Params: - * res = a #GAsyncResult obtained from the #GAsyncReadyCallback passed to - * g_dbus_connection_send_message_with_reply() - * - * Returns: a locked #GDBusMessage or %NULL if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public DBusMessage sendMessageWithReplyFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_dbus_connection_send_message_with_reply_finish(gDBusConnection, (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMessage)(cast(GDBusMessage*) __p, true); - } - - /** - * Synchronously sends @message to the peer represented by @connection - * and blocks the calling thread until a reply is received or the - * timeout is reached. See g_dbus_connection_send_message_with_reply() - * for the asynchronous version of this method. - * - * Unless @flags contain the - * %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag, the serial number - * will be assigned by @connection and set on @message via - * g_dbus_message_set_serial(). If @out_serial is not %NULL, then the - * serial number used will be written to this location prior to - * submitting the message to the underlying transport. While it has a `volatile` - * qualifier, this is a historical artifact and the argument passed to it should - * not be `volatile`. - * - * If @connection is closed then the operation will fail with - * %G_IO_ERROR_CLOSED. If @cancellable is canceled, the operation will - * fail with %G_IO_ERROR_CANCELLED. If @message is not well-formed, - * the operation fails with %G_IO_ERROR_INVALID_ARGUMENT. - * - * Note that @error is only set if a local in-process error - * occurred. That is to say that the returned #GDBusMessage object may - * be of type %G_DBUS_MESSAGE_TYPE_ERROR. Use - * g_dbus_message_to_gerror() to transcode this to a #GError. - * - * See this [server][gdbus-server] and [client][gdbus-unix-fd-client] - * for an example of how to use this low-level API to send and receive - * UNIX file descriptors. - * - * Note that @message must be unlocked, unless @flags contain the - * %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. - * - * Params: - * message = a #GDBusMessage - * flags = flags affecting how the message is sent. - * timeoutMsec = the timeout in milliseconds, -1 to use the default - * timeout or %G_MAXINT for no timeout - * outSerial = return location for serial number - * assigned to @message when sending it or %NULL - * cancellable = a #GCancellable or %NULL - * - * Returns: a locked #GDBusMessage that is the reply - * to @message or %NULL if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public DBusMessage sendMessageWithReplySync(DBusMessage message, GDBusSendMessageFlags flags, int timeoutMsec, out uint outSerial, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_connection_send_message_with_reply_sync(gDBusConnection, (message is null) ? null : message.getDBusMessageStruct(), flags, timeoutMsec, &outSerial, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMessage)(cast(GDBusMessage*) __p, true); - } - - /** - * Sets whether the process should be terminated when @connection is - * closed by the remote peer. See #GDBusConnection:exit-on-close for - * more details. - * - * Note that this function should be used with care. Most modern UNIX - * desktops tie the notion of a user session with the session bus, and expect - * all of a user's applications to quit when their bus connection goes away. - * If you are setting @exit_on_close to %FALSE for the shared session - * bus connection, you should make sure that your application exits - * when the user session ends. - * - * Params: - * exitOnClose = whether the process should be terminated - * when @connection is closed by the remote peer - * - * Since: 2.26 - */ - public void setExitOnClose(bool exitOnClose) - { - g_dbus_connection_set_exit_on_close(gDBusConnection, exitOnClose); - } - - /** - * Subscribes to signals on @connection and invokes @callback with a whenever - * the signal is received. Note that @callback will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. - * - * If @connection is not a message bus connection, @sender must be - * %NULL. - * - * If @sender is a well-known name note that @callback is invoked with - * the unique name for the owner of @sender, not the well-known name - * as one would expect. This is because the message bus rewrites the - * name. As such, to avoid certain race conditions, users should be - * tracking the name owner of the well-known name and use that when - * processing the received signal. - * - * If one of %G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE or - * %G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH are given, @arg0 is - * interpreted as part of a namespace or path. The first argument - * of a signal is matched against that part as specified by D-Bus. - * - * If @user_data_free_func is non-%NULL, it will be called (in the - * thread-default main context of the thread you are calling this - * method from) at some point after @user_data is no longer - * needed. (It is not guaranteed to be called synchronously when the - * signal is unsubscribed from, and may be called after @connection - * has been destroyed.) - * - * As @callback is potentially invoked in a different thread from where it’s - * emitted, it’s possible for this to happen after - * g_dbus_connection_signal_unsubscribe() has been called in another thread. - * Due to this, @user_data should have a strong reference which is freed with - * @user_data_free_func, rather than pointing to data whose lifecycle is tied - * to the signal subscription. For example, if a #GObject is used to store the - * subscription ID from g_dbus_connection_signal_subscribe(), a strong reference - * to that #GObject must be passed to @user_data, and g_object_unref() passed to - * @user_data_free_func. You are responsible for breaking the resulting - * reference count cycle by explicitly unsubscribing from the signal when - * dropping the last external reference to the #GObject. Alternatively, a weak - * reference may be used. - * - * It is guaranteed that if you unsubscribe from a signal using - * g_dbus_connection_signal_unsubscribe() from the same thread which made the - * corresponding g_dbus_connection_signal_subscribe() call, @callback will not - * be invoked after g_dbus_connection_signal_unsubscribe() returns. - * - * The returned subscription identifier is an opaque value which is guaranteed - * to never be zero. - * - * This function can never fail. - * - * Params: - * sender = sender name to match on (unique or well-known name) - * or %NULL to listen from all senders - * interfaceName = D-Bus interface name to match on or %NULL to - * match on all interfaces - * member = D-Bus signal name to match on or %NULL to match on - * all signals - * objectPath = object path to match on or %NULL to match on - * all object paths - * arg0 = contents of first string argument to match on or %NULL - * to match on all kinds of arguments - * flags = #GDBusSignalFlags describing how arg0 is used in subscribing to the - * signal - * callback = callback to invoke when there is a signal matching the requested data - * userData = user data to pass to @callback - * userDataFreeFunc = function to free @user_data with when - * subscription is removed or %NULL - * - * Returns: a subscription identifier that can be used with g_dbus_connection_signal_unsubscribe() - * - * Since: 2.26 - */ - public uint signalSubscribe(string sender, string interfaceName, string member, string objectPath, string arg0, GDBusSignalFlags flags, GDBusSignalCallback callback, void* userData, GDestroyNotify userDataFreeFunc) - { - return g_dbus_connection_signal_subscribe(gDBusConnection, Str.toStringz(sender), Str.toStringz(interfaceName), Str.toStringz(member), Str.toStringz(objectPath), Str.toStringz(arg0), flags, callback, userData, userDataFreeFunc); - } - - /** - * Unsubscribes from signals. - * - * Note that there may still be D-Bus traffic to process (relating to this - * signal subscription) in the current thread-default #GMainContext after this - * function has returned. You should continue to iterate the #GMainContext - * until the #GDestroyNotify function passed to - * g_dbus_connection_signal_subscribe() is called, in order to avoid memory - * leaks through callbacks queued on the #GMainContext after it’s stopped being - * iterated. - * - * Params: - * subscriptionId = a subscription id obtained from - * g_dbus_connection_signal_subscribe() - * - * Since: 2.26 - */ - public void signalUnsubscribe(uint subscriptionId) - { - g_dbus_connection_signal_unsubscribe(gDBusConnection, subscriptionId); - } - - /** - * If @connection was created with - * %G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING, this method - * starts processing messages. Does nothing on if @connection wasn't - * created with this flag or if the method has already been called. - * - * Since: 2.26 - */ - public void startMessageProcessing() - { - g_dbus_connection_start_message_processing(gDBusConnection); - } - - /** - * Reverses the effect of a previous call to - * g_dbus_connection_export_action_group(). - * - * It is an error to call this function with an ID that wasn't returned - * from g_dbus_connection_export_action_group() or to call it with the - * same ID more than once. - * - * Params: - * exportId = the ID from g_dbus_connection_export_action_group() - * - * Since: 2.32 - */ - public void unexportActionGroup(uint exportId) - { - g_dbus_connection_unexport_action_group(gDBusConnection, exportId); - } - - /** - * Reverses the effect of a previous call to - * g_dbus_connection_export_menu_model(). - * - * It is an error to call this function with an ID that wasn't returned - * from g_dbus_connection_export_menu_model() or to call it with the - * same ID more than once. - * - * Params: - * exportId = the ID from g_dbus_connection_export_menu_model() - * - * Since: 2.32 - */ - public void unexportMenuModel(uint exportId) - { - g_dbus_connection_unexport_menu_model(gDBusConnection, exportId); - } - - /** - * Unregisters an object. - * - * Params: - * registrationId = a registration id obtained from - * g_dbus_connection_register_object() - * - * Returns: %TRUE if the object was unregistered, %FALSE otherwise - * - * Since: 2.26 - */ - public bool unregisterObject(uint registrationId) - { - return g_dbus_connection_unregister_object(gDBusConnection, registrationId) != 0; - } - - /** - * Unregisters a subtree. - * - * Params: - * registrationId = a subtree registration id obtained from - * g_dbus_connection_register_subtree() - * - * Returns: %TRUE if the subtree was unregistered, %FALSE otherwise - * - * Since: 2.26 - */ - public bool unregisterSubtree(uint registrationId) - { - return g_dbus_connection_unregister_subtree(gDBusConnection, registrationId) != 0; - } - - /** - * Emitted when the connection is closed. - * - * The cause of this event can be - * - * - If g_dbus_connection_close() is called. In this case - * @remote_peer_vanished is set to %FALSE and @error is %NULL. - * - * - If the remote peer closes the connection. In this case - * @remote_peer_vanished is set to %TRUE and @error is set. - * - * - If the remote peer sends invalid or malformed data. In this - * case @remote_peer_vanished is set to %FALSE and @error is set. - * - * Upon receiving this signal, you should give up your reference to - * @connection. You are guaranteed that this signal is emitted only - * once. - * - * Params: - * remotePeerVanished = %TRUE if @connection is closed because the - * remote peer closed its end of the connection - * error = a #GError with more details about the event or %NULL - * - * Since: 2.26 - */ - gulong addOnClosed(void delegate(bool, ErrorG, DBusConnection) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "closed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Asynchronously connects to the message bus specified by @bus_type. - * - * When the operation is finished, @callback will be invoked. You can - * then call g_bus_get_finish() to get the result of the operation. - * - * This is an asynchronous failable function. See g_bus_get_sync() for - * the synchronous version. - * - * Params: - * busType = a #GBusType - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to @callback - * - * Since: 2.26 - */ - public static void get(GBusType busType, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_bus_get(busType, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_bus_get(). - * - * The returned object is a singleton, that is, shared with other - * callers of g_bus_get() and g_bus_get_sync() for @bus_type. In the - * event that you need a private message bus connection, use - * g_dbus_address_get_for_bus_sync() and - * g_dbus_connection_new_for_address(). - * - * Note that the returned #GDBusConnection object will (usually) have - * the #GDBusConnection:exit-on-close property set to %TRUE. - * - * Params: - * res = a #GAsyncResult obtained from the #GAsyncReadyCallback passed - * to g_bus_get() - * - * Returns: a #GDBusConnection or %NULL if @error is set. - * Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static DBusConnection getFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_bus_get_finish((res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p, true); - } - - /** - * Synchronously connects to the message bus specified by @bus_type. - * Note that the returned object may shared with other callers, - * e.g. if two separate parts of a process calls this function with - * the same @bus_type, they will share the same object. - * - * This is a synchronous failable function. See g_bus_get() and - * g_bus_get_finish() for the asynchronous version. - * - * The returned object is a singleton, that is, shared with other - * callers of g_bus_get() and g_bus_get_sync() for @bus_type. In the - * event that you need a private message bus connection, use - * g_dbus_address_get_for_bus_sync() and - * g_dbus_connection_new_for_address(). - * - * Note that the returned #GDBusConnection object will (usually) have - * the #GDBusConnection:exit-on-close property set to %TRUE. - * - * Params: - * busType = a #GBusType - * cancellable = a #GCancellable or %NULL - * - * Returns: a #GDBusConnection or %NULL if @error is set. - * Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static DBusConnection getSync(GBusType busType, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_bus_get_sync(busType, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p, true); - } -} diff --git a/generated/gtkd/gio/DBusError.d b/generated/gtkd/gio/DBusError.d deleted file mode 100644 index 221cef07c..000000000 --- a/generated/gtkd/gio/DBusError.d +++ /dev/null @@ -1,238 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusError; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.Str; -private import glib.c.functions; - - -/** */ -public struct DBusError -{ - - /** - * Creates a D-Bus error name to use for @error. If @error matches - * a registered error (cf. g_dbus_error_register_error()), the corresponding - * D-Bus error name will be returned. - * - * Otherwise the a name of the form - * `org.gtk.GDBus.UnmappedGError.Quark._ESCAPED_QUARK_NAME.Code_ERROR_CODE` - * will be used. This allows other GDBus applications to map the error - * on the wire back to a #GError using g_dbus_error_new_for_dbus_error(). - * - * This function is typically only used in object mappings to put a - * #GError on the wire. Regular applications should not use it. - * - * Params: - * error = A #GError. - * - * Returns: A D-Bus error name (never %NULL). - * Free with g_free(). - * - * Since: 2.26 - */ - public static string encodeGerror(ErrorG error) - { - auto retStr = g_dbus_error_encode_gerror((error is null) ? null : error.getErrorGStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the D-Bus error name used for @error, if any. - * - * This function is guaranteed to return a D-Bus error name for all - * #GErrors returned from functions handling remote method calls - * (e.g. g_dbus_connection_call_finish()) unless - * g_dbus_error_strip_remote_error() has been used on @error. - * - * Params: - * error = a #GError - * - * Returns: an allocated string or %NULL if the - * D-Bus error name could not be found. Free with g_free(). - * - * Since: 2.26 - */ - public static string getRemoteError(ErrorG error) - { - auto retStr = g_dbus_error_get_remote_error((error is null) ? null : error.getErrorGStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Checks if @error represents an error received via D-Bus from a remote peer. If so, - * use g_dbus_error_get_remote_error() to get the name of the error. - * - * Params: - * error = A #GError. - * - * Returns: %TRUE if @error represents an error from a remote peer, - * %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool isRemoteError(ErrorG error) - { - return g_dbus_error_is_remote_error((error is null) ? null : error.getErrorGStruct()) != 0; - } - - /** - * Creates a #GError based on the contents of @dbus_error_name and - * @dbus_error_message. - * - * Errors registered with g_dbus_error_register_error() will be looked - * up using @dbus_error_name and if a match is found, the error domain - * and code is used. Applications can use g_dbus_error_get_remote_error() - * to recover @dbus_error_name. - * - * If a match against a registered error is not found and the D-Bus - * error name is in a form as returned by g_dbus_error_encode_gerror() - * the error domain and code encoded in the name is used to - * create the #GError. Also, @dbus_error_name is added to the error message - * such that it can be recovered with g_dbus_error_get_remote_error(). - * - * Otherwise, a #GError with the error code %G_IO_ERROR_DBUS_ERROR - * in the #G_IO_ERROR error domain is returned. Also, @dbus_error_name is - * added to the error message such that it can be recovered with - * g_dbus_error_get_remote_error(). - * - * In all three cases, @dbus_error_name can always be recovered from the - * returned #GError using the g_dbus_error_get_remote_error() function - * (unless g_dbus_error_strip_remote_error() hasn't been used on the returned error). - * - * This function is typically only used in object mappings to prepare - * #GError instances for applications. Regular applications should not use - * it. - * - * Params: - * dbusErrorName = D-Bus error name. - * dbusErrorMessage = D-Bus error message. - * - * Returns: An allocated #GError. Free with g_error_free(). - * - * Since: 2.26 - */ - public static ErrorG newForDbusError(string dbusErrorName, string dbusErrorMessage) - { - auto __p = g_dbus_error_new_for_dbus_error(Str.toStringz(dbusErrorName), Str.toStringz(dbusErrorMessage)); - - if(__p is null) - { - return null; - } - - return new ErrorG(cast(GError*) __p, true); - } - - /** */ - public static GQuark quark() - { - return g_dbus_error_quark(); - } - - /** - * Creates an association to map between @dbus_error_name and - * #GErrors specified by @error_domain and @error_code. - * - * This is typically done in the routine that returns the #GQuark for - * an error domain. - * - * Params: - * errorDomain = A #GQuark for an error domain. - * errorCode = An error code. - * dbusErrorName = A D-Bus error name. - * - * Returns: %TRUE if the association was created, %FALSE if it already - * exists. - * - * Since: 2.26 - */ - public static bool registerError(GQuark errorDomain, int errorCode, string dbusErrorName) - { - return g_dbus_error_register_error(errorDomain, errorCode, Str.toStringz(dbusErrorName)) != 0; - } - - /** - * Helper function for associating a #GError error domain with D-Bus error names. - * - * While @quark_volatile has a `volatile` qualifier, this is a historical - * artifact and the argument passed to it should not be `volatile`. - * - * Params: - * errorDomainQuarkName = The error domain name. - * quarkVolatile = A pointer where to store the #GQuark. - * entries = A pointer to @num_entries #GDBusErrorEntry struct items. - * - * Since: 2.26 - */ - public static void registerErrorDomain(string errorDomainQuarkName, size_t* quarkVolatile, GDBusErrorEntry[] entries) - { - g_dbus_error_register_error_domain(Str.toStringz(errorDomainQuarkName), quarkVolatile, entries.ptr, cast(uint)entries.length); - } - - /** - * Looks for extra information in the error message used to recover - * the D-Bus error name and strips it if found. If stripped, the - * message field in @error will correspond exactly to what was - * received on the wire. - * - * This is typically used when presenting errors to the end user. - * - * Params: - * error = A #GError. - * - * Returns: %TRUE if information was stripped, %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool stripRemoteError(ErrorG error) - { - return g_dbus_error_strip_remote_error((error is null) ? null : error.getErrorGStruct()) != 0; - } - - /** - * Destroys an association previously set up with g_dbus_error_register_error(). - * - * Params: - * errorDomain = A #GQuark for an error domain. - * errorCode = An error code. - * dbusErrorName = A D-Bus error name. - * - * Returns: %TRUE if the association was destroyed, %FALSE if it wasn't found. - * - * Since: 2.26 - */ - public static bool unregisterError(GQuark errorDomain, int errorCode, string dbusErrorName) - { - return g_dbus_error_unregister_error(errorDomain, errorCode, Str.toStringz(dbusErrorName)) != 0; - } -} diff --git a/generated/gtkd/gio/DBusInterfaceIF.d b/generated/gtkd/gio/DBusInterfaceIF.d deleted file mode 100644 index 2cc9a1bbe..000000000 --- a/generated/gtkd/gio/DBusInterfaceIF.d +++ /dev/null @@ -1,100 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusInterfaceIF; - -private import gio.DBusInterfaceInfo; -private import gio.DBusObjectIF; -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; - - -/** - * The #GDBusInterface type is the base type for D-Bus interfaces both - * on the service side (see #GDBusInterfaceSkeleton) and client side - * (see #GDBusProxy). - * - * Since: 2.30 - */ -public interface DBusInterfaceIF{ - /** Get the main Gtk struct */ - public GDBusInterface* getDBusInterfaceStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_dbus_interface_get_type(); - } - - /** - * Gets the #GDBusObject that @interface_ belongs to, if any. - * - * Returns: A #GDBusObject or %NULL. The returned - * reference should be freed with g_object_unref(). - * - * Since: 2.32 - */ - public DBusObjectIF dupObject(); - - /** - * Gets D-Bus introspection information for the D-Bus interface - * implemented by @interface_. - * - * Returns: A #GDBusInterfaceInfo. Do not free. - * - * Since: 2.30 - */ - public DBusInterfaceInfo getInfo(); - - /** - * Gets the #GDBusObject that @interface_ belongs to, if any. - * - * It is not safe to use the returned object if @interface_ or - * the returned object is being used from other threads. See - * g_dbus_interface_dup_object() for a thread-safe alternative. - * - * Returns: A #GDBusObject or %NULL. The returned - * reference belongs to @interface_ and should not be freed. - * - * Since: 2.30 - */ - public DBusObjectIF getObject(); - - /** - * Sets the #GDBusObject for @interface_ to @object. - * - * Note that @interface_ will hold a weak reference to @object. - * - * Params: - * object = A #GDBusObject or %NULL. - * - * Since: 2.30 - */ - public void setObject(DBusObjectIF object); -} diff --git a/generated/gtkd/gio/DBusInterfaceInfo.d b/generated/gtkd/gio/DBusInterfaceInfo.d deleted file mode 100644 index 918a8cd72..000000000 --- a/generated/gtkd/gio/DBusInterfaceInfo.d +++ /dev/null @@ -1,381 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusInterfaceInfo; - -private import gio.DBusAnnotationInfo; -private import gio.DBusMethodInfo; -private import gio.DBusPropertyInfo; -private import gio.DBusSignalInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.StringG; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Information about a D-Bus interface. - * - * Since: 2.26 - */ -public final class DBusInterfaceInfo -{ - /** the main Gtk struct */ - protected GDBusInterfaceInfo* gDBusInterfaceInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDBusInterfaceInfo* getDBusInterfaceInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusInterfaceInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDBusInterfaceInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusInterfaceInfo* gDBusInterfaceInfo, bool ownedRef = false) - { - this.gDBusInterfaceInfo = gDBusInterfaceInfo; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_dbus_interface_info_unref(gDBusInterfaceInfo); - } - - - /** - * The reference count or -1 if statically allocated. - */ - public @property int refCount() - { - return gDBusInterfaceInfo.refCount; - } - - /** Ditto */ - public @property void refCount(int value) - { - gDBusInterfaceInfo.refCount = value; - } - - /** - * The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties". - */ - public @property string name() - { - return Str.toString(gDBusInterfaceInfo.name); - } - - /** Ditto */ - public @property void name(string value) - { - gDBusInterfaceInfo.name = Str.toStringz(value); - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusMethodInfo structures or %NULL if there are no methods. - */ - public @property DBusMethodInfo[] methods() - { - DBusMethodInfo[] arr = new DBusMethodInfo[getArrayLength(gDBusInterfaceInfo.methods)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusMethodInfo)(gDBusInterfaceInfo.methods[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void methods(DBusMethodInfo[] value) - { - GDBusMethodInfo*[] arr = new GDBusMethodInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusMethodInfoStruct(); - } - arr[value.length] = null; - - gDBusInterfaceInfo.methods = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusSignalInfo structures or %NULL if there are no signals. - */ - public @property DBusSignalInfo[] signals() - { - DBusSignalInfo[] arr = new DBusSignalInfo[getArrayLength(gDBusInterfaceInfo.signals)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusSignalInfo)(gDBusInterfaceInfo.signals[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void signals(DBusSignalInfo[] value) - { - GDBusSignalInfo*[] arr = new GDBusSignalInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusSignalInfoStruct(); - } - arr[value.length] = null; - - gDBusInterfaceInfo.signals = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusPropertyInfo structures or %NULL if there are no properties. - */ - public @property DBusPropertyInfo[] properties() - { - DBusPropertyInfo[] arr = new DBusPropertyInfo[getArrayLength(gDBusInterfaceInfo.properties)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusPropertyInfo)(gDBusInterfaceInfo.properties[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void properties(DBusPropertyInfo[] value) - { - GDBusPropertyInfo*[] arr = new GDBusPropertyInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusPropertyInfoStruct(); - } - arr[value.length] = null; - - gDBusInterfaceInfo.properties = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - public @property DBusAnnotationInfo[] annotations() - { - DBusAnnotationInfo[] arr = new DBusAnnotationInfo[getArrayLength(gDBusInterfaceInfo.annotations)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusAnnotationInfo)(gDBusInterfaceInfo.annotations[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void annotations(DBusAnnotationInfo[] value) - { - GDBusAnnotationInfo*[] arr = new GDBusAnnotationInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusAnnotationInfoStruct(); - } - arr[value.length] = null; - - gDBusInterfaceInfo.annotations = arr.ptr; - } - - /** */ - public static GType getType() - { - return g_dbus_interface_info_get_type(); - } - - /** - * Builds a lookup-cache to speed up - * g_dbus_interface_info_lookup_method(), - * g_dbus_interface_info_lookup_signal() and - * g_dbus_interface_info_lookup_property(). - * - * If this has already been called with @info, the existing cache is - * used and its use count is increased. - * - * Note that @info cannot be modified until - * g_dbus_interface_info_cache_release() is called. - * - * Since: 2.30 - */ - public void cacheBuild() - { - g_dbus_interface_info_cache_build(gDBusInterfaceInfo); - } - - /** - * Decrements the usage count for the cache for @info built by - * g_dbus_interface_info_cache_build() (if any) and frees the - * resources used by the cache if the usage count drops to zero. - * - * Since: 2.30 - */ - public void cacheRelease() - { - g_dbus_interface_info_cache_release(gDBusInterfaceInfo); - } - - /** - * Appends an XML representation of @info (and its children) to @string_builder. - * - * This function is typically used for generating introspection XML - * documents at run-time for handling the - * `org.freedesktop.DBus.Introspectable.Introspect` - * method. - * - * Params: - * indent = Indentation level. - * stringBuilder = A #GString to to append XML data to. - * - * Since: 2.26 - */ - public void generateXml(uint indent, StringG stringBuilder) - { - g_dbus_interface_info_generate_xml(gDBusInterfaceInfo, indent, (stringBuilder is null) ? null : stringBuilder.getStringGStruct()); - } - - /** - * Looks up information about a method. - * - * The cost of this function is O(n) in number of methods unless - * g_dbus_interface_info_cache_build() has been used on @info. - * - * Params: - * name = A D-Bus method name (typically in CamelCase) - * - * Returns: A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by @info. - * - * Since: 2.26 - */ - public DBusMethodInfo lookupMethod(string name) - { - auto __p = g_dbus_interface_info_lookup_method(gDBusInterfaceInfo, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMethodInfo)(cast(GDBusMethodInfo*) __p); - } - - /** - * Looks up information about a property. - * - * The cost of this function is O(n) in number of properties unless - * g_dbus_interface_info_cache_build() has been used on @info. - * - * Params: - * name = A D-Bus property name (typically in CamelCase). - * - * Returns: A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info. - * - * Since: 2.26 - */ - public DBusPropertyInfo lookupProperty(string name) - { - auto __p = g_dbus_interface_info_lookup_property(gDBusInterfaceInfo, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusPropertyInfo)(cast(GDBusPropertyInfo*) __p); - } - - /** - * Looks up information about a signal. - * - * The cost of this function is O(n) in number of signals unless - * g_dbus_interface_info_cache_build() has been used on @info. - * - * Params: - * name = A D-Bus signal name (typically in CamelCase) - * - * Returns: A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by @info. - * - * Since: 2.26 - */ - public DBusSignalInfo lookupSignal(string name) - { - auto __p = g_dbus_interface_info_lookup_signal(gDBusInterfaceInfo, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusSignalInfo)(cast(GDBusSignalInfo*) __p); - } - - alias doref = ref_; - /** - * If @info is statically allocated does nothing. Otherwise increases - * the reference count. - * - * Returns: The same @info. - * - * Since: 2.26 - */ - public DBusInterfaceInfo ref_() - { - auto __p = g_dbus_interface_info_ref(gDBusInterfaceInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusInterfaceInfo)(cast(GDBusInterfaceInfo*) __p, true); - } - - /** - * If @info is statically allocated, does nothing. Otherwise decreases - * the reference count of @info. When its reference count drops to 0, - * the memory used is freed. - * - * Since: 2.26 - */ - public void unref() - { - g_dbus_interface_info_unref(gDBusInterfaceInfo); - } -} diff --git a/generated/gtkd/gio/DBusInterfaceSkeleton.d b/generated/gtkd/gio/DBusInterfaceSkeleton.d deleted file mode 100644 index b7abefeb9..000000000 --- a/generated/gtkd/gio/DBusInterfaceSkeleton.d +++ /dev/null @@ -1,366 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusInterfaceSkeleton; - -private import gio.DBusConnection; -private import gio.DBusInterfaceIF; -private import gio.DBusInterfaceInfo; -private import gio.DBusInterfaceT; -private import gio.DBusMethodInvocation; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * Abstract base class for D-Bus interfaces on the service side. - * - * Since: 2.30 - */ -public class DBusInterfaceSkeleton : ObjectG, DBusInterfaceIF -{ - /** the main Gtk struct */ - protected GDBusInterfaceSkeleton* gDBusInterfaceSkeleton; - - /** Get the main Gtk struct */ - public GDBusInterfaceSkeleton* getDBusInterfaceSkeletonStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusInterfaceSkeleton; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusInterfaceSkeleton; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusInterfaceSkeleton* gDBusInterfaceSkeleton, bool ownedRef = false) - { - this.gDBusInterfaceSkeleton = gDBusInterfaceSkeleton; - super(cast(GObject*)gDBusInterfaceSkeleton, ownedRef); - } - - // add the DBusInterface capabilities - mixin DBusInterfaceT!(GDBusInterfaceSkeleton); - - - /** */ - public static GType getType() - { - return g_dbus_interface_skeleton_get_type(); - } - - alias expor = export_; - /** - * Exports @interface_ at @object_path on @connection. - * - * This can be called multiple times to export the same @interface_ - * onto multiple connections however the @object_path provided must be - * the same for all connections. - * - * Use g_dbus_interface_skeleton_unexport() to unexport the object. - * - * Params: - * connection = A #GDBusConnection to export @interface_ on. - * objectPath = The path to export the interface at. - * - * Returns: %TRUE if the interface was exported on @connection, otherwise %FALSE with - * @error set. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public bool export_(DBusConnection connection, string objectPath) - { - GError* err = null; - - auto __p = g_dbus_interface_skeleton_export(gDBusInterfaceSkeleton, (connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(objectPath), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * If @interface_ has outstanding changes, request for these changes to be - * emitted immediately. - * - * For example, an exported D-Bus interface may queue up property - * changes and emit the - * `org.freedesktop.DBus.Properties.PropertiesChanged` - * signal later (e.g. in an idle handler). This technique is useful - * for collapsing multiple property changes into one. - * - * Since: 2.30 - */ - public void flush() - { - g_dbus_interface_skeleton_flush(gDBusInterfaceSkeleton); - } - - /** - * Gets the first connection that @interface_ is exported on, if any. - * - * Returns: A #GDBusConnection or %NULL if @interface_ is - * not exported anywhere. Do not free, the object belongs to @interface_. - * - * Since: 2.30 - */ - public DBusConnection getConnection() - { - auto __p = g_dbus_interface_skeleton_get_connection(gDBusInterfaceSkeleton); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p); - } - - /** - * Gets a list of the connections that @interface_ is exported on. - * - * Returns: A list of - * all the connections that @interface_ is exported on. The returned - * list should be freed with g_list_free() after each element has - * been freed with g_object_unref(). - * - * Since: 2.32 - */ - public ListG getConnections() - { - auto __p = g_dbus_interface_skeleton_get_connections(gDBusInterfaceSkeleton); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets the #GDBusInterfaceSkeletonFlags that describes what the behavior - * of @interface_ - * - * Returns: One or more flags from the #GDBusInterfaceSkeletonFlags enumeration. - * - * Since: 2.30 - */ - public GDBusInterfaceSkeletonFlags getFlags() - { - return g_dbus_interface_skeleton_get_flags(gDBusInterfaceSkeleton); - } - - /** - * Gets D-Bus introspection information for the D-Bus interface - * implemented by @interface_. - * - * Returns: A #GDBusInterfaceInfo (never %NULL). Do not free. - * - * Since: 2.30 - */ - public DBusInterfaceInfo getInfo() - { - auto __p = g_dbus_interface_skeleton_get_info(gDBusInterfaceSkeleton); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusInterfaceInfo)(cast(GDBusInterfaceInfo*) __p); - } - - /** - * Gets the object path that @interface_ is exported on, if any. - * - * Returns: A string owned by @interface_ or %NULL if @interface_ is not exported - * anywhere. Do not free, the string belongs to @interface_. - * - * Since: 2.30 - */ - public string getObjectPath() - { - return Str.toString(g_dbus_interface_skeleton_get_object_path(gDBusInterfaceSkeleton)); - } - - /** - * Gets all D-Bus properties for @interface_. - * - * Returns: A #GVariant of type - * ['a{sv}'][G-VARIANT-TYPE-VARDICT:CAPS]. - * Free with g_variant_unref(). - * - * Since: 2.30 - */ - public Variant getProperties() - { - auto __p = g_dbus_interface_skeleton_get_properties(gDBusInterfaceSkeleton); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the interface vtable for the D-Bus interface implemented by - * @interface_. The returned function pointers should expect @interface_ - * itself to be passed as @user_data. - * - * Returns: A #GDBusInterfaceVTable (never %NULL). - * - * Since: 2.30 - */ - public GDBusInterfaceVTable* getVtable() - { - return g_dbus_interface_skeleton_get_vtable(gDBusInterfaceSkeleton); - } - - /** - * Checks if @interface_ is exported on @connection. - * - * Params: - * connection = A #GDBusConnection. - * - * Returns: %TRUE if @interface_ is exported on @connection, %FALSE otherwise. - * - * Since: 2.32 - */ - public bool hasConnection(DBusConnection connection) - { - return g_dbus_interface_skeleton_has_connection(gDBusInterfaceSkeleton, (connection is null) ? null : connection.getDBusConnectionStruct()) != 0; - } - - /** - * Sets flags describing what the behavior of @skeleton should be. - * - * Params: - * flags = Flags from the #GDBusInterfaceSkeletonFlags enumeration. - * - * Since: 2.30 - */ - public void setFlags(GDBusInterfaceSkeletonFlags flags) - { - g_dbus_interface_skeleton_set_flags(gDBusInterfaceSkeleton, flags); - } - - /** - * Stops exporting @interface_ on all connections it is exported on. - * - * To unexport @interface_ from only a single connection, use - * g_dbus_interface_skeleton_unexport_from_connection() - * - * Since: 2.30 - */ - public void unexport() - { - g_dbus_interface_skeleton_unexport(gDBusInterfaceSkeleton); - } - - /** - * Stops exporting @interface_ on @connection. - * - * To stop exporting on all connections the interface is exported on, - * use g_dbus_interface_skeleton_unexport(). - * - * Params: - * connection = A #GDBusConnection. - * - * Since: 2.32 - */ - public void unexportFromConnection(DBusConnection connection) - { - g_dbus_interface_skeleton_unexport_from_connection(gDBusInterfaceSkeleton, (connection is null) ? null : connection.getDBusConnectionStruct()); - } - - /** - * Emitted when a method is invoked by a remote caller and used to - * determine if the method call is authorized. - * - * Note that this signal is emitted in a thread dedicated to - * handling the method call so handlers are allowed to perform - * blocking IO. This means that it is appropriate to call e.g. - * [polkit_authority_check_authorization_sync()](http://hal.freedesktop.org/docs/polkit/PolkitAuthority.html#polkit-authority-check-authorization-sync) - * with the - * [POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION](http://hal.freedesktop.org/docs/polkit/PolkitAuthority.html#POLKIT-CHECK-AUTHORIZATION-FLAGS-ALLOW-USER-INTERACTION:CAPS) - * flag set. - * - * If %FALSE is returned then no further handlers are run and the - * signal handler must take a reference to @invocation and finish - * handling the call (e.g. return an error via - * g_dbus_method_invocation_return_error()). - * - * Otherwise, if %TRUE is returned, signal emission continues. If no - * handlers return %FALSE, then the method is dispatched. If - * @interface has an enclosing #GDBusObjectSkeleton, then the - * #GDBusObjectSkeleton::authorize-method signal handlers run before - * the handlers for this signal. - * - * The default class handler just returns %TRUE. - * - * Please note that the common case is optimized: if no signals - * handlers are connected and the default class handler isn't - * overridden (for both @interface and the enclosing - * #GDBusObjectSkeleton, if any) and #GDBusInterfaceSkeleton:g-flags does - * not have the - * %G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD - * flags set, no dedicated thread is ever used and the call will be - * handled in the same thread as the object that @interface belongs - * to was exported in. - * - * Params: - * invocation = A #GDBusMethodInvocation. - * - * Returns: %TRUE if the call is authorized, %FALSE otherwise. - * - * Since: 2.30 - */ - gulong addOnGAuthorizeMethod(bool delegate(DBusMethodInvocation, DBusInterfaceSkeleton) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "g-authorize-method", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusInterfaceT.d b/generated/gtkd/gio/DBusInterfaceT.d deleted file mode 100644 index 49ac762bf..000000000 --- a/generated/gtkd/gio/DBusInterfaceT.d +++ /dev/null @@ -1,130 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusInterfaceT; - -public import gio.DBusInterfaceInfo; -public import gio.DBusObjectIF; -public import gio.c.functions; -public import gio.c.types; -public import gobject.ObjectG; - - -/** - * The #GDBusInterface type is the base type for D-Bus interfaces both - * on the service side (see #GDBusInterfaceSkeleton) and client side - * (see #GDBusProxy). - * - * Since: 2.30 - */ -public template DBusInterfaceT(TStruct) -{ - /** Get the main Gtk struct */ - public GDBusInterface* getDBusInterfaceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDBusInterface*)getStruct(); - } - - - /** - * Gets the #GDBusObject that @interface_ belongs to, if any. - * - * Returns: A #GDBusObject or %NULL. The returned - * reference should be freed with g_object_unref(). - * - * Since: 2.32 - */ - public DBusObjectIF dupObject() - { - auto __p = g_dbus_interface_dup_object(getDBusInterfaceStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusObjectIF)(cast(GDBusObject*) __p, true); - } - - /** - * Gets D-Bus introspection information for the D-Bus interface - * implemented by @interface_. - * - * Returns: A #GDBusInterfaceInfo. Do not free. - * - * Since: 2.30 - */ - public DBusInterfaceInfo getInfo() - { - auto __p = g_dbus_interface_get_info(getDBusInterfaceStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusInterfaceInfo)(cast(GDBusInterfaceInfo*) __p); - } - - /** - * Gets the #GDBusObject that @interface_ belongs to, if any. - * - * It is not safe to use the returned object if @interface_ or - * the returned object is being used from other threads. See - * g_dbus_interface_dup_object() for a thread-safe alternative. - * - * Returns: A #GDBusObject or %NULL. The returned - * reference belongs to @interface_ and should not be freed. - * - * Since: 2.30 - */ - public DBusObjectIF getObject() - { - auto __p = g_dbus_interface_get_object(getDBusInterfaceStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusObjectIF)(cast(GDBusObject*) __p); - } - - /** - * Sets the #GDBusObject for @interface_ to @object. - * - * Note that @interface_ will hold a weak reference to @object. - * - * Params: - * object = A #GDBusObject or %NULL. - * - * Since: 2.30 - */ - public void setObject(DBusObjectIF object) - { - g_dbus_interface_set_object(getDBusInterfaceStruct(), (object is null) ? null : object.getDBusObjectStruct()); - } -} diff --git a/generated/gtkd/gio/DBusMenuModel.d b/generated/gtkd/gio/DBusMenuModel.d deleted file mode 100644 index 06416efe5..000000000 --- a/generated/gtkd/gio/DBusMenuModel.d +++ /dev/null @@ -1,125 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusMenuModel; - -private import gio.DBusConnection; -private import gio.MenuModel; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GDBusMenuModel is an implementation of #GMenuModel that can be used - * as a proxy for a menu model that is exported over D-Bus with - * g_dbus_connection_export_menu_model(). - */ -public class DBusMenuModel : MenuModel -{ - /** the main Gtk struct */ - protected GDBusMenuModel* gDBusMenuModel; - - /** Get the main Gtk struct */ - public GDBusMenuModel* getDBusMenuModelStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusMenuModel; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusMenuModel; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusMenuModel* gDBusMenuModel, bool ownedRef = false) - { - this.gDBusMenuModel = gDBusMenuModel; - super(cast(GMenuModel*)gDBusMenuModel, ownedRef); - } - - /** - * See_Also: get(). - */ - this(DBusConnection connection, string busName, string objectPath) - { - auto p = g_dbus_menu_model_get((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(busName), Str.toStringz(objectPath)); - - if(p is null) - { - throw new ConstructionException("null returned by g_dbus_menu_model_get"); - } - - this(cast(GDBusMenuModel*) p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_dbus_menu_model_get_type(); - } - - /** - * Obtains a #GDBusMenuModel for the menu model which is exported - * at the given @bus_name and @object_path. - * - * The thread default main context is taken at the time of this call. - * All signals on the menu model (and any linked models) are reported - * with respect to this context. All calls on the returned menu model - * (and linked models) must also originate from this same context, with - * the thread default main context unchanged. - * - * Params: - * connection = a #GDBusConnection - * busName = the bus name which exports the menu model - * or %NULL if @connection is not a message bus connection - * objectPath = the object path at which the menu model is exported - * - * Returns: a #GDBusMenuModel object. Free with - * g_object_unref(). - * - * Since: 2.32 - */ - public static DBusMenuModel get(DBusConnection connection, string busName, string objectPath) - { - auto __p = g_dbus_menu_model_get((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(busName), Str.toStringz(objectPath)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMenuModel)(cast(GDBusMenuModel*) __p, true); - } -} diff --git a/generated/gtkd/gio/DBusMessage.d b/generated/gtkd/gio/DBusMessage.d deleted file mode 100644 index 468539110..000000000 --- a/generated/gtkd/gio/DBusMessage.d +++ /dev/null @@ -1,934 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusMessage; - -private import gio.UnixFDList; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * A type for representing D-Bus messages that can be sent or received - * on a #GDBusConnection. - * - * Since: 2.26 - */ -public class DBusMessage : ObjectG -{ - /** the main Gtk struct */ - protected GDBusMessage* gDBusMessage; - - /** Get the main Gtk struct */ - public GDBusMessage* getDBusMessageStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusMessage; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusMessage; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusMessage* gDBusMessage, bool ownedRef = false) - { - this.gDBusMessage = gDBusMessage; - super(cast(GObject*)gDBusMessage, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_dbus_message_get_type(); - } - - /** - * Creates a new empty #GDBusMessage. - * - * Returns: A #GDBusMessage. Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_dbus_message_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDBusMessage*) __p, true); - } - - /** - * Creates a new #GDBusMessage from the data stored at @blob. The byte - * order that the message was in can be retrieved using - * g_dbus_message_get_byte_order(). - * - * If the @blob cannot be parsed, contains invalid fields, or contains invalid - * headers, %G_IO_ERROR_INVALID_ARGUMENT will be returned. - * - * Params: - * blob = A blob representing a binary D-Bus message. - * capabilities = A #GDBusCapabilityFlags describing what protocol features are supported. - * - * Returns: A new #GDBusMessage or %NULL if @error is set. Free with - * g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(char[] blob, GDBusCapabilityFlags capabilities) - { - GError* err = null; - - auto __p = g_dbus_message_new_from_blob(blob.ptr, cast(size_t)blob.length, capabilities, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_blob"); - } - - this(cast(GDBusMessage*) __p, true); - } - - /** - * Creates a new #GDBusMessage for a method call. - * - * Params: - * name = A valid D-Bus name or %NULL. - * path = A valid object path. - * interface_ = A valid D-Bus interface name or %NULL. - * method = A valid method name. - * - * Returns: A #GDBusMessage. Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, string path, string interface_, string method) - { - auto __p = g_dbus_message_new_method_call(Str.toStringz(name), Str.toStringz(path), Str.toStringz(interface_), Str.toStringz(method)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_method_call"); - } - - this(cast(GDBusMessage*) __p, true); - } - - /** - * Creates a new #GDBusMessage for a signal emission. - * - * Params: - * path = A valid object path. - * interface_ = A valid D-Bus interface name. - * signal = A valid signal name. - * - * Returns: A #GDBusMessage. Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string path, string interface_, string signal) - { - auto __p = g_dbus_message_new_signal(Str.toStringz(path), Str.toStringz(interface_), Str.toStringz(signal)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_signal"); - } - - this(cast(GDBusMessage*) __p, true); - } - - /** - * Utility function to calculate how many bytes are needed to - * completely deserialize the D-Bus message stored at @blob. - * - * Params: - * blob = A blob representing a binary D-Bus message. - * - * Returns: Number of bytes needed or -1 if @error is set (e.g. if - * @blob contains invalid data or not enough data is available to - * determine the size). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static ptrdiff_t bytesNeeded(char[] blob) - { - GError* err = null; - - auto __p = g_dbus_message_bytes_needed(blob.ptr, cast(size_t)blob.length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Copies @message. The copy is a deep copy and the returned - * #GDBusMessage is completely identical except that it is guaranteed - * to not be locked. - * - * This operation can fail if e.g. @message contains file descriptors - * and the per-process or system-wide open files limit is reached. - * - * Returns: A new #GDBusMessage or %NULL if @error is set. - * Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public DBusMessage copy() - { - GError* err = null; - - auto __p = g_dbus_message_copy(gDBusMessage, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMessage)(cast(GDBusMessage*) __p, true); - } - - /** - * Convenience to get the first item in the body of @message. - * - * Returns: The string item or %NULL if the first item in the body of - * @message is not a string. - * - * Since: 2.26 - */ - public string getArg0() - { - return Str.toString(g_dbus_message_get_arg0(gDBusMessage)); - } - - /** - * Gets the body of a message. - * - * Returns: A #GVariant or %NULL if the body is - * empty. Do not free, it is owned by @message. - * - * Since: 2.26 - */ - public Variant getBody() - { - auto __p = g_dbus_message_get_body(gDBusMessage); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p); - } - - /** - * Gets the byte order of @message. - * - * Returns: The byte order. - */ - public GDBusMessageByteOrder getByteOrder() - { - return g_dbus_message_get_byte_order(gDBusMessage); - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public string getDestination() - { - return Str.toString(g_dbus_message_get_destination(gDBusMessage)); - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public string getErrorName() - { - return Str.toString(g_dbus_message_get_error_name(gDBusMessage)); - } - - /** - * Gets the flags for @message. - * - * Returns: Flags that are set (typically values from the #GDBusMessageFlags enumeration bitwise ORed together). - * - * Since: 2.26 - */ - public GDBusMessageFlags getFlags() - { - return g_dbus_message_get_flags(gDBusMessage); - } - - /** - * Gets a header field on @message. - * - * The caller is responsible for checking the type of the returned #GVariant - * matches what is expected. - * - * Params: - * headerField = A 8-bit unsigned integer (typically a value from the #GDBusMessageHeaderField enumeration) - * - * Returns: A #GVariant with the value if the header was found, %NULL - * otherwise. Do not free, it is owned by @message. - * - * Since: 2.26 - */ - public Variant getHeader(GDBusMessageHeaderField headerField) - { - auto __p = g_dbus_message_get_header(gDBusMessage, headerField); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p); - } - - /** - * Gets an array of all header fields on @message that are set. - * - * Returns: An array of header fields - * terminated by %G_DBUS_MESSAGE_HEADER_FIELD_INVALID. Each element - * is a #guchar. Free with g_free(). - * - * Since: 2.26 - */ - public char[] getHeaderFields() - { - auto __p = g_dbus_message_get_header_fields(gDBusMessage); - - return __p[0 .. getArrayLength(__p)]; - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public string getInterface() - { - return Str.toString(g_dbus_message_get_interface(gDBusMessage)); - } - - /** - * Checks whether @message is locked. To monitor changes to this - * value, conncet to the #GObject::notify signal to listen for changes - * on the #GDBusMessage:locked property. - * - * Returns: %TRUE if @message is locked, %FALSE otherwise. - * - * Since: 2.26 - */ - public bool getLocked() - { - return g_dbus_message_get_locked(gDBusMessage) != 0; - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public string getMember() - { - return Str.toString(g_dbus_message_get_member(gDBusMessage)); - } - - /** - * Gets the type of @message. - * - * Returns: A 8-bit unsigned integer (typically a value from the #GDBusMessageType enumeration). - * - * Since: 2.26 - */ - public GDBusMessageType getMessageType() - { - return g_dbus_message_get_message_type(gDBusMessage); - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public uint getNumUnixFds() - { - return g_dbus_message_get_num_unix_fds(gDBusMessage); - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_PATH header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public string getPath() - { - return Str.toString(g_dbus_message_get_path(gDBusMessage)); - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public uint getReplySerial() - { - return g_dbus_message_get_reply_serial(gDBusMessage); - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public string getSender() - { - return Str.toString(g_dbus_message_get_sender(gDBusMessage)); - } - - /** - * Gets the serial for @message. - * - * Returns: A #guint32. - * - * Since: 2.26 - */ - public uint getSerial() - { - return g_dbus_message_get_serial(gDBusMessage); - } - - /** - * Convenience getter for the %G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field. - * - * Returns: The value. - * - * Since: 2.26 - */ - public string getSignature() - { - return Str.toString(g_dbus_message_get_signature(gDBusMessage)); - } - - /** - * Gets the UNIX file descriptors associated with @message, if any. - * - * This method is only available on UNIX. - * - * The file descriptors normally correspond to %G_VARIANT_TYPE_HANDLE - * values in the body of the message. For example, - * if g_variant_get_handle() returns 5, that is intended to be a reference - * to the file descriptor that can be accessed by - * `g_unix_fd_list_get (list, 5, ...)`. - * - * Returns: A #GUnixFDList or %NULL if no file descriptors are - * associated. Do not free, this object is owned by @message. - * - * Since: 2.26 - */ - public UnixFDList getUnixFdList() - { - auto __p = g_dbus_message_get_unix_fd_list(gDBusMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixFDList)(cast(GUnixFDList*) __p); - } - - /** - * If @message is locked, does nothing. Otherwise locks the message. - * - * Since: 2.26 - */ - public void lock() - { - g_dbus_message_lock(gDBusMessage); - } - - /** - * Creates a new #GDBusMessage that is an error reply to @method_call_message. - * - * Params: - * errorName = A valid D-Bus error name. - * errorMessage = The D-Bus error message. - * - * Returns: A #GDBusMessage. Free with g_object_unref(). - * - * Since: 2.26 - */ - public DBusMessage newMethodErrorLiteral(string errorName, string errorMessage) - { - auto __p = g_dbus_message_new_method_error_literal(gDBusMessage, Str.toStringz(errorName), Str.toStringz(errorMessage)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMessage)(cast(GDBusMessage*) __p, true); - } - - /** - * Like g_dbus_message_new_method_error() but intended for language bindings. - * - * Params: - * errorName = A valid D-Bus error name. - * errorMessageFormat = The D-Bus error message in a printf() format. - * varArgs = Arguments for @error_message_format. - * - * Returns: A #GDBusMessage. Free with g_object_unref(). - * - * Since: 2.26 - */ - public DBusMessage newMethodErrorValist(string errorName, string errorMessageFormat, void* varArgs) - { - auto __p = g_dbus_message_new_method_error_valist(gDBusMessage, Str.toStringz(errorName), Str.toStringz(errorMessageFormat), varArgs); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMessage)(cast(GDBusMessage*) __p, true); - } - - /** - * Creates a new #GDBusMessage that is a reply to @method_call_message. - * - * Returns: #GDBusMessage. Free with g_object_unref(). - * - * Since: 2.26 - */ - public DBusMessage newMethodReply() - { - auto __p = g_dbus_message_new_method_reply(gDBusMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMessage)(cast(GDBusMessage*) __p, true); - } - - /** - * Produces a human-readable multi-line description of @message. - * - * The contents of the description has no ABI guarantees, the contents - * and formatting is subject to change at any time. Typical output - * looks something like this: - * |[ - * Flags: none - * Version: 0 - * Serial: 4 - * Headers: - * path -> objectpath '/org/gtk/GDBus/TestObject' - * interface -> 'org.gtk.GDBus.TestInterface' - * member -> 'GimmeStdout' - * destination -> ':1.146' - * Body: () - * UNIX File Descriptors: - * (none) - * ]| - * or - * |[ - * Flags: no-reply-expected - * Version: 0 - * Serial: 477 - * Headers: - * reply-serial -> uint32 4 - * destination -> ':1.159' - * sender -> ':1.146' - * num-unix-fds -> uint32 1 - * Body: () - * UNIX File Descriptors: - * fd 12: dev=0:10,mode=020620,ino=5,uid=500,gid=5,rdev=136:2,size=0,atime=1273085037,mtime=1273085851,ctime=1272982635 - * ]| - * - * Params: - * indent = Indentation level. - * - * Returns: A string that should be freed with g_free(). - * - * Since: 2.26 - */ - public string print(uint indent) - { - auto retStr = g_dbus_message_print(gDBusMessage, indent); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Sets the body @message. As a side-effect the - * %G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field is set to the - * type string of @body (or cleared if @body is %NULL). - * - * If @body is floating, @message assumes ownership of @body. - * - * Params: - * body_ = Either %NULL or a #GVariant that is a tuple. - * - * Since: 2.26 - */ - public void setBody(Variant body_) - { - g_dbus_message_set_body(gDBusMessage, (body_ is null) ? null : body_.getVariantStruct()); - } - - /** - * Sets the byte order of @message. - * - * Params: - * byteOrder = The byte order. - */ - public void setByteOrder(GDBusMessageByteOrder byteOrder) - { - g_dbus_message_set_byte_order(gDBusMessage, byteOrder); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setDestination(string value) - { - g_dbus_message_set_destination(gDBusMessage, Str.toStringz(value)); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setErrorName(string value) - { - g_dbus_message_set_error_name(gDBusMessage, Str.toStringz(value)); - } - - /** - * Sets the flags to set on @message. - * - * Params: - * flags = Flags for @message that are set (typically values from the #GDBusMessageFlags - * enumeration bitwise ORed together). - * - * Since: 2.26 - */ - public void setFlags(GDBusMessageFlags flags) - { - g_dbus_message_set_flags(gDBusMessage, flags); - } - - /** - * Sets a header field on @message. - * - * If @value is floating, @message assumes ownership of @value. - * - * Params: - * headerField = A 8-bit unsigned integer (typically a value from the #GDBusMessageHeaderField enumeration) - * value = A #GVariant to set the header field or %NULL to clear the header field. - * - * Since: 2.26 - */ - public void setHeader(GDBusMessageHeaderField headerField, Variant value) - { - g_dbus_message_set_header(gDBusMessage, headerField, (value is null) ? null : value.getVariantStruct()); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setInterface(string value) - { - g_dbus_message_set_interface(gDBusMessage, Str.toStringz(value)); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setMember(string value) - { - g_dbus_message_set_member(gDBusMessage, Str.toStringz(value)); - } - - /** - * Sets @message to be of @type. - * - * Params: - * type = A 8-bit unsigned integer (typically a value from the #GDBusMessageType enumeration). - * - * Since: 2.26 - */ - public void setMessageType(GDBusMessageType type) - { - g_dbus_message_set_message_type(gDBusMessage, type); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setNumUnixFds(uint value) - { - g_dbus_message_set_num_unix_fds(gDBusMessage, value); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_PATH header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setPath(string value) - { - g_dbus_message_set_path(gDBusMessage, Str.toStringz(value)); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setReplySerial(uint value) - { - g_dbus_message_set_reply_serial(gDBusMessage, value); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setSender(string value) - { - g_dbus_message_set_sender(gDBusMessage, Str.toStringz(value)); - } - - /** - * Sets the serial for @message. - * - * Params: - * serial = A #guint32. - * - * Since: 2.26 - */ - public void setSerial(uint serial) - { - g_dbus_message_set_serial(gDBusMessage, serial); - } - - /** - * Convenience setter for the %G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field. - * - * Params: - * value = The value to set. - * - * Since: 2.26 - */ - public void setSignature(string value) - { - g_dbus_message_set_signature(gDBusMessage, Str.toStringz(value)); - } - - /** - * Sets the UNIX file descriptors associated with @message. As a - * side-effect the %G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header - * field is set to the number of fds in @fd_list (or cleared if - * @fd_list is %NULL). - * - * This method is only available on UNIX. - * - * When designing D-Bus APIs that are intended to be interoperable, - * please note that non-GDBus implementations of D-Bus can usually only - * access file descriptors if they are referenced by a value of type - * %G_VARIANT_TYPE_HANDLE in the body of the message. - * - * Params: - * fdList = A #GUnixFDList or %NULL. - * - * Since: 2.26 - */ - public void setUnixFdList(UnixFDList fdList) - { - g_dbus_message_set_unix_fd_list(gDBusMessage, (fdList is null) ? null : fdList.getUnixFDListStruct()); - } - - /** - * Serializes @message to a blob. The byte order returned by - * g_dbus_message_get_byte_order() will be used. - * - * Params: - * capabilities = A #GDBusCapabilityFlags describing what protocol features are supported. - * - * Returns: A pointer to a - * valid binary D-Bus message of @out_size bytes generated by @message - * or %NULL if @error is set. Free with g_free(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public char[] toBlob(GDBusCapabilityFlags capabilities) - { - size_t outSize; - GError* err = null; - - auto __p = g_dbus_message_to_blob(gDBusMessage, &outSize, capabilities, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p[0 .. outSize]; - } - - /** - * If @message is not of type %G_DBUS_MESSAGE_TYPE_ERROR does - * nothing and returns %FALSE. - * - * Otherwise this method encodes the error in @message as a #GError - * using g_dbus_error_set_dbus_error() using the information in the - * %G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field of @message as - * well as the first string item in @message's body. - * - * Returns: %TRUE if @error was set, %FALSE otherwise. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool toGerror() - { - GError* err = null; - - auto __p = g_dbus_message_to_gerror(gDBusMessage, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/DBusMethodInfo.d b/generated/gtkd/gio/DBusMethodInfo.d deleted file mode 100644 index 4a78f0f54..000000000 --- a/generated/gtkd/gio/DBusMethodInfo.d +++ /dev/null @@ -1,226 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusMethodInfo; - -private import gio.DBusAnnotationInfo; -private import gio.DBusArgInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Information about a method on an D-Bus interface. - * - * Since: 2.26 - */ -public final class DBusMethodInfo -{ - /** the main Gtk struct */ - protected GDBusMethodInfo* gDBusMethodInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDBusMethodInfo* getDBusMethodInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusMethodInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDBusMethodInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusMethodInfo* gDBusMethodInfo, bool ownedRef = false) - { - this.gDBusMethodInfo = gDBusMethodInfo; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_dbus_method_info_unref(gDBusMethodInfo); - } - - - /** - * The reference count or -1 if statically allocated. - */ - public @property int refCount() - { - return gDBusMethodInfo.refCount; - } - - /** Ditto */ - public @property void refCount(int value) - { - gDBusMethodInfo.refCount = value; - } - - /** - * The name of the D-Bus method, e.g. @RequestName. - */ - public @property string name() - { - return Str.toString(gDBusMethodInfo.name); - } - - /** Ditto */ - public @property void name(string value) - { - gDBusMethodInfo.name = Str.toStringz(value); - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no in arguments. - */ - public @property DBusArgInfo[] inArgs() - { - DBusArgInfo[] arr = new DBusArgInfo[getArrayLength(gDBusMethodInfo.inArgs)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusArgInfo)(gDBusMethodInfo.inArgs[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void inArgs(DBusArgInfo[] value) - { - GDBusArgInfo*[] arr = new GDBusArgInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusArgInfoStruct(); - } - arr[value.length] = null; - - gDBusMethodInfo.inArgs = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no out arguments. - */ - public @property DBusArgInfo[] outArgs() - { - DBusArgInfo[] arr = new DBusArgInfo[getArrayLength(gDBusMethodInfo.outArgs)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusArgInfo)(gDBusMethodInfo.outArgs[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void outArgs(DBusArgInfo[] value) - { - GDBusArgInfo*[] arr = new GDBusArgInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusArgInfoStruct(); - } - arr[value.length] = null; - - gDBusMethodInfo.outArgs = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - public @property DBusAnnotationInfo[] annotations() - { - DBusAnnotationInfo[] arr = new DBusAnnotationInfo[getArrayLength(gDBusMethodInfo.annotations)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusAnnotationInfo)(gDBusMethodInfo.annotations[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void annotations(DBusAnnotationInfo[] value) - { - GDBusAnnotationInfo*[] arr = new GDBusAnnotationInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusAnnotationInfoStruct(); - } - arr[value.length] = null; - - gDBusMethodInfo.annotations = arr.ptr; - } - - /** */ - public static GType getType() - { - return g_dbus_method_info_get_type(); - } - - alias doref = ref_; - /** - * If @info is statically allocated does nothing. Otherwise increases - * the reference count. - * - * Returns: The same @info. - * - * Since: 2.26 - */ - public DBusMethodInfo ref_() - { - auto __p = g_dbus_method_info_ref(gDBusMethodInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMethodInfo)(cast(GDBusMethodInfo*) __p, true); - } - - /** - * If @info is statically allocated, does nothing. Otherwise decreases - * the reference count of @info. When its reference count drops to 0, - * the memory used is freed. - * - * Since: 2.26 - */ - public void unref() - { - g_dbus_method_info_unref(gDBusMethodInfo); - } -} diff --git a/generated/gtkd/gio/DBusMethodInvocation.d b/generated/gtkd/gio/DBusMethodInvocation.d deleted file mode 100644 index 92b953b56..000000000 --- a/generated/gtkd/gio/DBusMethodInvocation.d +++ /dev/null @@ -1,427 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusMethodInvocation; - -private import gio.DBusConnection; -private import gio.DBusMessage; -private import gio.DBusMethodInfo; -private import gio.DBusPropertyInfo; -private import gio.UnixFDList; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Instances of the #GDBusMethodInvocation class are used when - * handling D-Bus method calls. It provides a way to asynchronously - * return results and errors. - * - * The normal way to obtain a #GDBusMethodInvocation object is to receive - * it as an argument to the handle_method_call() function in a - * #GDBusInterfaceVTable that was passed to g_dbus_connection_register_object(). - * - * Since: 2.26 - */ -public class DBusMethodInvocation : ObjectG -{ - /** the main Gtk struct */ - protected GDBusMethodInvocation* gDBusMethodInvocation; - - /** Get the main Gtk struct */ - public GDBusMethodInvocation* getDBusMethodInvocationStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusMethodInvocation; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusMethodInvocation; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusMethodInvocation* gDBusMethodInvocation, bool ownedRef = false) - { - this.gDBusMethodInvocation = gDBusMethodInvocation; - super(cast(GObject*)gDBusMethodInvocation, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_dbus_method_invocation_get_type(); - } - - /** - * Gets the #GDBusConnection the method was invoked on. - * - * Returns: A #GDBusConnection. Do not free, it is owned by @invocation. - * - * Since: 2.26 - */ - public DBusConnection getConnection() - { - auto __p = g_dbus_method_invocation_get_connection(gDBusMethodInvocation); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p); - } - - /** - * Gets the name of the D-Bus interface the method was invoked on. - * - * If this method call is a property Get, Set or GetAll call that has - * been redirected to the method call handler then - * "org.freedesktop.DBus.Properties" will be returned. See - * #GDBusInterfaceVTable for more information. - * - * Returns: A string. Do not free, it is owned by @invocation. - * - * Since: 2.26 - */ - public string getInterfaceName() - { - return Str.toString(g_dbus_method_invocation_get_interface_name(gDBusMethodInvocation)); - } - - /** - * Gets the #GDBusMessage for the method invocation. This is useful if - * you need to use low-level protocol features, such as UNIX file - * descriptor passing, that cannot be properly expressed in the - * #GVariant API. - * - * See this [server][gdbus-server] and [client][gdbus-unix-fd-client] - * for an example of how to use this low-level API to send and receive - * UNIX file descriptors. - * - * Returns: #GDBusMessage. Do not free, it is owned by @invocation. - * - * Since: 2.26 - */ - public DBusMessage getMessage() - { - auto __p = g_dbus_method_invocation_get_message(gDBusMethodInvocation); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMessage)(cast(GDBusMessage*) __p); - } - - /** - * Gets information about the method call, if any. - * - * If this method invocation is a property Get, Set or GetAll call that - * has been redirected to the method call handler then %NULL will be - * returned. See g_dbus_method_invocation_get_property_info() and - * #GDBusInterfaceVTable for more information. - * - * Returns: A #GDBusMethodInfo or %NULL. Do not free, it is owned by @invocation. - * - * Since: 2.26 - */ - public DBusMethodInfo getMethodInfo() - { - auto __p = g_dbus_method_invocation_get_method_info(gDBusMethodInvocation); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusMethodInfo)(cast(GDBusMethodInfo*) __p); - } - - /** - * Gets the name of the method that was invoked. - * - * Returns: A string. Do not free, it is owned by @invocation. - * - * Since: 2.26 - */ - public string getMethodName() - { - return Str.toString(g_dbus_method_invocation_get_method_name(gDBusMethodInvocation)); - } - - /** - * Gets the object path the method was invoked on. - * - * Returns: A string. Do not free, it is owned by @invocation. - * - * Since: 2.26 - */ - public string getObjectPath() - { - return Str.toString(g_dbus_method_invocation_get_object_path(gDBusMethodInvocation)); - } - - /** - * Gets the parameters of the method invocation. If there are no input - * parameters then this will return a GVariant with 0 children rather than NULL. - * - * Returns: A #GVariant tuple. Do not unref this because it is owned by @invocation. - * - * Since: 2.26 - */ - public Variant getParameters() - { - auto __p = g_dbus_method_invocation_get_parameters(gDBusMethodInvocation); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p); - } - - /** - * Gets information about the property that this method call is for, if - * any. - * - * This will only be set in the case of an invocation in response to a - * property Get or Set call that has been directed to the method call - * handler for an object on account of its property_get() or - * property_set() vtable pointers being unset. - * - * See #GDBusInterfaceVTable for more information. - * - * If the call was GetAll, %NULL will be returned. - * - * Returns: a #GDBusPropertyInfo or %NULL - * - * Since: 2.38 - */ - public DBusPropertyInfo getPropertyInfo() - { - auto __p = g_dbus_method_invocation_get_property_info(gDBusMethodInvocation); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusPropertyInfo)(cast(GDBusPropertyInfo*) __p); - } - - /** - * Gets the bus name that invoked the method. - * - * Returns: A string. Do not free, it is owned by @invocation. - * - * Since: 2.26 - */ - public string getSender() - { - return Str.toString(g_dbus_method_invocation_get_sender(gDBusMethodInvocation)); - } - - /** - * Gets the @user_data #gpointer passed to g_dbus_connection_register_object(). - * - * Returns: A #gpointer. - * - * Since: 2.26 - */ - public void* getUserData() - { - return g_dbus_method_invocation_get_user_data(gDBusMethodInvocation); - } - - /** - * Finishes handling a D-Bus method call by returning an error. - * - * This method will take ownership of @invocation. See - * #GDBusInterfaceVTable for more information about the ownership of - * @invocation. - * - * Params: - * errorName = A valid D-Bus error name. - * errorMessage = A valid D-Bus error message. - * - * Since: 2.26 - */ - public void returnDbusError(string errorName, string errorMessage) - { - g_dbus_method_invocation_return_dbus_error(gDBusMethodInvocation, Str.toStringz(errorName), Str.toStringz(errorMessage)); - } - - /** - * Like g_dbus_method_invocation_return_error() but without printf()-style formatting. - * - * This method will take ownership of @invocation. See - * #GDBusInterfaceVTable for more information about the ownership of - * @invocation. - * - * Params: - * domain = A #GQuark for the #GError error domain. - * code = The error code. - * message = The error message. - * - * Since: 2.26 - */ - public void returnErrorLiteral(GQuark domain, int code, string message) - { - g_dbus_method_invocation_return_error_literal(gDBusMethodInvocation, domain, code, Str.toStringz(message)); - } - - /** - * Like g_dbus_method_invocation_return_error() but intended for - * language bindings. - * - * This method will take ownership of @invocation. See - * #GDBusInterfaceVTable for more information about the ownership of - * @invocation. - * - * Params: - * domain = A #GQuark for the #GError error domain. - * code = The error code. - * format = printf()-style format. - * varArgs = #va_list of parameters for @format. - * - * Since: 2.26 - */ - public void returnErrorValist(GQuark domain, int code, string format, void* varArgs) - { - g_dbus_method_invocation_return_error_valist(gDBusMethodInvocation, domain, code, Str.toStringz(format), varArgs); - } - - /** - * Like g_dbus_method_invocation_return_error() but takes a #GError - * instead of the error domain, error code and message. - * - * This method will take ownership of @invocation. See - * #GDBusInterfaceVTable for more information about the ownership of - * @invocation. - * - * Params: - * error = A #GError. - * - * Since: 2.26 - */ - public void returnGerror(ErrorG error) - { - g_dbus_method_invocation_return_gerror(gDBusMethodInvocation, (error is null) ? null : error.getErrorGStruct()); - } - - /** - * Finishes handling a D-Bus method call by returning @parameters. - * If the @parameters GVariant is floating, it is consumed. - * - * It is an error if @parameters is not of the right format: it must be a tuple - * containing the out-parameters of the D-Bus method. Even if the method has a - * single out-parameter, it must be contained in a tuple. If the method has no - * out-parameters, @parameters may be %NULL or an empty tuple. - * - * |[ - * GDBusMethodInvocation *invocation = some_invocation; - * g_autofree gchar *result_string = NULL; - * g_autoptr (GError) error = NULL; - * - * result_string = calculate_result (&error); - * - * if (error != NULL) - * g_dbus_method_invocation_return_gerror (invocation, error); - * else - * g_dbus_method_invocation_return_value (invocation, - * g_variant_new ("(s)", result_string)); - * - * // Do not free @invocation here; returning a value does that - * ]| - * - * This method will take ownership of @invocation. See - * #GDBusInterfaceVTable for more information about the ownership of - * @invocation. - * - * Since 2.48, if the method call requested for a reply not to be sent - * then this call will sink @parameters and free @invocation, but - * otherwise do nothing (as per the recommendations of the D-Bus - * specification). - * - * Params: - * parameters = A #GVariant tuple with out parameters for the method or %NULL if not passing any parameters. - * - * Since: 2.26 - */ - public void returnValue(Variant parameters) - { - g_dbus_method_invocation_return_value(gDBusMethodInvocation, (parameters is null) ? null : parameters.getVariantStruct()); - } - - /** - * Like g_dbus_method_invocation_return_value() but also takes a #GUnixFDList. - * - * This method is only available on UNIX. - * - * This method will take ownership of @invocation. See - * #GDBusInterfaceVTable for more information about the ownership of - * @invocation. - * - * Params: - * parameters = A #GVariant tuple with out parameters for the method or %NULL if not passing any parameters. - * fdList = A #GUnixFDList or %NULL. - * - * Since: 2.30 - */ - public void returnValueWithUnixFdList(Variant parameters, UnixFDList fdList) - { - g_dbus_method_invocation_return_value_with_unix_fd_list(gDBusMethodInvocation, (parameters is null) ? null : parameters.getVariantStruct(), (fdList is null) ? null : fdList.getUnixFDListStruct()); - } - - /** - * Like g_dbus_method_invocation_return_gerror() but takes ownership - * of @error so the caller does not need to free it. - * - * This method will take ownership of @invocation. See - * #GDBusInterfaceVTable for more information about the ownership of - * @invocation. - * - * Params: - * error = A #GError. - * - * Since: 2.30 - */ - public void takeError(ErrorG error) - { - g_dbus_method_invocation_take_error(gDBusMethodInvocation, (error is null) ? null : error.getErrorGStruct(true)); - } -} diff --git a/generated/gtkd/gio/DBusNames.d b/generated/gtkd/gio/DBusNames.d deleted file mode 100644 index dcafb6bef..000000000 --- a/generated/gtkd/gio/DBusNames.d +++ /dev/null @@ -1,338 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusNames; - -private import gio.DBusConnection; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import gobject.Closure; - - -/** */ -public struct DBusNames -{ - - /** - * Starts acquiring @name on the bus specified by @bus_type and calls - * @name_acquired_handler and @name_lost_handler when the name is - * acquired respectively lost. Callbacks will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this function from. - * - * You are guaranteed that one of the @name_acquired_handler and @name_lost_handler - * callbacks will be invoked after calling this function - there are three - * possible cases: - * - * - @name_lost_handler with a %NULL connection (if a connection to the bus - * can't be made). - * - * - @bus_acquired_handler then @name_lost_handler (if the name can't be - * obtained) - * - * - @bus_acquired_handler then @name_acquired_handler (if the name was - * obtained). - * - * When you are done owning the name, just call g_bus_unown_name() - * with the owner id this function returns. - * - * If the name is acquired or lost (for example another application - * could acquire the name if you allow replacement or the application - * currently owning the name exits), the handlers are also invoked. - * If the #GDBusConnection that is used for attempting to own the name - * closes, then @name_lost_handler is invoked since it is no longer - * possible for other processes to access the process. - * - * You cannot use g_bus_own_name() several times for the same name (unless - * interleaved with calls to g_bus_unown_name()) - only the first call - * will work. - * - * Another guarantee is that invocations of @name_acquired_handler - * and @name_lost_handler are guaranteed to alternate; that - * is, if @name_acquired_handler is invoked then you are - * guaranteed that the next time one of the handlers is invoked, it - * will be @name_lost_handler. The reverse is also true. - * - * If you plan on exporting objects (using e.g. - * g_dbus_connection_register_object()), note that it is generally too late - * to export the objects in @name_acquired_handler. Instead, you can do this - * in @bus_acquired_handler since you are guaranteed that this will run - * before @name is requested from the bus. - * - * This behavior makes it very simple to write applications that wants - * to [own names][gdbus-owning-names] and export objects. - * Simply register objects to be exported in @bus_acquired_handler and - * unregister the objects (if any) in @name_lost_handler. - * - * Params: - * busType = the type of bus to own a name on - * name = the well-known name to own - * flags = a set of flags from the #GBusNameOwnerFlags enumeration - * busAcquiredHandler = handler to invoke when connected to the bus of type @bus_type or %NULL - * nameAcquiredHandler = handler to invoke when @name is acquired or %NULL - * nameLostHandler = handler to invoke when @name is lost or %NULL - * userData = user data to pass to handlers - * userDataFreeFunc = function for freeing @user_data or %NULL - * - * Returns: an identifier (never 0) that can be used with - * g_bus_unown_name() to stop owning the name. - * - * Since: 2.26 - */ - public static uint ownName(GBusType busType, string name, GBusNameOwnerFlags flags, GBusAcquiredCallback busAcquiredHandler, GBusNameAcquiredCallback nameAcquiredHandler, GBusNameLostCallback nameLostHandler, void* userData, GDestroyNotify userDataFreeFunc) - { - return g_bus_own_name(busType, Str.toStringz(name), flags, busAcquiredHandler, nameAcquiredHandler, nameLostHandler, userData, userDataFreeFunc); - } - - /** - * Like g_bus_own_name() but takes a #GDBusConnection instead of a - * #GBusType. - * - * Params: - * connection = a #GDBusConnection - * name = the well-known name to own - * flags = a set of flags from the #GBusNameOwnerFlags enumeration - * nameAcquiredHandler = handler to invoke when @name is acquired or %NULL - * nameLostHandler = handler to invoke when @name is lost or %NULL - * userData = user data to pass to handlers - * userDataFreeFunc = function for freeing @user_data or %NULL - * - * Returns: an identifier (never 0) that can be used with - * g_bus_unown_name() to stop owning the name - * - * Since: 2.26 - */ - public static uint ownNameOnConnection(DBusConnection connection, string name, GBusNameOwnerFlags flags, GBusNameAcquiredCallback nameAcquiredHandler, GBusNameLostCallback nameLostHandler, void* userData, GDestroyNotify userDataFreeFunc) - { - return g_bus_own_name_on_connection((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(name), flags, nameAcquiredHandler, nameLostHandler, userData, userDataFreeFunc); - } - - /** - * Version of g_bus_own_name_on_connection() using closures instead of - * callbacks for easier binding in other languages. - * - * Params: - * connection = a #GDBusConnection - * name = the well-known name to own - * flags = a set of flags from the #GBusNameOwnerFlags enumeration - * nameAcquiredClosure = #GClosure to invoke when @name is - * acquired or %NULL - * nameLostClosure = #GClosure to invoke when @name is lost - * or %NULL - * - * Returns: an identifier (never 0) that can be used with - * g_bus_unown_name() to stop owning the name. - * - * Since: 2.26 - */ - public static uint ownNameOnConnectionWithClosures(DBusConnection connection, string name, GBusNameOwnerFlags flags, Closure nameAcquiredClosure, Closure nameLostClosure) - { - return g_bus_own_name_on_connection_with_closures((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(name), flags, (nameAcquiredClosure is null) ? null : nameAcquiredClosure.getClosureStruct(), (nameLostClosure is null) ? null : nameLostClosure.getClosureStruct()); - } - - /** - * Version of g_bus_own_name() using closures instead of callbacks for - * easier binding in other languages. - * - * Params: - * busType = the type of bus to own a name on - * name = the well-known name to own - * flags = a set of flags from the #GBusNameOwnerFlags enumeration - * busAcquiredClosure = #GClosure to invoke when connected to - * the bus of type @bus_type or %NULL - * nameAcquiredClosure = #GClosure to invoke when @name is - * acquired or %NULL - * nameLostClosure = #GClosure to invoke when @name is lost or - * %NULL - * - * Returns: an identifier (never 0) that can be used with - * g_bus_unown_name() to stop owning the name. - * - * Since: 2.26 - */ - public static uint ownNameWithClosures(GBusType busType, string name, GBusNameOwnerFlags flags, Closure busAcquiredClosure, Closure nameAcquiredClosure, Closure nameLostClosure) - { - return g_bus_own_name_with_closures(busType, Str.toStringz(name), flags, (busAcquiredClosure is null) ? null : busAcquiredClosure.getClosureStruct(), (nameAcquiredClosure is null) ? null : nameAcquiredClosure.getClosureStruct(), (nameLostClosure is null) ? null : nameLostClosure.getClosureStruct()); - } - - /** - * Stops owning a name. - * - * Note that there may still be D-Bus traffic to process (relating to owning - * and unowning the name) in the current thread-default #GMainContext after - * this function has returned. You should continue to iterate the #GMainContext - * until the #GDestroyNotify function passed to g_bus_own_name() is called, in - * order to avoid memory leaks through callbacks queued on the #GMainContext - * after it’s stopped being iterated. - * - * Params: - * ownerId = an identifier obtained from g_bus_own_name() - * - * Since: 2.26 - */ - public static void unownName(uint ownerId) - { - g_bus_unown_name(ownerId); - } - - /** - * Stops watching a name. - * - * Note that there may still be D-Bus traffic to process (relating to watching - * and unwatching the name) in the current thread-default #GMainContext after - * this function has returned. You should continue to iterate the #GMainContext - * until the #GDestroyNotify function passed to g_bus_watch_name() is called, in - * order to avoid memory leaks through callbacks queued on the #GMainContext - * after it’s stopped being iterated. - * - * Params: - * watcherId = An identifier obtained from g_bus_watch_name() - * - * Since: 2.26 - */ - public static void unwatchName(uint watcherId) - { - g_bus_unwatch_name(watcherId); - } - - /** - * Starts watching @name on the bus specified by @bus_type and calls - * @name_appeared_handler and @name_vanished_handler when the name is - * known to have an owner respectively known to lose its - * owner. Callbacks will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this function from. - * - * You are guaranteed that one of the handlers will be invoked after - * calling this function. When you are done watching the name, just - * call g_bus_unwatch_name() with the watcher id this function - * returns. - * - * If the name vanishes or appears (for example the application owning - * the name could restart), the handlers are also invoked. If the - * #GDBusConnection that is used for watching the name disconnects, then - * @name_vanished_handler is invoked since it is no longer - * possible to access the name. - * - * Another guarantee is that invocations of @name_appeared_handler - * and @name_vanished_handler are guaranteed to alternate; that - * is, if @name_appeared_handler is invoked then you are - * guaranteed that the next time one of the handlers is invoked, it - * will be @name_vanished_handler. The reverse is also true. - * - * This behavior makes it very simple to write applications that want - * to take action when a certain [name exists][gdbus-watching-names]. - * Basically, the application should create object proxies in - * @name_appeared_handler and destroy them again (if any) in - * @name_vanished_handler. - * - * Params: - * busType = The type of bus to watch a name on. - * name = The name (well-known or unique) to watch. - * flags = Flags from the #GBusNameWatcherFlags enumeration. - * nameAppearedHandler = Handler to invoke when @name is known to exist or %NULL. - * nameVanishedHandler = Handler to invoke when @name is known to not exist or %NULL. - * userData = User data to pass to handlers. - * userDataFreeFunc = Function for freeing @user_data or %NULL. - * - * Returns: An identifier (never 0) that can be used with - * g_bus_unwatch_name() to stop watching the name. - * - * Since: 2.26 - */ - public static uint watchName(GBusType busType, string name, GBusNameWatcherFlags flags, GBusNameAppearedCallback nameAppearedHandler, GBusNameVanishedCallback nameVanishedHandler, void* userData, GDestroyNotify userDataFreeFunc) - { - return g_bus_watch_name(busType, Str.toStringz(name), flags, nameAppearedHandler, nameVanishedHandler, userData, userDataFreeFunc); - } - - /** - * Like g_bus_watch_name() but takes a #GDBusConnection instead of a - * #GBusType. - * - * Params: - * connection = A #GDBusConnection. - * name = The name (well-known or unique) to watch. - * flags = Flags from the #GBusNameWatcherFlags enumeration. - * nameAppearedHandler = Handler to invoke when @name is known to exist or %NULL. - * nameVanishedHandler = Handler to invoke when @name is known to not exist or %NULL. - * userData = User data to pass to handlers. - * userDataFreeFunc = Function for freeing @user_data or %NULL. - * - * Returns: An identifier (never 0) that can be used with - * g_bus_unwatch_name() to stop watching the name. - * - * Since: 2.26 - */ - public static uint watchNameOnConnection(DBusConnection connection, string name, GBusNameWatcherFlags flags, GBusNameAppearedCallback nameAppearedHandler, GBusNameVanishedCallback nameVanishedHandler, void* userData, GDestroyNotify userDataFreeFunc) - { - return g_bus_watch_name_on_connection((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(name), flags, nameAppearedHandler, nameVanishedHandler, userData, userDataFreeFunc); - } - - /** - * Version of g_bus_watch_name_on_connection() using closures instead of callbacks for - * easier binding in other languages. - * - * Params: - * connection = A #GDBusConnection. - * name = The name (well-known or unique) to watch. - * flags = Flags from the #GBusNameWatcherFlags enumeration. - * nameAppearedClosure = #GClosure to invoke when @name is known - * to exist or %NULL. - * nameVanishedClosure = #GClosure to invoke when @name is known - * to not exist or %NULL. - * - * Returns: An identifier (never 0) that can be used with - * g_bus_unwatch_name() to stop watching the name. - * - * Since: 2.26 - */ - public static uint watchNameOnConnectionWithClosures(DBusConnection connection, string name, GBusNameWatcherFlags flags, Closure nameAppearedClosure, Closure nameVanishedClosure) - { - return g_bus_watch_name_on_connection_with_closures((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(name), flags, (nameAppearedClosure is null) ? null : nameAppearedClosure.getClosureStruct(), (nameVanishedClosure is null) ? null : nameVanishedClosure.getClosureStruct()); - } - - /** - * Version of g_bus_watch_name() using closures instead of callbacks for - * easier binding in other languages. - * - * Params: - * busType = The type of bus to watch a name on. - * name = The name (well-known or unique) to watch. - * flags = Flags from the #GBusNameWatcherFlags enumeration. - * nameAppearedClosure = #GClosure to invoke when @name is known - * to exist or %NULL. - * nameVanishedClosure = #GClosure to invoke when @name is known - * to not exist or %NULL. - * - * Returns: An identifier (never 0) that can be used with - * g_bus_unwatch_name() to stop watching the name. - * - * Since: 2.26 - */ - public static uint watchNameWithClosures(GBusType busType, string name, GBusNameWatcherFlags flags, Closure nameAppearedClosure, Closure nameVanishedClosure) - { - return g_bus_watch_name_with_closures(busType, Str.toStringz(name), flags, (nameAppearedClosure is null) ? null : nameAppearedClosure.getClosureStruct(), (nameVanishedClosure is null) ? null : nameVanishedClosure.getClosureStruct()); - } -} diff --git a/generated/gtkd/gio/DBusNodeInfo.d b/generated/gtkd/gio/DBusNodeInfo.d deleted file mode 100644 index 407ede206..000000000 --- a/generated/gtkd/gio/DBusNodeInfo.d +++ /dev/null @@ -1,311 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusNodeInfo; - -private import gio.DBusAnnotationInfo; -private import gio.DBusInterfaceInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.StringG; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Information about nodes in a remote object hierarchy. - * - * Since: 2.26 - */ -public final class DBusNodeInfo -{ - /** the main Gtk struct */ - protected GDBusNodeInfo* gDBusNodeInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDBusNodeInfo* getDBusNodeInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusNodeInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDBusNodeInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusNodeInfo* gDBusNodeInfo, bool ownedRef = false) - { - this.gDBusNodeInfo = gDBusNodeInfo; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_dbus_node_info_unref(gDBusNodeInfo); - } - - - /** - * The reference count or -1 if statically allocated. - */ - public @property int refCount() - { - return gDBusNodeInfo.refCount; - } - - /** Ditto */ - public @property void refCount(int value) - { - gDBusNodeInfo.refCount = value; - } - - /** - * The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details. - */ - public @property string path() - { - return Str.toString(gDBusNodeInfo.path); - } - - /** Ditto */ - public @property void path(string value) - { - gDBusNodeInfo.path = Str.toStringz(value); - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusInterfaceInfo structures or %NULL if there are no interfaces. - */ - public @property DBusInterfaceInfo[] interfaces() - { - DBusInterfaceInfo[] arr = new DBusInterfaceInfo[getArrayLength(gDBusNodeInfo.interfaces)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusInterfaceInfo)(gDBusNodeInfo.interfaces[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void interfaces(DBusInterfaceInfo[] value) - { - GDBusInterfaceInfo*[] arr = new GDBusInterfaceInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusInterfaceInfoStruct(); - } - arr[value.length] = null; - - gDBusNodeInfo.interfaces = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusNodeInfo structures or %NULL if there are no nodes. - */ - public @property DBusNodeInfo[] nodes() - { - DBusNodeInfo[] arr = new DBusNodeInfo[getArrayLength(gDBusNodeInfo.nodes)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusNodeInfo)(gDBusNodeInfo.nodes[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void nodes(DBusNodeInfo[] value) - { - GDBusNodeInfo*[] arr = new GDBusNodeInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusNodeInfoStruct(); - } - arr[value.length] = null; - - gDBusNodeInfo.nodes = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - public @property DBusAnnotationInfo[] annotations() - { - DBusAnnotationInfo[] arr = new DBusAnnotationInfo[getArrayLength(gDBusNodeInfo.annotations)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusAnnotationInfo)(gDBusNodeInfo.annotations[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void annotations(DBusAnnotationInfo[] value) - { - GDBusAnnotationInfo*[] arr = new GDBusAnnotationInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusAnnotationInfoStruct(); - } - arr[value.length] = null; - - gDBusNodeInfo.annotations = arr.ptr; - } - - /** */ - public static GType getType() - { - return g_dbus_node_info_get_type(); - } - - /** - * Parses @xml_data and returns a #GDBusNodeInfo representing the data. - * - * The introspection XML must contain exactly one top-level - * element. - * - * Note that this routine is using a - * [GMarkup][glib-Simple-XML-Subset-Parser.description]-based - * parser that only accepts a subset of valid XML documents. - * - * Params: - * xmlData = Valid D-Bus introspection XML. - * - * Returns: A #GDBusNodeInfo structure or %NULL if @error is set. Free - * with g_dbus_node_info_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string xmlData) - { - GError* err = null; - - auto __p = g_dbus_node_info_new_for_xml(Str.toStringz(xmlData), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_xml"); - } - - this(cast(GDBusNodeInfo*) __p); - } - - /** - * Appends an XML representation of @info (and its children) to @string_builder. - * - * This function is typically used for generating introspection XML documents at run-time for - * handling the `org.freedesktop.DBus.Introspectable.Introspect` method. - * - * Params: - * indent = Indentation level. - * stringBuilder = A #GString to to append XML data to. - * - * Since: 2.26 - */ - public void generateXml(uint indent, StringG stringBuilder) - { - g_dbus_node_info_generate_xml(gDBusNodeInfo, indent, (stringBuilder is null) ? null : stringBuilder.getStringGStruct()); - } - - /** - * Looks up information about an interface. - * - * The cost of this function is O(n) in number of interfaces. - * - * Params: - * name = A D-Bus interface name. - * - * Returns: A #GDBusInterfaceInfo or %NULL if not found. Do not free, it is owned by @info. - * - * Since: 2.26 - */ - public DBusInterfaceInfo lookupInterface(string name) - { - auto __p = g_dbus_node_info_lookup_interface(gDBusNodeInfo, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusInterfaceInfo)(cast(GDBusInterfaceInfo*) __p); - } - - alias doref = ref_; - /** - * If @info is statically allocated does nothing. Otherwise increases - * the reference count. - * - * Returns: The same @info. - * - * Since: 2.26 - */ - public DBusNodeInfo ref_() - { - auto __p = g_dbus_node_info_ref(gDBusNodeInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusNodeInfo)(cast(GDBusNodeInfo*) __p, true); - } - - /** - * If @info is statically allocated, does nothing. Otherwise decreases - * the reference count of @info. When its reference count drops to 0, - * the memory used is freed. - * - * Since: 2.26 - */ - public void unref() - { - g_dbus_node_info_unref(gDBusNodeInfo); - } -} diff --git a/generated/gtkd/gio/DBusObjectIF.d b/generated/gtkd/gio/DBusObjectIF.d deleted file mode 100644 index 8f240b7fc..000000000 --- a/generated/gtkd/gio/DBusObjectIF.d +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectIF; - -private import gio.DBusInterfaceIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The #GDBusObject type is the base type for D-Bus objects on both - * the service side (see #GDBusObjectSkeleton) and the client side - * (see #GDBusObjectProxy). It is essentially just a container of - * interfaces. - */ -public interface DBusObjectIF{ - /** Get the main Gtk struct */ - public GDBusObject* getDBusObjectStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_dbus_object_get_type(); - } - - /** - * Gets the D-Bus interface with name @interface_name associated with - * @object, if any. - * - * Params: - * interfaceName = A D-Bus interface name. - * - * Returns: %NULL if not found, otherwise a - * #GDBusInterface that must be freed with g_object_unref(). - * - * Since: 2.30 - */ - public DBusInterfaceIF getInterface(string interfaceName); - - /** - * Gets the D-Bus interfaces associated with @object. - * - * Returns: A list of #GDBusInterface instances. - * The returned list must be freed by g_list_free() after each element has been freed - * with g_object_unref(). - * - * Since: 2.30 - */ - public ListG getInterfaces(); - - /** - * Gets the object path for @object. - * - * Returns: A string owned by @object. Do not free. - * - * Since: 2.30 - */ - public string getObjectPath(); - - /** - * Emitted when @interface is added to @object. - * - * Params: - * interface_ = The #GDBusInterface that was added. - * - * Since: 2.30 - */ - gulong addOnInterfaceAdded(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Emitted when @interface is removed from @object. - * - * Params: - * interface_ = The #GDBusInterface that was removed. - * - * Since: 2.30 - */ - gulong addOnInterfaceRemoved(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/DBusObjectManagerClient.d b/generated/gtkd/gio/DBusObjectManagerClient.d deleted file mode 100644 index 3d4be5518..000000000 --- a/generated/gtkd/gio/DBusObjectManagerClient.d +++ /dev/null @@ -1,479 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectManagerClient; - -private import gio.AsyncInitableIF; -private import gio.AsyncInitableT; -private import gio.Cancellable; -private import gio.DBusConnection; -private import gio.DBusObjectManagerIF; -private import gio.DBusObjectManagerT; -private import gio.DBusObjectProxy; -private import gio.DBusProxy; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GDBusObjectManagerClient is used to create, monitor and delete object - * proxies for remote objects exported by a #GDBusObjectManagerServer (or any - * code implementing the - * [org.freedesktop.DBus.ObjectManager](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager) - * interface). - * - * Once an instance of this type has been created, you can connect to - * the #GDBusObjectManager::object-added and - * #GDBusObjectManager::object-removed signals and inspect the - * #GDBusObjectProxy objects returned by - * g_dbus_object_manager_get_objects(). - * - * If the name for a #GDBusObjectManagerClient is not owned by anyone at - * object construction time, the default behavior is to request the - * message bus to launch an owner for the name. This behavior can be - * disabled using the %G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START - * flag. It's also worth noting that this only works if the name of - * interest is activatable in the first place. E.g. in some cases it - * is not possible to launch an owner for the requested name. In this - * case, #GDBusObjectManagerClient object construction still succeeds but - * there will be no object proxies - * (e.g. g_dbus_object_manager_get_objects() returns the empty list) and - * the #GDBusObjectManagerClient:name-owner property is %NULL. - * - * The owner of the requested name can come and go (for example - * consider a system service being restarted) – #GDBusObjectManagerClient - * handles this case too; simply connect to the #GObject::notify - * signal to watch for changes on the #GDBusObjectManagerClient:name-owner - * property. When the name owner vanishes, the behavior is that - * #GDBusObjectManagerClient:name-owner is set to %NULL (this includes - * emission of the #GObject::notify signal) and then - * #GDBusObjectManager::object-removed signals are synthesized - * for all currently existing object proxies. Since - * #GDBusObjectManagerClient:name-owner is %NULL when this happens, you can - * use this information to disambiguate a synthesized signal from a - * genuine signal caused by object removal on the remote - * #GDBusObjectManager. Similarly, when a new name owner appears, - * #GDBusObjectManager::object-added signals are synthesized - * while #GDBusObjectManagerClient:name-owner is still %NULL. Only when all - * object proxies have been added, the #GDBusObjectManagerClient:name-owner - * is set to the new name owner (this includes emission of the - * #GObject::notify signal). Furthermore, you are guaranteed that - * #GDBusObjectManagerClient:name-owner will alternate between a name owner - * (e.g. `:1.42`) and %NULL even in the case where - * the name of interest is atomically replaced - * - * Ultimately, #GDBusObjectManagerClient is used to obtain #GDBusProxy - * instances. All signals (including the - * org.freedesktop.DBus.Properties::PropertiesChanged signal) - * delivered to #GDBusProxy instances are guaranteed to originate - * from the name owner. This guarantee along with the behavior - * described above, means that certain race conditions including the - * "half the proxy is from the old owner and the other half is from - * the new owner" problem cannot happen. - * - * To avoid having the application connect to signals on the returned - * #GDBusObjectProxy and #GDBusProxy objects, the - * #GDBusObject::interface-added, - * #GDBusObject::interface-removed, - * #GDBusProxy::g-properties-changed and - * #GDBusProxy::g-signal signals - * are also emitted on the #GDBusObjectManagerClient instance managing these - * objects. The signals emitted are - * #GDBusObjectManager::interface-added, - * #GDBusObjectManager::interface-removed, - * #GDBusObjectManagerClient::interface-proxy-properties-changed and - * #GDBusObjectManagerClient::interface-proxy-signal. - * - * Note that all callbacks and signals are emitted in the - * [thread-default main context][g-main-context-push-thread-default] - * that the #GDBusObjectManagerClient object was constructed - * in. Additionally, the #GDBusObjectProxy and #GDBusProxy objects - * originating from the #GDBusObjectManagerClient object will be created in - * the same context and, consequently, will deliver signals in the - * same main loop. - * - * Since: 2.30 - */ -public class DBusObjectManagerClient : ObjectG, AsyncInitableIF, DBusObjectManagerIF, InitableIF -{ - /** the main Gtk struct */ - protected GDBusObjectManagerClient* gDBusObjectManagerClient; - - /** Get the main Gtk struct */ - public GDBusObjectManagerClient* getDBusObjectManagerClientStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusObjectManagerClient; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusObjectManagerClient; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusObjectManagerClient* gDBusObjectManagerClient, bool ownedRef = false) - { - this.gDBusObjectManagerClient = gDBusObjectManagerClient; - super(cast(GObject*)gDBusObjectManagerClient, ownedRef); - } - - // add the AsyncInitable capabilities - mixin AsyncInitableT!(GDBusObjectManagerClient); - - // add the DBusObjectManager capabilities - mixin DBusObjectManagerT!(GDBusObjectManagerClient); - - // add the Initable capabilities - mixin InitableT!(GDBusObjectManagerClient); - - /** - * Finishes an operation started with g_dbus_object_manager_client_new(). - * - * Params: - * res = A GAsyncResult obtained from the GAsyncReadyCallback passed to the DBusObjectManager constructor. - * forBus = If true finish an address. - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - * - * Since: 2.30 - */ - public this (AsyncResultIF res, bool forBus = false) - { - GError* err = null; - GDBusObjectManager* p; - - if ( forBus ) - { - p = g_dbus_object_manager_client_new_for_bus_finish((res is null) ? null : res.getAsyncResultStruct(), &err); - } - else - { - p = g_dbus_object_manager_client_new_finish((res is null) ? null : res.getAsyncResultStruct(), &err); - } - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(p is null) - { - throw new ConstructionException("null returned by g_dbus_object_manager_client_new_finish((res is null) ? null : res.getAsyncResultStruct(), &err)"); - } - this(cast(GDBusObjectManagerClient*) p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_dbus_object_manager_client_get_type(); - } - - /** - * Like g_dbus_object_manager_client_new_sync() but takes a #GBusType instead - * of a #GDBusConnection. - * - * This is a synchronous failable constructor - the calling thread is - * blocked until a reply is received. See g_dbus_object_manager_client_new_for_bus() - * for the asynchronous version. - * - * Params: - * busType = A #GBusType. - * flags = Zero or more flags from the #GDBusObjectManagerClientFlags enumeration. - * name = The owner of the control object (unique or well-known name). - * objectPath = The object path of the control object. - * getProxyTypeFunc = A #GDBusProxyTypeFunc function or %NULL to always construct #GDBusProxy proxies. - * getProxyTypeUserData = User data to pass to @get_proxy_type_func. - * getProxyTypeDestroyNotify = Free function for @get_proxy_type_user_data or %NULL. - * cancellable = A #GCancellable or %NULL - * - * Returns: A - * #GDBusObjectManagerClient object or %NULL if @error is set. Free - * with g_object_unref(). - * - * Since: 2.30 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GBusType busType, GDBusObjectManagerClientFlags flags, string name, string objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_object_manager_client_new_for_bus_sync(busType, flags, Str.toStringz(name), Str.toStringz(objectPath), getProxyTypeFunc, getProxyTypeUserData, getProxyTypeDestroyNotify, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_bus_sync"); - } - - this(cast(GDBusObjectManagerClient*) __p, true); - } - - /** - * Creates a new #GDBusObjectManagerClient object. - * - * This is a synchronous failable constructor - the calling thread is - * blocked until a reply is received. See g_dbus_object_manager_client_new() - * for the asynchronous version. - * - * Params: - * connection = A #GDBusConnection. - * flags = Zero or more flags from the #GDBusObjectManagerClientFlags enumeration. - * name = The owner of the control object (unique or well-known name), or %NULL when not using a message bus connection. - * objectPath = The object path of the control object. - * getProxyTypeFunc = A #GDBusProxyTypeFunc function or %NULL to always construct #GDBusProxy proxies. - * getProxyTypeUserData = User data to pass to @get_proxy_type_func. - * getProxyTypeDestroyNotify = Free function for @get_proxy_type_user_data or %NULL. - * cancellable = A #GCancellable or %NULL - * - * Returns: A - * #GDBusObjectManagerClient object or %NULL if @error is set. Free - * with g_object_unref(). - * - * Since: 2.30 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(DBusConnection connection, GDBusObjectManagerClientFlags flags, string name, string objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_object_manager_client_new_sync((connection is null) ? null : connection.getDBusConnectionStruct(), flags, Str.toStringz(name), Str.toStringz(objectPath), getProxyTypeFunc, getProxyTypeUserData, getProxyTypeDestroyNotify, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_sync"); - } - - this(cast(GDBusObjectManagerClient*) __p, true); - } - - /** - * Asynchronously creates a new #GDBusObjectManagerClient object. - * - * This is an asynchronous failable constructor. When the result is - * ready, @callback will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. You can - * then call g_dbus_object_manager_client_new_finish() to get the result. See - * g_dbus_object_manager_client_new_sync() for the synchronous version. - * - * Params: - * connection = A #GDBusConnection. - * flags = Zero or more flags from the #GDBusObjectManagerClientFlags enumeration. - * name = The owner of the control object (unique or well-known name). - * objectPath = The object path of the control object. - * getProxyTypeFunc = A #GDBusProxyTypeFunc function or %NULL to always construct #GDBusProxy proxies. - * getProxyTypeUserData = User data to pass to @get_proxy_type_func. - * getProxyTypeDestroyNotify = Free function for @get_proxy_type_user_data or %NULL. - * cancellable = A #GCancellable or %NULL - * callback = A #GAsyncReadyCallback to call when the request is satisfied. - * userData = The data to pass to @callback. - * - * Since: 2.30 - */ - public static void new_(DBusConnection connection, GDBusObjectManagerClientFlags flags, string name, string objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_object_manager_client_new((connection is null) ? null : connection.getDBusConnectionStruct(), flags, Str.toStringz(name), Str.toStringz(objectPath), getProxyTypeFunc, getProxyTypeUserData, getProxyTypeDestroyNotify, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Like g_dbus_object_manager_client_new() but takes a #GBusType instead of a - * #GDBusConnection. - * - * This is an asynchronous failable constructor. When the result is - * ready, @callback will be invoked in the - * [thread-default main loop][g-main-context-push-thread-default] - * of the thread you are calling this method from. You can - * then call g_dbus_object_manager_client_new_for_bus_finish() to get the result. See - * g_dbus_object_manager_client_new_for_bus_sync() for the synchronous version. - * - * Params: - * busType = A #GBusType. - * flags = Zero or more flags from the #GDBusObjectManagerClientFlags enumeration. - * name = The owner of the control object (unique or well-known name). - * objectPath = The object path of the control object. - * getProxyTypeFunc = A #GDBusProxyTypeFunc function or %NULL to always construct #GDBusProxy proxies. - * getProxyTypeUserData = User data to pass to @get_proxy_type_func. - * getProxyTypeDestroyNotify = Free function for @get_proxy_type_user_data or %NULL. - * cancellable = A #GCancellable or %NULL - * callback = A #GAsyncReadyCallback to call when the request is satisfied. - * userData = The data to pass to @callback. - * - * Since: 2.30 - */ - public static void newForBus(GBusType busType, GDBusObjectManagerClientFlags flags, string name, string objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_object_manager_client_new_for_bus(busType, flags, Str.toStringz(name), Str.toStringz(objectPath), getProxyTypeFunc, getProxyTypeUserData, getProxyTypeDestroyNotify, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Gets the #GDBusConnection used by @manager. - * - * Returns: A #GDBusConnection object. Do not free, - * the object belongs to @manager. - * - * Since: 2.30 - */ - public DBusConnection getConnection() - { - auto __p = g_dbus_object_manager_client_get_connection(gDBusObjectManagerClient); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p); - } - - /** - * Gets the flags that @manager was constructed with. - * - * Returns: Zero of more flags from the #GDBusObjectManagerClientFlags - * enumeration. - * - * Since: 2.30 - */ - public GDBusObjectManagerClientFlags getFlags() - { - return g_dbus_object_manager_client_get_flags(gDBusObjectManagerClient); - } - - /** - * Gets the name that @manager is for, or %NULL if not a message bus - * connection. - * - * Returns: A unique or well-known name. Do not free, the string - * belongs to @manager. - * - * Since: 2.30 - */ - public string getName() - { - return Str.toString(g_dbus_object_manager_client_get_name(gDBusObjectManagerClient)); - } - - /** - * The unique name that owns the name that @manager is for or %NULL if - * no-one currently owns that name. You can connect to the - * #GObject::notify signal to track changes to the - * #GDBusObjectManagerClient:name-owner property. - * - * Returns: The name owner or %NULL if no name owner - * exists. Free with g_free(). - * - * Since: 2.30 - */ - public string getNameOwner() - { - auto retStr = g_dbus_object_manager_client_get_name_owner(gDBusObjectManagerClient); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Emitted when one or more D-Bus properties on proxy changes. The - * local cache has already been updated when this signal fires. Note - * that both @changed_properties and @invalidated_properties are - * guaranteed to never be %NULL (either may be empty though). - * - * This signal exists purely as a convenience to avoid having to - * connect signals to all interface proxies managed by @manager. - * - * This signal is emitted in the - * [thread-default main context][g-main-context-push-thread-default] - * that @manager was constructed in. - * - * Params: - * objectProxy = The #GDBusObjectProxy on which an interface has properties that are changing. - * interfaceProxy = The #GDBusProxy that has properties that are changing. - * changedProperties = A #GVariant containing the properties that changed (type: `a{sv}`). - * invalidatedProperties = A %NULL terminated - * array of properties that were invalidated. - * - * Since: 2.30 - */ - gulong addOnInterfaceProxyPropertiesChanged(void delegate(DBusObjectProxy, DBusProxy, Variant, string[], DBusObjectManagerClient) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "interface-proxy-properties-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a D-Bus signal is received on @interface_proxy. - * - * This signal exists purely as a convenience to avoid having to - * connect signals to all interface proxies managed by @manager. - * - * This signal is emitted in the - * [thread-default main context][g-main-context-push-thread-default] - * that @manager was constructed in. - * - * Params: - * objectProxy = The #GDBusObjectProxy on which an interface is emitting a D-Bus signal. - * interfaceProxy = The #GDBusProxy that is emitting a D-Bus signal. - * senderName = The sender of the signal or NULL if the connection is not a bus connection. - * signalName = The signal name. - * parameters = A #GVariant tuple with parameters for the signal. - * - * Since: 2.30 - */ - gulong addOnInterfaceProxySignal(void delegate(DBusObjectProxy, DBusProxy, string, string, Variant, DBusObjectManagerClient) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "interface-proxy-signal", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusObjectManagerIF.d b/generated/gtkd/gio/DBusObjectManagerIF.d deleted file mode 100644 index b21c8d862..000000000 --- a/generated/gtkd/gio/DBusObjectManagerIF.d +++ /dev/null @@ -1,158 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectManagerIF; - -private import gio.DBusInterfaceIF; -private import gio.DBusObjectIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The #GDBusObjectManager type is the base type for service- and - * client-side implementations of the standardized - * [org.freedesktop.DBus.ObjectManager](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager) - * interface. - * - * See #GDBusObjectManagerClient for the client-side implementation - * and #GDBusObjectManagerServer for the service-side implementation. - */ -public interface DBusObjectManagerIF{ - /** Get the main Gtk struct */ - public GDBusObjectManager* getDBusObjectManagerStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_dbus_object_manager_get_type(); - } - - /** - * Gets the interface proxy for @interface_name at @object_path, if - * any. - * - * Params: - * objectPath = Object path to look up. - * interfaceName = D-Bus interface name to look up. - * - * Returns: A #GDBusInterface instance or %NULL. Free - * with g_object_unref(). - * - * Since: 2.30 - */ - public DBusInterfaceIF getInterface(string objectPath, string interfaceName); - - /** - * Gets the #GDBusObjectProxy at @object_path, if any. - * - * Params: - * objectPath = Object path to look up. - * - * Returns: A #GDBusObject or %NULL. Free with - * g_object_unref(). - * - * Since: 2.30 - */ - public DBusObjectIF getObject(string objectPath); - - /** - * Gets the object path that @manager is for. - * - * Returns: A string owned by @manager. Do not free. - * - * Since: 2.30 - */ - public string getObjectPath(); - - /** - * Gets all #GDBusObject objects known to @manager. - * - * Returns: A list of - * #GDBusObject objects. The returned list should be freed with - * g_list_free() after each element has been freed with - * g_object_unref(). - * - * Since: 2.30 - */ - public ListG getObjects(); - - /** - * Emitted when @interface is added to @object. - * - * This signal exists purely as a convenience to avoid having to - * connect signals to all objects managed by @manager. - * - * Params: - * object = The #GDBusObject on which an interface was added. - * interface_ = The #GDBusInterface that was added. - * - * Since: 2.30 - */ - gulong addOnInterfaceAdded(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Emitted when @interface has been removed from @object. - * - * This signal exists purely as a convenience to avoid having to - * connect signals to all objects managed by @manager. - * - * Params: - * object = The #GDBusObject on which an interface was removed. - * interface_ = The #GDBusInterface that was removed. - * - * Since: 2.30 - */ - gulong addOnInterfaceRemoved(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Emitted when @object is added to @manager. - * - * Params: - * object = The #GDBusObject that was added. - * - * Since: 2.30 - */ - gulong addOnObjectAdded(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Emitted when @object is removed from @manager. - * - * Params: - * object = The #GDBusObject that was removed. - * - * Since: 2.30 - */ - gulong addOnObjectRemoved(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/DBusObjectManagerServer.d b/generated/gtkd/gio/DBusObjectManagerServer.d deleted file mode 100644 index 885831992..000000000 --- a/generated/gtkd/gio/DBusObjectManagerServer.d +++ /dev/null @@ -1,237 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectManagerServer; - -private import gio.DBusConnection; -private import gio.DBusObjectManagerIF; -private import gio.DBusObjectManagerT; -private import gio.DBusObjectSkeleton; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GDBusObjectManagerServer is used to export #GDBusObject instances using - * the standardized - * [org.freedesktop.DBus.ObjectManager](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager) - * interface. For example, remote D-Bus clients can get all objects - * and properties in a single call. Additionally, any change in the - * object hierarchy is broadcast using signals. This means that D-Bus - * clients can keep caches up to date by only listening to D-Bus - * signals. - * - * The recommended path to export an object manager at is the path form of the - * well-known name of a D-Bus service, or below. For example, if a D-Bus service - * is available at the well-known name `net.example.ExampleService1`, the object - * manager should typically be exported at `/net/example/ExampleService1`, or - * below (to allow for multiple object managers in a service). - * - * It is supported, but not recommended, to export an object manager at the root - * path, `/`. - * - * See #GDBusObjectManagerClient for the client-side code that is - * intended to be used with #GDBusObjectManagerServer or any D-Bus - * object implementing the org.freedesktop.DBus.ObjectManager - * interface. - * - * Since: 2.30 - */ -public class DBusObjectManagerServer : ObjectG, DBusObjectManagerIF -{ - /** the main Gtk struct */ - protected GDBusObjectManagerServer* gDBusObjectManagerServer; - - /** Get the main Gtk struct */ - public GDBusObjectManagerServer* getDBusObjectManagerServerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusObjectManagerServer; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusObjectManagerServer; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusObjectManagerServer* gDBusObjectManagerServer, bool ownedRef = false) - { - this.gDBusObjectManagerServer = gDBusObjectManagerServer; - super(cast(GObject*)gDBusObjectManagerServer, ownedRef); - } - - // add the DBusObjectManager capabilities - mixin DBusObjectManagerT!(GDBusObjectManagerServer); - - - /** */ - public static GType getType() - { - return g_dbus_object_manager_server_get_type(); - } - - /** - * Creates a new #GDBusObjectManagerServer object. - * - * The returned server isn't yet exported on any connection. To do so, - * use g_dbus_object_manager_server_set_connection(). Normally you - * want to export all of your objects before doing so to avoid - * [InterfacesAdded](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager) - * signals being emitted. - * - * Params: - * objectPath = The object path to export the manager object at. - * - * Returns: A #GDBusObjectManagerServer object. Free with g_object_unref(). - * - * Since: 2.30 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string objectPath) - { - auto __p = g_dbus_object_manager_server_new(Str.toStringz(objectPath)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDBusObjectManagerServer*) __p, true); - } - - alias expor = export_; - /** - * Exports @object on @manager. - * - * If there is already a #GDBusObject exported at the object path, - * then the old object is removed. - * - * The object path for @object must be in the hierarchy rooted by the - * object path for @manager. - * - * Note that @manager will take a reference on @object for as long as - * it is exported. - * - * Params: - * object = A #GDBusObjectSkeleton. - * - * Since: 2.30 - */ - public void export_(DBusObjectSkeleton object) - { - g_dbus_object_manager_server_export(gDBusObjectManagerServer, (object is null) ? null : object.getDBusObjectSkeletonStruct()); - } - - /** - * Like g_dbus_object_manager_server_export() but appends a string of - * the form _N (with N being a natural number) to @object's object path - * if an object with the given path already exists. As such, the - * #GDBusObjectProxy:g-object-path property of @object may be modified. - * - * Params: - * object = An object. - * - * Since: 2.30 - */ - public void exportUniquely(DBusObjectSkeleton object) - { - g_dbus_object_manager_server_export_uniquely(gDBusObjectManagerServer, (object is null) ? null : object.getDBusObjectSkeletonStruct()); - } - - /** - * Gets the #GDBusConnection used by @manager. - * - * Returns: A #GDBusConnection object or %NULL if - * @manager isn't exported on a connection. The returned object should - * be freed with g_object_unref(). - * - * Since: 2.30 - */ - public DBusConnection getConnection() - { - auto __p = g_dbus_object_manager_server_get_connection(gDBusObjectManagerServer); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p, true); - } - - /** - * Returns whether @object is currently exported on @manager. - * - * Params: - * object = An object. - * - * Returns: %TRUE if @object is exported - * - * Since: 2.34 - */ - public bool isExported(DBusObjectSkeleton object) - { - return g_dbus_object_manager_server_is_exported(gDBusObjectManagerServer, (object is null) ? null : object.getDBusObjectSkeletonStruct()) != 0; - } - - /** - * Exports all objects managed by @manager on @connection. If - * @connection is %NULL, stops exporting objects. - * - * Params: - * connection = A #GDBusConnection or %NULL. - */ - public void setConnection(DBusConnection connection) - { - g_dbus_object_manager_server_set_connection(gDBusObjectManagerServer, (connection is null) ? null : connection.getDBusConnectionStruct()); - } - - /** - * If @manager has an object at @path, removes the object. Otherwise - * does nothing. - * - * Note that @object_path must be in the hierarchy rooted by the - * object path for @manager. - * - * Params: - * objectPath = An object path. - * - * Returns: %TRUE if object at @object_path was removed, %FALSE otherwise. - * - * Since: 2.30 - */ - public bool unexport(string objectPath) - { - return g_dbus_object_manager_server_unexport(gDBusObjectManagerServer, Str.toStringz(objectPath)) != 0; - } -} diff --git a/generated/gtkd/gio/DBusObjectManagerT.d b/generated/gtkd/gio/DBusObjectManagerT.d deleted file mode 100644 index 24af72817..000000000 --- a/generated/gtkd/gio/DBusObjectManagerT.d +++ /dev/null @@ -1,200 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectManagerT; - -public import gio.DBusInterfaceIF; -public import gio.DBusObjectIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ListG; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * The #GDBusObjectManager type is the base type for service- and - * client-side implementations of the standardized - * [org.freedesktop.DBus.ObjectManager](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager) - * interface. - * - * See #GDBusObjectManagerClient for the client-side implementation - * and #GDBusObjectManagerServer for the service-side implementation. - */ -public template DBusObjectManagerT(TStruct) -{ - /** Get the main Gtk struct */ - public GDBusObjectManager* getDBusObjectManagerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDBusObjectManager*)getStruct(); - } - - - /** - * Gets the interface proxy for @interface_name at @object_path, if - * any. - * - * Params: - * objectPath = Object path to look up. - * interfaceName = D-Bus interface name to look up. - * - * Returns: A #GDBusInterface instance or %NULL. Free - * with g_object_unref(). - * - * Since: 2.30 - */ - public DBusInterfaceIF getInterface(string objectPath, string interfaceName) - { - auto __p = g_dbus_object_manager_get_interface(getDBusObjectManagerStruct(), Str.toStringz(objectPath), Str.toStringz(interfaceName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusInterfaceIF)(cast(GDBusInterface*) __p, true); - } - - /** - * Gets the #GDBusObjectProxy at @object_path, if any. - * - * Params: - * objectPath = Object path to look up. - * - * Returns: A #GDBusObject or %NULL. Free with - * g_object_unref(). - * - * Since: 2.30 - */ - public DBusObjectIF getObject(string objectPath) - { - auto __p = g_dbus_object_manager_get_object(getDBusObjectManagerStruct(), Str.toStringz(objectPath)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusObjectIF)(cast(GDBusObject*) __p, true); - } - - /** - * Gets the object path that @manager is for. - * - * Returns: A string owned by @manager. Do not free. - * - * Since: 2.30 - */ - public string getObjectPath() - { - return Str.toString(g_dbus_object_manager_get_object_path(getDBusObjectManagerStruct())); - } - - /** - * Gets all #GDBusObject objects known to @manager. - * - * Returns: A list of - * #GDBusObject objects. The returned list should be freed with - * g_list_free() after each element has been freed with - * g_object_unref(). - * - * Since: 2.30 - */ - public ListG getObjects() - { - auto __p = g_dbus_object_manager_get_objects(getDBusObjectManagerStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Emitted when @interface is added to @object. - * - * This signal exists purely as a convenience to avoid having to - * connect signals to all objects managed by @manager. - * - * Params: - * object = The #GDBusObject on which an interface was added. - * interface_ = The #GDBusInterface that was added. - * - * Since: 2.30 - */ - gulong addOnInterfaceAdded(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "interface-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when @interface has been removed from @object. - * - * This signal exists purely as a convenience to avoid having to - * connect signals to all objects managed by @manager. - * - * Params: - * object = The #GDBusObject on which an interface was removed. - * interface_ = The #GDBusInterface that was removed. - * - * Since: 2.30 - */ - gulong addOnInterfaceRemoved(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "interface-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when @object is added to @manager. - * - * Params: - * object = The #GDBusObject that was added. - * - * Since: 2.30 - */ - gulong addOnObjectAdded(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "object-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when @object is removed from @manager. - * - * Params: - * object = The #GDBusObject that was removed. - * - * Since: 2.30 - */ - gulong addOnObjectRemoved(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "object-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusObjectProxy.d b/generated/gtkd/gio/DBusObjectProxy.d deleted file mode 100644 index e9973541d..000000000 --- a/generated/gtkd/gio/DBusObjectProxy.d +++ /dev/null @@ -1,128 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectProxy; - -private import gio.DBusConnection; -private import gio.DBusObjectIF; -private import gio.DBusObjectT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * A #GDBusObjectProxy is an object used to represent a remote object - * with one or more D-Bus interfaces. Normally, you don't instantiate - * a #GDBusObjectProxy yourself - typically #GDBusObjectManagerClient - * is used to obtain it. - * - * Since: 2.30 - */ -public class DBusObjectProxy : ObjectG, DBusObjectIF -{ - /** the main Gtk struct */ - protected GDBusObjectProxy* gDBusObjectProxy; - - /** Get the main Gtk struct */ - public GDBusObjectProxy* getDBusObjectProxyStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusObjectProxy; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusObjectProxy; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusObjectProxy* gDBusObjectProxy, bool ownedRef = false) - { - this.gDBusObjectProxy = gDBusObjectProxy; - super(cast(GObject*)gDBusObjectProxy, ownedRef); - } - - // add the DBusObject capabilities - mixin DBusObjectT!(GDBusObjectProxy); - - - /** */ - public static GType getType() - { - return g_dbus_object_proxy_get_type(); - } - - /** - * Creates a new #GDBusObjectProxy for the given connection and - * object path. - * - * Params: - * connection = a #GDBusConnection - * objectPath = the object path - * - * Returns: a new #GDBusObjectProxy - * - * Since: 2.30 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(DBusConnection connection, string objectPath) - { - auto __p = g_dbus_object_proxy_new((connection is null) ? null : connection.getDBusConnectionStruct(), Str.toStringz(objectPath)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDBusObjectProxy*) __p, true); - } - - /** - * Gets the connection that @proxy is for. - * - * Returns: A #GDBusConnection. Do not free, the - * object is owned by @proxy. - * - * Since: 2.30 - */ - public DBusConnection getConnection() - { - auto __p = g_dbus_object_proxy_get_connection(gDBusObjectProxy); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p); - } -} diff --git a/generated/gtkd/gio/DBusObjectSkeleton.d b/generated/gtkd/gio/DBusObjectSkeleton.d deleted file mode 100644 index ded44cab1..000000000 --- a/generated/gtkd/gio/DBusObjectSkeleton.d +++ /dev/null @@ -1,206 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectSkeleton; - -private import gio.DBusInterfaceSkeleton; -private import gio.DBusMethodInvocation; -private import gio.DBusObjectIF; -private import gio.DBusObjectT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A #GDBusObjectSkeleton instance is essentially a group of D-Bus - * interfaces. The set of exported interfaces on the object may be - * dynamic and change at runtime. - * - * This type is intended to be used with #GDBusObjectManager. - * - * Since: 2.30 - */ -public class DBusObjectSkeleton : ObjectG, DBusObjectIF -{ - /** the main Gtk struct */ - protected GDBusObjectSkeleton* gDBusObjectSkeleton; - - /** Get the main Gtk struct */ - public GDBusObjectSkeleton* getDBusObjectSkeletonStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusObjectSkeleton; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusObjectSkeleton; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusObjectSkeleton* gDBusObjectSkeleton, bool ownedRef = false) - { - this.gDBusObjectSkeleton = gDBusObjectSkeleton; - super(cast(GObject*)gDBusObjectSkeleton, ownedRef); - } - - // add the DBusObject capabilities - mixin DBusObjectT!(GDBusObjectSkeleton); - - - /** */ - public static GType getType() - { - return g_dbus_object_skeleton_get_type(); - } - - /** - * Creates a new #GDBusObjectSkeleton. - * - * Params: - * objectPath = An object path. - * - * Returns: A #GDBusObjectSkeleton. Free with g_object_unref(). - * - * Since: 2.30 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string objectPath) - { - auto __p = g_dbus_object_skeleton_new(Str.toStringz(objectPath)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDBusObjectSkeleton*) __p, true); - } - - /** - * Adds @interface_ to @object. - * - * If @object already contains a #GDBusInterfaceSkeleton with the same - * interface name, it is removed before @interface_ is added. - * - * Note that @object takes its own reference on @interface_ and holds - * it until removed. - * - * Params: - * interface_ = A #GDBusInterfaceSkeleton. - * - * Since: 2.30 - */ - public void addInterface(DBusInterfaceSkeleton interface_) - { - g_dbus_object_skeleton_add_interface(gDBusObjectSkeleton, (interface_ is null) ? null : interface_.getDBusInterfaceSkeletonStruct()); - } - - /** - * This method simply calls g_dbus_interface_skeleton_flush() on all - * interfaces belonging to @object. See that method for when flushing - * is useful. - * - * Since: 2.30 - */ - public void flush() - { - g_dbus_object_skeleton_flush(gDBusObjectSkeleton); - } - - /** - * Removes @interface_ from @object. - * - * Params: - * interface_ = A #GDBusInterfaceSkeleton. - * - * Since: 2.30 - */ - public void removeInterface(DBusInterfaceSkeleton interface_) - { - g_dbus_object_skeleton_remove_interface(gDBusObjectSkeleton, (interface_ is null) ? null : interface_.getDBusInterfaceSkeletonStruct()); - } - - /** - * Removes the #GDBusInterface with @interface_name from @object. - * - * If no D-Bus interface of the given interface exists, this function - * does nothing. - * - * Params: - * interfaceName = A D-Bus interface name. - * - * Since: 2.30 - */ - public void removeInterfaceByName(string interfaceName) - { - g_dbus_object_skeleton_remove_interface_by_name(gDBusObjectSkeleton, Str.toStringz(interfaceName)); - } - - /** - * Sets the object path for @object. - * - * Params: - * objectPath = A valid D-Bus object path. - * - * Since: 2.30 - */ - public void setObjectPath(string objectPath) - { - g_dbus_object_skeleton_set_object_path(gDBusObjectSkeleton, Str.toStringz(objectPath)); - } - - /** - * Emitted when a method is invoked by a remote caller and used to - * determine if the method call is authorized. - * - * This signal is like #GDBusInterfaceSkeleton's - * #GDBusInterfaceSkeleton::g-authorize-method signal, - * except that it is for the enclosing object. - * - * The default class handler just returns %TRUE. - * - * Params: - * interface_ = The #GDBusInterfaceSkeleton that @invocation is for. - * invocation = A #GDBusMethodInvocation. - * - * Returns: %TRUE if the call is authorized, %FALSE otherwise. - * - * Since: 2.30 - */ - gulong addOnAuthorizeMethod(bool delegate(DBusInterfaceSkeleton, DBusMethodInvocation, DBusObjectSkeleton) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "authorize-method", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusObjectT.d b/generated/gtkd/gio/DBusObjectT.d deleted file mode 100644 index bce0dae70..000000000 --- a/generated/gtkd/gio/DBusObjectT.d +++ /dev/null @@ -1,137 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusObjectT; - -public import gio.DBusInterfaceIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ListG; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * The #GDBusObject type is the base type for D-Bus objects on both - * the service side (see #GDBusObjectSkeleton) and the client side - * (see #GDBusObjectProxy). It is essentially just a container of - * interfaces. - */ -public template DBusObjectT(TStruct) -{ - /** Get the main Gtk struct */ - public GDBusObject* getDBusObjectStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDBusObject*)getStruct(); - } - - - /** - * Gets the D-Bus interface with name @interface_name associated with - * @object, if any. - * - * Params: - * interfaceName = A D-Bus interface name. - * - * Returns: %NULL if not found, otherwise a - * #GDBusInterface that must be freed with g_object_unref(). - * - * Since: 2.30 - */ - public DBusInterfaceIF getInterface(string interfaceName) - { - auto __p = g_dbus_object_get_interface(getDBusObjectStruct(), Str.toStringz(interfaceName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusInterfaceIF)(cast(GDBusInterface*) __p, true); - } - - /** - * Gets the D-Bus interfaces associated with @object. - * - * Returns: A list of #GDBusInterface instances. - * The returned list must be freed by g_list_free() after each element has been freed - * with g_object_unref(). - * - * Since: 2.30 - */ - public ListG getInterfaces() - { - auto __p = g_dbus_object_get_interfaces(getDBusObjectStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets the object path for @object. - * - * Returns: A string owned by @object. Do not free. - * - * Since: 2.30 - */ - public string getObjectPath() - { - return Str.toString(g_dbus_object_get_object_path(getDBusObjectStruct())); - } - - /** - * Emitted when @interface is added to @object. - * - * Params: - * interface_ = The #GDBusInterface that was added. - * - * Since: 2.30 - */ - gulong addOnInterfaceAdded(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "interface-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when @interface is removed from @object. - * - * Params: - * interface_ = The #GDBusInterface that was removed. - * - * Since: 2.30 - */ - gulong addOnInterfaceRemoved(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "interface-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusPropertyInfo.d b/generated/gtkd/gio/DBusPropertyInfo.d deleted file mode 100644 index 9510edb24..000000000 --- a/generated/gtkd/gio/DBusPropertyInfo.d +++ /dev/null @@ -1,199 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusPropertyInfo; - -private import gio.DBusAnnotationInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Information about a D-Bus property on a D-Bus interface. - * - * Since: 2.26 - */ -public final class DBusPropertyInfo -{ - /** the main Gtk struct */ - protected GDBusPropertyInfo* gDBusPropertyInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDBusPropertyInfo* getDBusPropertyInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusPropertyInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDBusPropertyInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusPropertyInfo* gDBusPropertyInfo, bool ownedRef = false) - { - this.gDBusPropertyInfo = gDBusPropertyInfo; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_dbus_property_info_unref(gDBusPropertyInfo); - } - - - /** - * The reference count or -1 if statically allocated. - */ - public @property int refCount() - { - return gDBusPropertyInfo.refCount; - } - - /** Ditto */ - public @property void refCount(int value) - { - gDBusPropertyInfo.refCount = value; - } - - /** - * The name of the D-Bus property, e.g. "SupportedFilesystems". - */ - public @property string name() - { - return Str.toString(gDBusPropertyInfo.name); - } - - /** Ditto */ - public @property void name(string value) - { - gDBusPropertyInfo.name = Str.toStringz(value); - } - - /** - * The D-Bus signature of the property (a single complete type). - */ - public @property string signature() - { - return Str.toString(gDBusPropertyInfo.signature); - } - - /** Ditto */ - public @property void signature(string value) - { - gDBusPropertyInfo.signature = Str.toStringz(value); - } - - /** - * Access control flags for the property. - */ - public @property GDBusPropertyInfoFlags flags() - { - return gDBusPropertyInfo.flags; - } - - /** Ditto */ - public @property void flags(GDBusPropertyInfoFlags value) - { - gDBusPropertyInfo.flags = value; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - public @property DBusAnnotationInfo[] annotations() - { - DBusAnnotationInfo[] arr = new DBusAnnotationInfo[getArrayLength(gDBusPropertyInfo.annotations)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusAnnotationInfo)(gDBusPropertyInfo.annotations[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void annotations(DBusAnnotationInfo[] value) - { - GDBusAnnotationInfo*[] arr = new GDBusAnnotationInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusAnnotationInfoStruct(); - } - arr[value.length] = null; - - gDBusPropertyInfo.annotations = arr.ptr; - } - - /** */ - public static GType getType() - { - return g_dbus_property_info_get_type(); - } - - alias doref = ref_; - /** - * If @info is statically allocated does nothing. Otherwise increases - * the reference count. - * - * Returns: The same @info. - * - * Since: 2.26 - */ - public DBusPropertyInfo ref_() - { - auto __p = g_dbus_property_info_ref(gDBusPropertyInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusPropertyInfo)(cast(GDBusPropertyInfo*) __p, true); - } - - /** - * If @info is statically allocated, does nothing. Otherwise decreases - * the reference count of @info. When its reference count drops to 0, - * the memory used is freed. - * - * Since: 2.26 - */ - public void unref() - { - g_dbus_property_info_unref(gDBusPropertyInfo); - } -} diff --git a/generated/gtkd/gio/DBusProxy.d b/generated/gtkd/gio/DBusProxy.d deleted file mode 100644 index 4100a18fd..000000000 --- a/generated/gtkd/gio/DBusProxy.d +++ /dev/null @@ -1,908 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusProxy; - -private import gio.AsyncInitableIF; -private import gio.AsyncInitableT; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.DBusConnection; -private import gio.DBusInterfaceIF; -private import gio.DBusInterfaceInfo; -private import gio.DBusInterfaceT; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.UnixFDList; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GDBusProxy is a base class used for proxies to access a D-Bus - * interface on a remote object. A #GDBusProxy can be constructed for - * both well-known and unique names. - * - * By default, #GDBusProxy will cache all properties (and listen to - * changes) of the remote object, and proxy all signals that get - * emitted. This behaviour can be changed by passing suitable - * #GDBusProxyFlags when the proxy is created. If the proxy is for a - * well-known name, the property cache is flushed when the name owner - * vanishes and reloaded when a name owner appears. - * - * The unique name owner of the proxy's name is tracked and can be read from - * #GDBusProxy:g-name-owner. Connect to the #GObject::notify signal to - * get notified of changes. Additionally, only signals and property - * changes emitted from the current name owner are considered and - * calls are always sent to the current name owner. This avoids a - * number of race conditions when the name is lost by one owner and - * claimed by another. However, if no name owner currently exists, - * then calls will be sent to the well-known name which may result in - * the message bus launching an owner (unless - * %G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START is set). - * - * The generic #GDBusProxy::g-properties-changed and - * #GDBusProxy::g-signal signals are not very convenient to work with. - * Therefore, the recommended way of working with proxies is to subclass - * #GDBusProxy, and have more natural properties and signals in your derived - * class. This [example][gdbus-example-gdbus-codegen] shows how this can - * easily be done using the [gdbus-codegen][gdbus-codegen] tool. - * - * A #GDBusProxy instance can be used from multiple threads but note - * that all signals (e.g. #GDBusProxy::g-signal, #GDBusProxy::g-properties-changed - * and #GObject::notify) are emitted in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread where the instance was constructed. - * - * An example using a proxy for a well-known name can be found in - * [gdbus-example-watch-proxy.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-watch-proxy.c) - * - * Since: 2.26 - */ -public class DBusProxy : ObjectG, AsyncInitableIF, DBusInterfaceIF, InitableIF -{ - /** the main Gtk struct */ - protected GDBusProxy* gDBusProxy; - - /** Get the main Gtk struct */ - public GDBusProxy* getDBusProxyStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusProxy; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusProxy; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusProxy* gDBusProxy, bool ownedRef = false) - { - this.gDBusProxy = gDBusProxy; - super(cast(GObject*)gDBusProxy, ownedRef); - } - - // add the AsyncInitable capabilities - mixin AsyncInitableT!(GDBusProxy); - - // add the DBusInterface capabilities - mixin DBusInterfaceT!(GDBusProxy); - - // add the Initable capabilities - mixin InitableT!(GDBusProxy); - - /** - * Finishes creating a GDBusProxy. - * - * Params: - * res = A GAsyncResult obtained from the GAsyncReadyCallback - * function passed to g_dbus_proxy_new(). - * forBus = If true finish an address. - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - * - * Since: 2.26 - */ - public this (AsyncResultIF res, bool forBus = false) - { - GError* err = null; - GDBusProxy* p; - - if ( forBus ) - { - p = g_dbus_proxy_new_for_bus_finish((res is null) ? null : res.getAsyncResultStruct(), &err); - } - else - { - p = g_dbus_proxy_new_finish((res is null) ? null : res.getAsyncResultStruct(), &err); - } - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(p is null) - { - throw new ConstructionException("null returned by g_dbus_proxy_new_finish((res is null) ? null : res.getAsyncResultStruct(), &err)"); - } - this(p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_dbus_proxy_get_type(); - } - - /** - * Like g_dbus_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. - * - * #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. - * - * Params: - * busType = A #GBusType. - * flags = Flags used when constructing the proxy. - * info = A #GDBusInterfaceInfo specifying the minimal interface - * that @proxy conforms to or %NULL. - * name = A bus name (well-known or unique). - * objectPath = An object path. - * interfaceName = A D-Bus interface name. - * cancellable = A #GCancellable or %NULL. - * - * Returns: A #GDBusProxy or %NULL if error is set. - * Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GBusType busType, GDBusProxyFlags flags, DBusInterfaceInfo info, string name, string objectPath, string interfaceName, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_proxy_new_for_bus_sync(busType, flags, (info is null) ? null : info.getDBusInterfaceInfoStruct(), Str.toStringz(name), Str.toStringz(objectPath), Str.toStringz(interfaceName), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_for_bus_sync"); - } - - this(cast(GDBusProxy*) __p, true); - } - - /** - * Creates a proxy for accessing @interface_name on the remote object - * at @object_path owned by @name at @connection and synchronously - * loads D-Bus properties unless the - * %G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag is used. - * - * If the %G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS flag is not set, also sets up - * match rules for signals. Connect to the #GDBusProxy::g-signal signal - * to handle signals from the remote object. - * - * If both %G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES and - * %G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS are set, this constructor is - * guaranteed to return immediately without blocking. - * - * If @name is a well-known name and the - * %G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START and %G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION - * flags aren't set and no name owner currently exists, the message bus - * will be requested to launch a name owner for the name. - * - * This is a synchronous failable constructor. See g_dbus_proxy_new() - * and g_dbus_proxy_new_finish() for the asynchronous version. - * - * #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. - * - * Params: - * connection = A #GDBusConnection. - * flags = Flags used when constructing the proxy. - * info = A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. - * name = A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. - * objectPath = An object path. - * interfaceName = A D-Bus interface name. - * cancellable = A #GCancellable or %NULL. - * - * Returns: A #GDBusProxy or %NULL if error is set. - * Free with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(DBusConnection connection, GDBusProxyFlags flags, DBusInterfaceInfo info, string name, string objectPath, string interfaceName, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_proxy_new_sync((connection is null) ? null : connection.getDBusConnectionStruct(), flags, (info is null) ? null : info.getDBusInterfaceInfoStruct(), Str.toStringz(name), Str.toStringz(objectPath), Str.toStringz(interfaceName), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_sync"); - } - - this(cast(GDBusProxy*) __p, true); - } - - /** - * Creates a proxy for accessing @interface_name on the remote object - * at @object_path owned by @name at @connection and asynchronously - * loads D-Bus properties unless the - * %G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag is used. Connect to - * the #GDBusProxy::g-properties-changed signal to get notified about - * property changes. - * - * If the %G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS flag is not set, also sets up - * match rules for signals. Connect to the #GDBusProxy::g-signal signal - * to handle signals from the remote object. - * - * If both %G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES and - * %G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS are set, this constructor is - * guaranteed to complete immediately without blocking. - * - * If @name is a well-known name and the - * %G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START and %G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION - * flags aren't set and no name owner currently exists, the message bus - * will be requested to launch a name owner for the name. - * - * This is a failable asynchronous constructor - when the proxy is - * ready, @callback will be invoked and you can use - * g_dbus_proxy_new_finish() to get the result. - * - * See g_dbus_proxy_new_sync() and for a synchronous version of this constructor. - * - * #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. - * - * Params: - * connection = A #GDBusConnection. - * flags = Flags used when constructing the proxy. - * info = A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. - * name = A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. - * objectPath = An object path. - * interfaceName = A D-Bus interface name. - * cancellable = A #GCancellable or %NULL. - * callback = Callback function to invoke when the proxy is ready. - * userData = User data to pass to @callback. - * - * Since: 2.26 - */ - public static void new_(DBusConnection connection, GDBusProxyFlags flags, DBusInterfaceInfo info, string name, string objectPath, string interfaceName, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_proxy_new((connection is null) ? null : connection.getDBusConnectionStruct(), flags, (info is null) ? null : info.getDBusInterfaceInfoStruct(), Str.toStringz(name), Str.toStringz(objectPath), Str.toStringz(interfaceName), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Like g_dbus_proxy_new() but takes a #GBusType instead of a #GDBusConnection. - * - * #GDBusProxy is used in this [example][gdbus-wellknown-proxy]. - * - * Params: - * busType = A #GBusType. - * flags = Flags used when constructing the proxy. - * info = A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL. - * name = A bus name (well-known or unique). - * objectPath = An object path. - * interfaceName = A D-Bus interface name. - * cancellable = A #GCancellable or %NULL. - * callback = Callback function to invoke when the proxy is ready. - * userData = User data to pass to @callback. - * - * Since: 2.26 - */ - public static void newForBus(GBusType busType, GDBusProxyFlags flags, DBusInterfaceInfo info, string name, string objectPath, string interfaceName, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_proxy_new_for_bus(busType, flags, (info is null) ? null : info.getDBusInterfaceInfoStruct(), Str.toStringz(name), Str.toStringz(objectPath), Str.toStringz(interfaceName), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Asynchronously invokes the @method_name method on @proxy. - * - * If @method_name contains any dots, then @name is split into interface and - * method name parts. This allows using @proxy for invoking methods on - * other interfaces. - * - * If the #GDBusConnection associated with @proxy is closed then - * the operation will fail with %G_IO_ERROR_CLOSED. If - * @cancellable is canceled, the operation will fail with - * %G_IO_ERROR_CANCELLED. If @parameters contains a value not - * compatible with the D-Bus protocol, the operation fails with - * %G_IO_ERROR_INVALID_ARGUMENT. - * - * If the @parameters #GVariant is floating, it is consumed. This allows - * convenient 'inline' use of g_variant_new(), e.g.: - * |[ - * g_dbus_proxy_call (proxy, - * "TwoStrings", - * g_variant_new ("(ss)", - * "Thing One", - * "Thing Two"), - * G_DBUS_CALL_FLAGS_NONE, - * -1, - * NULL, - * (GAsyncReadyCallback) two_strings_done, - * &data); - * ]| - * - * If @proxy has an expected interface (see - * #GDBusProxy:g-interface-info) and @method_name is referenced by it, - * then the return value is checked against the return type. - * - * This is an asynchronous method. When the operation is finished, - * @callback will be invoked in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread you are calling this method from. - * You can then call g_dbus_proxy_call_finish() to get the result of - * the operation. See g_dbus_proxy_call_sync() for the synchronous - * version of this method. - * - * If @callback is %NULL then the D-Bus method call message will be sent with - * the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. - * - * Params: - * methodName = Name of method to invoke. - * parameters = A #GVariant tuple with parameters for the signal or %NULL if not passing parameters. - * flags = Flags from the #GDBusCallFlags enumeration. - * timeoutMsec = The timeout in milliseconds (with %G_MAXINT meaning - * "infinite") or -1 to use the proxy default timeout. - * cancellable = A #GCancellable or %NULL. - * callback = A #GAsyncReadyCallback to call when the request is satisfied or %NULL if you don't - * care about the result of the method invocation. - * userData = The data to pass to @callback. - * - * Since: 2.26 - */ - public void call(string methodName, Variant parameters, GDBusCallFlags flags, int timeoutMsec, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_proxy_call(gDBusProxy, Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), flags, timeoutMsec, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_proxy_call(). - * - * Params: - * res = A #GAsyncResult obtained from the #GAsyncReadyCallback passed to g_dbus_proxy_call(). - * - * Returns: %NULL if @error is set. Otherwise a #GVariant tuple with - * return values. Free with g_variant_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public Variant callFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_dbus_proxy_call_finish(gDBusProxy, (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Synchronously invokes the @method_name method on @proxy. - * - * If @method_name contains any dots, then @name is split into interface and - * method name parts. This allows using @proxy for invoking methods on - * other interfaces. - * - * If the #GDBusConnection associated with @proxy is disconnected then - * the operation will fail with %G_IO_ERROR_CLOSED. If - * @cancellable is canceled, the operation will fail with - * %G_IO_ERROR_CANCELLED. If @parameters contains a value not - * compatible with the D-Bus protocol, the operation fails with - * %G_IO_ERROR_INVALID_ARGUMENT. - * - * If the @parameters #GVariant is floating, it is consumed. This allows - * convenient 'inline' use of g_variant_new(), e.g.: - * |[ - * g_dbus_proxy_call_sync (proxy, - * "TwoStrings", - * g_variant_new ("(ss)", - * "Thing One", - * "Thing Two"), - * G_DBUS_CALL_FLAGS_NONE, - * -1, - * NULL, - * &error); - * ]| - * - * The calling thread is blocked until a reply is received. See - * g_dbus_proxy_call() for the asynchronous version of this - * method. - * - * If @proxy has an expected interface (see - * #GDBusProxy:g-interface-info) and @method_name is referenced by it, - * then the return value is checked against the return type. - * - * Params: - * methodName = Name of method to invoke. - * parameters = A #GVariant tuple with parameters for the signal - * or %NULL if not passing parameters. - * flags = Flags from the #GDBusCallFlags enumeration. - * timeoutMsec = The timeout in milliseconds (with %G_MAXINT meaning - * "infinite") or -1 to use the proxy default timeout. - * cancellable = A #GCancellable or %NULL. - * - * Returns: %NULL if @error is set. Otherwise a #GVariant tuple with - * return values. Free with g_variant_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public Variant callSync(string methodName, Variant parameters, GDBusCallFlags flags, int timeoutMsec, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_proxy_call_sync(gDBusProxy, Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), flags, timeoutMsec, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Like g_dbus_proxy_call() but also takes a #GUnixFDList object. - * - * This method is only available on UNIX. - * - * Params: - * methodName = Name of method to invoke. - * parameters = A #GVariant tuple with parameters for the signal or %NULL if not passing parameters. - * flags = Flags from the #GDBusCallFlags enumeration. - * timeoutMsec = The timeout in milliseconds (with %G_MAXINT meaning - * "infinite") or -1 to use the proxy default timeout. - * fdList = A #GUnixFDList or %NULL. - * cancellable = A #GCancellable or %NULL. - * callback = A #GAsyncReadyCallback to call when the request is satisfied or %NULL if you don't - * care about the result of the method invocation. - * userData = The data to pass to @callback. - * - * Since: 2.30 - */ - public void callWithUnixFdList(string methodName, Variant parameters, GDBusCallFlags flags, int timeoutMsec, UnixFDList fdList, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_proxy_call_with_unix_fd_list(gDBusProxy, Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), flags, timeoutMsec, (fdList is null) ? null : fdList.getUnixFDListStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_proxy_call_with_unix_fd_list(). - * - * Params: - * outFdList = Return location for a #GUnixFDList or %NULL. - * res = A #GAsyncResult obtained from the #GAsyncReadyCallback passed to g_dbus_proxy_call_with_unix_fd_list(). - * - * Returns: %NULL if @error is set. Otherwise a #GVariant tuple with - * return values. Free with g_variant_unref(). - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public Variant callWithUnixFdListFinish(out UnixFDList outFdList, AsyncResultIF res) - { - GUnixFDList* outoutFdList = null; - GError* err = null; - - auto __p = g_dbus_proxy_call_with_unix_fd_list_finish(gDBusProxy, &outoutFdList, (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outFdList = ObjectG.getDObject!(UnixFDList)(outoutFdList); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Like g_dbus_proxy_call_sync() but also takes and returns #GUnixFDList objects. - * - * This method is only available on UNIX. - * - * Params: - * methodName = Name of method to invoke. - * parameters = A #GVariant tuple with parameters for the signal - * or %NULL if not passing parameters. - * flags = Flags from the #GDBusCallFlags enumeration. - * timeoutMsec = The timeout in milliseconds (with %G_MAXINT meaning - * "infinite") or -1 to use the proxy default timeout. - * fdList = A #GUnixFDList or %NULL. - * outFdList = Return location for a #GUnixFDList or %NULL. - * cancellable = A #GCancellable or %NULL. - * - * Returns: %NULL if @error is set. Otherwise a #GVariant tuple with - * return values. Free with g_variant_unref(). - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public Variant callWithUnixFdListSync(string methodName, Variant parameters, GDBusCallFlags flags, int timeoutMsec, UnixFDList fdList, out UnixFDList outFdList, Cancellable cancellable) - { - GUnixFDList* outoutFdList = null; - GError* err = null; - - auto __p = g_dbus_proxy_call_with_unix_fd_list_sync(gDBusProxy, Str.toStringz(methodName), (parameters is null) ? null : parameters.getVariantStruct(), flags, timeoutMsec, (fdList is null) ? null : fdList.getUnixFDListStruct(), &outoutFdList, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outFdList = ObjectG.getDObject!(UnixFDList)(outoutFdList); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Looks up the value for a property from the cache. This call does no - * blocking IO. - * - * If @proxy has an expected interface (see - * #GDBusProxy:g-interface-info) and @property_name is referenced by - * it, then @value is checked against the type of the property. - * - * Params: - * propertyName = Property name. - * - * Returns: A reference to the #GVariant instance - * that holds the value for @property_name or %NULL if the value is not in - * the cache. The returned reference must be freed with g_variant_unref(). - * - * Since: 2.26 - */ - public Variant getCachedProperty(string propertyName) - { - auto __p = g_dbus_proxy_get_cached_property(gDBusProxy, Str.toStringz(propertyName)); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the names of all cached properties on @proxy. - * - * Returns: A - * %NULL-terminated array of strings or %NULL if - * @proxy has no cached properties. Free the returned array with - * g_strfreev(). - * - * Since: 2.26 - */ - public string[] getCachedPropertyNames() - { - auto retStr = g_dbus_proxy_get_cached_property_names(gDBusProxy); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Gets the connection @proxy is for. - * - * Returns: A #GDBusConnection owned by @proxy. Do not free. - * - * Since: 2.26 - */ - public DBusConnection getConnection() - { - auto __p = g_dbus_proxy_get_connection(gDBusProxy); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusConnection)(cast(GDBusConnection*) __p); - } - - /** - * Gets the timeout to use if -1 (specifying default timeout) is - * passed as @timeout_msec in the g_dbus_proxy_call() and - * g_dbus_proxy_call_sync() functions. - * - * See the #GDBusProxy:g-default-timeout property for more details. - * - * Returns: Timeout to use for @proxy. - * - * Since: 2.26 - */ - public int getDefaultTimeout() - { - return g_dbus_proxy_get_default_timeout(gDBusProxy); - } - - /** - * Gets the flags that @proxy was constructed with. - * - * Returns: Flags from the #GDBusProxyFlags enumeration. - * - * Since: 2.26 - */ - public GDBusProxyFlags getFlags() - { - return g_dbus_proxy_get_flags(gDBusProxy); - } - - /** - * Returns the #GDBusInterfaceInfo, if any, specifying the interface - * that @proxy conforms to. See the #GDBusProxy:g-interface-info - * property for more details. - * - * Returns: A #GDBusInterfaceInfo or %NULL. - * Do not unref the returned object, it is owned by @proxy. - * - * Since: 2.26 - */ - public DBusInterfaceInfo getInterfaceInfo() - { - auto __p = g_dbus_proxy_get_interface_info(gDBusProxy); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusInterfaceInfo)(cast(GDBusInterfaceInfo*) __p); - } - - /** - * Gets the D-Bus interface name @proxy is for. - * - * Returns: A string owned by @proxy. Do not free. - * - * Since: 2.26 - */ - public string getInterfaceName() - { - return Str.toString(g_dbus_proxy_get_interface_name(gDBusProxy)); - } - - /** - * Gets the name that @proxy was constructed for. - * - * Returns: A string owned by @proxy. Do not free. - * - * Since: 2.26 - */ - public string getName() - { - return Str.toString(g_dbus_proxy_get_name(gDBusProxy)); - } - - /** - * The unique name that owns the name that @proxy is for or %NULL if - * no-one currently owns that name. You may connect to the - * #GObject::notify signal to track changes to the - * #GDBusProxy:g-name-owner property. - * - * Returns: The name owner or %NULL if no name - * owner exists. Free with g_free(). - * - * Since: 2.26 - */ - public string getNameOwner() - { - auto retStr = g_dbus_proxy_get_name_owner(gDBusProxy); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the object path @proxy is for. - * - * Returns: A string owned by @proxy. Do not free. - * - * Since: 2.26 - */ - public string getObjectPath() - { - return Str.toString(g_dbus_proxy_get_object_path(gDBusProxy)); - } - - /** - * If @value is not %NULL, sets the cached value for the property with - * name @property_name to the value in @value. - * - * If @value is %NULL, then the cached value is removed from the - * property cache. - * - * If @proxy has an expected interface (see - * #GDBusProxy:g-interface-info) and @property_name is referenced by - * it, then @value is checked against the type of the property. - * - * If the @value #GVariant is floating, it is consumed. This allows - * convenient 'inline' use of g_variant_new(), e.g. - * |[ - * g_dbus_proxy_set_cached_property (proxy, - * "SomeProperty", - * g_variant_new ("(si)", - * "A String", - * 42)); - * ]| - * - * Normally you will not need to use this method since @proxy - * is tracking changes using the - * `org.freedesktop.DBus.Properties.PropertiesChanged` - * D-Bus signal. However, for performance reasons an object may - * decide to not use this signal for some properties and instead - * use a proprietary out-of-band mechanism to transmit changes. - * - * As a concrete example, consider an object with a property - * `ChatroomParticipants` which is an array of strings. Instead of - * transmitting the same (long) array every time the property changes, - * it is more efficient to only transmit the delta using e.g. signals - * `ChatroomParticipantJoined(String name)` and - * `ChatroomParticipantParted(String name)`. - * - * Params: - * propertyName = Property name. - * value = Value for the property or %NULL to remove it from the cache. - * - * Since: 2.26 - */ - public void setCachedProperty(string propertyName, Variant value) - { - g_dbus_proxy_set_cached_property(gDBusProxy, Str.toStringz(propertyName), (value is null) ? null : value.getVariantStruct()); - } - - /** - * Sets the timeout to use if -1 (specifying default timeout) is - * passed as @timeout_msec in the g_dbus_proxy_call() and - * g_dbus_proxy_call_sync() functions. - * - * See the #GDBusProxy:g-default-timeout property for more details. - * - * Params: - * timeoutMsec = Timeout in milliseconds. - * - * Since: 2.26 - */ - public void setDefaultTimeout(int timeoutMsec) - { - g_dbus_proxy_set_default_timeout(gDBusProxy, timeoutMsec); - } - - /** - * Ensure that interactions with @proxy conform to the given - * interface. See the #GDBusProxy:g-interface-info property for more - * details. - * - * Params: - * info = Minimum interface this proxy conforms to - * or %NULL to unset. - * - * Since: 2.26 - */ - public void setInterfaceInfo(DBusInterfaceInfo info) - { - g_dbus_proxy_set_interface_info(gDBusProxy, (info is null) ? null : info.getDBusInterfaceInfoStruct()); - } - - /** - * Emitted when one or more D-Bus properties on @proxy changes. The - * local cache has already been updated when this signal fires. Note - * that both @changed_properties and @invalidated_properties are - * guaranteed to never be %NULL (either may be empty though). - * - * If the proxy has the flag - * %G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES set, then - * @invalidated_properties will always be empty. - * - * This signal corresponds to the - * `PropertiesChanged` D-Bus signal on the - * `org.freedesktop.DBus.Properties` interface. - * - * Params: - * changedProperties = A #GVariant containing the properties that changed (type: `a{sv}`) - * invalidatedProperties = A %NULL terminated array of properties that was invalidated - * - * Since: 2.26 - */ - gulong addOnGPropertiesChanged(void delegate(Variant, string[], DBusProxy) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "g-properties-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a signal from the remote object and interface that @proxy is for, has been received. - * - * Params: - * senderName = The sender of the signal or %NULL if the connection is not a bus connection. - * signalName = The name of the signal. - * parameters = A #GVariant tuple with parameters for the signal. - * - * Since: 2.26 - */ - gulong addOnGSignal(void delegate(string, string, Variant, DBusProxy) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "g-signal", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusServer.d b/generated/gtkd/gio/DBusServer.d deleted file mode 100644 index c3fa0fce5..000000000 --- a/generated/gtkd/gio/DBusServer.d +++ /dev/null @@ -1,266 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusServer; - -private import gio.Cancellable; -private import gio.DBusAuthObserver; -private import gio.DBusConnection; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GDBusServer is a helper for listening to and accepting D-Bus - * connections. This can be used to create a new D-Bus server, allowing two - * peers to use the D-Bus protocol for their own specialized communication. - * A server instance provided in this way will not perform message routing or - * implement the org.freedesktop.DBus interface. - * - * To just export an object on a well-known name on a message bus, such as the - * session or system bus, you should instead use g_bus_own_name(). - * - * An example of peer-to-peer communication with GDBus can be found - * in [gdbus-example-peer.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-example-peer.c). - * - * Note that a minimal #GDBusServer will accept connections from any - * peer. In many use-cases it will be necessary to add a #GDBusAuthObserver - * that only accepts connections that have successfully authenticated - * as the same user that is running the #GDBusServer. Since GLib 2.68 this can - * be achieved more simply by passing the - * %G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER flag to the server. - * - * Since: 2.26 - */ -public class DBusServer : ObjectG, InitableIF -{ - /** the main Gtk struct */ - protected GDBusServer* gDBusServer; - - /** Get the main Gtk struct */ - public GDBusServer* getDBusServerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusServer; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDBusServer; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusServer* gDBusServer, bool ownedRef = false) - { - this.gDBusServer = gDBusServer; - super(cast(GObject*)gDBusServer, ownedRef); - } - - // add the Initable capabilities - mixin InitableT!(GDBusServer); - - - /** */ - public static GType getType() - { - return g_dbus_server_get_type(); - } - - /** - * Creates a new D-Bus server that listens on the first address in - * @address that works. - * - * Once constructed, you can use g_dbus_server_get_client_address() to - * get a D-Bus address string that clients can use to connect. - * - * To have control over the available authentication mechanisms and - * the users that are authorized to connect, it is strongly recommended - * to provide a non-%NULL #GDBusAuthObserver. - * - * Connect to the #GDBusServer::new-connection signal to handle - * incoming connections. - * - * The returned #GDBusServer isn't active - you have to start it with - * g_dbus_server_start(). - * - * #GDBusServer is used in this [example][gdbus-peer-to-peer]. - * - * This is a synchronous failable constructor. There is currently no - * asynchronous version. - * - * Params: - * address = A D-Bus address. - * flags = Flags from the #GDBusServerFlags enumeration. - * guid = A D-Bus GUID. - * observer = A #GDBusAuthObserver or %NULL. - * cancellable = A #GCancellable or %NULL. - * - * Returns: A #GDBusServer or %NULL if @error is set. Free with - * g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string address, GDBusServerFlags flags, string guid, DBusAuthObserver observer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dbus_server_new_sync(Str.toStringz(address), flags, Str.toStringz(guid), (observer is null) ? null : observer.getDBusAuthObserverStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_sync"); - } - - this(cast(GDBusServer*) __p, true); - } - - /** - * Gets a - * [D-Bus address](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses) - * string that can be used by clients to connect to @server. - * - * Returns: A D-Bus address string. Do not free, the string is owned - * by @server. - * - * Since: 2.26 - */ - public string getClientAddress() - { - return Str.toString(g_dbus_server_get_client_address(gDBusServer)); - } - - /** - * Gets the flags for @server. - * - * Returns: A set of flags from the #GDBusServerFlags enumeration. - * - * Since: 2.26 - */ - public GDBusServerFlags getFlags() - { - return g_dbus_server_get_flags(gDBusServer); - } - - /** - * Gets the GUID for @server. - * - * Returns: A D-Bus GUID. Do not free this string, it is owned by @server. - * - * Since: 2.26 - */ - public string getGuid() - { - return Str.toString(g_dbus_server_get_guid(gDBusServer)); - } - - /** - * Gets whether @server is active. - * - * Returns: %TRUE if server is active, %FALSE otherwise. - * - * Since: 2.26 - */ - public bool isActive() - { - return g_dbus_server_is_active(gDBusServer) != 0; - } - - /** - * Starts @server. - * - * Since: 2.26 - */ - public void start() - { - g_dbus_server_start(gDBusServer); - } - - /** - * Stops @server. - * - * Since: 2.26 - */ - public void stop() - { - g_dbus_server_stop(gDBusServer); - } - - /** - * Emitted when a new authenticated connection has been made. Use - * g_dbus_connection_get_peer_credentials() to figure out what - * identity (if any), was authenticated. - * - * If you want to accept the connection, take a reference to the - * @connection object and return %TRUE. When you are done with the - * connection call g_dbus_connection_close() and give up your - * reference. Note that the other peer may disconnect at any time - - * a typical thing to do when accepting a connection is to listen to - * the #GDBusConnection::closed signal. - * - * If #GDBusServer:flags contains %G_DBUS_SERVER_FLAGS_RUN_IN_THREAD - * then the signal is emitted in a new thread dedicated to the - * connection. Otherwise the signal is emitted in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread that @server was constructed in. - * - * You are guaranteed that signal handlers for this signal runs - * before incoming messages on @connection are processed. This means - * that it's suitable to call g_dbus_connection_register_object() or - * similar from the signal handler. - * - * Params: - * connection = A #GDBusConnection for the new connection. - * - * Returns: %TRUE to claim @connection, %FALSE to let other handlers - * run. - * - * Since: 2.26 - */ - gulong addOnNewConnection(bool delegate(DBusConnection, DBusServer) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "new-connection", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DBusSignalInfo.d b/generated/gtkd/gio/DBusSignalInfo.d deleted file mode 100644 index 57c1d06f6..000000000 --- a/generated/gtkd/gio/DBusSignalInfo.d +++ /dev/null @@ -1,199 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusSignalInfo; - -private import gio.DBusAnnotationInfo; -private import gio.DBusArgInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Information about a signal on a D-Bus interface. - * - * Since: 2.26 - */ -public final class DBusSignalInfo -{ - /** the main Gtk struct */ - protected GDBusSignalInfo* gDBusSignalInfo; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDBusSignalInfo* getDBusSignalInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDBusSignalInfo; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDBusSignalInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDBusSignalInfo* gDBusSignalInfo, bool ownedRef = false) - { - this.gDBusSignalInfo = gDBusSignalInfo; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_dbus_signal_info_unref(gDBusSignalInfo); - } - - - /** - * The reference count or -1 if statically allocated. - */ - public @property int refCount() - { - return gDBusSignalInfo.refCount; - } - - /** Ditto */ - public @property void refCount(int value) - { - gDBusSignalInfo.refCount = value; - } - - /** - * The name of the D-Bus signal, e.g. "NameOwnerChanged". - */ - public @property string name() - { - return Str.toString(gDBusSignalInfo.name); - } - - /** Ditto */ - public @property void name(string value) - { - gDBusSignalInfo.name = Str.toStringz(value); - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no arguments. - */ - public @property DBusArgInfo[] args() - { - DBusArgInfo[] arr = new DBusArgInfo[getArrayLength(gDBusSignalInfo.args)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusArgInfo)(gDBusSignalInfo.args[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void args(DBusArgInfo[] value) - { - GDBusArgInfo*[] arr = new GDBusArgInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusArgInfoStruct(); - } - arr[value.length] = null; - - gDBusSignalInfo.args = arr.ptr; - } - - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - public @property DBusAnnotationInfo[] annotations() - { - DBusAnnotationInfo[] arr = new DBusAnnotationInfo[getArrayLength(gDBusSignalInfo.annotations)]; - for ( int i = 0; i < arr.length; i++ ) - { - arr[i] = ObjectG.getDObject!(DBusAnnotationInfo)(gDBusSignalInfo.annotations[i], false); - } - - return arr; - } - - /** Ditto */ - public @property void annotations(DBusAnnotationInfo[] value) - { - GDBusAnnotationInfo*[] arr = new GDBusAnnotationInfo*[value.length+1]; - for ( int i = 0; i < value.length; i++ ) - { - arr[i] = value[i].getDBusAnnotationInfoStruct(); - } - arr[value.length] = null; - - gDBusSignalInfo.annotations = arr.ptr; - } - - /** */ - public static GType getType() - { - return g_dbus_signal_info_get_type(); - } - - alias doref = ref_; - /** - * If @info is statically allocated does nothing. Otherwise increases - * the reference count. - * - * Returns: The same @info. - * - * Since: 2.26 - */ - public DBusSignalInfo ref_() - { - auto __p = g_dbus_signal_info_ref(gDBusSignalInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DBusSignalInfo)(cast(GDBusSignalInfo*) __p, true); - } - - /** - * If @info is statically allocated, does nothing. Otherwise decreases - * the reference count of @info. When its reference count drops to 0, - * the memory used is freed. - * - * Since: 2.26 - */ - public void unref() - { - g_dbus_signal_info_unref(gDBusSignalInfo); - } -} diff --git a/generated/gtkd/gio/DBusUtilities.d b/generated/gtkd/gio/DBusUtilities.d deleted file mode 100644 index 5752b5155..000000000 --- a/generated/gtkd/gio/DBusUtilities.d +++ /dev/null @@ -1,442 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DBusUtilities; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.IOStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; - - -/** */ -public struct DBusUtilities -{ - - /** - * Escape @string so it can appear in a D-Bus address as the value - * part of a key-value pair. - * - * For instance, if @string is `/run/bus-for-:0`, - * this function would return `/run/bus-for-%3A0`, - * which could be used in a D-Bus address like - * `unix:nonce-tcp:host=127.0.0.1,port=42,noncefile=/run/bus-for-%3A0`. - * - * Params: - * string_ = an unescaped string to be included in a D-Bus address - * as the value in a key-value pair - * - * Returns: a copy of @string with all - * non-optionally-escaped bytes escaped - * - * Since: 2.36 - */ - public static string addressEscapeValue(string string_) - { - auto retStr = g_dbus_address_escape_value(Str.toStringz(string_)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Synchronously looks up the D-Bus address for the well-known message - * bus instance specified by @bus_type. This may involve using various - * platform specific mechanisms. - * - * The returned address will be in the - * [D-Bus address format](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses). - * - * Params: - * busType = a #GBusType - * cancellable = a #GCancellable or %NULL - * - * Returns: a valid D-Bus address string for @bus_type or - * %NULL if @error is set - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static string addressGetForBusSync(GBusType busType, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_dbus_address_get_for_bus_sync(busType, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Asynchronously connects to an endpoint specified by @address and - * sets up the connection so it is in a state to run the client-side - * of the D-Bus authentication conversation. @address must be in the - * [D-Bus address format](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses). - * - * When the operation is finished, @callback will be invoked. You can - * then call g_dbus_address_get_stream_finish() to get the result of - * the operation. - * - * This is an asynchronous failable function. See - * g_dbus_address_get_stream_sync() for the synchronous version. - * - * Params: - * address = A valid D-Bus address. - * cancellable = A #GCancellable or %NULL. - * callback = A #GAsyncReadyCallback to call when the request is satisfied. - * userData = Data to pass to @callback. - * - * Since: 2.26 - */ - public static void addressGetStream(string address, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dbus_address_get_stream(Str.toStringz(address), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_dbus_address_get_stream(). - * - * A server is not required to set a GUID, so @out_guid may be set to %NULL - * even on success. - * - * Params: - * res = A #GAsyncResult obtained from the GAsyncReadyCallback passed to g_dbus_address_get_stream(). - * outGuid = %NULL or return location to store the GUID extracted from @address, if any. - * - * Returns: A #GIOStream or %NULL if @error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static IOStream addressGetStreamFinish(AsyncResultIF res, out string outGuid) - { - char* outoutGuid = null; - GError* err = null; - - auto __p = g_dbus_address_get_stream_finish((res is null) ? null : res.getAsyncResultStruct(), &outoutGuid, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outGuid = Str.toString(outoutGuid); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOStream)(cast(GIOStream*) __p, true); - } - - /** - * Synchronously connects to an endpoint specified by @address and - * sets up the connection so it is in a state to run the client-side - * of the D-Bus authentication conversation. @address must be in the - * [D-Bus address format](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses). - * - * A server is not required to set a GUID, so @out_guid may be set to %NULL - * even on success. - * - * This is a synchronous failable function. See - * g_dbus_address_get_stream() for the asynchronous version. - * - * Params: - * address = A valid D-Bus address. - * outGuid = %NULL or return location to store the GUID extracted from @address, if any. - * cancellable = A #GCancellable or %NULL. - * - * Returns: A #GIOStream or %NULL if @error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static IOStream addressGetStreamSync(string address, out string outGuid, Cancellable cancellable) - { - char* outoutGuid = null; - GError* err = null; - - auto __p = g_dbus_address_get_stream_sync(Str.toStringz(address), &outoutGuid, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outGuid = Str.toString(outoutGuid); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOStream)(cast(GIOStream*) __p, true); - } - - /** - * Generate a D-Bus GUID that can be used with - * e.g. g_dbus_connection_new(). - * - * See the D-Bus specification regarding what strings are valid D-Bus - * GUID (for example, D-Bus GUIDs are not RFC-4122 compliant). - * - * Returns: A valid D-Bus GUID. Free with g_free(). - * - * Since: 2.26 - */ - public static string generateGuid() - { - auto retStr = g_dbus_generate_guid(); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Converts a #GValue to a #GVariant of the type indicated by the @type - * parameter. - * - * The conversion is using the following rules: - * - * - #G_TYPE_STRING: 's', 'o', 'g' or 'ay' - * - #G_TYPE_STRV: 'as', 'ao' or 'aay' - * - #G_TYPE_BOOLEAN: 'b' - * - #G_TYPE_UCHAR: 'y' - * - #G_TYPE_INT: 'i', 'n' - * - #G_TYPE_UINT: 'u', 'q' - * - #G_TYPE_INT64 'x' - * - #G_TYPE_UINT64: 't' - * - #G_TYPE_DOUBLE: 'd' - * - #G_TYPE_VARIANT: Any #GVariantType - * - * This can fail if e.g. @gvalue is of type #G_TYPE_STRING and @type - * is ['i'][G-VARIANT-TYPE-INT32:CAPS]. It will also fail for any #GType - * (including e.g. #G_TYPE_OBJECT and #G_TYPE_BOXED derived-types) not - * in the table above. - * - * Note that if @gvalue is of type #G_TYPE_VARIANT and its value is - * %NULL, the empty #GVariant instance (never %NULL) for @type is - * returned (e.g. 0 for scalar types, the empty string for string types, - * '/' for object path types, the empty array for any array type and so on). - * - * See the g_dbus_gvariant_to_gvalue() function for how to convert a - * #GVariant to a #GValue. - * - * Params: - * gvalue = A #GValue to convert to a #GVariant - * type = A #GVariantType - * - * Returns: A #GVariant (never floating) of - * #GVariantType @type holding the data from @gvalue or an empty #GVariant - * in case of failure. Free with g_variant_unref(). - * - * Since: 2.30 - */ - public static Variant gvalueToGvariant(Value gvalue, VariantType type) - { - auto __p = g_dbus_gvalue_to_gvariant((gvalue is null) ? null : gvalue.getValueStruct(), (type is null) ? null : type.getVariantTypeStruct()); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Converts a #GVariant to a #GValue. If @value is floating, it is consumed. - * - * The rules specified in the g_dbus_gvalue_to_gvariant() function are - * used - this function is essentially its reverse form. So, a #GVariant - * containing any basic or string array type will be converted to a #GValue - * containing a basic value or string array. Any other #GVariant (handle, - * variant, tuple, dict entry) will be converted to a #GValue containing that - * #GVariant. - * - * The conversion never fails - a valid #GValue is always returned in - * @out_gvalue. - * - * Params: - * value = A #GVariant. - * outGvalue = Return location pointing to a zero-filled (uninitialized) #GValue. - * - * Since: 2.30 - */ - public static void gvariantToGvalue(Variant value, out Value outGvalue) - { - GValue* outoutGvalue = sliceNew!GValue(); - - g_dbus_gvariant_to_gvalue((value is null) ? null : value.getVariantStruct(), outoutGvalue); - - outGvalue = ObjectG.getDObject!(Value)(outoutGvalue, true); - } - - /** - * Checks if @string is a - * [D-Bus address](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses). - * - * This doesn't check if @string is actually supported by #GDBusServer - * or #GDBusConnection - use g_dbus_is_supported_address() to do more - * checks. - * - * Params: - * string_ = A string. - * - * Returns: %TRUE if @string is a valid D-Bus address, %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool isAddress(string string_) - { - return g_dbus_is_address(Str.toStringz(string_)) != 0; - } - - /** - * Checks if @string is a D-Bus GUID. - * - * See the D-Bus specification regarding what strings are valid D-Bus - * GUID (for example, D-Bus GUIDs are not RFC-4122 compliant). - * - * Params: - * string_ = The string to check. - * - * Returns: %TRUE if @string is a guid, %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool isGuid(string string_) - { - return g_dbus_is_guid(Str.toStringz(string_)) != 0; - } - - /** - * Checks if @string is a valid D-Bus interface name. - * - * Params: - * string_ = The string to check. - * - * Returns: %TRUE if valid, %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool isInterfaceName(string string_) - { - return g_dbus_is_interface_name(Str.toStringz(string_)) != 0; - } - - /** - * Checks if @string is a valid D-Bus member (e.g. signal or method) name. - * - * Params: - * string_ = The string to check. - * - * Returns: %TRUE if valid, %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool isMemberName(string string_) - { - return g_dbus_is_member_name(Str.toStringz(string_)) != 0; - } - - /** - * Checks if @string is a valid D-Bus bus name (either unique or well-known). - * - * Params: - * string_ = The string to check. - * - * Returns: %TRUE if valid, %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool isName(string string_) - { - return g_dbus_is_name(Str.toStringz(string_)) != 0; - } - - /** - * Like g_dbus_is_address() but also checks if the library supports the - * transports in @string and that key/value pairs for each transport - * are valid. See the specification of the - * [D-Bus address format](https://dbus.freedesktop.org/doc/dbus-specification.html#addresses). - * - * Params: - * string_ = A string. - * - * Returns: %TRUE if @string is a valid D-Bus address that is - * supported by this library, %FALSE if @error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static bool isSupportedAddress(string string_) - { - GError* err = null; - - auto __p = g_dbus_is_supported_address(Str.toStringz(string_), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks if @string is a valid D-Bus unique bus name. - * - * Params: - * string_ = The string to check. - * - * Returns: %TRUE if valid, %FALSE otherwise. - * - * Since: 2.26 - */ - public static bool isUniqueName(string string_) - { - return g_dbus_is_unique_name(Str.toStringz(string_)) != 0; - } -} diff --git a/generated/gtkd/gio/DataInputStream.d b/generated/gtkd/gio/DataInputStream.d deleted file mode 100644 index 66001dc18..000000000 --- a/generated/gtkd/gio/DataInputStream.d +++ /dev/null @@ -1,723 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DataInputStream; - -private import gio.AsyncResultIF; -private import gio.BufferedInputStream; -private import gio.Cancellable; -private import gio.InputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Data input stream implements #GInputStream and includes functions for - * reading structured data directly from a binary input stream. - */ -public class DataInputStream : BufferedInputStream -{ - /** the main Gtk struct */ - protected GDataInputStream* gDataInputStream; - - /** Get the main Gtk struct */ - public GDataInputStream* getDataInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDataInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDataInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDataInputStream* gDataInputStream, bool ownedRef = false) - { - this.gDataInputStream = gDataInputStream; - super(cast(GBufferedInputStream*)gDataInputStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_data_input_stream_get_type(); - } - - /** - * Creates a new data input stream for the @base_stream. - * - * Params: - * baseStream = a #GInputStream. - * - * Returns: a new #GDataInputStream. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream baseStream) - { - auto __p = g_data_input_stream_new((baseStream is null) ? null : baseStream.getInputStreamStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDataInputStream*) __p, true); - } - - /** - * Gets the byte order for the data input stream. - * - * Returns: the @stream's current #GDataStreamByteOrder. - */ - public GDataStreamByteOrder getByteOrder() - { - return g_data_input_stream_get_byte_order(gDataInputStream); - } - - /** - * Gets the current newline type for the @stream. - * - * Returns: #GDataStreamNewlineType for the given @stream. - */ - public GDataStreamNewlineType getNewlineType() - { - return g_data_input_stream_get_newline_type(gDataInputStream); - } - - /** - * Reads a 16-bit/2-byte value from @stream. - * - * In order to get the correct byte order for this read operation, - * see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a signed 16-bit/2-byte value read from @stream or `0` if - * an error occurred. - * - * Throws: GException on failure. - */ - public short readInt16(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_input_stream_read_int16(gDataInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Reads a signed 32-bit/4-byte value from @stream. - * - * In order to get the correct byte order for this read operation, - * see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a signed 32-bit/4-byte value read from the @stream or `0` if - * an error occurred. - * - * Throws: GException on failure. - */ - public int readInt32(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_input_stream_read_int32(gDataInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Reads a 64-bit/8-byte value from @stream. - * - * In order to get the correct byte order for this read operation, - * see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a signed 64-bit/8-byte value read from @stream or `0` if - * an error occurred. - * - * Throws: GException on failure. - */ - public long readInt64(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_input_stream_read_int64(gDataInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Reads a line from the data input stream. Note that no encoding - * checks or conversion is performed; the input is not guaranteed to - * be UTF-8, and may in fact have embedded NUL characters. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * length = a #gsize to get the length of the data read in. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a NUL terminated byte array with the line that was read in - * (without the newlines). Set @length to a #gsize to get the length - * of the read line. On an error, it will return %NULL and @error - * will be set. If there's no content to read, it will still return - * %NULL, but @error won't be set. - * - * Throws: GException on failure. - */ - public string readLine(out size_t length, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_line(gDataInputStream, &length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * The asynchronous version of g_data_input_stream_read_line(). It is - * an error to have two outstanding calls to this function. - * - * When the operation is finished, @callback will be called. You - * can then call g_data_input_stream_read_line_finish() to get - * the result of the operation. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied. - * userData = the data to pass to callback function. - * - * Since: 2.20 - */ - public void readLineAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_data_input_stream_read_line_async(gDataInputStream, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous call started by - * g_data_input_stream_read_line_async(). Note the warning about - * string encoding in g_data_input_stream_read_line() applies here as - * well. - * - * Params: - * result = the #GAsyncResult that was provided to the callback. - * length = a #gsize to get the length of the data read in. - * - * Returns: a NUL-terminated byte array with the line that was read in - * (without the newlines). Set @length to a #gsize to get the length - * of the read line. On an error, it will return %NULL and @error - * will be set. If there's no content to read, it will still return - * %NULL, but @error won't be set. - * - * Since: 2.20 - * - * Throws: GException on failure. - */ - public string readLineFinish(AsyncResultIF result, out size_t length) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_line_finish(gDataInputStream, (result is null) ? null : result.getAsyncResultStruct(), &length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Finish an asynchronous call started by - * g_data_input_stream_read_line_async(). - * - * Params: - * result = the #GAsyncResult that was provided to the callback. - * length = a #gsize to get the length of the data read in. - * - * Returns: a string with the line that - * was read in (without the newlines). Set @length to a #gsize to - * get the length of the read line. On an error, it will return - * %NULL and @error will be set. For UTF-8 conversion errors, the set - * error domain is %G_CONVERT_ERROR. If there's no content to read, - * it will still return %NULL, but @error won't be set. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public string readLineFinishUtf8(AsyncResultIF result, out size_t length) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_line_finish_utf8(gDataInputStream, (result is null) ? null : result.getAsyncResultStruct(), &length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Reads a UTF-8 encoded line from the data input stream. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * length = a #gsize to get the length of the data read in. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a NUL terminated UTF-8 string - * with the line that was read in (without the newlines). Set - * @length to a #gsize to get the length of the read line. On an - * error, it will return %NULL and @error will be set. For UTF-8 - * conversion errors, the set error domain is %G_CONVERT_ERROR. If - * there's no content to read, it will still return %NULL, but @error - * won't be set. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public string readLineUtf8(out size_t length, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_line_utf8(gDataInputStream, &length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Reads an unsigned 16-bit/2-byte value from @stream. - * - * In order to get the correct byte order for this read operation, - * see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: an unsigned 16-bit/2-byte value read from the @stream or `0` if - * an error occurred. - * - * Throws: GException on failure. - */ - public ushort readUint16(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_input_stream_read_uint16(gDataInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Reads an unsigned 32-bit/4-byte value from @stream. - * - * In order to get the correct byte order for this read operation, - * see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: an unsigned 32-bit/4-byte value read from the @stream or `0` if - * an error occurred. - * - * Throws: GException on failure. - */ - public uint readUint32(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_input_stream_read_uint32(gDataInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Reads an unsigned 64-bit/8-byte value from @stream. - * - * In order to get the correct byte order for this read operation, - * see g_data_input_stream_get_byte_order(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: an unsigned 64-bit/8-byte read from @stream or `0` if - * an error occurred. - * - * Throws: GException on failure. - */ - public ulong readUint64(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_input_stream_read_uint64(gDataInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Reads a string from the data input stream, up to the first - * occurrence of any of the stop characters. - * - * Note that, in contrast to g_data_input_stream_read_until_async(), - * this function consumes the stop character that it finds. - * - * Don't use this function in new code. Its functionality is - * inconsistent with g_data_input_stream_read_until_async(). Both - * functions will be marked as deprecated in a future release. Use - * g_data_input_stream_read_upto() instead, but note that that function - * does not consume the stop character. - * - * Deprecated: Use g_data_input_stream_read_upto() instead, which has more - * consistent behaviour regarding the stop character. - * - * Params: - * stopChars = characters to terminate the read. - * length = a #gsize to get the length of the data read in. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a string with the data that was read - * before encountering any of the stop characters. Set @length to - * a #gsize to get the length of the string. This function will - * return %NULL on an error. - * - * Throws: GException on failure. - */ - public string readUntil(string stopChars, out size_t length, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_until(gDataInputStream, Str.toStringz(stopChars), &length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * The asynchronous version of g_data_input_stream_read_until(). - * It is an error to have two outstanding calls to this function. - * - * Note that, in contrast to g_data_input_stream_read_until(), - * this function does not consume the stop character that it finds. You - * must read it for yourself. - * - * When the operation is finished, @callback will be called. You - * can then call g_data_input_stream_read_until_finish() to get - * the result of the operation. - * - * Don't use this function in new code. Its functionality is - * inconsistent with g_data_input_stream_read_until(). Both functions - * will be marked as deprecated in a future release. Use - * g_data_input_stream_read_upto_async() instead. - * - * Deprecated: Use g_data_input_stream_read_upto_async() instead, which - * has more consistent behaviour regarding the stop character. - * - * Params: - * stopChars = characters to terminate the read. - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied. - * userData = the data to pass to callback function. - * - * Since: 2.20 - */ - public void readUntilAsync(string stopChars, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_data_input_stream_read_until_async(gDataInputStream, Str.toStringz(stopChars), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous call started by - * g_data_input_stream_read_until_async(). - * - * Deprecated: Use g_data_input_stream_read_upto_finish() instead, which - * has more consistent behaviour regarding the stop character. - * - * Params: - * result = the #GAsyncResult that was provided to the callback. - * length = a #gsize to get the length of the data read in. - * - * Returns: a string with the data that was read - * before encountering any of the stop characters. Set @length to - * a #gsize to get the length of the string. This function will - * return %NULL on an error. - * - * Since: 2.20 - * - * Throws: GException on failure. - */ - public string readUntilFinish(AsyncResultIF result, out size_t length) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_until_finish(gDataInputStream, (result is null) ? null : result.getAsyncResultStruct(), &length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Reads a string from the data input stream, up to the first - * occurrence of any of the stop characters. - * - * In contrast to g_data_input_stream_read_until(), this function - * does not consume the stop character. You have to use - * g_data_input_stream_read_byte() to get it before calling - * g_data_input_stream_read_upto() again. - * - * Note that @stop_chars may contain '\0' if @stop_chars_len is - * specified. - * - * The returned string will always be nul-terminated on success. - * - * Params: - * stopChars = characters to terminate the read - * stopCharsLen = length of @stop_chars. May be -1 if @stop_chars is - * nul-terminated - * length = a #gsize to get the length of the data read in - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: a string with the data that was read - * before encountering any of the stop characters. Set @length to - * a #gsize to get the length of the string. This function will - * return %NULL on an error - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public string readUpto(string stopChars, ptrdiff_t stopCharsLen, out size_t length, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_upto(gDataInputStream, Str.toStringz(stopChars), stopCharsLen, &length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * The asynchronous version of g_data_input_stream_read_upto(). - * It is an error to have two outstanding calls to this function. - * - * In contrast to g_data_input_stream_read_until(), this function - * does not consume the stop character. You have to use - * g_data_input_stream_read_byte() to get it before calling - * g_data_input_stream_read_upto() again. - * - * Note that @stop_chars may contain '\0' if @stop_chars_len is - * specified. - * - * When the operation is finished, @callback will be called. You - * can then call g_data_input_stream_read_upto_finish() to get - * the result of the operation. - * - * Params: - * stopChars = characters to terminate the read - * stopCharsLen = length of @stop_chars. May be -1 if @stop_chars is - * nul-terminated - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.26 - */ - public void readUptoAsync(string stopChars, ptrdiff_t stopCharsLen, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_data_input_stream_read_upto_async(gDataInputStream, Str.toStringz(stopChars), stopCharsLen, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous call started by - * g_data_input_stream_read_upto_async(). - * - * Note that this function does not consume the stop character. You - * have to use g_data_input_stream_read_byte() to get it before calling - * g_data_input_stream_read_upto_async() again. - * - * The returned string will always be nul-terminated on success. - * - * Params: - * result = the #GAsyncResult that was provided to the callback - * length = a #gsize to get the length of the data read in - * - * Returns: a string with the data that was read - * before encountering any of the stop characters. Set @length to - * a #gsize to get the length of the string. This function will - * return %NULL on an error. - * - * Since: 2.24 - * - * Throws: GException on failure. - */ - public string readUptoFinish(AsyncResultIF result, out size_t length) - { - GError* err = null; - - auto retStr = g_data_input_stream_read_upto_finish(gDataInputStream, (result is null) ? null : result.getAsyncResultStruct(), &length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * This function sets the byte order for the given @stream. All subsequent - * reads from the @stream will be read in the given @order. - * - * Params: - * order = a #GDataStreamByteOrder to set. - */ - public void setByteOrder(GDataStreamByteOrder order) - { - g_data_input_stream_set_byte_order(gDataInputStream, order); - } - - /** - * Sets the newline type for the @stream. - * - * Note that using G_DATA_STREAM_NEWLINE_TYPE_ANY is slightly unsafe. If a read - * chunk ends in "CR" we must read an additional byte to know if this is "CR" or - * "CR LF", and this might block if there is no more data available. - * - * Params: - * type = the type of new line return as #GDataStreamNewlineType. - */ - public void setNewlineType(GDataStreamNewlineType type) - { - g_data_input_stream_set_newline_type(gDataInputStream, type); - } -} diff --git a/generated/gtkd/gio/DataOutputStream.d b/generated/gtkd/gio/DataOutputStream.d deleted file mode 100644 index ef88904ea..000000000 --- a/generated/gtkd/gio/DataOutputStream.d +++ /dev/null @@ -1,325 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DataOutputStream; - -private import gio.Cancellable; -private import gio.FilterOutputStream; -private import gio.OutputStream; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * Data output stream implements #GOutputStream and includes functions for - * writing data directly to an output stream. - */ -public class DataOutputStream : FilterOutputStream, SeekableIF -{ - /** the main Gtk struct */ - protected GDataOutputStream* gDataOutputStream; - - /** Get the main Gtk struct */ - public GDataOutputStream* getDataOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDataOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDataOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDataOutputStream* gDataOutputStream, bool ownedRef = false) - { - this.gDataOutputStream = gDataOutputStream; - super(cast(GFilterOutputStream*)gDataOutputStream, ownedRef); - } - - // add the Seekable capabilities - mixin SeekableT!(GDataOutputStream); - - - /** */ - public static GType getType() - { - return g_data_output_stream_get_type(); - } - - /** - * Creates a new data output stream for @base_stream. - * - * Params: - * baseStream = a #GOutputStream. - * - * Returns: #GDataOutputStream. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(OutputStream baseStream) - { - auto __p = g_data_output_stream_new((baseStream is null) ? null : baseStream.getOutputStreamStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDataOutputStream*) __p, true); - } - - /** - * Gets the byte order for the stream. - * - * Returns: the #GDataStreamByteOrder for the @stream. - */ - public GDataStreamByteOrder getByteOrder() - { - return g_data_output_stream_get_byte_order(gDataOutputStream); - } - - /** - * Puts a byte into the output stream. - * - * Params: - * data = a #guchar. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @data was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putByte(char data, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_byte(gDataOutputStream, data, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Puts a signed 16-bit integer into the output stream. - * - * Params: - * data = a #gint16. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @data was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putInt16(short data, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_int16(gDataOutputStream, data, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Puts a signed 32-bit integer into the output stream. - * - * Params: - * data = a #gint32. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @data was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putInt32(int data, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_int32(gDataOutputStream, data, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Puts a signed 64-bit integer into the stream. - * - * Params: - * data = a #gint64. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @data was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putInt64(long data, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_int64(gDataOutputStream, data, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Puts a string into the output stream. - * - * Params: - * str = a string. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @string was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putString(string str, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_string(gDataOutputStream, Str.toStringz(str), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Puts an unsigned 16-bit integer into the output stream. - * - * Params: - * data = a #guint16. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @data was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putUint16(ushort data, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_uint16(gDataOutputStream, data, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Puts an unsigned 32-bit integer into the stream. - * - * Params: - * data = a #guint32. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @data was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putUint32(uint data, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_uint32(gDataOutputStream, data, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Puts an unsigned 64-bit integer into the stream. - * - * Params: - * data = a #guint64. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if @data was successfully added to the @stream. - * - * Throws: GException on failure. - */ - public bool putUint64(ulong data, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_data_output_stream_put_uint64(gDataOutputStream, data, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the byte order of the data output stream to @order. - * - * Params: - * order = a %GDataStreamByteOrder. - */ - public void setByteOrder(GDataStreamByteOrder order) - { - g_data_output_stream_set_byte_order(gDataOutputStream, order); - } -} diff --git a/generated/gtkd/gio/DatagramBasedIF.d b/generated/gtkd/gio/DatagramBasedIF.d deleted file mode 100644 index 14af52552..000000000 --- a/generated/gtkd/gio/DatagramBasedIF.d +++ /dev/null @@ -1,326 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DatagramBasedIF; - -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Source; - - -/** - * A #GDatagramBased is a networking interface for representing datagram-based - * communications. It is a more or less direct mapping of the core parts of the - * BSD socket API in a portable GObject interface. It is implemented by - * #GSocket, which wraps the UNIX socket API on UNIX and winsock2 on Windows. - * - * #GDatagramBased is entirely platform independent, and is intended to be used - * alongside higher-level networking APIs such as #GIOStream. - * - * It uses vectored scatter/gather I/O by default, allowing for many messages - * to be sent or received in a single call. Where possible, implementations of - * the interface should take advantage of vectored I/O to minimise processing - * or system calls. For example, #GSocket uses recvmmsg() and sendmmsg() where - * possible. Callers should take advantage of scatter/gather I/O (the use of - * multiple buffers per message) to avoid unnecessary copying of data to - * assemble or disassemble a message. - * - * Each #GDatagramBased operation has a timeout parameter which may be negative - * for blocking behaviour, zero for non-blocking behaviour, or positive for - * timeout behaviour. A blocking operation blocks until finished or there is an - * error. A non-blocking operation will return immediately with a - * %G_IO_ERROR_WOULD_BLOCK error if it cannot make progress. A timeout operation - * will block until the operation is complete or the timeout expires; if the - * timeout expires it will return what progress it made, or - * %G_IO_ERROR_TIMED_OUT if no progress was made. To know when a call would - * successfully run you can call g_datagram_based_condition_check() or - * g_datagram_based_condition_wait(). You can also use - * g_datagram_based_create_source() and attach it to a #GMainContext to get - * callbacks when I/O is possible. - * - * When running a non-blocking operation applications should always be able to - * handle getting a %G_IO_ERROR_WOULD_BLOCK error even when some other function - * said that I/O was possible. This can easily happen in case of a race - * condition in the application, but it can also happen for other reasons. For - * instance, on Windows a socket is always seen as writable until a write - * returns %G_IO_ERROR_WOULD_BLOCK. - * - * As with #GSocket, #GDatagramBaseds can be either connection oriented (for - * example, SCTP) or connectionless (for example, UDP). #GDatagramBaseds must be - * datagram-based, not stream-based. The interface does not cover connection - * establishment — use methods on the underlying type to establish a connection - * before sending and receiving data through the #GDatagramBased API. For - * connectionless socket types the target/source address is specified or - * received in each I/O operation. - * - * Like most other APIs in GLib, #GDatagramBased is not inherently thread safe. - * To use a #GDatagramBased concurrently from multiple threads, you must - * implement your own locking. - * - * Since: 2.48 - */ -public interface DatagramBasedIF{ - /** Get the main Gtk struct */ - public GDatagramBased* getDatagramBasedStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_datagram_based_get_type(); - } - - /** - * Checks on the readiness of @datagram_based to perform operations. The - * operations specified in @condition are checked for and masked against the - * currently-satisfied conditions on @datagram_based. The result is returned. - * - * %G_IO_IN will be set in the return value if data is available to read with - * g_datagram_based_receive_messages(), or if the connection is closed remotely - * (EOS); and if the datagram_based has not been closed locally using some - * implementation-specific method (such as g_socket_close() or - * g_socket_shutdown() with @shutdown_read set, if it’s a #GSocket). - * - * If the connection is shut down or closed (by calling g_socket_close() or - * g_socket_shutdown() with @shutdown_read set, if it’s a #GSocket, for - * example), all calls to this function will return %G_IO_ERROR_CLOSED. - * - * %G_IO_OUT will be set if it is expected that at least one byte can be sent - * using g_datagram_based_send_messages() without blocking. It will not be set - * if the datagram_based has been closed locally. - * - * %G_IO_HUP will be set if the connection has been closed locally. - * - * %G_IO_ERR will be set if there was an asynchronous error in transmitting data - * previously enqueued using g_datagram_based_send_messages(). - * - * Note that on Windows, it is possible for an operation to return - * %G_IO_ERROR_WOULD_BLOCK even immediately after - * g_datagram_based_condition_check() has claimed that the #GDatagramBased is - * ready for writing. Rather than calling g_datagram_based_condition_check() and - * then writing to the #GDatagramBased if it succeeds, it is generally better to - * simply try writing right away, and try again later if the initial attempt - * returns %G_IO_ERROR_WOULD_BLOCK. - * - * It is meaningless to specify %G_IO_ERR or %G_IO_HUP in @condition; these - * conditions will always be set in the output if they are true. Apart from - * these flags, the output is guaranteed to be masked by @condition. - * - * This call never blocks. - * - * Params: - * condition = a #GIOCondition mask to check - * - * Returns: the #GIOCondition mask of the current state - * - * Since: 2.48 - */ - public GIOCondition conditionCheck(GIOCondition condition); - - /** - * Waits for up to @timeout microseconds for condition to become true on - * @datagram_based. If the condition is met, %TRUE is returned. - * - * If @cancellable is cancelled before the condition is met, or if @timeout is - * reached before the condition is met, then %FALSE is returned and @error is - * set appropriately (%G_IO_ERROR_CANCELLED or %G_IO_ERROR_TIMED_OUT). - * - * Params: - * condition = a #GIOCondition mask to wait for - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a #GCancellable - * - * Returns: %TRUE if the condition was met, %FALSE otherwise - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool conditionWait(GIOCondition condition, long timeout, Cancellable cancellable); - - /** - * Creates a #GSource that can be attached to a #GMainContext to monitor for - * the availability of the specified @condition on the #GDatagramBased. The - * #GSource keeps a reference to the @datagram_based. - * - * The callback on the source is of the #GDatagramBasedSourceFunc type. - * - * It is meaningless to specify %G_IO_ERR or %G_IO_HUP in @condition; these - * conditions will always be reported in the callback if they are true. - * - * If non-%NULL, @cancellable can be used to cancel the source, which will - * cause the source to trigger, reporting the current condition (which is - * likely 0 unless cancellation happened at the same time as a condition - * change). You can check for this in the callback using - * g_cancellable_is_cancelled(). - * - * Params: - * condition = a #GIOCondition mask to monitor - * cancellable = a #GCancellable - * - * Returns: a newly allocated #GSource - * - * Since: 2.48 - */ - public Source createSource(GIOCondition condition, Cancellable cancellable); - - /** - * Receive one or more data messages from @datagram_based in one go. - * - * @messages must point to an array of #GInputMessage structs and - * @num_messages must be the length of this array. Each #GInputMessage - * contains a pointer to an array of #GInputVector structs describing the - * buffers that the data received in each message will be written to. - * - * @flags modify how all messages are received. The commonly available - * arguments for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too. These - * flags affect the overall receive operation. Flags affecting individual - * messages are returned in #GInputMessage.flags. - * - * The other members of #GInputMessage are treated as described in its - * documentation. - * - * If @timeout is negative the call will block until @num_messages have been - * received, the connection is closed remotely (EOS), @cancellable is cancelled, - * or an error occurs. - * - * If @timeout is 0 the call will return up to @num_messages without blocking, - * or %G_IO_ERROR_WOULD_BLOCK if no messages are queued in the operating system - * to be received. - * - * If @timeout is positive the call will block on the same conditions as if - * @timeout were negative. If the timeout is reached - * before any messages are received, %G_IO_ERROR_TIMED_OUT is returned, - * otherwise it will return the number of messages received before timing out. - * (Note: This is effectively the behaviour of `MSG_WAITFORONE` with - * recvmmsg().) - * - * To be notified when messages are available, wait for the %G_IO_IN condition. - * Note though that you may still receive %G_IO_ERROR_WOULD_BLOCK from - * g_datagram_based_receive_messages() even if you were previously notified of a - * %G_IO_IN condition. - * - * If the remote peer closes the connection, any messages queued in the - * underlying receive buffer will be returned, and subsequent calls to - * g_datagram_based_receive_messages() will return 0 (with no error set). - * - * If the connection is shut down or closed (by calling g_socket_close() or - * g_socket_shutdown() with @shutdown_read set, if it’s a #GSocket, for - * example), all calls to this function will return %G_IO_ERROR_CLOSED. - * - * On error -1 is returned and @error is set accordingly. An error will only - * be returned if zero messages could be received; otherwise the number of - * messages successfully received before the error will be returned. If - * @cancellable is cancelled, %G_IO_ERROR_CANCELLED is returned as with any - * other error. - * - * Params: - * messages = an array of #GInputMessage structs - * flags = an int containing #GSocketMsgFlags flags for the overall operation - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a %GCancellable - * - * Returns: number of messages received, or -1 on error. Note that the number - * of messages received may be smaller than @num_messages if @timeout is - * zero or positive, if the peer closed the connection, or if @num_messages - * was larger than `UIO_MAXIOV` (1024), in which case the caller may re-try - * to receive the remaining messages. - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public int receiveMessages(GInputMessage[] messages, int flags, long timeout, Cancellable cancellable); - - /** - * Send one or more data messages from @datagram_based in one go. - * - * @messages must point to an array of #GOutputMessage structs and - * @num_messages must be the length of this array. Each #GOutputMessage - * contains an address to send the data to, and a pointer to an array of - * #GOutputVector structs to describe the buffers that the data to be sent - * for each message will be gathered from. - * - * @flags modify how the message is sent. The commonly available arguments - * for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too. - * - * The other members of #GOutputMessage are treated as described in its - * documentation. - * - * If @timeout is negative the call will block until @num_messages have been - * sent, @cancellable is cancelled, or an error occurs. - * - * If @timeout is 0 the call will send up to @num_messages without blocking, - * or will return %G_IO_ERROR_WOULD_BLOCK if there is no space to send messages. - * - * If @timeout is positive the call will block on the same conditions as if - * @timeout were negative. If the timeout is reached before any messages are - * sent, %G_IO_ERROR_TIMED_OUT is returned, otherwise it will return the number - * of messages sent before timing out. - * - * To be notified when messages can be sent, wait for the %G_IO_OUT condition. - * Note though that you may still receive %G_IO_ERROR_WOULD_BLOCK from - * g_datagram_based_send_messages() even if you were previously notified of a - * %G_IO_OUT condition. (On Windows in particular, this is very common due to - * the way the underlying APIs work.) - * - * If the connection is shut down or closed (by calling g_socket_close() or - * g_socket_shutdown() with @shutdown_write set, if it’s a #GSocket, for - * example), all calls to this function will return %G_IO_ERROR_CLOSED. - * - * On error -1 is returned and @error is set accordingly. An error will only - * be returned if zero messages could be sent; otherwise the number of messages - * successfully sent before the error will be returned. If @cancellable is - * cancelled, %G_IO_ERROR_CANCELLED is returned as with any other error. - * - * Params: - * messages = an array of #GOutputMessage structs - * flags = an int containing #GSocketMsgFlags flags - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a %GCancellable - * - * Returns: number of messages sent, or -1 on error. Note that the number of - * messages sent may be smaller than @num_messages if @timeout is zero - * or positive, or if @num_messages was larger than `UIO_MAXIOV` (1024), in - * which case the caller may re-try to send the remaining messages. - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public int sendMessages(GOutputMessage[] messages, int flags, long timeout, Cancellable cancellable); -} diff --git a/generated/gtkd/gio/DatagramBasedT.d b/generated/gtkd/gio/DatagramBasedT.d deleted file mode 100644 index 2de244f20..000000000 --- a/generated/gtkd/gio/DatagramBasedT.d +++ /dev/null @@ -1,372 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DatagramBasedT; - -public import gio.Cancellable; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Source; - - -/** - * A #GDatagramBased is a networking interface for representing datagram-based - * communications. It is a more or less direct mapping of the core parts of the - * BSD socket API in a portable GObject interface. It is implemented by - * #GSocket, which wraps the UNIX socket API on UNIX and winsock2 on Windows. - * - * #GDatagramBased is entirely platform independent, and is intended to be used - * alongside higher-level networking APIs such as #GIOStream. - * - * It uses vectored scatter/gather I/O by default, allowing for many messages - * to be sent or received in a single call. Where possible, implementations of - * the interface should take advantage of vectored I/O to minimise processing - * or system calls. For example, #GSocket uses recvmmsg() and sendmmsg() where - * possible. Callers should take advantage of scatter/gather I/O (the use of - * multiple buffers per message) to avoid unnecessary copying of data to - * assemble or disassemble a message. - * - * Each #GDatagramBased operation has a timeout parameter which may be negative - * for blocking behaviour, zero for non-blocking behaviour, or positive for - * timeout behaviour. A blocking operation blocks until finished or there is an - * error. A non-blocking operation will return immediately with a - * %G_IO_ERROR_WOULD_BLOCK error if it cannot make progress. A timeout operation - * will block until the operation is complete or the timeout expires; if the - * timeout expires it will return what progress it made, or - * %G_IO_ERROR_TIMED_OUT if no progress was made. To know when a call would - * successfully run you can call g_datagram_based_condition_check() or - * g_datagram_based_condition_wait(). You can also use - * g_datagram_based_create_source() and attach it to a #GMainContext to get - * callbacks when I/O is possible. - * - * When running a non-blocking operation applications should always be able to - * handle getting a %G_IO_ERROR_WOULD_BLOCK error even when some other function - * said that I/O was possible. This can easily happen in case of a race - * condition in the application, but it can also happen for other reasons. For - * instance, on Windows a socket is always seen as writable until a write - * returns %G_IO_ERROR_WOULD_BLOCK. - * - * As with #GSocket, #GDatagramBaseds can be either connection oriented (for - * example, SCTP) or connectionless (for example, UDP). #GDatagramBaseds must be - * datagram-based, not stream-based. The interface does not cover connection - * establishment — use methods on the underlying type to establish a connection - * before sending and receiving data through the #GDatagramBased API. For - * connectionless socket types the target/source address is specified or - * received in each I/O operation. - * - * Like most other APIs in GLib, #GDatagramBased is not inherently thread safe. - * To use a #GDatagramBased concurrently from multiple threads, you must - * implement your own locking. - * - * Since: 2.48 - */ -public template DatagramBasedT(TStruct) -{ - /** Get the main Gtk struct */ - public GDatagramBased* getDatagramBasedStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDatagramBased*)getStruct(); - } - - - /** - * Checks on the readiness of @datagram_based to perform operations. The - * operations specified in @condition are checked for and masked against the - * currently-satisfied conditions on @datagram_based. The result is returned. - * - * %G_IO_IN will be set in the return value if data is available to read with - * g_datagram_based_receive_messages(), or if the connection is closed remotely - * (EOS); and if the datagram_based has not been closed locally using some - * implementation-specific method (such as g_socket_close() or - * g_socket_shutdown() with @shutdown_read set, if it’s a #GSocket). - * - * If the connection is shut down or closed (by calling g_socket_close() or - * g_socket_shutdown() with @shutdown_read set, if it’s a #GSocket, for - * example), all calls to this function will return %G_IO_ERROR_CLOSED. - * - * %G_IO_OUT will be set if it is expected that at least one byte can be sent - * using g_datagram_based_send_messages() without blocking. It will not be set - * if the datagram_based has been closed locally. - * - * %G_IO_HUP will be set if the connection has been closed locally. - * - * %G_IO_ERR will be set if there was an asynchronous error in transmitting data - * previously enqueued using g_datagram_based_send_messages(). - * - * Note that on Windows, it is possible for an operation to return - * %G_IO_ERROR_WOULD_BLOCK even immediately after - * g_datagram_based_condition_check() has claimed that the #GDatagramBased is - * ready for writing. Rather than calling g_datagram_based_condition_check() and - * then writing to the #GDatagramBased if it succeeds, it is generally better to - * simply try writing right away, and try again later if the initial attempt - * returns %G_IO_ERROR_WOULD_BLOCK. - * - * It is meaningless to specify %G_IO_ERR or %G_IO_HUP in @condition; these - * conditions will always be set in the output if they are true. Apart from - * these flags, the output is guaranteed to be masked by @condition. - * - * This call never blocks. - * - * Params: - * condition = a #GIOCondition mask to check - * - * Returns: the #GIOCondition mask of the current state - * - * Since: 2.48 - */ - public GIOCondition conditionCheck(GIOCondition condition) - { - return g_datagram_based_condition_check(getDatagramBasedStruct(), condition); - } - - /** - * Waits for up to @timeout microseconds for condition to become true on - * @datagram_based. If the condition is met, %TRUE is returned. - * - * If @cancellable is cancelled before the condition is met, or if @timeout is - * reached before the condition is met, then %FALSE is returned and @error is - * set appropriately (%G_IO_ERROR_CANCELLED or %G_IO_ERROR_TIMED_OUT). - * - * Params: - * condition = a #GIOCondition mask to wait for - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a #GCancellable - * - * Returns: %TRUE if the condition was met, %FALSE otherwise - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool conditionWait(GIOCondition condition, long timeout, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_datagram_based_condition_wait(getDatagramBasedStruct(), condition, timeout, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a #GSource that can be attached to a #GMainContext to monitor for - * the availability of the specified @condition on the #GDatagramBased. The - * #GSource keeps a reference to the @datagram_based. - * - * The callback on the source is of the #GDatagramBasedSourceFunc type. - * - * It is meaningless to specify %G_IO_ERR or %G_IO_HUP in @condition; these - * conditions will always be reported in the callback if they are true. - * - * If non-%NULL, @cancellable can be used to cancel the source, which will - * cause the source to trigger, reporting the current condition (which is - * likely 0 unless cancellation happened at the same time as a condition - * change). You can check for this in the callback using - * g_cancellable_is_cancelled(). - * - * Params: - * condition = a #GIOCondition mask to monitor - * cancellable = a #GCancellable - * - * Returns: a newly allocated #GSource - * - * Since: 2.48 - */ - public Source createSource(GIOCondition condition, Cancellable cancellable) - { - auto __p = g_datagram_based_create_source(getDatagramBasedStruct(), condition, (cancellable is null) ? null : cancellable.getCancellableStruct()); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); - } - - /** - * Receive one or more data messages from @datagram_based in one go. - * - * @messages must point to an array of #GInputMessage structs and - * @num_messages must be the length of this array. Each #GInputMessage - * contains a pointer to an array of #GInputVector structs describing the - * buffers that the data received in each message will be written to. - * - * @flags modify how all messages are received. The commonly available - * arguments for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too. These - * flags affect the overall receive operation. Flags affecting individual - * messages are returned in #GInputMessage.flags. - * - * The other members of #GInputMessage are treated as described in its - * documentation. - * - * If @timeout is negative the call will block until @num_messages have been - * received, the connection is closed remotely (EOS), @cancellable is cancelled, - * or an error occurs. - * - * If @timeout is 0 the call will return up to @num_messages without blocking, - * or %G_IO_ERROR_WOULD_BLOCK if no messages are queued in the operating system - * to be received. - * - * If @timeout is positive the call will block on the same conditions as if - * @timeout were negative. If the timeout is reached - * before any messages are received, %G_IO_ERROR_TIMED_OUT is returned, - * otherwise it will return the number of messages received before timing out. - * (Note: This is effectively the behaviour of `MSG_WAITFORONE` with - * recvmmsg().) - * - * To be notified when messages are available, wait for the %G_IO_IN condition. - * Note though that you may still receive %G_IO_ERROR_WOULD_BLOCK from - * g_datagram_based_receive_messages() even if you were previously notified of a - * %G_IO_IN condition. - * - * If the remote peer closes the connection, any messages queued in the - * underlying receive buffer will be returned, and subsequent calls to - * g_datagram_based_receive_messages() will return 0 (with no error set). - * - * If the connection is shut down or closed (by calling g_socket_close() or - * g_socket_shutdown() with @shutdown_read set, if it’s a #GSocket, for - * example), all calls to this function will return %G_IO_ERROR_CLOSED. - * - * On error -1 is returned and @error is set accordingly. An error will only - * be returned if zero messages could be received; otherwise the number of - * messages successfully received before the error will be returned. If - * @cancellable is cancelled, %G_IO_ERROR_CANCELLED is returned as with any - * other error. - * - * Params: - * messages = an array of #GInputMessage structs - * flags = an int containing #GSocketMsgFlags flags for the overall operation - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a %GCancellable - * - * Returns: number of messages received, or -1 on error. Note that the number - * of messages received may be smaller than @num_messages if @timeout is - * zero or positive, if the peer closed the connection, or if @num_messages - * was larger than `UIO_MAXIOV` (1024), in which case the caller may re-try - * to receive the remaining messages. - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public int receiveMessages(GInputMessage[] messages, int flags, long timeout, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_datagram_based_receive_messages(getDatagramBasedStruct(), messages.ptr, cast(uint)messages.length, flags, timeout, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Send one or more data messages from @datagram_based in one go. - * - * @messages must point to an array of #GOutputMessage structs and - * @num_messages must be the length of this array. Each #GOutputMessage - * contains an address to send the data to, and a pointer to an array of - * #GOutputVector structs to describe the buffers that the data to be sent - * for each message will be gathered from. - * - * @flags modify how the message is sent. The commonly available arguments - * for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too. - * - * The other members of #GOutputMessage are treated as described in its - * documentation. - * - * If @timeout is negative the call will block until @num_messages have been - * sent, @cancellable is cancelled, or an error occurs. - * - * If @timeout is 0 the call will send up to @num_messages without blocking, - * or will return %G_IO_ERROR_WOULD_BLOCK if there is no space to send messages. - * - * If @timeout is positive the call will block on the same conditions as if - * @timeout were negative. If the timeout is reached before any messages are - * sent, %G_IO_ERROR_TIMED_OUT is returned, otherwise it will return the number - * of messages sent before timing out. - * - * To be notified when messages can be sent, wait for the %G_IO_OUT condition. - * Note though that you may still receive %G_IO_ERROR_WOULD_BLOCK from - * g_datagram_based_send_messages() even if you were previously notified of a - * %G_IO_OUT condition. (On Windows in particular, this is very common due to - * the way the underlying APIs work.) - * - * If the connection is shut down or closed (by calling g_socket_close() or - * g_socket_shutdown() with @shutdown_write set, if it’s a #GSocket, for - * example), all calls to this function will return %G_IO_ERROR_CLOSED. - * - * On error -1 is returned and @error is set accordingly. An error will only - * be returned if zero messages could be sent; otherwise the number of messages - * successfully sent before the error will be returned. If @cancellable is - * cancelled, %G_IO_ERROR_CANCELLED is returned as with any other error. - * - * Params: - * messages = an array of #GOutputMessage structs - * flags = an int containing #GSocketMsgFlags flags - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a %GCancellable - * - * Returns: number of messages sent, or -1 on error. Note that the number of - * messages sent may be smaller than @num_messages if @timeout is zero - * or positive, or if @num_messages was larger than `UIO_MAXIOV` (1024), in - * which case the caller may re-try to send the remaining messages. - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public int sendMessages(GOutputMessage[] messages, int flags, long timeout, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_datagram_based_send_messages(getDatagramBasedStruct(), messages.ptr, cast(uint)messages.length, flags, timeout, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/DesktopAppInfo.d b/generated/gtkd/gio/DesktopAppInfo.d deleted file mode 100644 index 08dea5794..000000000 --- a/generated/gtkd/gio/DesktopAppInfo.d +++ /dev/null @@ -1,615 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DesktopAppInfo; - -private import gio.AppInfoIF; -private import gio.AppInfoT; -private import gio.AppLaunchContext; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.KeyFile; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GDesktopAppInfo is an implementation of #GAppInfo based on - * desktop files. - * - * Note that `` belongs to the UNIX-specific - * GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config - * file when using it. - */ -public class DesktopAppInfo : ObjectG, AppInfoIF -{ - /** the main Gtk struct */ - protected GDesktopAppInfo* gDesktopAppInfo; - - /** Get the main Gtk struct */ - public GDesktopAppInfo* getDesktopAppInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDesktopAppInfo; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gDesktopAppInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDesktopAppInfo* gDesktopAppInfo, bool ownedRef = false) - { - this.gDesktopAppInfo = gDesktopAppInfo; - super(cast(GObject*)gDesktopAppInfo, ownedRef); - } - - // add the AppInfo capabilities - mixin AppInfoT!(GDesktopAppInfo); - - /** - * Creates a new #GDesktopAppInfo. - * - * Params: - * filename = the path of a desktop file, in the GLib filename encoding - * - * Return: a new #GDesktopAppInfo or %NULL on error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static DesktopAppInfo createFromFilename(string filename) - { - auto p = g_desktop_app_info_new_from_filename(Str.toStringz(filename)); - - if(p is null) - { - throw new ConstructionException("null returned by g_desktop_app_info_new_from_filename"); - } - - return new DesktopAppInfo(p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_desktop_app_info_get_type(); - } - - /** - * Creates a new #GDesktopAppInfo based on a desktop file id. - * - * A desktop file id is the basename of the desktop file, including the - * .desktop extension. GIO is looking for a desktop file with this name - * in the `applications` subdirectories of the XDG - * data directories (i.e. the directories specified in the `XDG_DATA_HOME` - * and `XDG_DATA_DIRS` environment variables). GIO also supports the - * prefix-to-subdirectory mapping that is described in the - * [Menu Spec](http://standards.freedesktop.org/menu-spec/latest/) - * (i.e. a desktop id of kde-foo.desktop will match - * `/usr/share/applications/kde/foo.desktop`). - * - * Params: - * desktopId = the desktop file id - * - * Returns: a new #GDesktopAppInfo, or %NULL if no desktop - * file with that id exists. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string desktopId) - { - auto __p = g_desktop_app_info_new(Str.toStringz(desktopId)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDesktopAppInfo*) __p, true); - } - - /** - * Creates a new #GDesktopAppInfo. - * - * Params: - * keyFile = an opened #GKeyFile - * - * Returns: a new #GDesktopAppInfo or %NULL on error. - * - * Since: 2.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(KeyFile keyFile) - { - auto __p = g_desktop_app_info_new_from_keyfile((keyFile is null) ? null : keyFile.getKeyFileStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_keyfile"); - } - - this(cast(GDesktopAppInfo*) __p, true); - } - - /** - * Gets all applications that implement @interface. - * - * An application implements an interface if that interface is listed in - * the Implements= line of the desktop file of the application. - * - * Params: - * interface_ = the name of the interface - * - * Returns: a list of #GDesktopAppInfo - * objects. - * - * Since: 2.42 - */ - public static ListG getImplementations(string interface_) - { - auto __p = g_desktop_app_info_get_implementations(Str.toStringz(interface_)); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Searches desktop files for ones that match @search_string. - * - * The return value is an array of strvs. Each strv contains a list of - * applications that matched @search_string with an equal score. The - * outer list is sorted by score so that the first strv contains the - * best-matching applications, and so on. - * The algorithm for determining matches is undefined and may change at - * any time. - * - * None of the search results are subjected to the normal validation - * checks performed by g_desktop_app_info_new() (for example, checking that - * the executable referenced by a result exists), and so it is possible for - * g_desktop_app_info_new() to return %NULL when passed an app ID returned by - * this function. It is expected that calling code will do this when - * subsequently creating a #GDesktopAppInfo for each result. - * - * Params: - * searchString = the search string to use - * - * Returns: a - * list of strvs. Free each item with g_strfreev() and free the outer - * list with g_free(). - */ - public static string[][] search(string searchString) - { - auto retStr = g_desktop_app_info_search(Str.toStringz(searchString)); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Sets the name of the desktop that the application is running in. - * This is used by g_app_info_should_show() and - * g_desktop_app_info_get_show_in() to evaluate the - * `OnlyShowIn` and `NotShowIn` - * desktop entry fields. - * - * Should be called only once; subsequent calls are ignored. - * - * Deprecated: do not use this API. Since 2.42 the value of the - * `XDG_CURRENT_DESKTOP` environment variable will be used. - * - * Params: - * desktopEnv = a string specifying what desktop this is - */ - public static void setDesktopEnv(string desktopEnv) - { - g_desktop_app_info_set_desktop_env(Str.toStringz(desktopEnv)); - } - - /** - * Gets the user-visible display name of the "additional application - * action" specified by @action_name. - * - * This corresponds to the "Name" key within the keyfile group for the - * action. - * - * Params: - * actionName = the name of the action as from - * g_desktop_app_info_list_actions() - * - * Returns: the locale-specific action name - * - * Since: 2.38 - */ - public string getActionName(string actionName) - { - auto retStr = g_desktop_app_info_get_action_name(gDesktopAppInfo, Str.toStringz(actionName)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Looks up a boolean value in the keyfile backing @info. - * - * The @key is looked up in the "Desktop Entry" group. - * - * Params: - * key = the key to look up - * - * Returns: the boolean value, or %FALSE if the key - * is not found - * - * Since: 2.36 - */ - public bool getBoolean(string key) - { - return g_desktop_app_info_get_boolean(gDesktopAppInfo, Str.toStringz(key)) != 0; - } - - /** - * Gets the categories from the desktop file. - * - * Returns: The unparsed Categories key from the desktop file; - * i.e. no attempt is made to split it by ';' or validate it. - */ - public string getCategories() - { - return Str.toString(g_desktop_app_info_get_categories(gDesktopAppInfo)); - } - - /** - * When @info was created from a known filename, return it. In some - * situations such as the #GDesktopAppInfo returned from - * g_desktop_app_info_new_from_keyfile(), this function will return %NULL. - * - * Returns: The full path to the file for @info, - * or %NULL if not known. - * - * Since: 2.24 - */ - public string getFilename() - { - return Str.toString(g_desktop_app_info_get_filename(gDesktopAppInfo)); - } - - /** - * Gets the generic name from the desktop file. - * - * Returns: The value of the GenericName key - */ - public string getGenericName() - { - return Str.toString(g_desktop_app_info_get_generic_name(gDesktopAppInfo)); - } - - /** - * A desktop file is hidden if the Hidden key in it is - * set to True. - * - * Returns: %TRUE if hidden, %FALSE otherwise. - */ - public bool getIsHidden() - { - return g_desktop_app_info_get_is_hidden(gDesktopAppInfo) != 0; - } - - /** - * Gets the keywords from the desktop file. - * - * Returns: The value of the Keywords key - * - * Since: 2.32 - */ - public string[] getKeywords() - { - return Str.toStringArray(g_desktop_app_info_get_keywords(gDesktopAppInfo)); - } - - /** - * Looks up a localized string value in the keyfile backing @info - * translated to the current locale. - * - * The @key is looked up in the "Desktop Entry" group. - * - * Params: - * key = the key to look up - * - * Returns: a newly allocated string, or %NULL if the key - * is not found - * - * Since: 2.56 - */ - public string getLocaleString(string key) - { - auto retStr = g_desktop_app_info_get_locale_string(gDesktopAppInfo, Str.toStringz(key)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the value of the NoDisplay key, which helps determine if the - * application info should be shown in menus. See - * #G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY and g_app_info_should_show(). - * - * Returns: The value of the NoDisplay key - * - * Since: 2.30 - */ - public bool getNodisplay() - { - return g_desktop_app_info_get_nodisplay(gDesktopAppInfo) != 0; - } - - /** - * Checks if the application info should be shown in menus that list available - * applications for a specific name of the desktop, based on the - * `OnlyShowIn` and `NotShowIn` keys. - * - * @desktop_env should typically be given as %NULL, in which case the - * `XDG_CURRENT_DESKTOP` environment variable is consulted. If you want - * to override the default mechanism then you may specify @desktop_env, - * but this is not recommended. - * - * Note that g_app_info_should_show() for @info will include this check (with - * %NULL for @desktop_env) as well as additional checks. - * - * Params: - * desktopEnv = a string specifying a desktop name - * - * Returns: %TRUE if the @info should be shown in @desktop_env according to the - * `OnlyShowIn` and `NotShowIn` keys, %FALSE - * otherwise. - * - * Since: 2.30 - */ - public bool getShowIn(string desktopEnv) - { - return g_desktop_app_info_get_show_in(gDesktopAppInfo, Str.toStringz(desktopEnv)) != 0; - } - - /** - * Retrieves the StartupWMClass field from @info. This represents the - * WM_CLASS property of the main window of the application, if launched - * through @info. - * - * Returns: the startup WM class, or %NULL if none is set - * in the desktop file. - * - * Since: 2.34 - */ - public string getStartupWmClass() - { - return Str.toString(g_desktop_app_info_get_startup_wm_class(gDesktopAppInfo)); - } - - /** - * Looks up a string value in the keyfile backing @info. - * - * The @key is looked up in the "Desktop Entry" group. - * - * Params: - * key = the key to look up - * - * Returns: a newly allocated string, or %NULL if the key - * is not found - * - * Since: 2.36 - */ - public string getString(string key) - { - auto retStr = g_desktop_app_info_get_string(gDesktopAppInfo, Str.toStringz(key)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Looks up a string list value in the keyfile backing @info. - * - * The @key is looked up in the "Desktop Entry" group. - * - * Params: - * key = the key to look up - * - * Returns: a %NULL-terminated string array or %NULL if the specified - * key cannot be found. The array should be freed with g_strfreev(). - * - * Since: 2.60 - */ - public string[] getStringList(string key) - { - size_t length; - - auto retStr = g_desktop_app_info_get_string_list(gDesktopAppInfo, Str.toStringz(key), &length); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr, length); - } - - /** - * Returns whether @key exists in the "Desktop Entry" group - * of the keyfile backing @info. - * - * Params: - * key = the key to look up - * - * Returns: %TRUE if the @key exists - * - * Since: 2.36 - */ - public bool hasKey(string key) - { - return g_desktop_app_info_has_key(gDesktopAppInfo, Str.toStringz(key)) != 0; - } - - /** - * Activates the named application action. - * - * You may only call this function on action names that were - * returned from g_desktop_app_info_list_actions(). - * - * Note that if the main entry of the desktop file indicates that the - * application supports startup notification, and @launch_context is - * non-%NULL, then startup notification will be used when activating the - * action (and as such, invocation of the action on the receiving side - * must signal the end of startup notification when it is completed). - * This is the expected behaviour of applications declaring additional - * actions, as per the desktop file specification. - * - * As with g_app_info_launch() there is no way to detect failures that - * occur while using this function. - * - * Params: - * actionName = the name of the action as from - * g_desktop_app_info_list_actions() - * launchContext = a #GAppLaunchContext - * - * Since: 2.38 - */ - public void launchAction(string actionName, AppLaunchContext launchContext) - { - g_desktop_app_info_launch_action(gDesktopAppInfo, Str.toStringz(actionName), (launchContext is null) ? null : launchContext.getAppLaunchContextStruct()); - } - - /** - * This function performs the equivalent of g_app_info_launch_uris(), - * but is intended primarily for operating system components that - * launch applications. Ordinary applications should use - * g_app_info_launch_uris(). - * - * If the application is launched via GSpawn, then @spawn_flags, @user_setup - * and @user_setup_data are used for the call to g_spawn_async(). - * Additionally, @pid_callback (with @pid_callback_data) will be called to - * inform about the PID of the created process. See g_spawn_async_with_pipes() - * for information on certain parameter conditions that can enable an - * optimized posix_spawn() codepath to be used. - * - * If application launching occurs via some other mechanism (eg: D-Bus - * activation) then @spawn_flags, @user_setup, @user_setup_data, - * @pid_callback and @pid_callback_data are ignored. - * - * Params: - * uris = List of URIs - * launchContext = a #GAppLaunchContext - * spawnFlags = #GSpawnFlags, used for each process - * userSetup = a #GSpawnChildSetupFunc, used once - * for each process. - * userSetupData = User data for @user_setup - * pidCallback = Callback for child processes - * pidCallbackData = User data for @callback - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool launchUrisAsManager(ListG uris, AppLaunchContext launchContext, GSpawnFlags spawnFlags, GSpawnChildSetupFunc userSetup, void* userSetupData, GDesktopAppLaunchCallback pidCallback, void* pidCallbackData) - { - GError* err = null; - - auto __p = g_desktop_app_info_launch_uris_as_manager(gDesktopAppInfo, (uris is null) ? null : uris.getListGStruct(), (launchContext is null) ? null : launchContext.getAppLaunchContextStruct(), spawnFlags, userSetup, userSetupData, pidCallback, pidCallbackData, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Equivalent to g_desktop_app_info_launch_uris_as_manager() but allows - * you to pass in file descriptors for the stdin, stdout and stderr streams - * of the launched process. - * - * If application launching occurs via some non-spawn mechanism (e.g. D-Bus - * activation) then @stdin_fd, @stdout_fd and @stderr_fd are ignored. - * - * Params: - * uris = List of URIs - * launchContext = a #GAppLaunchContext - * spawnFlags = #GSpawnFlags, used for each process - * userSetup = a #GSpawnChildSetupFunc, used once - * for each process. - * userSetupData = User data for @user_setup - * pidCallback = Callback for child processes - * pidCallbackData = User data for @callback - * stdinFd = file descriptor to use for child's stdin, or -1 - * stdoutFd = file descriptor to use for child's stdout, or -1 - * stderrFd = file descriptor to use for child's stderr, or -1 - * - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Since: 2.58 - * - * Throws: GException on failure. - */ - public bool launchUrisAsManagerWithFds(ListG uris, AppLaunchContext launchContext, GSpawnFlags spawnFlags, GSpawnChildSetupFunc userSetup, void* userSetupData, GDesktopAppLaunchCallback pidCallback, void* pidCallbackData, int stdinFd, int stdoutFd, int stderrFd) - { - GError* err = null; - - auto __p = g_desktop_app_info_launch_uris_as_manager_with_fds(gDesktopAppInfo, (uris is null) ? null : uris.getListGStruct(), (launchContext is null) ? null : launchContext.getAppLaunchContextStruct(), spawnFlags, userSetup, userSetupData, pidCallback, pidCallbackData, stdinFd, stdoutFd, stderrFd, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Returns the list of "additional application actions" supported on the - * desktop file, as per the desktop file specification. - * - * As per the specification, this is the list of actions that are - * explicitly listed in the "Actions" key of the [Desktop Entry] group. - * - * Returns: a list of strings, always non-%NULL - * - * Since: 2.38 - */ - public string[] listActions() - { - return Str.toStringArray(g_desktop_app_info_list_actions(gDesktopAppInfo)); - } -} diff --git a/generated/gtkd/gio/DesktopAppInfoLookupIF.d b/generated/gtkd/gio/DesktopAppInfoLookupIF.d deleted file mode 100644 index c1e2f01c8..000000000 --- a/generated/gtkd/gio/DesktopAppInfoLookupIF.d +++ /dev/null @@ -1,75 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DesktopAppInfoLookupIF; - -private import gio.AppInfoIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GDesktopAppInfoLookup is an opaque data structure and can only be accessed - * using the following functions. - * - * Deprecated: The #GDesktopAppInfoLookup interface is deprecated and - * unused by GIO. - */ -public interface DesktopAppInfoLookupIF{ - /** Get the main Gtk struct */ - public GDesktopAppInfoLookup* getDesktopAppInfoLookupStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_desktop_app_info_lookup_get_type(); - } - - /** - * Gets the default application for launching applications - * using this URI scheme for a particular #GDesktopAppInfoLookup - * implementation. - * - * The #GDesktopAppInfoLookup interface and this function is used - * to implement g_app_info_get_default_for_uri_scheme() backends - * in a GIO module. There is no reason for applications to use it - * directly. Applications should use g_app_info_get_default_for_uri_scheme(). - * - * Deprecated: The #GDesktopAppInfoLookup interface is deprecated and - * unused by GIO. - * - * Params: - * uriScheme = a string containing a URI scheme. - * - * Returns: #GAppInfo for given @uri_scheme or - * %NULL on error. - */ - public AppInfoIF getDefaultForUriScheme(string uriScheme); -} diff --git a/generated/gtkd/gio/DesktopAppInfoLookupT.d b/generated/gtkd/gio/DesktopAppInfoLookupT.d deleted file mode 100644 index 84c39bcf8..000000000 --- a/generated/gtkd/gio/DesktopAppInfoLookupT.d +++ /dev/null @@ -1,82 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DesktopAppInfoLookupT; - -public import gio.AppInfoIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.Str; -public import gobject.ObjectG; - - -/** - * #GDesktopAppInfoLookup is an opaque data structure and can only be accessed - * using the following functions. - * - * Deprecated: The #GDesktopAppInfoLookup interface is deprecated and - * unused by GIO. - */ -public template DesktopAppInfoLookupT(TStruct) -{ - /** Get the main Gtk struct */ - public GDesktopAppInfoLookup* getDesktopAppInfoLookupStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDesktopAppInfoLookup*)getStruct(); - } - - - /** - * Gets the default application for launching applications - * using this URI scheme for a particular #GDesktopAppInfoLookup - * implementation. - * - * The #GDesktopAppInfoLookup interface and this function is used - * to implement g_app_info_get_default_for_uri_scheme() backends - * in a GIO module. There is no reason for applications to use it - * directly. Applications should use g_app_info_get_default_for_uri_scheme(). - * - * Deprecated: The #GDesktopAppInfoLookup interface is deprecated and - * unused by GIO. - * - * Params: - * uriScheme = a string containing a URI scheme. - * - * Returns: #GAppInfo for given @uri_scheme or - * %NULL on error. - */ - public AppInfoIF getDefaultForUriScheme(string uriScheme) - { - auto __p = g_desktop_app_info_lookup_get_default_for_uri_scheme(getDesktopAppInfoLookupStruct(), Str.toStringz(uriScheme)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoIF)(cast(GAppInfo*) __p, true); - } -} diff --git a/generated/gtkd/gio/DriveIF.d b/generated/gtkd/gio/DriveIF.d deleted file mode 100644 index 61437bc5c..000000000 --- a/generated/gtkd/gio/DriveIF.d +++ /dev/null @@ -1,432 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DriveIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.IconIF; -private import gio.MountOperation; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GDrive - this represent a piece of hardware connected to the machine. - * It's generally only created for removable hardware or hardware with - * removable media. - * - * #GDrive is a container class for #GVolume objects that stem from - * the same piece of media. As such, #GDrive abstracts a drive with - * (or without) removable media and provides operations for querying - * whether media is available, determining whether media change is - * automatically detected and ejecting the media. - * - * If the #GDrive reports that media isn't automatically detected, one - * can poll for media; typically one should not do this periodically - * as a poll for media operation is potentially expensive and may - * spin up the drive creating noise. - * - * #GDrive supports starting and stopping drives with authentication - * support for the former. This can be used to support a diverse set - * of use cases including connecting/disconnecting iSCSI devices, - * powering down external disk enclosures and starting/stopping - * multi-disk devices such as RAID devices. Note that the actual - * semantics and side-effects of starting/stopping a #GDrive may vary - * according to implementation. To choose the correct verbs in e.g. a - * file manager, use g_drive_get_start_stop_type(). - * - * For porting from GnomeVFS note that there is no equivalent of - * #GDrive in that API. - */ -public interface DriveIF{ - /** Get the main Gtk struct */ - public GDrive* getDriveStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_drive_get_type(); - } - - /** - * Checks if a drive can be ejected. - * - * Returns: %TRUE if the @drive can be ejected, %FALSE otherwise. - */ - public bool canEject(); - - /** - * Checks if a drive can be polled for media changes. - * - * Returns: %TRUE if the @drive can be polled for media changes, - * %FALSE otherwise. - */ - public bool canPollForMedia(); - - /** - * Checks if a drive can be started. - * - * Returns: %TRUE if the @drive can be started, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool canStart(); - - /** - * Checks if a drive can be started degraded. - * - * Returns: %TRUE if the @drive can be started degraded, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool canStartDegraded(); - - /** - * Checks if a drive can be stopped. - * - * Returns: %TRUE if the @drive can be stopped, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool canStop(); - - /** - * Asynchronously ejects a drive. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_eject_finish() to obtain the - * result of the operation. - * - * Deprecated: Use g_drive_eject_with_operation() instead. - * - * Params: - * flags = flags affecting the unmount if required for eject - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - */ - public void eject(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes ejecting a drive. - * - * Deprecated: Use g_drive_eject_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been ejected successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool ejectFinish(AsyncResultIF result); - - /** - * Ejects a drive. This is an asynchronous operation, and is - * finished by calling g_drive_eject_with_operation_finish() with the @drive - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the unmount if required for eject - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - * - * Since: 2.22 - */ - public void ejectWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes ejecting a drive. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive was successfully ejected. %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectWithOperationFinish(AsyncResultIF result); - - /** - * Gets the kinds of identifiers that @drive has. - * Use g_drive_get_identifier() to obtain the identifiers - * themselves. - * - * Returns: a %NULL-terminated - * array of strings containing kinds of identifiers. Use g_strfreev() - * to free. - */ - public string[] enumerateIdentifiers(); - - /** - * Gets the icon for @drive. - * - * Returns: #GIcon for the @drive. - * Free the returned object with g_object_unref(). - */ - public IconIF getIcon(); - - /** - * Gets the identifier of the given kind for @drive. The only - * identifier currently available is - * #G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE. - * - * Params: - * kind = the kind of identifier to return - * - * Returns: a newly allocated string containing the - * requested identifier, or %NULL if the #GDrive - * doesn't have this kind of identifier. - */ - public string getIdentifier(string kind); - - /** - * Gets the name of @drive. - * - * Returns: a string containing @drive's name. The returned - * string should be freed when no longer needed. - */ - public string getName(); - - /** - * Gets the sort key for @drive, if any. - * - * Returns: Sorting key for @drive or %NULL if no such key is available. - * - * Since: 2.32 - */ - public string getSortKey(); - - /** - * Gets a hint about how a drive can be started/stopped. - * - * Returns: A value from the #GDriveStartStopType enumeration. - * - * Since: 2.22 - */ - public GDriveStartStopType getStartStopType(); - - /** - * Gets the icon for @drive. - * - * Returns: symbolic #GIcon for the @drive. - * Free the returned object with g_object_unref(). - * - * Since: 2.34 - */ - public IconIF getSymbolicIcon(); - - /** - * Get a list of mountable volumes for @drive. - * - * The returned list should be freed with g_list_free(), after - * its elements have been unreffed with g_object_unref(). - * - * Returns: #GList containing any #GVolume objects on the given @drive. - */ - public ListG getVolumes(); - - /** - * Checks if the @drive has media. Note that the OS may not be polling - * the drive for media changes; see g_drive_is_media_check_automatic() - * for more details. - * - * Returns: %TRUE if @drive has media, %FALSE otherwise. - */ - public bool hasMedia(); - - /** - * Check if @drive has any mountable volumes. - * - * Returns: %TRUE if the @drive contains volumes, %FALSE otherwise. - */ - public bool hasVolumes(); - - /** - * Checks if @drive is capable of automatically detecting media changes. - * - * Returns: %TRUE if the @drive is capable of automatically detecting - * media changes, %FALSE otherwise. - */ - public bool isMediaCheckAutomatic(); - - /** - * Checks if the @drive supports removable media. - * - * Returns: %TRUE if @drive supports removable media, %FALSE otherwise. - */ - public bool isMediaRemovable(); - - /** - * Checks if the #GDrive and/or its media is considered removable by the user. - * See g_drive_is_media_removable(). - * - * Returns: %TRUE if @drive and/or its media is considered removable, %FALSE otherwise. - * - * Since: 2.50 - */ - public bool isRemovable(); - - /** - * Asynchronously polls @drive to see if media has been inserted or removed. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_poll_for_media_finish() to obtain the - * result of the operation. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - */ - public void pollForMedia(Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an operation started with g_drive_poll_for_media() on a drive. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been poll_for_mediaed successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool pollForMediaFinish(AsyncResultIF result); - - /** - * Asynchronously starts a drive. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_start_finish() to obtain the - * result of the operation. - * - * Params: - * flags = flags affecting the start operation. - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - * - * Since: 2.22 - */ - public void start(GDriveStartFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes starting a drive. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been started successfully, - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool startFinish(AsyncResultIF result); - - /** - * Asynchronously stops a drive. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_stop_finish() to obtain the - * result of the operation. - * - * Params: - * flags = flags affecting the unmount if required for stopping. - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - * - * Since: 2.22 - */ - public void stop(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes stopping a drive. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been stopped successfully, - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool stopFinish(AsyncResultIF result); - - /** - * Emitted when the drive's state has changed. - */ - gulong addOnChanged(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * This signal is emitted when the #GDrive have been - * disconnected. If the recipient is holding references to the - * object they should release them so the object can be - * finalized. - */ - gulong addOnDisconnected(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Emitted when the physical eject button (if any) of a drive has - * been pressed. - */ - gulong addOnEjectButton(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * Emitted when the physical stop button (if any) of a drive has - * been pressed. - * - * Since: 2.22 - */ - gulong addOnStopButton(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/DriveT.d b/generated/gtkd/gio/DriveT.d deleted file mode 100644 index 3d0abe168..000000000 --- a/generated/gtkd/gio/DriveT.d +++ /dev/null @@ -1,600 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DriveT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.IconIF; -public import gio.MountOperation; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.ListG; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #GDrive - this represent a piece of hardware connected to the machine. - * It's generally only created for removable hardware or hardware with - * removable media. - * - * #GDrive is a container class for #GVolume objects that stem from - * the same piece of media. As such, #GDrive abstracts a drive with - * (or without) removable media and provides operations for querying - * whether media is available, determining whether media change is - * automatically detected and ejecting the media. - * - * If the #GDrive reports that media isn't automatically detected, one - * can poll for media; typically one should not do this periodically - * as a poll for media operation is potentially expensive and may - * spin up the drive creating noise. - * - * #GDrive supports starting and stopping drives with authentication - * support for the former. This can be used to support a diverse set - * of use cases including connecting/disconnecting iSCSI devices, - * powering down external disk enclosures and starting/stopping - * multi-disk devices such as RAID devices. Note that the actual - * semantics and side-effects of starting/stopping a #GDrive may vary - * according to implementation. To choose the correct verbs in e.g. a - * file manager, use g_drive_get_start_stop_type(). - * - * For porting from GnomeVFS note that there is no equivalent of - * #GDrive in that API. - */ -public template DriveT(TStruct) -{ - /** Get the main Gtk struct */ - public GDrive* getDriveStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDrive*)getStruct(); - } - - - /** - * Checks if a drive can be ejected. - * - * Returns: %TRUE if the @drive can be ejected, %FALSE otherwise. - */ - public bool canEject() - { - return g_drive_can_eject(getDriveStruct()) != 0; - } - - /** - * Checks if a drive can be polled for media changes. - * - * Returns: %TRUE if the @drive can be polled for media changes, - * %FALSE otherwise. - */ - public bool canPollForMedia() - { - return g_drive_can_poll_for_media(getDriveStruct()) != 0; - } - - /** - * Checks if a drive can be started. - * - * Returns: %TRUE if the @drive can be started, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool canStart() - { - return g_drive_can_start(getDriveStruct()) != 0; - } - - /** - * Checks if a drive can be started degraded. - * - * Returns: %TRUE if the @drive can be started degraded, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool canStartDegraded() - { - return g_drive_can_start_degraded(getDriveStruct()) != 0; - } - - /** - * Checks if a drive can be stopped. - * - * Returns: %TRUE if the @drive can be stopped, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool canStop() - { - return g_drive_can_stop(getDriveStruct()) != 0; - } - - /** - * Asynchronously ejects a drive. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_eject_finish() to obtain the - * result of the operation. - * - * Deprecated: Use g_drive_eject_with_operation() instead. - * - * Params: - * flags = flags affecting the unmount if required for eject - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - */ - public void eject(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_drive_eject(getDriveStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes ejecting a drive. - * - * Deprecated: Use g_drive_eject_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been ejected successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool ejectFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_drive_eject_finish(getDriveStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Ejects a drive. This is an asynchronous operation, and is - * finished by calling g_drive_eject_with_operation_finish() with the @drive - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the unmount if required for eject - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - * - * Since: 2.22 - */ - public void ejectWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_drive_eject_with_operation(getDriveStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes ejecting a drive. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive was successfully ejected. %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectWithOperationFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_drive_eject_with_operation_finish(getDriveStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the kinds of identifiers that @drive has. - * Use g_drive_get_identifier() to obtain the identifiers - * themselves. - * - * Returns: a %NULL-terminated - * array of strings containing kinds of identifiers. Use g_strfreev() - * to free. - */ - public string[] enumerateIdentifiers() - { - auto retStr = g_drive_enumerate_identifiers(getDriveStruct()); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Gets the icon for @drive. - * - * Returns: #GIcon for the @drive. - * Free the returned object with g_object_unref(). - */ - public IconIF getIcon() - { - auto __p = g_drive_get_icon(getDriveStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Gets the identifier of the given kind for @drive. The only - * identifier currently available is - * #G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE. - * - * Params: - * kind = the kind of identifier to return - * - * Returns: a newly allocated string containing the - * requested identifier, or %NULL if the #GDrive - * doesn't have this kind of identifier. - */ - public string getIdentifier(string kind) - { - auto retStr = g_drive_get_identifier(getDriveStruct(), Str.toStringz(kind)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the name of @drive. - * - * Returns: a string containing @drive's name. The returned - * string should be freed when no longer needed. - */ - public string getName() - { - auto retStr = g_drive_get_name(getDriveStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the sort key for @drive, if any. - * - * Returns: Sorting key for @drive or %NULL if no such key is available. - * - * Since: 2.32 - */ - public string getSortKey() - { - return Str.toString(g_drive_get_sort_key(getDriveStruct())); - } - - /** - * Gets a hint about how a drive can be started/stopped. - * - * Returns: A value from the #GDriveStartStopType enumeration. - * - * Since: 2.22 - */ - public GDriveStartStopType getStartStopType() - { - return g_drive_get_start_stop_type(getDriveStruct()); - } - - /** - * Gets the icon for @drive. - * - * Returns: symbolic #GIcon for the @drive. - * Free the returned object with g_object_unref(). - * - * Since: 2.34 - */ - public IconIF getSymbolicIcon() - { - auto __p = g_drive_get_symbolic_icon(getDriveStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Get a list of mountable volumes for @drive. - * - * The returned list should be freed with g_list_free(), after - * its elements have been unreffed with g_object_unref(). - * - * Returns: #GList containing any #GVolume objects on the given @drive. - */ - public ListG getVolumes() - { - auto __p = g_drive_get_volumes(getDriveStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Checks if the @drive has media. Note that the OS may not be polling - * the drive for media changes; see g_drive_is_media_check_automatic() - * for more details. - * - * Returns: %TRUE if @drive has media, %FALSE otherwise. - */ - public bool hasMedia() - { - return g_drive_has_media(getDriveStruct()) != 0; - } - - /** - * Check if @drive has any mountable volumes. - * - * Returns: %TRUE if the @drive contains volumes, %FALSE otherwise. - */ - public bool hasVolumes() - { - return g_drive_has_volumes(getDriveStruct()) != 0; - } - - /** - * Checks if @drive is capable of automatically detecting media changes. - * - * Returns: %TRUE if the @drive is capable of automatically detecting - * media changes, %FALSE otherwise. - */ - public bool isMediaCheckAutomatic() - { - return g_drive_is_media_check_automatic(getDriveStruct()) != 0; - } - - /** - * Checks if the @drive supports removable media. - * - * Returns: %TRUE if @drive supports removable media, %FALSE otherwise. - */ - public bool isMediaRemovable() - { - return g_drive_is_media_removable(getDriveStruct()) != 0; - } - - /** - * Checks if the #GDrive and/or its media is considered removable by the user. - * See g_drive_is_media_removable(). - * - * Returns: %TRUE if @drive and/or its media is considered removable, %FALSE otherwise. - * - * Since: 2.50 - */ - public bool isRemovable() - { - return g_drive_is_removable(getDriveStruct()) != 0; - } - - /** - * Asynchronously polls @drive to see if media has been inserted or removed. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_poll_for_media_finish() to obtain the - * result of the operation. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - */ - public void pollForMedia(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_drive_poll_for_media(getDriveStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an operation started with g_drive_poll_for_media() on a drive. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been poll_for_mediaed successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool pollForMediaFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_drive_poll_for_media_finish(getDriveStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously starts a drive. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_start_finish() to obtain the - * result of the operation. - * - * Params: - * flags = flags affecting the start operation. - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - * - * Since: 2.22 - */ - public void start(GDriveStartFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_drive_start(getDriveStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes starting a drive. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been started successfully, - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool startFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_drive_start_finish(getDriveStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously stops a drive. - * - * When the operation is finished, @callback will be called. - * You can then call g_drive_stop_finish() to obtain the - * result of the operation. - * - * Params: - * flags = flags affecting the unmount if required for stopping. - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data to pass to @callback - * - * Since: 2.22 - */ - public void stop(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_drive_stop(getDriveStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes stopping a drive. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the drive has been stopped successfully, - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool stopFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_drive_stop_finish(getDriveStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Emitted when the drive's state has changed. - */ - gulong addOnChanged(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This signal is emitted when the #GDrive have been - * disconnected. If the recipient is holding references to the - * object they should release them so the object can be - * finalized. - */ - gulong addOnDisconnected(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "disconnected", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the physical eject button (if any) of a drive has - * been pressed. - */ - gulong addOnEjectButton(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "eject-button", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the physical stop button (if any) of a drive has - * been pressed. - * - * Since: 2.22 - */ - gulong addOnStopButton(void delegate(DriveIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "stop-button", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DtlsClientConnectionIF.d b/generated/gtkd/gio/DtlsClientConnectionIF.d deleted file mode 100644 index fb4c213fe..000000000 --- a/generated/gtkd/gio/DtlsClientConnectionIF.d +++ /dev/null @@ -1,119 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DtlsClientConnectionIF; - -private import gio.DatagramBasedIF; -private import gio.SocketConnectableIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import gobject.ObjectG; - - -/** - * #GDtlsClientConnection is the client-side subclass of - * #GDtlsConnection, representing a client-side DTLS connection. - * - * Since: 2.48 - */ -public interface DtlsClientConnectionIF{ - /** Get the main Gtk struct */ - public GDtlsClientConnection* getDtlsClientConnectionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_dtls_client_connection_get_type(); - } - - /** - * Gets the list of distinguished names of the Certificate Authorities - * that the server will accept certificates from. This will be set - * during the TLS handshake if the server requests a certificate. - * Otherwise, it will be %NULL. - * - * Each item in the list is a #GByteArray which contains the complete - * subject DN of the certificate authority. - * - * Returns: the list of - * CA DNs. You should unref each element with g_byte_array_unref() and then - * the free the list with g_list_free(). - * - * Since: 2.48 - */ - public ListG getAcceptedCas(); - - /** - * Gets @conn's expected server identity - * - * Returns: a #GSocketConnectable describing the - * expected server identity, or %NULL if the expected identity is not - * known. - * - * Since: 2.48 - */ - public SocketConnectableIF getServerIdentity(); - - /** - * Gets @conn's validation flags - * - * Returns: the validation flags - * - * Since: 2.48 - */ - public GTlsCertificateFlags getValidationFlags(); - - /** - * Sets @conn's expected server identity, which is used both to tell - * servers on virtual hosts which certificate to present, and also - * to let @conn know what name to look for in the certificate when - * performing %G_TLS_CERTIFICATE_BAD_IDENTITY validation, if enabled. - * - * Params: - * identity = a #GSocketConnectable describing the expected server identity - * - * Since: 2.48 - */ - public void setServerIdentity(SocketConnectableIF identity); - - /** - * Sets @conn's validation flags, to override the default set of - * checks performed when validating a server certificate. By default, - * %G_TLS_CERTIFICATE_VALIDATE_ALL is used. - * - * Params: - * flags = the #GTlsCertificateFlags to use - * - * Since: 2.48 - */ - public void setValidationFlags(GTlsCertificateFlags flags); -} diff --git a/generated/gtkd/gio/DtlsClientConnectionT.d b/generated/gtkd/gio/DtlsClientConnectionT.d deleted file mode 100644 index 4591bcb8e..000000000 --- a/generated/gtkd/gio/DtlsClientConnectionT.d +++ /dev/null @@ -1,145 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DtlsClientConnectionT; - -public import gio.DatagramBasedIF; -public import gio.SocketConnectableIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import glib.ListG; -public import gobject.ObjectG; - - -/** - * #GDtlsClientConnection is the client-side subclass of - * #GDtlsConnection, representing a client-side DTLS connection. - * - * Since: 2.48 - */ -public template DtlsClientConnectionT(TStruct) -{ - /** Get the main Gtk struct */ - public GDtlsClientConnection* getDtlsClientConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDtlsClientConnection*)getStruct(); - } - - - /** - * Gets the list of distinguished names of the Certificate Authorities - * that the server will accept certificates from. This will be set - * during the TLS handshake if the server requests a certificate. - * Otherwise, it will be %NULL. - * - * Each item in the list is a #GByteArray which contains the complete - * subject DN of the certificate authority. - * - * Returns: the list of - * CA DNs. You should unref each element with g_byte_array_unref() and then - * the free the list with g_list_free(). - * - * Since: 2.48 - */ - public ListG getAcceptedCas() - { - auto __p = g_dtls_client_connection_get_accepted_cas(getDtlsClientConnectionStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets @conn's expected server identity - * - * Returns: a #GSocketConnectable describing the - * expected server identity, or %NULL if the expected identity is not - * known. - * - * Since: 2.48 - */ - public SocketConnectableIF getServerIdentity() - { - auto __p = g_dtls_client_connection_get_server_identity(getDtlsClientConnectionStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnectableIF)(cast(GSocketConnectable*) __p); - } - - /** - * Gets @conn's validation flags - * - * Returns: the validation flags - * - * Since: 2.48 - */ - public GTlsCertificateFlags getValidationFlags() - { - return g_dtls_client_connection_get_validation_flags(getDtlsClientConnectionStruct()); - } - - /** - * Sets @conn's expected server identity, which is used both to tell - * servers on virtual hosts which certificate to present, and also - * to let @conn know what name to look for in the certificate when - * performing %G_TLS_CERTIFICATE_BAD_IDENTITY validation, if enabled. - * - * Params: - * identity = a #GSocketConnectable describing the expected server identity - * - * Since: 2.48 - */ - public void setServerIdentity(SocketConnectableIF identity) - { - g_dtls_client_connection_set_server_identity(getDtlsClientConnectionStruct(), (identity is null) ? null : identity.getSocketConnectableStruct()); - } - - /** - * Sets @conn's validation flags, to override the default set of - * checks performed when validating a server certificate. By default, - * %G_TLS_CERTIFICATE_VALIDATE_ALL is used. - * - * Params: - * flags = the #GTlsCertificateFlags to use - * - * Since: 2.48 - */ - public void setValidationFlags(GTlsCertificateFlags flags) - { - g_dtls_client_connection_set_validation_flags(getDtlsClientConnectionStruct(), flags); - } -} diff --git a/generated/gtkd/gio/DtlsConnectionIF.d b/generated/gtkd/gio/DtlsConnectionIF.d deleted file mode 100644 index d0f377399..000000000 --- a/generated/gtkd/gio/DtlsConnectionIF.d +++ /dev/null @@ -1,589 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DtlsConnectionIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.TlsCertificate; -private import gio.TlsDatabase; -private import gio.TlsInteraction; -private import gio.c.functions; -public import gio.c.types; -private import glib.ByteArray; -private import glib.ErrorG; -private import glib.GException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GDtlsConnection is the base DTLS connection class type, which wraps - * a #GDatagramBased and provides DTLS encryption on top of it. Its - * subclasses, #GDtlsClientConnection and #GDtlsServerConnection, - * implement client-side and server-side DTLS, respectively. - * - * For TLS support, see #GTlsConnection. - * - * As DTLS is datagram based, #GDtlsConnection implements #GDatagramBased, - * presenting a datagram-socket-like API for the encrypted connection. This - * operates over a base datagram connection, which is also a #GDatagramBased - * (#GDtlsConnection:base-socket). - * - * To close a DTLS connection, use g_dtls_connection_close(). - * - * Neither #GDtlsServerConnection or #GDtlsClientConnection set the peer address - * on their base #GDatagramBased if it is a #GSocket — it is up to the caller to - * do that if they wish. If they do not, and g_socket_close() is called on the - * base socket, the #GDtlsConnection will not raise a %G_IO_ERROR_NOT_CONNECTED - * error on further I/O. - * - * Since: 2.48 - */ -public interface DtlsConnectionIF{ - /** Get the main Gtk struct */ - public GDtlsConnection* getDtlsConnectionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_dtls_connection_get_type(); - } - - /** - * Close the DTLS connection. This is equivalent to calling - * g_dtls_connection_shutdown() to shut down both sides of the connection. - * - * Closing a #GDtlsConnection waits for all buffered but untransmitted data to - * be sent before it completes. It then sends a `close_notify` DTLS alert to the - * peer and may wait for a `close_notify` to be received from the peer. It does - * not close the underlying #GDtlsConnection:base-socket; that must be closed - * separately. - * - * Once @conn is closed, all other operations will return %G_IO_ERROR_CLOSED. - * Closing a #GDtlsConnection multiple times will not return an error. - * - * #GDtlsConnections will be automatically closed when the last reference is - * dropped, but you might want to call this function to make sure resources are - * released as early as possible. - * - * If @cancellable is cancelled, the #GDtlsConnection may be left - * partially-closed and any pending untransmitted data may be lost. Call - * g_dtls_connection_close() again to complete closing the #GDtlsConnection. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE on success, %FALSE otherwise - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool close(Cancellable cancellable); - - /** - * Asynchronously close the DTLS connection. See g_dtls_connection_close() for - * more information. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the close operation is complete - * userData = the data to pass to the callback function - * - * Since: 2.48 - */ - public void closeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finish an asynchronous TLS close operation. See g_dtls_connection_close() - * for more information. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool closeFinish(AsyncResultIF result); - - /** - * Used by #GDtlsConnection implementations to emit the - * #GDtlsConnection::accept-certificate signal. - * - * Params: - * peerCert = the peer's #GTlsCertificate - * errors = the problems with @peer_cert - * - * Returns: %TRUE if one of the signal handlers has returned - * %TRUE to accept @peer_cert - * - * Since: 2.48 - */ - public bool emitAcceptCertificate(TlsCertificate peerCert, GTlsCertificateFlags errors); - - /** - * Gets @conn's certificate, as set by - * g_dtls_connection_set_certificate(). - * - * Returns: @conn's certificate, or %NULL - * - * Since: 2.48 - */ - public TlsCertificate getCertificate(); - - /** - * Query the TLS backend for TLS channel binding data of @type for @conn. - * - * This call retrieves TLS channel binding data as specified in RFC - * [5056](https://tools.ietf.org/html/rfc5056), RFC - * [5929](https://tools.ietf.org/html/rfc5929), and related RFCs. The - * binding data is returned in @data. The @data is resized by the callee - * using #GByteArray buffer management and will be freed when the @data - * is destroyed by g_byte_array_unref(). If @data is %NULL, it will only - * check whether TLS backend is able to fetch the data (e.g. whether @type - * is supported by the TLS backend). It does not guarantee that the data - * will be available though. That could happen if TLS connection does not - * support @type or the binding data is not available yet due to additional - * negotiation or input required. - * - * Params: - * type = #GTlsChannelBindingType type of data to fetch - * data = #GByteArray is - * filled with the binding data, or %NULL - * - * Returns: %TRUE on success, %FALSE otherwise - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public bool getChannelBindingData(GTlsChannelBindingType type, out ByteArray data); - - /** - * Gets the certificate database that @conn uses to verify - * peer certificates. See g_dtls_connection_set_database(). - * - * Returns: the certificate database that @conn uses or %NULL - * - * Since: 2.48 - */ - public TlsDatabase getDatabase(); - - /** - * Get the object that will be used to interact with the user. It will be used - * for things like prompting the user for passwords. If %NULL is returned, then - * no user interaction will occur for this connection. - * - * Returns: The interaction object. - * - * Since: 2.48 - */ - public TlsInteraction getInteraction(); - - /** - * Gets the name of the application-layer protocol negotiated during - * the handshake. - * - * If the peer did not use the ALPN extension, or did not advertise a - * protocol that matched one of @conn's protocols, or the TLS backend - * does not support ALPN, then this will be %NULL. See - * g_dtls_connection_set_advertised_protocols(). - * - * Returns: the negotiated protocol, or %NULL - * - * Since: 2.60 - */ - public string getNegotiatedProtocol(); - - /** - * Gets @conn's peer's certificate after the handshake has completed - * or failed. (It is not set during the emission of - * #GDtlsConnection::accept-certificate.) - * - * Returns: @conn's peer's certificate, or %NULL - * - * Since: 2.48 - */ - public TlsCertificate getPeerCertificate(); - - /** - * Gets the errors associated with validating @conn's peer's - * certificate, after the handshake has completed or failed. (It is - * not set during the emission of #GDtlsConnection::accept-certificate.) - * - * Returns: @conn's peer's certificate errors - * - * Since: 2.48 - */ - public GTlsCertificateFlags getPeerCertificateErrors(); - - /** - * Gets @conn rehandshaking mode. See - * g_dtls_connection_set_rehandshake_mode() for details. - * - * Deprecated: Changing the rehandshake mode is no longer - * required for compatibility. Also, rehandshaking has been removed - * from the TLS protocol in TLS 1.3. - * - * Returns: %G_TLS_REHANDSHAKE_SAFELY - * - * Since: 2.48 - */ - public GTlsRehandshakeMode getRehandshakeMode(); - - /** - * Tests whether or not @conn expects a proper TLS close notification - * when the connection is closed. See - * g_dtls_connection_set_require_close_notify() for details. - * - * Returns: %TRUE if @conn requires a proper TLS close notification. - * - * Since: 2.48 - */ - public bool getRequireCloseNotify(); - - /** - * Attempts a TLS handshake on @conn. - * - * On the client side, it is never necessary to call this method; - * although the connection needs to perform a handshake after - * connecting, #GDtlsConnection will handle this for you automatically - * when you try to send or receive data on the connection. You can call - * g_dtls_connection_handshake() manually if you want to know whether - * the initial handshake succeeded or failed (as opposed to just - * immediately trying to use @conn to read or write, in which case, - * if it fails, it may not be possible to tell if it failed before - * or after completing the handshake), but beware that servers may reject - * client authentication after the handshake has completed, so a - * successful handshake does not indicate the connection will be usable. - * - * Likewise, on the server side, although a handshake is necessary at - * the beginning of the communication, you do not need to call this - * function explicitly unless you want clearer error reporting. - * - * Previously, calling g_dtls_connection_handshake() after the initial - * handshake would trigger a rehandshake; however, this usage was - * deprecated in GLib 2.60 because rehandshaking was removed from the - * TLS protocol in TLS 1.3. Since GLib 2.64, calling this function after - * the initial handshake will no longer do anything. - * - * #GDtlsConnection::accept_certificate may be emitted during the - * handshake. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: success or failure - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool handshake(Cancellable cancellable); - - /** - * Asynchronously performs a TLS handshake on @conn. See - * g_dtls_connection_handshake() for more information. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the handshake is complete - * userData = the data to pass to the callback function - * - * Since: 2.48 - */ - public void handshakeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finish an asynchronous TLS handshake operation. See - * g_dtls_connection_handshake() for more information. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set. - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool handshakeFinish(AsyncResultIF result); - - /** - * Sets the list of application-layer protocols to advertise that the - * caller is willing to speak on this connection. The - * Application-Layer Protocol Negotiation (ALPN) extension will be - * used to negotiate a compatible protocol with the peer; use - * g_dtls_connection_get_negotiated_protocol() to find the negotiated - * protocol after the handshake. Specifying %NULL for the the value - * of @protocols will disable ALPN negotiation. - * - * See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) - * for a list of registered protocol IDs. - * - * Params: - * protocols = a %NULL-terminated - * array of ALPN protocol names (eg, "http/1.1", "h2"), or %NULL - * - * Since: 2.60 - */ - public void setAdvertisedProtocols(string[] protocols); - - /** - * This sets the certificate that @conn will present to its peer - * during the TLS handshake. For a #GDtlsServerConnection, it is - * mandatory to set this, and that will normally be done at construct - * time. - * - * For a #GDtlsClientConnection, this is optional. If a handshake fails - * with %G_TLS_ERROR_CERTIFICATE_REQUIRED, that means that the server - * requires a certificate, and if you try connecting again, you should - * call this method first. You can call - * g_dtls_client_connection_get_accepted_cas() on the failed connection - * to get a list of Certificate Authorities that the server will - * accept certificates from. - * - * (It is also possible that a server will allow the connection with - * or without a certificate; in that case, if you don't provide a - * certificate, you can tell that the server requested one by the fact - * that g_dtls_client_connection_get_accepted_cas() will return - * non-%NULL.) - * - * Params: - * certificate = the certificate to use for @conn - * - * Since: 2.48 - */ - public void setCertificate(TlsCertificate certificate); - - /** - * Sets the certificate database that is used to verify peer certificates. - * This is set to the default database by default. See - * g_tls_backend_get_default_database(). If set to %NULL, then - * peer certificate validation will always set the - * %G_TLS_CERTIFICATE_UNKNOWN_CA error (meaning - * #GDtlsConnection::accept-certificate will always be emitted on - * client-side connections, unless that bit is not set in - * #GDtlsClientConnection:validation-flags). - * - * Params: - * database = a #GTlsDatabase - * - * Since: 2.48 - */ - public void setDatabase(TlsDatabase database); - - /** - * Set the object that will be used to interact with the user. It will be used - * for things like prompting the user for passwords. - * - * The @interaction argument will normally be a derived subclass of - * #GTlsInteraction. %NULL can also be provided if no user interaction - * should occur for this connection. - * - * Params: - * interaction = an interaction object, or %NULL - * - * Since: 2.48 - */ - public void setInteraction(TlsInteraction interaction); - - /** - * Since GLib 2.64, changing the rehandshake mode is no longer supported - * and will have no effect. With TLS 1.3, rehandshaking has been removed from - * the TLS protocol, replaced by separate post-handshake authentication and - * rekey operations. - * - * Deprecated: Changing the rehandshake mode is no longer - * required for compatibility. Also, rehandshaking has been removed - * from the TLS protocol in TLS 1.3. - * - * Params: - * mode = the rehandshaking mode - * - * Since: 2.48 - */ - public void setRehandshakeMode(GTlsRehandshakeMode mode); - - /** - * Sets whether or not @conn expects a proper TLS close notification - * before the connection is closed. If this is %TRUE (the default), - * then @conn will expect to receive a TLS close notification from its - * peer before the connection is closed, and will return a - * %G_TLS_ERROR_EOF error if the connection is closed without proper - * notification (since this may indicate a network error, or - * man-in-the-middle attack). - * - * In some protocols, the application will know whether or not the - * connection was closed cleanly based on application-level data - * (because the application-level data includes a length field, or is - * somehow self-delimiting); in this case, the close notify is - * redundant and may be omitted. You - * can use g_dtls_connection_set_require_close_notify() to tell @conn - * to allow an "unannounced" connection close, in which case the close - * will show up as a 0-length read, as in a non-TLS - * #GDatagramBased, and it is up to the application to check that - * the data has been fully received. - * - * Note that this only affects the behavior when the peer closes the - * connection; when the application calls g_dtls_connection_close_async() on - * @conn itself, this will send a close notification regardless of the - * setting of this property. If you explicitly want to do an unclean - * close, you can close @conn's #GDtlsConnection:base-socket rather - * than closing @conn itself. - * - * Params: - * requireCloseNotify = whether or not to require close notification - * - * Since: 2.48 - */ - public void setRequireCloseNotify(bool requireCloseNotify); - - /** - * Shut down part or all of a DTLS connection. - * - * If @shutdown_read is %TRUE then the receiving side of the connection is shut - * down, and further reading is disallowed. Subsequent calls to - * g_datagram_based_receive_messages() will return %G_IO_ERROR_CLOSED. - * - * If @shutdown_write is %TRUE then the sending side of the connection is shut - * down, and further writing is disallowed. Subsequent calls to - * g_datagram_based_send_messages() will return %G_IO_ERROR_CLOSED. - * - * It is allowed for both @shutdown_read and @shutdown_write to be TRUE — this - * is equivalent to calling g_dtls_connection_close(). - * - * If @cancellable is cancelled, the #GDtlsConnection may be left - * partially-closed and any pending untransmitted data may be lost. Call - * g_dtls_connection_shutdown() again to complete closing the #GDtlsConnection. - * - * Params: - * shutdownRead = %TRUE to stop reception of incoming datagrams - * shutdownWrite = %TRUE to stop sending outgoing datagrams - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE on success, %FALSE otherwise - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool shutdown(bool shutdownRead, bool shutdownWrite, Cancellable cancellable); - - /** - * Asynchronously shut down part or all of the DTLS connection. See - * g_dtls_connection_shutdown() for more information. - * - * Params: - * shutdownRead = %TRUE to stop reception of incoming datagrams - * shutdownWrite = %TRUE to stop sending outgoing datagrams - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the shutdown operation is complete - * userData = the data to pass to the callback function - * - * Since: 2.48 - */ - public void shutdownAsync(bool shutdownRead, bool shutdownWrite, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finish an asynchronous TLS shutdown operation. See - * g_dtls_connection_shutdown() for more information. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool shutdownFinish(AsyncResultIF result); - - /** - * Emitted during the TLS handshake after the peer certificate has - * been received. You can examine @peer_cert's certification path by - * calling g_tls_certificate_get_issuer() on it. - * - * For a client-side connection, @peer_cert is the server's - * certificate, and the signal will only be emitted if the - * certificate was not acceptable according to @conn's - * #GDtlsClientConnection:validation_flags. If you would like the - * certificate to be accepted despite @errors, return %TRUE from the - * signal handler. Otherwise, if no handler accepts the certificate, - * the handshake will fail with %G_TLS_ERROR_BAD_CERTIFICATE. - * - * For a server-side connection, @peer_cert is the certificate - * presented by the client, if this was requested via the server's - * #GDtlsServerConnection:authentication_mode. On the server side, - * the signal is always emitted when the client presents a - * certificate, and the certificate will only be accepted if a - * handler returns %TRUE. - * - * Note that if this signal is emitted as part of asynchronous I/O - * in the main thread, then you should not attempt to interact with - * the user before returning from the signal handler. If you want to - * let the user decide whether or not to accept the certificate, you - * would have to return %FALSE from the signal handler on the first - * attempt, and then after the connection attempt returns a - * %G_TLS_ERROR_BAD_CERTIFICATE, you can interact with the user, and - * if the user decides to accept the certificate, remember that fact, - * create a new connection, and return %TRUE from the signal handler - * the next time. - * - * If you are doing I/O in another thread, you do not - * need to worry about this, and can simply block in the signal - * handler until the UI thread returns an answer. - * - * Params: - * peerCert = the peer's #GTlsCertificate - * errors = the problems with @peer_cert. - * - * Returns: %TRUE to accept @peer_cert (which will also - * immediately end the signal emission). %FALSE to allow the signal - * emission to continue, which will cause the handshake to fail if - * no one else overrides it. - * - * Since: 2.48 - */ - gulong addOnAcceptCertificate(bool delegate(TlsCertificate, GTlsCertificateFlags, DtlsConnectionIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/DtlsConnectionT.d b/generated/gtkd/gio/DtlsConnectionT.d deleted file mode 100644 index f478bfe3a..000000000 --- a/generated/gtkd/gio/DtlsConnectionT.d +++ /dev/null @@ -1,758 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DtlsConnectionT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.TlsCertificate; -public import gio.TlsDatabase; -public import gio.TlsInteraction; -public import gio.c.functions; -public import gio.c.types; -public import glib.ByteArray; -public import glib.ErrorG; -public import glib.GException; -public import glib.MemorySlice; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #GDtlsConnection is the base DTLS connection class type, which wraps - * a #GDatagramBased and provides DTLS encryption on top of it. Its - * subclasses, #GDtlsClientConnection and #GDtlsServerConnection, - * implement client-side and server-side DTLS, respectively. - * - * For TLS support, see #GTlsConnection. - * - * As DTLS is datagram based, #GDtlsConnection implements #GDatagramBased, - * presenting a datagram-socket-like API for the encrypted connection. This - * operates over a base datagram connection, which is also a #GDatagramBased - * (#GDtlsConnection:base-socket). - * - * To close a DTLS connection, use g_dtls_connection_close(). - * - * Neither #GDtlsServerConnection or #GDtlsClientConnection set the peer address - * on their base #GDatagramBased if it is a #GSocket — it is up to the caller to - * do that if they wish. If they do not, and g_socket_close() is called on the - * base socket, the #GDtlsConnection will not raise a %G_IO_ERROR_NOT_CONNECTED - * error on further I/O. - * - * Since: 2.48 - */ -public template DtlsConnectionT(TStruct) -{ - /** Get the main Gtk struct */ - public GDtlsConnection* getDtlsConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDtlsConnection*)getStruct(); - } - - - /** - * Close the DTLS connection. This is equivalent to calling - * g_dtls_connection_shutdown() to shut down both sides of the connection. - * - * Closing a #GDtlsConnection waits for all buffered but untransmitted data to - * be sent before it completes. It then sends a `close_notify` DTLS alert to the - * peer and may wait for a `close_notify` to be received from the peer. It does - * not close the underlying #GDtlsConnection:base-socket; that must be closed - * separately. - * - * Once @conn is closed, all other operations will return %G_IO_ERROR_CLOSED. - * Closing a #GDtlsConnection multiple times will not return an error. - * - * #GDtlsConnections will be automatically closed when the last reference is - * dropped, but you might want to call this function to make sure resources are - * released as early as possible. - * - * If @cancellable is cancelled, the #GDtlsConnection may be left - * partially-closed and any pending untransmitted data may be lost. Call - * g_dtls_connection_close() again to complete closing the #GDtlsConnection. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE on success, %FALSE otherwise - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool close(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dtls_connection_close(getDtlsConnectionStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously close the DTLS connection. See g_dtls_connection_close() for - * more information. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the close operation is complete - * userData = the data to pass to the callback function - * - * Since: 2.48 - */ - public void closeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dtls_connection_close_async(getDtlsConnectionStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous TLS close operation. See g_dtls_connection_close() - * for more information. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool closeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_dtls_connection_close_finish(getDtlsConnectionStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Used by #GDtlsConnection implementations to emit the - * #GDtlsConnection::accept-certificate signal. - * - * Params: - * peerCert = the peer's #GTlsCertificate - * errors = the problems with @peer_cert - * - * Returns: %TRUE if one of the signal handlers has returned - * %TRUE to accept @peer_cert - * - * Since: 2.48 - */ - public bool emitAcceptCertificate(TlsCertificate peerCert, GTlsCertificateFlags errors) - { - return g_dtls_connection_emit_accept_certificate(getDtlsConnectionStruct(), (peerCert is null) ? null : peerCert.getTlsCertificateStruct(), errors) != 0; - } - - /** - * Gets @conn's certificate, as set by - * g_dtls_connection_set_certificate(). - * - * Returns: @conn's certificate, or %NULL - * - * Since: 2.48 - */ - public TlsCertificate getCertificate() - { - auto __p = g_dtls_connection_get_certificate(getDtlsConnectionStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p); - } - - /** - * Query the TLS backend for TLS channel binding data of @type for @conn. - * - * This call retrieves TLS channel binding data as specified in RFC - * [5056](https://tools.ietf.org/html/rfc5056), RFC - * [5929](https://tools.ietf.org/html/rfc5929), and related RFCs. The - * binding data is returned in @data. The @data is resized by the callee - * using #GByteArray buffer management and will be freed when the @data - * is destroyed by g_byte_array_unref(). If @data is %NULL, it will only - * check whether TLS backend is able to fetch the data (e.g. whether @type - * is supported by the TLS backend). It does not guarantee that the data - * will be available though. That could happen if TLS connection does not - * support @type or the binding data is not available yet due to additional - * negotiation or input required. - * - * Params: - * type = #GTlsChannelBindingType type of data to fetch - * data = #GByteArray is - * filled with the binding data, or %NULL - * - * Returns: %TRUE on success, %FALSE otherwise - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public bool getChannelBindingData(GTlsChannelBindingType type, out ByteArray data) - { - GByteArray* outdata = sliceNew!GByteArray(); - GError* err = null; - - auto __p = g_dtls_connection_get_channel_binding_data(getDtlsConnectionStruct(), type, outdata, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - data = new ByteArray(outdata, true); - - return __p; - } - - /** - * Gets the certificate database that @conn uses to verify - * peer certificates. See g_dtls_connection_set_database(). - * - * Returns: the certificate database that @conn uses or %NULL - * - * Since: 2.48 - */ - public TlsDatabase getDatabase() - { - auto __p = g_dtls_connection_get_database(getDtlsConnectionStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsDatabase)(cast(GTlsDatabase*) __p); - } - - /** - * Get the object that will be used to interact with the user. It will be used - * for things like prompting the user for passwords. If %NULL is returned, then - * no user interaction will occur for this connection. - * - * Returns: The interaction object. - * - * Since: 2.48 - */ - public TlsInteraction getInteraction() - { - auto __p = g_dtls_connection_get_interaction(getDtlsConnectionStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsInteraction)(cast(GTlsInteraction*) __p); - } - - /** - * Gets the name of the application-layer protocol negotiated during - * the handshake. - * - * If the peer did not use the ALPN extension, or did not advertise a - * protocol that matched one of @conn's protocols, or the TLS backend - * does not support ALPN, then this will be %NULL. See - * g_dtls_connection_set_advertised_protocols(). - * - * Returns: the negotiated protocol, or %NULL - * - * Since: 2.60 - */ - public string getNegotiatedProtocol() - { - return Str.toString(g_dtls_connection_get_negotiated_protocol(getDtlsConnectionStruct())); - } - - /** - * Gets @conn's peer's certificate after the handshake has completed - * or failed. (It is not set during the emission of - * #GDtlsConnection::accept-certificate.) - * - * Returns: @conn's peer's certificate, or %NULL - * - * Since: 2.48 - */ - public TlsCertificate getPeerCertificate() - { - auto __p = g_dtls_connection_get_peer_certificate(getDtlsConnectionStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p); - } - - /** - * Gets the errors associated with validating @conn's peer's - * certificate, after the handshake has completed or failed. (It is - * not set during the emission of #GDtlsConnection::accept-certificate.) - * - * Returns: @conn's peer's certificate errors - * - * Since: 2.48 - */ - public GTlsCertificateFlags getPeerCertificateErrors() - { - return g_dtls_connection_get_peer_certificate_errors(getDtlsConnectionStruct()); - } - - /** - * Gets @conn rehandshaking mode. See - * g_dtls_connection_set_rehandshake_mode() for details. - * - * Deprecated: Changing the rehandshake mode is no longer - * required for compatibility. Also, rehandshaking has been removed - * from the TLS protocol in TLS 1.3. - * - * Returns: %G_TLS_REHANDSHAKE_SAFELY - * - * Since: 2.48 - */ - public GTlsRehandshakeMode getRehandshakeMode() - { - return g_dtls_connection_get_rehandshake_mode(getDtlsConnectionStruct()); - } - - /** - * Tests whether or not @conn expects a proper TLS close notification - * when the connection is closed. See - * g_dtls_connection_set_require_close_notify() for details. - * - * Returns: %TRUE if @conn requires a proper TLS close notification. - * - * Since: 2.48 - */ - public bool getRequireCloseNotify() - { - return g_dtls_connection_get_require_close_notify(getDtlsConnectionStruct()) != 0; - } - - /** - * Attempts a TLS handshake on @conn. - * - * On the client side, it is never necessary to call this method; - * although the connection needs to perform a handshake after - * connecting, #GDtlsConnection will handle this for you automatically - * when you try to send or receive data on the connection. You can call - * g_dtls_connection_handshake() manually if you want to know whether - * the initial handshake succeeded or failed (as opposed to just - * immediately trying to use @conn to read or write, in which case, - * if it fails, it may not be possible to tell if it failed before - * or after completing the handshake), but beware that servers may reject - * client authentication after the handshake has completed, so a - * successful handshake does not indicate the connection will be usable. - * - * Likewise, on the server side, although a handshake is necessary at - * the beginning of the communication, you do not need to call this - * function explicitly unless you want clearer error reporting. - * - * Previously, calling g_dtls_connection_handshake() after the initial - * handshake would trigger a rehandshake; however, this usage was - * deprecated in GLib 2.60 because rehandshaking was removed from the - * TLS protocol in TLS 1.3. Since GLib 2.64, calling this function after - * the initial handshake will no longer do anything. - * - * #GDtlsConnection::accept_certificate may be emitted during the - * handshake. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: success or failure - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool handshake(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dtls_connection_handshake(getDtlsConnectionStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously performs a TLS handshake on @conn. See - * g_dtls_connection_handshake() for more information. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the handshake is complete - * userData = the data to pass to the callback function - * - * Since: 2.48 - */ - public void handshakeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dtls_connection_handshake_async(getDtlsConnectionStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous TLS handshake operation. See - * g_dtls_connection_handshake() for more information. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set. - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool handshakeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_dtls_connection_handshake_finish(getDtlsConnectionStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the list of application-layer protocols to advertise that the - * caller is willing to speak on this connection. The - * Application-Layer Protocol Negotiation (ALPN) extension will be - * used to negotiate a compatible protocol with the peer; use - * g_dtls_connection_get_negotiated_protocol() to find the negotiated - * protocol after the handshake. Specifying %NULL for the the value - * of @protocols will disable ALPN negotiation. - * - * See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) - * for a list of registered protocol IDs. - * - * Params: - * protocols = a %NULL-terminated - * array of ALPN protocol names (eg, "http/1.1", "h2"), or %NULL - * - * Since: 2.60 - */ - public void setAdvertisedProtocols(string[] protocols) - { - g_dtls_connection_set_advertised_protocols(getDtlsConnectionStruct(), Str.toStringzArray(protocols)); - } - - /** - * This sets the certificate that @conn will present to its peer - * during the TLS handshake. For a #GDtlsServerConnection, it is - * mandatory to set this, and that will normally be done at construct - * time. - * - * For a #GDtlsClientConnection, this is optional. If a handshake fails - * with %G_TLS_ERROR_CERTIFICATE_REQUIRED, that means that the server - * requires a certificate, and if you try connecting again, you should - * call this method first. You can call - * g_dtls_client_connection_get_accepted_cas() on the failed connection - * to get a list of Certificate Authorities that the server will - * accept certificates from. - * - * (It is also possible that a server will allow the connection with - * or without a certificate; in that case, if you don't provide a - * certificate, you can tell that the server requested one by the fact - * that g_dtls_client_connection_get_accepted_cas() will return - * non-%NULL.) - * - * Params: - * certificate = the certificate to use for @conn - * - * Since: 2.48 - */ - public void setCertificate(TlsCertificate certificate) - { - g_dtls_connection_set_certificate(getDtlsConnectionStruct(), (certificate is null) ? null : certificate.getTlsCertificateStruct()); - } - - /** - * Sets the certificate database that is used to verify peer certificates. - * This is set to the default database by default. See - * g_tls_backend_get_default_database(). If set to %NULL, then - * peer certificate validation will always set the - * %G_TLS_CERTIFICATE_UNKNOWN_CA error (meaning - * #GDtlsConnection::accept-certificate will always be emitted on - * client-side connections, unless that bit is not set in - * #GDtlsClientConnection:validation-flags). - * - * Params: - * database = a #GTlsDatabase - * - * Since: 2.48 - */ - public void setDatabase(TlsDatabase database) - { - g_dtls_connection_set_database(getDtlsConnectionStruct(), (database is null) ? null : database.getTlsDatabaseStruct()); - } - - /** - * Set the object that will be used to interact with the user. It will be used - * for things like prompting the user for passwords. - * - * The @interaction argument will normally be a derived subclass of - * #GTlsInteraction. %NULL can also be provided if no user interaction - * should occur for this connection. - * - * Params: - * interaction = an interaction object, or %NULL - * - * Since: 2.48 - */ - public void setInteraction(TlsInteraction interaction) - { - g_dtls_connection_set_interaction(getDtlsConnectionStruct(), (interaction is null) ? null : interaction.getTlsInteractionStruct()); - } - - /** - * Since GLib 2.64, changing the rehandshake mode is no longer supported - * and will have no effect. With TLS 1.3, rehandshaking has been removed from - * the TLS protocol, replaced by separate post-handshake authentication and - * rekey operations. - * - * Deprecated: Changing the rehandshake mode is no longer - * required for compatibility. Also, rehandshaking has been removed - * from the TLS protocol in TLS 1.3. - * - * Params: - * mode = the rehandshaking mode - * - * Since: 2.48 - */ - public void setRehandshakeMode(GTlsRehandshakeMode mode) - { - g_dtls_connection_set_rehandshake_mode(getDtlsConnectionStruct(), mode); - } - - /** - * Sets whether or not @conn expects a proper TLS close notification - * before the connection is closed. If this is %TRUE (the default), - * then @conn will expect to receive a TLS close notification from its - * peer before the connection is closed, and will return a - * %G_TLS_ERROR_EOF error if the connection is closed without proper - * notification (since this may indicate a network error, or - * man-in-the-middle attack). - * - * In some protocols, the application will know whether or not the - * connection was closed cleanly based on application-level data - * (because the application-level data includes a length field, or is - * somehow self-delimiting); in this case, the close notify is - * redundant and may be omitted. You - * can use g_dtls_connection_set_require_close_notify() to tell @conn - * to allow an "unannounced" connection close, in which case the close - * will show up as a 0-length read, as in a non-TLS - * #GDatagramBased, and it is up to the application to check that - * the data has been fully received. - * - * Note that this only affects the behavior when the peer closes the - * connection; when the application calls g_dtls_connection_close_async() on - * @conn itself, this will send a close notification regardless of the - * setting of this property. If you explicitly want to do an unclean - * close, you can close @conn's #GDtlsConnection:base-socket rather - * than closing @conn itself. - * - * Params: - * requireCloseNotify = whether or not to require close notification - * - * Since: 2.48 - */ - public void setRequireCloseNotify(bool requireCloseNotify) - { - g_dtls_connection_set_require_close_notify(getDtlsConnectionStruct(), requireCloseNotify); - } - - /** - * Shut down part or all of a DTLS connection. - * - * If @shutdown_read is %TRUE then the receiving side of the connection is shut - * down, and further reading is disallowed. Subsequent calls to - * g_datagram_based_receive_messages() will return %G_IO_ERROR_CLOSED. - * - * If @shutdown_write is %TRUE then the sending side of the connection is shut - * down, and further writing is disallowed. Subsequent calls to - * g_datagram_based_send_messages() will return %G_IO_ERROR_CLOSED. - * - * It is allowed for both @shutdown_read and @shutdown_write to be TRUE — this - * is equivalent to calling g_dtls_connection_close(). - * - * If @cancellable is cancelled, the #GDtlsConnection may be left - * partially-closed and any pending untransmitted data may be lost. Call - * g_dtls_connection_shutdown() again to complete closing the #GDtlsConnection. - * - * Params: - * shutdownRead = %TRUE to stop reception of incoming datagrams - * shutdownWrite = %TRUE to stop sending outgoing datagrams - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE on success, %FALSE otherwise - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool shutdown(bool shutdownRead, bool shutdownWrite, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_dtls_connection_shutdown(getDtlsConnectionStruct(), shutdownRead, shutdownWrite, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously shut down part or all of the DTLS connection. See - * g_dtls_connection_shutdown() for more information. - * - * Params: - * shutdownRead = %TRUE to stop reception of incoming datagrams - * shutdownWrite = %TRUE to stop sending outgoing datagrams - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the shutdown operation is complete - * userData = the data to pass to the callback function - * - * Since: 2.48 - */ - public void shutdownAsync(bool shutdownRead, bool shutdownWrite, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_dtls_connection_shutdown_async(getDtlsConnectionStruct(), shutdownRead, shutdownWrite, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous TLS shutdown operation. See - * g_dtls_connection_shutdown() for more information. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public bool shutdownFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_dtls_connection_shutdown_finish(getDtlsConnectionStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Emitted during the TLS handshake after the peer certificate has - * been received. You can examine @peer_cert's certification path by - * calling g_tls_certificate_get_issuer() on it. - * - * For a client-side connection, @peer_cert is the server's - * certificate, and the signal will only be emitted if the - * certificate was not acceptable according to @conn's - * #GDtlsClientConnection:validation_flags. If you would like the - * certificate to be accepted despite @errors, return %TRUE from the - * signal handler. Otherwise, if no handler accepts the certificate, - * the handshake will fail with %G_TLS_ERROR_BAD_CERTIFICATE. - * - * For a server-side connection, @peer_cert is the certificate - * presented by the client, if this was requested via the server's - * #GDtlsServerConnection:authentication_mode. On the server side, - * the signal is always emitted when the client presents a - * certificate, and the certificate will only be accepted if a - * handler returns %TRUE. - * - * Note that if this signal is emitted as part of asynchronous I/O - * in the main thread, then you should not attempt to interact with - * the user before returning from the signal handler. If you want to - * let the user decide whether or not to accept the certificate, you - * would have to return %FALSE from the signal handler on the first - * attempt, and then after the connection attempt returns a - * %G_TLS_ERROR_BAD_CERTIFICATE, you can interact with the user, and - * if the user decides to accept the certificate, remember that fact, - * create a new connection, and return %TRUE from the signal handler - * the next time. - * - * If you are doing I/O in another thread, you do not - * need to worry about this, and can simply block in the signal - * handler until the UI thread returns an answer. - * - * Params: - * peerCert = the peer's #GTlsCertificate - * errors = the problems with @peer_cert. - * - * Returns: %TRUE to accept @peer_cert (which will also - * immediately end the signal emission). %FALSE to allow the signal - * emission to continue, which will cause the handshake to fail if - * no one else overrides it. - * - * Since: 2.48 - */ - gulong addOnAcceptCertificate(bool delegate(TlsCertificate, GTlsCertificateFlags, DtlsConnectionIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "accept-certificate", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/DtlsServerConnectionIF.d b/generated/gtkd/gio/DtlsServerConnectionIF.d deleted file mode 100644 index 11306f4ff..000000000 --- a/generated/gtkd/gio/DtlsServerConnectionIF.d +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DtlsServerConnectionIF; - -private import gio.DatagramBasedIF; -private import gio.TlsCertificate; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * #GDtlsServerConnection is the server-side subclass of #GDtlsConnection, - * representing a server-side DTLS connection. - * - * Since: 2.48 - */ -public interface DtlsServerConnectionIF{ - /** Get the main Gtk struct */ - public GDtlsServerConnection* getDtlsServerConnectionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_dtls_server_connection_get_type(); - } -} diff --git a/generated/gtkd/gio/DtlsServerConnectionT.d b/generated/gtkd/gio/DtlsServerConnectionT.d deleted file mode 100644 index db9fd986c..000000000 --- a/generated/gtkd/gio/DtlsServerConnectionT.d +++ /dev/null @@ -1,53 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.DtlsServerConnectionT; - -public import gio.DatagramBasedIF; -public import gio.TlsCertificate; -public import gio.c.functions; -public import gio.c.types; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import gobject.ObjectG; - - -/** - * #GDtlsServerConnection is the server-side subclass of #GDtlsConnection, - * representing a server-side DTLS connection. - * - * Since: 2.48 - */ -public template DtlsServerConnectionT(TStruct) -{ - /** Get the main Gtk struct */ - public GDtlsServerConnection* getDtlsServerConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GDtlsServerConnection*)getStruct(); - } - -} diff --git a/generated/gtkd/gio/Emblem.d b/generated/gtkd/gio/Emblem.d deleted file mode 100644 index f6181768a..000000000 --- a/generated/gtkd/gio/Emblem.d +++ /dev/null @@ -1,161 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Emblem; - -private import gio.IconIF; -private import gio.IconT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GEmblem is an implementation of #GIcon that supports - * having an emblem, which is an icon with additional properties. - * It can than be added to a #GEmblemedIcon. - * - * Currently, only metainformation about the emblem's origin is - * supported. More may be added in the future. - */ -public class Emblem : ObjectG, IconIF -{ - /** the main Gtk struct */ - protected GEmblem* gEmblem; - - /** Get the main Gtk struct */ - public GEmblem* getEmblemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gEmblem; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gEmblem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GEmblem* gEmblem, bool ownedRef = false) - { - this.gEmblem = gEmblem; - super(cast(GObject*)gEmblem, ownedRef); - } - - // add the Icon capabilities - mixin IconT!(GEmblem); - - - /** */ - public static GType getType() - { - return g_emblem_get_type(); - } - - /** - * Creates a new emblem for @icon. - * - * Params: - * icon = a GIcon containing the icon. - * - * Returns: a new #GEmblem. - * - * Since: 2.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(IconIF icon) - { - auto __p = g_emblem_new((icon is null) ? null : icon.getIconStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GEmblem*) __p, true); - } - - /** - * Creates a new emblem for @icon. - * - * Params: - * icon = a GIcon containing the icon. - * origin = a GEmblemOrigin enum defining the emblem's origin - * - * Returns: a new #GEmblem. - * - * Since: 2.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(IconIF icon, GEmblemOrigin origin) - { - auto __p = g_emblem_new_with_origin((icon is null) ? null : icon.getIconStruct(), origin); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_origin"); - } - - this(cast(GEmblem*) __p, true); - } - - /** - * Gives back the icon from @emblem. - * - * Returns: a #GIcon. The returned object belongs to - * the emblem and should not be modified or freed. - * - * Since: 2.18 - */ - public IconIF getIcon() - { - auto __p = g_emblem_get_icon(gEmblem); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p); - } - - /** - * Gets the origin of the emblem. - * - * Returns: the origin of the emblem - * - * Since: 2.18 - */ - public GEmblemOrigin getOrigin() - { - return g_emblem_get_origin(gEmblem); - } -} diff --git a/generated/gtkd/gio/EmblemedIcon.d b/generated/gtkd/gio/EmblemedIcon.d deleted file mode 100644 index f4cc3f1a0..000000000 --- a/generated/gtkd/gio/EmblemedIcon.d +++ /dev/null @@ -1,169 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.EmblemedIcon; - -private import gio.Emblem; -private import gio.IconIF; -private import gio.IconT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ListG; -private import gobject.ObjectG; - - -/** - * #GEmblemedIcon is an implementation of #GIcon that supports - * adding an emblem to an icon. Adding multiple emblems to an - * icon is ensured via g_emblemed_icon_add_emblem(). - * - * Note that #GEmblemedIcon allows no control over the position - * of the emblems. See also #GEmblem for more information. - */ -public class EmblemedIcon : ObjectG, IconIF -{ - /** the main Gtk struct */ - protected GEmblemedIcon* gEmblemedIcon; - - /** Get the main Gtk struct */ - public GEmblemedIcon* getEmblemedIconStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gEmblemedIcon; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gEmblemedIcon; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GEmblemedIcon* gEmblemedIcon, bool ownedRef = false) - { - this.gEmblemedIcon = gEmblemedIcon; - super(cast(GObject*)gEmblemedIcon, ownedRef); - } - - // add the Icon capabilities - mixin IconT!(GEmblemedIcon); - - - /** */ - public static GType getType() - { - return g_emblemed_icon_get_type(); - } - - /** - * Creates a new emblemed icon for @icon with the emblem @emblem. - * - * Params: - * icon = a #GIcon - * emblem = a #GEmblem, or %NULL - * - * Returns: a new #GIcon - * - * Since: 2.18 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(IconIF icon, Emblem emblem) - { - auto __p = g_emblemed_icon_new((icon is null) ? null : icon.getIconStruct(), (emblem is null) ? null : emblem.getEmblemStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GEmblemedIcon*) __p, true); - } - - /** - * Adds @emblem to the #GList of #GEmblems. - * - * Params: - * emblem = a #GEmblem - * - * Since: 2.18 - */ - public void addEmblem(Emblem emblem) - { - g_emblemed_icon_add_emblem(gEmblemedIcon, (emblem is null) ? null : emblem.getEmblemStruct()); - } - - /** - * Removes all the emblems from @icon. - * - * Since: 2.28 - */ - public void clearEmblems() - { - g_emblemed_icon_clear_emblems(gEmblemedIcon); - } - - /** - * Gets the list of emblems for the @icon. - * - * Returns: a #GList of - * #GEmblems that is owned by @emblemed - * - * Since: 2.18 - */ - public ListG getEmblems() - { - auto __p = g_emblemed_icon_get_emblems(gEmblemedIcon); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Gets the main icon for @emblemed. - * - * Returns: a #GIcon that is owned by @emblemed - * - * Since: 2.18 - */ - public IconIF getIcon() - { - auto __p = g_emblemed_icon_get_icon(gEmblemedIcon); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p); - } -} diff --git a/generated/gtkd/gio/ErrorGIO.d b/generated/gtkd/gio/ErrorGIO.d deleted file mode 100644 index 1025ddaa2..000000000 --- a/generated/gtkd/gio/ErrorGIO.d +++ /dev/null @@ -1,63 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ErrorGIO; - -private import gio.c.functions; -public import gio.c.types; - - -/** */ -public struct ErrorGIO -{ - - /** - * Converts errno.h error codes into GIO error codes. The fallback - * value %G_IO_ERROR_FAILED is returned for error codes not currently - * handled (but note that future GLib releases may return a more - * specific value instead). - * - * As %errno is global and may be modified by intermediate function - * calls, you should save its value as soon as the call which sets it - * - * Params: - * errNo = Error number as defined in errno.h. - * - * Returns: #GIOErrorEnum value for the given errno.h error number. - */ - public static GIOErrorEnum ioErrorFromErrno(int errNo) - { - return g_io_error_from_errno(errNo); - } - - /** - * Gets the GIO Error Quark. - * - * Returns: a #GQuark. - */ - public static GQuark ioErrorQuark() - { - return g_io_error_quark(); - } -} diff --git a/generated/gtkd/gio/FileAttributeInfoList.d b/generated/gtkd/gio/FileAttributeInfoList.d deleted file mode 100644 index 8f27813c1..000000000 --- a/generated/gtkd/gio/FileAttributeInfoList.d +++ /dev/null @@ -1,188 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileAttributeInfoList; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.Str; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Acts as a lightweight registry for possible valid file attributes. - * The registry stores Key-Value pair formats as #GFileAttributeInfos. - */ -public final class FileAttributeInfoList -{ - /** the main Gtk struct */ - protected GFileAttributeInfoList* gFileAttributeInfoList; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GFileAttributeInfoList* getFileAttributeInfoListStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileAttributeInfoList; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gFileAttributeInfoList; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileAttributeInfoList* gFileAttributeInfoList, bool ownedRef = false) - { - this.gFileAttributeInfoList = gFileAttributeInfoList; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_file_attribute_info_list_unref(gFileAttributeInfoList); - } - - - /** - * an array of #GFileAttributeInfos. - */ - public @property GFileAttributeInfo[] infos() - { - return gFileAttributeInfoList.infos[0..gFileAttributeInfoList.nInfos]; - } - - /** Ditto */ - public @property void infos(GFileAttributeInfo[] value) - { - gFileAttributeInfoList.infos = value.ptr; - gFileAttributeInfoList.nInfos = cast(int)value.length; - } - - - /** */ - public static GType getType() - { - return g_file_attribute_info_list_get_type(); - } - - /** - * Creates a new file attribute info list. - * - * Returns: a #GFileAttributeInfoList. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_file_attribute_info_list_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GFileAttributeInfoList*) __p); - } - - /** - * Adds a new attribute with @name to the @list, setting - * its @type and @flags. - * - * Params: - * name = the name of the attribute to add. - * type = the #GFileAttributeType for the attribute. - * flags = #GFileAttributeInfoFlags for the attribute. - */ - public void add(string name, GFileAttributeType type, GFileAttributeInfoFlags flags) - { - g_file_attribute_info_list_add(gFileAttributeInfoList, Str.toStringz(name), type, flags); - } - - /** - * Makes a duplicate of a file attribute info list. - * - * Returns: a copy of the given @list. - */ - public FileAttributeInfoList dup() - { - auto __p = g_file_attribute_info_list_dup(gFileAttributeInfoList); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileAttributeInfoList)(cast(GFileAttributeInfoList*) __p, true); - } - - /** - * Gets the file attribute with the name @name from @list. - * - * Params: - * name = the name of the attribute to look up. - * - * Returns: a #GFileAttributeInfo for the @name, or %NULL if an - * attribute isn't found. - */ - public GFileAttributeInfo* lookup(string name) - { - return g_file_attribute_info_list_lookup(gFileAttributeInfoList, Str.toStringz(name)); - } - - alias doref = ref_; - /** - * References a file attribute info list. - * - * Returns: #GFileAttributeInfoList or %NULL on error. - */ - public FileAttributeInfoList ref_() - { - auto __p = g_file_attribute_info_list_ref(gFileAttributeInfoList); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileAttributeInfoList)(cast(GFileAttributeInfoList*) __p, true); - } - - /** - * Removes a reference from the given @list. If the reference count - * falls to zero, the @list is deleted. - */ - public void unref() - { - g_file_attribute_info_list_unref(gFileAttributeInfoList); - } -} diff --git a/generated/gtkd/gio/FileAttributeMatcher.d b/generated/gtkd/gio/FileAttributeMatcher.d deleted file mode 100644 index 7452a84d6..000000000 --- a/generated/gtkd/gio/FileAttributeMatcher.d +++ /dev/null @@ -1,253 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileAttributeMatcher; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Determines if a string matches a file attribute. - */ -public class FileAttributeMatcher -{ - /** the main Gtk struct */ - protected GFileAttributeMatcher* gFileAttributeMatcher; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GFileAttributeMatcher* getFileAttributeMatcherStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileAttributeMatcher; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gFileAttributeMatcher; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileAttributeMatcher* gFileAttributeMatcher, bool ownedRef = false) - { - this.gFileAttributeMatcher = gFileAttributeMatcher; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_file_attribute_matcher_unref(gFileAttributeMatcher); - } - - - /** */ - public static GType getType() - { - return g_file_attribute_matcher_get_type(); - } - - /** - * Creates a new file attribute matcher, which matches attributes - * against a given string. #GFileAttributeMatchers are reference - * counted structures, and are created with a reference count of 1. If - * the number of references falls to 0, the #GFileAttributeMatcher is - * automatically destroyed. - * - * The @attributes string should be formatted with specific keys separated - * from namespaces with a double colon. Several "namespace::key" strings may be - * concatenated with a single comma (e.g. "standard::type,standard::is-hidden"). - * The wildcard "*" may be used to match all keys and namespaces, or - * "namespace::*" will match all keys in a given namespace. - * - * ## Examples of file attribute matcher strings and results - * - * - `"*"`: matches all attributes. - * - `"standard::is-hidden"`: matches only the key is-hidden in the - * standard namespace. - * - `"standard::type,unix::*"`: matches the type key in the standard - * namespace and all keys in the unix namespace. - * - * Params: - * attributes = an attribute string to match. - * - * Returns: a #GFileAttributeMatcher - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string attributes) - { - auto __p = g_file_attribute_matcher_new(Str.toStringz(attributes)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GFileAttributeMatcher*) __p); - } - - /** - * Checks if the matcher will match all of the keys in a given namespace. - * This will always return %TRUE if a wildcard character is in use (e.g. if - * matcher was created with "standard::*" and @ns is "standard", or if matcher was created - * using "*" and namespace is anything.) - * - * TODO: this is awkwardly worded. - * - * Params: - * ns = a string containing a file attribute namespace. - * - * Returns: %TRUE if the matcher matches all of the entries - * in the given @ns, %FALSE otherwise. - */ - public bool enumerateNamespace(string ns) - { - return g_file_attribute_matcher_enumerate_namespace(gFileAttributeMatcher, Str.toStringz(ns)) != 0; - } - - /** - * Gets the next matched attribute from a #GFileAttributeMatcher. - * - * Returns: a string containing the next attribute or, %NULL if - * no more attribute exist. - */ - public string enumerateNext() - { - return Str.toString(g_file_attribute_matcher_enumerate_next(gFileAttributeMatcher)); - } - - /** - * Checks if an attribute will be matched by an attribute matcher. If - * the matcher was created with the "*" matching string, this function - * will always return %TRUE. - * - * Params: - * attribute = a file attribute key. - * - * Returns: %TRUE if @attribute matches @matcher. %FALSE otherwise. - */ - public bool matches(string attribute) - { - return g_file_attribute_matcher_matches(gFileAttributeMatcher, Str.toStringz(attribute)) != 0; - } - - /** - * Checks if a attribute matcher only matches a given attribute. Always - * returns %FALSE if "*" was used when creating the matcher. - * - * Params: - * attribute = a file attribute key. - * - * Returns: %TRUE if the matcher only matches @attribute. %FALSE otherwise. - */ - public bool matchesOnly(string attribute) - { - return g_file_attribute_matcher_matches_only(gFileAttributeMatcher, Str.toStringz(attribute)) != 0; - } - - alias doref = ref_; - /** - * References a file attribute matcher. - * - * Returns: a #GFileAttributeMatcher. - */ - public FileAttributeMatcher ref_() - { - auto __p = g_file_attribute_matcher_ref(gFileAttributeMatcher); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileAttributeMatcher)(cast(GFileAttributeMatcher*) __p, true); - } - - /** - * Subtracts all attributes of @subtract from @matcher and returns - * a matcher that supports those attributes. - * - * Note that currently it is not possible to remove a single - * attribute when the @matcher matches the whole namespace - or remove - * a namespace or attribute when the matcher matches everything. This - * is a limitation of the current implementation, but may be fixed - * in the future. - * - * Params: - * subtract = The matcher to subtract - * - * Returns: A file attribute matcher matching all attributes of - * @matcher that are not matched by @subtract - */ - public FileAttributeMatcher subtract(FileAttributeMatcher subtract) - { - auto __p = g_file_attribute_matcher_subtract(gFileAttributeMatcher, (subtract is null) ? null : subtract.getFileAttributeMatcherStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileAttributeMatcher)(cast(GFileAttributeMatcher*) __p, true); - } - - /** - * Prints what the matcher is matching against. The format will be - * equal to the format passed to g_file_attribute_matcher_new(). - * The output however, might not be identical, as the matcher may - * decide to use a different order or omit needless parts. - * - * Returns: a string describing the attributes the matcher matches - * against or %NULL if @matcher was %NULL. - * - * Since: 2.32 - */ - public override string toString() - { - auto retStr = g_file_attribute_matcher_to_string(gFileAttributeMatcher); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Unreferences @matcher. If the reference count falls below 1, - * the @matcher is automatically freed. - */ - public void unref() - { - g_file_attribute_matcher_unref(gFileAttributeMatcher); - } -} diff --git a/generated/gtkd/gio/FileDescriptorBasedIF.d b/generated/gtkd/gio/FileDescriptorBasedIF.d deleted file mode 100644 index d20fc89db..000000000 --- a/generated/gtkd/gio/FileDescriptorBasedIF.d +++ /dev/null @@ -1,63 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileDescriptorBasedIF; - -private import gio.c.functions; -public import gio.c.types; - - -/** - * #GFileDescriptorBased is implemented by streams (implementations of - * #GInputStream or #GOutputStream) that are based on file descriptors. - * - * Note that `` belongs to the UNIX-specific - * GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config - * file when using it. - * - * Since: 2.24 - */ -public interface FileDescriptorBasedIF{ - /** Get the main Gtk struct */ - public GFileDescriptorBased* getFileDescriptorBasedStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_file_descriptor_based_get_type(); - } - - /** - * Gets the underlying file descriptor. - * - * Returns: The file descriptor - * - * Since: 2.24 - */ - public int getFd(); -} diff --git a/generated/gtkd/gio/FileDescriptorBasedT.d b/generated/gtkd/gio/FileDescriptorBasedT.d deleted file mode 100644 index 8b5433ac3..000000000 --- a/generated/gtkd/gio/FileDescriptorBasedT.d +++ /dev/null @@ -1,63 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileDescriptorBasedT; - -public import gio.c.functions; -public import gio.c.types; - - -/** - * #GFileDescriptorBased is implemented by streams (implementations of - * #GInputStream or #GOutputStream) that are based on file descriptors. - * - * Note that `` belongs to the UNIX-specific - * GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config - * file when using it. - * - * Since: 2.24 - */ -public template FileDescriptorBasedT(TStruct) -{ - /** Get the main Gtk struct */ - public GFileDescriptorBased* getFileDescriptorBasedStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GFileDescriptorBased*)getStruct(); - } - - - /** - * Gets the underlying file descriptor. - * - * Returns: The file descriptor - * - * Since: 2.24 - */ - public int getFd() - { - return g_file_descriptor_based_get_fd(getFileDescriptorBasedStruct()); - } -} diff --git a/generated/gtkd/gio/FileEnumerator.d b/generated/gtkd/gio/FileEnumerator.d deleted file mode 100644 index 12c148189..000000000 --- a/generated/gtkd/gio/FileEnumerator.d +++ /dev/null @@ -1,437 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileEnumerator; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.FileIF; -private import gio.FileInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import gobject.ObjectG; - - -/** - * #GFileEnumerator allows you to operate on a set of #GFiles, - * returning a #GFileInfo structure for each file enumerated (e.g. - * g_file_enumerate_children() will return a #GFileEnumerator for each - * of the children within a directory). - * - * To get the next file's information from a #GFileEnumerator, use - * g_file_enumerator_next_file() or its asynchronous version, - * g_file_enumerator_next_files_async(). Note that the asynchronous - * version will return a list of #GFileInfos, whereas the - * synchronous will only return the next file in the enumerator. - * - * The ordering of returned files is unspecified for non-Unix - * platforms; for more information, see g_dir_read_name(). On Unix, - * when operating on local files, returned files will be sorted by - * inode number. Effectively you can assume that the ordering of - * returned files will be stable between successive calls (and - * applications) assuming the directory is unchanged. - * - * If your application needs a specific ordering, such as by name or - * modification time, you will have to implement that in your - * application code. - * - * To close a #GFileEnumerator, use g_file_enumerator_close(), or - * its asynchronous version, g_file_enumerator_close_async(). Once - * a #GFileEnumerator is closed, no further actions may be performed - * on it, and it should be freed with g_object_unref(). - */ -public class FileEnumerator : ObjectG -{ - /** the main Gtk struct */ - protected GFileEnumerator* gFileEnumerator; - - /** Get the main Gtk struct */ - public GFileEnumerator* getFileEnumeratorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileEnumerator; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFileEnumerator; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileEnumerator* gFileEnumerator, bool ownedRef = false) - { - this.gFileEnumerator = gFileEnumerator; - super(cast(GObject*)gFileEnumerator, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_file_enumerator_get_type(); - } - - /** - * Releases all resources used by this enumerator, making the - * enumerator return %G_IO_ERROR_CLOSED on all calls. - * - * This will be automatically called when the last reference - * is dropped, but you might want to call this function to make - * sure resources are released as early as possible. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: #TRUE on success or #FALSE on error. - * - * Throws: GException on failure. - */ - public bool close(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_enumerator_close(gFileEnumerator, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously closes the file enumerator. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in - * g_file_enumerator_close_finish(). - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void closeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_enumerator_close_async(gFileEnumerator, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes closing a file enumerator, started from g_file_enumerator_close_async(). - * - * If the file enumerator was already closed when g_file_enumerator_close_async() - * was called, then this function will report %G_IO_ERROR_CLOSED in @error, and - * return %FALSE. If the file enumerator had pending operation when the close - * operation was started, then this function will report %G_IO_ERROR_PENDING, and - * return %FALSE. If @cancellable was not %NULL, then the operation may have been - * cancelled by triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be set, and %FALSE will be - * returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the close operation has finished successfully. - * - * Throws: GException on failure. - */ - public bool closeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_enumerator_close_finish(gFileEnumerator, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Return a new #GFile which refers to the file named by @info in the source - * directory of @enumerator. This function is primarily intended to be used - * inside loops with g_file_enumerator_next_file(). - * - * This is a convenience method that's equivalent to: - * |[ - * gchar *name = g_file_info_get_name (info); - * GFile *child = g_file_get_child (g_file_enumerator_get_container (enumr), - * name); - * ]| - * - * Params: - * info = a #GFileInfo gotten from g_file_enumerator_next_file() - * or the async equivalents. - * - * Returns: a #GFile for the #GFileInfo passed it. - * - * Since: 2.36 - */ - public FileIF getChild(FileInfo info) - { - auto __p = g_file_enumerator_get_child(gFileEnumerator, (info is null) ? null : info.getFileInfoStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Get the #GFile container which is being enumerated. - * - * Returns: the #GFile which is being enumerated. - * - * Since: 2.18 - */ - public FileIF getContainer() - { - auto __p = g_file_enumerator_get_container(gFileEnumerator); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p); - } - - /** - * Checks if the file enumerator has pending operations. - * - * Returns: %TRUE if the @enumerator has pending operations. - */ - public bool hasPending() - { - return g_file_enumerator_has_pending(gFileEnumerator) != 0; - } - - /** - * Checks if the file enumerator has been closed. - * - * Returns: %TRUE if the @enumerator is closed. - */ - public bool isClosed() - { - return g_file_enumerator_is_closed(gFileEnumerator) != 0; - } - - /** - * This is a version of g_file_enumerator_next_file() that's easier to - * use correctly from C programs. With g_file_enumerator_next_file(), - * the gboolean return value signifies "end of iteration or error", which - * requires allocation of a temporary #GError. - * - * In contrast, with this function, a %FALSE return from - * g_file_enumerator_iterate() *always* means - * "error". End of iteration is signaled by @out_info or @out_child being %NULL. - * - * Another crucial difference is that the references for @out_info and - * @out_child are owned by @direnum (they are cached as hidden - * properties). You must not unref them in your own code. This makes - * memory management significantly easier for C code in combination - * with loops. - * - * Finally, this function optionally allows retrieving a #GFile as - * well. - * - * You must specify at least one of @out_info or @out_child. - * - * The code pattern for correctly using g_file_enumerator_iterate() from C - * is: - * - * |[ - * direnum = g_file_enumerate_children (file, ...); - * while (TRUE) - * { - * GFileInfo *info; - * if (!g_file_enumerator_iterate (direnum, &info, NULL, cancellable, error)) - * goto out; - * if (!info) - * break; - * ... do stuff with "info"; do not unref it! ... - * } - * - * out: - * g_object_unref (direnum); // Note: frees the last @info - * ]| - * - * Params: - * outInfo = Output location for the next #GFileInfo, or %NULL - * outChild = Output location for the next #GFile, or %NULL - * cancellable = a #GCancellable - * - * Since: 2.44 - * - * Throws: GException on failure. - */ - public bool iterate(out FileInfo outInfo, out FileIF outChild, Cancellable cancellable) - { - GFileInfo* outoutInfo = null; - GFile* outoutChild = null; - GError* err = null; - - auto __p = g_file_enumerator_iterate(gFileEnumerator, &outoutInfo, &outoutChild, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - outInfo = ObjectG.getDObject!(FileInfo)(outoutInfo); - outChild = ObjectG.getDObject!(FileIF)(outoutChild); - - return __p; - } - - /** - * Returns information for the next file in the enumerated object. - * Will block until the information is available. The #GFileInfo - * returned from this function will contain attributes that match the - * attribute string that was passed when the #GFileEnumerator was created. - * - * See the documentation of #GFileEnumerator for information about the - * order of returned files. - * - * On error, returns %NULL and sets @error to the error. If the - * enumerator is at the end, %NULL will be returned and @error will - * be unset. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: A #GFileInfo or %NULL on error - * or end of enumerator. Free the returned object with - * g_object_unref() when no longer needed. - * - * Throws: GException on failure. - */ - public FileInfo nextFile(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_enumerator_next_file(gFileEnumerator, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Request information for a number of files from the enumerator asynchronously. - * When all i/o for the operation is finished the @callback will be called with - * the requested information. - * - * See the documentation of #GFileEnumerator for information about the - * order of returned files. - * - * The callback can be called with less than @num_files files in case of error - * or at the end of the enumerator. In case of a partial error the callback will - * be called with any succeeding items and no error, and on the next request the - * error will be reported. If a request is cancelled the callback will be called - * with %G_IO_ERROR_CANCELLED. - * - * During an async request no other sync and async calls are allowed, and will - * result in %G_IO_ERROR_PENDING errors. - * - * Any outstanding i/o request with higher priority (lower numerical value) will - * be executed before an outstanding request with lower priority. Default - * priority is %G_PRIORITY_DEFAULT. - * - * Params: - * numFiles = the number of file info objects to request - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void nextFilesAsync(int numFiles, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_enumerator_next_files_async(gFileEnumerator, numFiles, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes the asynchronous operation started with g_file_enumerator_next_files_async(). - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #GList of #GFileInfos. You must free the list with - * g_list_free() and unref the infos with g_object_unref() when you're - * done with them. - * - * Throws: GException on failure. - */ - public ListG nextFilesFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_enumerator_next_files_finish(gFileEnumerator, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Sets the file enumerator as having pending operations. - * - * Params: - * pending = a boolean value. - */ - public void setPending(bool pending) - { - g_file_enumerator_set_pending(gFileEnumerator, pending); - } -} diff --git a/generated/gtkd/gio/FileIF.d b/generated/gtkd/gio/FileIF.d deleted file mode 100644 index 3711644c6..000000000 --- a/generated/gtkd/gio/FileIF.d +++ /dev/null @@ -1,2942 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileIF; - -private import gio.AppInfoIF; -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.FileAttributeInfoList; -private import gio.FileEnumerator; -private import gio.FileIF; -private import gio.FileIOStream; -private import gio.FileInfo; -private import gio.FileInputStream; -private import gio.FileMonitor; -private import gio.FileOutputStream; -private import gio.MountIF; -private import gio.MountOperation; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GFile is a high level abstraction for manipulating files on a - * virtual file system. #GFiles are lightweight, immutable objects - * that do no I/O upon creation. It is necessary to understand that - * #GFile objects do not represent files, merely an identifier for a - * file. All file content I/O is implemented as streaming operations - * (see #GInputStream and #GOutputStream). - * - * To construct a #GFile, you can use: - * - g_file_new_for_path() if you have a path. - * - g_file_new_for_uri() if you have a URI. - * - g_file_new_for_commandline_arg() for a command line argument. - * - g_file_new_tmp() to create a temporary file from a template. - * - g_file_parse_name() from a UTF-8 string gotten from g_file_get_parse_name(). - * - g_file_new_build_filename() to create a file from path elements. - * - * One way to think of a #GFile is as an abstraction of a pathname. For - * normal files the system pathname is what is stored internally, but as - * #GFiles are extensible it could also be something else that corresponds - * to a pathname in a userspace implementation of a filesystem. - * - * #GFiles make up hierarchies of directories and files that correspond to - * the files on a filesystem. You can move through the file system with - * #GFile using g_file_get_parent() to get an identifier for the parent - * directory, g_file_get_child() to get a child within a directory, - * g_file_resolve_relative_path() to resolve a relative path between two - * #GFiles. There can be multiple hierarchies, so you may not end up at - * the same root if you repeatedly call g_file_get_parent() on two different - * files. - * - * All #GFiles have a basename (get with g_file_get_basename()). These names - * are byte strings that are used to identify the file on the filesystem - * (relative to its parent directory) and there is no guarantees that they - * have any particular charset encoding or even make any sense at all. If - * you want to use filenames in a user interface you should use the display - * name that you can get by requesting the - * %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME attribute with g_file_query_info(). - * This is guaranteed to be in UTF-8 and can be used in a user interface. - * But always store the real basename or the #GFile to use to actually - * access the file, because there is no way to go from a display name to - * the actual name. - * - * Using #GFile as an identifier has the same weaknesses as using a path - * in that there may be multiple aliases for the same file. For instance, - * hard or soft links may cause two different #GFiles to refer to the same - * file. Other possible causes for aliases are: case insensitive filesystems, - * short and long names on FAT/NTFS, or bind mounts in Linux. If you want to - * check if two #GFiles point to the same file you can query for the - * %G_FILE_ATTRIBUTE_ID_FILE attribute. Note that #GFile does some trivial - * canonicalization of pathnames passed in, so that trivial differences in - * the path string used at creation (duplicated slashes, slash at end of - * path, "." or ".." path segments, etc) does not create different #GFiles. - * - * Many #GFile operations have both synchronous and asynchronous versions - * to suit your application. Asynchronous versions of synchronous functions - * simply have _async() appended to their function names. The asynchronous - * I/O functions call a #GAsyncReadyCallback which is then used to finalize - * the operation, producing a GAsyncResult which is then passed to the - * function's matching _finish() operation. - * - * It is highly recommended to use asynchronous calls when running within a - * shared main loop, such as in the main thread of an application. This avoids - * I/O operations blocking other sources on the main loop from being dispatched. - * Synchronous I/O operations should be performed from worker threads. See the - * [introduction to asynchronous programming section][async-programming] for - * more. - * - * Some #GFile operations almost always take a noticeable amount of time, and - * so do not have synchronous analogs. Notable cases include: - * - g_file_mount_mountable() to mount a mountable file. - * - g_file_unmount_mountable_with_operation() to unmount a mountable file. - * - g_file_eject_mountable_with_operation() to eject a mountable file. - * - * ## Entity Tags # {#gfile-etag} - * - * One notable feature of #GFiles are entity tags, or "etags" for - * short. Entity tags are somewhat like a more abstract version of the - * traditional mtime, and can be used to quickly determine if the file - * has been modified from the version on the file system. See the - * HTTP 1.1 - * [specification](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) - * for HTTP Etag headers, which are a very similar concept. - */ -public interface FileIF{ - /** Get the main Gtk struct */ - public GFile* getFileStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_file_get_type(); - } - - /** - * Constructs a #GFile with the given @parse_name (i.e. something - * given by g_file_get_parse_name()). This operation never fails, - * but the returned object might not support any I/O operation if - * the @parse_name cannot be parsed. - * - * Params: - * parseName = a file name or path to be parsed - * - * Returns: a new #GFile. - */ - public static FileIF parseName(string parseName) - { - auto __p = g_file_parse_name(Str.toStringz(parseName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets an output stream for appending data to the file. - * If the file doesn't already exist it is created. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level that - * is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * Some file systems don't allow all file names, and may return an - * %G_IO_ERROR_INVALID_FILENAME error. If the file is a directory the - * %G_IO_ERROR_IS_DIRECTORY error will be returned. Other errors are - * possible too, and depend on what kind of filesystem the file is on. - * - * Params: - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileOutputStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream appendTo(GFileCreateFlags flags, Cancellable cancellable); - - /** - * Asynchronously opens @file for appending. - * - * For more details, see g_file_append_to() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_append_to_finish() to get the result - * of the operation. - * - * Params: - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void appendToAsync(GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file append operation started with - * g_file_append_to_async(). - * - * Params: - * res = #GAsyncResult - * - * Returns: a valid #GFileOutputStream - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream appendToFinish(AsyncResultIF res); - - /** - * Prepares the file attribute query string for copying to @file. - * - * This function prepares an attribute query string to be - * passed to g_file_query_info() to get a list of attributes - * normally copied with the file (see g_file_copy_attributes() - * for the detailed description). This function is used by the - * implementation of g_file_copy_attributes() and is useful - * when one needs to query and set the attributes in two - * stages (e.g., for recursive move of a directory). - * - * Params: - * flags = a set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: an attribute query string for g_file_query_info(), - * or %NULL if an error occurs. - * - * Since: 2.68 - * - * Throws: GException on failure. - */ - public string buildAttributeListForCopy(GFileCopyFlags flags, Cancellable cancellable); - - /** - * Copies the file @source to the location specified by @destination. - * Can not handle recursive copies of directories. - * - * If the flag #G_FILE_COPY_OVERWRITE is specified an already - * existing @destination file is overwritten. - * - * If the flag #G_FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks - * will be copied as symlinks, otherwise the target of the - * @source symlink will be copied. - * - * If the flag #G_FILE_COPY_ALL_METADATA is specified then all the metadata - * that is possible to copy is copied, not just the default subset (which, - * for instance, does not include the owner, see #GFileInfo). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @progress_callback is not %NULL, then the operation can be monitored - * by setting this to a #GFileProgressCallback function. - * @progress_callback_data will be passed to this function. It is guaranteed - * that this callback will be called after all data has been transferred with - * the total number of bytes copied during the operation. - * - * If the @source file does not exist, then the %G_IO_ERROR_NOT_FOUND error - * is returned, independent on the status of the @destination. - * - * If #G_FILE_COPY_OVERWRITE is not specified and the target exists, then - * the error %G_IO_ERROR_EXISTS is returned. - * - * If trying to overwrite a file over a directory, the %G_IO_ERROR_IS_DIRECTORY - * error is returned. If trying to overwrite a directory with a directory the - * %G_IO_ERROR_WOULD_MERGE error is returned. - * - * If the source is a directory and the target does not exist, or - * #G_FILE_COPY_OVERWRITE is specified and the target is a file, then the - * %G_IO_ERROR_WOULD_RECURSE error is returned. - * - * If you are interested in copying the #GFile object itself (not the on-disk - * file), see g_file_dup(). - * - * Params: - * destination = destination #GFile - * flags = set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = function to callback with - * progress information, or %NULL if progress information is not needed - * progressCallbackData = user data to pass to @progress_callback - * - * Returns: %TRUE on success, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool copy(FileIF destination, GFileCopyFlags flags, Cancellable cancellable, GFileProgressCallback progressCallback, void* progressCallbackData); - - /** - * Copies the file @source to the location specified by @destination - * asynchronously. For details of the behaviour, see g_file_copy(). - * - * If @progress_callback is not %NULL, then that function that will be called - * just like in g_file_copy(). The callback will run in the default main context - * of the thread calling g_file_copy_async() — the same context as @callback is - * run in. - * - * When the operation is finished, @callback will be called. You can then call - * g_file_copy_finish() to get the result of the operation. - * - * Params: - * destination = destination #GFile - * flags = set of #GFileCopyFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = function to callback with progress - * information, or %NULL if progress information is not needed - * progressCallbackData = user data to pass to @progress_callback - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void copyAsync(FileIF destination, GFileCopyFlags flags, int ioPriority, Cancellable cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GAsyncReadyCallback callback, void* userData); - - /** - * Copies the file attributes from @source to @destination. - * - * Normally only a subset of the file attributes are copied, - * those that are copies in a normal file copy operation - * (which for instance does not include e.g. owner). However - * if #G_FILE_COPY_ALL_METADATA is specified in @flags, then - * all the metadata that is possible to copy is copied. This - * is useful when implementing move by copy + delete source. - * - * Params: - * destination = a #GFile to copy attributes to - * flags = a set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the attributes were copied successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool copyAttributes(FileIF destination, GFileCopyFlags flags, Cancellable cancellable); - - /** - * Finishes copying the file started with g_file_copy_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool copyFinish(AsyncResultIF res); - - /** - * Creates a new file and returns an output stream for writing to it. - * The file must not already exist. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level - * that is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If a file or directory with this name already exists the - * %G_IO_ERROR_EXISTS error will be returned. Some file systems don't - * allow all file names, and may return an %G_IO_ERROR_INVALID_FILENAME - * error, and if the name is to long %G_IO_ERROR_FILENAME_TOO_LONG will - * be returned. Other errors are possible too, and depend on what kind - * of filesystem the file is on. - * - * Params: - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileOutputStream for the newly created - * file, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream create(GFileCreateFlags flags, Cancellable cancellable); - - /** - * Asynchronously creates a new file and returns an output stream - * for writing to it. The file must not already exist. - * - * For more details, see g_file_create() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_create_finish() to get the result - * of the operation. - * - * Params: - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void createAsync(GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file create operation started with - * g_file_create_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileOutputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream createFinish(AsyncResultIF res); - - /** - * Creates a new file and returns a stream for reading and - * writing to it. The file must not already exist. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level - * that is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If a file or directory with this name already exists, the - * %G_IO_ERROR_EXISTS error will be returned. Some file systems don't - * allow all file names, and may return an %G_IO_ERROR_INVALID_FILENAME - * error, and if the name is too long, %G_IO_ERROR_FILENAME_TOO_LONG - * will be returned. Other errors are possible too, and depend on what - * kind of filesystem the file is on. - * - * Note that in many non-local file cases read and write streams are - * not supported, so make sure you really need to do read and write - * streaming, rather than just opening for reading or writing. - * - * Params: - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileIOStream for the newly created - * file, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream createReadwrite(GFileCreateFlags flags, Cancellable cancellable); - - /** - * Asynchronously creates a new file and returns a stream - * for reading and writing to it. The file must not already exist. - * - * For more details, see g_file_create_readwrite() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_create_readwrite_finish() to get - * the result of the operation. - * - * Params: - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void createReadwriteAsync(GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file create operation started with - * g_file_create_readwrite_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream createReadwriteFinish(AsyncResultIF res); - - alias delet = delete_; - /** - * Deletes a file. If the @file is a directory, it will only be - * deleted if it is empty. This has the same semantics as g_unlink(). - * - * If @file doesn’t exist, %G_IO_ERROR_NOT_FOUND will be returned. This allows - * for deletion to be implemented avoiding - * [time-of-check to time-of-use races](https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use): - * |[ - * g_autoptr(GError) local_error = NULL; - * if (!g_file_delete (my_file, my_cancellable, &local_error) && - * !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) - * { - * // deletion failed for some reason other than the file not existing: - * // so report the error - * g_warning ("Failed to delete %s: %s", - * g_file_peek_path (my_file), local_error->message); - * } - * ]| - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the file was deleted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool delete_(Cancellable cancellable); - - /** - * Asynchronously delete a file. If the @file is a directory, it will - * only be deleted if it is empty. This has the same semantics as - * g_unlink(). - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.34 - */ - public void deleteAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes deleting a file started with g_file_delete_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the file was deleted. %FALSE otherwise. - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public bool deleteFinish(AsyncResultIF result); - - /** - * Duplicates a #GFile handle. This operation does not duplicate - * the actual file or directory represented by the #GFile; see - * g_file_copy() if attempting to copy a file. - * - * g_file_dup() is useful when a second handle is needed to the same underlying - * file, for use in a separate thread (#GFile is not thread-safe). For use - * within the same thread, use g_object_ref() to increment the existing object’s - * reference count. - * - * This call does no blocking I/O. - * - * Returns: a new #GFile that is a duplicate - * of the given #GFile. - */ - public FileIF dup(); - - /** - * Starts an asynchronous eject on a mountable. - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_eject_mountable_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Deprecated: Use g_file_eject_mountable_with_operation() instead. - * - * Params: - * flags = flags affecting the operation - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void ejectMountable(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous eject operation started by - * g_file_eject_mountable(). - * - * Deprecated: Use g_file_eject_mountable_with_operation_finish() - * instead. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the @file was ejected successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool ejectMountableFinish(AsyncResultIF result); - - /** - * Starts an asynchronous eject on a mountable. - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_eject_mountable_with_operation_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void ejectMountableWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous eject operation started by - * g_file_eject_mountable_with_operation(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the @file was ejected successfully. - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectMountableWithOperationFinish(AsyncResultIF result); - - /** - * Gets the requested information about the files in a directory. - * The result is a #GFileEnumerator object that will give out - * #GFileInfo objects for all the files in the directory. - * - * The @attributes value is a string that specifies the file - * attributes that should be gathered. It is not an error if - * it's not possible to read a particular requested attribute - * from a file - it just won't be set. @attributes should - * be a comma-separated list of attributes or attribute wildcards. - * The wildcard "*" means all attributes, and a wildcard like - * "standard::*" means all attributes in the standard namespace. - * An example attribute query be "standard::*,owner::user". - * The standard attributes are available as defines, like - * #G_FILE_ATTRIBUTE_STANDARD_NAME. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will - * be returned. If the file is not a directory, the %G_IO_ERROR_NOT_DIRECTORY - * error will be returned. Other errors are possible too. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: A #GFileEnumerator if successful, - * %NULL on error. Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileEnumerator enumerateChildren(string attributes, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Asynchronously gets the requested information about the files - * in a directory. The result is a #GFileEnumerator object that will - * give out #GFileInfo objects for all the files in the directory. - * - * For more details, see g_file_enumerate_children() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. You can - * then call g_file_enumerate_children_finish() to get the result of - * the operation. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void enumerateChildrenAsync(string attributes, GFileQueryInfoFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an async enumerate children operation. - * See g_file_enumerate_children_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileEnumerator or %NULL - * if an error occurred. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileEnumerator enumerateChildrenFinish(AsyncResultIF res); - - /** - * Checks if the two given #GFiles refer to the same file. - * - * Note that two #GFiles that differ can still refer to the same - * file on the filesystem due to various forms of filename - * aliasing. - * - * This call does no blocking I/O. - * - * Params: - * file2 = the second #GFile - * - * Returns: %TRUE if @file1 and @file2 are equal. - */ - public bool equal(FileIF file2); - - /** - * Gets a #GMount for the #GFile. - * - * #GMount is returned only for user interesting locations, see - * #GVolumeMonitor. If the #GFileIface for @file does not have a #mount, - * @error will be set to %G_IO_ERROR_NOT_FOUND and %NULL #will be returned. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GMount where the @file is located - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public MountIF findEnclosingMount(Cancellable cancellable); - - /** - * Asynchronously gets the mount for the file. - * - * For more details, see g_file_find_enclosing_mount() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_find_enclosing_mount_finish() to - * get the result of the operation. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void findEnclosingMountAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous find mount request. - * See g_file_find_enclosing_mount_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: #GMount for given @file or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public MountIF findEnclosingMountFinish(AsyncResultIF res); - - /** - * Gets the base name (the last component of the path) for a given #GFile. - * - * If called for the top level of a system (such as the filesystem root - * or a uri like sftp://host/) it will return a single directory separator - * (and on Windows, possibly a drive letter). - * - * The base name is a byte string (not UTF-8). It has no defined encoding - * or rules other than it may not contain zero bytes. If you want to use - * filenames in a user interface you should use the display name that you - * can get by requesting the %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME - * attribute with g_file_query_info(). - * - * This call does no blocking I/O. - * - * Returns: string containing the #GFile's - * base name, or %NULL if given #GFile is invalid. The returned string - * should be freed with g_free() when no longer needed. - */ - public string getBasename(); - - /** - * Gets a child of @file with basename equal to @name. - * - * Note that the file with that specific name might not exist, but - * you can still have a #GFile that points to it. You can use this - * for instance to create that file. - * - * This call does no blocking I/O. - * - * Params: - * name = string containing the child's basename - * - * Returns: a #GFile to a child specified by @name. - * Free the returned object with g_object_unref(). - */ - public FileIF getChild(string name); - - /** - * Gets the child of @file for a given @display_name (i.e. a UTF-8 - * version of the name). If this function fails, it returns %NULL - * and @error will be set. This is very useful when constructing a - * #GFile for a new file and the user entered the filename in the - * user interface, for instance when you select a directory and - * type a filename in the file selector. - * - * This call does no blocking I/O. - * - * Params: - * displayName = string to a possible child - * - * Returns: a #GFile to the specified child, or - * %NULL if the display name couldn't be converted. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF getChildForDisplayName(string displayName); - - /** - * Gets the parent directory for the @file. - * If the @file represents the root directory of the - * file system, then %NULL will be returned. - * - * This call does no blocking I/O. - * - * Returns: a #GFile structure to the - * parent of the given #GFile or %NULL if there is no parent. Free - * the returned object with g_object_unref(). - */ - public FileIF getParent(); - - /** - * Gets the parse name of the @file. - * A parse name is a UTF-8 string that describes the - * file such that one can get the #GFile back using - * g_file_parse_name(). - * - * This is generally used to show the #GFile as a nice - * full-pathname kind of string in a user interface, - * like in a location entry. - * - * For local files with names that can safely be converted - * to UTF-8 the pathname is used, otherwise the IRI is used - * (a form of URI that allows UTF-8 characters unescaped). - * - * This call does no blocking I/O. - * - * Returns: a string containing the #GFile's parse name. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getParseName(); - - /** - * Gets the local pathname for #GFile, if one exists. If non-%NULL, this is - * guaranteed to be an absolute, canonical path. It might contain symlinks. - * - * This call does no blocking I/O. - * - * Returns: string containing the #GFile's path, - * or %NULL if no such path exists. The returned string should be freed - * with g_free() when no longer needed. - */ - public string getPath(); - - /** - * Gets the path for @descendant relative to @parent. - * - * This call does no blocking I/O. - * - * Params: - * descendant = input #GFile - * - * Returns: string with the relative path from - * @descendant to @parent, or %NULL if @descendant doesn't have @parent as - * prefix. The returned string should be freed with g_free() when - * no longer needed. - */ - public string getRelativePath(FileIF descendant); - - /** - * Gets the URI for the @file. - * - * This call does no blocking I/O. - * - * Returns: a string containing the #GFile's URI. If the #GFile was constructed - * with an invalid URI, an invalid URI is returned. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getUri(); - - /** - * Gets the URI scheme for a #GFile. - * RFC 3986 decodes the scheme as: - * |[ - * URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] - * ]| - * Common schemes include "file", "http", "ftp", etc. - * - * The scheme can be different from the one used to construct the #GFile, - * in that it might be replaced with one that is logically equivalent to the #GFile. - * - * This call does no blocking I/O. - * - * Returns: a string containing the URI scheme for the given - * #GFile or %NULL if the #GFile was constructed with an invalid URI. The - * returned string should be freed with g_free() when no longer needed. - */ - public string getUriScheme(); - - /** - * Checks if @file has a parent, and optionally, if it is @parent. - * - * If @parent is %NULL then this function returns %TRUE if @file has any - * parent at all. If @parent is non-%NULL then %TRUE is only returned - * if @file is an immediate child of @parent. - * - * Params: - * parent = the parent to check for, or %NULL - * - * Returns: %TRUE if @file is an immediate child of @parent (or any parent in - * the case that @parent is %NULL). - * - * Since: 2.24 - */ - public bool hasParent(FileIF parent); - - /** - * Checks whether @file has the prefix specified by @prefix. - * - * In other words, if the names of initial elements of @file's - * pathname match @prefix. Only full pathname elements are matched, - * so a path like /foo is not considered a prefix of /foobar, only - * of /foo/bar. - * - * A #GFile is not a prefix of itself. If you want to check for - * equality, use g_file_equal(). - * - * This call does no I/O, as it works purely on names. As such it can - * sometimes return %FALSE even if @file is inside a @prefix (from a - * filesystem point of view), because the prefix of @file is an alias - * of @prefix. - * - * Params: - * prefix = input #GFile - * - * Returns: %TRUE if the @file's parent, grandparent, etc is @prefix, - * %FALSE otherwise. - */ - public bool hasPrefix(FileIF prefix); - - /** - * Checks to see if a #GFile has a given URI scheme. - * - * This call does no blocking I/O. - * - * Params: - * uriScheme = a string containing a URI scheme - * - * Returns: %TRUE if #GFile's backend supports the - * given URI scheme, %FALSE if URI scheme is %NULL, - * not supported, or #GFile is invalid. - */ - public bool hasUriScheme(string uriScheme); - - /** - * Creates a hash value for a #GFile. - * - * This call does no blocking I/O. - * - * Returns: 0 if @file is not a valid #GFile, otherwise an - * integer that can be used as hash value for the #GFile. - * This function is intended for easily hashing a #GFile to - * add to a #GHashTable or similar data structure. - */ - public uint hash(); - - /** - * Checks to see if a file is native to the platform. - * - * A native file is one expressed in the platform-native filename format, - * e.g. "C:\Windows" or "/usr/bin/". This does not mean the file is local, - * as it might be on a locally mounted remote filesystem. - * - * On some systems non-native files may be available using the native - * filesystem via a userspace filesystem (FUSE), in these cases this call - * will return %FALSE, but g_file_get_path() will still return a native path. - * - * This call does no blocking I/O. - * - * Returns: %TRUE if @file is native - */ - public bool isNative(); - - /** - * Loads the contents of @file and returns it as #GBytes. - * - * If @file is a resource:// based URI, the resulting bytes will reference the - * embedded resource instead of a copy. Otherwise, this is equivalent to calling - * g_file_load_contents() and g_bytes_new_take(). - * - * For resources, @etag_out will be set to %NULL. - * - * The data contained in the resulting #GBytes is always zero-terminated, but - * this is not included in the #GBytes length. The resulting #GBytes should be - * freed with g_bytes_unref() when no longer in use. - * - * Params: - * cancellable = a #GCancellable or %NULL - * etagOut = a location to place the current - * entity tag for the file, or %NULL if the entity tag is not needed - * - * Returns: a #GBytes or %NULL and @error is set - * - * Since: 2.56 - * - * Throws: GException on failure. - */ - public Bytes loadBytes(Cancellable cancellable, out string etagOut); - - /** - * Asynchronously loads the contents of @file as #GBytes. - * - * If @file is a resource:// based URI, the resulting bytes will reference the - * embedded resource instead of a copy. Otherwise, this is equivalent to calling - * g_file_load_contents_async() and g_bytes_new_take(). - * - * @callback should call g_file_load_bytes_finish() to get the result of this - * asynchronous operation. - * - * See g_file_load_bytes() for more information. - * - * Params: - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.56 - */ - public void loadBytesAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Completes an asynchronous request to g_file_load_bytes_async(). - * - * For resources, @etag_out will be set to %NULL. - * - * The data contained in the resulting #GBytes is always zero-terminated, but - * this is not included in the #GBytes length. The resulting #GBytes should be - * freed with g_bytes_unref() when no longer in use. - * - * See g_file_load_bytes() for more information. - * - * Params: - * result = a #GAsyncResult provided to the callback - * etagOut = a location to place the current - * entity tag for the file, or %NULL if the entity tag is not needed - * - * Returns: a #GBytes or %NULL and @error is set - * - * Since: 2.56 - * - * Throws: GException on failure. - */ - public Bytes loadBytesFinish(AsyncResultIF result, out string etagOut); - - /** - * Loads the content of the file into memory. The data is always - * zero-terminated, but this is not included in the resultant @length. - * The returned @contents should be freed with g_free() when no longer - * needed. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * contents = a location to place the contents of the file - * etagOut = a location to place the current entity tag for the file, - * or %NULL if the entity tag is not needed - * - * Returns: %TRUE if the @file's contents were successfully loaded. - * %FALSE if there were errors. - * - * Throws: GException on failure. - */ - public bool loadContents(Cancellable cancellable, out string contents, out string etagOut); - - /** - * Starts an asynchronous load of the @file's contents. - * - * For more details, see g_file_load_contents() which is - * the synchronous version of this call. - * - * When the load operation has completed, @callback will be called - * with @user data. To finish the operation, call - * g_file_load_contents_finish() with the #GAsyncResult returned by - * the @callback. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void loadContentsAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous load of the @file's contents. - * The contents are placed in @contents, and @length is set to the - * size of the @contents string. The @contents should be freed with - * g_free() when no longer needed. If @etag_out is present, it will be - * set to the new entity tag for the @file. - * - * Params: - * res = a #GAsyncResult - * contents = a location to place the contents of the file - * etagOut = a location to place the current entity tag for the file, - * or %NULL if the entity tag is not needed - * - * Returns: %TRUE if the load was successful. If %FALSE and @error is - * present, it will be set appropriately. - * - * Throws: GException on failure. - */ - public bool loadContentsFinish(AsyncResultIF res, out string contents, out string etagOut); - - /** - * Reads the partial contents of a file. A #GFileReadMoreCallback should - * be used to stop reading from the file when appropriate, else this - * function will behave exactly as g_file_load_contents_async(). This - * operation can be finished by g_file_load_partial_contents_finish(). - * - * Users of this function should be aware that @user_data is passed to - * both the @read_more_callback and the @callback. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * readMoreCallback = a - * #GFileReadMoreCallback to receive partial data - * and to specify whether further data should be read - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to the callback functions - */ - public void loadPartialContentsAsync(Cancellable cancellable, GFileReadMoreCallback readMoreCallback, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous partial load operation that was started - * with g_file_load_partial_contents_async(). The data is always - * zero-terminated, but this is not included in the resultant @length. - * The returned @contents should be freed with g_free() when no longer - * needed. - * - * Params: - * res = a #GAsyncResult - * contents = a location to place the contents of the file - * etagOut = a location to place the current entity tag for the file, - * or %NULL if the entity tag is not needed - * - * Returns: %TRUE if the load was successful. If %FALSE and @error is - * present, it will be set appropriately. - * - * Throws: GException on failure. - */ - public bool loadPartialContentsFinish(AsyncResultIF res, out string contents, out string etagOut); - - /** - * Creates a directory. Note that this will only create a child directory - * of the immediate parent directory of the path or URI given by the #GFile. - * To recursively create directories, see g_file_make_directory_with_parents(). - * This function will fail if the parent directory does not exist, setting - * @error to %G_IO_ERROR_NOT_FOUND. If the file system doesn't support - * creating directories, this function will fail, setting @error to - * %G_IO_ERROR_NOT_SUPPORTED. - * - * For a local #GFile the newly created directory will have the default - * (current) ownership and permissions of the current process. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE on successful creation, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool makeDirectory(Cancellable cancellable); - - /** - * Asynchronously creates a directory. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.38 - */ - public void makeDirectoryAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous directory creation, started with - * g_file_make_directory_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on successful directory creation, %FALSE otherwise. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool makeDirectoryFinish(AsyncResultIF result); - - /** - * Creates a directory and any parent directories that may not - * exist similar to 'mkdir -p'. If the file system does not support - * creating directories, this function will fail, setting @error to - * %G_IO_ERROR_NOT_SUPPORTED. If the directory itself already exists, - * this function will fail setting @error to %G_IO_ERROR_EXISTS, unlike - * the similar g_mkdir_with_parents(). - * - * For a local #GFile the newly created directories will have the default - * (current) ownership and permissions of the current process. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if all directories have been successfully created, %FALSE - * otherwise. - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public bool makeDirectoryWithParents(Cancellable cancellable); - - /** - * Creates a symbolic link named @file which contains the string - * @symlink_value. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * symlinkValue = a string with the path for the target - * of the new symlink - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE on the creation of a new symlink, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool makeSymbolicLink(string symlinkValue, Cancellable cancellable); - - /** - * Recursively measures the disk usage of @file. - * - * This is essentially an analog of the 'du' command, but it also - * reports the number of directories and non-directory files encountered - * (including things like symbolic links). - * - * By default, errors are only reported against the toplevel file - * itself. Errors found while recursing are silently ignored, unless - * %G_FILE_MEASURE_REPORT_ANY_ERROR is given in @flags. - * - * The returned size, @disk_usage, is in bytes and should be formatted - * with g_format_size() in order to get something reasonable for showing - * in a user interface. - * - * @progress_callback and @progress_data can be given to request - * periodic progress updates while scanning. See the documentation for - * #GFileMeasureProgressCallback for information about when and how the - * callback will be invoked. - * - * Params: - * flags = #GFileMeasureFlags - * cancellable = optional #GCancellable - * progressCallback = a #GFileMeasureProgressCallback - * progressData = user_data for @progress_callback - * diskUsage = the number of bytes of disk space used - * numDirs = the number of directories encountered - * numFiles = the number of non-directories encountered - * - * Returns: %TRUE if successful, with the out parameters set. - * %FALSE otherwise, with @error set. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool measureDiskUsage(GFileMeasureFlags flags, Cancellable cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, out ulong diskUsage, out ulong numDirs, out ulong numFiles); - - /** - * Recursively measures the disk usage of @file. - * - * This is the asynchronous version of g_file_measure_disk_usage(). See - * there for more information. - * - * Params: - * flags = #GFileMeasureFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable - * progressCallback = a #GFileMeasureProgressCallback - * progressData = user_data for @progress_callback - * callback = a #GAsyncReadyCallback to call when complete - * userData = the data to pass to callback function - * - * Since: 2.38 - */ - public void measureDiskUsageAsync(GFileMeasureFlags flags, int ioPriority, Cancellable cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, GAsyncReadyCallback callback, void* userData); - - /** - * Collects the results from an earlier call to - * g_file_measure_disk_usage_async(). See g_file_measure_disk_usage() for - * more information. - * - * Params: - * result = the #GAsyncResult passed to your #GAsyncReadyCallback - * diskUsage = the number of bytes of disk space used - * numDirs = the number of directories encountered - * numFiles = the number of non-directories encountered - * - * Returns: %TRUE if successful, with the out parameters set. - * %FALSE otherwise, with @error set. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool measureDiskUsageFinish(AsyncResultIF result, out ulong diskUsage, out ulong numDirs, out ulong numFiles); - - /** - * Obtains a file or directory monitor for the given file, - * depending on the type of the file. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public FileMonitor monitor(GFileMonitorFlags flags, Cancellable cancellable); - - /** - * Obtains a directory monitor for the given file. - * This may fail if directory monitoring is not supported. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * It does not make sense for @flags to contain - * %G_FILE_MONITOR_WATCH_HARD_LINKS, since hard links can not be made to - * directories. It is not possible to monitor all the files in a - * directory for changes made via hard links; if you want to do this then - * you must register individual watches with g_file_monitor(). - * - * Params: - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileMonitor monitorDirectory(GFileMonitorFlags flags, Cancellable cancellable); - - /** - * Obtains a file monitor for the given file. If no file notification - * mechanism exists, then regular polling of the file is used. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @flags contains %G_FILE_MONITOR_WATCH_HARD_LINKS then the monitor - * will also attempt to report changes made to the file via another - * filename (ie, a hard link). Without this flag, you can only rely on - * changes made through the filename contained in @file to be - * reported. Using this flag may result in an increase in resource - * usage, and may not have any effect depending on the #GFileMonitor - * backend and/or filesystem type. - * - * Params: - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileMonitor monitorFile(GFileMonitorFlags flags, Cancellable cancellable); - - /** - * Starts a @mount_operation, mounting the volume that contains - * the file @location. - * - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_mount_enclosing_volume_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void mountEnclosingVolume(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes a mount operation started by g_file_mount_enclosing_volume(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if successful. If an error has occurred, - * this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - public bool mountEnclosingVolumeFinish(AsyncResultIF result); - - /** - * Mounts a file of type G_FILE_TYPE_MOUNTABLE. - * Using @mount_operation, you can request callbacks when, for instance, - * passwords are needed during authentication. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_mount_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void mountMountable(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes a mount operation. See g_file_mount_mountable() for details. - * - * Finish an asynchronous mount operation that was started - * with g_file_mount_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #GFile or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF mountMountableFinish(AsyncResultIF result); - - /** - * Tries to move the file or directory @source to the location specified - * by @destination. If native move operations are supported then this is - * used, otherwise a copy + delete fallback is used. The native - * implementation may support moving directories (for instance on moves - * inside the same filesystem), but the fallback code does not. - * - * If the flag #G_FILE_COPY_OVERWRITE is specified an already - * existing @destination file is overwritten. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @progress_callback is not %NULL, then the operation can be monitored - * by setting this to a #GFileProgressCallback function. - * @progress_callback_data will be passed to this function. It is - * guaranteed that this callback will be called after all data has been - * transferred with the total number of bytes copied during the operation. - * - * If the @source file does not exist, then the %G_IO_ERROR_NOT_FOUND - * error is returned, independent on the status of the @destination. - * - * If #G_FILE_COPY_OVERWRITE is not specified and the target exists, - * then the error %G_IO_ERROR_EXISTS is returned. - * - * If trying to overwrite a file over a directory, the %G_IO_ERROR_IS_DIRECTORY - * error is returned. If trying to overwrite a directory with a directory the - * %G_IO_ERROR_WOULD_MERGE error is returned. - * - * If the source is a directory and the target does not exist, or - * #G_FILE_COPY_OVERWRITE is specified and the target is a file, then - * the %G_IO_ERROR_WOULD_RECURSE error may be returned (if the native - * move operation isn't available). - * - * Params: - * destination = #GFile pointing to the destination location - * flags = set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = #GFileProgressCallback - * function for updates - * progressCallbackData = gpointer to user data for - * the callback function - * - * Returns: %TRUE on successful move, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool move(FileIF destination, GFileCopyFlags flags, Cancellable cancellable, GFileProgressCallback progressCallback, void* progressCallbackData); - - /** - * Opens an existing file for reading and writing. The result is - * a #GFileIOStream that can be used to read and write the contents - * of the file. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will - * be returned. If the file is a directory, the %G_IO_ERROR_IS_DIRECTORY - * error will be returned. Other errors are possible too, and depend on - * what kind of filesystem the file is on. Note that in many non-local - * file cases read and write streams are not supported, so make sure you - * really need to do read and write streaming, rather than just opening - * for reading or writing. - * - * Params: - * cancellable = a #GCancellable - * - * Returns: #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream openReadwrite(Cancellable cancellable); - - /** - * Asynchronously opens @file for reading and writing. - * - * For more details, see g_file_open_readwrite() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_open_readwrite_finish() to get - * the result of the operation. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void openReadwriteAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file read operation started with - * g_file_open_readwrite_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream openReadwriteFinish(AsyncResultIF res); - - /** - * Exactly like g_file_get_path(), but caches the result via - * g_object_set_qdata_full(). This is useful for example in C - * applications which mix `g_file_*` APIs with native ones. It - * also avoids an extra duplicated string when possible, so will be - * generally more efficient. - * - * This call does no blocking I/O. - * - * Returns: string containing the #GFile's path, - * or %NULL if no such path exists. The returned string is owned by @file. - * - * Since: 2.56 - */ - public string peekPath(); - - /** - * Polls a file of type #G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_mount_mountable_finish() to get - * the result of the operation. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void pollMountable(Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes a poll operation. See g_file_poll_mountable() for details. - * - * Finish an asynchronous poll operation that was polled - * with g_file_poll_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. %FALSE - * otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool pollMountableFinish(AsyncResultIF result); - - /** - * Returns the #GAppInfo that is registered as the default - * application to handle the file specified by @file. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: a #GAppInfo if the handle was found, - * %NULL if there were errors. - * When you are done with it, release it with g_object_unref() - * - * Throws: GException on failure. - */ - public AppInfoIF queryDefaultHandler(Cancellable cancellable); - - /** - * Async version of g_file_query_default_handler(). - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is done - * userData = data to pass to @callback - * - * Since: 2.60 - */ - public void queryDefaultHandlerAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes a g_file_query_default_handler_async() operation. - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #GAppInfo if the handle was found, - * %NULL if there were errors. - * When you are done with it, release it with g_object_unref() - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public AppInfoIF queryDefaultHandlerFinish(AsyncResultIF result); - - /** - * Utility function to check if a particular file exists. This is - * implemented using g_file_query_info() and as such does blocking I/O. - * - * Note that in many cases it is [racy to first check for file existence](https://en.wikipedia.org/wiki/Time_of_check_to_time_of_use) - * and then execute something based on the outcome of that, because the - * file might have been created or removed in between the operations. The - * general approach to handling that is to not check, but just do the - * operation and handle the errors as they come. - * - * As an example of race-free checking, take the case of reading a file, - * and if it doesn't exist, creating it. There are two racy versions: read - * it, and on error create it; and: check if it exists, if not create it. - * These can both result in two processes creating the file (with perhaps - * a partially written file as the result). The correct approach is to - * always try to create the file with g_file_create() which will either - * atomically create the file or fail with a %G_IO_ERROR_EXISTS error. - * - * However, in many cases an existence check is useful in a user interface, - * for instance to make a menu item sensitive/insensitive, so that you don't - * have to fool users that something is possible and then just show an error - * dialog. If you do this, you should make sure to also handle the errors - * that can happen due to races when you execute the operation. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the file exists (and can be detected without error), - * %FALSE otherwise (or if cancelled). - */ - public bool queryExists(Cancellable cancellable); - - /** - * Utility function to inspect the #GFileType of a file. This is - * implemented using g_file_query_info() and as such does blocking I/O. - * - * The primary use case of this method is to check if a file is - * a regular file, directory, or symlink. - * - * Params: - * flags = a set of #GFileQueryInfoFlags passed to g_file_query_info() - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: The #GFileType of the file and #G_FILE_TYPE_UNKNOWN - * if the file does not exist - * - * Since: 2.18 - */ - public GFileType queryFileType(GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Similar to g_file_query_info(), but obtains information - * about the filesystem the @file is on, rather than the file itself. - * For instance the amount of space available and the type of - * the filesystem. - * - * The @attributes value is a string that specifies the attributes - * that should be gathered. It is not an error if it's not possible - * to read a particular requested attribute from a file - it just - * won't be set. @attributes should be a comma-separated list of - * attributes or attribute wildcards. The wildcard "*" means all - * attributes, and a wildcard like "filesystem::*" means all attributes - * in the filesystem namespace. The standard namespace for filesystem - * attributes is "filesystem". Common attributes of interest are - * #G_FILE_ATTRIBUTE_FILESYSTEM_SIZE (the total size of the filesystem - * in bytes), #G_FILE_ATTRIBUTE_FILESYSTEM_FREE (number of bytes available), - * and #G_FILE_ATTRIBUTE_FILESYSTEM_TYPE (type of the filesystem). - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will - * be returned. Other errors are possible too, and depend on what - * kind of filesystem the file is on. - * - * Params: - * attributes = an attribute query string - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileInfo or %NULL if there was an error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryFilesystemInfo(string attributes, Cancellable cancellable); - - /** - * Asynchronously gets the requested information about the filesystem - * that the specified @file is on. The result is a #GFileInfo object - * that contains key-value attributes (such as type or size for the - * file). - * - * For more details, see g_file_query_filesystem_info() which is the - * synchronous version of this call. - * - * When the operation is finished, @callback will be called. You can - * then call g_file_query_info_finish() to get the result of the - * operation. - * - * Params: - * attributes = an attribute query string - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void queryFilesystemInfoAsync(string attributes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous filesystem info query. - * See g_file_query_filesystem_info_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: #GFileInfo for given @file - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryFilesystemInfoFinish(AsyncResultIF res); - - /** - * Gets the requested information about specified @file. - * The result is a #GFileInfo object that contains key-value - * attributes (such as the type or size of the file). - * - * The @attributes value is a string that specifies the file - * attributes that should be gathered. It is not an error if - * it's not possible to read a particular requested attribute - * from a file - it just won't be set. @attributes should be a - * comma-separated list of attributes or attribute wildcards. - * The wildcard "*" means all attributes, and a wildcard like - * "standard::*" means all attributes in the standard namespace. - * An example attribute query be "standard::*,owner::user". - * The standard attributes are available as defines, like - * #G_FILE_ATTRIBUTE_STANDARD_NAME. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * For symlinks, normally the information about the target of the - * symlink is returned, rather than information about the symlink - * itself. However if you pass #G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS - * in @flags the information about the symlink itself will be returned. - * Also, for symlinks that point to non-existing files the information - * about the symlink itself will be returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will be - * returned. Other errors are possible too, and depend on what kind of - * filesystem the file is on. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileInfo for the given @file, or %NULL - * on error. Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryInfo(string attributes, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Asynchronously gets the requested information about specified @file. - * The result is a #GFileInfo object that contains key-value attributes - * (such as type or size for the file). - * - * For more details, see g_file_query_info() which is the synchronous - * version of this call. - * - * When the operation is finished, @callback will be called. You can - * then call g_file_query_info_finish() to get the result of the operation. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void queryInfoAsync(string attributes, GFileQueryInfoFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file info query. - * See g_file_query_info_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: #GFileInfo for given @file - * or %NULL on error. Free the returned object with - * g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryInfoFinish(AsyncResultIF res); - - /** - * Obtain the list of settable attributes for the file. - * - * Returns the type and full attribute name of all the attributes - * that can be set on this file. This doesn't mean setting it will - * always succeed though, you might get an access failure, or some - * specific file may not support a specific attribute. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileAttributeInfoList describing the settable attributes. - * When you are done with it, release it with - * g_file_attribute_info_list_unref() - * - * Throws: GException on failure. - */ - public FileAttributeInfoList querySettableAttributes(Cancellable cancellable); - - /** - * Obtain the list of attribute namespaces where new attributes - * can be created by a user. An example of this is extended - * attributes (in the "xattr" namespace). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileAttributeInfoList describing the writable namespaces. - * When you are done with it, release it with - * g_file_attribute_info_list_unref() - * - * Throws: GException on failure. - */ - public FileAttributeInfoList queryWritableNamespaces(Cancellable cancellable); - - /** - * Opens a file for reading. The result is a #GFileInputStream that - * can be used to read the contents of the file. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will be - * returned. If the file is a directory, the %G_IO_ERROR_IS_DIRECTORY - * error will be returned. Other errors are possible too, and depend - * on what kind of filesystem the file is on. - * - * Params: - * cancellable = a #GCancellable - * - * Returns: #GFileInputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInputStream read(Cancellable cancellable); - - /** - * Asynchronously opens @file for reading. - * - * For more details, see g_file_read() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_read_finish() to get the result - * of the operation. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void readAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file read operation started with - * g_file_read_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileInputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInputStream readFinish(AsyncResultIF res); - - /** - * Returns an output stream for overwriting the file, possibly - * creating a backup copy of the file first. If the file doesn't exist, - * it will be created. - * - * This will try to replace the file in the safest way possible so - * that any errors during the writing will not affect an already - * existing copy of the file. For instance, for local files it - * may write to a temporary file and then atomically rename over - * the destination when the stream is closed. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level that - * is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If you pass in a non-%NULL @etag value and @file already exists, then - * this value is compared to the current entity tag of the file, and if - * they differ an %G_IO_ERROR_WRONG_ETAG error is returned. This - * generally means that the file has been changed since you last read - * it. You can get the new etag from g_file_output_stream_get_etag() - * after you've finished writing and closed the #GFileOutputStream. When - * you load a new file you can use g_file_input_stream_query_info() to - * get the etag of the file. - * - * If @make_backup is %TRUE, this function will attempt to make a - * backup of the current file before overwriting it. If this fails - * a %G_IO_ERROR_CANT_CREATE_BACKUP error will be returned. If you - * want to replace anyway, try again with @make_backup set to %FALSE. - * - * If the file is a directory the %G_IO_ERROR_IS_DIRECTORY error will - * be returned, and if the file is some other form of non-regular file - * then a %G_IO_ERROR_NOT_REGULAR_FILE error will be returned. Some - * file systems don't allow all file names, and may return an - * %G_IO_ERROR_INVALID_FILENAME error, and if the name is to long - * %G_IO_ERROR_FILENAME_TOO_LONG will be returned. Other errors are - * possible too, and depend on what kind of filesystem the file is on. - * - * Params: - * etag = an optional [entity tag][gfile-etag] - * for the current #GFile, or #NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileOutputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream replace(string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable); - - /** - * Asynchronously overwrites the file, replacing the contents, - * possibly creating a backup copy of the file first. - * - * For more details, see g_file_replace() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_replace_finish() to get the result - * of the operation. - * - * Params: - * etag = an [entity tag][gfile-etag] for the current #GFile, - * or %NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void replaceAsync(string etag, bool makeBackup, GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Replaces the contents of @file with @contents of @length bytes. - * - * If @etag is specified (not %NULL), any existing file must have that etag, - * or the error %G_IO_ERROR_WRONG_ETAG will be returned. - * - * If @make_backup is %TRUE, this function will attempt to make a backup - * of @file. Internally, it uses g_file_replace(), so will try to replace the - * file contents in the safest way possible. For example, atomic renames are - * used when replacing local files’ contents. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * The returned @new_etag can be used to verify that the file hasn't - * changed the next time it is saved over. - * - * Params: - * contents = a string containing the new contents for @file - * etag = the old [entity-tag][gfile-etag] for the document, - * or %NULL - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * newEtag = a location to a new [entity tag][gfile-etag] - * for the document. This should be freed with g_free() when no longer - * needed, or %NULL - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: %TRUE if successful. If an error has occurred, this function - * will return %FALSE and set @error appropriately if present. - * - * Throws: GException on failure. - */ - public bool replaceContents(string contents, string etag, bool makeBackup, GFileCreateFlags flags, out string newEtag, Cancellable cancellable); - - /** - * Starts an asynchronous replacement of @file with the given - * @contents of @length bytes. @etag will replace the document's - * current entity tag. - * - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_replace_contents_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @make_backup is %TRUE, this function will attempt to - * make a backup of @file. - * - * Note that no copy of @contents will be made, so it must stay valid - * until @callback is called. See g_file_replace_contents_bytes_async() - * for a #GBytes version that will automatically hold a reference to the - * contents (without copying) for the duration of the call. - * - * Params: - * contents = string of contents to replace the file with - * etag = a new [entity tag][gfile-etag] for the @file, or %NULL - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void replaceContentsAsync(string contents, string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Same as g_file_replace_contents_async() but takes a #GBytes input instead. - * This function will keep a ref on @contents until the operation is done. - * Unlike g_file_replace_contents_async() this allows forgetting about the - * content without waiting for the callback. - * - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_replace_contents_finish(). - * - * Params: - * contents = a #GBytes - * etag = a new [entity tag][gfile-etag] for the @file, or %NULL - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.40 - */ - public void replaceContentsBytesAsync(Bytes contents, string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous replace of the given @file. See - * g_file_replace_contents_async(). Sets @new_etag to the new entity - * tag for the document, if present. - * - * Params: - * res = a #GAsyncResult - * newEtag = a location of a new [entity tag][gfile-etag] - * for the document. This should be freed with g_free() when it is no - * longer needed, or %NULL - * - * Returns: %TRUE on success, %FALSE on failure. - * - * Throws: GException on failure. - */ - public bool replaceContentsFinish(AsyncResultIF res, out string newEtag); - - /** - * Finishes an asynchronous file replace operation started with - * g_file_replace_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileOutputStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream replaceFinish(AsyncResultIF res); - - /** - * Returns an output stream for overwriting the file in readwrite mode, - * possibly creating a backup copy of the file first. If the file doesn't - * exist, it will be created. - * - * For details about the behaviour, see g_file_replace() which does the - * same thing but returns an output stream only. - * - * Note that in many non-local file cases read and write streams are not - * supported, so make sure you really need to do read and write streaming, - * rather than just opening for reading or writing. - * - * Params: - * etag = an optional [entity tag][gfile-etag] - * for the current #GFile, or #NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream replaceReadwrite(string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable); - - /** - * Asynchronously overwrites the file in read-write mode, - * replacing the contents, possibly creating a backup copy - * of the file first. - * - * For more details, see g_file_replace_readwrite() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_replace_readwrite_finish() to get - * the result of the operation. - * - * Params: - * etag = an [entity tag][gfile-etag] for the current #GFile, - * or %NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void replaceReadwriteAsync(string etag, bool makeBackup, GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file replace operation started with - * g_file_replace_readwrite_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileIOStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream replaceReadwriteFinish(AsyncResultIF res); - - /** - * Resolves a relative path for @file to an absolute path. - * - * This call does no blocking I/O. - * - * Params: - * relativePath = a given relative path string - * - * Returns: #GFile to the resolved path. - * %NULL if @relative_path is %NULL or if @file is invalid. - * Free the returned object with g_object_unref(). - */ - public FileIF resolveRelativePath(string relativePath); - - /** - * Sets an attribute in the file with attribute name @attribute to @value_p. - * - * Some attributes can be unset by setting @type to - * %G_FILE_ATTRIBUTE_TYPE_INVALID and @value_p to %NULL. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * type = The type of the attribute - * valueP = a pointer to the value (or the pointer - * itself if the type is a pointer type) - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the attribute was set, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttribute(string attribute, GFileAttributeType type, void* valueP, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING to @value. - * If @attribute is of a different type, this operation will fail, - * returning %FALSE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a string containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeByteString(string attribute, string value, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_INT32 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #gint32 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeInt32(string attribute, int value, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_INT64 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #guint64 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeInt64(string attribute, long value, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_STRING to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a string containing the attribute's value - * flags = #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeString(string attribute, string value, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_UINT32 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #guint32 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeUint32(string attribute, uint value, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_UINT64 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #guint64 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeUint64(string attribute, ulong value, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Asynchronously sets the attributes of @file with @info. - * - * For more details, see g_file_set_attributes_from_info(), - * which is the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_set_attributes_finish() to get - * the result of the operation. - * - * Params: - * info = a #GFileInfo - * flags = a #GFileQueryInfoFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback - * userData = a #gpointer - */ - public void setAttributesAsync(FileInfo info, GFileQueryInfoFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes setting an attribute started in g_file_set_attributes_async(). - * - * Params: - * result = a #GAsyncResult - * info = a #GFileInfo - * - * Returns: %TRUE if the attributes were set correctly, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributesFinish(AsyncResultIF result, out FileInfo info); - - /** - * Tries to set all attributes in the #GFileInfo on the target - * values, not stopping on the first error. - * - * If there is any error during this operation then @error will - * be set to the first error. Error on particular fields are flagged - * by setting the "status" field in the attribute value to - * %G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can - * also detect further errors. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * info = a #GFileInfo - * flags = #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %FALSE if there was any error, %TRUE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributesFromInfo(FileInfo info, GFileQueryInfoFlags flags, Cancellable cancellable); - - /** - * Renames @file to the specified display name. - * - * The display name is converted from UTF-8 to the correct encoding - * for the target filesystem if possible and the @file is renamed to this. - * - * If you want to implement a rename operation in the user interface the - * edit name (#G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME) should be used as the - * initial value in the rename widget, and then the result after editing - * should be passed to g_file_set_display_name(). - * - * On success the resulting converted filename is returned. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * displayName = a string - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFile specifying what @file was renamed to, - * or %NULL if there was an error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF setDisplayName(string displayName, Cancellable cancellable); - - /** - * Asynchronously sets the display name for a given #GFile. - * - * For more details, see g_file_set_display_name() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_set_display_name_finish() to get - * the result of the operation. - * - * Params: - * displayName = a string - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void setDisplayNameAsync(string displayName, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes setting a display name started with - * g_file_set_display_name_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFile or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF setDisplayNameFinish(AsyncResultIF res); - - /** - * Starts a file of type #G_FILE_TYPE_MOUNTABLE. - * Using @start_operation, you can request callbacks when, for instance, - * passwords are needed during authentication. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_mount_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * startOperation = a #GMountOperation, or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void startMountable(GDriveStartFlags flags, MountOperation startOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes a start operation. See g_file_start_mountable() for details. - * - * Finish an asynchronous start operation that was started - * with g_file_start_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. %FALSE - * otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool startMountableFinish(AsyncResultIF result); - - /** - * Stops a file of type #G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_stop_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction. - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void stopMountable(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes a stop operation, see g_file_stop_mountable() for details. - * - * Finish an asynchronous stop operation that was started - * with g_file_stop_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool stopMountableFinish(AsyncResultIF result); - - /** - * Checks if @file supports - * [thread-default contexts][g-main-context-push-thread-default-context]. - * If this returns %FALSE, you cannot perform asynchronous operations on - * @file in a thread that has a thread-default context. - * - * Returns: Whether or not @file supports thread-default contexts. - * - * Since: 2.22 - */ - public bool supportsThreadContexts(); - - /** - * Sends @file to the "Trashcan", if possible. This is similar to - * deleting it, but the user can recover it before emptying the trashcan. - * Not all file systems support trashing, so this call can return the - * %G_IO_ERROR_NOT_SUPPORTED error. Since GLib 2.66, the `x-gvfs-notrash` unix - * mount option can be used to disable g_file_trash() support for certain - * mounts, the %G_IO_ERROR_NOT_SUPPORTED error will be returned in that case. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE on successful trash, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool trash(Cancellable cancellable); - - /** - * Asynchronously sends @file to the Trash location, if possible. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.38 - */ - public void trashAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous file trashing operation, started with - * g_file_trash_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on successful trash, %FALSE otherwise. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool trashFinish(AsyncResultIF result); - - /** - * Unmounts a file of type G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_unmount_mountable_finish() to get - * the result of the operation. - * - * Deprecated: Use g_file_unmount_mountable_with_operation() instead. - * - * Params: - * flags = flags affecting the operation - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void unmountMountable(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an unmount operation, see g_file_unmount_mountable() for details. - * - * Finish an asynchronous unmount operation that was started - * with g_file_unmount_mountable(). - * - * Deprecated: Use g_file_unmount_mountable_with_operation_finish() - * instead. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool unmountMountableFinish(AsyncResultIF result); - - /** - * Unmounts a file of type #G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_unmount_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void unmountMountableWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an unmount operation, - * see g_file_unmount_mountable_with_operation() for details. - * - * Finish an asynchronous unmount operation that was started - * with g_file_unmount_mountable_with_operation(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool unmountMountableWithOperationFinish(AsyncResultIF result); -} diff --git a/generated/gtkd/gio/FileIOStream.d b/generated/gtkd/gio/FileIOStream.d deleted file mode 100644 index 4a0854208..000000000 --- a/generated/gtkd/gio/FileIOStream.d +++ /dev/null @@ -1,222 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileIOStream; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.FileInfo; -private import gio.IOStream; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * GFileIOStream provides io streams that both read and write to the same - * file handle. - * - * GFileIOStream implements #GSeekable, which allows the io - * stream to jump to arbitrary positions in the file and to truncate - * the file, provided the filesystem of the file supports these - * operations. - * - * To find the position of a file io stream, use - * g_seekable_tell(). - * - * To find out if a file io stream supports seeking, use g_seekable_can_seek(). - * To position a file io stream, use g_seekable_seek(). - * To find out if a file io stream supports truncating, use - * g_seekable_can_truncate(). To truncate a file io - * stream, use g_seekable_truncate(). - * - * The default implementation of all the #GFileIOStream operations - * and the implementation of #GSeekable just call into the same operations - * on the output stream. - * - * Since: 2.22 - */ -public class FileIOStream : IOStream, SeekableIF -{ - /** the main Gtk struct */ - protected GFileIOStream* gFileIOStream; - - /** Get the main Gtk struct */ - public GFileIOStream* getFileIOStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileIOStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFileIOStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileIOStream* gFileIOStream, bool ownedRef = false) - { - this.gFileIOStream = gFileIOStream; - super(cast(GIOStream*)gFileIOStream, ownedRef); - } - - // add the Seekable capabilities - mixin SeekableT!(GFileIOStream); - - - /** */ - public static GType getType() - { - return g_file_io_stream_get_type(); - } - - /** - * Gets the entity tag for the file when it has been written. - * This must be called after the stream has been written - * and closed, as the etag can change while writing. - * - * Returns: the entity tag for the stream. - * - * Since: 2.22 - */ - public string getEtag() - { - auto retStr = g_file_io_stream_get_etag(gFileIOStream); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Queries a file io stream for the given @attributes. - * This function blocks while querying the stream. For the asynchronous - * version of this function, see g_file_io_stream_query_info_async(). - * While the stream is blocked, the stream will set the pending flag - * internally, and any other operations on the stream will fail with - * %G_IO_ERROR_PENDING. - * - * Can fail if the stream was already closed (with @error being set to - * %G_IO_ERROR_CLOSED), the stream has pending operations (with @error being - * set to %G_IO_ERROR_PENDING), or if querying info is not supported for - * the stream's interface (with @error being set to %G_IO_ERROR_NOT_SUPPORTED). I - * all cases of failure, %NULL will be returned. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be set, and %NULL will - * be returned. - * - * Params: - * attributes = a file attribute query string. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #GFileInfo for the @stream, or %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileInfo queryInfo(string attributes, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_io_stream_query_info(gFileIOStream, Str.toStringz(attributes), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Asynchronously queries the @stream for a #GFileInfo. When completed, - * @callback will be called with a #GAsyncResult which can be used to - * finish the operation with g_file_io_stream_query_info_finish(). - * - * For the synchronous version of this function, see - * g_file_io_stream_query_info(). - * - * Params: - * attributes = a file attribute query string. - * ioPriority = the [I/O priority][gio-GIOScheduler] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void queryInfoAsync(string attributes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_io_stream_query_info_async(gFileIOStream, Str.toStringz(attributes), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finalizes the asynchronous query started - * by g_file_io_stream_query_info_async(). - * - * Params: - * result = a #GAsyncResult. - * - * Returns: A #GFileInfo for the finished query. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileInfo queryInfoFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_io_stream_query_info_finish(gFileIOStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } -} diff --git a/generated/gtkd/gio/FileIcon.d b/generated/gtkd/gio/FileIcon.d deleted file mode 100644 index 33afdb5fc..000000000 --- a/generated/gtkd/gio/FileIcon.d +++ /dev/null @@ -1,122 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileIcon; - -private import gio.FileIF; -private import gio.IconIF; -private import gio.IconT; -private import gio.LoadableIconIF; -private import gio.LoadableIconT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GFileIcon specifies an icon by pointing to an image file - * to be used as icon. - */ -public class FileIcon : ObjectG, IconIF, LoadableIconIF -{ - /** the main Gtk struct */ - protected GFileIcon* gFileIcon; - - /** Get the main Gtk struct */ - public GFileIcon* getFileIconStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileIcon; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFileIcon; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileIcon* gFileIcon, bool ownedRef = false) - { - this.gFileIcon = gFileIcon; - super(cast(GObject*)gFileIcon, ownedRef); - } - - // add the Icon capabilities - mixin IconT!(GFileIcon); - - // add the LoadableIcon capabilities - mixin LoadableIconT!(GFileIcon); - - - /** */ - public static GType getType() - { - return g_file_icon_get_type(); - } - - /** - * Creates a new icon for a file. - * - * Params: - * file = a #GFile. - * - * Returns: a #GIcon for the given - * @file, or %NULL on error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(FileIF file) - { - auto __p = g_file_icon_new((file is null) ? null : file.getFileStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GFileIcon*) __p, true); - } - - /** - * Gets the #GFile associated with the given @icon. - * - * Returns: a #GFile. - */ - public FileIF getFile() - { - auto __p = g_file_icon_get_file(gFileIcon); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p); - } -} diff --git a/generated/gtkd/gio/FileInfo.d b/generated/gtkd/gio/FileInfo.d deleted file mode 100644 index ff03fc1d3..000000000 --- a/generated/gtkd/gio/FileInfo.d +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileInfo; - -private import gio.FileAttributeMatcher; -private import gio.IconIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.DateTime; -private import glib.MemorySlice; -private import glib.Str; -private import glib.TimeVal; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Functionality for manipulating basic metadata for files. #GFileInfo - * implements methods for getting information that all files should - * contain, and allows for manipulation of extended attributes. - * - * See [GFileAttribute][gio-GFileAttribute] for more information on how - * GIO handles file attributes. - * - * To obtain a #GFileInfo for a #GFile, use g_file_query_info() (or its - * async variant). To obtain a #GFileInfo for a file input or output - * stream, use g_file_input_stream_query_info() or - * g_file_output_stream_query_info() (or their async variants). - * - * To change the actual attributes of a file, you should then set the - * attribute in the #GFileInfo and call g_file_set_attributes_from_info() - * or g_file_set_attributes_async() on a GFile. - * - * However, not all attributes can be changed in the file. For instance, - * the actual size of a file cannot be changed via g_file_info_set_size(). - * You may call g_file_query_settable_attributes() and - * g_file_query_writable_namespaces() to discover the settable attributes - * of a particular file at runtime. - * - * #GFileAttributeMatcher allows for searching through a #GFileInfo for - * attributes. - */ -public class FileInfo : ObjectG -{ - /** the main Gtk struct */ - protected GFileInfo* gFileInfo; - - /** Get the main Gtk struct */ - public GFileInfo* getFileInfoStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileInfo; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFileInfo; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileInfo* gFileInfo, bool ownedRef = false) - { - this.gFileInfo = gFileInfo; - super(cast(GObject*)gFileInfo, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_file_info_get_type(); - } - - /** - * Creates a new file info structure. - * - * Returns: a #GFileInfo. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_file_info_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GFileInfo*) __p, true); - } - - /** - * Clears the status information from @info. - */ - public void clearStatus() - { - g_file_info_clear_status(gFileInfo); - } - - /** - * First clears all of the [GFileAttribute][gio-GFileAttribute] of @dest_info, - * and then copies all of the file attributes from @src_info to @dest_info. - * - * Params: - * destInfo = destination to copy attributes to. - */ - public void copyInto(FileInfo destInfo) - { - g_file_info_copy_into(gFileInfo, (destInfo is null) ? null : destInfo.getFileInfoStruct()); - } - - /** - * Duplicates a file info structure. - * - * Returns: a duplicate #GFileInfo of @other. - */ - public FileInfo dup() - { - auto __p = g_file_info_dup(gFileInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Gets the value of a attribute, formatted as a string. - * This escapes things as needed to make the string valid - * UTF-8. - * - * Params: - * attribute = a file attribute key. - * - * Returns: a UTF-8 string associated with the given @attribute, or - * %NULL if the attribute wasn’t set. - * When you're done with the string it must be freed with g_free(). - */ - public string getAttributeAsString(string attribute) - { - auto retStr = g_file_info_get_attribute_as_string(gFileInfo, Str.toStringz(attribute)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the value of a boolean attribute. If the attribute does not - * contain a boolean value, %FALSE will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: the boolean value contained within the attribute. - */ - public bool getAttributeBoolean(string attribute) - { - return g_file_info_get_attribute_boolean(gFileInfo, Str.toStringz(attribute)) != 0; - } - - /** - * Gets the value of a byte string attribute. If the attribute does - * not contain a byte string, %NULL will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: the contents of the @attribute value as a byte string, or - * %NULL otherwise. - */ - public string getAttributeByteString(string attribute) - { - return Str.toString(g_file_info_get_attribute_byte_string(gFileInfo, Str.toStringz(attribute))); - } - - /** - * Gets the attribute type, value and status for an attribute key. - * - * Params: - * attribute = a file attribute key - * type = return location for the attribute type, or %NULL - * valuePp = return location for the - * attribute value, or %NULL; the attribute value will not be %NULL - * status = return location for the attribute status, or %NULL - * - * Returns: %TRUE if @info has an attribute named @attribute, - * %FALSE otherwise. - */ - public bool getAttributeData(string attribute, out GFileAttributeType type, out void* valuePp, out GFileAttributeStatus status) - { - return g_file_info_get_attribute_data(gFileInfo, Str.toStringz(attribute), &type, &valuePp, &status) != 0; - } - - /** - * Gets a signed 32-bit integer contained within the attribute. If the - * attribute does not contain a signed 32-bit integer, or is invalid, - * 0 will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: a signed 32-bit integer from the attribute. - */ - public int getAttributeInt32(string attribute) - { - return g_file_info_get_attribute_int32(gFileInfo, Str.toStringz(attribute)); - } - - /** - * Gets a signed 64-bit integer contained within the attribute. If the - * attribute does not contain a signed 64-bit integer, or is invalid, - * 0 will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: a signed 64-bit integer from the attribute. - */ - public long getAttributeInt64(string attribute) - { - return g_file_info_get_attribute_int64(gFileInfo, Str.toStringz(attribute)); - } - - /** - * Gets the value of a #GObject attribute. If the attribute does - * not contain a #GObject, %NULL will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: a #GObject associated with the given @attribute, - * or %NULL otherwise. - */ - public ObjectG getAttributeObject(string attribute) - { - auto __p = g_file_info_get_attribute_object(gFileInfo, Str.toStringz(attribute)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p); - } - - /** - * Gets the attribute status for an attribute key. - * - * Params: - * attribute = a file attribute key - * - * Returns: a #GFileAttributeStatus for the given @attribute, or - * %G_FILE_ATTRIBUTE_STATUS_UNSET if the key is invalid. - */ - public GFileAttributeStatus getAttributeStatus(string attribute) - { - return g_file_info_get_attribute_status(gFileInfo, Str.toStringz(attribute)); - } - - /** - * Gets the value of a string attribute. If the attribute does - * not contain a string, %NULL will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: the contents of the @attribute value as a UTF-8 string, - * or %NULL otherwise. - */ - public string getAttributeString(string attribute) - { - return Str.toString(g_file_info_get_attribute_string(gFileInfo, Str.toStringz(attribute))); - } - - /** - * Gets the value of a stringv attribute. If the attribute does - * not contain a stringv, %NULL will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: the contents of the @attribute value as a stringv, - * or %NULL otherwise. Do not free. These returned strings are UTF-8. - * - * Since: 2.22 - */ - public string[] getAttributeStringv(string attribute) - { - return Str.toStringArray(g_file_info_get_attribute_stringv(gFileInfo, Str.toStringz(attribute))); - } - - /** - * Gets the attribute type for an attribute key. - * - * Params: - * attribute = a file attribute key. - * - * Returns: a #GFileAttributeType for the given @attribute, or - * %G_FILE_ATTRIBUTE_TYPE_INVALID if the key is not set. - */ - public GFileAttributeType getAttributeType(string attribute) - { - return g_file_info_get_attribute_type(gFileInfo, Str.toStringz(attribute)); - } - - /** - * Gets an unsigned 32-bit integer contained within the attribute. If the - * attribute does not contain an unsigned 32-bit integer, or is invalid, - * 0 will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: an unsigned 32-bit integer from the attribute. - */ - public uint getAttributeUint32(string attribute) - { - return g_file_info_get_attribute_uint32(gFileInfo, Str.toStringz(attribute)); - } - - /** - * Gets a unsigned 64-bit integer contained within the attribute. If the - * attribute does not contain an unsigned 64-bit integer, or is invalid, - * 0 will be returned. - * - * Params: - * attribute = a file attribute key. - * - * Returns: a unsigned 64-bit integer from the attribute. - */ - public ulong getAttributeUint64(string attribute) - { - return g_file_info_get_attribute_uint64(gFileInfo, Str.toStringz(attribute)); - } - - /** - * Gets the file's content type. - * - * Returns: a string containing the file's content type, - * or %NULL if unknown. - */ - public string getContentType() - { - return Str.toString(g_file_info_get_content_type(gFileInfo)); - } - - /** - * Returns the #GDateTime representing the deletion date of the file, as - * available in G_FILE_ATTRIBUTE_TRASH_DELETION_DATE. If the - * G_FILE_ATTRIBUTE_TRASH_DELETION_DATE attribute is unset, %NULL is returned. - * - * Returns: a #GDateTime, or %NULL. - * - * Since: 2.36 - */ - public DateTime getDeletionDate() - { - auto __p = g_file_info_get_deletion_date(gFileInfo); - - if(__p is null) - { - return null; - } - - return new DateTime(cast(GDateTime*) __p, true); - } - - /** - * Gets a display name for a file. This is guaranteed to always be set. - * - * Returns: a string containing the display name. - */ - public string getDisplayName() - { - return Str.toString(g_file_info_get_display_name(gFileInfo)); - } - - /** - * Gets the edit name for a file. - * - * Returns: a string containing the edit name. - */ - public string getEditName() - { - return Str.toString(g_file_info_get_edit_name(gFileInfo)); - } - - /** - * Gets the [entity tag][gfile-etag] for a given - * #GFileInfo. See %G_FILE_ATTRIBUTE_ETAG_VALUE. - * - * Returns: a string containing the value of the "etag:value" attribute. - */ - public string getEtag() - { - return Str.toString(g_file_info_get_etag(gFileInfo)); - } - - /** - * Gets a file's type (whether it is a regular file, symlink, etc). - * This is different from the file's content type, see g_file_info_get_content_type(). - * - * Returns: a #GFileType for the given file. - */ - public GFileType getFileType() - { - return g_file_info_get_file_type(gFileInfo); - } - - /** - * Gets the icon for a file. - * - * Returns: #GIcon for the given @info. - */ - public IconIF getIcon() - { - auto __p = g_file_info_get_icon(gFileInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p); - } - - /** - * Checks if a file is a backup file. - * - * Returns: %TRUE if file is a backup file, %FALSE otherwise. - */ - public bool getIsBackup() - { - return g_file_info_get_is_backup(gFileInfo) != 0; - } - - /** - * Checks if a file is hidden. - * - * Returns: %TRUE if the file is a hidden file, %FALSE otherwise. - */ - public bool getIsHidden() - { - return g_file_info_get_is_hidden(gFileInfo) != 0; - } - - /** - * Checks if a file is a symlink. - * - * Returns: %TRUE if the given @info is a symlink. - */ - public bool getIsSymlink() - { - return g_file_info_get_is_symlink(gFileInfo) != 0; - } - - /** - * Gets the modification time of the current @info and returns it as a - * #GDateTime. - * - * This requires the %G_FILE_ATTRIBUTE_TIME_MODIFIED attribute. If - * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC is provided, the resulting #GDateTime - * will have microsecond precision. - * - * Returns: modification time, or %NULL if unknown - * - * Since: 2.62 - */ - public DateTime getModificationDateTime() - { - auto __p = g_file_info_get_modification_date_time(gFileInfo); - - if(__p is null) - { - return null; - } - - return new DateTime(cast(GDateTime*) __p, true); - } - - /** - * Gets the modification time of the current @info and sets it - * in @result. - * - * Deprecated: Use g_file_info_get_modification_date_time() instead, as - * #GTimeVal is deprecated due to the year 2038 problem. - * - * Params: - * result = a #GTimeVal. - */ - public void getModificationTime(out TimeVal result) - { - GTimeVal* outresult = sliceNew!GTimeVal(); - - g_file_info_get_modification_time(gFileInfo, outresult); - - result = new TimeVal(outresult, true); - } - - /** - * Gets the name for a file. This is guaranteed to always be set. - * - * Returns: a string containing the file name. - */ - public string getName() - { - return Str.toString(g_file_info_get_name(gFileInfo)); - } - - /** - * Gets the file's size (in bytes). The size is retrieved through the value of - * the %G_FILE_ATTRIBUTE_STANDARD_SIZE attribute and is converted - * from #guint64 to #goffset before returning the result. - * - * Returns: a #goffset containing the file's size (in bytes). - */ - public long getSize() - { - return g_file_info_get_size(gFileInfo); - } - - /** - * Gets the value of the sort_order attribute from the #GFileInfo. - * See %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER. - * - * Returns: a #gint32 containing the value of the "standard::sort_order" attribute. - */ - public int getSortOrder() - { - return g_file_info_get_sort_order(gFileInfo); - } - - /** - * Gets the symbolic icon for a file. - * - * Returns: #GIcon for the given @info. - * - * Since: 2.34 - */ - public IconIF getSymbolicIcon() - { - auto __p = g_file_info_get_symbolic_icon(gFileInfo); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p); - } - - /** - * Gets the symlink target for a given #GFileInfo. - * - * Returns: a string containing the symlink target. - */ - public string getSymlinkTarget() - { - return Str.toString(g_file_info_get_symlink_target(gFileInfo)); - } - - /** - * Checks if a file info structure has an attribute named @attribute. - * - * Params: - * attribute = a file attribute key. - * - * Returns: %TRUE if @info has an attribute named @attribute, - * %FALSE otherwise. - */ - public bool hasAttribute(string attribute) - { - return g_file_info_has_attribute(gFileInfo, Str.toStringz(attribute)) != 0; - } - - /** - * Checks if a file info structure has an attribute in the - * specified @name_space. - * - * Params: - * nameSpace = a file attribute namespace. - * - * Returns: %TRUE if @info has an attribute in @name_space, - * %FALSE otherwise. - * - * Since: 2.22 - */ - public bool hasNamespace(string nameSpace) - { - return g_file_info_has_namespace(gFileInfo, Str.toStringz(nameSpace)) != 0; - } - - /** - * Lists the file info structure's attributes. - * - * Params: - * nameSpace = a file attribute key's namespace, or %NULL to list - * all attributes. - * - * Returns: a - * null-terminated array of strings of all of the possible attribute - * types for the given @name_space, or %NULL on error. - */ - public string[] listAttributes(string nameSpace) - { - auto retStr = g_file_info_list_attributes(gFileInfo, Str.toStringz(nameSpace)); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Removes all cases of @attribute from @info if it exists. - * - * Params: - * attribute = a file attribute key. - */ - public void removeAttribute(string attribute) - { - g_file_info_remove_attribute(gFileInfo, Str.toStringz(attribute)); - } - - /** - * Sets the @attribute to contain the given value, if possible. To unset the - * attribute, use %G_FILE_ATTRIBUTE_TYPE_INVALID for @type. - * - * Params: - * attribute = a file attribute key. - * type = a #GFileAttributeType - * valueP = pointer to the value - */ - public void setAttribute(string attribute, GFileAttributeType type, void* valueP) - { - g_file_info_set_attribute(gFileInfo, Str.toStringz(attribute), type, valueP); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = a file attribute key. - * attrValue = a boolean value. - */ - public void setAttributeBoolean(string attribute, bool attrValue) - { - g_file_info_set_attribute_boolean(gFileInfo, Str.toStringz(attribute), attrValue); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = a file attribute key. - * attrValue = a byte string. - */ - public void setAttributeByteString(string attribute, string attrValue) - { - g_file_info_set_attribute_byte_string(gFileInfo, Str.toStringz(attribute), Str.toStringz(attrValue)); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = a file attribute key. - * attrValue = a signed 32-bit integer - */ - public void setAttributeInt32(string attribute, int attrValue) - { - g_file_info_set_attribute_int32(gFileInfo, Str.toStringz(attribute), attrValue); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = attribute name to set. - * attrValue = int64 value to set attribute to. - */ - public void setAttributeInt64(string attribute, long attrValue) - { - g_file_info_set_attribute_int64(gFileInfo, Str.toStringz(attribute), attrValue); - } - - /** - * Sets @mask on @info to match specific attribute types. - * - * Params: - * mask = a #GFileAttributeMatcher. - */ - public void setAttributeMask(FileAttributeMatcher mask) - { - g_file_info_set_attribute_mask(gFileInfo, (mask is null) ? null : mask.getFileAttributeMatcherStruct()); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = a file attribute key. - * attrValue = a #GObject. - */ - public void setAttributeObject(string attribute, ObjectG attrValue) - { - g_file_info_set_attribute_object(gFileInfo, Str.toStringz(attribute), (attrValue is null) ? null : attrValue.getObjectGStruct()); - } - - /** - * Sets the attribute status for an attribute key. This is only - * needed by external code that implement g_file_set_attributes_from_info() - * or similar functions. - * - * The attribute must exist in @info for this to work. Otherwise %FALSE - * is returned and @info is unchanged. - * - * Params: - * attribute = a file attribute key - * status = a #GFileAttributeStatus - * - * Returns: %TRUE if the status was changed, %FALSE if the key was not set. - * - * Since: 2.22 - */ - public bool setAttributeStatus(string attribute, GFileAttributeStatus status) - { - return g_file_info_set_attribute_status(gFileInfo, Str.toStringz(attribute), status) != 0; - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = a file attribute key. - * attrValue = a UTF-8 string. - */ - public void setAttributeString(string attribute, string attrValue) - { - g_file_info_set_attribute_string(gFileInfo, Str.toStringz(attribute), Str.toStringz(attrValue)); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Sinze: 2.22 - * - * Params: - * attribute = a file attribute key - * attrValue = a %NULL - * terminated array of UTF-8 strings. - */ - public void setAttributeStringv(string attribute, string[] attrValue) - { - g_file_info_set_attribute_stringv(gFileInfo, Str.toStringz(attribute), Str.toStringzArray(attrValue)); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = a file attribute key. - * attrValue = an unsigned 32-bit integer. - */ - public void setAttributeUint32(string attribute, uint attrValue) - { - g_file_info_set_attribute_uint32(gFileInfo, Str.toStringz(attribute), attrValue); - } - - /** - * Sets the @attribute to contain the given @attr_value, - * if possible. - * - * Params: - * attribute = a file attribute key. - * attrValue = an unsigned 64-bit integer. - */ - public void setAttributeUint64(string attribute, ulong attrValue) - { - g_file_info_set_attribute_uint64(gFileInfo, Str.toStringz(attribute), attrValue); - } - - /** - * Sets the content type attribute for a given #GFileInfo. - * See %G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE. - * - * Params: - * contentType = a content type. See [GContentType][gio-GContentType] - */ - public void setContentType(string contentType) - { - g_file_info_set_content_type(gFileInfo, Str.toStringz(contentType)); - } - - /** - * Sets the display name for the current #GFileInfo. - * See %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME. - * - * Params: - * displayName = a string containing a display name. - */ - public void setDisplayName(string displayName) - { - g_file_info_set_display_name(gFileInfo, Str.toStringz(displayName)); - } - - /** - * Sets the edit name for the current file. - * See %G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME. - * - * Params: - * editName = a string containing an edit name. - */ - public void setEditName(string editName) - { - g_file_info_set_edit_name(gFileInfo, Str.toStringz(editName)); - } - - /** - * Sets the file type in a #GFileInfo to @type. - * See %G_FILE_ATTRIBUTE_STANDARD_TYPE. - * - * Params: - * type = a #GFileType. - */ - public void setFileType(GFileType type) - { - g_file_info_set_file_type(gFileInfo, type); - } - - /** - * Sets the icon for a given #GFileInfo. - * See %G_FILE_ATTRIBUTE_STANDARD_ICON. - * - * Params: - * icon = a #GIcon. - */ - public void setIcon(IconIF icon) - { - g_file_info_set_icon(gFileInfo, (icon is null) ? null : icon.getIconStruct()); - } - - /** - * Sets the "is_hidden" attribute in a #GFileInfo according to @is_hidden. - * See %G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN. - * - * Params: - * isHidden = a #gboolean. - */ - public void setIsHidden(bool isHidden) - { - g_file_info_set_is_hidden(gFileInfo, isHidden); - } - - /** - * Sets the "is_symlink" attribute in a #GFileInfo according to @is_symlink. - * See %G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK. - * - * Params: - * isSymlink = a #gboolean. - */ - public void setIsSymlink(bool isSymlink) - { - g_file_info_set_is_symlink(gFileInfo, isSymlink); - } - - /** - * Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and - * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the - * given date/time value. - * - * Params: - * mtime = a #GDateTime. - * - * Since: 2.62 - */ - public void setModificationDateTime(DateTime mtime) - { - g_file_info_set_modification_date_time(gFileInfo, (mtime is null) ? null : mtime.getDateTimeStruct()); - } - - /** - * Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and - * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the - * given time value. - * - * Deprecated: Use g_file_info_set_modification_date_time() instead, as - * #GTimeVal is deprecated due to the year 2038 problem. - * - * Params: - * mtime = a #GTimeVal. - */ - public void setModificationTime(TimeVal mtime) - { - g_file_info_set_modification_time(gFileInfo, (mtime is null) ? null : mtime.getTimeValStruct()); - } - - /** - * Sets the name attribute for the current #GFileInfo. - * See %G_FILE_ATTRIBUTE_STANDARD_NAME. - * - * Params: - * name = a string containing a name. - */ - public void setName(string name) - { - g_file_info_set_name(gFileInfo, Str.toStringz(name)); - } - - /** - * Sets the %G_FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info - * to the given size. - * - * Params: - * size = a #goffset containing the file's size. - */ - public void setSize(long size) - { - g_file_info_set_size(gFileInfo, size); - } - - /** - * Sets the sort order attribute in the file info structure. See - * %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER. - * - * Params: - * sortOrder = a sort order integer. - */ - public void setSortOrder(int sortOrder) - { - g_file_info_set_sort_order(gFileInfo, sortOrder); - } - - /** - * Sets the symbolic icon for a given #GFileInfo. - * See %G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON. - * - * Params: - * icon = a #GIcon. - * - * Since: 2.34 - */ - public void setSymbolicIcon(IconIF icon) - { - g_file_info_set_symbolic_icon(gFileInfo, (icon is null) ? null : icon.getIconStruct()); - } - - /** - * Sets the %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info - * to the given symlink target. - * - * Params: - * symlinkTarget = a static string containing a path to a symlink target. - */ - public void setSymlinkTarget(string symlinkTarget) - { - g_file_info_set_symlink_target(gFileInfo, Str.toStringz(symlinkTarget)); - } - - /** - * Unsets a mask set by g_file_info_set_attribute_mask(), if one - * is set. - */ - public void unsetAttributeMask() - { - g_file_info_unset_attribute_mask(gFileInfo); - } -} diff --git a/generated/gtkd/gio/FileInputStream.d b/generated/gtkd/gio/FileInputStream.d deleted file mode 100644 index bdc1ee58a..000000000 --- a/generated/gtkd/gio/FileInputStream.d +++ /dev/null @@ -1,177 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileInputStream; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.FileInfo; -private import gio.InputStream; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * GFileInputStream provides input streams that take their - * content from a file. - * - * GFileInputStream implements #GSeekable, which allows the input - * stream to jump to arbitrary positions in the file, provided the - * filesystem of the file allows it. To find the position of a file - * input stream, use g_seekable_tell(). To find out if a file input - * stream supports seeking, use g_seekable_can_seek(). - * To position a file input stream, use g_seekable_seek(). - */ -public class FileInputStream : InputStream, SeekableIF -{ - /** the main Gtk struct */ - protected GFileInputStream* gFileInputStream; - - /** Get the main Gtk struct */ - public GFileInputStream* getFileInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFileInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileInputStream* gFileInputStream, bool ownedRef = false) - { - this.gFileInputStream = gFileInputStream; - super(cast(GInputStream*)gFileInputStream, ownedRef); - } - - // add the Seekable capabilities - mixin SeekableT!(GFileInputStream); - - - /** */ - public static GType getType() - { - return g_file_input_stream_get_type(); - } - - /** - * Queries a file input stream the given @attributes. This function blocks - * while querying the stream. For the asynchronous (non-blocking) version - * of this function, see g_file_input_stream_query_info_async(). While the - * stream is blocked, the stream will set the pending flag internally, and - * any other operations on the stream will fail with %G_IO_ERROR_PENDING. - * - * Params: - * attributes = a file attribute query string. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #GFileInfo, or %NULL on error. - * - * Throws: GException on failure. - */ - public FileInfo queryInfo(string attributes, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_input_stream_query_info(gFileInputStream, Str.toStringz(attributes), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Queries the stream information asynchronously. - * When the operation is finished @callback will be called. - * You can then call g_file_input_stream_query_info_finish() - * to get the result of the operation. - * - * For the synchronous version of this function, - * see g_file_input_stream_query_info(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be set - * - * Params: - * attributes = a file attribute query string. - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void queryInfoAsync(string attributes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_input_stream_query_info_async(gFileInputStream, Str.toStringz(attributes), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous info query operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: #GFileInfo. - * - * Throws: GException on failure. - */ - public FileInfo queryInfoFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_input_stream_query_info_finish(gFileInputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } -} diff --git a/generated/gtkd/gio/FileMonitor.d b/generated/gtkd/gio/FileMonitor.d deleted file mode 100644 index 9378e58c2..000000000 --- a/generated/gtkd/gio/FileMonitor.d +++ /dev/null @@ -1,177 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileMonitor; - -private import gio.FileIF; -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * Monitors a file or directory for changes. - * - * To obtain a #GFileMonitor for a file or directory, use - * g_file_monitor(), g_file_monitor_file(), or - * g_file_monitor_directory(). - * - * To get informed about changes to the file or directory you are - * monitoring, connect to the #GFileMonitor::changed signal. The - * signal will be emitted in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread that the monitor was created in - * (though if the global default main context is blocked, this may - * cause notifications to be blocked even if the thread-default - * context is still running). - */ -public class FileMonitor : ObjectG -{ - /** the main Gtk struct */ - protected GFileMonitor* gFileMonitor; - - /** Get the main Gtk struct */ - public GFileMonitor* getFileMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileMonitor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFileMonitor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileMonitor* gFileMonitor, bool ownedRef = false) - { - this.gFileMonitor = gFileMonitor; - super(cast(GObject*)gFileMonitor, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_file_monitor_get_type(); - } - - /** - * Cancels a file monitor. - * - * Returns: always %TRUE - */ - public bool cancel() - { - return g_file_monitor_cancel(gFileMonitor) != 0; - } - - /** - * Emits the #GFileMonitor::changed signal if a change - * has taken place. Should be called from file monitor - * implementations only. - * - * Implementations are responsible to call this method from the - * [thread-default main context][g-main-context-push-thread-default] of the - * thread that the monitor was created in. - * - * Params: - * child = a #GFile. - * otherFile = a #GFile. - * eventType = a set of #GFileMonitorEvent flags. - */ - public void emitEvent(FileIF child, FileIF otherFile, GFileMonitorEvent eventType) - { - g_file_monitor_emit_event(gFileMonitor, (child is null) ? null : child.getFileStruct(), (otherFile is null) ? null : otherFile.getFileStruct(), eventType); - } - - /** - * Returns whether the monitor is canceled. - * - * Returns: %TRUE if monitor is canceled. %FALSE otherwise. - */ - public bool isCancelled() - { - return g_file_monitor_is_cancelled(gFileMonitor) != 0; - } - - /** - * Sets the rate limit to which the @monitor will report - * consecutive change events to the same file. - * - * Params: - * limitMsecs = a non-negative integer with the limit in milliseconds - * to poll for changes - */ - public void setRateLimit(int limitMsecs) - { - g_file_monitor_set_rate_limit(gFileMonitor, limitMsecs); - } - - /** - * Emitted when @file has been changed. - * - * If using %G_FILE_MONITOR_WATCH_MOVES on a directory monitor, and - * the information is available (and if supported by the backend), - * @event_type may be %G_FILE_MONITOR_EVENT_RENAMED, - * %G_FILE_MONITOR_EVENT_MOVED_IN or %G_FILE_MONITOR_EVENT_MOVED_OUT. - * - * In all cases @file will be a child of the monitored directory. For - * renames, @file will be the old name and @other_file is the new - * name. For "moved in" events, @file is the name of the file that - * appeared and @other_file is the old name that it was moved from (in - * another directory). For "moved out" events, @file is the name of - * the file that used to be in this directory and @other_file is the - * name of the file at its new location. - * - * It makes sense to treat %G_FILE_MONITOR_EVENT_MOVED_IN as - * equivalent to %G_FILE_MONITOR_EVENT_CREATED and - * %G_FILE_MONITOR_EVENT_MOVED_OUT as equivalent to - * %G_FILE_MONITOR_EVENT_DELETED, with extra information. - * %G_FILE_MONITOR_EVENT_RENAMED is equivalent to a delete/create - * pair. This is exactly how the events will be reported in the case - * that the %G_FILE_MONITOR_WATCH_MOVES flag is not in use. - * - * If using the deprecated flag %G_FILE_MONITOR_SEND_MOVED flag and @event_type is - * #G_FILE_MONITOR_EVENT_MOVED, @file will be set to a #GFile containing the - * old path, and @other_file will be set to a #GFile containing the new path. - * - * In all the other cases, @other_file will be set to #NULL. - * - * Params: - * file = a #GFile. - * otherFile = a #GFile or #NULL. - * eventType = a #GFileMonitorEvent. - */ - gulong addOnChanged(void delegate(FileIF, FileIF, GFileMonitorEvent, FileMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/FileOutputStream.d b/generated/gtkd/gio/FileOutputStream.d deleted file mode 100644 index 4674175e6..000000000 --- a/generated/gtkd/gio/FileOutputStream.d +++ /dev/null @@ -1,206 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileOutputStream; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.FileInfo; -private import gio.OutputStream; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * GFileOutputStream provides output streams that write their - * content to a file. - * - * GFileOutputStream implements #GSeekable, which allows the output - * stream to jump to arbitrary positions in the file and to truncate - * the file, provided the filesystem of the file supports these - * operations. - * - * To find the position of a file output stream, use g_seekable_tell(). - * To find out if a file output stream supports seeking, use - * g_seekable_can_seek().To position a file output stream, use - * g_seekable_seek(). To find out if a file output stream supports - * truncating, use g_seekable_can_truncate(). To truncate a file output - * stream, use g_seekable_truncate(). - */ -public class FileOutputStream : OutputStream, SeekableIF -{ - /** the main Gtk struct */ - protected GFileOutputStream* gFileOutputStream; - - /** Get the main Gtk struct */ - public GFileOutputStream* getFileOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFileOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFileOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFileOutputStream* gFileOutputStream, bool ownedRef = false) - { - this.gFileOutputStream = gFileOutputStream; - super(cast(GOutputStream*)gFileOutputStream, ownedRef); - } - - // add the Seekable capabilities - mixin SeekableT!(GFileOutputStream); - - - /** */ - public static GType getType() - { - return g_file_output_stream_get_type(); - } - - /** - * Gets the entity tag for the file when it has been written. - * This must be called after the stream has been written - * and closed, as the etag can change while writing. - * - * Returns: the entity tag for the stream. - */ - public string getEtag() - { - auto retStr = g_file_output_stream_get_etag(gFileOutputStream); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Queries a file output stream for the given @attributes. - * This function blocks while querying the stream. For the asynchronous - * version of this function, see g_file_output_stream_query_info_async(). - * While the stream is blocked, the stream will set the pending flag - * internally, and any other operations on the stream will fail with - * %G_IO_ERROR_PENDING. - * - * Can fail if the stream was already closed (with @error being set to - * %G_IO_ERROR_CLOSED), the stream has pending operations (with @error being - * set to %G_IO_ERROR_PENDING), or if querying info is not supported for - * the stream's interface (with @error being set to %G_IO_ERROR_NOT_SUPPORTED). In - * all cases of failure, %NULL will be returned. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be set, and %NULL will - * be returned. - * - * Params: - * attributes = a file attribute query string. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #GFileInfo for the @stream, or %NULL on error. - * - * Throws: GException on failure. - */ - public FileInfo queryInfo(string attributes, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_output_stream_query_info(gFileOutputStream, Str.toStringz(attributes), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Asynchronously queries the @stream for a #GFileInfo. When completed, - * @callback will be called with a #GAsyncResult which can be used to - * finish the operation with g_file_output_stream_query_info_finish(). - * - * For the synchronous version of this function, see - * g_file_output_stream_query_info(). - * - * Params: - * attributes = a file attribute query string. - * ioPriority = the [I/O priority][gio-GIOScheduler] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void queryInfoAsync(string attributes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_output_stream_query_info_async(gFileOutputStream, Str.toStringz(attributes), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finalizes the asynchronous query started - * by g_file_output_stream_query_info_async(). - * - * Params: - * result = a #GAsyncResult. - * - * Returns: A #GFileInfo for the finished query. - * - * Throws: GException on failure. - */ - public FileInfo queryInfoFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_output_stream_query_info_finish(gFileOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } -} diff --git a/generated/gtkd/gio/FileT.d b/generated/gtkd/gio/FileT.d deleted file mode 100644 index b9ae68a26..000000000 --- a/generated/gtkd/gio/FileT.d +++ /dev/null @@ -1,4194 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FileT; - -public import gio.AppInfoIF; -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.FileAttributeInfoList; -public import gio.FileEnumerator; -public import gio.FileIF; -public import gio.FileIOStream; -public import gio.FileInfo; -public import gio.FileInputStream; -public import gio.FileMonitor; -public import gio.FileOutputStream; -public import gio.MountIF; -public import gio.MountOperation; -public import gio.c.functions; -public import gio.c.types; -public import glib.Bytes; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; - - -/** - * #GFile is a high level abstraction for manipulating files on a - * virtual file system. #GFiles are lightweight, immutable objects - * that do no I/O upon creation. It is necessary to understand that - * #GFile objects do not represent files, merely an identifier for a - * file. All file content I/O is implemented as streaming operations - * (see #GInputStream and #GOutputStream). - * - * To construct a #GFile, you can use: - * - g_file_new_for_path() if you have a path. - * - g_file_new_for_uri() if you have a URI. - * - g_file_new_for_commandline_arg() for a command line argument. - * - g_file_new_tmp() to create a temporary file from a template. - * - g_file_parse_name() from a UTF-8 string gotten from g_file_get_parse_name(). - * - g_file_new_build_filename() to create a file from path elements. - * - * One way to think of a #GFile is as an abstraction of a pathname. For - * normal files the system pathname is what is stored internally, but as - * #GFiles are extensible it could also be something else that corresponds - * to a pathname in a userspace implementation of a filesystem. - * - * #GFiles make up hierarchies of directories and files that correspond to - * the files on a filesystem. You can move through the file system with - * #GFile using g_file_get_parent() to get an identifier for the parent - * directory, g_file_get_child() to get a child within a directory, - * g_file_resolve_relative_path() to resolve a relative path between two - * #GFiles. There can be multiple hierarchies, so you may not end up at - * the same root if you repeatedly call g_file_get_parent() on two different - * files. - * - * All #GFiles have a basename (get with g_file_get_basename()). These names - * are byte strings that are used to identify the file on the filesystem - * (relative to its parent directory) and there is no guarantees that they - * have any particular charset encoding or even make any sense at all. If - * you want to use filenames in a user interface you should use the display - * name that you can get by requesting the - * %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME attribute with g_file_query_info(). - * This is guaranteed to be in UTF-8 and can be used in a user interface. - * But always store the real basename or the #GFile to use to actually - * access the file, because there is no way to go from a display name to - * the actual name. - * - * Using #GFile as an identifier has the same weaknesses as using a path - * in that there may be multiple aliases for the same file. For instance, - * hard or soft links may cause two different #GFiles to refer to the same - * file. Other possible causes for aliases are: case insensitive filesystems, - * short and long names on FAT/NTFS, or bind mounts in Linux. If you want to - * check if two #GFiles point to the same file you can query for the - * %G_FILE_ATTRIBUTE_ID_FILE attribute. Note that #GFile does some trivial - * canonicalization of pathnames passed in, so that trivial differences in - * the path string used at creation (duplicated slashes, slash at end of - * path, "." or ".." path segments, etc) does not create different #GFiles. - * - * Many #GFile operations have both synchronous and asynchronous versions - * to suit your application. Asynchronous versions of synchronous functions - * simply have _async() appended to their function names. The asynchronous - * I/O functions call a #GAsyncReadyCallback which is then used to finalize - * the operation, producing a GAsyncResult which is then passed to the - * function's matching _finish() operation. - * - * It is highly recommended to use asynchronous calls when running within a - * shared main loop, such as in the main thread of an application. This avoids - * I/O operations blocking other sources on the main loop from being dispatched. - * Synchronous I/O operations should be performed from worker threads. See the - * [introduction to asynchronous programming section][async-programming] for - * more. - * - * Some #GFile operations almost always take a noticeable amount of time, and - * so do not have synchronous analogs. Notable cases include: - * - g_file_mount_mountable() to mount a mountable file. - * - g_file_unmount_mountable_with_operation() to unmount a mountable file. - * - g_file_eject_mountable_with_operation() to eject a mountable file. - * - * ## Entity Tags # {#gfile-etag} - * - * One notable feature of #GFiles are entity tags, or "etags" for - * short. Entity tags are somewhat like a more abstract version of the - * traditional mtime, and can be used to quickly determine if the file - * has been modified from the version on the file system. See the - * HTTP 1.1 - * [specification](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) - * for HTTP Etag headers, which are a very similar concept. - */ -public template FileT(TStruct) -{ - /** Get the main Gtk struct */ - public GFile* getFileStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GFile*)getStruct(); - } - - - /** - * Gets an output stream for appending data to the file. - * If the file doesn't already exist it is created. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level that - * is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * Some file systems don't allow all file names, and may return an - * %G_IO_ERROR_INVALID_FILENAME error. If the file is a directory the - * %G_IO_ERROR_IS_DIRECTORY error will be returned. Other errors are - * possible too, and depend on what kind of filesystem the file is on. - * - * Params: - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileOutputStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream appendTo(GFileCreateFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_append_to(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileOutputStream)(cast(GFileOutputStream*) __p, true); - } - - /** - * Asynchronously opens @file for appending. - * - * For more details, see g_file_append_to() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_append_to_finish() to get the result - * of the operation. - * - * Params: - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void appendToAsync(GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_append_to_async(getFileStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file append operation started with - * g_file_append_to_async(). - * - * Params: - * res = #GAsyncResult - * - * Returns: a valid #GFileOutputStream - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream appendToFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_append_to_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileOutputStream)(cast(GFileOutputStream*) __p, true); - } - - /** - * Prepares the file attribute query string for copying to @file. - * - * This function prepares an attribute query string to be - * passed to g_file_query_info() to get a list of attributes - * normally copied with the file (see g_file_copy_attributes() - * for the detailed description). This function is used by the - * implementation of g_file_copy_attributes() and is useful - * when one needs to query and set the attributes in two - * stages (e.g., for recursive move of a directory). - * - * Params: - * flags = a set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: an attribute query string for g_file_query_info(), - * or %NULL if an error occurs. - * - * Since: 2.68 - * - * Throws: GException on failure. - */ - public string buildAttributeListForCopy(GFileCopyFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_file_build_attribute_list_for_copy(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Copies the file @source to the location specified by @destination. - * Can not handle recursive copies of directories. - * - * If the flag #G_FILE_COPY_OVERWRITE is specified an already - * existing @destination file is overwritten. - * - * If the flag #G_FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks - * will be copied as symlinks, otherwise the target of the - * @source symlink will be copied. - * - * If the flag #G_FILE_COPY_ALL_METADATA is specified then all the metadata - * that is possible to copy is copied, not just the default subset (which, - * for instance, does not include the owner, see #GFileInfo). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @progress_callback is not %NULL, then the operation can be monitored - * by setting this to a #GFileProgressCallback function. - * @progress_callback_data will be passed to this function. It is guaranteed - * that this callback will be called after all data has been transferred with - * the total number of bytes copied during the operation. - * - * If the @source file does not exist, then the %G_IO_ERROR_NOT_FOUND error - * is returned, independent on the status of the @destination. - * - * If #G_FILE_COPY_OVERWRITE is not specified and the target exists, then - * the error %G_IO_ERROR_EXISTS is returned. - * - * If trying to overwrite a file over a directory, the %G_IO_ERROR_IS_DIRECTORY - * error is returned. If trying to overwrite a directory with a directory the - * %G_IO_ERROR_WOULD_MERGE error is returned. - * - * If the source is a directory and the target does not exist, or - * #G_FILE_COPY_OVERWRITE is specified and the target is a file, then the - * %G_IO_ERROR_WOULD_RECURSE error is returned. - * - * If you are interested in copying the #GFile object itself (not the on-disk - * file), see g_file_dup(). - * - * Params: - * destination = destination #GFile - * flags = set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = function to callback with - * progress information, or %NULL if progress information is not needed - * progressCallbackData = user data to pass to @progress_callback - * - * Returns: %TRUE on success, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool copy(FileIF destination, GFileCopyFlags flags, Cancellable cancellable, GFileProgressCallback progressCallback, void* progressCallbackData) - { - GError* err = null; - - auto __p = g_file_copy(getFileStruct(), (destination is null) ? null : destination.getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), progressCallback, progressCallbackData, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Copies the file @source to the location specified by @destination - * asynchronously. For details of the behaviour, see g_file_copy(). - * - * If @progress_callback is not %NULL, then that function that will be called - * just like in g_file_copy(). The callback will run in the default main context - * of the thread calling g_file_copy_async() — the same context as @callback is - * run in. - * - * When the operation is finished, @callback will be called. You can then call - * g_file_copy_finish() to get the result of the operation. - * - * Params: - * destination = destination #GFile - * flags = set of #GFileCopyFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = function to callback with progress - * information, or %NULL if progress information is not needed - * progressCallbackData = user data to pass to @progress_callback - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void copyAsync(FileIF destination, GFileCopyFlags flags, int ioPriority, Cancellable cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GAsyncReadyCallback callback, void* userData) - { - g_file_copy_async(getFileStruct(), (destination is null) ? null : destination.getFileStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), progressCallback, progressCallbackData, callback, userData); - } - - /** - * Copies the file attributes from @source to @destination. - * - * Normally only a subset of the file attributes are copied, - * those that are copies in a normal file copy operation - * (which for instance does not include e.g. owner). However - * if #G_FILE_COPY_ALL_METADATA is specified in @flags, then - * all the metadata that is possible to copy is copied. This - * is useful when implementing move by copy + delete source. - * - * Params: - * destination = a #GFile to copy attributes to - * flags = a set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the attributes were copied successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool copyAttributes(FileIF destination, GFileCopyFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_copy_attributes(getFileStruct(), (destination is null) ? null : destination.getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Finishes copying the file started with g_file_copy_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - public bool copyFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_copy_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a new file and returns an output stream for writing to it. - * The file must not already exist. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level - * that is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If a file or directory with this name already exists the - * %G_IO_ERROR_EXISTS error will be returned. Some file systems don't - * allow all file names, and may return an %G_IO_ERROR_INVALID_FILENAME - * error, and if the name is to long %G_IO_ERROR_FILENAME_TOO_LONG will - * be returned. Other errors are possible too, and depend on what kind - * of filesystem the file is on. - * - * Params: - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileOutputStream for the newly created - * file, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream create(GFileCreateFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_create(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileOutputStream)(cast(GFileOutputStream*) __p, true); - } - - /** - * Asynchronously creates a new file and returns an output stream - * for writing to it. The file must not already exist. - * - * For more details, see g_file_create() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_create_finish() to get the result - * of the operation. - * - * Params: - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void createAsync(GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_create_async(getFileStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file create operation started with - * g_file_create_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileOutputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream createFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_create_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileOutputStream)(cast(GFileOutputStream*) __p, true); - } - - /** - * Creates a new file and returns a stream for reading and - * writing to it. The file must not already exist. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level - * that is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If a file or directory with this name already exists, the - * %G_IO_ERROR_EXISTS error will be returned. Some file systems don't - * allow all file names, and may return an %G_IO_ERROR_INVALID_FILENAME - * error, and if the name is too long, %G_IO_ERROR_FILENAME_TOO_LONG - * will be returned. Other errors are possible too, and depend on what - * kind of filesystem the file is on. - * - * Note that in many non-local file cases read and write streams are - * not supported, so make sure you really need to do read and write - * streaming, rather than just opening for reading or writing. - * - * Params: - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileIOStream for the newly created - * file, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream createReadwrite(GFileCreateFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_create_readwrite(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIOStream)(cast(GFileIOStream*) __p, true); - } - - /** - * Asynchronously creates a new file and returns a stream - * for reading and writing to it. The file must not already exist. - * - * For more details, see g_file_create_readwrite() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_create_readwrite_finish() to get - * the result of the operation. - * - * Params: - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void createReadwriteAsync(GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_create_readwrite_async(getFileStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file create operation started with - * g_file_create_readwrite_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream createReadwriteFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_create_readwrite_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIOStream)(cast(GFileIOStream*) __p, true); - } - - alias delet = delete_; - /** - * Deletes a file. If the @file is a directory, it will only be - * deleted if it is empty. This has the same semantics as g_unlink(). - * - * If @file doesn’t exist, %G_IO_ERROR_NOT_FOUND will be returned. This allows - * for deletion to be implemented avoiding - * [time-of-check to time-of-use races](https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use): - * |[ - * g_autoptr(GError) local_error = NULL; - * if (!g_file_delete (my_file, my_cancellable, &local_error) && - * !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) - * { - * // deletion failed for some reason other than the file not existing: - * // so report the error - * g_warning ("Failed to delete %s: %s", - * g_file_peek_path (my_file), local_error->message); - * } - * ]| - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the file was deleted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool delete_(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_delete(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously delete a file. If the @file is a directory, it will - * only be deleted if it is empty. This has the same semantics as - * g_unlink(). - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.34 - */ - public void deleteAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_delete_async(getFileStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes deleting a file started with g_file_delete_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the file was deleted. %FALSE otherwise. - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public bool deleteFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_delete_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Duplicates a #GFile handle. This operation does not duplicate - * the actual file or directory represented by the #GFile; see - * g_file_copy() if attempting to copy a file. - * - * g_file_dup() is useful when a second handle is needed to the same underlying - * file, for use in a separate thread (#GFile is not thread-safe). For use - * within the same thread, use g_object_ref() to increment the existing object’s - * reference count. - * - * This call does no blocking I/O. - * - * Returns: a new #GFile that is a duplicate - * of the given #GFile. - */ - public FileIF dup() - { - auto __p = g_file_dup(getFileStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Starts an asynchronous eject on a mountable. - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_eject_mountable_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Deprecated: Use g_file_eject_mountable_with_operation() instead. - * - * Params: - * flags = flags affecting the operation - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void ejectMountable(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_eject_mountable(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous eject operation started by - * g_file_eject_mountable(). - * - * Deprecated: Use g_file_eject_mountable_with_operation_finish() - * instead. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the @file was ejected successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool ejectMountableFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_eject_mountable_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Starts an asynchronous eject on a mountable. - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_eject_mountable_with_operation_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void ejectMountableWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_eject_mountable_with_operation(getFileStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous eject operation started by - * g_file_eject_mountable_with_operation(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the @file was ejected successfully. - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectMountableWithOperationFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_eject_mountable_with_operation_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the requested information about the files in a directory. - * The result is a #GFileEnumerator object that will give out - * #GFileInfo objects for all the files in the directory. - * - * The @attributes value is a string that specifies the file - * attributes that should be gathered. It is not an error if - * it's not possible to read a particular requested attribute - * from a file - it just won't be set. @attributes should - * be a comma-separated list of attributes or attribute wildcards. - * The wildcard "*" means all attributes, and a wildcard like - * "standard::*" means all attributes in the standard namespace. - * An example attribute query be "standard::*,owner::user". - * The standard attributes are available as defines, like - * #G_FILE_ATTRIBUTE_STANDARD_NAME. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will - * be returned. If the file is not a directory, the %G_IO_ERROR_NOT_DIRECTORY - * error will be returned. Other errors are possible too. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: A #GFileEnumerator if successful, - * %NULL on error. Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileEnumerator enumerateChildren(string attributes, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_enumerate_children(getFileStruct(), Str.toStringz(attributes), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileEnumerator)(cast(GFileEnumerator*) __p, true); - } - - /** - * Asynchronously gets the requested information about the files - * in a directory. The result is a #GFileEnumerator object that will - * give out #GFileInfo objects for all the files in the directory. - * - * For more details, see g_file_enumerate_children() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. You can - * then call g_file_enumerate_children_finish() to get the result of - * the operation. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void enumerateChildrenAsync(string attributes, GFileQueryInfoFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_enumerate_children_async(getFileStruct(), Str.toStringz(attributes), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async enumerate children operation. - * See g_file_enumerate_children_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileEnumerator or %NULL - * if an error occurred. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileEnumerator enumerateChildrenFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_enumerate_children_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileEnumerator)(cast(GFileEnumerator*) __p, true); - } - - /** - * Checks if the two given #GFiles refer to the same file. - * - * Note that two #GFiles that differ can still refer to the same - * file on the filesystem due to various forms of filename - * aliasing. - * - * This call does no blocking I/O. - * - * Params: - * file2 = the second #GFile - * - * Returns: %TRUE if @file1 and @file2 are equal. - */ - public bool equal(FileIF file2) - { - return g_file_equal(getFileStruct(), (file2 is null) ? null : file2.getFileStruct()) != 0; - } - - /** - * Gets a #GMount for the #GFile. - * - * #GMount is returned only for user interesting locations, see - * #GVolumeMonitor. If the #GFileIface for @file does not have a #mount, - * @error will be set to %G_IO_ERROR_NOT_FOUND and %NULL #will be returned. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GMount where the @file is located - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public MountIF findEnclosingMount(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_find_enclosing_mount(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MountIF)(cast(GMount*) __p, true); - } - - /** - * Asynchronously gets the mount for the file. - * - * For more details, see g_file_find_enclosing_mount() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_find_enclosing_mount_finish() to - * get the result of the operation. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void findEnclosingMountAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_find_enclosing_mount_async(getFileStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous find mount request. - * See g_file_find_enclosing_mount_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: #GMount for given @file or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public MountIF findEnclosingMountFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_find_enclosing_mount_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MountIF)(cast(GMount*) __p, true); - } - - /** - * Gets the base name (the last component of the path) for a given #GFile. - * - * If called for the top level of a system (such as the filesystem root - * or a uri like sftp://host/) it will return a single directory separator - * (and on Windows, possibly a drive letter). - * - * The base name is a byte string (not UTF-8). It has no defined encoding - * or rules other than it may not contain zero bytes. If you want to use - * filenames in a user interface you should use the display name that you - * can get by requesting the %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME - * attribute with g_file_query_info(). - * - * This call does no blocking I/O. - * - * Returns: string containing the #GFile's - * base name, or %NULL if given #GFile is invalid. The returned string - * should be freed with g_free() when no longer needed. - */ - public string getBasename() - { - auto retStr = g_file_get_basename(getFileStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets a child of @file with basename equal to @name. - * - * Note that the file with that specific name might not exist, but - * you can still have a #GFile that points to it. You can use this - * for instance to create that file. - * - * This call does no blocking I/O. - * - * Params: - * name = string containing the child's basename - * - * Returns: a #GFile to a child specified by @name. - * Free the returned object with g_object_unref(). - */ - public FileIF getChild(string name) - { - auto __p = g_file_get_child(getFileStruct(), Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets the child of @file for a given @display_name (i.e. a UTF-8 - * version of the name). If this function fails, it returns %NULL - * and @error will be set. This is very useful when constructing a - * #GFile for a new file and the user entered the filename in the - * user interface, for instance when you select a directory and - * type a filename in the file selector. - * - * This call does no blocking I/O. - * - * Params: - * displayName = string to a possible child - * - * Returns: a #GFile to the specified child, or - * %NULL if the display name couldn't be converted. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF getChildForDisplayName(string displayName) - { - GError* err = null; - - auto __p = g_file_get_child_for_display_name(getFileStruct(), Str.toStringz(displayName), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets the parent directory for the @file. - * If the @file represents the root directory of the - * file system, then %NULL will be returned. - * - * This call does no blocking I/O. - * - * Returns: a #GFile structure to the - * parent of the given #GFile or %NULL if there is no parent. Free - * the returned object with g_object_unref(). - */ - public FileIF getParent() - { - auto __p = g_file_get_parent(getFileStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets the parse name of the @file. - * A parse name is a UTF-8 string that describes the - * file such that one can get the #GFile back using - * g_file_parse_name(). - * - * This is generally used to show the #GFile as a nice - * full-pathname kind of string in a user interface, - * like in a location entry. - * - * For local files with names that can safely be converted - * to UTF-8 the pathname is used, otherwise the IRI is used - * (a form of URI that allows UTF-8 characters unescaped). - * - * This call does no blocking I/O. - * - * Returns: a string containing the #GFile's parse name. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getParseName() - { - auto retStr = g_file_get_parse_name(getFileStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the local pathname for #GFile, if one exists. If non-%NULL, this is - * guaranteed to be an absolute, canonical path. It might contain symlinks. - * - * This call does no blocking I/O. - * - * Returns: string containing the #GFile's path, - * or %NULL if no such path exists. The returned string should be freed - * with g_free() when no longer needed. - */ - public string getPath() - { - auto retStr = g_file_get_path(getFileStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the path for @descendant relative to @parent. - * - * This call does no blocking I/O. - * - * Params: - * descendant = input #GFile - * - * Returns: string with the relative path from - * @descendant to @parent, or %NULL if @descendant doesn't have @parent as - * prefix. The returned string should be freed with g_free() when - * no longer needed. - */ - public string getRelativePath(FileIF descendant) - { - auto retStr = g_file_get_relative_path(getFileStruct(), (descendant is null) ? null : descendant.getFileStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the URI for the @file. - * - * This call does no blocking I/O. - * - * Returns: a string containing the #GFile's URI. If the #GFile was constructed - * with an invalid URI, an invalid URI is returned. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getUri() - { - auto retStr = g_file_get_uri(getFileStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the URI scheme for a #GFile. - * RFC 3986 decodes the scheme as: - * |[ - * URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] - * ]| - * Common schemes include "file", "http", "ftp", etc. - * - * The scheme can be different from the one used to construct the #GFile, - * in that it might be replaced with one that is logically equivalent to the #GFile. - * - * This call does no blocking I/O. - * - * Returns: a string containing the URI scheme for the given - * #GFile or %NULL if the #GFile was constructed with an invalid URI. The - * returned string should be freed with g_free() when no longer needed. - */ - public string getUriScheme() - { - auto retStr = g_file_get_uri_scheme(getFileStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Checks if @file has a parent, and optionally, if it is @parent. - * - * If @parent is %NULL then this function returns %TRUE if @file has any - * parent at all. If @parent is non-%NULL then %TRUE is only returned - * if @file is an immediate child of @parent. - * - * Params: - * parent = the parent to check for, or %NULL - * - * Returns: %TRUE if @file is an immediate child of @parent (or any parent in - * the case that @parent is %NULL). - * - * Since: 2.24 - */ - public bool hasParent(FileIF parent) - { - return g_file_has_parent(getFileStruct(), (parent is null) ? null : parent.getFileStruct()) != 0; - } - - /** - * Checks whether @file has the prefix specified by @prefix. - * - * In other words, if the names of initial elements of @file's - * pathname match @prefix. Only full pathname elements are matched, - * so a path like /foo is not considered a prefix of /foobar, only - * of /foo/bar. - * - * A #GFile is not a prefix of itself. If you want to check for - * equality, use g_file_equal(). - * - * This call does no I/O, as it works purely on names. As such it can - * sometimes return %FALSE even if @file is inside a @prefix (from a - * filesystem point of view), because the prefix of @file is an alias - * of @prefix. - * - * Params: - * prefix = input #GFile - * - * Returns: %TRUE if the @file's parent, grandparent, etc is @prefix, - * %FALSE otherwise. - */ - public bool hasPrefix(FileIF prefix) - { - return g_file_has_prefix(getFileStruct(), (prefix is null) ? null : prefix.getFileStruct()) != 0; - } - - /** - * Checks to see if a #GFile has a given URI scheme. - * - * This call does no blocking I/O. - * - * Params: - * uriScheme = a string containing a URI scheme - * - * Returns: %TRUE if #GFile's backend supports the - * given URI scheme, %FALSE if URI scheme is %NULL, - * not supported, or #GFile is invalid. - */ - public bool hasUriScheme(string uriScheme) - { - return g_file_has_uri_scheme(getFileStruct(), Str.toStringz(uriScheme)) != 0; - } - - /** - * Creates a hash value for a #GFile. - * - * This call does no blocking I/O. - * - * Returns: 0 if @file is not a valid #GFile, otherwise an - * integer that can be used as hash value for the #GFile. - * This function is intended for easily hashing a #GFile to - * add to a #GHashTable or similar data structure. - */ - public uint hash() - { - return g_file_hash(getFileStruct()); - } - - /** - * Checks to see if a file is native to the platform. - * - * A native file is one expressed in the platform-native filename format, - * e.g. "C:\Windows" or "/usr/bin/". This does not mean the file is local, - * as it might be on a locally mounted remote filesystem. - * - * On some systems non-native files may be available using the native - * filesystem via a userspace filesystem (FUSE), in these cases this call - * will return %FALSE, but g_file_get_path() will still return a native path. - * - * This call does no blocking I/O. - * - * Returns: %TRUE if @file is native - */ - public bool isNative() - { - return g_file_is_native(getFileStruct()) != 0; - } - - /** - * Loads the contents of @file and returns it as #GBytes. - * - * If @file is a resource:// based URI, the resulting bytes will reference the - * embedded resource instead of a copy. Otherwise, this is equivalent to calling - * g_file_load_contents() and g_bytes_new_take(). - * - * For resources, @etag_out will be set to %NULL. - * - * The data contained in the resulting #GBytes is always zero-terminated, but - * this is not included in the #GBytes length. The resulting #GBytes should be - * freed with g_bytes_unref() when no longer in use. - * - * Params: - * cancellable = a #GCancellable or %NULL - * etagOut = a location to place the current - * entity tag for the file, or %NULL if the entity tag is not needed - * - * Returns: a #GBytes or %NULL and @error is set - * - * Since: 2.56 - * - * Throws: GException on failure. - */ - public Bytes loadBytes(Cancellable cancellable, out string etagOut) - { - char* outetagOut = null; - GError* err = null; - - auto __p = g_file_load_bytes(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &outetagOut, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - etagOut = Str.toString(outetagOut); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Asynchronously loads the contents of @file as #GBytes. - * - * If @file is a resource:// based URI, the resulting bytes will reference the - * embedded resource instead of a copy. Otherwise, this is equivalent to calling - * g_file_load_contents_async() and g_bytes_new_take(). - * - * @callback should call g_file_load_bytes_finish() to get the result of this - * asynchronous operation. - * - * See g_file_load_bytes() for more information. - * - * Params: - * cancellable = a #GCancellable or %NULL - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.56 - */ - public void loadBytesAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_load_bytes_async(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Completes an asynchronous request to g_file_load_bytes_async(). - * - * For resources, @etag_out will be set to %NULL. - * - * The data contained in the resulting #GBytes is always zero-terminated, but - * this is not included in the #GBytes length. The resulting #GBytes should be - * freed with g_bytes_unref() when no longer in use. - * - * See g_file_load_bytes() for more information. - * - * Params: - * result = a #GAsyncResult provided to the callback - * etagOut = a location to place the current - * entity tag for the file, or %NULL if the entity tag is not needed - * - * Returns: a #GBytes or %NULL and @error is set - * - * Since: 2.56 - * - * Throws: GException on failure. - */ - public Bytes loadBytesFinish(AsyncResultIF result, out string etagOut) - { - char* outetagOut = null; - GError* err = null; - - auto __p = g_file_load_bytes_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &outetagOut, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - etagOut = Str.toString(outetagOut); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Loads the content of the file into memory. The data is always - * zero-terminated, but this is not included in the resultant @length. - * The returned @contents should be freed with g_free() when no longer - * needed. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * contents = a location to place the contents of the file - * etagOut = a location to place the current entity tag for the file, - * or %NULL if the entity tag is not needed - * - * Returns: %TRUE if the @file's contents were successfully loaded. - * %FALSE if there were errors. - * - * Throws: GException on failure. - */ - public bool loadContents(Cancellable cancellable, out string contents, out string etagOut) - { - char* outcontents = null; - size_t length; - char* outetagOut = null; - GError* err = null; - - auto __p = g_file_load_contents(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &outcontents, &length, &outetagOut, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - contents = Str.toString(outcontents, length); - etagOut = Str.toString(outetagOut); - - return __p; - } - - /** - * Starts an asynchronous load of the @file's contents. - * - * For more details, see g_file_load_contents() which is - * the synchronous version of this call. - * - * When the load operation has completed, @callback will be called - * with @user data. To finish the operation, call - * g_file_load_contents_finish() with the #GAsyncResult returned by - * the @callback. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void loadContentsAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_load_contents_async(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous load of the @file's contents. - * The contents are placed in @contents, and @length is set to the - * size of the @contents string. The @contents should be freed with - * g_free() when no longer needed. If @etag_out is present, it will be - * set to the new entity tag for the @file. - * - * Params: - * res = a #GAsyncResult - * contents = a location to place the contents of the file - * etagOut = a location to place the current entity tag for the file, - * or %NULL if the entity tag is not needed - * - * Returns: %TRUE if the load was successful. If %FALSE and @error is - * present, it will be set appropriately. - * - * Throws: GException on failure. - */ - public bool loadContentsFinish(AsyncResultIF res, out string contents, out string etagOut) - { - char* outcontents = null; - size_t length; - char* outetagOut = null; - GError* err = null; - - auto __p = g_file_load_contents_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &outcontents, &length, &outetagOut, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - contents = Str.toString(outcontents, length); - etagOut = Str.toString(outetagOut); - - return __p; - } - - /** - * Reads the partial contents of a file. A #GFileReadMoreCallback should - * be used to stop reading from the file when appropriate, else this - * function will behave exactly as g_file_load_contents_async(). This - * operation can be finished by g_file_load_partial_contents_finish(). - * - * Users of this function should be aware that @user_data is passed to - * both the @read_more_callback and the @callback. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * readMoreCallback = a - * #GFileReadMoreCallback to receive partial data - * and to specify whether further data should be read - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to the callback functions - */ - public void loadPartialContentsAsync(Cancellable cancellable, GFileReadMoreCallback readMoreCallback, GAsyncReadyCallback callback, void* userData) - { - g_file_load_partial_contents_async(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), readMoreCallback, callback, userData); - } - - /** - * Finishes an asynchronous partial load operation that was started - * with g_file_load_partial_contents_async(). The data is always - * zero-terminated, but this is not included in the resultant @length. - * The returned @contents should be freed with g_free() when no longer - * needed. - * - * Params: - * res = a #GAsyncResult - * contents = a location to place the contents of the file - * etagOut = a location to place the current entity tag for the file, - * or %NULL if the entity tag is not needed - * - * Returns: %TRUE if the load was successful. If %FALSE and @error is - * present, it will be set appropriately. - * - * Throws: GException on failure. - */ - public bool loadPartialContentsFinish(AsyncResultIF res, out string contents, out string etagOut) - { - char* outcontents = null; - size_t length; - char* outetagOut = null; - GError* err = null; - - auto __p = g_file_load_partial_contents_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &outcontents, &length, &outetagOut, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - contents = Str.toString(outcontents, length); - etagOut = Str.toString(outetagOut); - - return __p; - } - - /** - * Creates a directory. Note that this will only create a child directory - * of the immediate parent directory of the path or URI given by the #GFile. - * To recursively create directories, see g_file_make_directory_with_parents(). - * This function will fail if the parent directory does not exist, setting - * @error to %G_IO_ERROR_NOT_FOUND. If the file system doesn't support - * creating directories, this function will fail, setting @error to - * %G_IO_ERROR_NOT_SUPPORTED. - * - * For a local #GFile the newly created directory will have the default - * (current) ownership and permissions of the current process. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE on successful creation, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool makeDirectory(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_make_directory(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously creates a directory. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.38 - */ - public void makeDirectoryAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_make_directory_async(getFileStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous directory creation, started with - * g_file_make_directory_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on successful directory creation, %FALSE otherwise. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool makeDirectoryFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_make_directory_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a directory and any parent directories that may not - * exist similar to 'mkdir -p'. If the file system does not support - * creating directories, this function will fail, setting @error to - * %G_IO_ERROR_NOT_SUPPORTED. If the directory itself already exists, - * this function will fail setting @error to %G_IO_ERROR_EXISTS, unlike - * the similar g_mkdir_with_parents(). - * - * For a local #GFile the newly created directories will have the default - * (current) ownership and permissions of the current process. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if all directories have been successfully created, %FALSE - * otherwise. - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public bool makeDirectoryWithParents(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_make_directory_with_parents(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a symbolic link named @file which contains the string - * @symlink_value. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * symlinkValue = a string with the path for the target - * of the new symlink - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE on the creation of a new symlink, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool makeSymbolicLink(string symlinkValue, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_make_symbolic_link(getFileStruct(), Str.toStringz(symlinkValue), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Recursively measures the disk usage of @file. - * - * This is essentially an analog of the 'du' command, but it also - * reports the number of directories and non-directory files encountered - * (including things like symbolic links). - * - * By default, errors are only reported against the toplevel file - * itself. Errors found while recursing are silently ignored, unless - * %G_FILE_MEASURE_REPORT_ANY_ERROR is given in @flags. - * - * The returned size, @disk_usage, is in bytes and should be formatted - * with g_format_size() in order to get something reasonable for showing - * in a user interface. - * - * @progress_callback and @progress_data can be given to request - * periodic progress updates while scanning. See the documentation for - * #GFileMeasureProgressCallback for information about when and how the - * callback will be invoked. - * - * Params: - * flags = #GFileMeasureFlags - * cancellable = optional #GCancellable - * progressCallback = a #GFileMeasureProgressCallback - * progressData = user_data for @progress_callback - * diskUsage = the number of bytes of disk space used - * numDirs = the number of directories encountered - * numFiles = the number of non-directories encountered - * - * Returns: %TRUE if successful, with the out parameters set. - * %FALSE otherwise, with @error set. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool measureDiskUsage(GFileMeasureFlags flags, Cancellable cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, out ulong diskUsage, out ulong numDirs, out ulong numFiles) - { - GError* err = null; - - auto __p = g_file_measure_disk_usage(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), progressCallback, progressData, &diskUsage, &numDirs, &numFiles, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Recursively measures the disk usage of @file. - * - * This is the asynchronous version of g_file_measure_disk_usage(). See - * there for more information. - * - * Params: - * flags = #GFileMeasureFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable - * progressCallback = a #GFileMeasureProgressCallback - * progressData = user_data for @progress_callback - * callback = a #GAsyncReadyCallback to call when complete - * userData = the data to pass to callback function - * - * Since: 2.38 - */ - public void measureDiskUsageAsync(GFileMeasureFlags flags, int ioPriority, Cancellable cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, GAsyncReadyCallback callback, void* userData) - { - g_file_measure_disk_usage_async(getFileStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), progressCallback, progressData, callback, userData); - } - - /** - * Collects the results from an earlier call to - * g_file_measure_disk_usage_async(). See g_file_measure_disk_usage() for - * more information. - * - * Params: - * result = the #GAsyncResult passed to your #GAsyncReadyCallback - * diskUsage = the number of bytes of disk space used - * numDirs = the number of directories encountered - * numFiles = the number of non-directories encountered - * - * Returns: %TRUE if successful, with the out parameters set. - * %FALSE otherwise, with @error set. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool measureDiskUsageFinish(AsyncResultIF result, out ulong diskUsage, out ulong numDirs, out ulong numFiles) - { - GError* err = null; - - auto __p = g_file_measure_disk_usage_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &diskUsage, &numDirs, &numFiles, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Obtains a file or directory monitor for the given file, - * depending on the type of the file. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public FileMonitor monitor(GFileMonitorFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_monitor(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileMonitor)(cast(GFileMonitor*) __p, true); - } - - /** - * Obtains a directory monitor for the given file. - * This may fail if directory monitoring is not supported. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * It does not make sense for @flags to contain - * %G_FILE_MONITOR_WATCH_HARD_LINKS, since hard links can not be made to - * directories. It is not possible to monitor all the files in a - * directory for changes made via hard links; if you want to do this then - * you must register individual watches with g_file_monitor(). - * - * Params: - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileMonitor monitorDirectory(GFileMonitorFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_monitor_directory(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileMonitor)(cast(GFileMonitor*) __p, true); - } - - /** - * Obtains a file monitor for the given file. If no file notification - * mechanism exists, then regular polling of the file is used. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @flags contains %G_FILE_MONITOR_WATCH_HARD_LINKS then the monitor - * will also attempt to report changes made to the file via another - * filename (ie, a hard link). Without this flag, you can only rely on - * changes made through the filename contained in @file to be - * reported. Using this flag may result in an increase in resource - * usage, and may not have any effect depending on the #GFileMonitor - * backend and/or filesystem type. - * - * Params: - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileMonitor monitorFile(GFileMonitorFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_monitor_file(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileMonitor)(cast(GFileMonitor*) __p, true); - } - - /** - * Starts a @mount_operation, mounting the volume that contains - * the file @location. - * - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_mount_enclosing_volume_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void mountEnclosingVolume(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_mount_enclosing_volume(getFileStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a mount operation started by g_file_mount_enclosing_volume(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if successful. If an error has occurred, - * this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - public bool mountEnclosingVolumeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_mount_enclosing_volume_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Mounts a file of type G_FILE_TYPE_MOUNTABLE. - * Using @mount_operation, you can request callbacks when, for instance, - * passwords are needed during authentication. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_mount_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void mountMountable(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_mount_mountable(getFileStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a mount operation. See g_file_mount_mountable() for details. - * - * Finish an asynchronous mount operation that was started - * with g_file_mount_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #GFile or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF mountMountableFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_mount_mountable_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Tries to move the file or directory @source to the location specified - * by @destination. If native move operations are supported then this is - * used, otherwise a copy + delete fallback is used. The native - * implementation may support moving directories (for instance on moves - * inside the same filesystem), but the fallback code does not. - * - * If the flag #G_FILE_COPY_OVERWRITE is specified an already - * existing @destination file is overwritten. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @progress_callback is not %NULL, then the operation can be monitored - * by setting this to a #GFileProgressCallback function. - * @progress_callback_data will be passed to this function. It is - * guaranteed that this callback will be called after all data has been - * transferred with the total number of bytes copied during the operation. - * - * If the @source file does not exist, then the %G_IO_ERROR_NOT_FOUND - * error is returned, independent on the status of the @destination. - * - * If #G_FILE_COPY_OVERWRITE is not specified and the target exists, - * then the error %G_IO_ERROR_EXISTS is returned. - * - * If trying to overwrite a file over a directory, the %G_IO_ERROR_IS_DIRECTORY - * error is returned. If trying to overwrite a directory with a directory the - * %G_IO_ERROR_WOULD_MERGE error is returned. - * - * If the source is a directory and the target does not exist, or - * #G_FILE_COPY_OVERWRITE is specified and the target is a file, then - * the %G_IO_ERROR_WOULD_RECURSE error may be returned (if the native - * move operation isn't available). - * - * Params: - * destination = #GFile pointing to the destination location - * flags = set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = #GFileProgressCallback - * function for updates - * progressCallbackData = gpointer to user data for - * the callback function - * - * Returns: %TRUE on successful move, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool move(FileIF destination, GFileCopyFlags flags, Cancellable cancellable, GFileProgressCallback progressCallback, void* progressCallbackData) - { - GError* err = null; - - auto __p = g_file_move(getFileStruct(), (destination is null) ? null : destination.getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), progressCallback, progressCallbackData, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Opens an existing file for reading and writing. The result is - * a #GFileIOStream that can be used to read and write the contents - * of the file. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will - * be returned. If the file is a directory, the %G_IO_ERROR_IS_DIRECTORY - * error will be returned. Other errors are possible too, and depend on - * what kind of filesystem the file is on. Note that in many non-local - * file cases read and write streams are not supported, so make sure you - * really need to do read and write streaming, rather than just opening - * for reading or writing. - * - * Params: - * cancellable = a #GCancellable - * - * Returns: #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream openReadwrite(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_open_readwrite(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIOStream)(cast(GFileIOStream*) __p, true); - } - - /** - * Asynchronously opens @file for reading and writing. - * - * For more details, see g_file_open_readwrite() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_open_readwrite_finish() to get - * the result of the operation. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void openReadwriteAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_open_readwrite_async(getFileStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file read operation started with - * g_file_open_readwrite_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream openReadwriteFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_open_readwrite_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIOStream)(cast(GFileIOStream*) __p, true); - } - - /** - * Exactly like g_file_get_path(), but caches the result via - * g_object_set_qdata_full(). This is useful for example in C - * applications which mix `g_file_*` APIs with native ones. It - * also avoids an extra duplicated string when possible, so will be - * generally more efficient. - * - * This call does no blocking I/O. - * - * Returns: string containing the #GFile's path, - * or %NULL if no such path exists. The returned string is owned by @file. - * - * Since: 2.56 - */ - public string peekPath() - { - return Str.toString(g_file_peek_path(getFileStruct())); - } - - /** - * Polls a file of type #G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_mount_mountable_finish() to get - * the result of the operation. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void pollMountable(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_poll_mountable(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a poll operation. See g_file_poll_mountable() for details. - * - * Finish an asynchronous poll operation that was polled - * with g_file_poll_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. %FALSE - * otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool pollMountableFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_poll_mountable_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Returns the #GAppInfo that is registered as the default - * application to handle the file specified by @file. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: a #GAppInfo if the handle was found, - * %NULL if there were errors. - * When you are done with it, release it with g_object_unref() - * - * Throws: GException on failure. - */ - public AppInfoIF queryDefaultHandler(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_query_default_handler(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoIF)(cast(GAppInfo*) __p, true); - } - - /** - * Async version of g_file_query_default_handler(). - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is done - * userData = data to pass to @callback - * - * Since: 2.60 - */ - public void queryDefaultHandlerAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_query_default_handler_async(getFileStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a g_file_query_default_handler_async() operation. - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #GAppInfo if the handle was found, - * %NULL if there were errors. - * When you are done with it, release it with g_object_unref() - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public AppInfoIF queryDefaultHandlerFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_query_default_handler_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(AppInfoIF)(cast(GAppInfo*) __p, true); - } - - /** - * Utility function to check if a particular file exists. This is - * implemented using g_file_query_info() and as such does blocking I/O. - * - * Note that in many cases it is [racy to first check for file existence](https://en.wikipedia.org/wiki/Time_of_check_to_time_of_use) - * and then execute something based on the outcome of that, because the - * file might have been created or removed in between the operations. The - * general approach to handling that is to not check, but just do the - * operation and handle the errors as they come. - * - * As an example of race-free checking, take the case of reading a file, - * and if it doesn't exist, creating it. There are two racy versions: read - * it, and on error create it; and: check if it exists, if not create it. - * These can both result in two processes creating the file (with perhaps - * a partially written file as the result). The correct approach is to - * always try to create the file with g_file_create() which will either - * atomically create the file or fail with a %G_IO_ERROR_EXISTS error. - * - * However, in many cases an existence check is useful in a user interface, - * for instance to make a menu item sensitive/insensitive, so that you don't - * have to fool users that something is possible and then just show an error - * dialog. If you do this, you should make sure to also handle the errors - * that can happen due to races when you execute the operation. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the file exists (and can be detected without error), - * %FALSE otherwise (or if cancelled). - */ - public bool queryExists(Cancellable cancellable) - { - return g_file_query_exists(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct()) != 0; - } - - /** - * Utility function to inspect the #GFileType of a file. This is - * implemented using g_file_query_info() and as such does blocking I/O. - * - * The primary use case of this method is to check if a file is - * a regular file, directory, or symlink. - * - * Params: - * flags = a set of #GFileQueryInfoFlags passed to g_file_query_info() - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: The #GFileType of the file and #G_FILE_TYPE_UNKNOWN - * if the file does not exist - * - * Since: 2.18 - */ - public GFileType queryFileType(GFileQueryInfoFlags flags, Cancellable cancellable) - { - return g_file_query_file_type(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct()); - } - - /** - * Similar to g_file_query_info(), but obtains information - * about the filesystem the @file is on, rather than the file itself. - * For instance the amount of space available and the type of - * the filesystem. - * - * The @attributes value is a string that specifies the attributes - * that should be gathered. It is not an error if it's not possible - * to read a particular requested attribute from a file - it just - * won't be set. @attributes should be a comma-separated list of - * attributes or attribute wildcards. The wildcard "*" means all - * attributes, and a wildcard like "filesystem::*" means all attributes - * in the filesystem namespace. The standard namespace for filesystem - * attributes is "filesystem". Common attributes of interest are - * #G_FILE_ATTRIBUTE_FILESYSTEM_SIZE (the total size of the filesystem - * in bytes), #G_FILE_ATTRIBUTE_FILESYSTEM_FREE (number of bytes available), - * and #G_FILE_ATTRIBUTE_FILESYSTEM_TYPE (type of the filesystem). - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will - * be returned. Other errors are possible too, and depend on what - * kind of filesystem the file is on. - * - * Params: - * attributes = an attribute query string - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileInfo or %NULL if there was an error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryFilesystemInfo(string attributes, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_query_filesystem_info(getFileStruct(), Str.toStringz(attributes), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Asynchronously gets the requested information about the filesystem - * that the specified @file is on. The result is a #GFileInfo object - * that contains key-value attributes (such as type or size for the - * file). - * - * For more details, see g_file_query_filesystem_info() which is the - * synchronous version of this call. - * - * When the operation is finished, @callback will be called. You can - * then call g_file_query_info_finish() to get the result of the - * operation. - * - * Params: - * attributes = an attribute query string - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void queryFilesystemInfoAsync(string attributes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_query_filesystem_info_async(getFileStruct(), Str.toStringz(attributes), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous filesystem info query. - * See g_file_query_filesystem_info_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: #GFileInfo for given @file - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryFilesystemInfoFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_query_filesystem_info_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Gets the requested information about specified @file. - * The result is a #GFileInfo object that contains key-value - * attributes (such as the type or size of the file). - * - * The @attributes value is a string that specifies the file - * attributes that should be gathered. It is not an error if - * it's not possible to read a particular requested attribute - * from a file - it just won't be set. @attributes should be a - * comma-separated list of attributes or attribute wildcards. - * The wildcard "*" means all attributes, and a wildcard like - * "standard::*" means all attributes in the standard namespace. - * An example attribute query be "standard::*,owner::user". - * The standard attributes are available as defines, like - * #G_FILE_ATTRIBUTE_STANDARD_NAME. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * For symlinks, normally the information about the target of the - * symlink is returned, rather than information about the symlink - * itself. However if you pass #G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS - * in @flags the information about the symlink itself will be returned. - * Also, for symlinks that point to non-existing files the information - * about the symlink itself will be returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will be - * returned. Other errors are possible too, and depend on what kind of - * filesystem the file is on. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileInfo for the given @file, or %NULL - * on error. Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryInfo(string attributes, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_query_info(getFileStruct(), Str.toStringz(attributes), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Asynchronously gets the requested information about specified @file. - * The result is a #GFileInfo object that contains key-value attributes - * (such as type or size for the file). - * - * For more details, see g_file_query_info() which is the synchronous - * version of this call. - * - * When the operation is finished, @callback will be called. You can - * then call g_file_query_info_finish() to get the result of the operation. - * - * Params: - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void queryInfoAsync(string attributes, GFileQueryInfoFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_query_info_async(getFileStruct(), Str.toStringz(attributes), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file info query. - * See g_file_query_info_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: #GFileInfo for given @file - * or %NULL on error. Free the returned object with - * g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInfo queryInfoFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_query_info_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p, true); - } - - /** - * Obtain the list of settable attributes for the file. - * - * Returns the type and full attribute name of all the attributes - * that can be set on this file. This doesn't mean setting it will - * always succeed though, you might get an access failure, or some - * specific file may not support a specific attribute. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileAttributeInfoList describing the settable attributes. - * When you are done with it, release it with - * g_file_attribute_info_list_unref() - * - * Throws: GException on failure. - */ - public FileAttributeInfoList querySettableAttributes(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_query_settable_attributes(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileAttributeInfoList)(cast(GFileAttributeInfoList*) __p, true); - } - - /** - * Obtain the list of attribute namespaces where new attributes - * can be created by a user. An example of this is extended - * attributes (in the "xattr" namespace). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileAttributeInfoList describing the writable namespaces. - * When you are done with it, release it with - * g_file_attribute_info_list_unref() - * - * Throws: GException on failure. - */ - public FileAttributeInfoList queryWritableNamespaces(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_query_writable_namespaces(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileAttributeInfoList)(cast(GFileAttributeInfoList*) __p, true); - } - - /** - * Opens a file for reading. The result is a #GFileInputStream that - * can be used to read the contents of the file. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If the file does not exist, the %G_IO_ERROR_NOT_FOUND error will be - * returned. If the file is a directory, the %G_IO_ERROR_IS_DIRECTORY - * error will be returned. Other errors are possible too, and depend - * on what kind of filesystem the file is on. - * - * Params: - * cancellable = a #GCancellable - * - * Returns: #GFileInputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInputStream read(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_read(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInputStream)(cast(GFileInputStream*) __p, true); - } - - /** - * Asynchronously opens @file for reading. - * - * For more details, see g_file_read() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_read_finish() to get the result - * of the operation. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void readAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_read_async(getFileStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file read operation started with - * g_file_read_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileInputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileInputStream readFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_read_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInputStream)(cast(GFileInputStream*) __p, true); - } - - /** - * Returns an output stream for overwriting the file, possibly - * creating a backup copy of the file first. If the file doesn't exist, - * it will be created. - * - * This will try to replace the file in the safest way possible so - * that any errors during the writing will not affect an already - * existing copy of the file. For instance, for local files it - * may write to a temporary file and then atomically rename over - * the destination when the stream is closed. - * - * By default files created are generally readable by everyone, - * but if you pass #G_FILE_CREATE_PRIVATE in @flags the file - * will be made readable only to the current user, to the level that - * is supported on the target filesystem. - * - * If @cancellable is not %NULL, then the operation can be cancelled - * by triggering the cancellable object from another thread. If the - * operation was cancelled, the error %G_IO_ERROR_CANCELLED will be - * returned. - * - * If you pass in a non-%NULL @etag value and @file already exists, then - * this value is compared to the current entity tag of the file, and if - * they differ an %G_IO_ERROR_WRONG_ETAG error is returned. This - * generally means that the file has been changed since you last read - * it. You can get the new etag from g_file_output_stream_get_etag() - * after you've finished writing and closed the #GFileOutputStream. When - * you load a new file you can use g_file_input_stream_query_info() to - * get the etag of the file. - * - * If @make_backup is %TRUE, this function will attempt to make a - * backup of the current file before overwriting it. If this fails - * a %G_IO_ERROR_CANT_CREATE_BACKUP error will be returned. If you - * want to replace anyway, try again with @make_backup set to %FALSE. - * - * If the file is a directory the %G_IO_ERROR_IS_DIRECTORY error will - * be returned, and if the file is some other form of non-regular file - * then a %G_IO_ERROR_NOT_REGULAR_FILE error will be returned. Some - * file systems don't allow all file names, and may return an - * %G_IO_ERROR_INVALID_FILENAME error, and if the name is to long - * %G_IO_ERROR_FILENAME_TOO_LONG will be returned. Other errors are - * possible too, and depend on what kind of filesystem the file is on. - * - * Params: - * etag = an optional [entity tag][gfile-etag] - * for the current #GFile, or #NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileOutputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream replace(string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_replace(getFileStruct(), Str.toStringz(etag), makeBackup, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileOutputStream)(cast(GFileOutputStream*) __p, true); - } - - /** - * Asynchronously overwrites the file, replacing the contents, - * possibly creating a backup copy of the file first. - * - * For more details, see g_file_replace() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_replace_finish() to get the result - * of the operation. - * - * Params: - * etag = an [entity tag][gfile-etag] for the current #GFile, - * or %NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void replaceAsync(string etag, bool makeBackup, GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_replace_async(getFileStruct(), Str.toStringz(etag), makeBackup, flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Replaces the contents of @file with @contents of @length bytes. - * - * If @etag is specified (not %NULL), any existing file must have that etag, - * or the error %G_IO_ERROR_WRONG_ETAG will be returned. - * - * If @make_backup is %TRUE, this function will attempt to make a backup - * of @file. Internally, it uses g_file_replace(), so will try to replace the - * file contents in the safest way possible. For example, atomic renames are - * used when replacing local files’ contents. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * The returned @new_etag can be used to verify that the file hasn't - * changed the next time it is saved over. - * - * Params: - * contents = a string containing the new contents for @file - * etag = the old [entity-tag][gfile-etag] for the document, - * or %NULL - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * newEtag = a location to a new [entity tag][gfile-etag] - * for the document. This should be freed with g_free() when no longer - * needed, or %NULL - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: %TRUE if successful. If an error has occurred, this function - * will return %FALSE and set @error appropriately if present. - * - * Throws: GException on failure. - */ - public bool replaceContents(string contents, string etag, bool makeBackup, GFileCreateFlags flags, out string newEtag, Cancellable cancellable) - { - char* outnewEtag = null; - GError* err = null; - - auto __p = g_file_replace_contents(getFileStruct(), Str.toStringz(contents), cast(size_t)contents.length, Str.toStringz(etag), makeBackup, flags, &outnewEtag, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - newEtag = Str.toString(outnewEtag); - - return __p; - } - - /** - * Starts an asynchronous replacement of @file with the given - * @contents of @length bytes. @etag will replace the document's - * current entity tag. - * - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_replace_contents_finish(). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * If @make_backup is %TRUE, this function will attempt to - * make a backup of @file. - * - * Note that no copy of @contents will be made, so it must stay valid - * until @callback is called. See g_file_replace_contents_bytes_async() - * for a #GBytes version that will automatically hold a reference to the - * contents (without copying) for the duration of the call. - * - * Params: - * contents = string of contents to replace the file with - * etag = a new [entity tag][gfile-etag] for the @file, or %NULL - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void replaceContentsAsync(string contents, string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_replace_contents_async(getFileStruct(), Str.toStringz(contents), cast(size_t)contents.length, Str.toStringz(etag), makeBackup, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Same as g_file_replace_contents_async() but takes a #GBytes input instead. - * This function will keep a ref on @contents until the operation is done. - * Unlike g_file_replace_contents_async() this allows forgetting about the - * content without waiting for the callback. - * - * When this operation has completed, @callback will be called with - * @user_user data, and the operation can be finalized with - * g_file_replace_contents_finish(). - * - * Params: - * contents = a #GBytes - * etag = a new [entity tag][gfile-etag] for the @file, or %NULL - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.40 - */ - public void replaceContentsBytesAsync(Bytes contents, string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_replace_contents_bytes_async(getFileStruct(), (contents is null) ? null : contents.getBytesStruct(), Str.toStringz(etag), makeBackup, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous replace of the given @file. See - * g_file_replace_contents_async(). Sets @new_etag to the new entity - * tag for the document, if present. - * - * Params: - * res = a #GAsyncResult - * newEtag = a location of a new [entity tag][gfile-etag] - * for the document. This should be freed with g_free() when it is no - * longer needed, or %NULL - * - * Returns: %TRUE on success, %FALSE on failure. - * - * Throws: GException on failure. - */ - public bool replaceContentsFinish(AsyncResultIF res, out string newEtag) - { - char* outnewEtag = null; - GError* err = null; - - auto __p = g_file_replace_contents_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &outnewEtag, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - newEtag = Str.toString(outnewEtag); - - return __p; - } - - /** - * Finishes an asynchronous file replace operation started with - * g_file_replace_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileOutputStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileOutputStream replaceFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_replace_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileOutputStream)(cast(GFileOutputStream*) __p, true); - } - - /** - * Returns an output stream for overwriting the file in readwrite mode, - * possibly creating a backup copy of the file first. If the file doesn't - * exist, it will be created. - * - * For details about the behaviour, see g_file_replace() which does the - * same thing but returns an output stream only. - * - * Note that in many non-local file cases read and write streams are not - * supported, so make sure you really need to do read and write streaming, - * rather than just opening for reading or writing. - * - * Params: - * etag = an optional [entity tag][gfile-etag] - * for the current #GFile, or #NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream replaceReadwrite(string etag, bool makeBackup, GFileCreateFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_replace_readwrite(getFileStruct(), Str.toStringz(etag), makeBackup, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIOStream)(cast(GFileIOStream*) __p, true); - } - - /** - * Asynchronously overwrites the file in read-write mode, - * replacing the contents, possibly creating a backup copy - * of the file first. - * - * For more details, see g_file_replace_readwrite() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_replace_readwrite_finish() to get - * the result of the operation. - * - * Params: - * etag = an [entity tag][gfile-etag] for the current #GFile, - * or %NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void replaceReadwriteAsync(string etag, bool makeBackup, GFileCreateFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_replace_readwrite_async(getFileStruct(), Str.toStringz(etag), makeBackup, flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file replace operation started with - * g_file_replace_readwrite_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFileIOStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public FileIOStream replaceReadwriteFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_replace_readwrite_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIOStream)(cast(GFileIOStream*) __p, true); - } - - /** - * Resolves a relative path for @file to an absolute path. - * - * This call does no blocking I/O. - * - * Params: - * relativePath = a given relative path string - * - * Returns: #GFile to the resolved path. - * %NULL if @relative_path is %NULL or if @file is invalid. - * Free the returned object with g_object_unref(). - */ - public FileIF resolveRelativePath(string relativePath) - { - auto __p = g_file_resolve_relative_path(getFileStruct(), Str.toStringz(relativePath)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Sets an attribute in the file with attribute name @attribute to @value_p. - * - * Some attributes can be unset by setting @type to - * %G_FILE_ATTRIBUTE_TYPE_INVALID and @value_p to %NULL. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * type = The type of the attribute - * valueP = a pointer to the value (or the pointer - * itself if the type is a pointer type) - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the attribute was set, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttribute(string attribute, GFileAttributeType type, void* valueP, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attribute(getFileStruct(), Str.toStringz(attribute), type, valueP, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING to @value. - * If @attribute is of a different type, this operation will fail, - * returning %FALSE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a string containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeByteString(string attribute, string value, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attribute_byte_string(getFileStruct(), Str.toStringz(attribute), Str.toStringz(value), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_INT32 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #gint32 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeInt32(string attribute, int value, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attribute_int32(getFileStruct(), Str.toStringz(attribute), value, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_INT64 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #guint64 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeInt64(string attribute, long value, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attribute_int64(getFileStruct(), Str.toStringz(attribute), value, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_STRING to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a string containing the attribute's value - * flags = #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeString(string attribute, string value, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attribute_string(getFileStruct(), Str.toStringz(attribute), Str.toStringz(value), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_UINT32 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #guint32 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeUint32(string attribute, uint value, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attribute_uint32(getFileStruct(), Str.toStringz(attribute), value, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_UINT64 to @value. - * If @attribute is of a different type, this operation will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * attribute = a string containing the attribute's name - * value = a #guint64 containing the attribute's new value - * flags = a #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE if the @attribute was successfully set to @value - * in the @file, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributeUint64(string attribute, ulong value, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attribute_uint64(getFileStruct(), Str.toStringz(attribute), value, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously sets the attributes of @file with @info. - * - * For more details, see g_file_set_attributes_from_info(), - * which is the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_set_attributes_finish() to get - * the result of the operation. - * - * Params: - * info = a #GFileInfo - * flags = a #GFileQueryInfoFlags - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback - * userData = a #gpointer - */ - public void setAttributesAsync(FileInfo info, GFileQueryInfoFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_set_attributes_async(getFileStruct(), (info is null) ? null : info.getFileInfoStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes setting an attribute started in g_file_set_attributes_async(). - * - * Params: - * result = a #GAsyncResult - * info = a #GFileInfo - * - * Returns: %TRUE if the attributes were set correctly, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributesFinish(AsyncResultIF result, out FileInfo info) - { - GFileInfo* outinfo = null; - GError* err = null; - - auto __p = g_file_set_attributes_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &outinfo, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - info = ObjectG.getDObject!(FileInfo)(outinfo); - - return __p; - } - - /** - * Tries to set all attributes in the #GFileInfo on the target - * values, not stopping on the first error. - * - * If there is any error during this operation then @error will - * be set to the first error. Error on particular fields are flagged - * by setting the "status" field in the attribute value to - * %G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can - * also detect further errors. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * info = a #GFileInfo - * flags = #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %FALSE if there was any error, %TRUE otherwise. - * - * Throws: GException on failure. - */ - public bool setAttributesFromInfo(FileInfo info, GFileQueryInfoFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_attributes_from_info(getFileStruct(), (info is null) ? null : info.getFileInfoStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Renames @file to the specified display name. - * - * The display name is converted from UTF-8 to the correct encoding - * for the target filesystem if possible and the @file is renamed to this. - * - * If you want to implement a rename operation in the user interface the - * edit name (#G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME) should be used as the - * initial value in the rename widget, and then the result after editing - * should be passed to g_file_set_display_name(). - * - * On success the resulting converted filename is returned. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * displayName = a string - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: a #GFile specifying what @file was renamed to, - * or %NULL if there was an error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF setDisplayName(string displayName, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_set_display_name(getFileStruct(), Str.toStringz(displayName), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Asynchronously sets the display name for a given #GFile. - * - * For more details, see g_file_set_display_name() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_set_display_name_finish() to get - * the result of the operation. - * - * Params: - * displayName = a string - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - */ - public void setDisplayNameAsync(string displayName, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_set_display_name_async(getFileStruct(), Str.toStringz(displayName), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes setting a display name started with - * g_file_set_display_name_async(). - * - * Params: - * res = a #GAsyncResult - * - * Returns: a #GFile or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - public FileIF setDisplayNameFinish(AsyncResultIF res) - { - GError* err = null; - - auto __p = g_file_set_display_name_finish(getFileStruct(), (res is null) ? null : res.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Starts a file of type #G_FILE_TYPE_MOUNTABLE. - * Using @start_operation, you can request callbacks when, for instance, - * passwords are needed during authentication. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_mount_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * startOperation = a #GMountOperation, or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback to call when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void startMountable(GDriveStartFlags flags, MountOperation startOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_start_mountable(getFileStruct(), flags, (startOperation is null) ? null : startOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a start operation. See g_file_start_mountable() for details. - * - * Finish an asynchronous start operation that was started - * with g_file_start_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. %FALSE - * otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool startMountableFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_start_mountable_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Stops a file of type #G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_stop_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction. - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void stopMountable(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_stop_mountable(getFileStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a stop operation, see g_file_stop_mountable() for details. - * - * Finish an asynchronous stop operation that was started - * with g_file_stop_mountable(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool stopMountableFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_stop_mountable_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks if @file supports - * [thread-default contexts][g-main-context-push-thread-default-context]. - * If this returns %FALSE, you cannot perform asynchronous operations on - * @file in a thread that has a thread-default context. - * - * Returns: Whether or not @file supports thread-default contexts. - * - * Since: 2.22 - */ - public bool supportsThreadContexts() - { - return g_file_supports_thread_contexts(getFileStruct()) != 0; - } - - /** - * Sends @file to the "Trashcan", if possible. This is similar to - * deleting it, but the user can recover it before emptying the trashcan. - * Not all file systems support trashing, so this call can return the - * %G_IO_ERROR_NOT_SUPPORTED error. Since GLib 2.66, the `x-gvfs-notrash` unix - * mount option can be used to disable g_file_trash() support for certain - * mounts, the %G_IO_ERROR_NOT_SUPPORTED error will be returned in that case. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional #GCancellable object, - * %NULL to ignore - * - * Returns: %TRUE on successful trash, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool trash(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_file_trash(getFileStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously sends @file to the Trash location, if possible. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.38 - */ - public void trashAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_trash_async(getFileStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous file trashing operation, started with - * g_file_trash_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE on successful trash, %FALSE otherwise. - * - * Since: 2.38 - * - * Throws: GException on failure. - */ - public bool trashFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_trash_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Unmounts a file of type G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_unmount_mountable_finish() to get - * the result of the operation. - * - * Deprecated: Use g_file_unmount_mountable_with_operation() instead. - * - * Params: - * flags = flags affecting the operation - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - */ - public void unmountMountable(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_unmount_mountable(getFileStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an unmount operation, see g_file_unmount_mountable() for details. - * - * Finish an asynchronous unmount operation that was started - * with g_file_unmount_mountable(). - * - * Deprecated: Use g_file_unmount_mountable_with_operation_finish() - * instead. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool unmountMountableFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_unmount_mountable_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Unmounts a file of type #G_FILE_TYPE_MOUNTABLE. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * When the operation is finished, @callback will be called. - * You can then call g_file_unmount_mountable_finish() to get - * the result of the operation. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation, - * or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, - * %NULL to ignore - * callback = a #GAsyncReadyCallback to call - * when the request is satisfied, or %NULL - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void unmountMountableWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_file_unmount_mountable_with_operation(getFileStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an unmount operation, - * see g_file_unmount_mountable_with_operation() for details. - * - * Finish an asynchronous unmount operation that was started - * with g_file_unmount_mountable_with_operation(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool unmountMountableWithOperationFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_file_unmount_mountable_with_operation_finish(getFileStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/FilenameCompleter.d b/generated/gtkd/gio/FilenameCompleter.d deleted file mode 100644 index 6690b2c79..000000000 --- a/generated/gtkd/gio/FilenameCompleter.d +++ /dev/null @@ -1,150 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FilenameCompleter; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * Completes partial file and directory names given a partial string by - * looking in the file system for clues. Can return a list of possible - * completion strings for widget implementations. - */ -public class FilenameCompleter : ObjectG -{ - /** the main Gtk struct */ - protected GFilenameCompleter* gFilenameCompleter; - - /** Get the main Gtk struct */ - public GFilenameCompleter* getFilenameCompleterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFilenameCompleter; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFilenameCompleter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFilenameCompleter* gFilenameCompleter, bool ownedRef = false) - { - this.gFilenameCompleter = gFilenameCompleter; - super(cast(GObject*)gFilenameCompleter, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_filename_completer_get_type(); - } - - /** - * Creates a new filename completer. - * - * Returns: a #GFilenameCompleter. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_filename_completer_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GFilenameCompleter*) __p, true); - } - - /** - * Obtains a completion for @initial_text from @completer. - * - * Params: - * initialText = text to be completed. - * - * Returns: a completed string, or %NULL if no - * completion exists. This string is not owned by GIO, so remember to g_free() - * it when finished. - */ - public string getCompletionSuffix(string initialText) - { - auto retStr = g_filename_completer_get_completion_suffix(gFilenameCompleter, Str.toStringz(initialText)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets an array of completion strings for a given initial text. - * - * Params: - * initialText = text to be completed. - * - * Returns: array of strings with possible completions for @initial_text. - * This array must be freed by g_strfreev() when finished. - */ - public string[] getCompletions(string initialText) - { - auto retStr = g_filename_completer_get_completions(gFilenameCompleter, Str.toStringz(initialText)); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * If @dirs_only is %TRUE, @completer will only - * complete directory names, and not file names. - * - * Params: - * dirsOnly = a #gboolean. - */ - public void setDirsOnly(bool dirsOnly) - { - g_filename_completer_set_dirs_only(gFilenameCompleter, dirsOnly); - } - - /** - * Emitted when the file name completion information comes available. - */ - gulong addOnGotCompletionData(void delegate(FilenameCompleter) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "got-completion-data", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/FilterInputStream.d b/generated/gtkd/gio/FilterInputStream.d deleted file mode 100644 index 6f97b6e32..000000000 --- a/generated/gtkd/gio/FilterInputStream.d +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FilterInputStream; - -private import gio.InputStream; -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; - - -/** - * Base class for input stream implementations that perform some - * kind of filtering operation on a base stream. Typical examples - * of filtering operations are character set conversion, compression - * and byte order flipping. - */ -public class FilterInputStream : InputStream -{ - /** the main Gtk struct */ - protected GFilterInputStream* gFilterInputStream; - - /** Get the main Gtk struct */ - public GFilterInputStream* getFilterInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFilterInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFilterInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFilterInputStream* gFilterInputStream, bool ownedRef = false) - { - this.gFilterInputStream = gFilterInputStream; - super(cast(GInputStream*)gFilterInputStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_filter_input_stream_get_type(); - } - - /** - * Gets the base stream for the filter stream. - * - * Returns: a #GInputStream. - */ - public InputStream getBaseStream() - { - auto __p = g_filter_input_stream_get_base_stream(gFilterInputStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p); - } - - /** - * Returns whether the base stream will be closed when @stream is - * closed. - * - * Returns: %TRUE if the base stream will be closed. - */ - public bool getCloseBaseStream() - { - return g_filter_input_stream_get_close_base_stream(gFilterInputStream) != 0; - } - - /** - * Sets whether the base stream will be closed when @stream is closed. - * - * Params: - * closeBase = %TRUE to close the base stream. - */ - public void setCloseBaseStream(bool closeBase) - { - g_filter_input_stream_set_close_base_stream(gFilterInputStream, closeBase); - } -} diff --git a/generated/gtkd/gio/FilterOutputStream.d b/generated/gtkd/gio/FilterOutputStream.d deleted file mode 100644 index 204cd8941..000000000 --- a/generated/gtkd/gio/FilterOutputStream.d +++ /dev/null @@ -1,112 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.FilterOutputStream; - -private import gio.OutputStream; -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; - - -/** - * Base class for output stream implementations that perform some - * kind of filtering operation on a base stream. Typical examples - * of filtering operations are character set conversion, compression - * and byte order flipping. - */ -public class FilterOutputStream : OutputStream -{ - /** the main Gtk struct */ - protected GFilterOutputStream* gFilterOutputStream; - - /** Get the main Gtk struct */ - public GFilterOutputStream* getFilterOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gFilterOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gFilterOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GFilterOutputStream* gFilterOutputStream, bool ownedRef = false) - { - this.gFilterOutputStream = gFilterOutputStream; - super(cast(GOutputStream*)gFilterOutputStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_filter_output_stream_get_type(); - } - - /** - * Gets the base stream for the filter stream. - * - * Returns: a #GOutputStream. - */ - public OutputStream getBaseStream() - { - auto __p = g_filter_output_stream_get_base_stream(gFilterOutputStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(OutputStream)(cast(GOutputStream*) __p); - } - - /** - * Returns whether the base stream will be closed when @stream is - * closed. - * - * Returns: %TRUE if the base stream will be closed. - */ - public bool getCloseBaseStream() - { - return g_filter_output_stream_get_close_base_stream(gFilterOutputStream) != 0; - } - - /** - * Sets whether the base stream will be closed when @stream is closed. - * - * Params: - * closeBase = %TRUE to close the base stream. - */ - public void setCloseBaseStream(bool closeBase) - { - g_filter_output_stream_set_close_base_stream(gFilterOutputStream, closeBase); - } -} diff --git a/generated/gtkd/gio/IOExtension.d b/generated/gtkd/gio/IOExtension.d deleted file mode 100644 index be9693085..000000000 --- a/generated/gtkd/gio/IOExtension.d +++ /dev/null @@ -1,119 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IOExtension; - -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.TypeClass; - - -/** - * #GIOExtension is an opaque data structure and can only be accessed - * using the following functions. - */ -public class IOExtension -{ - /** the main Gtk struct */ - protected GIOExtension* gIOExtension; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GIOExtension* getIOExtensionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gIOExtension; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gIOExtension; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GIOExtension* gIOExtension, bool ownedRef = false) - { - this.gIOExtension = gIOExtension; - this.ownedRef = ownedRef; - } - - - /** - * Gets the name under which @extension was registered. - * - * Note that the same type may be registered as extension - * for multiple extension points, under different names. - * - * Returns: the name of @extension. - */ - public string getName() - { - return Str.toString(g_io_extension_get_name(gIOExtension)); - } - - /** - * Gets the priority with which @extension was registered. - * - * Returns: the priority of @extension - */ - public int getPriority() - { - return g_io_extension_get_priority(gIOExtension); - } - - /** - * Gets the type associated with @extension. - * - * Returns: the type of @extension - */ - public GType getType() - { - return g_io_extension_get_type(gIOExtension); - } - - /** - * Gets a reference to the class for the type that is - * associated with @extension. - * - * Returns: the #GTypeClass for the type of @extension - */ - public TypeClass refClass() - { - auto __p = g_io_extension_ref_class(gIOExtension); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TypeClass)(cast(GTypeClass*) __p, true); - } -} diff --git a/generated/gtkd/gio/IOExtensionPoint.d b/generated/gtkd/gio/IOExtensionPoint.d deleted file mode 100644 index 48868cc25..000000000 --- a/generated/gtkd/gio/IOExtensionPoint.d +++ /dev/null @@ -1,201 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IOExtensionPoint; - -private import gio.IOExtension; -private import gio.c.functions; -public import gio.c.types; -private import glib.ListG; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GIOExtensionPoint is an opaque data structure and can only be accessed - * using the following functions. - */ -public class IOExtensionPoint -{ - /** the main Gtk struct */ - protected GIOExtensionPoint* gIOExtensionPoint; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GIOExtensionPoint* getIOExtensionPointStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gIOExtensionPoint; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gIOExtensionPoint; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GIOExtensionPoint* gIOExtensionPoint, bool ownedRef = false) - { - this.gIOExtensionPoint = gIOExtensionPoint; - this.ownedRef = ownedRef; - } - - - /** - * Finds a #GIOExtension for an extension point by name. - * - * Params: - * name = the name of the extension to get - * - * Returns: the #GIOExtension for @extension_point that has the - * given name, or %NULL if there is no extension with that name - */ - public IOExtension getExtensionByName(string name) - { - auto __p = g_io_extension_point_get_extension_by_name(gIOExtensionPoint, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOExtension)(cast(GIOExtension*) __p); - } - - /** - * Gets a list of all extensions that implement this extension point. - * The list is sorted by priority, beginning with the highest priority. - * - * Returns: a #GList of - * #GIOExtensions. The list is owned by GIO and should not be - * modified. - */ - public ListG getExtensions() - { - auto __p = g_io_extension_point_get_extensions(gIOExtensionPoint); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p); - } - - /** - * Gets the required type for @extension_point. - * - * Returns: the #GType that all implementations must have, - * or #G_TYPE_INVALID if the extension point has no required type - */ - public GType getRequiredType() - { - return g_io_extension_point_get_required_type(gIOExtensionPoint); - } - - /** - * Sets the required type for @extension_point to @type. - * All implementations must henceforth have this type. - * - * Params: - * type = the #GType to require - */ - public void setRequiredType(GType type) - { - g_io_extension_point_set_required_type(gIOExtensionPoint, type); - } - - /** - * Registers @type as extension for the extension point with name - * @extension_point_name. - * - * If @type has already been registered as an extension for this - * extension point, the existing #GIOExtension object is returned. - * - * Params: - * extensionPointName = the name of the extension point - * type = the #GType to register as extension - * extensionName = the name for the extension - * priority = the priority for the extension - * - * Returns: a #GIOExtension object for #GType - */ - public static IOExtension implement(string extensionPointName, GType type, string extensionName, int priority) - { - auto __p = g_io_extension_point_implement(Str.toStringz(extensionPointName), type, Str.toStringz(extensionName), priority); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOExtension)(cast(GIOExtension*) __p); - } - - /** - * Looks up an existing extension point. - * - * Params: - * name = the name of the extension point - * - * Returns: the #GIOExtensionPoint, or %NULL if there - * is no registered extension point with the given name. - */ - public static IOExtensionPoint lookup(string name) - { - auto __p = g_io_extension_point_lookup(Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOExtensionPoint)(cast(GIOExtensionPoint*) __p); - } - - /** - * Registers an extension point. - * - * Params: - * name = The name of the extension point - * - * Returns: the new #GIOExtensionPoint. This object is - * owned by GIO and should not be freed. - */ - public static IOExtensionPoint register(string name) - { - auto __p = g_io_extension_point_register(Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOExtensionPoint)(cast(GIOExtensionPoint*) __p); - } -} diff --git a/generated/gtkd/gio/IOModule.d b/generated/gtkd/gio/IOModule.d deleted file mode 100644 index 18dd05b49..000000000 --- a/generated/gtkd/gio/IOModule.d +++ /dev/null @@ -1,214 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IOModule; - -private import gio.IOModuleScope; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.TypeModule; -private import gobject.TypePluginIF; -private import gobject.TypePluginT; - - -/** - * Provides an interface and default functions for loading and unloading - * modules. This is used internally to make GIO extensible, but can also - * be used by others to implement module loading. - */ -public class IOModule : TypeModule -{ - /** the main Gtk struct */ - protected GIOModule* gIOModule; - - /** Get the main Gtk struct */ - public GIOModule* getIOModuleStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gIOModule; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gIOModule; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GIOModule* gIOModule, bool ownedRef = false) - { - this.gIOModule = gIOModule; - super(cast(GTypeModule*)gIOModule, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_io_module_get_type(); - } - - /** - * Creates a new GIOModule that will load the specific - * shared library when in use. - * - * Params: - * filename = filename of the shared library module. - * - * Returns: a #GIOModule from given @filename, - * or %NULL on error. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string filename) - { - auto __p = g_io_module_new(Str.toStringz(filename)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GIOModule*) __p, true); - } - - /** - * Loads all the modules in the specified directory. - * - * If don't require all modules to be initialized (and thus registering - * all gtypes) then you can use g_io_modules_scan_all_in_directory() - * which allows delayed/lazy loading of modules. - * - * Params: - * dirname = pathname for a directory containing modules - * to load. - * - * Returns: a list of #GIOModules loaded - * from the directory, - * All the modules are loaded into memory, if you want to - * unload them (enabling on-demand loading) you must call - * g_type_module_unuse() on all the modules. Free the list - * with g_list_free(). - */ - public static ListG loadAllInDirectory(string dirname) - { - auto __p = g_io_modules_load_all_in_directory(Str.toStringz(dirname)); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Loads all the modules in the specified directory. - * - * If don't require all modules to be initialized (and thus registering - * all gtypes) then you can use g_io_modules_scan_all_in_directory() - * which allows delayed/lazy loading of modules. - * - * Params: - * dirname = pathname for a directory containing modules - * to load. - * scope_ = a scope to use when scanning the modules. - * - * Returns: a list of #GIOModules loaded - * from the directory, - * All the modules are loaded into memory, if you want to - * unload them (enabling on-demand loading) you must call - * g_type_module_unuse() on all the modules. Free the list - * with g_list_free(). - * - * Since: 2.30 - */ - public static ListG loadAllInDirectoryWithScope(string dirname, IOModuleScope scope_) - { - auto __p = g_io_modules_load_all_in_directory_with_scope(Str.toStringz(dirname), (scope_ is null) ? null : scope_.getIOModuleScopeStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Scans all the modules in the specified directory, ensuring that - * any extension point implemented by a module is registered. - * - * This may not actually load and initialize all the types in each - * module, some modules may be lazily loaded and initialized when - * an extension point it implements is used with e.g. - * g_io_extension_point_get_extensions() or - * g_io_extension_point_get_extension_by_name(). - * - * If you need to guarantee that all types are loaded in all the modules, - * use g_io_modules_load_all_in_directory(). - * - * Params: - * dirname = pathname for a directory containing modules - * to scan. - * - * Since: 2.24 - */ - public static void scanAllInDirectory(string dirname) - { - g_io_modules_scan_all_in_directory(Str.toStringz(dirname)); - } - - /** - * Scans all the modules in the specified directory, ensuring that - * any extension point implemented by a module is registered. - * - * This may not actually load and initialize all the types in each - * module, some modules may be lazily loaded and initialized when - * an extension point it implements is used with e.g. - * g_io_extension_point_get_extensions() or - * g_io_extension_point_get_extension_by_name(). - * - * If you need to guarantee that all types are loaded in all the modules, - * use g_io_modules_load_all_in_directory(). - * - * Params: - * dirname = pathname for a directory containing modules - * to scan. - * scope_ = a scope to use when scanning the modules - * - * Since: 2.30 - */ - public static void scanAllInDirectoryWithScope(string dirname, IOModuleScope scope_) - { - g_io_modules_scan_all_in_directory_with_scope(Str.toStringz(dirname), (scope_ is null) ? null : scope_.getIOModuleScopeStruct()); - } -} diff --git a/generated/gtkd/gio/IOModuleScope.d b/generated/gtkd/gio/IOModuleScope.d deleted file mode 100644 index c5081da80..000000000 --- a/generated/gtkd/gio/IOModuleScope.d +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IOModuleScope; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Represents a scope for loading IO modules. A scope can be used for blocking - * duplicate modules, or blocking a module you don't want to load. - * - * The scope can be used with g_io_modules_load_all_in_directory_with_scope() - * or g_io_modules_scan_all_in_directory_with_scope(). - * - * Since: 2.30 - */ -public class IOModuleScope -{ - /** the main Gtk struct */ - protected GIOModuleScope* gIOModuleScope; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GIOModuleScope* getIOModuleScopeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gIOModuleScope; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gIOModuleScope; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GIOModuleScope* gIOModuleScope, bool ownedRef = false) - { - this.gIOModuleScope = gIOModuleScope; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_io_module_scope_free(gIOModuleScope); - } - - - /** - * Block modules with the given @basename from being loaded when - * this scope is used with g_io_modules_scan_all_in_directory_with_scope() - * or g_io_modules_load_all_in_directory_with_scope(). - * - * Params: - * basename = the basename to block - * - * Since: 2.30 - */ - public void block(string basename) - { - g_io_module_scope_block(gIOModuleScope, Str.toStringz(basename)); - } - - /** - * Free a module scope. - * - * Since: 2.30 - */ - public void free() - { - g_io_module_scope_free(gIOModuleScope); - ownedRef = false; - } - - /** - * Create a new scope for loading of IO modules. A scope can be used for - * blocking duplicate modules, or blocking a module you don't want to load. - * - * Specify the %G_IO_MODULE_SCOPE_BLOCK_DUPLICATES flag to block modules - * which have the same base name as a module that has already been seen - * in this scope. - * - * Params: - * flags = flags for the new scope - * - * Returns: the new module scope - * - * Since: 2.30 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GIOModuleScopeFlags flags) - { - auto __p = g_io_module_scope_new(flags); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GIOModuleScope*) __p); - } -} diff --git a/generated/gtkd/gio/IOSchedulerJob.d b/generated/gtkd/gio/IOSchedulerJob.d deleted file mode 100644 index 76db047cd..000000000 --- a/generated/gtkd/gio/IOSchedulerJob.d +++ /dev/null @@ -1,146 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IOSchedulerJob; - -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; - - -/** - * Opaque class for defining and scheduling IO jobs. - */ -public class IOSchedulerJob -{ - /** the main Gtk struct */ - protected GIOSchedulerJob* gIOSchedulerJob; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GIOSchedulerJob* getIOSchedulerJobStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gIOSchedulerJob; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gIOSchedulerJob; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GIOSchedulerJob* gIOSchedulerJob, bool ownedRef = false) - { - this.gIOSchedulerJob = gIOSchedulerJob; - this.ownedRef = ownedRef; - } - - - /** - * Used from an I/O job to send a callback to be run in the thread - * that the job was started from, waiting for the result (and thus - * blocking the I/O job). - * - * Deprecated: Use g_main_context_invoke(). - * - * Params: - * func = a #GSourceFunc callback that will be called in the original thread - * userData = data to pass to @func - * notify = a #GDestroyNotify for @user_data, or %NULL - * - * Returns: The return value of @func - */ - public bool sendToMainloop(GSourceFunc func, void* userData, GDestroyNotify notify) - { - return g_io_scheduler_job_send_to_mainloop(gIOSchedulerJob, func, userData, notify) != 0; - } - - /** - * Used from an I/O job to send a callback to be run asynchronously in - * the thread that the job was started from. The callback will be run - * when the main loop is available, but at that time the I/O job might - * have finished. The return value from the callback is ignored. - * - * Note that if you are passing the @user_data from g_io_scheduler_push_job() - * on to this function you have to ensure that it is not freed before - * @func is called, either by passing %NULL as @notify to - * g_io_scheduler_push_job() or by using refcounting for @user_data. - * - * Deprecated: Use g_main_context_invoke(). - * - * Params: - * func = a #GSourceFunc callback that will be called in the original thread - * userData = data to pass to @func - * notify = a #GDestroyNotify for @user_data, or %NULL - */ - public void sendToMainloopAsync(GSourceFunc func, void* userData, GDestroyNotify notify) - { - g_io_scheduler_job_send_to_mainloop_async(gIOSchedulerJob, func, userData, notify); - } - - /** - * Cancels all cancellable I/O jobs. - * - * A job is cancellable if a #GCancellable was passed into - * g_io_scheduler_push_job(). - * - * Deprecated: You should never call this function, since you don't - * know how other libraries in your program might be making use of - * gioscheduler. - */ - public static void cancelAllJobs() - { - g_io_scheduler_cancel_all_jobs(); - } - - /** - * Schedules the I/O job to run in another thread. - * - * @notify will be called on @user_data after @job_func has returned, - * regardless whether the job was cancelled or has run to completion. - * - * If @cancellable is not %NULL, it can be used to cancel the I/O job - * by calling g_cancellable_cancel() or by calling - * g_io_scheduler_cancel_all_jobs(). - * - * Deprecated: use #GThreadPool or g_task_run_in_thread() - * - * Params: - * jobFunc = a #GIOSchedulerJobFunc. - * userData = data to pass to @job_func - * notify = a #GDestroyNotify for @user_data, or %NULL - * ioPriority = the [I/O priority][io-priority] - * of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - */ - public static void pushJob(GIOSchedulerJobFunc jobFunc, void* userData, GDestroyNotify notify, int ioPriority, Cancellable cancellable) - { - g_io_scheduler_push_job(jobFunc, userData, notify, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct()); - } -} diff --git a/generated/gtkd/gio/IOStream.d b/generated/gtkd/gio/IOStream.d deleted file mode 100644 index 293ad07e0..000000000 --- a/generated/gtkd/gio/IOStream.d +++ /dev/null @@ -1,382 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IOStream; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InputStream; -private import gio.OutputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * GIOStream represents an object that has both read and write streams. - * Generally the two streams act as separate input and output streams, - * but they share some common resources and state. For instance, for - * seekable streams, both streams may use the same position. - * - * Examples of #GIOStream objects are #GSocketConnection, which represents - * a two-way network connection; and #GFileIOStream, which represents a - * file handle opened in read-write mode. - * - * To do the actual reading and writing you need to get the substreams - * with g_io_stream_get_input_stream() and g_io_stream_get_output_stream(). - * - * The #GIOStream object owns the input and the output streams, not the other - * way around, so keeping the substreams alive will not keep the #GIOStream - * object alive. If the #GIOStream object is freed it will be closed, thus - * closing the substreams, so even if the substreams stay alive they will - * always return %G_IO_ERROR_CLOSED for all operations. - * - * To close a stream use g_io_stream_close() which will close the common - * stream object and also the individual substreams. You can also close - * the substreams themselves. In most cases this only marks the - * substream as closed, so further I/O on it fails but common state in the - * #GIOStream may still be open. However, some streams may support - * "half-closed" states where one direction of the stream is actually shut down. - * - * Operations on #GIOStreams cannot be started while another operation on the - * #GIOStream or its substreams is in progress. Specifically, an application can - * read from the #GInputStream and write to the #GOutputStream simultaneously - * (either in separate threads, or as asynchronous operations in the same - * thread), but an application cannot start any #GIOStream operation while there - * is a #GIOStream, #GInputStream or #GOutputStream operation in progress, and - * an application can’t start any #GInputStream or #GOutputStream operation - * while there is a #GIOStream operation in progress. - * - * This is a product of individual stream operations being associated with a - * given #GMainContext (the thread-default context at the time the operation was - * started), rather than entire streams being associated with a single - * #GMainContext. - * - * GIO may run operations on #GIOStreams from other (worker) threads, and this - * may be exposed to application code in the behaviour of wrapper streams, such - * as #GBufferedInputStream or #GTlsConnection. With such wrapper APIs, - * application code may only run operations on the base (wrapped) stream when - * the wrapper stream is idle. Note that the semantics of such operations may - * not be well-defined due to the state the wrapper stream leaves the base - * stream in (though they are guaranteed not to crash). - * - * Since: 2.22 - */ -public class IOStream : ObjectG -{ - /** the main Gtk struct */ - protected GIOStream* gIOStream; - - /** Get the main Gtk struct */ - public GIOStream* getIOStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gIOStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gIOStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GIOStream* gIOStream, bool ownedRef = false) - { - this.gIOStream = gIOStream; - super(cast(GObject*)gIOStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_io_stream_get_type(); - } - - /** - * Finishes an asynchronous io stream splice operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE on success, %FALSE otherwise. - * - * Since: 2.28 - * - * Throws: GException on failure. - */ - public static bool spliceFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_io_stream_splice_finish((result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Clears the pending flag on @stream. - * - * Since: 2.22 - */ - public void clearPending() - { - g_io_stream_clear_pending(gIOStream); - } - - /** - * Closes the stream, releasing resources related to it. This will also - * close the individual input and output streams, if they are not already - * closed. - * - * Once the stream is closed, all other operations will return - * %G_IO_ERROR_CLOSED. Closing a stream multiple times will not - * return an error. - * - * Closing a stream will automatically flush any outstanding buffers - * in the stream. - * - * Streams will be automatically closed when the last reference - * is dropped, but you might want to call this function to make sure - * resources are released as early as possible. - * - * Some streams might keep the backing store of the stream (e.g. a file - * descriptor) open after the stream is closed. See the documentation for - * the individual stream for details. - * - * On failure the first error that happened will be reported, but the - * close operation will finish as much as possible. A stream that failed - * to close will still return %G_IO_ERROR_CLOSED for all operations. - * Still, it is important to check and report the error to the user, - * otherwise there might be a loss of data as all data might not be written. - * - * If @cancellable is not NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * Cancelling a close will still leave the stream closed, but some streams - * can use a faster close that doesn't block to e.g. check errors. - * - * The default implementation of this method just calls close on the - * individual input/output streams. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: %TRUE on success, %FALSE on failure - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool close(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_io_stream_close(gIOStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Requests an asynchronous close of the stream, releasing resources - * related to it. When the operation is finished @callback will be - * called. You can then call g_io_stream_close_finish() to get - * the result of the operation. - * - * For behaviour details see g_io_stream_close(). - * - * The asynchronous methods have a default fallback that uses threads - * to implement asynchronicity, so they are optional for inheriting - * classes. However, if you override one you must override all. - * - * Params: - * ioPriority = the io priority of the request - * cancellable = optional cancellable object - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.22 - */ - public void closeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_io_stream_close_async(gIOStream, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Closes a stream. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if stream was successfully closed, %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool closeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_io_stream_close_finish(gIOStream, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the input stream for this object. This is used - * for reading. - * - * Returns: a #GInputStream, owned by the #GIOStream. - * Do not free. - * - * Since: 2.22 - */ - public InputStream getInputStream() - { - auto __p = g_io_stream_get_input_stream(gIOStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p); - } - - /** - * Gets the output stream for this object. This is used for - * writing. - * - * Returns: a #GOutputStream, owned by the #GIOStream. - * Do not free. - * - * Since: 2.22 - */ - public OutputStream getOutputStream() - { - auto __p = g_io_stream_get_output_stream(gIOStream); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(OutputStream)(cast(GOutputStream*) __p); - } - - /** - * Checks if a stream has pending actions. - * - * Returns: %TRUE if @stream has pending actions. - * - * Since: 2.22 - */ - public bool hasPending() - { - return g_io_stream_has_pending(gIOStream) != 0; - } - - /** - * Checks if a stream is closed. - * - * Returns: %TRUE if the stream is closed. - * - * Since: 2.22 - */ - public bool isClosed() - { - return g_io_stream_is_closed(gIOStream) != 0; - } - - /** - * Sets @stream to have actions pending. If the pending flag is - * already set or @stream is closed, it will return %FALSE and set - * @error. - * - * Returns: %TRUE if pending was previously unset and is now set. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool setPending() - { - GError* err = null; - - auto __p = g_io_stream_set_pending(gIOStream, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously splice the output stream of @stream1 to the input stream of - * @stream2, and splice the output stream of @stream2 to the input stream of - * @stream1. - * - * When the operation is finished @callback will be called. - * You can then call g_io_stream_splice_finish() to get the - * result of the operation. - * - * Params: - * stream2 = a #GIOStream. - * flags = a set of #GIOStreamSpliceFlags. - * ioPriority = the io priority of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback. - * userData = user data passed to @callback. - * - * Since: 2.28 - */ - public void spliceAsync(IOStream stream2, GIOStreamSpliceFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_io_stream_splice_async(gIOStream, (stream2 is null) ? null : stream2.getIOStreamStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } -} diff --git a/generated/gtkd/gio/IconIF.d b/generated/gtkd/gio/IconIF.d deleted file mode 100644 index 7781d3a55..000000000 --- a/generated/gtkd/gio/IconIF.d +++ /dev/null @@ -1,166 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IconIF; - -private import gio.IconIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GIcon is a very minimal interface for icons. It provides functions - * for checking the equality of two icons, hashing of icons and - * serializing an icon to and from strings. - * - * #GIcon does not provide the actual pixmap for the icon as this is out - * of GIO's scope, however implementations of #GIcon may contain the name - * of an icon (see #GThemedIcon), or the path to an icon (see #GLoadableIcon). - * - * To obtain a hash of a #GIcon, see g_icon_hash(). - * - * To check if two #GIcons are equal, see g_icon_equal(). - * - * For serializing a #GIcon, use g_icon_serialize() and - * g_icon_deserialize(). - * - * If you want to consume #GIcon (for example, in a toolkit) you must - * be prepared to handle at least the three following cases: - * #GLoadableIcon, #GThemedIcon and #GEmblemedIcon. It may also make - * sense to have fast-paths for other cases (like handling #GdkPixbuf - * directly, for example) but all compliant #GIcon implementations - * outside of GIO must implement #GLoadableIcon. - * - * If your application or library provides one or more #GIcon - * implementations you need to ensure that your new implementation also - * implements #GLoadableIcon. Additionally, you must provide an - * implementation of g_icon_serialize() that gives a result that is - * understood by g_icon_deserialize(), yielding one of the built-in icon - * types. - */ -public interface IconIF{ - /** Get the main Gtk struct */ - public GIcon* getIconStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_icon_get_type(); - } - - /** - * Deserializes a #GIcon previously serialized using g_icon_serialize(). - * - * Params: - * value = a #GVariant created with g_icon_serialize() - * - * Returns: a #GIcon, or %NULL when deserialization fails. - * - * Since: 2.38 - */ - public static IconIF deserialize(Variant value) - { - auto __p = g_icon_deserialize((value is null) ? null : value.getVariantStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Gets a hash for an icon. - * - * Params: - * icon = #gconstpointer to an icon object. - * - * Returns: a #guint containing a hash for the @icon, suitable for - * use in a #GHashTable or similar data structure. - */ - public static uint hash(void* icon) - { - return g_icon_hash(icon); - } - - /** - * Checks if two icons are equal. - * - * Params: - * icon2 = pointer to the second #GIcon. - * - * Returns: %TRUE if @icon1 is equal to @icon2. %FALSE otherwise. - */ - public bool equal(IconIF icon2); - - /** - * Serializes a #GIcon into a #GVariant. An equivalent #GIcon can be retrieved - * back by calling g_icon_deserialize() on the returned value. - * As serialization will avoid using raw icon data when possible, it only - * makes sense to transfer the #GVariant between processes on the same machine, - * (as opposed to over the network), and within the same file system namespace. - * - * Returns: a #GVariant, or %NULL when serialization fails. The #GVariant will not be floating. - * - * Since: 2.38 - */ - public Variant serialize(); - - /** - * Generates a textual representation of @icon that can be used for - * serialization such as when passing @icon to a different process or - * saving it to persistent storage. Use g_icon_new_for_string() to - * get @icon back from the returned string. - * - * The encoding of the returned string is proprietary to #GIcon except - * in the following two cases - * - * - If @icon is a #GFileIcon, the returned string is a native path - * (such as `/path/to/my icon.png`) without escaping - * if the #GFile for @icon is a native file. If the file is not - * native, the returned string is the result of g_file_get_uri() - * (such as `sftp://path/to/my%20icon.png`). - * - * - If @icon is a #GThemedIcon with exactly one name and no fallbacks, - * the encoding is simply the name (such as `network-server`). - * - * Returns: An allocated NUL-terminated UTF8 string or - * %NULL if @icon can't be serialized. Use g_free() to free. - * - * Since: 2.20 - */ - public string toString(); -} diff --git a/generated/gtkd/gio/IconT.d b/generated/gtkd/gio/IconT.d deleted file mode 100644 index fa686d54b..000000000 --- a/generated/gtkd/gio/IconT.d +++ /dev/null @@ -1,146 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.IconT; - -public import gio.IconIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.Variant; -public import glib.c.functions; -public import gobject.ObjectG; - - -/** - * #GIcon is a very minimal interface for icons. It provides functions - * for checking the equality of two icons, hashing of icons and - * serializing an icon to and from strings. - * - * #GIcon does not provide the actual pixmap for the icon as this is out - * of GIO's scope, however implementations of #GIcon may contain the name - * of an icon (see #GThemedIcon), or the path to an icon (see #GLoadableIcon). - * - * To obtain a hash of a #GIcon, see g_icon_hash(). - * - * To check if two #GIcons are equal, see g_icon_equal(). - * - * For serializing a #GIcon, use g_icon_serialize() and - * g_icon_deserialize(). - * - * If you want to consume #GIcon (for example, in a toolkit) you must - * be prepared to handle at least the three following cases: - * #GLoadableIcon, #GThemedIcon and #GEmblemedIcon. It may also make - * sense to have fast-paths for other cases (like handling #GdkPixbuf - * directly, for example) but all compliant #GIcon implementations - * outside of GIO must implement #GLoadableIcon. - * - * If your application or library provides one or more #GIcon - * implementations you need to ensure that your new implementation also - * implements #GLoadableIcon. Additionally, you must provide an - * implementation of g_icon_serialize() that gives a result that is - * understood by g_icon_deserialize(), yielding one of the built-in icon - * types. - */ -public template IconT(TStruct) -{ - /** Get the main Gtk struct */ - public GIcon* getIconStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GIcon*)getStruct(); - } - - - /** - * Checks if two icons are equal. - * - * Params: - * icon2 = pointer to the second #GIcon. - * - * Returns: %TRUE if @icon1 is equal to @icon2. %FALSE otherwise. - */ - public bool equal(IconIF icon2) - { - return g_icon_equal(getIconStruct(), (icon2 is null) ? null : icon2.getIconStruct()) != 0; - } - - /** - * Serializes a #GIcon into a #GVariant. An equivalent #GIcon can be retrieved - * back by calling g_icon_deserialize() on the returned value. - * As serialization will avoid using raw icon data when possible, it only - * makes sense to transfer the #GVariant between processes on the same machine, - * (as opposed to over the network), and within the same file system namespace. - * - * Returns: a #GVariant, or %NULL when serialization fails. The #GVariant will not be floating. - * - * Since: 2.38 - */ - public Variant serialize() - { - auto __p = g_icon_serialize(getIconStruct()); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Generates a textual representation of @icon that can be used for - * serialization such as when passing @icon to a different process or - * saving it to persistent storage. Use g_icon_new_for_string() to - * get @icon back from the returned string. - * - * The encoding of the returned string is proprietary to #GIcon except - * in the following two cases - * - * - If @icon is a #GFileIcon, the returned string is a native path - * (such as `/path/to/my icon.png`) without escaping - * if the #GFile for @icon is a native file. If the file is not - * native, the returned string is the result of g_file_get_uri() - * (such as `sftp://path/to/my%20icon.png`). - * - * - If @icon is a #GThemedIcon with exactly one name and no fallbacks, - * the encoding is simply the name (such as `network-server`). - * - * Returns: An allocated NUL-terminated UTF8 string or - * %NULL if @icon can't be serialized. Use g_free() to free. - * - * Since: 2.20 - */ - public override string toString() - { - auto retStr = g_icon_to_string(getIconStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gtkd/gio/InetAddress.d b/generated/gtkd/gio/InetAddress.d deleted file mode 100644 index 2398dcc9d..000000000 --- a/generated/gtkd/gio/InetAddress.d +++ /dev/null @@ -1,364 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.InetAddress; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GInetAddress represents an IPv4 or IPv6 internet address. Use - * g_resolver_lookup_by_name() or g_resolver_lookup_by_name_async() to - * look up the #GInetAddress for a hostname. Use - * g_resolver_lookup_by_address() or - * g_resolver_lookup_by_address_async() to look up the hostname for a - * #GInetAddress. - * - * To actually connect to a remote host, you will need a - * #GInetSocketAddress (which includes a #GInetAddress as well as a - * port number). - */ -public class InetAddress : ObjectG -{ - /** the main Gtk struct */ - protected GInetAddress* gInetAddress; - - /** Get the main Gtk struct */ - public GInetAddress* getInetAddressStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gInetAddress; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gInetAddress; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GInetAddress* gInetAddress, bool ownedRef = false) - { - this.gInetAddress = gInetAddress; - super(cast(GObject*)gInetAddress, ownedRef); - } - - /** - * Creates a InetAddress for the "any" address (unassigned/"don't - * care") for family. - * - * Params: - * family = the address family - * loopback = If true create an InetAddress for the loopback address. - * - * Throws: ConstructionException GTK+ fails to create the object. - * - * Since: 2.22 - */ - public this (GSocketFamily family, bool loopback = false) - { - GInetAddress* p; - - if ( loopback ) - { - p = g_inet_address_new_loopback(family); - } - else - { - p = g_inet_address_new_any(family); - } - - if(p is null) - { - throw new ConstructionException("null returned by g_inet_address_new_any(family)"); - } - this(p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_inet_address_get_type(); - } - - /** - * Creates a new #GInetAddress from the given @family and @bytes. - * @bytes should be 4 bytes for %G_SOCKET_FAMILY_IPV4 and 16 bytes for - * %G_SOCKET_FAMILY_IPV6. - * - * Params: - * bytes = raw address data - * family = the address family of @bytes - * - * Returns: a new #GInetAddress corresponding to @family and @bytes. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] bytes, GSocketFamily family) - { - auto __p = g_inet_address_new_from_bytes(bytes.ptr, family); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_bytes"); - } - - this(cast(GInetAddress*) __p, true); - } - - /** - * Parses @string as an IP address and creates a new #GInetAddress. - * - * Params: - * string_ = a string representation of an IP address - * - * Returns: a new #GInetAddress corresponding - * to @string, or %NULL if @string could not be parsed. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string string_) - { - auto __p = g_inet_address_new_from_string(Str.toStringz(string_)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_string"); - } - - this(cast(GInetAddress*) __p, true); - } - - /** - * Checks if two #GInetAddress instances are equal, e.g. the same address. - * - * Params: - * otherAddress = Another #GInetAddress. - * - * Returns: %TRUE if @address and @other_address are equal, %FALSE otherwise. - * - * Since: 2.30 - */ - public bool equal(InetAddress otherAddress) - { - return g_inet_address_equal(gInetAddress, (otherAddress is null) ? null : otherAddress.getInetAddressStruct()) != 0; - } - - /** - * Gets @address's family - * - * Returns: @address's family - * - * Since: 2.22 - */ - public GSocketFamily getFamily() - { - return g_inet_address_get_family(gInetAddress); - } - - /** - * Tests whether @address is the "any" address for its family. - * - * Returns: %TRUE if @address is the "any" address for its family. - * - * Since: 2.22 - */ - public bool getIsAny() - { - return g_inet_address_get_is_any(gInetAddress) != 0; - } - - /** - * Tests whether @address is a link-local address (that is, if it - * identifies a host on a local network that is not connected to the - * Internet). - * - * Returns: %TRUE if @address is a link-local address. - * - * Since: 2.22 - */ - public bool getIsLinkLocal() - { - return g_inet_address_get_is_link_local(gInetAddress) != 0; - } - - /** - * Tests whether @address is the loopback address for its family. - * - * Returns: %TRUE if @address is the loopback address for its family. - * - * Since: 2.22 - */ - public bool getIsLoopback() - { - return g_inet_address_get_is_loopback(gInetAddress) != 0; - } - - /** - * Tests whether @address is a global multicast address. - * - * Returns: %TRUE if @address is a global multicast address. - * - * Since: 2.22 - */ - public bool getIsMcGlobal() - { - return g_inet_address_get_is_mc_global(gInetAddress) != 0; - } - - /** - * Tests whether @address is a link-local multicast address. - * - * Returns: %TRUE if @address is a link-local multicast address. - * - * Since: 2.22 - */ - public bool getIsMcLinkLocal() - { - return g_inet_address_get_is_mc_link_local(gInetAddress) != 0; - } - - /** - * Tests whether @address is a node-local multicast address. - * - * Returns: %TRUE if @address is a node-local multicast address. - * - * Since: 2.22 - */ - public bool getIsMcNodeLocal() - { - return g_inet_address_get_is_mc_node_local(gInetAddress) != 0; - } - - /** - * Tests whether @address is an organization-local multicast address. - * - * Returns: %TRUE if @address is an organization-local multicast address. - * - * Since: 2.22 - */ - public bool getIsMcOrgLocal() - { - return g_inet_address_get_is_mc_org_local(gInetAddress) != 0; - } - - /** - * Tests whether @address is a site-local multicast address. - * - * Returns: %TRUE if @address is a site-local multicast address. - * - * Since: 2.22 - */ - public bool getIsMcSiteLocal() - { - return g_inet_address_get_is_mc_site_local(gInetAddress) != 0; - } - - /** - * Tests whether @address is a multicast address. - * - * Returns: %TRUE if @address is a multicast address. - * - * Since: 2.22 - */ - public bool getIsMulticast() - { - return g_inet_address_get_is_multicast(gInetAddress) != 0; - } - - /** - * Tests whether @address is a site-local address such as 10.0.0.1 - * (that is, the address identifies a host on a local network that can - * not be reached directly from the Internet, but which may have - * outgoing Internet connectivity via a NAT or firewall). - * - * Returns: %TRUE if @address is a site-local address. - * - * Since: 2.22 - */ - public bool getIsSiteLocal() - { - return g_inet_address_get_is_site_local(gInetAddress) != 0; - } - - /** - * Gets the size of the native raw binary address for @address. This - * is the size of the data that you get from g_inet_address_to_bytes(). - * - * Returns: the number of bytes used for the native version of @address. - * - * Since: 2.22 - */ - public size_t getNativeSize() - { - return g_inet_address_get_native_size(gInetAddress); - } - - /** - * Gets the raw binary address data from @address. - * - * Returns: a pointer to an internal array of the bytes in @address, - * which should not be modified, stored, or freed. The size of this - * array can be gotten with g_inet_address_get_native_size(). - * - * Since: 2.22 - */ - public ubyte* toBytes() - { - return g_inet_address_to_bytes(gInetAddress); - } - - /** - * Converts @address to string form. - * - * Returns: a representation of @address as a string, which should be - * freed after use. - * - * Since: 2.22 - */ - public override string toString() - { - auto retStr = g_inet_address_to_string(gInetAddress); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gtkd/gio/InetAddressMask.d b/generated/gtkd/gio/InetAddressMask.d deleted file mode 100644 index 59d61b2ce..000000000 --- a/generated/gtkd/gio/InetAddressMask.d +++ /dev/null @@ -1,244 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.InetAddressMask; - -private import gio.InetAddress; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GInetAddressMask represents a range of IPv4 or IPv6 addresses - * described by a base address and a length indicating how many bits - * of the base address are relevant for matching purposes. These are - * often given in string form. Eg, "10.0.0.0/8", or "fe80::/10". - * - * Since: 2.32 - */ -public class InetAddressMask : ObjectG, InitableIF -{ - /** the main Gtk struct */ - protected GInetAddressMask* gInetAddressMask; - - /** Get the main Gtk struct */ - public GInetAddressMask* getInetAddressMaskStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gInetAddressMask; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gInetAddressMask; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GInetAddressMask* gInetAddressMask, bool ownedRef = false) - { - this.gInetAddressMask = gInetAddressMask; - super(cast(GObject*)gInetAddressMask, ownedRef); - } - - // add the Initable capabilities - mixin InitableT!(GInetAddressMask); - - - /** */ - public static GType getType() - { - return g_inet_address_mask_get_type(); - } - - /** - * Creates a new #GInetAddressMask representing all addresses whose - * first @length bits match @addr. - * - * Params: - * addr = a #GInetAddress - * length = number of bits of @addr to use - * - * Returns: a new #GInetAddressMask, or %NULL on error - * - * Since: 2.32 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InetAddress addr, uint length) - { - GError* err = null; - - auto __p = g_inet_address_mask_new((addr is null) ? null : addr.getInetAddressStruct(), length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GInetAddressMask*) __p, true); - } - - /** - * Parses @mask_string as an IP address and (optional) length, and - * creates a new #GInetAddressMask. The length, if present, is - * delimited by a "/". If it is not present, then the length is - * assumed to be the full length of the address. - * - * Params: - * maskString = an IP address or address/length string - * - * Returns: a new #GInetAddressMask corresponding to @string, or %NULL - * on error. - * - * Since: 2.32 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string maskString) - { - GError* err = null; - - auto __p = g_inet_address_mask_new_from_string(Str.toStringz(maskString), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_string"); - } - - this(cast(GInetAddressMask*) __p, true); - } - - /** - * Tests if @mask and @mask2 are the same mask. - * - * Params: - * mask2 = another #GInetAddressMask - * - * Returns: whether @mask and @mask2 are the same mask - * - * Since: 2.32 - */ - public bool equal(InetAddressMask mask2) - { - return g_inet_address_mask_equal(gInetAddressMask, (mask2 is null) ? null : mask2.getInetAddressMaskStruct()) != 0; - } - - /** - * Gets @mask's base address - * - * Returns: @mask's base address - * - * Since: 2.32 - */ - public InetAddress getAddress() - { - auto __p = g_inet_address_mask_get_address(gInetAddressMask); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InetAddress)(cast(GInetAddress*) __p); - } - - /** - * Gets the #GSocketFamily of @mask's address - * - * Returns: the #GSocketFamily of @mask's address - * - * Since: 2.32 - */ - public GSocketFamily getFamily() - { - return g_inet_address_mask_get_family(gInetAddressMask); - } - - /** - * Gets @mask's length - * - * Returns: @mask's length - * - * Since: 2.32 - */ - public uint getLength() - { - return g_inet_address_mask_get_length(gInetAddressMask); - } - - /** - * Tests if @address falls within the range described by @mask. - * - * Params: - * address = a #GInetAddress - * - * Returns: whether @address falls within the range described by - * @mask. - * - * Since: 2.32 - */ - public bool matches(InetAddress address) - { - return g_inet_address_mask_matches(gInetAddressMask, (address is null) ? null : address.getInetAddressStruct()) != 0; - } - - /** - * Converts @mask back to its corresponding string form. - * - * Returns: a string corresponding to @mask. - * - * Since: 2.32 - */ - public override string toString() - { - auto retStr = g_inet_address_mask_to_string(gInetAddressMask); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gtkd/gio/InetSocketAddress.d b/generated/gtkd/gio/InetSocketAddress.d deleted file mode 100644 index 985aca1bd..000000000 --- a/generated/gtkd/gio/InetSocketAddress.d +++ /dev/null @@ -1,186 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.InetSocketAddress; - -private import gio.InetAddress; -private import gio.SocketAddress; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * An IPv4 or IPv6 socket address; that is, the combination of a - * #GInetAddress and a port number. - */ -public class InetSocketAddress : SocketAddress -{ - /** the main Gtk struct */ - protected GInetSocketAddress* gInetSocketAddress; - - /** Get the main Gtk struct */ - public GInetSocketAddress* getInetSocketAddressStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gInetSocketAddress; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gInetSocketAddress; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GInetSocketAddress* gInetSocketAddress, bool ownedRef = false) - { - this.gInetSocketAddress = gInetSocketAddress; - super(cast(GSocketAddress*)gInetSocketAddress, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_inet_socket_address_get_type(); - } - - /** - * Creates a new #GInetSocketAddress for @address and @port. - * - * Params: - * address = a #GInetAddress - * port = a port number - * - * Returns: a new #GInetSocketAddress - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InetAddress address, ushort port) - { - auto __p = g_inet_socket_address_new((address is null) ? null : address.getInetAddressStruct(), port); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GInetSocketAddress*) __p, true); - } - - /** - * Creates a new #GInetSocketAddress for @address and @port. - * - * If @address is an IPv6 address, it can also contain a scope ID - * (separated from the address by a `%`). - * - * Params: - * address = the string form of an IP address - * port = a port number - * - * Returns: a new #GInetSocketAddress, - * or %NULL if @address cannot be parsed. - * - * Since: 2.40 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string address, uint port) - { - auto __p = g_inet_socket_address_new_from_string(Str.toStringz(address), port); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_string"); - } - - this(cast(GInetSocketAddress*) __p, true); - } - - /** - * Gets @address's #GInetAddress. - * - * Returns: the #GInetAddress for @address, which must be - * g_object_ref()'d if it will be stored - * - * Since: 2.22 - */ - public InetAddress getAddress() - { - auto __p = g_inet_socket_address_get_address(gInetSocketAddress); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InetAddress)(cast(GInetAddress*) __p); - } - - /** - * Gets the `sin6_flowinfo` field from @address, - * which must be an IPv6 address. - * - * Returns: the flowinfo field - * - * Since: 2.32 - */ - public uint getFlowinfo() - { - return g_inet_socket_address_get_flowinfo(gInetSocketAddress); - } - - /** - * Gets @address's port. - * - * Returns: the port for @address - * - * Since: 2.22 - */ - public ushort getPort() - { - return g_inet_socket_address_get_port(gInetSocketAddress); - } - - /** - * Gets the `sin6_scope_id` field from @address, - * which must be an IPv6 address. - * - * Returns: the scope id field - * - * Since: 2.32 - */ - public uint getScopeId() - { - return g_inet_socket_address_get_scope_id(gInetSocketAddress); - } -} diff --git a/generated/gtkd/gio/InitableIF.d b/generated/gtkd/gio/InitableIF.d deleted file mode 100644 index 044beda7e..000000000 --- a/generated/gtkd/gio/InitableIF.d +++ /dev/null @@ -1,130 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.InitableIF; - -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GInitable is implemented by objects that can fail during - * initialization. If an object implements this interface then - * it must be initialized as the first thing after construction, - * either via g_initable_init() or g_async_initable_init_async() - * (the latter is only available if it also implements #GAsyncInitable). - * - * If the object is not initialized, or initialization returns with an - * error, then all operations on the object except g_object_ref() and - * g_object_unref() are considered to be invalid, and have undefined - * behaviour. They will often fail with g_critical() or g_warning(), but - * this must not be relied on. - * - * Users of objects implementing this are not intended to use - * the interface method directly, instead it will be used automatically - * in various ways. For C applications you generally just call - * g_initable_new() directly, or indirectly via a foo_thing_new() wrapper. - * This will call g_initable_init() under the cover, returning %NULL and - * setting a #GError on failure (at which point the instance is - * unreferenced). - * - * For bindings in languages where the native constructor supports - * exceptions the binding could check for objects implementing %GInitable - * during normal construction and automatically initialize them, throwing - * an exception on failure. - * - * Since: 2.22 - */ -public interface InitableIF{ - /** Get the main Gtk struct */ - public GInitable* getInitableStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_initable_get_type(); - } - - /** - * Initializes the object implementing the interface. - * - * This method is intended for language bindings. If writing in C, - * g_initable_new() should typically be used instead. - * - * The object must be initialized before any real use after initial - * construction, either with this function or g_async_initable_init_async(). - * - * Implementations may also support cancellation. If @cancellable is not %NULL, - * then initialization can be cancelled by triggering the cancellable object - * from another thread. If the operation was cancelled, the error - * %G_IO_ERROR_CANCELLED will be returned. If @cancellable is not %NULL and - * the object doesn't support cancellable initialization the error - * %G_IO_ERROR_NOT_SUPPORTED will be returned. - * - * If the object is not initialized, or initialization returns with an - * error, then all operations on the object except g_object_ref() and - * g_object_unref() are considered to be invalid, and have undefined - * behaviour. See the [introduction][ginitable] for more details. - * - * Callers should not assume that a class which implements #GInitable can be - * initialized multiple times, unless the class explicitly documents itself as - * supporting this. Generally, a class’ implementation of init() can assume - * (and assert) that it will only be called once. Previously, this documentation - * recommended all #GInitable implementations should be idempotent; that - * recommendation was relaxed in GLib 2.54. - * - * If a class explicitly supports being initialized multiple times, it is - * recommended that the method is idempotent: multiple calls with the same - * arguments should return the same results. Only the first call initializes - * the object; further calls return the result of the first call. - * - * One reason why a class might need to support idempotent initialization is if - * it is designed to be used via the singleton pattern, with a - * #GObjectClass.constructor that sometimes returns an existing instance. - * In this pattern, a caller would expect to be able to call g_initable_init() - * on the result of g_object_new(), regardless of whether it is in fact a new - * instance. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if successful. If an error has occurred, this function will - * return %FALSE and set @error appropriately if present. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool init(Cancellable cancellable); -} diff --git a/generated/gtkd/gio/InitableT.d b/generated/gtkd/gio/InitableT.d deleted file mode 100644 index 8bd397282..000000000 --- a/generated/gtkd/gio/InitableT.d +++ /dev/null @@ -1,139 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.InitableT; - -public import gio.Cancellable; -public import gio.c.functions; -public import gio.c.types; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import gobject.ObjectG; - - -/** - * #GInitable is implemented by objects that can fail during - * initialization. If an object implements this interface then - * it must be initialized as the first thing after construction, - * either via g_initable_init() or g_async_initable_init_async() - * (the latter is only available if it also implements #GAsyncInitable). - * - * If the object is not initialized, or initialization returns with an - * error, then all operations on the object except g_object_ref() and - * g_object_unref() are considered to be invalid, and have undefined - * behaviour. They will often fail with g_critical() or g_warning(), but - * this must not be relied on. - * - * Users of objects implementing this are not intended to use - * the interface method directly, instead it will be used automatically - * in various ways. For C applications you generally just call - * g_initable_new() directly, or indirectly via a foo_thing_new() wrapper. - * This will call g_initable_init() under the cover, returning %NULL and - * setting a #GError on failure (at which point the instance is - * unreferenced). - * - * For bindings in languages where the native constructor supports - * exceptions the binding could check for objects implementing %GInitable - * during normal construction and automatically initialize them, throwing - * an exception on failure. - * - * Since: 2.22 - */ -public template InitableT(TStruct) -{ - /** Get the main Gtk struct */ - public GInitable* getInitableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GInitable*)getStruct(); - } - - - /** - * Initializes the object implementing the interface. - * - * This method is intended for language bindings. If writing in C, - * g_initable_new() should typically be used instead. - * - * The object must be initialized before any real use after initial - * construction, either with this function or g_async_initable_init_async(). - * - * Implementations may also support cancellation. If @cancellable is not %NULL, - * then initialization can be cancelled by triggering the cancellable object - * from another thread. If the operation was cancelled, the error - * %G_IO_ERROR_CANCELLED will be returned. If @cancellable is not %NULL and - * the object doesn't support cancellable initialization the error - * %G_IO_ERROR_NOT_SUPPORTED will be returned. - * - * If the object is not initialized, or initialization returns with an - * error, then all operations on the object except g_object_ref() and - * g_object_unref() are considered to be invalid, and have undefined - * behaviour. See the [introduction][ginitable] for more details. - * - * Callers should not assume that a class which implements #GInitable can be - * initialized multiple times, unless the class explicitly documents itself as - * supporting this. Generally, a class’ implementation of init() can assume - * (and assert) that it will only be called once. Previously, this documentation - * recommended all #GInitable implementations should be idempotent; that - * recommendation was relaxed in GLib 2.54. - * - * If a class explicitly supports being initialized multiple times, it is - * recommended that the method is idempotent: multiple calls with the same - * arguments should return the same results. Only the first call initializes - * the object; further calls return the result of the first call. - * - * One reason why a class might need to support idempotent initialization is if - * it is designed to be used via the singleton pattern, with a - * #GObjectClass.constructor that sometimes returns an existing instance. - * In this pattern, a caller would expect to be able to call g_initable_init() - * on the result of g_object_new(), regardless of whether it is in fact a new - * instance. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if successful. If an error has occurred, this function will - * return %FALSE and set @error appropriately if present. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool init(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_initable_init(getInitableStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/InputStream.d b/generated/gtkd/gio/InputStream.d deleted file mode 100644 index b16e02923..000000000 --- a/generated/gtkd/gio/InputStream.d +++ /dev/null @@ -1,675 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.InputStream; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * #GInputStream has functions to read from a stream (g_input_stream_read()), - * to close a stream (g_input_stream_close()) and to skip some content - * (g_input_stream_skip()). - * - * To copy the content of an input stream to an output stream without - * manually handling the reads and writes, use g_output_stream_splice(). - * - * See the documentation for #GIOStream for details of thread safety of - * streaming APIs. - * - * All of these functions have async variants too. - */ -public class InputStream : ObjectG -{ - /** the main Gtk struct */ - protected GInputStream* gInputStream; - - /** Get the main Gtk struct */ - public GInputStream* getInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GInputStream* gInputStream, bool ownedRef = false) - { - this.gInputStream = gInputStream; - super(cast(GObject*)gInputStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_input_stream_get_type(); - } - - /** - * Clears the pending flag on @stream. - */ - public void clearPending() - { - g_input_stream_clear_pending(gInputStream); - } - - /** - * Closes the stream, releasing resources related to it. - * - * Once the stream is closed, all other operations will return %G_IO_ERROR_CLOSED. - * Closing a stream multiple times will not return an error. - * - * Streams will be automatically closed when the last reference - * is dropped, but you might want to call this function to make sure - * resources are released as early as possible. - * - * Some streams might keep the backing store of the stream (e.g. a file descriptor) - * open after the stream is closed. See the documentation for the individual - * stream for details. - * - * On failure the first error that happened will be reported, but the close - * operation will finish as much as possible. A stream that failed to - * close will still return %G_IO_ERROR_CLOSED for all operations. Still, it - * is important to check and report the error to the user. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * Cancelling a close will still leave the stream closed, but some streams - * can use a faster close that doesn't block to e.g. check errors. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE on success, %FALSE on failure - * - * Throws: GException on failure. - */ - public bool close(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_input_stream_close(gInputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Requests an asynchronous closes of the stream, releasing resources related to it. - * When the operation is finished @callback will be called. - * You can then call g_input_stream_close_finish() to get the result of the - * operation. - * - * For behaviour details see g_input_stream_close(). - * - * The asynchronous methods have a default fallback that uses threads to implement - * asynchronicity, so they are optional for inheriting classes. However, if you - * override one you must override all. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional cancellable object - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void closeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_input_stream_close_async(gInputStream, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes closing a stream asynchronously, started from g_input_stream_close_async(). - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the stream was closed successfully. - * - * Throws: GException on failure. - */ - public bool closeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_input_stream_close_finish(gInputStream, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks if an input stream has pending actions. - * - * Returns: %TRUE if @stream has pending actions. - */ - public bool hasPending() - { - return g_input_stream_has_pending(gInputStream) != 0; - } - - /** - * Checks if an input stream is closed. - * - * Returns: %TRUE if the stream is closed. - */ - public bool isClosed() - { - return g_input_stream_is_closed(gInputStream) != 0; - } - - /** - * Tries to read @count bytes from the stream into the buffer starting at - * @buffer. Will block during this read. - * - * If count is zero returns zero and does nothing. A value of @count - * larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, the number of bytes read into the buffer is returned. - * It is not an error if this is not the same as the requested size, as it - * can happen e.g. near the end of a file. Zero is returned on end of file - * (or if @count is zero), but never otherwise. - * - * The returned @buffer is not a nul-terminated string, it can contain nul bytes - * at any position, and this function doesn't nul-terminate the @buffer. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * On error -1 is returned and @error is set accordingly. - * - * Params: - * buffer = a buffer to read data into (which should be at least count bytes long). - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: Number of bytes read, or -1 on error, or 0 on end of file. - * - * Throws: GException on failure. - */ - public ptrdiff_t read(out ubyte[] buffer, Cancellable cancellable) - { - ubyte* outbuffer; - GError* err = null; - - auto __p = g_input_stream_read(gInputStream, cast(void*)&outbuffer, cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - buffer = outbuffer[0 .. cast(size_t)buffer.length]; - - return __p; - } - - /** - * Tries to read @count bytes from the stream into the buffer starting at - * @buffer. Will block during this read. - * - * This function is similar to g_input_stream_read(), except it tries to - * read as many bytes as requested, only stopping on an error or end of stream. - * - * On a successful read of @count bytes, or if we reached the end of the - * stream, %TRUE is returned, and @bytes_read is set to the number of bytes - * read into @buffer. - * - * If there is an error during the operation %FALSE is returned and @error - * is set to indicate the error status. - * - * As a special exception to the normal conventions for functions that - * use #GError, if this function returns %FALSE (and sets @error) then - * @bytes_read will be set to the number of bytes that were successfully - * read before the error was encountered. This functionality is only - * available from C. If you need it from another language then you must - * write your own loop around g_input_stream_read(). - * - * Params: - * buffer = a buffer to read data into (which should be at least count bytes long). - * bytesRead = location to store the number of bytes that was read from the stream - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Throws: GException on failure. - */ - public bool readAll(out ubyte[] buffer, out size_t bytesRead, Cancellable cancellable) - { - ubyte* outbuffer; - GError* err = null; - - auto __p = g_input_stream_read_all(gInputStream, cast(void*)&outbuffer, cast(size_t)buffer.length, &bytesRead, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - buffer = outbuffer[0 .. cast(size_t)buffer.length]; - - return __p; - } - - /** - * Request an asynchronous read of @count bytes from the stream into the - * buffer starting at @buffer. - * - * This is the asynchronous equivalent of g_input_stream_read_all(). - * - * Call g_input_stream_read_all_finish() to collect the result. - * - * Any outstanding I/O request with higher priority (lower numerical - * value) will be executed before an outstanding request with lower - * priority. Default priority is %G_PRIORITY_DEFAULT. - * - * Params: - * buffer = a buffer to read data into (which should be at least count bytes long) - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.44 - */ - public void readAllAsync(out ubyte[] buffer, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - ubyte* outbuffer; - - g_input_stream_read_all_async(gInputStream, cast(void*)&outbuffer, cast(size_t)buffer.length, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - - buffer = outbuffer[0 .. cast(size_t)buffer.length]; - } - - /** - * Finishes an asynchronous stream read operation started with - * g_input_stream_read_all_async(). - * - * As a special exception to the normal conventions for functions that - * use #GError, if this function returns %FALSE (and sets @error) then - * @bytes_read will be set to the number of bytes that were successfully - * read before the error was encountered. This functionality is only - * available from C. If you need it from another language then you must - * write your own loop around g_input_stream_read_async(). - * - * Params: - * result = a #GAsyncResult - * bytesRead = location to store the number of bytes that was read from the stream - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.44 - * - * Throws: GException on failure. - */ - public bool readAllFinish(AsyncResultIF result, out size_t bytesRead) - { - GError* err = null; - - auto __p = g_input_stream_read_all_finish(gInputStream, (result is null) ? null : result.getAsyncResultStruct(), &bytesRead, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Request an asynchronous read of @count bytes from the stream into the buffer - * starting at @buffer. When the operation is finished @callback will be called. - * You can then call g_input_stream_read_finish() to get the result of the - * operation. - * - * During an async request no other sync and async calls are allowed on @stream, and will - * result in %G_IO_ERROR_PENDING errors. - * - * A value of @count larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, the number of bytes read into the buffer will be passed to the - * callback. It is not an error if this is not the same as the requested size, as it - * can happen e.g. near the end of a file, but generally we try to read - * as many bytes as requested. Zero is returned on end of file - * (or if @count is zero), but never otherwise. - * - * Any outstanding i/o request with higher priority (lower numerical value) will - * be executed before an outstanding request with lower priority. Default - * priority is %G_PRIORITY_DEFAULT. - * - * The asynchronous methods have a default fallback that uses threads to implement - * asynchronicity, so they are optional for inheriting classes. However, if you - * override one you must override all. - * - * Params: - * buffer = a buffer to read data into (which should be at least count bytes long). - * ioPriority = the [I/O priority][io-priority] - * of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void readAsync(out ubyte[] buffer, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - ubyte* outbuffer; - - g_input_stream_read_async(gInputStream, cast(void*)&outbuffer, cast(size_t)buffer.length, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - - buffer = outbuffer[0 .. cast(size_t)buffer.length]; - } - - /** - * Like g_input_stream_read(), this tries to read @count bytes from - * the stream in a blocking fashion. However, rather than reading into - * a user-supplied buffer, this will create a new #GBytes containing - * the data that was read. This may be easier to use from language - * bindings. - * - * If count is zero, returns a zero-length #GBytes and does nothing. A - * value of @count larger than %G_MAXSSIZE will cause a - * %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, a new #GBytes is returned. It is not an error if the - * size of this object is not the same as the requested size, as it - * can happen e.g. near the end of a file. A zero-length #GBytes is - * returned on end of file (or if @count is zero), but never - * otherwise. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * On error %NULL is returned and @error is set accordingly. - * - * Params: - * count = maximum number of bytes that will be read from the stream. Common - * values include 4096 and 8192. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a new #GBytes, or %NULL on error - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public Bytes readBytes(size_t count, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_input_stream_read_bytes(gInputStream, count, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Request an asynchronous read of @count bytes from the stream into a - * new #GBytes. When the operation is finished @callback will be - * called. You can then call g_input_stream_read_bytes_finish() to get the - * result of the operation. - * - * During an async request no other sync and async calls are allowed - * on @stream, and will result in %G_IO_ERROR_PENDING errors. - * - * A value of @count larger than %G_MAXSSIZE will cause a - * %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, the new #GBytes will be passed to the callback. It is - * not an error if this is smaller than the requested size, as it can - * happen e.g. near the end of a file, but generally we try to read as - * many bytes as requested. Zero is returned on end of file (or if - * @count is zero), but never otherwise. - * - * Any outstanding I/O request with higher priority (lower numerical - * value) will be executed before an outstanding request with lower - * priority. Default priority is %G_PRIORITY_DEFAULT. - * - * Params: - * count = the number of bytes that will be read from the stream - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.34 - */ - public void readBytesAsync(size_t count, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_input_stream_read_bytes_async(gInputStream, count, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous stream read-into-#GBytes operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: the newly-allocated #GBytes, or %NULL on error - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public Bytes readBytesFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_input_stream_read_bytes_finish(gInputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Finishes an asynchronous stream read operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: number of bytes read in, or -1 on error, or 0 on end of file. - * - * Throws: GException on failure. - */ - public ptrdiff_t readFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_input_stream_read_finish(gInputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @stream to have actions pending. If the pending flag is - * already set or @stream is closed, it will return %FALSE and set - * @error. - * - * Returns: %TRUE if pending was previously unset and is now set. - * - * Throws: GException on failure. - */ - public bool setPending() - { - GError* err = null; - - auto __p = g_input_stream_set_pending(gInputStream, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tries to skip @count bytes from the stream. Will block during the operation. - * - * This is identical to g_input_stream_read(), from a behaviour standpoint, - * but the bytes that are skipped are not returned to the user. Some - * streams have an implementation that is more efficient than reading the data. - * - * This function is optional for inherited classes, as the default implementation - * emulates it using read. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * Params: - * count = the number of bytes that will be skipped from the stream - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: Number of bytes skipped, or -1 on error - * - * Throws: GException on failure. - */ - public ptrdiff_t skip(size_t count, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_input_stream_skip(gInputStream, count, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Request an asynchronous skip of @count bytes from the stream. - * When the operation is finished @callback will be called. - * You can then call g_input_stream_skip_finish() to get the result - * of the operation. - * - * During an async request no other sync and async calls are allowed, - * and will result in %G_IO_ERROR_PENDING errors. - * - * A value of @count larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, the number of bytes skipped will be passed to the callback. - * It is not an error if this is not the same as the requested size, as it - * can happen e.g. near the end of a file, but generally we try to skip - * as many bytes as requested. Zero is returned on end of file - * (or if @count is zero), but never otherwise. - * - * Any outstanding i/o request with higher priority (lower numerical value) - * will be executed before an outstanding request with lower priority. - * Default priority is %G_PRIORITY_DEFAULT. - * - * The asynchronous methods have a default fallback that uses threads to - * implement asynchronicity, so they are optional for inheriting classes. - * However, if you override one, you must override all. - * - * Params: - * count = the number of bytes that will be skipped from the stream - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void skipAsync(size_t count, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_input_stream_skip_async(gInputStream, count, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a stream skip operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: the size of the bytes skipped, or `-1` on error. - * - * Throws: GException on failure. - */ - public ptrdiff_t skipFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_input_stream_skip_finish(gInputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/ListModelIF.d b/generated/gtkd/gio/ListModelIF.d deleted file mode 100644 index 929e9c0bc..000000000 --- a/generated/gtkd/gio/ListModelIF.d +++ /dev/null @@ -1,203 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ListModelIF; - -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GListModel is an interface that represents a mutable list of - * #GObjects. Its main intention is as a model for various widgets in - * user interfaces, such as list views, but it can also be used as a - * convenient method of returning lists of data, with support for - * updates. - * - * Each object in the list may also report changes in itself via some - * mechanism (normally the #GObject::notify signal). Taken together - * with the #GListModel::items-changed signal, this provides for a list - * that can change its membership, and in which the members can change - * their individual properties. - * - * A good example would be the list of visible wireless network access - * points, where each access point can report dynamic properties such as - * signal strength. - * - * It is important to note that the #GListModel itself does not report - * changes to the individual items. It only reports changes to the list - * membership. If you want to observe changes to the objects themselves - * then you need to connect signals to the objects that you are - * interested in. - * - * All items in a #GListModel are of (or derived from) the same type. - * g_list_model_get_item_type() returns that type. The type may be an - * interface, in which case all objects in the list must implement it. - * - * The semantics are close to that of an array: - * g_list_model_get_n_items() returns the number of items in the list and - * g_list_model_get_item() returns an item at a (0-based) position. In - * order to allow implementations to calculate the list length lazily, - * you can also iterate over items: starting from 0, repeatedly call - * g_list_model_get_item() until it returns %NULL. - * - * An implementation may create objects lazily, but must take care to - * return the same object for a given position until all references to - * it are gone. - * - * On the other side, a consumer is expected only to hold references on - * objects that are currently "user visible", in order to facilitate the - * maximum level of laziness in the implementation of the list and to - * reduce the required number of signal connections at a given time. - * - * This interface is intended only to be used from a single thread. The - * thread in which it is appropriate to use it depends on the particular - * implementation, but typically it will be from the thread that owns - * the [thread-default main context][g-main-context-push-thread-default] - * in effect at the time that the model was created. - */ -public interface ListModelIF{ - /** Get the main Gtk struct */ - public GListModel* getListModelStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_list_model_get_type(); - } - - /** - * Get the item at @position. If @position is greater than the number of - * items in @list, %NULL is returned. - * - * %NULL is never returned for an index that is smaller than the length - * of the list. See g_list_model_get_n_items(). - * - * Params: - * position = the position of the item to fetch - * - * Returns: the item at @position. - * - * Since: 2.44 - */ - public void* getItem(uint position); - - /** - * Gets the type of the items in @list. All items returned from - * g_list_model_get_type() are of that type or a subtype, or are an - * implementation of that interface. - * - * The item type of a #GListModel can not change during the life of the - * model. - * - * Returns: the #GType of the items contained in @list. - * - * Since: 2.44 - */ - public GType getItemType(); - - /** - * Gets the number of items in @list. - * - * Depending on the model implementation, calling this function may be - * less efficient than iterating the list with increasing values for - * @position until g_list_model_get_item() returns %NULL. - * - * Returns: the number of items in @list. - * - * Since: 2.44 - */ - public uint getNItems(); - - /** - * Get the item at @position. If @position is greater than the number of - * items in @list, %NULL is returned. - * - * %NULL is never returned for an index that is smaller than the length - * of the list. See g_list_model_get_n_items(). - * - * Params: - * position = the position of the item to fetch - * - * Returns: the object at @position. - * - * Since: 2.44 - */ - public ObjectG getObject(uint position); - - /** - * Emits the #GListModel::items-changed signal on @list. - * - * This function should only be called by classes implementing - * #GListModel. It has to be called after the internal representation - * of @list has been updated, because handlers connected to this signal - * might query the new state of the list. - * - * Implementations must only make changes to the model (as visible to - * its consumer) in places that will not cause problems for that - * consumer. For models that are driven directly by a write API (such - * as #GListStore), changes can be reported in response to uses of that - * API. For models that represent remote data, changes should only be - * made from a fresh mainloop dispatch. It is particularly not - * permitted to make changes in response to a call to the #GListModel - * consumer API. - * - * Stated another way: in general, it is assumed that code making a - * series of accesses to the model via the API, without returning to the - * mainloop, and without calling other code, will continue to view the - * same contents of the model. - * - * Params: - * position = the position at which @list changed - * removed = the number of items removed - * added = the number of items added - * - * Since: 2.44 - */ - public void itemsChanged(uint position, uint removed, uint added); - - /** - * This signal is emitted whenever items were added to or removed - * from @list. At @position, @removed items were removed and @added - * items were added in their place. - * - * Note: If @removed != @added, the positions of all later items - * in the model change. - * - * Params: - * position = the position at which @list changed - * removed = the number of items removed - * added = the number of items added - * - * Since: 2.44 - */ - gulong addOnItemsChanged(void delegate(uint, uint, uint, ListModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/ListModelT.d b/generated/gtkd/gio/ListModelT.d deleted file mode 100644 index 579fa34e3..000000000 --- a/generated/gtkd/gio/ListModelT.d +++ /dev/null @@ -1,225 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ListModelT; - -public import gio.c.functions; -public import gio.c.types; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #GListModel is an interface that represents a mutable list of - * #GObjects. Its main intention is as a model for various widgets in - * user interfaces, such as list views, but it can also be used as a - * convenient method of returning lists of data, with support for - * updates. - * - * Each object in the list may also report changes in itself via some - * mechanism (normally the #GObject::notify signal). Taken together - * with the #GListModel::items-changed signal, this provides for a list - * that can change its membership, and in which the members can change - * their individual properties. - * - * A good example would be the list of visible wireless network access - * points, where each access point can report dynamic properties such as - * signal strength. - * - * It is important to note that the #GListModel itself does not report - * changes to the individual items. It only reports changes to the list - * membership. If you want to observe changes to the objects themselves - * then you need to connect signals to the objects that you are - * interested in. - * - * All items in a #GListModel are of (or derived from) the same type. - * g_list_model_get_item_type() returns that type. The type may be an - * interface, in which case all objects in the list must implement it. - * - * The semantics are close to that of an array: - * g_list_model_get_n_items() returns the number of items in the list and - * g_list_model_get_item() returns an item at a (0-based) position. In - * order to allow implementations to calculate the list length lazily, - * you can also iterate over items: starting from 0, repeatedly call - * g_list_model_get_item() until it returns %NULL. - * - * An implementation may create objects lazily, but must take care to - * return the same object for a given position until all references to - * it are gone. - * - * On the other side, a consumer is expected only to hold references on - * objects that are currently "user visible", in order to facilitate the - * maximum level of laziness in the implementation of the list and to - * reduce the required number of signal connections at a given time. - * - * This interface is intended only to be used from a single thread. The - * thread in which it is appropriate to use it depends on the particular - * implementation, but typically it will be from the thread that owns - * the [thread-default main context][g-main-context-push-thread-default] - * in effect at the time that the model was created. - */ -public template ListModelT(TStruct) -{ - /** Get the main Gtk struct */ - public GListModel* getListModelStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GListModel*)getStruct(); - } - - - /** - * Get the item at @position. If @position is greater than the number of - * items in @list, %NULL is returned. - * - * %NULL is never returned for an index that is smaller than the length - * of the list. See g_list_model_get_n_items(). - * - * Params: - * position = the position of the item to fetch - * - * Returns: the item at @position. - * - * Since: 2.44 - */ - public void* getItem(uint position) - { - return g_list_model_get_item(getListModelStruct(), position); - } - - /** - * Gets the type of the items in @list. All items returned from - * g_list_model_get_type() are of that type or a subtype, or are an - * implementation of that interface. - * - * The item type of a #GListModel can not change during the life of the - * model. - * - * Returns: the #GType of the items contained in @list. - * - * Since: 2.44 - */ - public GType getItemType() - { - return g_list_model_get_item_type(getListModelStruct()); - } - - /** - * Gets the number of items in @list. - * - * Depending on the model implementation, calling this function may be - * less efficient than iterating the list with increasing values for - * @position until g_list_model_get_item() returns %NULL. - * - * Returns: the number of items in @list. - * - * Since: 2.44 - */ - public uint getNItems() - { - return g_list_model_get_n_items(getListModelStruct()); - } - - /** - * Get the item at @position. If @position is greater than the number of - * items in @list, %NULL is returned. - * - * %NULL is never returned for an index that is smaller than the length - * of the list. See g_list_model_get_n_items(). - * - * Params: - * position = the position of the item to fetch - * - * Returns: the object at @position. - * - * Since: 2.44 - */ - public ObjectG getObject(uint position) - { - auto __p = g_list_model_get_object(getListModelStruct(), position); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p, true); - } - - /** - * Emits the #GListModel::items-changed signal on @list. - * - * This function should only be called by classes implementing - * #GListModel. It has to be called after the internal representation - * of @list has been updated, because handlers connected to this signal - * might query the new state of the list. - * - * Implementations must only make changes to the model (as visible to - * its consumer) in places that will not cause problems for that - * consumer. For models that are driven directly by a write API (such - * as #GListStore), changes can be reported in response to uses of that - * API. For models that represent remote data, changes should only be - * made from a fresh mainloop dispatch. It is particularly not - * permitted to make changes in response to a call to the #GListModel - * consumer API. - * - * Stated another way: in general, it is assumed that code making a - * series of accesses to the model via the API, without returning to the - * mainloop, and without calling other code, will continue to view the - * same contents of the model. - * - * Params: - * position = the position at which @list changed - * removed = the number of items removed - * added = the number of items added - * - * Since: 2.44 - */ - public void itemsChanged(uint position, uint removed, uint added) - { - g_list_model_items_changed(getListModelStruct(), position, removed, added); - } - - /** - * This signal is emitted whenever items were added to or removed - * from @list. At @position, @removed items were removed and @added - * items were added in their place. - * - * Note: If @removed != @added, the positions of all later items - * in the model change. - * - * Params: - * position = the position at which @list changed - * removed = the number of items removed - * added = the number of items added - * - * Since: 2.44 - */ - gulong addOnItemsChanged(void delegate(uint, uint, uint, ListModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "items-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/ListStore.d b/generated/gtkd/gio/ListStore.d deleted file mode 100644 index 05b828bbe..000000000 --- a/generated/gtkd/gio/ListStore.d +++ /dev/null @@ -1,284 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ListStore; - -private import gio.ListModelIF; -private import gio.ListModelT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GListStore is a simple implementation of #GListModel that stores all - * items in memory. - * - * It provides insertions, deletions, and lookups in logarithmic time - * with a fast path for the common case of iterating the list linearly. - */ -public class ListStore : ObjectG, ListModelIF -{ - /** the main Gtk struct */ - protected GListStore* gListStore; - - /** Get the main Gtk struct */ - public GListStore* getListStoreStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gListStore; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gListStore; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GListStore* gListStore, bool ownedRef = false) - { - this.gListStore = gListStore; - super(cast(GObject*)gListStore, ownedRef); - } - - // add the ListModel capabilities - mixin ListModelT!(GListStore); - - - /** */ - public static GType getType() - { - return g_list_store_get_type(); - } - - /** - * Creates a new #GListStore with items of type @item_type. @item_type - * must be a subclass of #GObject. - * - * Params: - * itemType = the #GType of items in the list - * - * Returns: a new #GListStore - * - * Since: 2.44 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GType itemType) - { - auto __p = g_list_store_new(itemType); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GListStore*) __p, true); - } - - /** - * Appends @item to @store. @item must be of type #GListStore:item-type. - * - * This function takes a ref on @item. - * - * Use g_list_store_splice() to append multiple items at the same time - * efficiently. - * - * Params: - * item = the new item - * - * Since: 2.44 - */ - public void append(ObjectG item) - { - g_list_store_append(gListStore, (item is null) ? null : item.getObjectGStruct()); - } - - /** - * Looks up the given @item in the list store by looping over the items until - * the first occurrence of @item. If @item was not found, then @position will - * not be set, and this method will return %FALSE. - * - * If you need to compare the two items with a custom comparison function, use - * g_list_store_find_with_equal_func() with a custom #GEqualFunc instead. - * - * Params: - * item = an item - * position = the first position of @item, if it was found. - * - * Returns: Whether @store contains @item. If it was found, @position will be - * set to the position where @item occurred for the first time. - * - * Since: 2.64 - */ - public bool find(ObjectG item, out uint position) - { - return g_list_store_find(gListStore, (item is null) ? null : item.getObjectGStruct(), &position) != 0; - } - - /** - * Looks up the given @item in the list store by looping over the items and - * comparing them with @compare_func until the first occurrence of @item which - * matches. If @item was not found, then @position will not be set, and this - * method will return %FALSE. - * - * Params: - * item = an item - * equalFunc = A custom equality check function - * position = the first position of @item, if it was found. - * - * Returns: Whether @store contains @item. If it was found, @position will be - * set to the position where @item occurred for the first time. - * - * Since: 2.64 - */ - public bool findWithEqualFunc(ObjectG item, GEqualFunc equalFunc, out uint position) - { - return g_list_store_find_with_equal_func(gListStore, (item is null) ? null : item.getObjectGStruct(), equalFunc, &position) != 0; - } - - /** - * Inserts @item into @store at @position. @item must be of type - * #GListStore:item-type or derived from it. @position must be smaller - * than the length of the list, or equal to it to append. - * - * This function takes a ref on @item. - * - * Use g_list_store_splice() to insert multiple items at the same time - * efficiently. - * - * Params: - * position = the position at which to insert the new item - * item = the new item - * - * Since: 2.44 - */ - public void insert(uint position, ObjectG item) - { - g_list_store_insert(gListStore, position, (item is null) ? null : item.getObjectGStruct()); - } - - /** - * Inserts @item into @store at a position to be determined by the - * @compare_func. - * - * The list must already be sorted before calling this function or the - * result is undefined. Usually you would approach this by only ever - * inserting items by way of this function. - * - * This function takes a ref on @item. - * - * Params: - * item = the new item - * compareFunc = pairwise comparison function for sorting - * userData = user data for @compare_func - * - * Returns: the position at which @item was inserted - * - * Since: 2.44 - */ - public uint insertSorted(ObjectG item, GCompareDataFunc compareFunc, void* userData) - { - return g_list_store_insert_sorted(gListStore, (item is null) ? null : item.getObjectGStruct(), compareFunc, userData); - } - - /** - * Removes the item from @store that is at @position. @position must be - * smaller than the current length of the list. - * - * Use g_list_store_splice() to remove multiple items at the same time - * efficiently. - * - * Params: - * position = the position of the item that is to be removed - * - * Since: 2.44 - */ - public void remove(uint position) - { - g_list_store_remove(gListStore, position); - } - - /** - * Removes all items from @store. - * - * Since: 2.44 - */ - public void removeAll() - { - g_list_store_remove_all(gListStore); - } - - /** - * Sort the items in @store according to @compare_func. - * - * Params: - * compareFunc = pairwise comparison function for sorting - * userData = user data for @compare_func - * - * Since: 2.46 - */ - public void sort(GCompareDataFunc compareFunc, void* userData) - { - g_list_store_sort(gListStore, compareFunc, userData); - } - - /** - * Changes @store by removing @n_removals items and adding @n_additions - * items to it. @additions must contain @n_additions items of type - * #GListStore:item-type. %NULL is not permitted. - * - * This function is more efficient than g_list_store_insert() and - * g_list_store_remove(), because it only emits - * #GListModel::items-changed once for the change. - * - * This function takes a ref on each item in @additions. - * - * The parameters @position and @n_removals must be correct (ie: - * @position + @n_removals must be less than or equal to the length of - * the list at the time this function is called). - * - * Params: - * position = the position at which to make the change - * nRemovals = the number of items to remove - * additions = the items to add - * - * Since: 2.44 - */ - public void splice(uint position, uint nRemovals, ObjectG[] additions) - { - void*[] additionsArray = new void*[additions.length]; - for ( int i = 0; i < additions.length; i++ ) - { - additionsArray[i] = additions[i].getObjectGStruct(); - } - - g_list_store_splice(gListStore, position, nRemovals, additionsArray.ptr, cast(uint)additions.length); - } -} diff --git a/generated/gtkd/gio/LoadableIconIF.d b/generated/gtkd/gio/LoadableIconIF.d deleted file mode 100644 index f382611ff..000000000 --- a/generated/gtkd/gio/LoadableIconIF.d +++ /dev/null @@ -1,101 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.LoadableIconIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Extends the #GIcon interface and adds the ability to - * load icons from streams. - */ -public interface LoadableIconIF{ - /** Get the main Gtk struct */ - public GLoadableIcon* getLoadableIconStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_loadable_icon_get_type(); - } - - /** - * Loads a loadable icon. For the asynchronous version of this function, - * see g_loadable_icon_load_async(). - * - * Params: - * size = an integer. - * type = a location to store the type of the loaded - * icon, %NULL to ignore. - * cancellable = optional #GCancellable object, %NULL to - * ignore. - * - * Returns: a #GInputStream to read the icon from. - * - * Throws: GException on failure. - */ - public InputStream load(int size, out string type, Cancellable cancellable); - - /** - * Loads an icon asynchronously. To finish this function, see - * g_loadable_icon_load_finish(). For the synchronous, blocking - * version of this function, see g_loadable_icon_load(). - * - * Params: - * size = an integer. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void loadAsync(int size, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an asynchronous icon load started in g_loadable_icon_load_async(). - * - * Params: - * res = a #GAsyncResult. - * type = a location to store the type of the loaded - * icon, %NULL to ignore. - * - * Returns: a #GInputStream to read the icon from. - * - * Throws: GException on failure. - */ - public InputStream loadFinish(AsyncResultIF res, out string type); -} diff --git a/generated/gtkd/gio/LoadableIconT.d b/generated/gtkd/gio/LoadableIconT.d deleted file mode 100644 index c5c3c43ef..000000000 --- a/generated/gtkd/gio/LoadableIconT.d +++ /dev/null @@ -1,141 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.LoadableIconT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.InputStream; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; - - -/** - * Extends the #GIcon interface and adds the ability to - * load icons from streams. - */ -public template LoadableIconT(TStruct) -{ - /** Get the main Gtk struct */ - public GLoadableIcon* getLoadableIconStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GLoadableIcon*)getStruct(); - } - - - /** - * Loads a loadable icon. For the asynchronous version of this function, - * see g_loadable_icon_load_async(). - * - * Params: - * size = an integer. - * type = a location to store the type of the loaded - * icon, %NULL to ignore. - * cancellable = optional #GCancellable object, %NULL to - * ignore. - * - * Returns: a #GInputStream to read the icon from. - * - * Throws: GException on failure. - */ - public InputStream load(int size, out string type, Cancellable cancellable) - { - char* outtype = null; - GError* err = null; - - auto __p = g_loadable_icon_load(getLoadableIconStruct(), size, &outtype, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - type = Str.toString(outtype); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p, true); - } - - /** - * Loads an icon asynchronously. To finish this function, see - * g_loadable_icon_load_finish(). For the synchronous, blocking - * version of this function, see g_loadable_icon_load(). - * - * Params: - * size = an integer. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void loadAsync(int size, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_loadable_icon_load_async(getLoadableIconStruct(), size, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous icon load started in g_loadable_icon_load_async(). - * - * Params: - * res = a #GAsyncResult. - * type = a location to store the type of the loaded - * icon, %NULL to ignore. - * - * Returns: a #GInputStream to read the icon from. - * - * Throws: GException on failure. - */ - public InputStream loadFinish(AsyncResultIF res, out string type) - { - char* outtype = null; - GError* err = null; - - auto __p = g_loadable_icon_load_finish(getLoadableIconStruct(), (res is null) ? null : res.getAsyncResultStruct(), &outtype, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - type = Str.toString(outtype); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p, true); - } -} diff --git a/generated/gtkd/gio/MemoryInputStream.d b/generated/gtkd/gio/MemoryInputStream.d deleted file mode 100644 index 540d78f5c..000000000 --- a/generated/gtkd/gio/MemoryInputStream.d +++ /dev/null @@ -1,177 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MemoryInputStream; - -private import gio.InputStream; -private import gio.PollableInputStreamIF; -private import gio.PollableInputStreamT; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GMemoryInputStream is a class for using arbitrary - * memory chunks as input for GIO streaming input operations. - * - * As of GLib 2.34, #GMemoryInputStream implements - * #GPollableInputStream. - */ -public class MemoryInputStream : InputStream, PollableInputStreamIF, SeekableIF -{ - /** the main Gtk struct */ - protected GMemoryInputStream* gMemoryInputStream; - - /** Get the main Gtk struct */ - public GMemoryInputStream* getMemoryInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMemoryInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMemoryInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMemoryInputStream* gMemoryInputStream, bool ownedRef = false) - { - this.gMemoryInputStream = gMemoryInputStream; - super(cast(GInputStream*)gMemoryInputStream, ownedRef); - } - - // add the PollableInputStream capabilities - mixin PollableInputStreamT!(GMemoryInputStream); - - // add the Seekable capabilities - mixin SeekableT!(GMemoryInputStream); - - - /** */ - public static GType getType() - { - return g_memory_input_stream_get_type(); - } - - /** - * Creates a new empty #GMemoryInputStream. - * - * Returns: a new #GInputStream - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_memory_input_stream_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GMemoryInputStream*) __p, true); - } - - /** - * Creates a new #GMemoryInputStream with data from the given @bytes. - * - * Params: - * bytes = a #GBytes - * - * Returns: new #GInputStream read from @bytes - * - * Since: 2.34 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Bytes bytes) - { - auto __p = g_memory_input_stream_new_from_bytes((bytes is null) ? null : bytes.getBytesStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_bytes"); - } - - this(cast(GMemoryInputStream*) __p, true); - } - - /** - * Creates a new #GMemoryInputStream with data in memory of a given size. - * - * Params: - * data = input data - * destroy = function that is called to free @data, or %NULL - * - * Returns: new #GInputStream read from @data of @len bytes. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data, GDestroyNotify destroy) - { - auto __p = g_memory_input_stream_new_from_data(data.ptr, cast(ptrdiff_t)data.length, destroy); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_data"); - } - - this(cast(GMemoryInputStream*) __p, true); - } - - /** - * Appends @bytes to data that can be read from the input stream. - * - * Params: - * bytes = input data - * - * Since: 2.34 - */ - public void addBytes(Bytes bytes) - { - g_memory_input_stream_add_bytes(gMemoryInputStream, (bytes is null) ? null : bytes.getBytesStruct()); - } - - /** - * Appends @data to data that can be read from the input stream - * - * Params: - * data = input data - * destroy = function that is called to free @data, or %NULL - */ - public void addData(ubyte[] data, GDestroyNotify destroy) - { - g_memory_input_stream_add_data(gMemoryInputStream, data.ptr, cast(ptrdiff_t)data.length, destroy); - } -} diff --git a/generated/gtkd/gio/MemoryMonitorIF.d b/generated/gtkd/gio/MemoryMonitorIF.d deleted file mode 100644 index 3b0979737..000000000 --- a/generated/gtkd/gio/MemoryMonitorIF.d +++ /dev/null @@ -1,129 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MemoryMonitorIF; - -private import gio.MemoryMonitorIF; -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GMemoryMonitor will monitor system memory and suggest to the application - * when to free memory so as to leave more room for other applications. - * It is implemented on Linux using the [Low Memory Monitor](https://gitlab.freedesktop.org/hadess/low-memory-monitor/) - * ([API documentation](https://hadess.pages.freedesktop.org/low-memory-monitor/)). - * - * There is also an implementation for use inside Flatpak sandboxes. - * - * Possible actions to take when the signal is received are: - * - Free caches - * - Save files that haven't been looked at in a while to disk, ready to be reopened when needed - * - Run a garbage collection cycle - * - Try and compress fragmented allocations - * - Exit on idle if the process has no reason to stay around - * - Call [`malloc_trim(3)`](man:malloc_trim) to return cached heap pages to - * the kernel (if supported by your libc) - * - * Note that some actions may not always improve system performance, and so - * should be profiled for your application. `malloc_trim()`, for example, may - * make future heap allocations slower (due to releasing cached heap pages back - * to the kernel). - * - * See #GMemoryMonitorWarningLevel for details on the various warning levels. - * - * |[ - * static void - * warning_cb (GMemoryMonitor *m, GMemoryMonitorWarningLevel level) - * { - * g_debug ("Warning level: %d", level); - * if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW) - * drop_caches (); - * } - * - * static GMemoryMonitor * - * monitor_low_memory (void) - * { - * GMemoryMonitor *m; - * m = g_memory_monitor_dup_default (); - * g_signal_connect (G_OBJECT (m), "low-memory-warning", - * G_CALLBACK (warning_cb), NULL); - * return m; - * } - * ]| - * - * Don't forget to disconnect the #GMemoryMonitor::low-memory-warning - * signal, and unref the #GMemoryMonitor itself when exiting. - * - * Since: 2.64 - */ -public interface MemoryMonitorIF{ - /** Get the main Gtk struct */ - public GMemoryMonitor* getMemoryMonitorStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_memory_monitor_get_type(); - } - - /** - * Gets a reference to the default #GMemoryMonitor for the system. - * - * Returns: a new reference to the default #GMemoryMonitor - * - * Since: 2.64 - */ - public static MemoryMonitorIF dupDefault() - { - auto __p = g_memory_monitor_dup_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MemoryMonitorIF)(cast(GMemoryMonitor*) __p, true); - } - - /** - * Emitted when the system is running low on free memory. The signal - * handler should then take the appropriate action depending on the - * warning level. See the #GMemoryMonitorWarningLevel documentation for - * details. - * - * Params: - * level = the #GMemoryMonitorWarningLevel warning level - * - * Since: 2.64 - */ - gulong addOnLowMemoryWarning(void delegate(GMemoryMonitorWarningLevel, MemoryMonitorIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/MemoryMonitorT.d b/generated/gtkd/gio/MemoryMonitorT.d deleted file mode 100644 index dab070412..000000000 --- a/generated/gtkd/gio/MemoryMonitorT.d +++ /dev/null @@ -1,110 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MemoryMonitorT; - -public import gio.MemoryMonitorIF; -public import gio.c.functions; -public import gio.c.types; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #GMemoryMonitor will monitor system memory and suggest to the application - * when to free memory so as to leave more room for other applications. - * It is implemented on Linux using the [Low Memory Monitor](https://gitlab.freedesktop.org/hadess/low-memory-monitor/) - * ([API documentation](https://hadess.pages.freedesktop.org/low-memory-monitor/)). - * - * There is also an implementation for use inside Flatpak sandboxes. - * - * Possible actions to take when the signal is received are: - * - Free caches - * - Save files that haven't been looked at in a while to disk, ready to be reopened when needed - * - Run a garbage collection cycle - * - Try and compress fragmented allocations - * - Exit on idle if the process has no reason to stay around - * - Call [`malloc_trim(3)`](man:malloc_trim) to return cached heap pages to - * the kernel (if supported by your libc) - * - * Note that some actions may not always improve system performance, and so - * should be profiled for your application. `malloc_trim()`, for example, may - * make future heap allocations slower (due to releasing cached heap pages back - * to the kernel). - * - * See #GMemoryMonitorWarningLevel for details on the various warning levels. - * - * |[ - * static void - * warning_cb (GMemoryMonitor *m, GMemoryMonitorWarningLevel level) - * { - * g_debug ("Warning level: %d", level); - * if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW) - * drop_caches (); - * } - * - * static GMemoryMonitor * - * monitor_low_memory (void) - * { - * GMemoryMonitor *m; - * m = g_memory_monitor_dup_default (); - * g_signal_connect (G_OBJECT (m), "low-memory-warning", - * G_CALLBACK (warning_cb), NULL); - * return m; - * } - * ]| - * - * Don't forget to disconnect the #GMemoryMonitor::low-memory-warning - * signal, and unref the #GMemoryMonitor itself when exiting. - * - * Since: 2.64 - */ -public template MemoryMonitorT(TStruct) -{ - /** Get the main Gtk struct */ - public GMemoryMonitor* getMemoryMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GMemoryMonitor*)getStruct(); - } - - - /** - * Emitted when the system is running low on free memory. The signal - * handler should then take the appropriate action depending on the - * warning level. See the #GMemoryMonitorWarningLevel documentation for - * details. - * - * Params: - * level = the #GMemoryMonitorWarningLevel warning level - * - * Since: 2.64 - */ - gulong addOnLowMemoryWarning(void delegate(GMemoryMonitorWarningLevel, MemoryMonitorIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "low-memory-warning", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/MemoryOutputStream.d b/generated/gtkd/gio/MemoryOutputStream.d deleted file mode 100644 index aee49167d..000000000 --- a/generated/gtkd/gio/MemoryOutputStream.d +++ /dev/null @@ -1,262 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MemoryOutputStream; - -private import gio.OutputStream; -private import gio.PollableOutputStreamIF; -private import gio.PollableOutputStreamT; -private import gio.SeekableIF; -private import gio.SeekableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GMemoryOutputStream is a class for using arbitrary - * memory chunks as output for GIO streaming output operations. - * - * As of GLib 2.34, #GMemoryOutputStream trivially implements - * #GPollableOutputStream: it always polls as ready. - */ -public class MemoryOutputStream : OutputStream, PollableOutputStreamIF, SeekableIF -{ - /** the main Gtk struct */ - protected GMemoryOutputStream* gMemoryOutputStream; - - /** Get the main Gtk struct */ - public GMemoryOutputStream* getMemoryOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMemoryOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMemoryOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMemoryOutputStream* gMemoryOutputStream, bool ownedRef = false) - { - this.gMemoryOutputStream = gMemoryOutputStream; - super(cast(GOutputStream*)gMemoryOutputStream, ownedRef); - } - - // add the PollableOutputStream capabilities - mixin PollableOutputStreamT!(GMemoryOutputStream); - - // add the Seekable capabilities - mixin SeekableT!(GMemoryOutputStream); - - - /** */ - public static GType getType() - { - return g_memory_output_stream_get_type(); - } - - /** - * Creates a new #GMemoryOutputStream. - * - * In most cases this is not the function you want. See - * g_memory_output_stream_new_resizable() instead. - * - * If @data is non-%NULL, the stream will use that for its internal storage. - * - * If @realloc_fn is non-%NULL, it will be used for resizing the internal - * storage when necessary and the stream will be considered resizable. - * In that case, the stream will start out being (conceptually) empty. - * @size is used only as a hint for how big @data is. Specifically, - * seeking to the end of a newly-created stream will seek to zero, not - * @size. Seeking past the end of the stream and then writing will - * introduce a zero-filled gap. - * - * If @realloc_fn is %NULL then the stream is fixed-sized. Seeking to - * the end will seek to @size exactly. Writing past the end will give - * an 'out of space' error. Attempting to seek past the end will fail. - * Unlike the resizable case, seeking to an offset within the stream and - * writing will preserve the bytes passed in as @data before that point - * and will return them as part of g_memory_output_stream_steal_data(). - * If you intend to seek you should probably therefore ensure that @data - * is properly initialised. - * - * It is probably only meaningful to provide @data and @size in the case - * that you want a fixed-sized stream. Put another way: if @realloc_fn - * is non-%NULL then it makes most sense to give @data as %NULL and - * @size as 0 (allowing #GMemoryOutputStream to do the initial - * allocation for itself). - * - * |[ - * // a stream that can grow - * stream = g_memory_output_stream_new (NULL, 0, realloc, free); - * - * // another stream that can grow - * stream2 = g_memory_output_stream_new (NULL, 0, g_realloc, g_free); - * - * // a fixed-size stream - * data = malloc (200); - * stream3 = g_memory_output_stream_new (data, 200, NULL, free); - * ]| - * - * Params: - * data = pointer to a chunk of memory to use, or %NULL - * size = the size of @data - * reallocFunction = a function with realloc() semantics (like g_realloc()) - * to be called when @data needs to be grown, or %NULL - * destroyFunction = a function to be called on @data when the stream is - * finalized, or %NULL - * - * Returns: A newly created #GMemoryOutputStream object. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(void* data, size_t size, GReallocFunc reallocFunction, GDestroyNotify destroyFunction) - { - auto __p = g_memory_output_stream_new(data, size, reallocFunction, destroyFunction); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GMemoryOutputStream*) __p, true); - } - - /** - * Creates a new #GMemoryOutputStream, using g_realloc() and g_free() - * for memory allocation. - * - * Since: 2.36 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_memory_output_stream_new_resizable(); - - if(__p is null) - { - throw new ConstructionException("null returned by new_resizable"); - } - - this(cast(GMemoryOutputStream*) __p, true); - } - - /** - * Gets any loaded data from the @ostream. - * - * Note that the returned pointer may become invalid on the next - * write or truncate operation on the stream. - * - * Returns: pointer to the stream's data, or %NULL if the data - * has been stolen - */ - public void* getData() - { - return g_memory_output_stream_get_data(gMemoryOutputStream); - } - - /** - * Returns the number of bytes from the start up to including the last - * byte written in the stream that has not been truncated away. - * - * Returns: the number of bytes written to the stream - * - * Since: 2.18 - */ - public size_t getDataSize() - { - return g_memory_output_stream_get_data_size(gMemoryOutputStream); - } - - /** - * Gets the size of the currently allocated data area (available from - * g_memory_output_stream_get_data()). - * - * You probably don't want to use this function on resizable streams. - * See g_memory_output_stream_get_data_size() instead. For resizable - * streams the size returned by this function is an implementation - * detail and may be change at any time in response to operations on the - * stream. - * - * If the stream is fixed-sized (ie: no realloc was passed to - * g_memory_output_stream_new()) then this is the maximum size of the - * stream and further writes will return %G_IO_ERROR_NO_SPACE. - * - * In any case, if you want the number of bytes currently written to the - * stream, use g_memory_output_stream_get_data_size(). - * - * Returns: the number of bytes allocated for the data buffer - */ - public size_t getSize() - { - return g_memory_output_stream_get_size(gMemoryOutputStream); - } - - /** - * Returns data from the @ostream as a #GBytes. @ostream must be - * closed before calling this function. - * - * Returns: the stream's data - * - * Since: 2.34 - */ - public Bytes stealAsBytes() - { - auto __p = g_memory_output_stream_steal_as_bytes(gMemoryOutputStream); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Gets any loaded data from the @ostream. Ownership of the data - * is transferred to the caller; when no longer needed it must be - * freed using the free function set in @ostream's - * #GMemoryOutputStream:destroy-function property. - * - * @ostream must be closed before calling this function. - * - * Returns: the stream's data, or %NULL if it has previously - * been stolen - * - * Since: 2.26 - */ - public void* stealData() - { - return g_memory_output_stream_steal_data(gMemoryOutputStream); - } -} diff --git a/generated/gtkd/gio/Menu.d b/generated/gtkd/gio/Menu.d deleted file mode 100644 index 7be7ca7ae..000000000 --- a/generated/gtkd/gio/Menu.d +++ /dev/null @@ -1,361 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Menu; - -private import gio.MenuItem; -private import gio.MenuModel; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GMenu is a simple implementation of #GMenuModel. - * You populate a #GMenu by adding #GMenuItem instances to it. - * - * There are some convenience functions to allow you to directly - * add items (avoiding #GMenuItem) for the common cases. To add - * a regular item, use g_menu_insert(). To add a section, use - * g_menu_insert_section(). To add a submenu, use - * g_menu_insert_submenu(). - * - * Since: 2.32 - */ -public class Menu : MenuModel -{ - /** the main Gtk struct */ - protected GMenu* gMenu; - - /** Get the main Gtk struct */ - public GMenu* getMenuStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMenu; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMenu; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMenu* gMenu, bool ownedRef = false) - { - this.gMenu = gMenu; - super(cast(GMenuModel*)gMenu, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_menu_get_type(); - } - - /** - * Creates a new #GMenu. - * - * The new menu has no items. - * - * Returns: a new #GMenu - * - * Since: 2.32 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_menu_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GMenu*) __p, true); - } - - /** - * Convenience function for appending a normal menu item to the end of - * @menu. Combine g_menu_item_new() and g_menu_insert_item() for a more - * flexible alternative. - * - * Params: - * label = the section label, or %NULL - * detailedAction = the detailed action string, or %NULL - * - * Since: 2.32 - */ - public void append(string label, string detailedAction) - { - g_menu_append(gMenu, Str.toStringz(label), Str.toStringz(detailedAction)); - } - - /** - * Appends @item to the end of @menu. - * - * See g_menu_insert_item() for more information. - * - * Params: - * item = a #GMenuItem to append - * - * Since: 2.32 - */ - public void appendItem(MenuItem item) - { - g_menu_append_item(gMenu, (item is null) ? null : item.getMenuItemStruct()); - } - - /** - * Convenience function for appending a section menu item to the end of - * @menu. Combine g_menu_item_new_section() and g_menu_insert_item() for a - * more flexible alternative. - * - * Params: - * label = the section label, or %NULL - * section = a #GMenuModel with the items of the section - * - * Since: 2.32 - */ - public void appendSection(string label, MenuModel section) - { - g_menu_append_section(gMenu, Str.toStringz(label), (section is null) ? null : section.getMenuModelStruct()); - } - - /** - * Convenience function for appending a submenu menu item to the end of - * @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() for a - * more flexible alternative. - * - * Params: - * label = the section label, or %NULL - * submenu = a #GMenuModel with the items of the submenu - * - * Since: 2.32 - */ - public void appendSubmenu(string label, MenuModel submenu) - { - g_menu_append_submenu(gMenu, Str.toStringz(label), (submenu is null) ? null : submenu.getMenuModelStruct()); - } - - /** - * Marks @menu as frozen. - * - * After the menu is frozen, it is an error to attempt to make any - * changes to it. In effect this means that the #GMenu API must no - * longer be used. - * - * This function causes g_menu_model_is_mutable() to begin returning - * %FALSE, which has some positive performance implications. - * - * Since: 2.32 - */ - public void freeze() - { - g_menu_freeze(gMenu); - } - - /** - * Convenience function for inserting a normal menu item into @menu. - * Combine g_menu_item_new() and g_menu_insert_item() for a more flexible - * alternative. - * - * Params: - * position = the position at which to insert the item - * label = the section label, or %NULL - * detailedAction = the detailed action string, or %NULL - * - * Since: 2.32 - */ - public void insert(int position, string label, string detailedAction) - { - g_menu_insert(gMenu, position, Str.toStringz(label), Str.toStringz(detailedAction)); - } - - /** - * Inserts @item into @menu. - * - * The "insertion" is actually done by copying all of the attribute and - * link values of @item and using them to form a new item within @menu. - * As such, @item itself is not really inserted, but rather, a menu item - * that is exactly the same as the one presently described by @item. - * - * This means that @item is essentially useless after the insertion - * occurs. Any changes you make to it are ignored unless it is inserted - * again (at which point its updated values will be copied). - * - * You should probably just free @item once you're done. - * - * There are many convenience functions to take care of common cases. - * See g_menu_insert(), g_menu_insert_section() and - * g_menu_insert_submenu() as well as "prepend" and "append" variants of - * each of these functions. - * - * Params: - * position = the position at which to insert the item - * item = the #GMenuItem to insert - * - * Since: 2.32 - */ - public void insertItem(int position, MenuItem item) - { - g_menu_insert_item(gMenu, position, (item is null) ? null : item.getMenuItemStruct()); - } - - /** - * Convenience function for inserting a section menu item into @menu. - * Combine g_menu_item_new_section() and g_menu_insert_item() for a more - * flexible alternative. - * - * Params: - * position = the position at which to insert the item - * label = the section label, or %NULL - * section = a #GMenuModel with the items of the section - * - * Since: 2.32 - */ - public void insertSection(int position, string label, MenuModel section) - { - g_menu_insert_section(gMenu, position, Str.toStringz(label), (section is null) ? null : section.getMenuModelStruct()); - } - - /** - * Convenience function for inserting a submenu menu item into @menu. - * Combine g_menu_item_new_submenu() and g_menu_insert_item() for a more - * flexible alternative. - * - * Params: - * position = the position at which to insert the item - * label = the section label, or %NULL - * submenu = a #GMenuModel with the items of the submenu - * - * Since: 2.32 - */ - public void insertSubmenu(int position, string label, MenuModel submenu) - { - g_menu_insert_submenu(gMenu, position, Str.toStringz(label), (submenu is null) ? null : submenu.getMenuModelStruct()); - } - - /** - * Convenience function for prepending a normal menu item to the start - * of @menu. Combine g_menu_item_new() and g_menu_insert_item() for a more - * flexible alternative. - * - * Params: - * label = the section label, or %NULL - * detailedAction = the detailed action string, or %NULL - * - * Since: 2.32 - */ - public void prepend(string label, string detailedAction) - { - g_menu_prepend(gMenu, Str.toStringz(label), Str.toStringz(detailedAction)); - } - - /** - * Prepends @item to the start of @menu. - * - * See g_menu_insert_item() for more information. - * - * Params: - * item = a #GMenuItem to prepend - * - * Since: 2.32 - */ - public void prependItem(MenuItem item) - { - g_menu_prepend_item(gMenu, (item is null) ? null : item.getMenuItemStruct()); - } - - /** - * Convenience function for prepending a section menu item to the start - * of @menu. Combine g_menu_item_new_section() and g_menu_insert_item() for - * a more flexible alternative. - * - * Params: - * label = the section label, or %NULL - * section = a #GMenuModel with the items of the section - * - * Since: 2.32 - */ - public void prependSection(string label, MenuModel section) - { - g_menu_prepend_section(gMenu, Str.toStringz(label), (section is null) ? null : section.getMenuModelStruct()); - } - - /** - * Convenience function for prepending a submenu menu item to the start - * of @menu. Combine g_menu_item_new_submenu() and g_menu_insert_item() for - * a more flexible alternative. - * - * Params: - * label = the section label, or %NULL - * submenu = a #GMenuModel with the items of the submenu - * - * Since: 2.32 - */ - public void prependSubmenu(string label, MenuModel submenu) - { - g_menu_prepend_submenu(gMenu, Str.toStringz(label), (submenu is null) ? null : submenu.getMenuModelStruct()); - } - - /** - * Removes an item from the menu. - * - * @position gives the index of the item to remove. - * - * It is an error if position is not in range the range from 0 to one - * less than the number of items in the menu. - * - * It is not possible to remove items by identity since items are added - * to the menu simply by copying their links and attributes (ie: - * identity of the item itself is not preserved). - * - * Params: - * position = the position of the item to remove - * - * Since: 2.32 - */ - public void remove(int position) - { - g_menu_remove(gMenu, position); - } - - /** - * Removes all items in the menu. - * - * Since: 2.38 - */ - public void removeAll() - { - g_menu_remove_all(gMenu); - } -} diff --git a/generated/gtkd/gio/MenuAttributeIter.d b/generated/gtkd/gio/MenuAttributeIter.d deleted file mode 100644 index 6e284e16e..000000000 --- a/generated/gtkd/gio/MenuAttributeIter.d +++ /dev/null @@ -1,170 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MenuAttributeIter; - -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GMenuAttributeIter is an opaque structure type. You must access it - * using the functions below. - * - * Since: 2.32 - */ -public class MenuAttributeIter : ObjectG -{ - /** the main Gtk struct */ - protected GMenuAttributeIter* gMenuAttributeIter; - - /** Get the main Gtk struct */ - public GMenuAttributeIter* getMenuAttributeIterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMenuAttributeIter; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMenuAttributeIter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMenuAttributeIter* gMenuAttributeIter, bool ownedRef = false) - { - this.gMenuAttributeIter = gMenuAttributeIter; - super(cast(GObject*)gMenuAttributeIter, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_menu_attribute_iter_get_type(); - } - - /** - * Gets the name of the attribute at the current iterator position, as - * a string. - * - * The iterator is not advanced. - * - * Returns: the name of the attribute - * - * Since: 2.32 - */ - public string getName() - { - return Str.toString(g_menu_attribute_iter_get_name(gMenuAttributeIter)); - } - - /** - * This function combines g_menu_attribute_iter_next() with - * g_menu_attribute_iter_get_name() and g_menu_attribute_iter_get_value(). - * - * First the iterator is advanced to the next (possibly first) attribute. - * If that fails, then %FALSE is returned and there are no other - * effects. - * - * If successful, @name and @value are set to the name and value of the - * attribute that has just been advanced to. At this point, - * g_menu_attribute_iter_get_name() and g_menu_attribute_iter_get_value() will - * return the same values again. - * - * The value returned in @name remains valid for as long as the iterator - * remains at the current position. The value returned in @value must - * be unreffed using g_variant_unref() when it is no longer in use. - * - * Params: - * outName = the type of the attribute - * value = the attribute value - * - * Returns: %TRUE on success, or %FALSE if there is no additional - * attribute - * - * Since: 2.32 - */ - public bool getNext(out string outName, out Variant value) - { - char* outoutName = null; - GVariant* outvalue = null; - - auto __p = g_menu_attribute_iter_get_next(gMenuAttributeIter, &outoutName, &outvalue) != 0; - - outName = Str.toString(outoutName); - value = new Variant(outvalue); - - return __p; - } - - /** - * Gets the value of the attribute at the current iterator position. - * - * The iterator is not advanced. - * - * Returns: the value of the current attribute - * - * Since: 2.32 - */ - public Variant getValue() - { - auto __p = g_menu_attribute_iter_get_value(gMenuAttributeIter); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Attempts to advance the iterator to the next (possibly first) - * attribute. - * - * %TRUE is returned on success, or %FALSE if there are no more - * attributes. - * - * You must call this function when you first acquire the iterator - * to advance it to the first attribute (and determine if the first - * attribute exists at all). - * - * Returns: %TRUE on success, or %FALSE when there are no more attributes - * - * Since: 2.32 - */ - public bool next() - { - return g_menu_attribute_iter_next(gMenuAttributeIter) != 0; - } -} diff --git a/generated/gtkd/gio/MenuItem.d b/generated/gtkd/gio/MenuItem.d deleted file mode 100644 index a3704465c..000000000 --- a/generated/gtkd/gio/MenuItem.d +++ /dev/null @@ -1,393 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MenuItem; - -private import gio.IconIF; -private import gio.MenuModel; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import gobject.ObjectG; - - -/** - * #GMenuItem is an opaque structure type. You must access it using the - * functions below. - * - * Since: 2.32 - */ -public class MenuItem : ObjectG -{ - /** the main Gtk struct */ - protected GMenuItem* gMenuItem; - - /** Get the main Gtk struct */ - public GMenuItem* getMenuItemStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMenuItem; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMenuItem; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMenuItem* gMenuItem, bool ownedRef = false) - { - this.gMenuItem = gMenuItem; - super(cast(GObject*)gMenuItem, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_menu_item_get_type(); - } - - /** - * Creates a new #GMenuItem. - * - * If @label is non-%NULL it is used to set the "label" attribute of the - * new item. - * - * If @detailed_action is non-%NULL it is used to set the "action" and - * possibly the "target" attribute of the new item. See - * g_menu_item_set_detailed_action() for more information. - * - * Params: - * label = the section label, or %NULL - * detailedAction = the detailed action string, or %NULL - * - * Returns: a new #GMenuItem - * - * Since: 2.32 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string label, string detailedAction) - { - auto __p = g_menu_item_new(Str.toStringz(label), Str.toStringz(detailedAction)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GMenuItem*) __p, true); - } - - /** - * Creates a #GMenuItem as an exact copy of an existing menu item in a - * #GMenuModel. - * - * @item_index must be valid (ie: be sure to call - * g_menu_model_get_n_items() first). - * - * Params: - * model = a #GMenuModel - * itemIndex = the index of an item in @model - * - * Returns: a new #GMenuItem. - * - * Since: 2.34 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(MenuModel model, int itemIndex) - { - auto __p = g_menu_item_new_from_model((model is null) ? null : model.getMenuModelStruct(), itemIndex); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_model"); - } - - this(cast(GMenuItem*) __p, true); - } - - /** - * Queries the named @attribute on @menu_item. - * - * If @expected_type is specified and the attribute does not have this - * type, %NULL is returned. %NULL is also returned if the attribute - * simply does not exist. - * - * Params: - * attribute = the attribute name to query - * expectedType = the expected type of the attribute - * - * Returns: the attribute value, or %NULL - * - * Since: 2.34 - */ - public Variant getAttributeValue(string attribute, VariantType expectedType) - { - auto __p = g_menu_item_get_attribute_value(gMenuItem, Str.toStringz(attribute), (expectedType is null) ? null : expectedType.getVariantTypeStruct()); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Queries the named @link on @menu_item. - * - * Params: - * link = the link name to query - * - * Returns: the link, or %NULL - * - * Since: 2.34 - */ - public MenuModel getLink(string link) - { - auto __p = g_menu_item_get_link(gMenuItem, Str.toStringz(link)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MenuModel)(cast(GMenuModel*) __p, true); - } - - /** - * Sets or unsets the "action" and "target" attributes of @menu_item. - * - * If @action is %NULL then both the "action" and "target" attributes - * are unset (and @target_value is ignored). - * - * If @action is non-%NULL then the "action" attribute is set. The - * "target" attribute is then set to the value of @target_value if it is - * non-%NULL or unset otherwise. - * - * Normal menu items (ie: not submenu, section or other custom item - * types) are expected to have the "action" attribute set to identify - * the action that they are associated with. The state type of the - * action help to determine the disposition of the menu item. See - * #GAction and #GActionGroup for an overview of actions. - * - * In general, clicking on the menu item will result in activation of - * the named action with the "target" attribute given as the parameter - * to the action invocation. If the "target" attribute is not set then - * the action is invoked with no parameter. - * - * If the action has no state then the menu item is usually drawn as a - * plain menu item (ie: with no additional decoration). - * - * If the action has a boolean state then the menu item is usually drawn - * as a toggle menu item (ie: with a checkmark or equivalent - * indication). The item should be marked as 'toggled' or 'checked' - * when the boolean state is %TRUE. - * - * If the action has a string state then the menu item is usually drawn - * as a radio menu item (ie: with a radio bullet or equivalent - * indication). The item should be marked as 'selected' when the string - * state is equal to the value of the @target property. - * - * See g_menu_item_set_action_and_target() or - * g_menu_item_set_detailed_action() for two equivalent calls that are - * probably more convenient for most uses. - * - * Params: - * action = the name of the action for this item - * targetValue = a #GVariant to use as the action target - * - * Since: 2.32 - */ - public void setActionAndTargetValue(string action, Variant targetValue) - { - g_menu_item_set_action_and_target_value(gMenuItem, Str.toStringz(action), (targetValue is null) ? null : targetValue.getVariantStruct()); - } - - /** - * Sets or unsets an attribute on @menu_item. - * - * The attribute to set or unset is specified by @attribute. This - * can be one of the standard attribute names %G_MENU_ATTRIBUTE_LABEL, - * %G_MENU_ATTRIBUTE_ACTION, %G_MENU_ATTRIBUTE_TARGET, or a custom - * attribute name. - * Attribute names are restricted to lowercase characters, numbers - * and '-'. Furthermore, the names must begin with a lowercase character, - * must not end with a '-', and must not contain consecutive dashes. - * - * must consist only of lowercase - * ASCII characters, digits and '-'. - * - * If @value is non-%NULL then it is used as the new value for the - * attribute. If @value is %NULL then the attribute is unset. If - * the @value #GVariant is floating, it is consumed. - * - * See also g_menu_item_set_attribute() for a more convenient way to do - * the same. - * - * Params: - * attribute = the attribute to set - * value = a #GVariant to use as the value, or %NULL - * - * Since: 2.32 - */ - public void setAttributeValue(string attribute, Variant value) - { - g_menu_item_set_attribute_value(gMenuItem, Str.toStringz(attribute), (value is null) ? null : value.getVariantStruct()); - } - - /** - * Sets the "action" and possibly the "target" attribute of @menu_item. - * - * The format of @detailed_action is the same format parsed by - * g_action_parse_detailed_name(). - * - * See g_menu_item_set_action_and_target() or - * g_menu_item_set_action_and_target_value() for more flexible (but - * slightly less convenient) alternatives. - * - * See also g_menu_item_set_action_and_target_value() for a description of - * the semantics of the action and target attributes. - * - * Params: - * detailedAction = the "detailed" action string - * - * Since: 2.32 - */ - public void setDetailedAction(string detailedAction) - { - g_menu_item_set_detailed_action(gMenuItem, Str.toStringz(detailedAction)); - } - - /** - * Sets (or unsets) the icon on @menu_item. - * - * This call is the same as calling g_icon_serialize() and using the - * result as the value to g_menu_item_set_attribute_value() for - * %G_MENU_ATTRIBUTE_ICON. - * - * This API is only intended for use with "noun" menu items; things like - * bookmarks or applications in an "Open With" menu. Don't use it on - * menu items corresponding to verbs (eg: stock icons for 'Save' or - * 'Quit'). - * - * If @icon is %NULL then the icon is unset. - * - * Params: - * icon = a #GIcon, or %NULL - * - * Since: 2.38 - */ - public void setIcon(IconIF icon) - { - g_menu_item_set_icon(gMenuItem, (icon is null) ? null : icon.getIconStruct()); - } - - /** - * Sets or unsets the "label" attribute of @menu_item. - * - * If @label is non-%NULL it is used as the label for the menu item. If - * it is %NULL then the label attribute is unset. - * - * Params: - * label = the label to set, or %NULL to unset - * - * Since: 2.32 - */ - public void setLabel(string label) - { - g_menu_item_set_label(gMenuItem, Str.toStringz(label)); - } - - /** - * Creates a link from @menu_item to @model if non-%NULL, or unsets it. - * - * Links are used to establish a relationship between a particular menu - * item and another menu. For example, %G_MENU_LINK_SUBMENU is used to - * associate a submenu with a particular menu item, and %G_MENU_LINK_SECTION - * is used to create a section. Other types of link can be used, but there - * is no guarantee that clients will be able to make sense of them. - * Link types are restricted to lowercase characters, numbers - * and '-'. Furthermore, the names must begin with a lowercase character, - * must not end with a '-', and must not contain consecutive dashes. - * - * Params: - * link = type of link to establish or unset - * model = the #GMenuModel to link to (or %NULL to unset) - * - * Since: 2.32 - */ - public void setLink(string link, MenuModel model) - { - g_menu_item_set_link(gMenuItem, Str.toStringz(link), (model is null) ? null : model.getMenuModelStruct()); - } - - /** - * Sets or unsets the "section" link of @menu_item to @section. - * - * The effect of having one menu appear as a section of another is - * exactly as it sounds: the items from @section become a direct part of - * the menu that @menu_item is added to. See g_menu_item_new_section() - * for more information about what it means for a menu item to be a - * section. - * - * Params: - * section = a #GMenuModel, or %NULL - * - * Since: 2.32 - */ - public void setSection(MenuModel section) - { - g_menu_item_set_section(gMenuItem, (section is null) ? null : section.getMenuModelStruct()); - } - - /** - * Sets or unsets the "submenu" link of @menu_item to @submenu. - * - * If @submenu is non-%NULL, it is linked to. If it is %NULL then the - * link is unset. - * - * The effect of having one menu appear as a submenu of another is - * exactly as it sounds. - * - * Params: - * submenu = a #GMenuModel, or %NULL - * - * Since: 2.32 - */ - public void setSubmenu(MenuModel submenu) - { - g_menu_item_set_submenu(gMenuItem, (submenu is null) ? null : submenu.getMenuModelStruct()); - } -} diff --git a/generated/gtkd/gio/MenuLinkIter.d b/generated/gtkd/gio/MenuLinkIter.d deleted file mode 100644 index b94a82de9..000000000 --- a/generated/gtkd/gio/MenuLinkIter.d +++ /dev/null @@ -1,166 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MenuLinkIter; - -private import gio.MenuModel; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GMenuLinkIter is an opaque structure type. You must access it using - * the functions below. - * - * Since: 2.32 - */ -public class MenuLinkIter : ObjectG -{ - /** the main Gtk struct */ - protected GMenuLinkIter* gMenuLinkIter; - - /** Get the main Gtk struct */ - public GMenuLinkIter* getMenuLinkIterStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMenuLinkIter; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMenuLinkIter; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMenuLinkIter* gMenuLinkIter, bool ownedRef = false) - { - this.gMenuLinkIter = gMenuLinkIter; - super(cast(GObject*)gMenuLinkIter, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_menu_link_iter_get_type(); - } - - /** - * Gets the name of the link at the current iterator position. - * - * The iterator is not advanced. - * - * Returns: the type of the link - * - * Since: 2.32 - */ - public string getName() - { - return Str.toString(g_menu_link_iter_get_name(gMenuLinkIter)); - } - - /** - * This function combines g_menu_link_iter_next() with - * g_menu_link_iter_get_name() and g_menu_link_iter_get_value(). - * - * First the iterator is advanced to the next (possibly first) link. - * If that fails, then %FALSE is returned and there are no other effects. - * - * If successful, @out_link and @value are set to the name and #GMenuModel - * of the link that has just been advanced to. At this point, - * g_menu_link_iter_get_name() and g_menu_link_iter_get_value() will return the - * same values again. - * - * The value returned in @out_link remains valid for as long as the iterator - * remains at the current position. The value returned in @value must - * be unreffed using g_object_unref() when it is no longer in use. - * - * Params: - * outLink = the name of the link - * value = the linked #GMenuModel - * - * Returns: %TRUE on success, or %FALSE if there is no additional link - * - * Since: 2.32 - */ - public bool getNext(out string outLink, out MenuModel value) - { - char* outoutLink = null; - GMenuModel* outvalue = null; - - auto __p = g_menu_link_iter_get_next(gMenuLinkIter, &outoutLink, &outvalue) != 0; - - outLink = Str.toString(outoutLink); - value = ObjectG.getDObject!(MenuModel)(outvalue); - - return __p; - } - - /** - * Gets the linked #GMenuModel at the current iterator position. - * - * The iterator is not advanced. - * - * Returns: the #GMenuModel that is linked to - * - * Since: 2.32 - */ - public MenuModel getValue() - { - auto __p = g_menu_link_iter_get_value(gMenuLinkIter); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MenuModel)(cast(GMenuModel*) __p, true); - } - - /** - * Attempts to advance the iterator to the next (possibly first) - * link. - * - * %TRUE is returned on success, or %FALSE if there are no more links. - * - * You must call this function when you first acquire the iterator to - * advance it to the first link (and determine if the first link exists - * at all). - * - * Returns: %TRUE on success, or %FALSE when there are no more links - * - * Since: 2.32 - */ - public bool next() - { - return g_menu_link_iter_next(gMenuLinkIter) != 0; - } -} diff --git a/generated/gtkd/gio/MenuModel.d b/generated/gtkd/gio/MenuModel.d deleted file mode 100644 index 300b0eeb0..000000000 --- a/generated/gtkd/gio/MenuModel.d +++ /dev/null @@ -1,391 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MenuModel; - -private import gio.MenuAttributeIter; -private import gio.MenuLinkIter; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GMenuModel represents the contents of a menu -- an ordered list of - * menu items. The items are associated with actions, which can be - * activated through them. Items can be grouped in sections, and may - * have submenus associated with them. Both items and sections usually - * have some representation data, such as labels or icons. The type of - * the associated action (ie whether it is stateful, and what kind of - * state it has) can influence the representation of the item. - * - * The conceptual model of menus in #GMenuModel is hierarchical: - * sections and submenus are again represented by #GMenuModels. - * Menus themselves do not define their own roles. Rather, the role - * of a particular #GMenuModel is defined by the item that references - * it (or, in the case of the 'root' menu, is defined by the context - * in which it is used). - * - * As an example, consider the visible portions of this menu: - * - * ## An example menu # {#menu-example} - * - * ![](menu-example.png) - * - * There are 8 "menus" visible in the screenshot: one menubar, two - * submenus and 5 sections: - * - * - the toplevel menubar (containing 4 items) - * - the View submenu (containing 3 sections) - * - the first section of the View submenu (containing 2 items) - * - the second section of the View submenu (containing 1 item) - * - the final section of the View submenu (containing 1 item) - * - the Highlight Mode submenu (containing 2 sections) - * - the Sources section (containing 2 items) - * - the Markup section (containing 2 items) - * - * The [example][menu-model] illustrates the conceptual connection between - * these 8 menus. Each large block in the figure represents a menu and the - * smaller blocks within the large block represent items in that menu. Some - * items contain references to other menus. - * - * ## A menu example # {#menu-model} - * - * ![](menu-model.png) - * - * Notice that the separators visible in the [example][menu-example] - * appear nowhere in the [menu model][menu-model]. This is because - * separators are not explicitly represented in the menu model. Instead, - * a separator is inserted between any two non-empty sections of a menu. - * Section items can have labels just like any other item. In that case, - * a display system may show a section header instead of a separator. - * - * The motivation for this abstract model of application controls is - * that modern user interfaces tend to make these controls available - * outside the application. Examples include global menus, jumplists, - * dash boards, etc. To support such uses, it is necessary to 'export' - * information about actions and their representation in menus, which - * is exactly what the [GActionGroup exporter][gio-GActionGroup-exporter] - * and the [GMenuModel exporter][gio-GMenuModel-exporter] do for - * #GActionGroup and #GMenuModel. The client-side counterparts to - * make use of the exported information are #GDBusActionGroup and - * #GDBusMenuModel. - * - * The API of #GMenuModel is very generic, with iterators for the - * attributes and links of an item, see g_menu_model_iterate_item_attributes() - * and g_menu_model_iterate_item_links(). The 'standard' attributes and - * link types have predefined names: %G_MENU_ATTRIBUTE_LABEL, - * %G_MENU_ATTRIBUTE_ACTION, %G_MENU_ATTRIBUTE_TARGET, %G_MENU_LINK_SECTION - * and %G_MENU_LINK_SUBMENU. - * - * Items in a #GMenuModel represent active controls if they refer to - * an action that can get activated when the user interacts with the - * menu item. The reference to the action is encoded by the string id - * in the %G_MENU_ATTRIBUTE_ACTION attribute. An action id uniquely - * identifies an action in an action group. Which action group(s) provide - * actions depends on the context in which the menu model is used. - * E.g. when the model is exported as the application menu of a - * #GtkApplication, actions can be application-wide or window-specific - * (and thus come from two different action groups). By convention, the - * application-wide actions have names that start with "app.", while the - * names of window-specific actions start with "win.". - * - * While a wide variety of stateful actions is possible, the following - * is the minimum that is expected to be supported by all users of exported - * menu information: - * - an action with no parameter type and no state - * - an action with no parameter type and boolean state - * - an action with string parameter type and string state - * - * ## Stateless - * - * A stateless action typically corresponds to an ordinary menu item. - * - * Selecting such a menu item will activate the action (with no parameter). - * - * ## Boolean State - * - * An action with a boolean state will most typically be used with a "toggle" - * or "switch" menu item. The state can be set directly, but activating the - * action (with no parameter) results in the state being toggled. - * - * Selecting a toggle menu item will activate the action. The menu item should - * be rendered as "checked" when the state is true. - * - * ## String Parameter and State - * - * Actions with string parameters and state will most typically be used to - * represent an enumerated choice over the items available for a group of - * radio menu items. Activating the action with a string parameter is - * equivalent to setting that parameter as the state. - * - * Radio menu items, in addition to being associated with the action, will - * have a target value. Selecting that menu item will result in activation - * of the action with the target value as the parameter. The menu item should - * be rendered as "selected" when the state of the action is equal to the - * target value of the menu item. - * - * Since: 2.32 - */ -public class MenuModel : ObjectG -{ - /** the main Gtk struct */ - protected GMenuModel* gMenuModel; - - /** Get the main Gtk struct */ - public GMenuModel* getMenuModelStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMenuModel; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMenuModel; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMenuModel* gMenuModel, bool ownedRef = false) - { - this.gMenuModel = gMenuModel; - super(cast(GObject*)gMenuModel, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_menu_model_get_type(); - } - - /** - * Queries the item at position @item_index in @model for the attribute - * specified by @attribute. - * - * If @expected_type is non-%NULL then it specifies the expected type of - * the attribute. If it is %NULL then any type will be accepted. - * - * If the attribute exists and matches @expected_type (or if the - * expected type is unspecified) then the value is returned. - * - * If the attribute does not exist, or does not match the expected type - * then %NULL is returned. - * - * Params: - * itemIndex = the index of the item - * attribute = the attribute to query - * expectedType = the expected type of the attribute, or - * %NULL - * - * Returns: the value of the attribute - * - * Since: 2.32 - */ - public Variant getItemAttributeValue(int itemIndex, string attribute, VariantType expectedType) - { - auto __p = g_menu_model_get_item_attribute_value(gMenuModel, itemIndex, Str.toStringz(attribute), (expectedType is null) ? null : expectedType.getVariantTypeStruct()); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Queries the item at position @item_index in @model for the link - * specified by @link. - * - * If the link exists, the linked #GMenuModel is returned. If the link - * does not exist, %NULL is returned. - * - * Params: - * itemIndex = the index of the item - * link = the link to query - * - * Returns: the linked #GMenuModel, or %NULL - * - * Since: 2.32 - */ - public MenuModel getItemLink(int itemIndex, string link) - { - auto __p = g_menu_model_get_item_link(gMenuModel, itemIndex, Str.toStringz(link)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MenuModel)(cast(GMenuModel*) __p, true); - } - - /** - * Query the number of items in @model. - * - * Returns: the number of items - * - * Since: 2.32 - */ - public int getNItems() - { - return g_menu_model_get_n_items(gMenuModel); - } - - /** - * Queries if @model is mutable. - * - * An immutable #GMenuModel will never emit the #GMenuModel::items-changed - * signal. Consumers of the model may make optimisations accordingly. - * - * Returns: %TRUE if the model is mutable (ie: "items-changed" may be - * emitted). - * - * Since: 2.32 - */ - public bool isMutable() - { - return g_menu_model_is_mutable(gMenuModel) != 0; - } - - /** - * Requests emission of the #GMenuModel::items-changed signal on @model. - * - * This function should never be called except by #GMenuModel - * subclasses. Any other calls to this function will very likely lead - * to a violation of the interface of the model. - * - * The implementation should update its internal representation of the - * menu before emitting the signal. The implementation should further - * expect to receive queries about the new state of the menu (and - * particularly added menu items) while signal handlers are running. - * - * The implementation must dispatch this call directly from a mainloop - * entry and not in response to calls -- particularly those from the - * #GMenuModel API. Said another way: the menu must not change while - * user code is running without returning to the mainloop. - * - * Params: - * position = the position of the change - * removed = the number of items removed - * added = the number of items added - * - * Since: 2.32 - */ - public void itemsChanged(int position, int removed, int added) - { - g_menu_model_items_changed(gMenuModel, position, removed, added); - } - - /** - * Creates a #GMenuAttributeIter to iterate over the attributes of - * the item at position @item_index in @model. - * - * You must free the iterator with g_object_unref() when you are done. - * - * Params: - * itemIndex = the index of the item - * - * Returns: a new #GMenuAttributeIter - * - * Since: 2.32 - */ - public MenuAttributeIter iterateItemAttributes(int itemIndex) - { - auto __p = g_menu_model_iterate_item_attributes(gMenuModel, itemIndex); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MenuAttributeIter)(cast(GMenuAttributeIter*) __p, true); - } - - /** - * Creates a #GMenuLinkIter to iterate over the links of the item at - * position @item_index in @model. - * - * You must free the iterator with g_object_unref() when you are done. - * - * Params: - * itemIndex = the index of the item - * - * Returns: a new #GMenuLinkIter - * - * Since: 2.32 - */ - public MenuLinkIter iterateItemLinks(int itemIndex) - { - auto __p = g_menu_model_iterate_item_links(gMenuModel, itemIndex); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MenuLinkIter)(cast(GMenuLinkIter*) __p, true); - } - - /** - * Emitted when a change has occurred to the menu. - * - * The only changes that can occur to a menu is that items are removed - * or added. Items may not change (except by being removed and added - * back in the same location). This signal is capable of describing - * both of those changes (at the same time). - * - * The signal means that starting at the index @position, @removed - * items were removed and @added items were added in their place. If - * @removed is zero then only items were added. If @added is zero - * then only items were removed. - * - * As an example, if the menu contains items a, b, c, d (in that - * order) and the signal (2, 1, 3) occurs then the new composition of - * the menu will be a, b, _, _, _, d (with each _ representing some - * new item). - * - * Signal handlers may query the model (particularly the added items) - * and expect to see the results of the modification that is being - * reported. The signal is emitted after the modification. - * - * Params: - * position = the position of the change - * removed = the number of items removed - * added = the number of items added - */ - gulong addOnItemsChanged(void delegate(int, int, int, MenuModel) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "items-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/MountIF.d b/generated/gtkd/gio/MountIF.d deleted file mode 100644 index 1bdf39084..000000000 --- a/generated/gtkd/gio/MountIF.d +++ /dev/null @@ -1,488 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MountIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.DriveIF; -private import gio.FileIF; -private import gio.IconIF; -private import gio.MountOperation; -private import gio.VolumeIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The #GMount interface represents user-visible mounts. Note, when - * porting from GnomeVFS, #GMount is the moral equivalent of #GnomeVFSVolume. - * - * #GMount is a "mounted" filesystem that you can access. Mounted is in - * quotes because it's not the same as a unix mount, it might be a gvfs - * mount, but you can still access the files on it if you use GIO. Might or - * might not be related to a volume object. - * - * Unmounting a #GMount instance is an asynchronous operation. For - * more information about asynchronous operations, see #GAsyncResult - * and #GTask. To unmount a #GMount instance, first call - * g_mount_unmount_with_operation() with (at least) the #GMount instance and a - * #GAsyncReadyCallback. The callback will be fired when the - * operation has resolved (either with success or failure), and a - * #GAsyncResult structure will be passed to the callback. That - * callback should then call g_mount_unmount_with_operation_finish() with the #GMount - * and the #GAsyncResult data to see if the operation was completed - * successfully. If an @error is present when g_mount_unmount_with_operation_finish() - * is called, then it will be filled with any error information. - */ -public interface MountIF{ - /** Get the main Gtk struct */ - public GMount* getMountStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_mount_get_type(); - } - - /** - * Checks if @mount can be ejected. - * - * Returns: %TRUE if the @mount can be ejected. - */ - public bool canEject(); - - /** - * Checks if @mount can be unmounted. - * - * Returns: %TRUE if the @mount can be unmounted. - */ - public bool canUnmount(); - - /** - * Ejects a mount. This is an asynchronous operation, and is - * finished by calling g_mount_eject_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Deprecated: Use g_mount_eject_with_operation() instead. - * - * Params: - * flags = flags affecting the unmount if required for eject - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - */ - public void eject(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes ejecting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Deprecated: Use g_mount_eject_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully ejected. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool ejectFinish(AsyncResultIF result); - - /** - * Ejects a mount. This is an asynchronous operation, and is - * finished by calling g_mount_eject_with_operation_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the unmount if required for eject - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - * - * Since: 2.22 - */ - public void ejectWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes ejecting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully ejected. %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectWithOperationFinish(AsyncResultIF result); - - /** - * Gets the default location of @mount. The default location of the given - * @mount is a path that reflects the main entry point for the user (e.g. - * the home directory, or the root of the volume). - * - * Returns: a #GFile. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public FileIF getDefaultLocation(); - - /** - * Gets the drive for the @mount. - * - * This is a convenience method for getting the #GVolume and then - * using that object to get the #GDrive. - * - * Returns: a #GDrive or %NULL if @mount is not - * associated with a volume or a drive. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public DriveIF getDrive(); - - /** - * Gets the icon for @mount. - * - * Returns: a #GIcon. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public IconIF getIcon(); - - /** - * Gets the name of @mount. - * - * Returns: the name for the given @mount. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getName(); - - /** - * Gets the root directory on @mount. - * - * Returns: a #GFile. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public FileIF getRoot(); - - /** - * Gets the sort key for @mount, if any. - * - * Returns: Sorting key for @mount or %NULL if no such key is available. - * - * Since: 2.32 - */ - public string getSortKey(); - - /** - * Gets the symbolic icon for @mount. - * - * Returns: a #GIcon. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - * - * Since: 2.34 - */ - public IconIF getSymbolicIcon(); - - /** - * Gets the UUID for the @mount. The reference is typically based on - * the file system UUID for the mount in question and should be - * considered an opaque string. Returns %NULL if there is no UUID - * available. - * - * Returns: the UUID for @mount or %NULL if no UUID - * can be computed. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getUuid(); - - /** - * Gets the volume for the @mount. - * - * Returns: a #GVolume or %NULL if @mount is not - * associated with a volume. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public VolumeIF getVolume(); - - /** - * Tries to guess the type of content stored on @mount. Returns one or - * more textual identifiers of well-known content types (typically - * prefixed with "x-content/"), e.g. x-content/image-dcf for camera - * memory cards. See the - * [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) - * specification for more on x-content types. - * - * This is an asynchronous operation (see - * g_mount_guess_content_type_sync() for the synchronous version), and - * is finished by calling g_mount_guess_content_type_finish() with the - * @mount and #GAsyncResult data returned in the @callback. - * - * Params: - * forceRescan = Whether to force a rescan of the content. - * Otherwise a cached result will be used if available - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback - * userData = user data passed to @callback - * - * Since: 2.18 - */ - public void guessContentType(bool forceRescan, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes guessing content types of @mount. If any errors occurred - * during the operation, @error will be set to contain the errors and - * %FALSE will be returned. In particular, you may get an - * %G_IO_ERROR_NOT_SUPPORTED if the mount does not support content - * guessing. - * - * Params: - * result = a #GAsyncResult - * - * Returns: a %NULL-terminated array of content types or %NULL on error. - * Caller should free this array with g_strfreev() when done with it. - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public string[] guessContentTypeFinish(AsyncResultIF result); - - /** - * Tries to guess the type of content stored on @mount. Returns one or - * more textual identifiers of well-known content types (typically - * prefixed with "x-content/"), e.g. x-content/image-dcf for camera - * memory cards. See the - * [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) - * specification for more on x-content types. - * - * This is a synchronous operation and as such may block doing IO; - * see g_mount_guess_content_type() for the asynchronous version. - * - * Params: - * forceRescan = Whether to force a rescan of the content. - * Otherwise a cached result will be used if available - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: a %NULL-terminated array of content types or %NULL on error. - * Caller should free this array with g_strfreev() when done with it. - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public string[] guessContentTypeSync(bool forceRescan, Cancellable cancellable); - - /** - * Determines if @mount is shadowed. Applications or libraries should - * avoid displaying @mount in the user interface if it is shadowed. - * - * A mount is said to be shadowed if there exists one or more user - * visible objects (currently #GMount objects) with a root that is - * inside the root of @mount. - * - * One application of shadow mounts is when exposing a single file - * system that is used to address several logical volumes. In this - * situation, a #GVolumeMonitor implementation would create two - * #GVolume objects (for example, one for the camera functionality of - * the device and one for a SD card reader on the device) with - * activation URIs `gphoto2://[usb:001,002]/store1/` - * and `gphoto2://[usb:001,002]/store2/`. When the - * underlying mount (with root - * `gphoto2://[usb:001,002]/`) is mounted, said - * #GVolumeMonitor implementation would create two #GMount objects - * (each with their root matching the corresponding volume activation - * root) that would shadow the original mount. - * - * The proxy monitor in GVfs 2.26 and later, automatically creates and - * manage shadow mounts (and shadows the underlying mount) if the - * activation root on a #GVolume is set. - * - * Returns: %TRUE if @mount is shadowed. - * - * Since: 2.20 - */ - public bool isShadowed(); - - /** - * Remounts a mount. This is an asynchronous operation, and is - * finished by calling g_mount_remount_finish() with the @mount - * and #GAsyncResults data returned in the @callback. - * - * Remounting is useful when some setting affecting the operation - * of the volume has been changed, as these may need a remount to - * take affect. While this is semantically equivalent with unmounting - * and then remounting not all backends might need to actually be - * unmounted. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - */ - public void remount(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes remounting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully remounted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool remountFinish(AsyncResultIF result); - - /** - * Increments the shadow count on @mount. Usually used by - * #GVolumeMonitor implementations when creating a shadow mount for - * @mount, see g_mount_is_shadowed() for more information. The caller - * will need to emit the #GMount::changed signal on @mount manually. - * - * Since: 2.20 - */ - public void shadow(); - - /** - * Unmounts a mount. This is an asynchronous operation, and is - * finished by calling g_mount_unmount_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Deprecated: Use g_mount_unmount_with_operation() instead. - * - * Params: - * flags = flags affecting the operation - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - */ - public void unmount(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes unmounting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Deprecated: Use g_mount_unmount_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully unmounted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool unmountFinish(AsyncResultIF result); - - /** - * Unmounts a mount. This is an asynchronous operation, and is - * finished by calling g_mount_unmount_with_operation_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - * - * Since: 2.22 - */ - public void unmountWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes unmounting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully unmounted. %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool unmountWithOperationFinish(AsyncResultIF result); - - /** - * Decrements the shadow count on @mount. Usually used by - * #GVolumeMonitor implementations when destroying a shadow mount for - * @mount, see g_mount_is_shadowed() for more information. The caller - * will need to emit the #GMount::changed signal on @mount manually. - * - * Since: 2.20 - */ - public void unshadow(); - - /** - * Emitted when the mount has been changed. - */ - gulong addOnChanged(void delegate(MountIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * This signal may be emitted when the #GMount is about to be - * unmounted. - * - * This signal depends on the backend and is only emitted if - * GIO was used to unmount. - * - * Since: 2.22 - */ - gulong addOnPreUnmount(void delegate(MountIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * This signal is emitted when the #GMount have been - * unmounted. If the recipient is holding references to the - * object they should release them so the object can be - * finalized. - */ - gulong addOnUnmounted(void delegate(MountIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/MountOperation.d b/generated/gtkd/gio/MountOperation.d deleted file mode 100644 index a3ab36ca7..000000000 --- a/generated/gtkd/gio/MountOperation.d +++ /dev/null @@ -1,450 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MountOperation; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ArrayG; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GMountOperation provides a mechanism for interacting with the user. - * It can be used for authenticating mountable operations, such as loop - * mounting files, hard drive partitions or server locations. It can - * also be used to ask the user questions or show a list of applications - * preventing unmount or eject operations from completing. - * - * Note that #GMountOperation is used for more than just #GMount - * objects – for example it is also used in g_drive_start() and - * g_drive_stop(). - * - * Users should instantiate a subclass of this that implements all the - * various callbacks to show the required dialogs, such as - * #GtkMountOperation. If no user interaction is desired (for example - * when automounting filesystems at login time), usually %NULL can be - * passed, see each method taking a #GMountOperation for details. - * - * The term ‘TCRYPT’ is used to mean ‘compatible with TrueCrypt and VeraCrypt’. - * [TrueCrypt](https://en.wikipedia.org/wiki/TrueCrypt) is a discontinued system for - * encrypting file containers, partitions or whole disks, typically used with Windows. - * [VeraCrypt](https://www.veracrypt.fr/) is a maintained fork of TrueCrypt with various - * improvements and auditing fixes. - */ -public class MountOperation : ObjectG -{ - /** the main Gtk struct */ - protected GMountOperation* gMountOperation; - - /** Get the main Gtk struct */ - public GMountOperation* getMountOperationStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gMountOperation; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gMountOperation; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GMountOperation* gMountOperation, bool ownedRef = false) - { - this.gMountOperation = gMountOperation; - super(cast(GObject*)gMountOperation, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_mount_operation_get_type(); - } - - /** - * Creates a new mount operation. - * - * Returns: a #GMountOperation. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_mount_operation_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GMountOperation*) __p, true); - } - - /** - * Check to see whether the mount operation is being used - * for an anonymous user. - * - * Returns: %TRUE if mount operation is anonymous. - */ - public bool getAnonymous() - { - return g_mount_operation_get_anonymous(gMountOperation) != 0; - } - - /** - * Gets a choice from the mount operation. - * - * Returns: an integer containing an index of the user's choice from - * the choice's list, or `0`. - */ - public int getChoice() - { - return g_mount_operation_get_choice(gMountOperation); - } - - /** - * Gets the domain of the mount operation. - * - * Returns: a string set to the domain. - */ - public string getDomain() - { - return Str.toString(g_mount_operation_get_domain(gMountOperation)); - } - - /** - * Check to see whether the mount operation is being used - * for a TCRYPT hidden volume. - * - * Returns: %TRUE if mount operation is for hidden volume. - * - * Since: 2.58 - */ - public bool getIsTcryptHiddenVolume() - { - return g_mount_operation_get_is_tcrypt_hidden_volume(gMountOperation) != 0; - } - - /** - * Check to see whether the mount operation is being used - * for a TCRYPT system volume. - * - * Returns: %TRUE if mount operation is for system volume. - * - * Since: 2.58 - */ - public bool getIsTcryptSystemVolume() - { - return g_mount_operation_get_is_tcrypt_system_volume(gMountOperation) != 0; - } - - /** - * Gets a password from the mount operation. - * - * Returns: a string containing the password within @op. - */ - public string getPassword() - { - return Str.toString(g_mount_operation_get_password(gMountOperation)); - } - - /** - * Gets the state of saving passwords for the mount operation. - * - * Returns: a #GPasswordSave flag. - */ - public GPasswordSave getPasswordSave() - { - return g_mount_operation_get_password_save(gMountOperation); - } - - /** - * Gets a PIM from the mount operation. - * - * Returns: The VeraCrypt PIM within @op. - * - * Since: 2.58 - */ - public uint getPim() - { - return g_mount_operation_get_pim(gMountOperation); - } - - /** - * Get the user name from the mount operation. - * - * Returns: a string containing the user name. - */ - public string getUsername() - { - return Str.toString(g_mount_operation_get_username(gMountOperation)); - } - - /** - * Emits the #GMountOperation::reply signal. - * - * Params: - * result = a #GMountOperationResult - */ - public void reply(GMountOperationResult result) - { - g_mount_operation_reply(gMountOperation, result); - } - - /** - * Sets the mount operation to use an anonymous user if @anonymous is %TRUE. - * - * Params: - * anonymous = boolean value. - */ - public void setAnonymous(bool anonymous) - { - g_mount_operation_set_anonymous(gMountOperation, anonymous); - } - - /** - * Sets a default choice for the mount operation. - * - * Params: - * choice = an integer. - */ - public void setChoice(int choice) - { - g_mount_operation_set_choice(gMountOperation, choice); - } - - /** - * Sets the mount operation's domain. - * - * Params: - * domain = the domain to set. - */ - public void setDomain(string domain) - { - g_mount_operation_set_domain(gMountOperation, Str.toStringz(domain)); - } - - /** - * Sets the mount operation to use a hidden volume if @hidden_volume is %TRUE. - * - * Params: - * hiddenVolume = boolean value. - * - * Since: 2.58 - */ - public void setIsTcryptHiddenVolume(bool hiddenVolume) - { - g_mount_operation_set_is_tcrypt_hidden_volume(gMountOperation, hiddenVolume); - } - - /** - * Sets the mount operation to use a system volume if @system_volume is %TRUE. - * - * Params: - * systemVolume = boolean value. - * - * Since: 2.58 - */ - public void setIsTcryptSystemVolume(bool systemVolume) - { - g_mount_operation_set_is_tcrypt_system_volume(gMountOperation, systemVolume); - } - - /** - * Sets the mount operation's password to @password. - * - * Params: - * password = password to set. - */ - public void setPassword(string password) - { - g_mount_operation_set_password(gMountOperation, Str.toStringz(password)); - } - - /** - * Sets the state of saving passwords for the mount operation. - * - * Params: - * save = a set of #GPasswordSave flags. - */ - public void setPasswordSave(GPasswordSave save) - { - g_mount_operation_set_password_save(gMountOperation, save); - } - - /** - * Sets the mount operation's PIM to @pim. - * - * Params: - * pim = an unsigned integer. - * - * Since: 2.58 - */ - public void setPim(uint pim) - { - g_mount_operation_set_pim(gMountOperation, pim); - } - - /** - * Sets the user name within @op to @username. - * - * Params: - * username = input username. - */ - public void setUsername(string username) - { - g_mount_operation_set_username(gMountOperation, Str.toStringz(username)); - } - - /** - * Emitted by the backend when e.g. a device becomes unavailable - * while a mount operation is in progress. - * - * Implementations of GMountOperation should handle this signal - * by dismissing open password dialogs. - * - * Since: 2.20 - */ - gulong addOnAborted(void delegate(MountOperation) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "aborted", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a mount operation asks the user for a password. - * - * If the message contains a line break, the first line should be - * presented as a heading. For example, it may be used as the - * primary text in a #GtkMessageDialog. - * - * Params: - * message = string containing a message to display to the user. - * defaultUser = string containing the default user name. - * defaultDomain = string containing the default domain. - * flags = a set of #GAskPasswordFlags. - */ - gulong addOnAskPassword(void delegate(string, string, string, GAskPasswordFlags, MountOperation) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "ask-password", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when asking the user a question and gives a list of - * choices for the user to choose from. - * - * If the message contains a line break, the first line should be - * presented as a heading. For example, it may be used as the - * primary text in a #GtkMessageDialog. - * - * Params: - * message = string containing a message to display to the user. - * choices = an array of strings for each possible choice. - */ - gulong addOnAskQuestion(void delegate(string, string[], MountOperation) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "ask-question", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the user has replied to the mount operation. - * - * Params: - * result = a #GMountOperationResult indicating how the request was handled - */ - gulong addOnReply(void delegate(GMountOperationResult, MountOperation) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "reply", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when one or more processes are blocking an operation - * e.g. unmounting/ejecting a #GMount or stopping a #GDrive. - * - * Note that this signal may be emitted several times to update the - * list of blocking processes as processes close files. The - * application should only respond with g_mount_operation_reply() to - * the latest signal (setting #GMountOperation:choice to the choice - * the user made). - * - * If the message contains a line break, the first line should be - * presented as a heading. For example, it may be used as the - * primary text in a #GtkMessageDialog. - * - * Params: - * message = string containing a message to display to the user. - * processes = an array of #GPid for processes - * blocking the operation. - * choices = an array of strings for each possible choice. - * - * Since: 2.22 - */ - gulong addOnShowProcesses(void delegate(string, ArrayG, string[], MountOperation) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "show-processes", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when an unmount operation has been busy for more than some time - * (typically 1.5 seconds). - * - * When unmounting or ejecting a volume, the kernel might need to flush - * pending data in its buffers to the volume stable storage, and this operation - * can take a considerable amount of time. This signal may be emitted several - * times as long as the unmount operation is outstanding, and then one - * last time when the operation is completed, with @bytes_left set to zero. - * - * Implementations of GMountOperation should handle this signal by - * showing an UI notification, and then dismiss it, or show another notification - * of completion, when @bytes_left reaches zero. - * - * If the message contains a line break, the first line should be - * presented as a heading. For example, it may be used as the - * primary text in a #GtkMessageDialog. - * - * Params: - * message = string containing a message to display to the user - * timeLeft = the estimated time left before the operation completes, - * in microseconds, or -1 - * bytesLeft = the amount of bytes to be written before the operation - * completes (or -1 if such amount is not known), or zero if the operation - * is completed - * - * Since: 2.34 - */ - gulong addOnShowUnmountProgress(void delegate(string, long, long, MountOperation) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "show-unmount-progress", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/MountT.d b/generated/gtkd/gio/MountT.d deleted file mode 100644 index 4f3a55a6c..000000000 --- a/generated/gtkd/gio/MountT.d +++ /dev/null @@ -1,688 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.MountT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.DriveIF; -public import gio.FileIF; -public import gio.IconIF; -public import gio.MountOperation; -public import gio.VolumeIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * The #GMount interface represents user-visible mounts. Note, when - * porting from GnomeVFS, #GMount is the moral equivalent of #GnomeVFSVolume. - * - * #GMount is a "mounted" filesystem that you can access. Mounted is in - * quotes because it's not the same as a unix mount, it might be a gvfs - * mount, but you can still access the files on it if you use GIO. Might or - * might not be related to a volume object. - * - * Unmounting a #GMount instance is an asynchronous operation. For - * more information about asynchronous operations, see #GAsyncResult - * and #GTask. To unmount a #GMount instance, first call - * g_mount_unmount_with_operation() with (at least) the #GMount instance and a - * #GAsyncReadyCallback. The callback will be fired when the - * operation has resolved (either with success or failure), and a - * #GAsyncResult structure will be passed to the callback. That - * callback should then call g_mount_unmount_with_operation_finish() with the #GMount - * and the #GAsyncResult data to see if the operation was completed - * successfully. If an @error is present when g_mount_unmount_with_operation_finish() - * is called, then it will be filled with any error information. - */ -public template MountT(TStruct) -{ - /** Get the main Gtk struct */ - public GMount* getMountStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GMount*)getStruct(); - } - - - /** - * Checks if @mount can be ejected. - * - * Returns: %TRUE if the @mount can be ejected. - */ - public bool canEject() - { - return g_mount_can_eject(getMountStruct()) != 0; - } - - /** - * Checks if @mount can be unmounted. - * - * Returns: %TRUE if the @mount can be unmounted. - */ - public bool canUnmount() - { - return g_mount_can_unmount(getMountStruct()) != 0; - } - - /** - * Ejects a mount. This is an asynchronous operation, and is - * finished by calling g_mount_eject_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Deprecated: Use g_mount_eject_with_operation() instead. - * - * Params: - * flags = flags affecting the unmount if required for eject - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - */ - public void eject(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_mount_eject(getMountStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes ejecting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Deprecated: Use g_mount_eject_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully ejected. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool ejectFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_mount_eject_finish(getMountStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Ejects a mount. This is an asynchronous operation, and is - * finished by calling g_mount_eject_with_operation_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the unmount if required for eject - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - * - * Since: 2.22 - */ - public void ejectWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_mount_eject_with_operation(getMountStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes ejecting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully ejected. %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectWithOperationFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_mount_eject_with_operation_finish(getMountStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the default location of @mount. The default location of the given - * @mount is a path that reflects the main entry point for the user (e.g. - * the home directory, or the root of the volume). - * - * Returns: a #GFile. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public FileIF getDefaultLocation() - { - auto __p = g_mount_get_default_location(getMountStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets the drive for the @mount. - * - * This is a convenience method for getting the #GVolume and then - * using that object to get the #GDrive. - * - * Returns: a #GDrive or %NULL if @mount is not - * associated with a volume or a drive. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public DriveIF getDrive() - { - auto __p = g_mount_get_drive(getMountStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DriveIF)(cast(GDrive*) __p, true); - } - - /** - * Gets the icon for @mount. - * - * Returns: a #GIcon. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public IconIF getIcon() - { - auto __p = g_mount_get_icon(getMountStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Gets the name of @mount. - * - * Returns: the name for the given @mount. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getName() - { - auto retStr = g_mount_get_name(getMountStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the root directory on @mount. - * - * Returns: a #GFile. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public FileIF getRoot() - { - auto __p = g_mount_get_root(getMountStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets the sort key for @mount, if any. - * - * Returns: Sorting key for @mount or %NULL if no such key is available. - * - * Since: 2.32 - */ - public string getSortKey() - { - return Str.toString(g_mount_get_sort_key(getMountStruct())); - } - - /** - * Gets the symbolic icon for @mount. - * - * Returns: a #GIcon. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - * - * Since: 2.34 - */ - public IconIF getSymbolicIcon() - { - auto __p = g_mount_get_symbolic_icon(getMountStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Gets the UUID for the @mount. The reference is typically based on - * the file system UUID for the mount in question and should be - * considered an opaque string. Returns %NULL if there is no UUID - * available. - * - * Returns: the UUID for @mount or %NULL if no UUID - * can be computed. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getUuid() - { - auto retStr = g_mount_get_uuid(getMountStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the volume for the @mount. - * - * Returns: a #GVolume or %NULL if @mount is not - * associated with a volume. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - public VolumeIF getVolume() - { - auto __p = g_mount_get_volume(getMountStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(VolumeIF)(cast(GVolume*) __p, true); - } - - /** - * Tries to guess the type of content stored on @mount. Returns one or - * more textual identifiers of well-known content types (typically - * prefixed with "x-content/"), e.g. x-content/image-dcf for camera - * memory cards. See the - * [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) - * specification for more on x-content types. - * - * This is an asynchronous operation (see - * g_mount_guess_content_type_sync() for the synchronous version), and - * is finished by calling g_mount_guess_content_type_finish() with the - * @mount and #GAsyncResult data returned in the @callback. - * - * Params: - * forceRescan = Whether to force a rescan of the content. - * Otherwise a cached result will be used if available - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback - * userData = user data passed to @callback - * - * Since: 2.18 - */ - public void guessContentType(bool forceRescan, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_mount_guess_content_type(getMountStruct(), forceRescan, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes guessing content types of @mount. If any errors occurred - * during the operation, @error will be set to contain the errors and - * %FALSE will be returned. In particular, you may get an - * %G_IO_ERROR_NOT_SUPPORTED if the mount does not support content - * guessing. - * - * Params: - * result = a #GAsyncResult - * - * Returns: a %NULL-terminated array of content types or %NULL on error. - * Caller should free this array with g_strfreev() when done with it. - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public string[] guessContentTypeFinish(AsyncResultIF result) - { - GError* err = null; - - auto retStr = g_mount_guess_content_type_finish(getMountStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Tries to guess the type of content stored on @mount. Returns one or - * more textual identifiers of well-known content types (typically - * prefixed with "x-content/"), e.g. x-content/image-dcf for camera - * memory cards. See the - * [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) - * specification for more on x-content types. - * - * This is a synchronous operation and as such may block doing IO; - * see g_mount_guess_content_type() for the asynchronous version. - * - * Params: - * forceRescan = Whether to force a rescan of the content. - * Otherwise a cached result will be used if available - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: a %NULL-terminated array of content types or %NULL on error. - * Caller should free this array with g_strfreev() when done with it. - * - * Since: 2.18 - * - * Throws: GException on failure. - */ - public string[] guessContentTypeSync(bool forceRescan, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_mount_guess_content_type_sync(getMountStruct(), forceRescan, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Determines if @mount is shadowed. Applications or libraries should - * avoid displaying @mount in the user interface if it is shadowed. - * - * A mount is said to be shadowed if there exists one or more user - * visible objects (currently #GMount objects) with a root that is - * inside the root of @mount. - * - * One application of shadow mounts is when exposing a single file - * system that is used to address several logical volumes. In this - * situation, a #GVolumeMonitor implementation would create two - * #GVolume objects (for example, one for the camera functionality of - * the device and one for a SD card reader on the device) with - * activation URIs `gphoto2://[usb:001,002]/store1/` - * and `gphoto2://[usb:001,002]/store2/`. When the - * underlying mount (with root - * `gphoto2://[usb:001,002]/`) is mounted, said - * #GVolumeMonitor implementation would create two #GMount objects - * (each with their root matching the corresponding volume activation - * root) that would shadow the original mount. - * - * The proxy monitor in GVfs 2.26 and later, automatically creates and - * manage shadow mounts (and shadows the underlying mount) if the - * activation root on a #GVolume is set. - * - * Returns: %TRUE if @mount is shadowed. - * - * Since: 2.20 - */ - public bool isShadowed() - { - return g_mount_is_shadowed(getMountStruct()) != 0; - } - - /** - * Remounts a mount. This is an asynchronous operation, and is - * finished by calling g_mount_remount_finish() with the @mount - * and #GAsyncResults data returned in the @callback. - * - * Remounting is useful when some setting affecting the operation - * of the volume has been changed, as these may need a remount to - * take affect. While this is semantically equivalent with unmounting - * and then remounting not all backends might need to actually be - * unmounted. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - */ - public void remount(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_mount_remount(getMountStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes remounting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully remounted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool remountFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_mount_remount_finish(getMountStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Increments the shadow count on @mount. Usually used by - * #GVolumeMonitor implementations when creating a shadow mount for - * @mount, see g_mount_is_shadowed() for more information. The caller - * will need to emit the #GMount::changed signal on @mount manually. - * - * Since: 2.20 - */ - public void shadow() - { - g_mount_shadow(getMountStruct()); - } - - /** - * Unmounts a mount. This is an asynchronous operation, and is - * finished by calling g_mount_unmount_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Deprecated: Use g_mount_unmount_with_operation() instead. - * - * Params: - * flags = flags affecting the operation - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - */ - public void unmount(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_mount_unmount(getMountStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes unmounting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Deprecated: Use g_mount_unmount_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully unmounted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool unmountFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_mount_unmount_finish(getMountStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Unmounts a mount. This is an asynchronous operation, and is - * finished by calling g_mount_unmount_with_operation_finish() with the @mount - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation or %NULL to avoid - * user interaction. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback, or %NULL. - * userData = user data passed to @callback. - * - * Since: 2.22 - */ - public void unmountWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_mount_unmount_with_operation(getMountStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes unmounting a mount. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the mount was successfully unmounted. %FALSE otherwise. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool unmountWithOperationFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_mount_unmount_with_operation_finish(getMountStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Decrements the shadow count on @mount. Usually used by - * #GVolumeMonitor implementations when destroying a shadow mount for - * @mount, see g_mount_is_shadowed() for more information. The caller - * will need to emit the #GMount::changed signal on @mount manually. - * - * Since: 2.20 - */ - public void unshadow() - { - g_mount_unshadow(getMountStruct()); - } - - /** - * Emitted when the mount has been changed. - */ - gulong addOnChanged(void delegate(MountIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This signal may be emitted when the #GMount is about to be - * unmounted. - * - * This signal depends on the backend and is only emitted if - * GIO was used to unmount. - * - * Since: 2.22 - */ - gulong addOnPreUnmount(void delegate(MountIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "pre-unmount", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This signal is emitted when the #GMount have been - * unmounted. If the recipient is holding references to the - * object they should release them so the object can be - * finalized. - */ - gulong addOnUnmounted(void delegate(MountIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "unmounted", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/NativeSocketAddress.d b/generated/gtkd/gio/NativeSocketAddress.d deleted file mode 100644 index e277d4892..000000000 --- a/generated/gtkd/gio/NativeSocketAddress.d +++ /dev/null @@ -1,96 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.NativeSocketAddress; - -private import gio.SocketAddress; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * A socket address of some unknown native type. - */ -public class NativeSocketAddress : SocketAddress -{ - /** the main Gtk struct */ - protected GNativeSocketAddress* gNativeSocketAddress; - - /** Get the main Gtk struct */ - public GNativeSocketAddress* getNativeSocketAddressStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gNativeSocketAddress; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gNativeSocketAddress; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GNativeSocketAddress* gNativeSocketAddress, bool ownedRef = false) - { - this.gNativeSocketAddress = gNativeSocketAddress; - super(cast(GSocketAddress*)gNativeSocketAddress, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_native_socket_address_get_type(); - } - - /** - * Creates a new #GNativeSocketAddress for @native and @len. - * - * Params: - * native = a native address object - * len = the length of @native, in bytes - * - * Returns: a new #GNativeSocketAddress - * - * Since: 2.46 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(void* native, size_t len) - { - auto __p = g_native_socket_address_new(native, len); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GNativeSocketAddress*) __p, true); - } -} diff --git a/generated/gtkd/gio/NativeVolumeMonitor.d b/generated/gtkd/gio/NativeVolumeMonitor.d deleted file mode 100644 index 43bc0073e..000000000 --- a/generated/gtkd/gio/NativeVolumeMonitor.d +++ /dev/null @@ -1,67 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.NativeVolumeMonitor; - -private import gio.VolumeMonitor; -private import gio.c.functions; -public import gio.c.types; - - -/** */ -public class NativeVolumeMonitor : VolumeMonitor -{ - /** the main Gtk struct */ - protected GNativeVolumeMonitor* gNativeVolumeMonitor; - - /** Get the main Gtk struct */ - public GNativeVolumeMonitor* getNativeVolumeMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gNativeVolumeMonitor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gNativeVolumeMonitor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GNativeVolumeMonitor* gNativeVolumeMonitor, bool ownedRef = false) - { - this.gNativeVolumeMonitor = gNativeVolumeMonitor; - super(cast(GVolumeMonitor*)gNativeVolumeMonitor, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_native_volume_monitor_get_type(); - } -} diff --git a/generated/gtkd/gio/NetworkAddress.d b/generated/gtkd/gio/NetworkAddress.d deleted file mode 100644 index c60c6045b..000000000 --- a/generated/gtkd/gio/NetworkAddress.d +++ /dev/null @@ -1,283 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.NetworkAddress; - -private import gio.SocketConnectableIF; -private import gio.SocketConnectableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GNetworkAddress provides an easy way to resolve a hostname and - * then attempt to connect to that host, handling the possibility of - * multiple IP addresses and multiple address families. - * - * The enumeration results of resolved addresses *may* be cached as long - * as this object is kept alive which may have unexpected results if - * alive for too long. - * - * See #GSocketConnectable for an example of using the connectable - * interface. - */ -public class NetworkAddress : ObjectG, SocketConnectableIF -{ - /** the main Gtk struct */ - protected GNetworkAddress* gNetworkAddress; - - /** Get the main Gtk struct */ - public GNetworkAddress* getNetworkAddressStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gNetworkAddress; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gNetworkAddress; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GNetworkAddress* gNetworkAddress, bool ownedRef = false) - { - this.gNetworkAddress = gNetworkAddress; - super(cast(GObject*)gNetworkAddress, ownedRef); - } - - // add the SocketConnectable capabilities - mixin SocketConnectableT!(GNetworkAddress); - - - /** */ - public static GType getType() - { - return g_network_address_get_type(); - } - - /** - * Creates a new #GSocketConnectable for connecting to the given - * @hostname and @port. - * - * Note that depending on the configuration of the machine, a - * @hostname of `localhost` may refer to the IPv4 loopback address - * only, or to both IPv4 and IPv6; use - * g_network_address_new_loopback() to create a #GNetworkAddress that - * is guaranteed to resolve to both addresses. - * - * Params: - * hostname = the hostname - * port = the port - * - * Returns: the new #GNetworkAddress - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string hostname, ushort port) - { - auto __p = g_network_address_new(Str.toStringz(hostname), port); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GNetworkAddress*) __p, true); - } - - /** - * Creates a new #GSocketConnectable for connecting to the local host - * over a loopback connection to the given @port. This is intended for - * use in connecting to local services which may be running on IPv4 or - * IPv6. - * - * The connectable will return IPv4 and IPv6 loopback addresses, - * regardless of how the host resolves `localhost`. By contrast, - * g_network_address_new() will often only return an IPv4 address when - * resolving `localhost`, and an IPv6 address for `localhost6`. - * - * g_network_address_get_hostname() will always return `localhost` for - * a #GNetworkAddress created with this constructor. - * - * Params: - * port = the port - * - * Returns: the new #GNetworkAddress - * - * Since: 2.44 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ushort port) - { - auto __p = g_network_address_new_loopback(port); - - if(__p is null) - { - throw new ConstructionException("null returned by new_loopback"); - } - - this(cast(GNetworkAddress*) __p, true); - } - - /** - * Creates a new #GSocketConnectable for connecting to the given - * @hostname and @port. May fail and return %NULL in case - * parsing @host_and_port fails. - * - * @host_and_port may be in any of a number of recognised formats; an IPv6 - * address, an IPv4 address, or a domain name (in which case a DNS - * lookup is performed). Quoting with [] is supported for all address - * types. A port override may be specified in the usual way with a - * colon. - * - * If no port is specified in @host_and_port then @default_port will be - * used as the port number to connect to. - * - * In general, @host_and_port is expected to be provided by the user - * (allowing them to give the hostname, and a port override if necessary) - * and @default_port is expected to be provided by the application. - * - * (The port component of @host_and_port can also be specified as a - * service name rather than as a numeric port, but this functionality - * is deprecated, because it depends on the contents of /etc/services, - * which is generally quite sparse on platforms other than Linux.) - * - * Params: - * hostAndPort = the hostname and optionally a port - * defaultPort = the default port if not in @host_and_port - * - * Returns: the new - * #GNetworkAddress, or %NULL on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public static NetworkAddress parse(string hostAndPort, ushort defaultPort) - { - GError* err = null; - - auto __p = g_network_address_parse(Str.toStringz(hostAndPort), defaultPort, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(NetworkAddress)(cast(GNetworkAddress*) __p, true); - } - - /** - * Creates a new #GSocketConnectable for connecting to the given - * @uri. May fail and return %NULL in case parsing @uri fails. - * - * Using this rather than g_network_address_new() or - * g_network_address_parse() allows #GSocketClient to determine - * when to use application-specific proxy protocols. - * - * Params: - * uri = the hostname and optionally a port - * defaultPort = The default port if none is found in the URI - * - * Returns: the new - * #GNetworkAddress, or %NULL on error - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public static NetworkAddress parseUri(string uri, ushort defaultPort) - { - GError* err = null; - - auto __p = g_network_address_parse_uri(Str.toStringz(uri), defaultPort, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(NetworkAddress)(cast(GNetworkAddress*) __p, true); - } - - /** - * Gets @addr's hostname. This might be either UTF-8 or ASCII-encoded, - * depending on what @addr was created with. - * - * Returns: @addr's hostname - * - * Since: 2.22 - */ - public string getHostname() - { - return Str.toString(g_network_address_get_hostname(gNetworkAddress)); - } - - /** - * Gets @addr's port number - * - * Returns: @addr's port (which may be 0) - * - * Since: 2.22 - */ - public ushort getPort() - { - return g_network_address_get_port(gNetworkAddress); - } - - /** - * Gets @addr's scheme - * - * Returns: @addr's scheme (%NULL if not built from URI) - * - * Since: 2.26 - */ - public string getScheme() - { - return Str.toString(g_network_address_get_scheme(gNetworkAddress)); - } -} diff --git a/generated/gtkd/gio/NetworkMonitorIF.d b/generated/gtkd/gio/NetworkMonitorIF.d deleted file mode 100644 index 4a124fb31..000000000 --- a/generated/gtkd/gio/NetworkMonitorIF.d +++ /dev/null @@ -1,206 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.NetworkMonitorIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.NetworkMonitorIF; -private import gio.SocketConnectableIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GNetworkMonitor provides an easy-to-use cross-platform API - * for monitoring network connectivity. On Linux, the available - * implementations are based on the kernel's netlink interface and - * on NetworkManager. - * - * There is also an implementation for use inside Flatpak sandboxes. - * - * Since: 2.32 - */ -public interface NetworkMonitorIF{ - /** Get the main Gtk struct */ - public GNetworkMonitor* getNetworkMonitorStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_network_monitor_get_type(); - } - - /** - * Gets the default #GNetworkMonitor for the system. - * - * Returns: a #GNetworkMonitor, which will be - * a dummy object if no network monitor is available - * - * Since: 2.32 - */ - public static NetworkMonitorIF getDefault() - { - auto __p = g_network_monitor_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(NetworkMonitorIF)(cast(GNetworkMonitor*) __p); - } - - /** - * Attempts to determine whether or not the host pointed to by - * @connectable can be reached, without actually trying to connect to - * it. - * - * This may return %TRUE even when #GNetworkMonitor:network-available - * is %FALSE, if, for example, @monitor can determine that - * @connectable refers to a host on a local network. - * - * If @monitor believes that an attempt to connect to @connectable - * will succeed, it will return %TRUE. Otherwise, it will return - * %FALSE and set @error to an appropriate error (such as - * %G_IO_ERROR_HOST_UNREACHABLE). - * - * Note that although this does not attempt to connect to - * @connectable, it may still block for a brief period of time (eg, - * trying to do multicast DNS on the local network), so if you do not - * want to block, you should use g_network_monitor_can_reach_async(). - * - * Params: - * connectable = a #GSocketConnectable - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE if @connectable is reachable, %FALSE if not. - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool canReach(SocketConnectableIF connectable, Cancellable cancellable); - - /** - * Asynchronously attempts to determine whether or not the host - * pointed to by @connectable can be reached, without actually - * trying to connect to it. - * - * For more details, see g_network_monitor_can_reach(). - * - * When the operation is finished, @callback will be called. - * You can then call g_network_monitor_can_reach_finish() - * to get the result of the operation. - * - * Params: - * connectable = a #GSocketConnectable - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void canReachAsync(SocketConnectableIF connectable, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes an async network connectivity test. - * See g_network_monitor_can_reach_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if network is reachable, %FALSE if not. - * - * Throws: GException on failure. - */ - public bool canReachFinish(AsyncResultIF result); - - /** - * Gets a more detailed networking state than - * g_network_monitor_get_network_available(). - * - * If #GNetworkMonitor:network-available is %FALSE, then the - * connectivity state will be %G_NETWORK_CONNECTIVITY_LOCAL. - * - * If #GNetworkMonitor:network-available is %TRUE, then the - * connectivity state will be %G_NETWORK_CONNECTIVITY_FULL (if there - * is full Internet connectivity), %G_NETWORK_CONNECTIVITY_LIMITED (if - * the host has a default route, but appears to be unable to actually - * reach the full Internet), or %G_NETWORK_CONNECTIVITY_PORTAL (if the - * host is trapped behind a "captive portal" that requires some sort - * of login or acknowledgement before allowing full Internet access). - * - * Note that in the case of %G_NETWORK_CONNECTIVITY_LIMITED and - * %G_NETWORK_CONNECTIVITY_PORTAL, it is possible that some sites are - * reachable but others are not. In this case, applications can - * attempt to connect to remote servers, but should gracefully fall - * back to their "offline" behavior if the connection attempt fails. - * - * Returns: the network connectivity state - * - * Since: 2.44 - */ - public GNetworkConnectivity getConnectivity(); - - /** - * Checks if the network is available. "Available" here means that the - * system has a default route available for at least one of IPv4 or - * IPv6. It does not necessarily imply that the public Internet is - * reachable. See #GNetworkMonitor:network-available for more details. - * - * Returns: whether the network is available - * - * Since: 2.32 - */ - public bool getNetworkAvailable(); - - /** - * Checks if the network is metered. - * See #GNetworkMonitor:network-metered for more details. - * - * Returns: whether the connection is metered - * - * Since: 2.46 - */ - public bool getNetworkMetered(); - - /** - * Emitted when the network configuration changes. - * - * Params: - * networkAvailable = the current value of #GNetworkMonitor:network-available - * - * Since: 2.32 - */ - gulong addOnNetworkChanged(void delegate(bool, NetworkMonitorIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/NetworkMonitorT.d b/generated/gtkd/gio/NetworkMonitorT.d deleted file mode 100644 index 95a51034d..000000000 --- a/generated/gtkd/gio/NetworkMonitorT.d +++ /dev/null @@ -1,222 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.NetworkMonitorT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.NetworkMonitorIF; -public import gio.SocketConnectableIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * #GNetworkMonitor provides an easy-to-use cross-platform API - * for monitoring network connectivity. On Linux, the available - * implementations are based on the kernel's netlink interface and - * on NetworkManager. - * - * There is also an implementation for use inside Flatpak sandboxes. - * - * Since: 2.32 - */ -public template NetworkMonitorT(TStruct) -{ - /** Get the main Gtk struct */ - public GNetworkMonitor* getNetworkMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GNetworkMonitor*)getStruct(); - } - - - /** - * Attempts to determine whether or not the host pointed to by - * @connectable can be reached, without actually trying to connect to - * it. - * - * This may return %TRUE even when #GNetworkMonitor:network-available - * is %FALSE, if, for example, @monitor can determine that - * @connectable refers to a host on a local network. - * - * If @monitor believes that an attempt to connect to @connectable - * will succeed, it will return %TRUE. Otherwise, it will return - * %FALSE and set @error to an appropriate error (such as - * %G_IO_ERROR_HOST_UNREACHABLE). - * - * Note that although this does not attempt to connect to - * @connectable, it may still block for a brief period of time (eg, - * trying to do multicast DNS on the local network), so if you do not - * want to block, you should use g_network_monitor_can_reach_async(). - * - * Params: - * connectable = a #GSocketConnectable - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE if @connectable is reachable, %FALSE if not. - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool canReach(SocketConnectableIF connectable, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_network_monitor_can_reach(getNetworkMonitorStruct(), (connectable is null) ? null : connectable.getSocketConnectableStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously attempts to determine whether or not the host - * pointed to by @connectable can be reached, without actually - * trying to connect to it. - * - * For more details, see g_network_monitor_can_reach(). - * - * When the operation is finished, @callback will be called. - * You can then call g_network_monitor_can_reach_finish() - * to get the result of the operation. - * - * Params: - * connectable = a #GSocketConnectable - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback to call when the - * request is satisfied - * userData = the data to pass to callback function - */ - public void canReachAsync(SocketConnectableIF connectable, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_network_monitor_can_reach_async(getNetworkMonitorStruct(), (connectable is null) ? null : connectable.getSocketConnectableStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async network connectivity test. - * See g_network_monitor_can_reach_async(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if network is reachable, %FALSE if not. - * - * Throws: GException on failure. - */ - public bool canReachFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_network_monitor_can_reach_finish(getNetworkMonitorStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets a more detailed networking state than - * g_network_monitor_get_network_available(). - * - * If #GNetworkMonitor:network-available is %FALSE, then the - * connectivity state will be %G_NETWORK_CONNECTIVITY_LOCAL. - * - * If #GNetworkMonitor:network-available is %TRUE, then the - * connectivity state will be %G_NETWORK_CONNECTIVITY_FULL (if there - * is full Internet connectivity), %G_NETWORK_CONNECTIVITY_LIMITED (if - * the host has a default route, but appears to be unable to actually - * reach the full Internet), or %G_NETWORK_CONNECTIVITY_PORTAL (if the - * host is trapped behind a "captive portal" that requires some sort - * of login or acknowledgement before allowing full Internet access). - * - * Note that in the case of %G_NETWORK_CONNECTIVITY_LIMITED and - * %G_NETWORK_CONNECTIVITY_PORTAL, it is possible that some sites are - * reachable but others are not. In this case, applications can - * attempt to connect to remote servers, but should gracefully fall - * back to their "offline" behavior if the connection attempt fails. - * - * Returns: the network connectivity state - * - * Since: 2.44 - */ - public GNetworkConnectivity getConnectivity() - { - return g_network_monitor_get_connectivity(getNetworkMonitorStruct()); - } - - /** - * Checks if the network is available. "Available" here means that the - * system has a default route available for at least one of IPv4 or - * IPv6. It does not necessarily imply that the public Internet is - * reachable. See #GNetworkMonitor:network-available for more details. - * - * Returns: whether the network is available - * - * Since: 2.32 - */ - public bool getNetworkAvailable() - { - return g_network_monitor_get_network_available(getNetworkMonitorStruct()) != 0; - } - - /** - * Checks if the network is metered. - * See #GNetworkMonitor:network-metered for more details. - * - * Returns: whether the connection is metered - * - * Since: 2.46 - */ - public bool getNetworkMetered() - { - return g_network_monitor_get_network_metered(getNetworkMonitorStruct()) != 0; - } - - /** - * Emitted when the network configuration changes. - * - * Params: - * networkAvailable = the current value of #GNetworkMonitor:network-available - * - * Since: 2.32 - */ - gulong addOnNetworkChanged(void delegate(bool, NetworkMonitorIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "network-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/NetworkService.d b/generated/gtkd/gio/NetworkService.d deleted file mode 100644 index f94563077..000000000 --- a/generated/gtkd/gio/NetworkService.d +++ /dev/null @@ -1,177 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.NetworkService; - -private import gio.SocketConnectableIF; -private import gio.SocketConnectableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Like #GNetworkAddress does with hostnames, #GNetworkService - * provides an easy way to resolve a SRV record, and then attempt to - * connect to one of the hosts that implements that service, handling - * service priority/weighting, multiple IP addresses, and multiple - * address families. - * - * See #GSrvTarget for more information about SRV records, and see - * #GSocketConnectable for an example of using the connectable - * interface. - */ -public class NetworkService : ObjectG, SocketConnectableIF -{ - /** the main Gtk struct */ - protected GNetworkService* gNetworkService; - - /** Get the main Gtk struct */ - public GNetworkService* getNetworkServiceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gNetworkService; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gNetworkService; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GNetworkService* gNetworkService, bool ownedRef = false) - { - this.gNetworkService = gNetworkService; - super(cast(GObject*)gNetworkService, ownedRef); - } - - // add the SocketConnectable capabilities - mixin SocketConnectableT!(GNetworkService); - - - /** */ - public static GType getType() - { - return g_network_service_get_type(); - } - - /** - * Creates a new #GNetworkService representing the given @service, - * @protocol, and @domain. This will initially be unresolved; use the - * #GSocketConnectable interface to resolve it. - * - * Params: - * service = the service type to look up (eg, "ldap") - * protocol = the networking protocol to use for @service (eg, "tcp") - * domain = the DNS domain to look up the service in - * - * Returns: a new #GNetworkService - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string service, string protocol, string domain) - { - auto __p = g_network_service_new(Str.toStringz(service), Str.toStringz(protocol), Str.toStringz(domain)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GNetworkService*) __p, true); - } - - /** - * Gets the domain that @srv serves. This might be either UTF-8 or - * ASCII-encoded, depending on what @srv was created with. - * - * Returns: @srv's domain name - * - * Since: 2.22 - */ - public string getDomain() - { - return Str.toString(g_network_service_get_domain(gNetworkService)); - } - - /** - * Gets @srv's protocol name (eg, "tcp"). - * - * Returns: @srv's protocol name - * - * Since: 2.22 - */ - public string getProtocol() - { - return Str.toString(g_network_service_get_protocol(gNetworkService)); - } - - /** - * Gets the URI scheme used to resolve proxies. By default, the service name - * is used as scheme. - * - * Returns: @srv's scheme name - * - * Since: 2.26 - */ - public string getScheme() - { - return Str.toString(g_network_service_get_scheme(gNetworkService)); - } - - /** - * Gets @srv's service name (eg, "ldap"). - * - * Returns: @srv's service name - * - * Since: 2.22 - */ - public string getService() - { - return Str.toString(g_network_service_get_service(gNetworkService)); - } - - /** - * Set's the URI scheme used to resolve proxies. By default, the service name - * is used as scheme. - * - * Params: - * scheme = a URI scheme - * - * Since: 2.26 - */ - public void setScheme(string scheme) - { - g_network_service_set_scheme(gNetworkService, Str.toStringz(scheme)); - } -} diff --git a/generated/gtkd/gio/Notification.d b/generated/gtkd/gio/Notification.d deleted file mode 100644 index 06aeb5c3a..000000000 --- a/generated/gtkd/gio/Notification.d +++ /dev/null @@ -1,276 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Notification; - -private import gio.IconIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.Variant; -private import gobject.ObjectG; - - -/** - * #GNotification is a mechanism for creating a notification to be shown - * to the user -- typically as a pop-up notification presented by the - * desktop environment shell. - * - * The key difference between #GNotification and other similar APIs is - * that, if supported by the desktop environment, notifications sent - * with #GNotification will persist after the application has exited, - * and even across system reboots. - * - * Since the user may click on a notification while the application is - * not running, applications using #GNotification should be able to be - * started as a D-Bus service, using #GApplication. - * - * User interaction with a notification (either the default action, or - * buttons) must be associated with actions on the application (ie: - * "app." actions). It is not possible to route user interaction - * through the notification itself, because the object will not exist if - * the application is autostarted as a result of a notification being - * clicked. - * - * A notification can be sent with g_application_send_notification(). - * - * Since: 2.40 - */ -public class Notification : ObjectG -{ - /** the main Gtk struct */ - protected GNotification* gNotification; - - /** Get the main Gtk struct */ - public GNotification* getNotificationStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gNotification; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gNotification; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GNotification* gNotification, bool ownedRef = false) - { - this.gNotification = gNotification; - super(cast(GObject*)gNotification, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_notification_get_type(); - } - - /** - * Creates a new #GNotification with @title as its title. - * - * After populating @notification with more details, it can be sent to - * the desktop shell with g_application_send_notification(). Changing - * any properties after this call will not have any effect until - * resending @notification. - * - * Params: - * title = the title of the notification - * - * Returns: a new #GNotification instance - * - * Since: 2.40 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string title) - { - auto __p = g_notification_new(Str.toStringz(title)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GNotification*) __p, true); - } - - /** - * Adds a button to @notification that activates the action in - * @detailed_action when clicked. That action must be an - * application-wide action (starting with "app."). If @detailed_action - * contains a target, the action will be activated with that target as - * its parameter. - * - * See g_action_parse_detailed_name() for a description of the format - * for @detailed_action. - * - * Params: - * label = label of the button - * detailedAction = a detailed action name - * - * Since: 2.40 - */ - public void addButton(string label, string detailedAction) - { - g_notification_add_button(gNotification, Str.toStringz(label), Str.toStringz(detailedAction)); - } - - /** - * Adds a button to @notification that activates @action when clicked. - * @action must be an application-wide action (it must start with "app."). - * - * If @target is non-%NULL, @action will be activated with @target as - * its parameter. - * - * Params: - * label = label of the button - * action = an action name - * target = a #GVariant to use as @action's parameter, or %NULL - * - * Since: 2.40 - */ - public void addButtonWithTargetValue(string label, string action, Variant target) - { - g_notification_add_button_with_target_value(gNotification, Str.toStringz(label), Str.toStringz(action), (target is null) ? null : target.getVariantStruct()); - } - - /** - * Sets the body of @notification to @body. - * - * Params: - * body_ = the new body for @notification, or %NULL - * - * Since: 2.40 - */ - public void setBody(string body_) - { - g_notification_set_body(gNotification, Str.toStringz(body_)); - } - - /** - * Sets the default action of @notification to @detailed_action. This - * action is activated when the notification is clicked on. - * - * The action in @detailed_action must be an application-wide action (it - * must start with "app."). If @detailed_action contains a target, the - * given action will be activated with that target as its parameter. - * See g_action_parse_detailed_name() for a description of the format - * for @detailed_action. - * - * When no default action is set, the application that the notification - * was sent on is activated. - * - * Params: - * detailedAction = a detailed action name - * - * Since: 2.40 - */ - public void setDefaultAction(string detailedAction) - { - g_notification_set_default_action(gNotification, Str.toStringz(detailedAction)); - } - - /** - * Sets the default action of @notification to @action. This action is - * activated when the notification is clicked on. It must be an - * application-wide action (start with "app."). - * - * If @target is non-%NULL, @action will be activated with @target as - * its parameter. - * - * When no default action is set, the application that the notification - * was sent on is activated. - * - * Params: - * action = an action name - * target = a #GVariant to use as @action's parameter, or %NULL - * - * Since: 2.40 - */ - public void setDefaultActionAndTargetValue(string action, Variant target) - { - g_notification_set_default_action_and_target_value(gNotification, Str.toStringz(action), (target is null) ? null : target.getVariantStruct()); - } - - /** - * Sets the icon of @notification to @icon. - * - * Params: - * icon = the icon to be shown in @notification, as a #GIcon - * - * Since: 2.40 - */ - public void setIcon(IconIF icon) - { - g_notification_set_icon(gNotification, (icon is null) ? null : icon.getIconStruct()); - } - - /** - * Sets the priority of @notification to @priority. See - * #GNotificationPriority for possible values. - * - * Params: - * priority = a #GNotificationPriority - */ - public void setPriority(GNotificationPriority priority) - { - g_notification_set_priority(gNotification, priority); - } - - /** - * Sets the title of @notification to @title. - * - * Params: - * title = the new title for @notification - * - * Since: 2.40 - */ - public void setTitle(string title) - { - g_notification_set_title(gNotification, Str.toStringz(title)); - } - - /** - * Deprecated in favor of g_notification_set_priority(). - * - * Deprecated: Since 2.42, this has been deprecated in favour of - * g_notification_set_priority(). - * - * Params: - * urgent = %TRUE if @notification is urgent - * - * Since: 2.40 - */ - public void setUrgent(bool urgent) - { - g_notification_set_urgent(gNotification, urgent); - } -} diff --git a/generated/gtkd/gio/OutputStream.d b/generated/gtkd/gio/OutputStream.d deleted file mode 100644 index 5914ab3e0..000000000 --- a/generated/gtkd/gio/OutputStream.d +++ /dev/null @@ -1,1000 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.OutputStream; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GOutputStream has functions to write to a stream (g_output_stream_write()), - * to close a stream (g_output_stream_close()) and to flush pending writes - * (g_output_stream_flush()). - * - * To copy the content of an input stream to an output stream without - * manually handling the reads and writes, use g_output_stream_splice(). - * - * See the documentation for #GIOStream for details of thread safety of - * streaming APIs. - * - * All of these functions have async variants too. - */ -public class OutputStream : ObjectG -{ - /** the main Gtk struct */ - protected GOutputStream* gOutputStream; - - /** Get the main Gtk struct */ - public GOutputStream* getOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GOutputStream* gOutputStream, bool ownedRef = false) - { - this.gOutputStream = gOutputStream; - super(cast(GObject*)gOutputStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_output_stream_get_type(); - } - - /** - * Clears the pending flag on @stream. - */ - public void clearPending() - { - g_output_stream_clear_pending(gOutputStream); - } - - /** - * Closes the stream, releasing resources related to it. - * - * Once the stream is closed, all other operations will return %G_IO_ERROR_CLOSED. - * Closing a stream multiple times will not return an error. - * - * Closing a stream will automatically flush any outstanding buffers in the - * stream. - * - * Streams will be automatically closed when the last reference - * is dropped, but you might want to call this function to make sure - * resources are released as early as possible. - * - * Some streams might keep the backing store of the stream (e.g. a file descriptor) - * open after the stream is closed. See the documentation for the individual - * stream for details. - * - * On failure the first error that happened will be reported, but the close - * operation will finish as much as possible. A stream that failed to - * close will still return %G_IO_ERROR_CLOSED for all operations. Still, it - * is important to check and report the error to the user, otherwise - * there might be a loss of data as all data might not be written. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * Cancelling a close will still leave the stream closed, but there some streams - * can use a faster close that doesn't block to e.g. check errors. On - * cancellation (as with any error) there is no guarantee that all written - * data will reach the target. - * - * Params: - * cancellable = optional cancellable object - * - * Returns: %TRUE on success, %FALSE on failure - * - * Throws: GException on failure. - */ - public bool close(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_close(gOutputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Requests an asynchronous close of the stream, releasing resources - * related to it. When the operation is finished @callback will be - * called. You can then call g_output_stream_close_finish() to get - * the result of the operation. - * - * For behaviour details see g_output_stream_close(). - * - * The asynchronous methods have a default fallback that uses threads - * to implement asynchronicity, so they are optional for inheriting - * classes. However, if you override one you must override all. - * - * Params: - * ioPriority = the io priority of the request. - * cancellable = optional cancellable object - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void closeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_close_async(gOutputStream, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Closes an output stream. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if stream was successfully closed, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool closeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_output_stream_close_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Forces a write of all user-space buffered data for the given - * @stream. Will block during the operation. Closing the stream will - * implicitly cause a flush. - * - * This function is optional for inherited classes. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * cancellable = optional cancellable object - * - * Returns: %TRUE on success, %FALSE on error - * - * Throws: GException on failure. - */ - public bool flush(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_flush(gOutputStream, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Forces an asynchronous write of all user-space buffered data for - * the given @stream. - * For behaviour details see g_output_stream_flush(). - * - * When the operation is finished @callback will be - * called. You can then call g_output_stream_flush_finish() to get the - * result of the operation. - * - * Params: - * ioPriority = the io priority of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void flushAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_flush_async(gOutputStream, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes flushing an output stream. - * - * Params: - * result = a GAsyncResult. - * - * Returns: %TRUE if flush operation succeeded, %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool flushFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_output_stream_flush_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks if an output stream has pending actions. - * - * Returns: %TRUE if @stream has pending actions. - */ - public bool hasPending() - { - return g_output_stream_has_pending(gOutputStream) != 0; - } - - /** - * Checks if an output stream has already been closed. - * - * Returns: %TRUE if @stream is closed. %FALSE otherwise. - */ - public bool isClosed() - { - return g_output_stream_is_closed(gOutputStream) != 0; - } - - /** - * Checks if an output stream is being closed. This can be - * used inside e.g. a flush implementation to see if the - * flush (or other i/o operation) is called from within - * the closing operation. - * - * Returns: %TRUE if @stream is being closed. %FALSE otherwise. - * - * Since: 2.24 - */ - public bool isClosing() - { - return g_output_stream_is_closing(gOutputStream) != 0; - } - - /** - * Sets @stream to have actions pending. If the pending flag is - * already set or @stream is closed, it will return %FALSE and set - * @error. - * - * Returns: %TRUE if pending was previously unset and is now set. - * - * Throws: GException on failure. - */ - public bool setPending() - { - GError* err = null; - - auto __p = g_output_stream_set_pending(gOutputStream, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Splices an input stream into an output stream. - * - * Params: - * source = a #GInputStream. - * flags = a set of #GOutputStreamSpliceFlags. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #gssize containing the size of the data spliced, or - * -1 if an error occurred. Note that if the number of bytes - * spliced is greater than %G_MAXSSIZE, then that will be - * returned, and there is no way to determine the actual number - * of bytes spliced. - * - * Throws: GException on failure. - */ - public ptrdiff_t splice(InputStream source, GOutputStreamSpliceFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_splice(gOutputStream, (source is null) ? null : source.getInputStreamStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Splices a stream asynchronously. - * When the operation is finished @callback will be called. - * You can then call g_output_stream_splice_finish() to get the - * result of the operation. - * - * For the synchronous, blocking version of this function, see - * g_output_stream_splice(). - * - * Params: - * source = a #GInputStream. - * flags = a set of #GOutputStreamSpliceFlags. - * ioPriority = the io priority of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback. - * userData = user data passed to @callback. - */ - public void spliceAsync(InputStream source, GOutputStreamSpliceFlags flags, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_splice_async(gOutputStream, (source is null) ? null : source.getInputStreamStruct(), flags, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous stream splice operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #gssize of the number of bytes spliced. Note that if the - * number of bytes spliced is greater than %G_MAXSSIZE, then that - * will be returned, and there is no way to determine the actual - * number of bytes spliced. - * - * Throws: GException on failure. - */ - public ptrdiff_t spliceFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_output_stream_splice_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * This is a utility function around g_output_stream_write_all(). It - * uses g_strdup_vprintf() to turn @format and @args into a string that - * is then written to @stream. - * - * See the documentation of g_output_stream_write_all() about the - * behavior of the actual write operation. - * - * Note that partial writes cannot be properly checked with this - * function due to the variable length of the written string, if you - * need precise control over partial write failures, you need to - * create you own printf()-like wrapper around g_output_stream_write() - * or g_output_stream_write_all(). - * - * Params: - * bytesWritten = location to store the number of bytes that was - * written to the stream - * cancellable = optional #GCancellable object, %NULL to ignore. - * error = location to store the error occurring, or %NULL to ignore - * format = the format string. See the printf() documentation - * args = the parameters to insert into the format string - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.40 - */ - public bool vprintf(out size_t bytesWritten, Cancellable cancellable, out ErrorG error, string format, void* args) - { - GError* outerror = null; - - auto __p = g_output_stream_vprintf(gOutputStream, &bytesWritten, (cancellable is null) ? null : cancellable.getCancellableStruct(), &outerror, Str.toStringz(format), args) != 0; - - error = new ErrorG(outerror); - - return __p; - } - - /** - * Tries to write @count bytes from @buffer into the stream. Will block - * during the operation. - * - * If count is 0, returns 0 and does nothing. A value of @count - * larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, the number of bytes written to the stream is returned. - * It is not an error if this is not the same as the requested size, as it - * can happen e.g. on a partial I/O error, or if there is not enough - * storage in the stream. All writes block until at least one byte - * is written or an error occurs; 0 is never returned (unless - * @count is 0). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * On error -1 is returned and @error is set accordingly. - * - * Params: - * buffer = the buffer containing the data to write. - * cancellable = optional cancellable object - * - * Returns: Number of bytes written, or -1 on error - * - * Throws: GException on failure. - */ - public ptrdiff_t write(ubyte[] buffer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_write(gOutputStream, buffer.ptr, cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tries to write @count bytes from @buffer into the stream. Will block - * during the operation. - * - * This function is similar to g_output_stream_write(), except it tries to - * write as many bytes as requested, only stopping on an error. - * - * On a successful write of @count bytes, %TRUE is returned, and @bytes_written - * is set to @count. - * - * If there is an error during the operation %FALSE is returned and @error - * is set to indicate the error status. - * - * As a special exception to the normal conventions for functions that - * use #GError, if this function returns %FALSE (and sets @error) then - * @bytes_written will be set to the number of bytes that were - * successfully written before the error was encountered. This - * functionality is only available from C. If you need it from another - * language then you must write your own loop around - * g_output_stream_write(). - * - * Params: - * buffer = the buffer containing the data to write. - * bytesWritten = location to store the number of bytes that was - * written to the stream - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Throws: GException on failure. - */ - public bool writeAll(ubyte[] buffer, out size_t bytesWritten, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_write_all(gOutputStream, buffer.ptr, cast(size_t)buffer.length, &bytesWritten, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Request an asynchronous write of @count bytes from @buffer into - * the stream. When the operation is finished @callback will be called. - * You can then call g_output_stream_write_all_finish() to get the result of the - * operation. - * - * This is the asynchronous version of g_output_stream_write_all(). - * - * Call g_output_stream_write_all_finish() to collect the result. - * - * Any outstanding I/O request with higher priority (lower numerical - * value) will be executed before an outstanding request with lower - * priority. Default priority is %G_PRIORITY_DEFAULT. - * - * Note that no copy of @buffer will be made, so it must stay valid - * until @callback is called. - * - * Params: - * buffer = the buffer containing the data to write - * ioPriority = the io priority of the request - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.44 - */ - public void writeAllAsync(ubyte[] buffer, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_write_all_async(gOutputStream, buffer.ptr, cast(size_t)buffer.length, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous stream write operation started with - * g_output_stream_write_all_async(). - * - * As a special exception to the normal conventions for functions that - * use #GError, if this function returns %FALSE (and sets @error) then - * @bytes_written will be set to the number of bytes that were - * successfully written before the error was encountered. This - * functionality is only available from C. If you need it from another - * language then you must write your own loop around - * g_output_stream_write_async(). - * - * Params: - * result = a #GAsyncResult - * bytesWritten = location to store the number of bytes that was written to the stream - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.44 - * - * Throws: GException on failure. - */ - public bool writeAllFinish(AsyncResultIF result, out size_t bytesWritten) - { - GError* err = null; - - auto __p = g_output_stream_write_all_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &bytesWritten, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Request an asynchronous write of @count bytes from @buffer into - * the stream. When the operation is finished @callback will be called. - * You can then call g_output_stream_write_finish() to get the result of the - * operation. - * - * During an async request no other sync and async calls are allowed, - * and will result in %G_IO_ERROR_PENDING errors. - * - * A value of @count larger than %G_MAXSSIZE will cause a - * %G_IO_ERROR_INVALID_ARGUMENT error. - * - * On success, the number of bytes written will be passed to the - * @callback. It is not an error if this is not the same as the - * requested size, as it can happen e.g. on a partial I/O error, - * but generally we try to write as many bytes as requested. - * - * You are guaranteed that this method will never fail with - * %G_IO_ERROR_WOULD_BLOCK - if @stream can't accept more data, the - * method will just wait until this changes. - * - * Any outstanding I/O request with higher priority (lower numerical - * value) will be executed before an outstanding request with lower - * priority. Default priority is %G_PRIORITY_DEFAULT. - * - * The asynchronous methods have a default fallback that uses threads - * to implement asynchronicity, so they are optional for inheriting - * classes. However, if you override one you must override all. - * - * For the synchronous, blocking version of this function, see - * g_output_stream_write(). - * - * Note that no copy of @buffer will be made, so it must stay valid - * until @callback is called. See g_output_stream_write_bytes_async() - * for a #GBytes version that will automatically hold a reference to - * the contents (without copying) for the duration of the call. - * - * Params: - * buffer = the buffer containing the data to write. - * ioPriority = the io priority of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void writeAsync(ubyte[] buffer, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_write_async(gOutputStream, buffer.ptr, cast(size_t)buffer.length, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * A wrapper function for g_output_stream_write() which takes a - * #GBytes as input. This can be more convenient for use by language - * bindings or in other cases where the refcounted nature of #GBytes - * is helpful over a bare pointer interface. - * - * However, note that this function may still perform partial writes, - * just like g_output_stream_write(). If that occurs, to continue - * writing, you will need to create a new #GBytes containing just the - * remaining bytes, using g_bytes_new_from_bytes(). Passing the same - * #GBytes instance multiple times potentially can result in duplicated - * data in the output stream. - * - * Params: - * bytes = the #GBytes to write - * cancellable = optional cancellable object - * - * Returns: Number of bytes written, or -1 on error - * - * Throws: GException on failure. - */ - public ptrdiff_t writeBytes(Bytes bytes, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_write_bytes(gOutputStream, (bytes is null) ? null : bytes.getBytesStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * This function is similar to g_output_stream_write_async(), but - * takes a #GBytes as input. Due to the refcounted nature of #GBytes, - * this allows the stream to avoid taking a copy of the data. - * - * However, note that this function may still perform partial writes, - * just like g_output_stream_write_async(). If that occurs, to continue - * writing, you will need to create a new #GBytes containing just the - * remaining bytes, using g_bytes_new_from_bytes(). Passing the same - * #GBytes instance multiple times potentially can result in duplicated - * data in the output stream. - * - * For the synchronous, blocking version of this function, see - * g_output_stream_write_bytes(). - * - * Params: - * bytes = The bytes to write - * ioPriority = the io priority of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - */ - public void writeBytesAsync(Bytes bytes, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_write_bytes_async(gOutputStream, (bytes is null) ? null : bytes.getBytesStruct(), ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a stream write-from-#GBytes operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #gssize containing the number of bytes written to the stream. - * - * Throws: GException on failure. - */ - public ptrdiff_t writeBytesFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_output_stream_write_bytes_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Finishes a stream write operation. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #gssize containing the number of bytes written to the stream. - * - * Throws: GException on failure. - */ - public ptrdiff_t writeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_output_stream_write_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tries to write the bytes contained in the @n_vectors @vectors into the - * stream. Will block during the operation. - * - * If @n_vectors is 0 or the sum of all bytes in @vectors is 0, returns 0 and - * does nothing. - * - * On success, the number of bytes written to the stream is returned. - * It is not an error if this is not the same as the requested size, as it - * can happen e.g. on a partial I/O error, or if there is not enough - * storage in the stream. All writes block until at least one byte - * is written or an error occurs; 0 is never returned (unless - * @n_vectors is 0 or the sum of all bytes in @vectors is 0). - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * Some implementations of g_output_stream_writev() may have limitations on the - * aggregate buffer size, and will return %G_IO_ERROR_INVALID_ARGUMENT if these - * are exceeded. For example, when writing to a local file on UNIX platforms, - * the aggregate buffer size must not exceed %G_MAXSSIZE bytes. - * - * Params: - * vectors = the buffer containing the #GOutputVectors to write. - * bytesWritten = location to store the number of bytes that were - * written to the stream - * cancellable = optional cancellable object - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public bool writev(GOutputVector[] vectors, out size_t bytesWritten, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_writev(gOutputStream, vectors.ptr, cast(size_t)vectors.length, &bytesWritten, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tries to write the bytes contained in the @n_vectors @vectors into the - * stream. Will block during the operation. - * - * This function is similar to g_output_stream_writev(), except it tries to - * write as many bytes as requested, only stopping on an error. - * - * On a successful write of all @n_vectors vectors, %TRUE is returned, and - * @bytes_written is set to the sum of all the sizes of @vectors. - * - * If there is an error during the operation %FALSE is returned and @error - * is set to indicate the error status. - * - * As a special exception to the normal conventions for functions that - * use #GError, if this function returns %FALSE (and sets @error) then - * @bytes_written will be set to the number of bytes that were - * successfully written before the error was encountered. This - * functionality is only available from C. If you need it from another - * language then you must write your own loop around - * g_output_stream_write(). - * - * The content of the individual elements of @vectors might be changed by this - * function. - * - * Params: - * vectors = the buffer containing the #GOutputVectors to write. - * bytesWritten = location to store the number of bytes that were - * written to the stream - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public bool writevAll(GOutputVector[] vectors, out size_t bytesWritten, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_output_stream_writev_all(gOutputStream, vectors.ptr, cast(size_t)vectors.length, &bytesWritten, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Request an asynchronous write of the bytes contained in the @n_vectors @vectors into - * the stream. When the operation is finished @callback will be called. - * You can then call g_output_stream_writev_all_finish() to get the result of the - * operation. - * - * This is the asynchronous version of g_output_stream_writev_all(). - * - * Call g_output_stream_writev_all_finish() to collect the result. - * - * Any outstanding I/O request with higher priority (lower numerical - * value) will be executed before an outstanding request with lower - * priority. Default priority is %G_PRIORITY_DEFAULT. - * - * Note that no copy of @vectors will be made, so it must stay valid - * until @callback is called. The content of the individual elements - * of @vectors might be changed by this function. - * - * Params: - * vectors = the buffer containing the #GOutputVectors to write. - * ioPriority = the I/O priority of the request - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.60 - */ - public void writevAllAsync(GOutputVector[] vectors, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_writev_all_async(gOutputStream, vectors.ptr, cast(size_t)vectors.length, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous stream write operation started with - * g_output_stream_writev_all_async(). - * - * As a special exception to the normal conventions for functions that - * use #GError, if this function returns %FALSE (and sets @error) then - * @bytes_written will be set to the number of bytes that were - * successfully written before the error was encountered. This - * functionality is only available from C. If you need it from another - * language then you must write your own loop around - * g_output_stream_writev_async(). - * - * Params: - * result = a #GAsyncResult - * bytesWritten = location to store the number of bytes that were written to the stream - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public bool writevAllFinish(AsyncResultIF result, out size_t bytesWritten) - { - GError* err = null; - - auto __p = g_output_stream_writev_all_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &bytesWritten, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Request an asynchronous write of the bytes contained in @n_vectors @vectors into - * the stream. When the operation is finished @callback will be called. - * You can then call g_output_stream_writev_finish() to get the result of the - * operation. - * - * During an async request no other sync and async calls are allowed, - * and will result in %G_IO_ERROR_PENDING errors. - * - * On success, the number of bytes written will be passed to the - * @callback. It is not an error if this is not the same as the - * requested size, as it can happen e.g. on a partial I/O error, - * but generally we try to write as many bytes as requested. - * - * You are guaranteed that this method will never fail with - * %G_IO_ERROR_WOULD_BLOCK — if @stream can't accept more data, the - * method will just wait until this changes. - * - * Any outstanding I/O request with higher priority (lower numerical - * value) will be executed before an outstanding request with lower - * priority. Default priority is %G_PRIORITY_DEFAULT. - * - * The asynchronous methods have a default fallback that uses threads - * to implement asynchronicity, so they are optional for inheriting - * classes. However, if you override one you must override all. - * - * For the synchronous, blocking version of this function, see - * g_output_stream_writev(). - * - * Note that no copy of @vectors will be made, so it must stay valid - * until @callback is called. - * - * Params: - * vectors = the buffer containing the #GOutputVectors to write. - * ioPriority = the I/O priority of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = callback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.60 - */ - public void writevAsync(GOutputVector[] vectors, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_output_stream_writev_async(gOutputStream, vectors.ptr, cast(size_t)vectors.length, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes a stream writev operation. - * - * Params: - * result = a #GAsyncResult. - * bytesWritten = location to store the number of bytes that were written to the stream - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public bool writevFinish(AsyncResultIF result, out size_t bytesWritten) - { - GError* err = null; - - auto __p = g_output_stream_writev_finish(gOutputStream, (result is null) ? null : result.getAsyncResultStruct(), &bytesWritten, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/Permission.d b/generated/gtkd/gio/Permission.d deleted file mode 100644 index d7f43961a..000000000 --- a/generated/gtkd/gio/Permission.d +++ /dev/null @@ -1,324 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Permission; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * A #GPermission represents the status of the caller's permission to - * perform a certain action. - * - * You can query if the action is currently allowed and if it is - * possible to acquire the permission so that the action will be allowed - * in the future. - * - * There is also an API to actually acquire the permission and one to - * release it. - * - * As an example, a #GPermission might represent the ability for the - * user to write to a #GSettings object. This #GPermission object could - * then be used to decide if it is appropriate to show a "Click here to - * unlock" button in a dialog and to provide the mechanism to invoke - * when that button is clicked. - */ -public class Permission : ObjectG -{ - /** the main Gtk struct */ - protected GPermission* gPermission; - - /** Get the main Gtk struct */ - public GPermission* getPermissionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gPermission; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gPermission; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GPermission* gPermission, bool ownedRef = false) - { - this.gPermission = gPermission; - super(cast(GObject*)gPermission, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_permission_get_type(); - } - - /** - * Attempts to acquire the permission represented by @permission. - * - * The precise method by which this happens depends on the permission - * and the underlying authentication mechanism. A simple example is - * that a dialog may appear asking the user to enter their password. - * - * You should check with g_permission_get_can_acquire() before calling - * this function. - * - * If the permission is acquired then %TRUE is returned. Otherwise, - * %FALSE is returned and @error is set appropriately. - * - * This call is blocking, likely for a very long time (in the case that - * user interaction is required). See g_permission_acquire_async() for - * the non-blocking version. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE if the permission was successfully acquired - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool acquire(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_permission_acquire(gPermission, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Attempts to acquire the permission represented by @permission. - * - * This is the first half of the asynchronous version of - * g_permission_acquire(). - * - * Params: - * cancellable = a #GCancellable, or %NULL - * callback = the #GAsyncReadyCallback to call when done - * userData = the user data to pass to @callback - * - * Since: 2.26 - */ - public void acquireAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_permission_acquire_async(gPermission, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Collects the result of attempting to acquire the permission - * represented by @permission. - * - * This is the second half of the asynchronous version of - * g_permission_acquire(). - * - * Params: - * result = the #GAsyncResult given to the #GAsyncReadyCallback - * - * Returns: %TRUE if the permission was successfully acquired - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool acquireFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_permission_acquire_finish(gPermission, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the value of the 'allowed' property. This property is %TRUE if - * the caller currently has permission to perform the action that - * @permission represents the permission to perform. - * - * Returns: the value of the 'allowed' property - * - * Since: 2.26 - */ - public bool getAllowed() - { - return g_permission_get_allowed(gPermission) != 0; - } - - /** - * Gets the value of the 'can-acquire' property. This property is %TRUE - * if it is generally possible to acquire the permission by calling - * g_permission_acquire(). - * - * Returns: the value of the 'can-acquire' property - * - * Since: 2.26 - */ - public bool getCanAcquire() - { - return g_permission_get_can_acquire(gPermission) != 0; - } - - /** - * Gets the value of the 'can-release' property. This property is %TRUE - * if it is generally possible to release the permission by calling - * g_permission_release(). - * - * Returns: the value of the 'can-release' property - * - * Since: 2.26 - */ - public bool getCanRelease() - { - return g_permission_get_can_release(gPermission) != 0; - } - - /** - * This function is called by the #GPermission implementation to update - * the properties of the permission. You should never call this - * function except from a #GPermission implementation. - * - * GObject notify signals are generated, as appropriate. - * - * Params: - * allowed = the new value for the 'allowed' property - * canAcquire = the new value for the 'can-acquire' property - * canRelease = the new value for the 'can-release' property - * - * Since: 2.26 - */ - public void implUpdate(bool allowed, bool canAcquire, bool canRelease) - { - g_permission_impl_update(gPermission, allowed, canAcquire, canRelease); - } - - /** - * Attempts to release the permission represented by @permission. - * - * The precise method by which this happens depends on the permission - * and the underlying authentication mechanism. In most cases the - * permission will be dropped immediately without further action. - * - * You should check with g_permission_get_can_release() before calling - * this function. - * - * If the permission is released then %TRUE is returned. Otherwise, - * %FALSE is returned and @error is set appropriately. - * - * This call is blocking, likely for a very long time (in the case that - * user interaction is required). See g_permission_release_async() for - * the non-blocking version. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE if the permission was successfully released - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool release(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_permission_release(gPermission, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Attempts to release the permission represented by @permission. - * - * This is the first half of the asynchronous version of - * g_permission_release(). - * - * Params: - * cancellable = a #GCancellable, or %NULL - * callback = the #GAsyncReadyCallback to call when done - * userData = the user data to pass to @callback - * - * Since: 2.26 - */ - public void releaseAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_permission_release_async(gPermission, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Collects the result of attempting to release the permission - * represented by @permission. - * - * This is the second half of the asynchronous version of - * g_permission_release(). - * - * Params: - * result = the #GAsyncResult given to the #GAsyncReadyCallback - * - * Returns: %TRUE if the permission was successfully released - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool releaseFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_permission_release_finish(gPermission, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/PollableInputStreamIF.d b/generated/gtkd/gio/PollableInputStreamIF.d deleted file mode 100644 index 4ca3d13b3..000000000 --- a/generated/gtkd/gio/PollableInputStreamIF.d +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.PollableInputStreamIF; - -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Source; - - -/** - * #GPollableInputStream is implemented by #GInputStreams that - * can be polled for readiness to read. This can be used when - * interfacing with a non-GIO API that expects - * UNIX-file-descriptor-style asynchronous I/O rather than GIO-style. - * - * Since: 2.28 - */ -public interface PollableInputStreamIF{ - /** Get the main Gtk struct */ - public GPollableInputStream* getPollableInputStreamStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_pollable_input_stream_get_type(); - } - - /** - * Checks if @stream is actually pollable. Some classes may implement - * #GPollableInputStream but have only certain instances of that class - * be pollable. If this method returns %FALSE, then the behavior of - * other #GPollableInputStream methods is undefined. - * - * For any given stream, the value returned by this method is constant; - * a stream cannot switch from pollable to non-pollable or vice versa. - * - * Returns: %TRUE if @stream is pollable, %FALSE if not. - * - * Since: 2.28 - */ - public bool canPoll(); - - /** - * Creates a #GSource that triggers when @stream can be read, or - * @cancellable is triggered or an error occurs. The callback on the - * source is of the #GPollableSourceFunc type. - * - * As with g_pollable_input_stream_is_readable(), it is possible that - * the stream may not actually be readable even after the source - * triggers, so you should use g_pollable_input_stream_read_nonblocking() - * rather than g_input_stream_read() from the callback. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: a new #GSource - * - * Since: 2.28 - */ - public Source createSource(Cancellable cancellable); - - /** - * Checks if @stream can be read. - * - * Note that some stream types may not be able to implement this 100% - * reliably, and it is possible that a call to g_input_stream_read() - * after this returns %TRUE would still block. To guarantee - * non-blocking behavior, you should always use - * g_pollable_input_stream_read_nonblocking(), which will return a - * %G_IO_ERROR_WOULD_BLOCK error rather than blocking. - * - * Returns: %TRUE if @stream is readable, %FALSE if not. If an error - * has occurred on @stream, this will result in - * g_pollable_input_stream_is_readable() returning %TRUE, and the - * next attempt to read will return the error. - * - * Since: 2.28 - */ - public bool isReadable(); - - /** - * Attempts to read up to @count bytes from @stream into @buffer, as - * with g_input_stream_read(). If @stream is not currently readable, - * this will immediately return %G_IO_ERROR_WOULD_BLOCK, and you can - * use g_pollable_input_stream_create_source() to create a #GSource - * that will be triggered when @stream is readable. - * - * Note that since this method never blocks, you cannot actually - * use @cancellable to cancel it. However, it will return an error - * if @cancellable has already been cancelled when you call, which - * may happen if you call this method after a source triggers due - * to having been cancelled. - * - * Params: - * buffer = a buffer to - * read data into (which should be at least @count bytes long). - * cancellable = a #GCancellable, or %NULL - * - * Returns: the number of bytes read, or -1 on error (including - * %G_IO_ERROR_WOULD_BLOCK). - * - * Throws: GException on failure. - */ - public ptrdiff_t readNonblocking(ubyte[] buffer, Cancellable cancellable); -} diff --git a/generated/gtkd/gio/PollableInputStreamT.d b/generated/gtkd/gio/PollableInputStreamT.d deleted file mode 100644 index 7afc59841..000000000 --- a/generated/gtkd/gio/PollableInputStreamT.d +++ /dev/null @@ -1,159 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.PollableInputStreamT; - -public import gio.Cancellable; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Source; - - -/** - * #GPollableInputStream is implemented by #GInputStreams that - * can be polled for readiness to read. This can be used when - * interfacing with a non-GIO API that expects - * UNIX-file-descriptor-style asynchronous I/O rather than GIO-style. - * - * Since: 2.28 - */ -public template PollableInputStreamT(TStruct) -{ - /** Get the main Gtk struct */ - public GPollableInputStream* getPollableInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GPollableInputStream*)getStruct(); - } - - - /** - * Checks if @stream is actually pollable. Some classes may implement - * #GPollableInputStream but have only certain instances of that class - * be pollable. If this method returns %FALSE, then the behavior of - * other #GPollableInputStream methods is undefined. - * - * For any given stream, the value returned by this method is constant; - * a stream cannot switch from pollable to non-pollable or vice versa. - * - * Returns: %TRUE if @stream is pollable, %FALSE if not. - * - * Since: 2.28 - */ - public bool canPoll() - { - return g_pollable_input_stream_can_poll(getPollableInputStreamStruct()) != 0; - } - - /** - * Creates a #GSource that triggers when @stream can be read, or - * @cancellable is triggered or an error occurs. The callback on the - * source is of the #GPollableSourceFunc type. - * - * As with g_pollable_input_stream_is_readable(), it is possible that - * the stream may not actually be readable even after the source - * triggers, so you should use g_pollable_input_stream_read_nonblocking() - * rather than g_input_stream_read() from the callback. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: a new #GSource - * - * Since: 2.28 - */ - public Source createSource(Cancellable cancellable) - { - auto __p = g_pollable_input_stream_create_source(getPollableInputStreamStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct()); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); - } - - /** - * Checks if @stream can be read. - * - * Note that some stream types may not be able to implement this 100% - * reliably, and it is possible that a call to g_input_stream_read() - * after this returns %TRUE would still block. To guarantee - * non-blocking behavior, you should always use - * g_pollable_input_stream_read_nonblocking(), which will return a - * %G_IO_ERROR_WOULD_BLOCK error rather than blocking. - * - * Returns: %TRUE if @stream is readable, %FALSE if not. If an error - * has occurred on @stream, this will result in - * g_pollable_input_stream_is_readable() returning %TRUE, and the - * next attempt to read will return the error. - * - * Since: 2.28 - */ - public bool isReadable() - { - return g_pollable_input_stream_is_readable(getPollableInputStreamStruct()) != 0; - } - - /** - * Attempts to read up to @count bytes from @stream into @buffer, as - * with g_input_stream_read(). If @stream is not currently readable, - * this will immediately return %G_IO_ERROR_WOULD_BLOCK, and you can - * use g_pollable_input_stream_create_source() to create a #GSource - * that will be triggered when @stream is readable. - * - * Note that since this method never blocks, you cannot actually - * use @cancellable to cancel it. However, it will return an error - * if @cancellable has already been cancelled when you call, which - * may happen if you call this method after a source triggers due - * to having been cancelled. - * - * Params: - * buffer = a buffer to - * read data into (which should be at least @count bytes long). - * cancellable = a #GCancellable, or %NULL - * - * Returns: the number of bytes read, or -1 on error (including - * %G_IO_ERROR_WOULD_BLOCK). - * - * Throws: GException on failure. - */ - public ptrdiff_t readNonblocking(ubyte[] buffer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_pollable_input_stream_read_nonblocking(getPollableInputStreamStruct(), buffer.ptr, cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/PollableOutputStreamIF.d b/generated/gtkd/gio/PollableOutputStreamIF.d deleted file mode 100644 index afffeefba..000000000 --- a/generated/gtkd/gio/PollableOutputStreamIF.d +++ /dev/null @@ -1,173 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.PollableOutputStreamIF; - -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Source; - - -/** - * #GPollableOutputStream is implemented by #GOutputStreams that - * can be polled for readiness to write. This can be used when - * interfacing with a non-GIO API that expects - * UNIX-file-descriptor-style asynchronous I/O rather than GIO-style. - * - * Since: 2.28 - */ -public interface PollableOutputStreamIF{ - /** Get the main Gtk struct */ - public GPollableOutputStream* getPollableOutputStreamStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_pollable_output_stream_get_type(); - } - - /** - * Checks if @stream is actually pollable. Some classes may implement - * #GPollableOutputStream but have only certain instances of that - * class be pollable. If this method returns %FALSE, then the behavior - * of other #GPollableOutputStream methods is undefined. - * - * For any given stream, the value returned by this method is constant; - * a stream cannot switch from pollable to non-pollable or vice versa. - * - * Returns: %TRUE if @stream is pollable, %FALSE if not. - * - * Since: 2.28 - */ - public bool canPoll(); - - /** - * Creates a #GSource that triggers when @stream can be written, or - * @cancellable is triggered or an error occurs. The callback on the - * source is of the #GPollableSourceFunc type. - * - * As with g_pollable_output_stream_is_writable(), it is possible that - * the stream may not actually be writable even after the source - * triggers, so you should use g_pollable_output_stream_write_nonblocking() - * rather than g_output_stream_write() from the callback. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: a new #GSource - * - * Since: 2.28 - */ - public Source createSource(Cancellable cancellable); - - /** - * Checks if @stream can be written. - * - * Note that some stream types may not be able to implement this 100% - * reliably, and it is possible that a call to g_output_stream_write() - * after this returns %TRUE would still block. To guarantee - * non-blocking behavior, you should always use - * g_pollable_output_stream_write_nonblocking(), which will return a - * %G_IO_ERROR_WOULD_BLOCK error rather than blocking. - * - * Returns: %TRUE if @stream is writable, %FALSE if not. If an error - * has occurred on @stream, this will result in - * g_pollable_output_stream_is_writable() returning %TRUE, and the - * next attempt to write will return the error. - * - * Since: 2.28 - */ - public bool isWritable(); - - /** - * Attempts to write up to @count bytes from @buffer to @stream, as - * with g_output_stream_write(). If @stream is not currently writable, - * this will immediately return %G_IO_ERROR_WOULD_BLOCK, and you can - * use g_pollable_output_stream_create_source() to create a #GSource - * that will be triggered when @stream is writable. - * - * Note that since this method never blocks, you cannot actually - * use @cancellable to cancel it. However, it will return an error - * if @cancellable has already been cancelled when you call, which - * may happen if you call this method after a source triggers due - * to having been cancelled. - * - * Also note that if %G_IO_ERROR_WOULD_BLOCK is returned some underlying - * transports like D/TLS require that you re-send the same @buffer and - * @count in the next write call. - * - * Params: - * buffer = a buffer to write - * data from - * cancellable = a #GCancellable, or %NULL - * - * Returns: the number of bytes written, or -1 on error (including - * %G_IO_ERROR_WOULD_BLOCK). - * - * Throws: GException on failure. - */ - public ptrdiff_t writeNonblocking(ubyte[] buffer, Cancellable cancellable); - - /** - * Attempts to write the bytes contained in the @n_vectors @vectors to @stream, - * as with g_output_stream_writev(). If @stream is not currently writable, - * this will immediately return %@G_POLLABLE_RETURN_WOULD_BLOCK, and you can - * use g_pollable_output_stream_create_source() to create a #GSource - * that will be triggered when @stream is writable. @error will *not* be - * set in that case. - * - * Note that since this method never blocks, you cannot actually - * use @cancellable to cancel it. However, it will return an error - * if @cancellable has already been cancelled when you call, which - * may happen if you call this method after a source triggers due - * to having been cancelled. - * - * Also note that if %G_POLLABLE_RETURN_WOULD_BLOCK is returned some underlying - * transports like D/TLS require that you re-send the same @vectors and - * @n_vectors in the next write call. - * - * Params: - * vectors = the buffer containing the #GOutputVectors to write. - * bytesWritten = location to store the number of bytes that were - * written to the stream - * cancellable = a #GCancellable, or %NULL - * - * Returns: %@G_POLLABLE_RETURN_OK on success, %G_POLLABLE_RETURN_WOULD_BLOCK - * if the stream is not currently writable (and @error is *not* set), or - * %G_POLLABLE_RETURN_FAILED if there was an error in which case @error will - * be set. - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public GPollableReturn writevNonblocking(GOutputVector[] vectors, out size_t bytesWritten, Cancellable cancellable); -} diff --git a/generated/gtkd/gio/PollableOutputStreamT.d b/generated/gtkd/gio/PollableOutputStreamT.d deleted file mode 100644 index 9d16d2800..000000000 --- a/generated/gtkd/gio/PollableOutputStreamT.d +++ /dev/null @@ -1,210 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.PollableOutputStreamT; - -public import gio.Cancellable; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Source; - - -/** - * #GPollableOutputStream is implemented by #GOutputStreams that - * can be polled for readiness to write. This can be used when - * interfacing with a non-GIO API that expects - * UNIX-file-descriptor-style asynchronous I/O rather than GIO-style. - * - * Since: 2.28 - */ -public template PollableOutputStreamT(TStruct) -{ - /** Get the main Gtk struct */ - public GPollableOutputStream* getPollableOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GPollableOutputStream*)getStruct(); - } - - - /** - * Checks if @stream is actually pollable. Some classes may implement - * #GPollableOutputStream but have only certain instances of that - * class be pollable. If this method returns %FALSE, then the behavior - * of other #GPollableOutputStream methods is undefined. - * - * For any given stream, the value returned by this method is constant; - * a stream cannot switch from pollable to non-pollable or vice versa. - * - * Returns: %TRUE if @stream is pollable, %FALSE if not. - * - * Since: 2.28 - */ - public bool canPoll() - { - return g_pollable_output_stream_can_poll(getPollableOutputStreamStruct()) != 0; - } - - /** - * Creates a #GSource that triggers when @stream can be written, or - * @cancellable is triggered or an error occurs. The callback on the - * source is of the #GPollableSourceFunc type. - * - * As with g_pollable_output_stream_is_writable(), it is possible that - * the stream may not actually be writable even after the source - * triggers, so you should use g_pollable_output_stream_write_nonblocking() - * rather than g_output_stream_write() from the callback. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: a new #GSource - * - * Since: 2.28 - */ - public Source createSource(Cancellable cancellable) - { - auto __p = g_pollable_output_stream_create_source(getPollableOutputStreamStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct()); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); - } - - /** - * Checks if @stream can be written. - * - * Note that some stream types may not be able to implement this 100% - * reliably, and it is possible that a call to g_output_stream_write() - * after this returns %TRUE would still block. To guarantee - * non-blocking behavior, you should always use - * g_pollable_output_stream_write_nonblocking(), which will return a - * %G_IO_ERROR_WOULD_BLOCK error rather than blocking. - * - * Returns: %TRUE if @stream is writable, %FALSE if not. If an error - * has occurred on @stream, this will result in - * g_pollable_output_stream_is_writable() returning %TRUE, and the - * next attempt to write will return the error. - * - * Since: 2.28 - */ - public bool isWritable() - { - return g_pollable_output_stream_is_writable(getPollableOutputStreamStruct()) != 0; - } - - /** - * Attempts to write up to @count bytes from @buffer to @stream, as - * with g_output_stream_write(). If @stream is not currently writable, - * this will immediately return %G_IO_ERROR_WOULD_BLOCK, and you can - * use g_pollable_output_stream_create_source() to create a #GSource - * that will be triggered when @stream is writable. - * - * Note that since this method never blocks, you cannot actually - * use @cancellable to cancel it. However, it will return an error - * if @cancellable has already been cancelled when you call, which - * may happen if you call this method after a source triggers due - * to having been cancelled. - * - * Also note that if %G_IO_ERROR_WOULD_BLOCK is returned some underlying - * transports like D/TLS require that you re-send the same @buffer and - * @count in the next write call. - * - * Params: - * buffer = a buffer to write - * data from - * cancellable = a #GCancellable, or %NULL - * - * Returns: the number of bytes written, or -1 on error (including - * %G_IO_ERROR_WOULD_BLOCK). - * - * Throws: GException on failure. - */ - public ptrdiff_t writeNonblocking(ubyte[] buffer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_pollable_output_stream_write_nonblocking(getPollableOutputStreamStruct(), buffer.ptr, cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Attempts to write the bytes contained in the @n_vectors @vectors to @stream, - * as with g_output_stream_writev(). If @stream is not currently writable, - * this will immediately return %@G_POLLABLE_RETURN_WOULD_BLOCK, and you can - * use g_pollable_output_stream_create_source() to create a #GSource - * that will be triggered when @stream is writable. @error will *not* be - * set in that case. - * - * Note that since this method never blocks, you cannot actually - * use @cancellable to cancel it. However, it will return an error - * if @cancellable has already been cancelled when you call, which - * may happen if you call this method after a source triggers due - * to having been cancelled. - * - * Also note that if %G_POLLABLE_RETURN_WOULD_BLOCK is returned some underlying - * transports like D/TLS require that you re-send the same @vectors and - * @n_vectors in the next write call. - * - * Params: - * vectors = the buffer containing the #GOutputVectors to write. - * bytesWritten = location to store the number of bytes that were - * written to the stream - * cancellable = a #GCancellable, or %NULL - * - * Returns: %@G_POLLABLE_RETURN_OK on success, %G_POLLABLE_RETURN_WOULD_BLOCK - * if the stream is not currently writable (and @error is *not* set), or - * %G_POLLABLE_RETURN_FAILED if there was an error in which case @error will - * be set. - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public GPollableReturn writevNonblocking(GOutputVector[] vectors, out size_t bytesWritten, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_pollable_output_stream_writev_nonblocking(getPollableOutputStreamStruct(), vectors.ptr, cast(size_t)vectors.length, &bytesWritten, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/PollableUtils.d b/generated/gtkd/gio/PollableUtils.d deleted file mode 100644 index d5dcdb0ea..000000000 --- a/generated/gtkd/gio/PollableUtils.d +++ /dev/null @@ -1,218 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.PollableUtils; - -private import gio.Cancellable; -private import gio.InputStream; -private import gio.OutputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Source; -private import gobject.ObjectG; - - -/** */ - -/** - * Utility method for #GPollableInputStream and #GPollableOutputStream - * implementations. Creates a new #GSource that expects a callback of - * type #GPollableSourceFunc. The new source does not actually do - * anything on its own; use g_source_add_child_source() to add other - * sources to it to cause it to trigger. - * - * Params: - * pollableStream = the stream associated with the new source - * - * Returns: the new #GSource. - * - * Since: 2.28 - */ -public Source pollableSourceNew(ObjectG pollableStream) -{ - auto __p = g_pollable_source_new((pollableStream is null) ? null : pollableStream.getObjectGStruct()); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); -} - -/** - * Utility method for #GPollableInputStream and #GPollableOutputStream - * implementations. Creates a new #GSource, as with - * g_pollable_source_new(), but also attaching @child_source (with a - * dummy callback), and @cancellable, if they are non-%NULL. - * - * Params: - * pollableStream = the stream associated with the - * new source - * childSource = optional child source to attach - * cancellable = optional #GCancellable to attach - * - * Returns: the new #GSource. - * - * Since: 2.34 - */ -public Source pollableSourceNewFull(ObjectG pollableStream, Source childSource, Cancellable cancellable) -{ - auto __p = g_pollable_source_new_full((pollableStream is null) ? null : pollableStream.getObjectGStruct(), (childSource is null) ? null : childSource.getSourceStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct()); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); -} - -/** - * Tries to read from @stream, as with g_input_stream_read() (if - * @blocking is %TRUE) or g_pollable_input_stream_read_nonblocking() - * (if @blocking is %FALSE). This can be used to more easily share - * code between blocking and non-blocking implementations of a method. - * - * If @blocking is %FALSE, then @stream must be a - * #GPollableInputStream for which g_pollable_input_stream_can_poll() - * returns %TRUE, or else the behavior is undefined. If @blocking is - * %TRUE, then @stream does not need to be a #GPollableInputStream. - * - * Params: - * stream = a #GInputStream - * buffer = a buffer to - * read data into - * blocking = whether to do blocking I/O - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: the number of bytes read, or -1 on error. - * - * Since: 2.34 - * - * Throws: GException on failure. - */ -public ptrdiff_t pollableStreamRead(InputStream stream, ubyte[] buffer, bool blocking, Cancellable cancellable) -{ - GError* err = null; - - auto __p = g_pollable_stream_read((stream is null) ? null : stream.getInputStreamStruct(), buffer.ptr, cast(size_t)buffer.length, blocking, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; -} - -/** - * Tries to write to @stream, as with g_output_stream_write() (if - * @blocking is %TRUE) or g_pollable_output_stream_write_nonblocking() - * (if @blocking is %FALSE). This can be used to more easily share - * code between blocking and non-blocking implementations of a method. - * - * If @blocking is %FALSE, then @stream must be a - * #GPollableOutputStream for which - * g_pollable_output_stream_can_poll() returns %TRUE or else the - * behavior is undefined. If @blocking is %TRUE, then @stream does not - * need to be a #GPollableOutputStream. - * - * Params: - * stream = a #GOutputStream. - * buffer = the buffer - * containing the data to write. - * blocking = whether to do blocking I/O - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: the number of bytes written, or -1 on error. - * - * Since: 2.34 - * - * Throws: GException on failure. - */ -public ptrdiff_t pollableStreamWrite(OutputStream stream, ubyte[] buffer, bool blocking, Cancellable cancellable) -{ - GError* err = null; - - auto __p = g_pollable_stream_write((stream is null) ? null : stream.getOutputStreamStruct(), buffer.ptr, cast(size_t)buffer.length, blocking, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; -} - -/** - * Tries to write @count bytes to @stream, as with - * g_output_stream_write_all(), but using g_pollable_stream_write() - * rather than g_output_stream_write(). - * - * On a successful write of @count bytes, %TRUE is returned, and - * @bytes_written is set to @count. - * - * If there is an error during the operation (including - * %G_IO_ERROR_WOULD_BLOCK in the non-blocking case), %FALSE is - * returned and @error is set to indicate the error status, - * @bytes_written is updated to contain the number of bytes written - * into the stream before the error occurred. - * - * As with g_pollable_stream_write(), if @blocking is %FALSE, then - * @stream must be a #GPollableOutputStream for which - * g_pollable_output_stream_can_poll() returns %TRUE or else the - * behavior is undefined. If @blocking is %TRUE, then @stream does not - * need to be a #GPollableOutputStream. - * - * Params: - * stream = a #GOutputStream. - * buffer = the buffer - * containing the data to write. - * blocking = whether to do blocking I/O - * bytesWritten = location to store the number of bytes that was - * written to the stream - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE on success, %FALSE if there was an error - * - * Since: 2.34 - * - * Throws: GException on failure. - */ -public bool pollableStreamWriteAll(OutputStream stream, ubyte[] buffer, bool blocking, out size_t bytesWritten, Cancellable cancellable) -{ - GError* err = null; - - auto __p = g_pollable_stream_write_all((stream is null) ? null : stream.getOutputStreamStruct(), buffer.ptr, cast(size_t)buffer.length, blocking, &bytesWritten, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; -} diff --git a/generated/gtkd/gio/PropertyAction.d b/generated/gtkd/gio/PropertyAction.d deleted file mode 100644 index 55aff693c..000000000 --- a/generated/gtkd/gio/PropertyAction.d +++ /dev/null @@ -1,162 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.PropertyAction; - -private import gio.ActionIF; -private import gio.ActionT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * A #GPropertyAction is a way to get a #GAction with a state value - * reflecting and controlling the value of a #GObject property. - * - * The state of the action will correspond to the value of the property. - * Changing it will change the property (assuming the requested value - * matches the requirements as specified in the #GParamSpec). - * - * Only the most common types are presently supported. Booleans are - * mapped to booleans, strings to strings, signed/unsigned integers to - * int32/uint32 and floats and doubles to doubles. - * - * If the property is an enum then the state will be string-typed and - * conversion will automatically be performed between the enum value and - * "nick" string as per the #GEnumValue table. - * - * Flags types are not currently supported. - * - * Properties of object types, boxed types and pointer types are not - * supported and probably never will be. - * - * Properties of #GVariant types are not currently supported. - * - * If the property is boolean-valued then the action will have a NULL - * parameter type, and activating the action (with no parameter) will - * toggle the value of the property. - * - * In all other cases, the parameter type will correspond to the type of - * the property. - * - * The general idea here is to reduce the number of locations where a - * particular piece of state is kept (and therefore has to be synchronised - * between). #GPropertyAction does not have a separate state that is kept - * in sync with the property value -- its state is the property value. - * - * For example, it might be useful to create a #GAction corresponding to - * the "visible-child-name" property of a #GtkStack so that the current - * page can be switched from a menu. The active radio indication in the - * menu is then directly determined from the active page of the - * #GtkStack. - * - * An anti-example would be binding the "active-id" property on a - * #GtkComboBox. This is because the state of the combobox itself is - * probably uninteresting and is actually being used to control - * something else. - * - * Another anti-example would be to bind to the "visible-child-name" - * property of a #GtkStack if this value is actually stored in - * #GSettings. In that case, the real source of the value is - * #GSettings. If you want a #GAction to control a setting stored in - * #GSettings, see g_settings_create_action() instead, and possibly - * combine its use with g_settings_bind(). - * - * Since: 2.38 - */ -public class PropertyAction : ObjectG, ActionIF -{ - /** the main Gtk struct */ - protected GPropertyAction* gPropertyAction; - - /** Get the main Gtk struct */ - public GPropertyAction* getPropertyActionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gPropertyAction; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gPropertyAction; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GPropertyAction* gPropertyAction, bool ownedRef = false) - { - this.gPropertyAction = gPropertyAction; - super(cast(GObject*)gPropertyAction, ownedRef); - } - - // add the Action capabilities - mixin ActionT!(GPropertyAction); - - - /** */ - public static GType getType() - { - return g_property_action_get_type(); - } - - /** - * Creates a #GAction corresponding to the value of property - * @property_name on @object. - * - * The property must be existent and readable and writable (and not - * construct-only). - * - * This function takes a reference on @object and doesn't release it - * until the action is destroyed. - * - * Params: - * name = the name of the action to create - * object = the object that has the property - * to wrap - * propertyName = the name of the property - * - * Returns: a new #GPropertyAction - * - * Since: 2.38 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, ObjectG object, string propertyName) - { - auto __p = g_property_action_new(Str.toStringz(name), (object is null) ? null : object.getObjectGStruct(), Str.toStringz(propertyName)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GPropertyAction*) __p, true); - } -} diff --git a/generated/gtkd/gio/ProxyAddress.d b/generated/gtkd/gio/ProxyAddress.d deleted file mode 100644 index 3cce1429d..000000000 --- a/generated/gtkd/gio/ProxyAddress.d +++ /dev/null @@ -1,203 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ProxyAddress; - -private import gio.InetAddress; -private import gio.InetSocketAddress; -private import gio.SocketAddress; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Support for proxied #GInetSocketAddress. - * - * Since: 2.26 - */ -public class ProxyAddress : InetSocketAddress -{ - /** the main Gtk struct */ - protected GProxyAddress* gProxyAddress; - - /** Get the main Gtk struct */ - public GProxyAddress* getProxyAddressStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gProxyAddress; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gProxyAddress; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GProxyAddress* gProxyAddress, bool ownedRef = false) - { - this.gProxyAddress = gProxyAddress; - super(cast(GInetSocketAddress*)gProxyAddress, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_proxy_address_get_type(); - } - - /** - * Creates a new #GProxyAddress for @inetaddr with @protocol that should - * tunnel through @dest_hostname and @dest_port. - * - * (Note that this method doesn't set the #GProxyAddress:uri or - * #GProxyAddress:destination-protocol fields; use g_object_new() - * directly if you want to set those.) - * - * Params: - * inetaddr = The proxy server #GInetAddress. - * port = The proxy server port. - * protocol = The proxy protocol to support, in lower case (e.g. socks, http). - * destHostname = The destination hostname the proxy should tunnel to. - * destPort = The destination port to tunnel to. - * username = The username to authenticate to the proxy server - * (or %NULL). - * password = The password to authenticate to the proxy server - * (or %NULL). - * - * Returns: a new #GProxyAddress - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InetAddress inetaddr, ushort port, string protocol, string destHostname, ushort destPort, string username, string password) - { - auto __p = g_proxy_address_new((inetaddr is null) ? null : inetaddr.getInetAddressStruct(), port, Str.toStringz(protocol), Str.toStringz(destHostname), destPort, Str.toStringz(username), Str.toStringz(password)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GProxyAddress*) __p, true); - } - - /** - * Gets @proxy's destination hostname; that is, the name of the host - * that will be connected to via the proxy, not the name of the proxy - * itself. - * - * Returns: the @proxy's destination hostname - * - * Since: 2.26 - */ - public string getDestinationHostname() - { - return Str.toString(g_proxy_address_get_destination_hostname(gProxyAddress)); - } - - /** - * Gets @proxy's destination port; that is, the port on the - * destination host that will be connected to via the proxy, not the - * port number of the proxy itself. - * - * Returns: the @proxy's destination port - * - * Since: 2.26 - */ - public ushort getDestinationPort() - { - return g_proxy_address_get_destination_port(gProxyAddress); - } - - /** - * Gets the protocol that is being spoken to the destination - * server; eg, "http" or "ftp". - * - * Returns: the @proxy's destination protocol - * - * Since: 2.34 - */ - public string getDestinationProtocol() - { - return Str.toString(g_proxy_address_get_destination_protocol(gProxyAddress)); - } - - /** - * Gets @proxy's password. - * - * Returns: the @proxy's password - * - * Since: 2.26 - */ - public string getPassword() - { - return Str.toString(g_proxy_address_get_password(gProxyAddress)); - } - - /** - * Gets @proxy's protocol. eg, "socks" or "http" - * - * Returns: the @proxy's protocol - * - * Since: 2.26 - */ - public string getProtocol() - { - return Str.toString(g_proxy_address_get_protocol(gProxyAddress)); - } - - /** - * Gets the proxy URI that @proxy was constructed from. - * - * Returns: the @proxy's URI, or %NULL if unknown - * - * Since: 2.34 - */ - public string getUri() - { - return Str.toString(g_proxy_address_get_uri(gProxyAddress)); - } - - /** - * Gets @proxy's username. - * - * Returns: the @proxy's username - * - * Since: 2.26 - */ - public string getUsername() - { - return Str.toString(g_proxy_address_get_username(gProxyAddress)); - } -} diff --git a/generated/gtkd/gio/ProxyAddressEnumerator.d b/generated/gtkd/gio/ProxyAddressEnumerator.d deleted file mode 100644 index 029ee1c50..000000000 --- a/generated/gtkd/gio/ProxyAddressEnumerator.d +++ /dev/null @@ -1,77 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ProxyAddressEnumerator; - -private import gio.SocketAddressEnumerator; -private import gio.c.functions; -public import gio.c.types; - - -/** - * #GProxyAddressEnumerator is a wrapper around #GSocketAddressEnumerator which - * takes the #GSocketAddress instances returned by the #GSocketAddressEnumerator - * and wraps them in #GProxyAddress instances, using the given - * #GProxyAddressEnumerator:proxy-resolver. - * - * This enumerator will be returned (for example, by - * g_socket_connectable_enumerate()) as appropriate when a proxy is configured; - * there should be no need to manually wrap a #GSocketAddressEnumerator instance - * with one. - */ -public class ProxyAddressEnumerator : SocketAddressEnumerator -{ - /** the main Gtk struct */ - protected GProxyAddressEnumerator* gProxyAddressEnumerator; - - /** Get the main Gtk struct */ - public GProxyAddressEnumerator* getProxyAddressEnumeratorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gProxyAddressEnumerator; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gProxyAddressEnumerator; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GProxyAddressEnumerator* gProxyAddressEnumerator, bool ownedRef = false) - { - this.gProxyAddressEnumerator = gProxyAddressEnumerator; - super(cast(GSocketAddressEnumerator*)gProxyAddressEnumerator, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_proxy_address_enumerator_get_type(); - } -} diff --git a/generated/gtkd/gio/ProxyIF.d b/generated/gtkd/gio/ProxyIF.d deleted file mode 100644 index ec686ba77..000000000 --- a/generated/gtkd/gio/ProxyIF.d +++ /dev/null @@ -1,151 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ProxyIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.IOStream; -private import gio.ProxyAddress; -private import gio.ProxyIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * A #GProxy handles connecting to a remote host via a given type of - * proxy server. It is implemented by the 'gio-proxy' extension point. - * The extensions are named after their proxy protocol name. As an - * example, a SOCKS5 proxy implementation can be retrieved with the - * name 'socks5' using the function - * g_io_extension_point_get_extension_by_name(). - * - * Since: 2.26 - */ -public interface ProxyIF{ - /** Get the main Gtk struct */ - public GProxy* getProxyStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_proxy_get_type(); - } - - /** - * Find the `gio-proxy` extension point for a proxy implementation that supports - * the specified protocol. - * - * Params: - * protocol = the proxy protocol name (e.g. http, socks, etc) - * - * Returns: return a #GProxy or NULL if protocol - * is not supported. - * - * Since: 2.26 - */ - public static ProxyIF getDefaultForProtocol(string protocol) - { - auto __p = g_proxy_get_default_for_protocol(Str.toStringz(protocol)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ProxyIF)(cast(GProxy*) __p, true); - } - - /** - * Given @connection to communicate with a proxy (eg, a - * #GSocketConnection that is connected to the proxy server), this - * does the necessary handshake to connect to @proxy_address, and if - * required, wraps the #GIOStream to handle proxy payload. - * - * Params: - * connection = a #GIOStream - * proxyAddress = a #GProxyAddress - * cancellable = a #GCancellable - * - * Returns: a #GIOStream that will replace @connection. This might - * be the same as @connection, in which case a reference - * will be added. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public IOStream connect(IOStream connection, ProxyAddress proxyAddress, Cancellable cancellable); - - /** - * Asynchronous version of g_proxy_connect(). - * - * Params: - * connection = a #GIOStream - * proxyAddress = a #GProxyAddress - * cancellable = a #GCancellable - * callback = a #GAsyncReadyCallback - * userData = callback data - * - * Since: 2.26 - */ - public void connectAsync(IOStream connection, ProxyAddress proxyAddress, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * See g_proxy_connect(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #GIOStream. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public IOStream connectFinish(AsyncResultIF result); - - /** - * Some proxy protocols expect to be passed a hostname, which they - * will resolve to an IP address themselves. Others, like SOCKS4, do - * not allow this. This function will return %FALSE if @proxy is - * implementing such a protocol. When %FALSE is returned, the caller - * should resolve the destination hostname first, and then pass a - * #GProxyAddress containing the stringified IP address to - * g_proxy_connect() or g_proxy_connect_async(). - * - * Returns: %TRUE if hostname resolution is supported. - * - * Since: 2.26 - */ - public bool supportsHostname(); -} diff --git a/generated/gtkd/gio/ProxyResolverIF.d b/generated/gtkd/gio/ProxyResolverIF.d deleted file mode 100644 index 6d719ae59..000000000 --- a/generated/gtkd/gio/ProxyResolverIF.d +++ /dev/null @@ -1,157 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ProxyResolverIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.ProxyResolverIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GProxyResolver provides synchronous and asynchronous network proxy - * resolution. #GProxyResolver is used within #GSocketClient through - * the method g_socket_connectable_proxy_enumerate(). - * - * Implementations of #GProxyResolver based on libproxy and GNOME settings can - * be found in glib-networking. GIO comes with an implementation for use inside - * Flatpak portals. - * - * Since: 2.26 - */ -public interface ProxyResolverIF{ - /** Get the main Gtk struct */ - public GProxyResolver* getProxyResolverStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_proxy_resolver_get_type(); - } - - /** - * Gets the default #GProxyResolver for the system. - * - * Returns: the default #GProxyResolver, which - * will be a dummy object if no proxy resolver is available - * - * Since: 2.26 - */ - public static ProxyResolverIF getDefault() - { - auto __p = g_proxy_resolver_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ProxyResolverIF)(cast(GProxyResolver*) __p); - } - - /** - * Checks if @resolver can be used on this system. (This is used - * internally; g_proxy_resolver_get_default() will only return a proxy - * resolver that returns %TRUE for this method.) - * - * Returns: %TRUE if @resolver is supported. - * - * Since: 2.26 - */ - public bool isSupported(); - - /** - * Looks into the system proxy configuration to determine what proxy, - * if any, to use to connect to @uri. The returned proxy URIs are of - * the form `://[user[:password]@]host:port` or - * `direct://`, where could be http, rtsp, socks - * or other proxying protocol. - * - * If you don't know what network protocol is being used on the - * socket, you should use `none` as the URI protocol. - * In this case, the resolver might still return a generic proxy type - * (such as SOCKS), but would not return protocol-specific proxy types - * (such as http). - * - * `direct://` is used when no proxy is needed. - * Direct connection should not be attempted unless it is part of the - * returned array of proxies. - * - * Params: - * uri = a URI representing the destination to connect to - * cancellable = a #GCancellable, or %NULL - * - * Returns: A - * NULL-terminated array of proxy URIs. Must be freed - * with g_strfreev(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public string[] lookup(string uri, Cancellable cancellable); - - /** - * Asynchronous lookup of proxy. See g_proxy_resolver_lookup() for more - * details. - * - * Params: - * uri = a URI representing the destination to connect to - * cancellable = a #GCancellable, or %NULL - * callback = callback to call after resolution completes - * userData = data for @callback - * - * Since: 2.26 - */ - public void lookupAsync(string uri, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Call this function to obtain the array of proxy URIs when - * g_proxy_resolver_lookup_async() is complete. See - * g_proxy_resolver_lookup() for more details. - * - * Params: - * result = the result passed to your #GAsyncReadyCallback - * - * Returns: A - * NULL-terminated array of proxy URIs. Must be freed - * with g_strfreev(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public string[] lookupFinish(AsyncResultIF result); -} diff --git a/generated/gtkd/gio/ProxyResolverT.d b/generated/gtkd/gio/ProxyResolverT.d deleted file mode 100644 index d3ae2b7d1..000000000 --- a/generated/gtkd/gio/ProxyResolverT.d +++ /dev/null @@ -1,166 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ProxyResolverT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.ProxyResolverIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; - - -/** - * #GProxyResolver provides synchronous and asynchronous network proxy - * resolution. #GProxyResolver is used within #GSocketClient through - * the method g_socket_connectable_proxy_enumerate(). - * - * Implementations of #GProxyResolver based on libproxy and GNOME settings can - * be found in glib-networking. GIO comes with an implementation for use inside - * Flatpak portals. - * - * Since: 2.26 - */ -public template ProxyResolverT(TStruct) -{ - /** Get the main Gtk struct */ - public GProxyResolver* getProxyResolverStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GProxyResolver*)getStruct(); - } - - - /** - * Checks if @resolver can be used on this system. (This is used - * internally; g_proxy_resolver_get_default() will only return a proxy - * resolver that returns %TRUE for this method.) - * - * Returns: %TRUE if @resolver is supported. - * - * Since: 2.26 - */ - public bool isSupported() - { - return g_proxy_resolver_is_supported(getProxyResolverStruct()) != 0; - } - - /** - * Looks into the system proxy configuration to determine what proxy, - * if any, to use to connect to @uri. The returned proxy URIs are of - * the form `://[user[:password]@]host:port` or - * `direct://`, where could be http, rtsp, socks - * or other proxying protocol. - * - * If you don't know what network protocol is being used on the - * socket, you should use `none` as the URI protocol. - * In this case, the resolver might still return a generic proxy type - * (such as SOCKS), but would not return protocol-specific proxy types - * (such as http). - * - * `direct://` is used when no proxy is needed. - * Direct connection should not be attempted unless it is part of the - * returned array of proxies. - * - * Params: - * uri = a URI representing the destination to connect to - * cancellable = a #GCancellable, or %NULL - * - * Returns: A - * NULL-terminated array of proxy URIs. Must be freed - * with g_strfreev(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public string[] lookup(string uri, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_proxy_resolver_lookup(getProxyResolverStruct(), Str.toStringz(uri), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Asynchronous lookup of proxy. See g_proxy_resolver_lookup() for more - * details. - * - * Params: - * uri = a URI representing the destination to connect to - * cancellable = a #GCancellable, or %NULL - * callback = callback to call after resolution completes - * userData = data for @callback - * - * Since: 2.26 - */ - public void lookupAsync(string uri, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_proxy_resolver_lookup_async(getProxyResolverStruct(), Str.toStringz(uri), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Call this function to obtain the array of proxy URIs when - * g_proxy_resolver_lookup_async() is complete. See - * g_proxy_resolver_lookup() for more details. - * - * Params: - * result = the result passed to your #GAsyncReadyCallback - * - * Returns: A - * NULL-terminated array of proxy URIs. Must be freed - * with g_strfreev(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public string[] lookupFinish(AsyncResultIF result) - { - GError* err = null; - - auto retStr = g_proxy_resolver_lookup_finish(getProxyResolverStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } -} diff --git a/generated/gtkd/gio/ProxyT.d b/generated/gtkd/gio/ProxyT.d deleted file mode 100644 index 1ed95446a..000000000 --- a/generated/gtkd/gio/ProxyT.d +++ /dev/null @@ -1,164 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ProxyT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.IOStream; -public import gio.ProxyAddress; -public import gio.ProxyIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import gobject.ObjectG; - - -/** - * A #GProxy handles connecting to a remote host via a given type of - * proxy server. It is implemented by the 'gio-proxy' extension point. - * The extensions are named after their proxy protocol name. As an - * example, a SOCKS5 proxy implementation can be retrieved with the - * name 'socks5' using the function - * g_io_extension_point_get_extension_by_name(). - * - * Since: 2.26 - */ -public template ProxyT(TStruct) -{ - /** Get the main Gtk struct */ - public GProxy* getProxyStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GProxy*)getStruct(); - } - - - /** - * Given @connection to communicate with a proxy (eg, a - * #GSocketConnection that is connected to the proxy server), this - * does the necessary handshake to connect to @proxy_address, and if - * required, wraps the #GIOStream to handle proxy payload. - * - * Params: - * connection = a #GIOStream - * proxyAddress = a #GProxyAddress - * cancellable = a #GCancellable - * - * Returns: a #GIOStream that will replace @connection. This might - * be the same as @connection, in which case a reference - * will be added. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public IOStream connect(IOStream connection, ProxyAddress proxyAddress, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_proxy_connect(getProxyStruct(), (connection is null) ? null : connection.getIOStreamStruct(), (proxyAddress is null) ? null : proxyAddress.getProxyAddressStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOStream)(cast(GIOStream*) __p, true); - } - - /** - * Asynchronous version of g_proxy_connect(). - * - * Params: - * connection = a #GIOStream - * proxyAddress = a #GProxyAddress - * cancellable = a #GCancellable - * callback = a #GAsyncReadyCallback - * userData = callback data - * - * Since: 2.26 - */ - public void connectAsync(IOStream connection, ProxyAddress proxyAddress, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_proxy_connect_async(getProxyStruct(), (connection is null) ? null : connection.getIOStreamStruct(), (proxyAddress is null) ? null : proxyAddress.getProxyAddressStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * See g_proxy_connect(). - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #GIOStream. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public IOStream connectFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_proxy_connect_finish(getProxyStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOStream)(cast(GIOStream*) __p, true); - } - - /** - * Some proxy protocols expect to be passed a hostname, which they - * will resolve to an IP address themselves. Others, like SOCKS4, do - * not allow this. This function will return %FALSE if @proxy is - * implementing such a protocol. When %FALSE is returned, the caller - * should resolve the destination hostname first, and then pass a - * #GProxyAddress containing the stringified IP address to - * g_proxy_connect() or g_proxy_connect_async(). - * - * Returns: %TRUE if hostname resolution is supported. - * - * Since: 2.26 - */ - public bool supportsHostname() - { - return g_proxy_supports_hostname(getProxyStruct()) != 0; - } -} diff --git a/generated/gtkd/gio/RemoteActionGroupIF.d b/generated/gtkd/gio/RemoteActionGroupIF.d deleted file mode 100644 index 87dc97645..000000000 --- a/generated/gtkd/gio/RemoteActionGroupIF.d +++ /dev/null @@ -1,111 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.RemoteActionGroupIF; - -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.Variant; - - -/** - * The GRemoteActionGroup interface is implemented by #GActionGroup - * instances that either transmit action invocations to other processes - * or receive action invocations in the local process from other - * processes. - * - * The interface has `_full` variants of the two - * methods on #GActionGroup used to activate actions: - * g_action_group_activate_action() and - * g_action_group_change_action_state(). These variants allow a - * "platform data" #GVariant to be specified: a dictionary providing - * context for the action invocation (for example: timestamps, startup - * notification IDs, etc). - * - * #GDBusActionGroup implements #GRemoteActionGroup. This provides a - * mechanism to send platform data for action invocations over D-Bus. - * - * Additionally, g_dbus_connection_export_action_group() will check if - * the exported #GActionGroup implements #GRemoteActionGroup and use the - * `_full` variants of the calls if available. This - * provides a mechanism by which to receive platform data for action - * invocations that arrive by way of D-Bus. - * - * Since: 2.32 - */ -public interface RemoteActionGroupIF{ - /** Get the main Gtk struct */ - public GRemoteActionGroup* getRemoteActionGroupStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_remote_action_group_get_type(); - } - - /** - * Activates the remote action. - * - * This is the same as g_action_group_activate_action() except that it - * allows for provision of "platform data" to be sent along with the - * activation request. This typically contains details such as the user - * interaction timestamp or startup notification information. - * - * @platform_data must be non-%NULL and must have the type - * %G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed. - * - * Params: - * actionName = the name of the action to activate - * parameter = the optional parameter to the activation - * platformData = the platform data to send - * - * Since: 2.32 - */ - public void activateActionFull(string actionName, Variant parameter, Variant platformData); - - /** - * Changes the state of a remote action. - * - * This is the same as g_action_group_change_action_state() except that - * it allows for provision of "platform data" to be sent along with the - * state change request. This typically contains details such as the - * user interaction timestamp or startup notification information. - * - * @platform_data must be non-%NULL and must have the type - * %G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed. - * - * Params: - * actionName = the name of the action to change the state of - * value = the new requested value for the state - * platformData = the platform data to send - * - * Since: 2.32 - */ - public void changeActionStateFull(string actionName, Variant value, Variant platformData); -} diff --git a/generated/gtkd/gio/RemoteActionGroupT.d b/generated/gtkd/gio/RemoteActionGroupT.d deleted file mode 100644 index 473a45ef1..000000000 --- a/generated/gtkd/gio/RemoteActionGroupT.d +++ /dev/null @@ -1,114 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.RemoteActionGroupT; - -public import gio.c.functions; -public import gio.c.types; -public import glib.Str; -public import glib.Variant; - - -/** - * The GRemoteActionGroup interface is implemented by #GActionGroup - * instances that either transmit action invocations to other processes - * or receive action invocations in the local process from other - * processes. - * - * The interface has `_full` variants of the two - * methods on #GActionGroup used to activate actions: - * g_action_group_activate_action() and - * g_action_group_change_action_state(). These variants allow a - * "platform data" #GVariant to be specified: a dictionary providing - * context for the action invocation (for example: timestamps, startup - * notification IDs, etc). - * - * #GDBusActionGroup implements #GRemoteActionGroup. This provides a - * mechanism to send platform data for action invocations over D-Bus. - * - * Additionally, g_dbus_connection_export_action_group() will check if - * the exported #GActionGroup implements #GRemoteActionGroup and use the - * `_full` variants of the calls if available. This - * provides a mechanism by which to receive platform data for action - * invocations that arrive by way of D-Bus. - * - * Since: 2.32 - */ -public template RemoteActionGroupT(TStruct) -{ - /** Get the main Gtk struct */ - public GRemoteActionGroup* getRemoteActionGroupStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GRemoteActionGroup*)getStruct(); - } - - - /** - * Activates the remote action. - * - * This is the same as g_action_group_activate_action() except that it - * allows for provision of "platform data" to be sent along with the - * activation request. This typically contains details such as the user - * interaction timestamp or startup notification information. - * - * @platform_data must be non-%NULL and must have the type - * %G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed. - * - * Params: - * actionName = the name of the action to activate - * parameter = the optional parameter to the activation - * platformData = the platform data to send - * - * Since: 2.32 - */ - public void activateActionFull(string actionName, Variant parameter, Variant platformData) - { - g_remote_action_group_activate_action_full(getRemoteActionGroupStruct(), Str.toStringz(actionName), (parameter is null) ? null : parameter.getVariantStruct(), (platformData is null) ? null : platformData.getVariantStruct()); - } - - /** - * Changes the state of a remote action. - * - * This is the same as g_action_group_change_action_state() except that - * it allows for provision of "platform data" to be sent along with the - * state change request. This typically contains details such as the - * user interaction timestamp or startup notification information. - * - * @platform_data must be non-%NULL and must have the type - * %G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed. - * - * Params: - * actionName = the name of the action to change the state of - * value = the new requested value for the state - * platformData = the platform data to send - * - * Since: 2.32 - */ - public void changeActionStateFull(string actionName, Variant value, Variant platformData) - { - g_remote_action_group_change_action_state_full(getRemoteActionGroupStruct(), Str.toStringz(actionName), (value is null) ? null : value.getVariantStruct(), (platformData is null) ? null : platformData.getVariantStruct()); - } -} diff --git a/generated/gtkd/gio/Resolver.d b/generated/gtkd/gio/Resolver.d deleted file mode 100644 index 294eb1235..000000000 --- a/generated/gtkd/gio/Resolver.d +++ /dev/null @@ -1,687 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Resolver; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InetAddress; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GResolver provides cancellable synchronous and asynchronous DNS - * resolution, for hostnames (g_resolver_lookup_by_address(), - * g_resolver_lookup_by_name() and their async variants) and SRV - * (service) records (g_resolver_lookup_service()). - * - * #GNetworkAddress and #GNetworkService provide wrappers around - * #GResolver functionality that also implement #GSocketConnectable, - * making it easy to connect to a remote host/service. - */ -public class Resolver : ObjectG -{ - /** the main Gtk struct */ - protected GResolver* gResolver; - - /** Get the main Gtk struct */ - public GResolver* getResolverStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gResolver; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gResolver; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GResolver* gResolver, bool ownedRef = false) - { - this.gResolver = gResolver; - super(cast(GObject*)gResolver, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_resolver_get_type(); - } - - /** - * Frees @addresses (which should be the return value from - * g_resolver_lookup_by_name() or g_resolver_lookup_by_name_finish()). - * (This is a convenience method; you can also simply free the results - * by hand.) - * - * Params: - * addresses = a #GList of #GInetAddress - * - * Since: 2.22 - */ - public static void freeAddresses(ListG addresses) - { - g_resolver_free_addresses((addresses is null) ? null : addresses.getListGStruct()); - } - - /** - * Frees @targets (which should be the return value from - * g_resolver_lookup_service() or g_resolver_lookup_service_finish()). - * (This is a convenience method; you can also simply free the - * results by hand.) - * - * Params: - * targets = a #GList of #GSrvTarget - * - * Since: 2.22 - */ - public static void freeTargets(ListG targets) - { - g_resolver_free_targets((targets is null) ? null : targets.getListGStruct()); - } - - /** - * Gets the default #GResolver. You should unref it when you are done - * with it. #GResolver may use its reference count as a hint about how - * many threads it should allocate for concurrent DNS resolutions. - * - * Returns: the default #GResolver. - * - * Since: 2.22 - */ - public static Resolver getDefault() - { - auto __p = g_resolver_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Resolver)(cast(GResolver*) __p, true); - } - - /** - * Synchronously reverse-resolves @address to determine its - * associated hostname. - * - * If the DNS resolution fails, @error (if non-%NULL) will be set to - * a value from #GResolverError. - * - * If @cancellable is non-%NULL, it can be used to cancel the - * operation, in which case @error (if non-%NULL) will be set to - * %G_IO_ERROR_CANCELLED. - * - * Params: - * address = the address to reverse-resolve - * cancellable = a #GCancellable, or %NULL - * - * Returns: a hostname (either ASCII-only, or in ASCII-encoded - * form), or %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public string lookupByAddress(InetAddress address, Cancellable cancellable) - { - GError* err = null; - - auto retStr = g_resolver_lookup_by_address(gResolver, (address is null) ? null : address.getInetAddressStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Begins asynchronously reverse-resolving @address to determine its - * associated hostname, and eventually calls @callback, which must - * call g_resolver_lookup_by_address_finish() to get the final result. - * - * Params: - * address = the address to reverse-resolve - * cancellable = a #GCancellable, or %NULL - * callback = callback to call after resolution completes - * userData = data for @callback - * - * Since: 2.22 - */ - public void lookupByAddressAsync(InetAddress address, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_resolver_lookup_by_address_async(gResolver, (address is null) ? null : address.getInetAddressStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Retrieves the result of a previous call to - * g_resolver_lookup_by_address_async(). - * - * If the DNS resolution failed, @error (if non-%NULL) will be set to - * a value from #GResolverError. If the operation was cancelled, - * @error will be set to %G_IO_ERROR_CANCELLED. - * - * Params: - * result = the result passed to your #GAsyncReadyCallback - * - * Returns: a hostname (either ASCII-only, or in ASCII-encoded - * form), or %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public string lookupByAddressFinish(AsyncResultIF result) - { - GError* err = null; - - auto retStr = g_resolver_lookup_by_address_finish(gResolver, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Synchronously resolves @hostname to determine its associated IP - * address(es). @hostname may be an ASCII-only or UTF-8 hostname, or - * the textual form of an IP address (in which case this just becomes - * a wrapper around g_inet_address_new_from_string()). - * - * On success, g_resolver_lookup_by_name() will return a non-empty #GList of - * #GInetAddress, sorted in order of preference and guaranteed to not - * contain duplicates. That is, if using the result to connect to - * @hostname, you should attempt to connect to the first address - * first, then the second if the first fails, etc. If you are using - * the result to listen on a socket, it is appropriate to add each - * result using e.g. g_socket_listener_add_address(). - * - * If the DNS resolution fails, @error (if non-%NULL) will be set to a - * value from #GResolverError and %NULL will be returned. - * - * If @cancellable is non-%NULL, it can be used to cancel the - * operation, in which case @error (if non-%NULL) will be set to - * %G_IO_ERROR_CANCELLED. - * - * If you are planning to connect to a socket on the resolved IP - * address, it may be easier to create a #GNetworkAddress and use its - * #GSocketConnectable interface. - * - * Params: - * hostname = the hostname to look up - * cancellable = a #GCancellable, or %NULL - * - * Returns: a non-empty #GList - * of #GInetAddress, or %NULL on error. You - * must unref each of the addresses and free the list when you are - * done with it. (You can use g_resolver_free_addresses() to do this.) - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ListG lookupByName(string hostname, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_resolver_lookup_by_name(gResolver, Str.toStringz(hostname), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Begins asynchronously resolving @hostname to determine its - * associated IP address(es), and eventually calls @callback, which - * must call g_resolver_lookup_by_name_finish() to get the result. - * See g_resolver_lookup_by_name() for more details. - * - * Params: - * hostname = the hostname to look up the address of - * cancellable = a #GCancellable, or %NULL - * callback = callback to call after resolution completes - * userData = data for @callback - * - * Since: 2.22 - */ - public void lookupByNameAsync(string hostname, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_resolver_lookup_by_name_async(gResolver, Str.toStringz(hostname), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Retrieves the result of a call to - * g_resolver_lookup_by_name_async(). - * - * If the DNS resolution failed, @error (if non-%NULL) will be set to - * a value from #GResolverError. If the operation was cancelled, - * @error will be set to %G_IO_ERROR_CANCELLED. - * - * Params: - * result = the result passed to your #GAsyncReadyCallback - * - * Returns: a #GList - * of #GInetAddress, or %NULL on error. See g_resolver_lookup_by_name() - * for more details. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ListG lookupByNameFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_resolver_lookup_by_name_finish(gResolver, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * This differs from g_resolver_lookup_by_name() in that you can modify - * the lookup behavior with @flags. For example this can be used to limit - * results with #G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY. - * - * Params: - * hostname = the hostname to look up - * flags = extra #GResolverNameLookupFlags for the lookup - * cancellable = a #GCancellable, or %NULL - * - * Returns: a non-empty #GList - * of #GInetAddress, or %NULL on error. You - * must unref each of the addresses and free the list when you are - * done with it. (You can use g_resolver_free_addresses() to do this.) - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public ListG lookupByNameWithFlags(string hostname, GResolverNameLookupFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_resolver_lookup_by_name_with_flags(gResolver, Str.toStringz(hostname), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Begins asynchronously resolving @hostname to determine its - * associated IP address(es), and eventually calls @callback, which - * must call g_resolver_lookup_by_name_with_flags_finish() to get the result. - * See g_resolver_lookup_by_name() for more details. - * - * Params: - * hostname = the hostname to look up the address of - * flags = extra #GResolverNameLookupFlags for the lookup - * cancellable = a #GCancellable, or %NULL - * callback = callback to call after resolution completes - * userData = data for @callback - * - * Since: 2.60 - */ - public void lookupByNameWithFlagsAsync(string hostname, GResolverNameLookupFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_resolver_lookup_by_name_with_flags_async(gResolver, Str.toStringz(hostname), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Retrieves the result of a call to - * g_resolver_lookup_by_name_with_flags_async(). - * - * If the DNS resolution failed, @error (if non-%NULL) will be set to - * a value from #GResolverError. If the operation was cancelled, - * @error will be set to %G_IO_ERROR_CANCELLED. - * - * Params: - * result = the result passed to your #GAsyncReadyCallback - * - * Returns: a #GList - * of #GInetAddress, or %NULL on error. See g_resolver_lookup_by_name() - * for more details. - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public ListG lookupByNameWithFlagsFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_resolver_lookup_by_name_with_flags_finish(gResolver, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Synchronously performs a DNS record lookup for the given @rrname and returns - * a list of records as #GVariant tuples. See #GResolverRecordType for - * information on what the records contain for each @record_type. - * - * If the DNS resolution fails, @error (if non-%NULL) will be set to - * a value from #GResolverError and %NULL will be returned. - * - * If @cancellable is non-%NULL, it can be used to cancel the - * operation, in which case @error (if non-%NULL) will be set to - * %G_IO_ERROR_CANCELLED. - * - * Params: - * rrname = the DNS name to look up the record for - * recordType = the type of DNS record to look up - * cancellable = a #GCancellable, or %NULL - * - * Returns: a non-empty #GList of - * #GVariant, or %NULL on error. You must free each of the records and the list - * when you are done with it. (You can use g_list_free_full() with - * g_variant_unref() to do this.) - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public ListG lookupRecords(string rrname, GResolverRecordType recordType, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_resolver_lookup_records(gResolver, Str.toStringz(rrname), recordType, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Begins asynchronously performing a DNS lookup for the given - * @rrname, and eventually calls @callback, which must call - * g_resolver_lookup_records_finish() to get the final result. See - * g_resolver_lookup_records() for more details. - * - * Params: - * rrname = the DNS name to look up the record for - * recordType = the type of DNS record to look up - * cancellable = a #GCancellable, or %NULL - * callback = callback to call after resolution completes - * userData = data for @callback - * - * Since: 2.34 - */ - public void lookupRecordsAsync(string rrname, GResolverRecordType recordType, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_resolver_lookup_records_async(gResolver, Str.toStringz(rrname), recordType, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Retrieves the result of a previous call to - * g_resolver_lookup_records_async(). Returns a non-empty list of records as - * #GVariant tuples. See #GResolverRecordType for information on what the - * records contain. - * - * If the DNS resolution failed, @error (if non-%NULL) will be set to - * a value from #GResolverError. If the operation was cancelled, - * @error will be set to %G_IO_ERROR_CANCELLED. - * - * Params: - * result = the result passed to your #GAsyncReadyCallback - * - * Returns: a non-empty #GList of - * #GVariant, or %NULL on error. You must free each of the records and the list - * when you are done with it. (You can use g_list_free_full() with - * g_variant_unref() to do this.) - * - * Since: 2.34 - * - * Throws: GException on failure. - */ - public ListG lookupRecordsFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_resolver_lookup_records_finish(gResolver, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Synchronously performs a DNS SRV lookup for the given @service and - * @protocol in the given @domain and returns an array of #GSrvTarget. - * @domain may be an ASCII-only or UTF-8 hostname. Note also that the - * @service and @protocol arguments do not include the leading underscore - * that appears in the actual DNS entry. - * - * On success, g_resolver_lookup_service() will return a non-empty #GList of - * #GSrvTarget, sorted in order of preference. (That is, you should - * attempt to connect to the first target first, then the second if - * the first fails, etc.) - * - * If the DNS resolution fails, @error (if non-%NULL) will be set to - * a value from #GResolverError and %NULL will be returned. - * - * If @cancellable is non-%NULL, it can be used to cancel the - * operation, in which case @error (if non-%NULL) will be set to - * %G_IO_ERROR_CANCELLED. - * - * If you are planning to connect to the service, it is usually easier - * to create a #GNetworkService and use its #GSocketConnectable - * interface. - * - * Params: - * service = the service type to look up (eg, "ldap") - * protocol = the networking protocol to use for @service (eg, "tcp") - * domain = the DNS domain to look up the service in - * cancellable = a #GCancellable, or %NULL - * - * Returns: a non-empty #GList of - * #GSrvTarget, or %NULL on error. You must free each of the targets and the - * list when you are done with it. (You can use g_resolver_free_targets() to do - * this.) - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ListG lookupService(string service, string protocol, string domain, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_resolver_lookup_service(gResolver, Str.toStringz(service), Str.toStringz(protocol), Str.toStringz(domain), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Begins asynchronously performing a DNS SRV lookup for the given - * @service and @protocol in the given @domain, and eventually calls - * @callback, which must call g_resolver_lookup_service_finish() to - * get the final result. See g_resolver_lookup_service() for more - * details. - * - * Params: - * service = the service type to look up (eg, "ldap") - * protocol = the networking protocol to use for @service (eg, "tcp") - * domain = the DNS domain to look up the service in - * cancellable = a #GCancellable, or %NULL - * callback = callback to call after resolution completes - * userData = data for @callback - * - * Since: 2.22 - */ - public void lookupServiceAsync(string service, string protocol, string domain, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_resolver_lookup_service_async(gResolver, Str.toStringz(service), Str.toStringz(protocol), Str.toStringz(domain), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Retrieves the result of a previous call to - * g_resolver_lookup_service_async(). - * - * If the DNS resolution failed, @error (if non-%NULL) will be set to - * a value from #GResolverError. If the operation was cancelled, - * @error will be set to %G_IO_ERROR_CANCELLED. - * - * Params: - * result = the result passed to your #GAsyncReadyCallback - * - * Returns: a non-empty #GList of - * #GSrvTarget, or %NULL on error. See g_resolver_lookup_service() for more - * details. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ListG lookupServiceFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_resolver_lookup_service_finish(gResolver, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Sets @resolver to be the application's default resolver (reffing - * @resolver, and unreffing the previous default resolver, if any). - * Future calls to g_resolver_get_default() will return this resolver. - * - * This can be used if an application wants to perform any sort of DNS - * caching or "pinning"; it can implement its own #GResolver that - * calls the original default resolver for DNS operations, and - * implements its own cache policies on top of that, and then set - * itself as the default resolver for all later code to use. - * - * Since: 2.22 - */ - public void setDefault() - { - g_resolver_set_default(gResolver); - } - - /** - * Emitted when the resolver notices that the system resolver - * configuration has changed. - */ - gulong addOnReload(void delegate(Resolver) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "reload", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/Resource.d b/generated/gtkd/gio/Resource.d deleted file mode 100644 index 2a99d1f8c..000000000 --- a/generated/gtkd/gio/Resource.d +++ /dev/null @@ -1,667 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Resource; - -private import gio.InputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Applications and libraries often contain binary or textual data that is - * really part of the application, rather than user data. For instance - * #GtkBuilder .ui files, splashscreen images, GMenu markup XML, CSS files, - * icons, etc. These are often shipped as files in `$datadir/appname`, or - * manually included as literal strings in the code. - * - * The #GResource API and the [glib-compile-resources][glib-compile-resources] program - * provide a convenient and efficient alternative to this which has some nice properties. You - * maintain the files as normal files, so its easy to edit them, but during the build the files - * are combined into a binary bundle that is linked into the executable. This means that loading - * the resource files are efficient (as they are already in memory, shared with other instances) and - * simple (no need to check for things like I/O errors or locate the files in the filesystem). It - * also makes it easier to create relocatable applications. - * - * Resource files can also be marked as compressed. Such files will be included in the resource bundle - * in a compressed form, but will be automatically uncompressed when the resource is used. This - * is very useful e.g. for larger text files that are parsed once (or rarely) and then thrown away. - * - * Resource files can also be marked to be preprocessed, by setting the value of the - * `preprocess` attribute to a comma-separated list of preprocessing options. - * The only options currently supported are: - * - * `xml-stripblanks` which will use the xmllint command - * to strip ignorable whitespace from the XML file. For this to work, - * the `XMLLINT` environment variable must be set to the full path to - * the xmllint executable, or xmllint must be in the `PATH`; otherwise - * the preprocessing step is skipped. - * - * `to-pixdata` (deprecated since gdk-pixbuf 2.32) which will use the - * `gdk-pixbuf-pixdata` command to convert images to the #GdkPixdata format, - * which allows you to create pixbufs directly using the data inside the - * resource file, rather than an (uncompressed) copy of it. For this, the - * `gdk-pixbuf-pixdata` program must be in the `PATH`, or the - * `GDK_PIXBUF_PIXDATA` environment variable must be set to the full path to the - * `gdk-pixbuf-pixdata` executable; otherwise the resource compiler will abort. - * `to-pixdata` has been deprecated since gdk-pixbuf 2.32, as #GResource - * supports embedding modern image formats just as well. Instead of using it, - * embed a PNG or SVG file in your #GResource. - * - * `json-stripblanks` which will use the `json-glib-format` command to strip - * ignorable whitespace from the JSON file. For this to work, the - * `JSON_GLIB_FORMAT` environment variable must be set to the full path to the - * `json-glib-format` executable, or it must be in the `PATH`; - * otherwise the preprocessing step is skipped. In addition, at least version - * 1.6 of `json-glib-format` is required. - * - * Resource files will be exported in the GResource namespace using the - * combination of the given `prefix` and the filename from the `file` element. - * The `alias` attribute can be used to alter the filename to expose them at a - * different location in the resource namespace. Typically, this is used to - * include files from a different source directory without exposing the source - * directory in the resource namespace, as in the example below. - * - * Resource bundles are created by the [glib-compile-resources][glib-compile-resources] program - * which takes an XML file that describes the bundle, and a set of files that the XML references. These - * are combined into a binary resource bundle. - * - * An example resource description: - * |[ - * - * - * - * data/splashscreen.png - * dialog.ui - * menumarkup.xml - * data/example.css - * - * - * ]| - * - * This will create a resource bundle with the following files: - * |[ - * /org/gtk/Example/data/splashscreen.png - * /org/gtk/Example/dialog.ui - * /org/gtk/Example/menumarkup.xml - * /org/gtk/Example/example.css - * ]| - * - * Note that all resources in the process share the same namespace, so use Java-style - * path prefixes (like in the above example) to avoid conflicts. - * - * You can then use [glib-compile-resources][glib-compile-resources] to compile the XML to a - * binary bundle that you can load with g_resource_load(). However, its more common to use the --generate-source and - * --generate-header arguments to create a source file and header to link directly into your application. - * This will generate `get_resource()`, `register_resource()` and - * `unregister_resource()` functions, prefixed by the `--c-name` argument passed - * to [glib-compile-resources][glib-compile-resources]. `get_resource()` returns - * the generated #GResource object. The register and unregister functions - * register the resource so its files can be accessed using - * g_resources_lookup_data(). - * - * Once a #GResource has been created and registered all the data in it can be accessed globally in the process by - * using API calls like g_resources_open_stream() to stream the data or g_resources_lookup_data() to get a direct pointer - * to the data. You can also use URIs like "resource:///org/gtk/Example/data/splashscreen.png" with #GFile to access - * the resource data. - * - * Some higher-level APIs, such as #GtkApplication, will automatically load - * resources from certain well-known paths in the resource namespace as a - * convenience. See the documentation for those APIs for details. - * - * There are two forms of the generated source, the default version uses the compiler support for constructor - * and destructor functions (where available) to automatically create and register the #GResource on startup - * or library load time. If you pass `--manual-register`, two functions to register/unregister the resource are created - * instead. This requires an explicit initialization call in your application/library, but it works on all platforms, - * even on the minor ones where constructors are not supported. (Constructor support is available for at least Win32, Mac OS and Linux.) - * - * Note that resource data can point directly into the data segment of e.g. a library, so if you are unloading libraries - * during runtime you need to be very careful with keeping around pointers to data from a resource, as this goes away - * when the library is unloaded. However, in practice this is not generally a problem, since most resource accesses - * are for your own resources, and resource data is often used once, during parsing, and then released. - * - * When debugging a program or testing a change to an installed version, it is often useful to be able to - * replace resources in the program or library, without recompiling, for debugging or quick hacking and testing - * purposes. Since GLib 2.50, it is possible to use the `G_RESOURCE_OVERLAYS` environment variable to selectively overlay - * resources with replacements from the filesystem. It is a %G_SEARCHPATH_SEPARATOR-separated list of substitutions to perform - * during resource lookups. It is ignored when running in a setuid process. - * - * A substitution has the form - * - * |[ - * /org/gtk/libgtk=/home/desrt/gtk-overlay - * ]| - * - * The part before the `=` is the resource subpath for which the overlay applies. The part after is a - * filesystem path which contains files and subdirectories as you would like to be loaded as resources with the - * equivalent names. - * - * In the example above, if an application tried to load a resource with the resource path - * `/org/gtk/libgtk/ui/gtkdialog.ui` then GResource would check the filesystem path - * `/home/desrt/gtk-overlay/ui/gtkdialog.ui`. If a file was found there, it would be used instead. This is an - * overlay, not an outright replacement, which means that if a file is not found at that path, the built-in - * version will be used instead. Whiteouts are not currently supported. - * - * Substitutions must start with a slash, and must not contain a trailing slash before the '='. The path after - * the slash should ideally be absolute, but this is not strictly required. It is possible to overlay the - * location of a single resource with an individual file. - * - * Since: 2.32 - */ -public class Resource -{ - /** the main Gtk struct */ - protected GResource* gResource; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GResource* getResourceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gResource; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gResource; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GResource* gResource, bool ownedRef = false) - { - this.gResource = gResource; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_resource_unref(gResource); - } - - - /** */ - public static GType getType() - { - return g_resource_get_type(); - } - - /** - * Creates a GResource from a reference to the binary resource bundle. - * This will keep a reference to @data while the resource lives, so - * the data should not be modified or freed. - * - * If you want to use this resource in the global resource namespace you need - * to register it with g_resources_register(). - * - * Note: @data must be backed by memory that is at least pointer aligned. - * Otherwise this function will internally create a copy of the memory since - * GLib 2.56, or in older versions fail and exit the process. - * - * If @data is empty or corrupt, %G_RESOURCE_ERROR_INTERNAL will be returned. - * - * Params: - * data = A #GBytes - * - * Returns: a new #GResource, or %NULL on error - * - * Since: 2.32 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Bytes data) - { - GError* err = null; - - auto __p = g_resource_new_from_data((data is null) ? null : data.getBytesStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_data"); - } - - this(cast(GResource*) __p); - } - - /** - * Registers the resource with the process-global set of resources. - * Once a resource is registered the files in it can be accessed - * with the global resource lookup functions like g_resources_lookup_data(). - * - * Params: - * resource = A #GResource - * - * Since: 2.32 - */ - public static void register(Resource resource) - { - g_resources_register((resource is null) ? null : resource.getResourceStruct()); - } - - /** - * Unregisters the resource from the process-global set of resources. - * - * Params: - * resource = A #GResource - * - * Since: 2.32 - */ - public static void unregister(Resource resource) - { - g_resources_unregister((resource is null) ? null : resource.getResourceStruct()); - } - - /** - * Returns all the names of children at the specified @path in the resource. - * The return result is a %NULL terminated list of strings which should - * be released with g_strfreev(). - * - * If @path is invalid or does not exist in the #GResource, - * %G_RESOURCE_ERROR_NOT_FOUND will be returned. - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * - * Returns: an array of constant strings - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public string[] enumerateChildren(string path, GResourceLookupFlags lookupFlags) - { - GError* err = null; - - auto retStr = g_resource_enumerate_children(gResource, Str.toStringz(path), lookupFlags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Looks for a file at the specified @path in the resource and - * if found returns information about it. - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * size = a location to place the length of the contents of the file, - * or %NULL if the length is not needed - * flags = a location to place the flags about the file, - * or %NULL if the length is not needed - * - * Returns: %TRUE if the file was found. %FALSE if there were errors - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool getInfo(string path, GResourceLookupFlags lookupFlags, out size_t size, out uint flags) - { - GError* err = null; - - auto __p = g_resource_get_info(gResource, Str.toStringz(path), lookupFlags, &size, &flags, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Looks for a file at the specified @path in the resource and - * returns a #GBytes that lets you directly access the data in - * memory. - * - * The data is always followed by a zero byte, so you - * can safely use the data as a C string. However, that byte - * is not included in the size of the GBytes. - * - * For uncompressed resource files this is a pointer directly into - * the resource bundle, which is typically in some readonly data section - * in the program binary. For compressed files we allocate memory on - * the heap and automatically uncompress the data. - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * - * Returns: #GBytes or %NULL on error. - * Free the returned object with g_bytes_unref() - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public Bytes lookupData(string path, GResourceLookupFlags lookupFlags) - { - GError* err = null; - - auto __p = g_resource_lookup_data(gResource, Str.toStringz(path), lookupFlags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Looks for a file at the specified @path in the resource and - * returns a #GInputStream that lets you read the data. - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * - * Returns: #GInputStream or %NULL on error. - * Free the returned object with g_object_unref() - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public InputStream openStream(string path, GResourceLookupFlags lookupFlags) - { - GError* err = null; - - auto __p = g_resource_open_stream(gResource, Str.toStringz(path), lookupFlags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p, true); - } - - alias doref = ref_; - /** - * Atomically increments the reference count of @resource by one. This - * function is MT-safe and may be called from any thread. - * - * Returns: The passed in #GResource - * - * Since: 2.32 - */ - public Resource ref_() - { - auto __p = g_resource_ref(gResource); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Resource)(cast(GResource*) __p, true); - } - - /** - * Atomically decrements the reference count of @resource by one. If the - * reference count drops to 0, all memory allocated by the resource is - * released. This function is MT-safe and may be called from any - * thread. - * - * Since: 2.32 - */ - public void unref() - { - g_resource_unref(gResource); - } - - /** - * Loads a binary resource bundle and creates a #GResource representation of it, allowing - * you to query it for data. - * - * If you want to use this resource in the global resource namespace you need - * to register it with g_resources_register(). - * - * If @filename is empty or the data in it is corrupt, - * %G_RESOURCE_ERROR_INTERNAL will be returned. If @filename doesn’t exist, or - * there is an error in reading it, an error from g_mapped_file_new() will be - * returned. - * - * Params: - * filename = the path of a filename to load, in the GLib filename encoding - * - * Returns: a new #GResource, or %NULL on error - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public static Resource load(string filename) - { - GError* err = null; - - auto __p = g_resource_load(Str.toStringz(filename), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Resource)(cast(GResource*) __p, true); - } - - /** - * Returns all the names of children at the specified @path in the set of - * globally registered resources. - * The return result is a %NULL terminated list of strings which should - * be released with g_strfreev(). - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * - * Returns: an array of constant strings - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public static string[] resourcesEnumerateChildren(string path, GResourceLookupFlags lookupFlags) - { - GError* err = null; - - auto retStr = g_resources_enumerate_children(Str.toStringz(path), lookupFlags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Looks for a file at the specified @path in the set of - * globally registered resources and if found returns information about it. - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * size = a location to place the length of the contents of the file, - * or %NULL if the length is not needed - * flags = a location to place the #GResourceFlags about the file, - * or %NULL if the flags are not needed - * - * Returns: %TRUE if the file was found. %FALSE if there were errors - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public static bool resourcesGetInfo(string path, GResourceLookupFlags lookupFlags, out size_t size, out uint flags) - { - GError* err = null; - - auto __p = g_resources_get_info(Str.toStringz(path), lookupFlags, &size, &flags, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Looks for a file at the specified @path in the set of - * globally registered resources and returns a #GBytes that - * lets you directly access the data in memory. - * - * The data is always followed by a zero byte, so you - * can safely use the data as a C string. However, that byte - * is not included in the size of the GBytes. - * - * For uncompressed resource files this is a pointer directly into - * the resource bundle, which is typically in some readonly data section - * in the program binary. For compressed files we allocate memory on - * the heap and automatically uncompress the data. - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * - * Returns: #GBytes or %NULL on error. - * Free the returned object with g_bytes_unref() - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public static Bytes resourcesLookupData(string path, GResourceLookupFlags lookupFlags) - { - GError* err = null; - - auto __p = g_resources_lookup_data(Str.toStringz(path), lookupFlags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Looks for a file at the specified @path in the set of - * globally registered resources and returns a #GInputStream - * that lets you read the data. - * - * @lookup_flags controls the behaviour of the lookup. - * - * Params: - * path = A pathname inside the resource - * lookupFlags = A #GResourceLookupFlags - * - * Returns: #GInputStream or %NULL on error. - * Free the returned object with g_object_unref() - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public static InputStream resourcesOpenStream(string path, GResourceLookupFlags lookupFlags) - { - GError* err = null; - - auto __p = g_resources_open_stream(Str.toStringz(path), lookupFlags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p, true); - } -} diff --git a/generated/gtkd/gio/SeekableIF.d b/generated/gtkd/gio/SeekableIF.d deleted file mode 100644 index 8245c2831..000000000 --- a/generated/gtkd/gio/SeekableIF.d +++ /dev/null @@ -1,137 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SeekableIF; - -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; - - -/** - * #GSeekable is implemented by streams (implementations of - * #GInputStream or #GOutputStream) that support seeking. - * - * Seekable streams largely fall into two categories: resizable and - * fixed-size. - * - * #GSeekable on fixed-sized streams is approximately the same as POSIX - * lseek() on a block device (for example: attempting to seek past the - * end of the device is an error). Fixed streams typically cannot be - * truncated. - * - * #GSeekable on resizable streams is approximately the same as POSIX - * lseek() on a normal file. Seeking past the end and writing data will - * usually cause the stream to resize by introducing zero bytes. - */ -public interface SeekableIF{ - /** Get the main Gtk struct */ - public GSeekable* getSeekableStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_seekable_get_type(); - } - - /** - * Tests if the stream supports the #GSeekableIface. - * - * Returns: %TRUE if @seekable can be seeked. %FALSE otherwise. - */ - public bool canSeek(); - - /** - * Tests if the length of the stream can be adjusted with - * g_seekable_truncate(). - * - * Returns: %TRUE if the stream can be truncated, %FALSE otherwise. - */ - public bool canTruncate(); - - /** - * Seeks in the stream by the given @offset, modified by @type. - * - * Attempting to seek past the end of the stream will have different - * results depending on if the stream is fixed-sized or resizable. If - * the stream is resizable then seeking past the end and then writing - * will result in zeros filling the empty space. Seeking past the end - * of a resizable stream and reading will result in EOF. Seeking past - * the end of a fixed-sized stream will fail. - * - * Any operation that would result in a negative offset will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * offset = a #goffset. - * type = a #GSeekType. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if successful. If an error - * has occurred, this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - public bool seek(long offset, GSeekType type, Cancellable cancellable); - - /** - * Tells the current position within the stream. - * - * Returns: the offset from the beginning of the buffer. - */ - public long tell(); - - /** - * Sets the length of the stream to @offset. If the stream was previously - * larger than @offset, the extra data is discarded. If the stream was - * previously shorter than @offset, it is extended with NUL ('\0') bytes. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * Params: - * offset = new length for @seekable, in bytes. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if successful. If an error - * has occurred, this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - public bool truncate(long offset, Cancellable cancellable); -} diff --git a/generated/gtkd/gio/SeekableT.d b/generated/gtkd/gio/SeekableT.d deleted file mode 100644 index c1594e95b..000000000 --- a/generated/gtkd/gio/SeekableT.d +++ /dev/null @@ -1,167 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SeekableT; - -public import gio.Cancellable; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; - - -/** - * #GSeekable is implemented by streams (implementations of - * #GInputStream or #GOutputStream) that support seeking. - * - * Seekable streams largely fall into two categories: resizable and - * fixed-size. - * - * #GSeekable on fixed-sized streams is approximately the same as POSIX - * lseek() on a block device (for example: attempting to seek past the - * end of the device is an error). Fixed streams typically cannot be - * truncated. - * - * #GSeekable on resizable streams is approximately the same as POSIX - * lseek() on a normal file. Seeking past the end and writing data will - * usually cause the stream to resize by introducing zero bytes. - */ -public template SeekableT(TStruct) -{ - /** Get the main Gtk struct */ - public GSeekable* getSeekableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GSeekable*)getStruct(); - } - - - /** - * Tests if the stream supports the #GSeekableIface. - * - * Returns: %TRUE if @seekable can be seeked. %FALSE otherwise. - */ - public bool canSeek() - { - return g_seekable_can_seek(getSeekableStruct()) != 0; - } - - /** - * Tests if the length of the stream can be adjusted with - * g_seekable_truncate(). - * - * Returns: %TRUE if the stream can be truncated, %FALSE otherwise. - */ - public bool canTruncate() - { - return g_seekable_can_truncate(getSeekableStruct()) != 0; - } - - /** - * Seeks in the stream by the given @offset, modified by @type. - * - * Attempting to seek past the end of the stream will have different - * results depending on if the stream is fixed-sized or resizable. If - * the stream is resizable then seeking past the end and then writing - * will result in zeros filling the empty space. Seeking past the end - * of a resizable stream and reading will result in EOF. Seeking past - * the end of a fixed-sized stream will fail. - * - * Any operation that would result in a negative offset will fail. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * offset = a #goffset. - * type = a #GSeekType. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if successful. If an error - * has occurred, this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - public bool seek(long offset, GSeekType type, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_seekable_seek(getSeekableStruct(), offset, type, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tells the current position within the stream. - * - * Returns: the offset from the beginning of the buffer. - */ - public long tell() - { - return g_seekable_tell(getSeekableStruct()); - } - - /** - * Sets the length of the stream to @offset. If the stream was previously - * larger than @offset, the extra data is discarded. If the stream was - * previously shorter than @offset, it is extended with NUL ('\0') bytes. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an - * operation was partially finished when the operation was cancelled the - * partial result will be returned, without an error. - * - * Params: - * offset = new length for @seekable, in bytes. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: %TRUE if successful. If an error - * has occurred, this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - public bool truncate(long offset, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_seekable_truncate(getSeekableStruct(), offset, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/Settings.d b/generated/gtkd/gio/Settings.d deleted file mode 100644 index 8db79d0d1..000000000 --- a/generated/gtkd/gio/Settings.d +++ /dev/null @@ -1,1658 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Settings; - -private import gio.ActionIF; -private import gio.SettingsBackend; -private import gio.SettingsSchema; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The #GSettings class provides a convenient API for storing and retrieving - * application settings. - * - * Reads and writes can be considered to be non-blocking. Reading - * settings with #GSettings is typically extremely fast: on - * approximately the same order of magnitude (but slower than) a - * #GHashTable lookup. Writing settings is also extremely fast in terms - * of time to return to your application, but can be extremely expensive - * for other threads and other processes. Many settings backends - * (including dconf) have lazy initialisation which means in the common - * case of the user using their computer without modifying any settings - * a lot of work can be avoided. For dconf, the D-Bus service doesn't - * even need to be started in this case. For this reason, you should - * only ever modify #GSettings keys in response to explicit user action. - * Particular care should be paid to ensure that modifications are not - * made during startup -- for example, when setting the initial value - * of preferences widgets. The built-in g_settings_bind() functionality - * is careful not to write settings in response to notify signals as a - * result of modifications that it makes to widgets. - * - * When creating a GSettings instance, you have to specify a schema - * that describes the keys in your settings and their types and default - * values, as well as some other information. - * - * Normally, a schema has a fixed path that determines where the settings - * are stored in the conceptual global tree of settings. However, schemas - * can also be '[relocatable][gsettings-relocatable]', i.e. not equipped with - * a fixed path. This is - * useful e.g. when the schema describes an 'account', and you want to be - * able to store a arbitrary number of accounts. - * - * Paths must start with and end with a forward slash character ('/') - * and must not contain two sequential slash characters. Paths should - * be chosen based on a domain name associated with the program or - * library to which the settings belong. Examples of paths are - * "/org/gtk/settings/file-chooser/" and "/ca/desrt/dconf-editor/". - * Paths should not start with "/apps/", "/desktop/" or "/system/" as - * they often did in GConf. - * - * Unlike other configuration systems (like GConf), GSettings does not - * restrict keys to basic types like strings and numbers. GSettings stores - * values as #GVariant, and allows any #GVariantType for keys. Key names - * are restricted to lowercase characters, numbers and '-'. Furthermore, - * the names must begin with a lowercase character, must not end - * with a '-', and must not contain consecutive dashes. - * - * Similar to GConf, the default values in GSettings schemas can be - * localized, but the localized values are stored in gettext catalogs - * and looked up with the domain that is specified in the - * `gettext-domain` attribute of the or - * elements and the category that is specified in the `l10n` attribute of - * the element. The string which is translated includes all text in - * the element, including any surrounding quotation marks. - * - * The `l10n` attribute must be set to `messages` or `time`, and sets the - * [locale category for - * translation](https://www.gnu.org/software/gettext/manual/html_node/Aspects.html#index-locale-categories-1). - * The `messages` category should be used by default; use `time` for - * translatable date or time formats. A translation comment can be added as an - * XML comment immediately above the element — it is recommended to - * add these comments to aid translators understand the meaning and - * implications of the default value. An optional translation `context` - * attribute can be set on the element to disambiguate multiple - * defaults which use the same string. - * - * For example: - * |[ - * - * ['bad', 'words'] - * ]| - * - * Translations of default values must remain syntactically valid serialized - * #GVariants (e.g. retaining any surrounding quotation marks) or runtime - * errors will occur. - * - * GSettings uses schemas in a compact binary form that is created - * by the [glib-compile-schemas][glib-compile-schemas] - * utility. The input is a schema description in an XML format. - * - * A DTD for the gschema XML format can be found here: - * [gschema.dtd](https://git.gnome.org/browse/glib/tree/gio/gschema.dtd) - * - * The [glib-compile-schemas][glib-compile-schemas] tool expects schema - * files to have the extension `.gschema.xml`. - * - * At runtime, schemas are identified by their id (as specified in the - * id attribute of the element). The convention for schema - * ids is to use a dotted name, similar in style to a D-Bus bus name, - * e.g. "org.gnome.SessionManager". In particular, if the settings are - * for a specific service that owns a D-Bus bus name, the D-Bus bus name - * and schema id should match. For schemas which deal with settings not - * associated with one named application, the id should not use - * StudlyCaps, e.g. "org.gnome.font-rendering". - * - * In addition to #GVariant types, keys can have types that have - * enumerated types. These can be described by a , - * or element, as seen in the - * [example][schema-enumerated]. The underlying type of such a key - * is string, but you can use g_settings_get_enum(), g_settings_set_enum(), - * g_settings_get_flags(), g_settings_set_flags() access the numeric values - * corresponding to the string value of enum and flags keys. - * - * An example for default value: - * |[ - * - * - * - * - * "Hello, earthlings" - * A greeting - * - * Greeting of the invading martians - * - * - * - * - * (20,30) - * - * - * - * "" - * Empty strings have to be provided in GVariant form - * - * - * - * - * ]| - * - * An example for ranges, choices and enumerated types: - * |[ - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * 10 - * - * - * - * - * - * - * - * - * - * - * - * - * 'Joe' - * - * - * - * 'first' - * - * - * - * ["flag1","flag2"] - * - * - * - * ]| - * - * ## Vendor overrides - * - * Default values are defined in the schemas that get installed by - * an application. Sometimes, it is necessary for a vendor or distributor - * to adjust these defaults. Since patching the XML source for the schema - * is inconvenient and error-prone, - * [glib-compile-schemas][glib-compile-schemas] reads so-called vendor - * override' files. These are keyfiles in the same directory as the XML - * schema sources which can override default values. The schema id serves - * as the group name in the key file, and the values are expected in - * serialized GVariant form, as in the following example: - * |[ - * [org.gtk.Example] - * key1='string' - * key2=1.5 - * ]| - * - * glib-compile-schemas expects schema files to have the extension - * `.gschema.override`. - * - * ## Binding - * - * A very convenient feature of GSettings lets you bind #GObject properties - * directly to settings, using g_settings_bind(). Once a GObject property - * has been bound to a setting, changes on either side are automatically - * propagated to the other side. GSettings handles details like mapping - * between GObject and GVariant types, and preventing infinite cycles. - * - * This makes it very easy to hook up a preferences dialog to the - * underlying settings. To make this even more convenient, GSettings - * looks for a boolean property with the name "sensitivity" and - * automatically binds it to the writability of the bound setting. - * If this 'magic' gets in the way, it can be suppressed with the - * #G_SETTINGS_BIND_NO_SENSITIVITY flag. - * - * ## Relocatable schemas # {#gsettings-relocatable} - * - * A relocatable schema is one with no `path` attribute specified on its - * element. By using g_settings_new_with_path(), a #GSettings object - * can be instantiated for a relocatable schema, assigning a path to the - * instance. Paths passed to g_settings_new_with_path() will typically be - * constructed dynamically from a constant prefix plus some form of instance - * identifier; but they must still be valid GSettings paths. Paths could also - * be constant and used with a globally installed schema originating from a - * dependency library. - * - * For example, a relocatable schema could be used to store geometry information - * for different windows in an application. If the schema ID was - * `org.foo.MyApp.Window`, it could be instantiated for paths - * `/org/foo/MyApp/main/`, `/org/foo/MyApp/document-1/`, - * `/org/foo/MyApp/document-2/`, etc. If any of the paths are well-known - * they can be specified as elements in the parent schema, e.g.: - * |[ - * - * - * - * ]| - * - * ## Build system integration # {#gsettings-build-system} - * - * GSettings comes with autotools integration to simplify compiling and - * installing schemas. To add GSettings support to an application, add the - * following to your `configure.ac`: - * |[ - * GLIB_GSETTINGS - * ]| - * - * In the appropriate `Makefile.am`, use the following snippet to compile and - * install the named schema: - * |[ - * gsettings_SCHEMAS = org.foo.MyApp.gschema.xml - * EXTRA_DIST = $(gsettings_SCHEMAS) - * - * @GSETTINGS_RULES@ - * ]| - * - * No changes are needed to the build system to mark a schema XML file for - * translation. Assuming it sets the `gettext-domain` attribute, a schema may - * be marked for translation by adding it to `POTFILES.in`, assuming gettext - * 0.19 is in use (the preferred method for translation): - * |[ - * data/org.foo.MyApp.gschema.xml - * ]| - * - * Alternatively, if intltool 0.50.1 is in use: - * |[ - * [type: gettext/gsettings]data/org.foo.MyApp.gschema.xml - * ]| - * - * GSettings will use gettext to look up translations for the and - * elements, and also any elements which have a `l10n` - * attribute set. Translations must not be included in the `.gschema.xml` file - * by the build system, for example by using intltool XML rules with a - * `.gschema.xml.in` template. - * - * If an enumerated type defined in a C header file is to be used in a GSettings - * schema, it can either be defined manually using an element in the - * schema XML, or it can be extracted automatically from the C header. This - * approach is preferred, as it ensures the two representations are always - * synchronised. To do so, add the following to the relevant `Makefile.am`: - * |[ - * gsettings_ENUM_NAMESPACE = org.foo.MyApp - * gsettings_ENUM_FILES = my-app-enums.h my-app-misc.h - * ]| - * - * `gsettings_ENUM_NAMESPACE` specifies the schema namespace for the enum files, - * which are specified in `gsettings_ENUM_FILES`. This will generate a - * `org.foo.MyApp.enums.xml` file containing the extracted enums, which will be - * automatically included in the schema compilation, install and uninstall - * rules. It should not be committed to version control or included in - * `EXTRA_DIST`. - */ -public class Settings : ObjectG -{ - /** the main Gtk struct */ - protected GSettings* gSettings; - - /** Get the main Gtk struct */ - public GSettings* getSettingsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSettings; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSettings; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSettings* gSettings, bool ownedRef = false) - { - this.gSettings = gSettings; - super(cast(GObject*)gSettings, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_settings_get_type(); - } - - /** - * Creates a new #GSettings object with the schema specified by - * @schema_id. - * - * It is an error for the schema to not exist: schemas are an - * essential part of a program, as they provide type information. - * If schemas need to be dynamically loaded (for example, from an - * optional runtime dependency), g_settings_schema_source_lookup() - * can be used to test for their existence before loading them. - * - * Signals on the newly created #GSettings object will be dispatched - * via the thread-default #GMainContext in effect at the time of the - * call to g_settings_new(). The new #GSettings will hold a reference - * on the context. See g_main_context_push_thread_default(). - * - * Params: - * schemaId = the id of the schema - * - * Returns: a new #GSettings object - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string schemaId) - { - auto __p = g_settings_new(Str.toStringz(schemaId)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSettings*) __p, true); - } - - /** - * Creates a new #GSettings object with a given schema, backend and - * path. - * - * It should be extremely rare that you ever want to use this function. - * It is made available for advanced use-cases (such as plugin systems - * that want to provide access to schemas loaded from custom locations, - * etc). - * - * At the most basic level, a #GSettings object is a pure composition of - * 4 things: a #GSettingsSchema, a #GSettingsBackend, a path within that - * backend, and a #GMainContext to which signals are dispatched. - * - * This constructor therefore gives you full control over constructing - * #GSettings instances. The first 3 parameters are given directly as - * @schema, @backend and @path, and the main context is taken from the - * thread-default (as per g_settings_new()). - * - * If @backend is %NULL then the default backend is used. - * - * If @path is %NULL then the path from the schema is used. It is an - * error if @path is %NULL and the schema has no path of its own or if - * @path is non-%NULL and not equal to the path that the schema does - * have. - * - * Params: - * schema = a #GSettingsSchema - * backend = a #GSettingsBackend - * path = the path to use - * - * Returns: a new #GSettings object - * - * Since: 2.32 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(SettingsSchema schema, SettingsBackend backend, string path) - { - auto __p = g_settings_new_full((schema is null) ? null : schema.getSettingsSchemaStruct(), (backend is null) ? null : backend.getSettingsBackendStruct(), Str.toStringz(path)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_full"); - } - - this(cast(GSettings*) __p, true); - } - - /** - * Creates a new #GSettings object with the schema specified by - * @schema_id and a given #GSettingsBackend. - * - * Creating a #GSettings object with a different backend allows accessing - * settings from a database other than the usual one. For example, it may make - * sense to pass a backend corresponding to the "defaults" settings database on - * the system to get a settings object that modifies the system default - * settings instead of the settings for this user. - * - * Params: - * schemaId = the id of the schema - * backend = the #GSettingsBackend to use - * - * Returns: a new #GSettings object - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string schemaId, SettingsBackend backend) - { - auto __p = g_settings_new_with_backend(Str.toStringz(schemaId), (backend is null) ? null : backend.getSettingsBackendStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_backend"); - } - - this(cast(GSettings*) __p, true); - } - - /** - * Creates a new #GSettings object with the schema specified by - * @schema_id and a given #GSettingsBackend and path. - * - * This is a mix of g_settings_new_with_backend() and - * g_settings_new_with_path(). - * - * Params: - * schemaId = the id of the schema - * backend = the #GSettingsBackend to use - * path = the path to use - * - * Returns: a new #GSettings object - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string schemaId, SettingsBackend backend, string path) - { - auto __p = g_settings_new_with_backend_and_path(Str.toStringz(schemaId), (backend is null) ? null : backend.getSettingsBackendStruct(), Str.toStringz(path)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_backend_and_path"); - } - - this(cast(GSettings*) __p, true); - } - - /** - * Creates a new #GSettings object with the relocatable schema specified - * by @schema_id and a given path. - * - * You only need to do this if you want to directly create a settings - * object with a schema that doesn't have a specified path of its own. - * That's quite rare. - * - * It is a programmer error to call this function for a schema that - * has an explicitly specified path. - * - * It is a programmer error if @path is not a valid path. A valid path - * begins and ends with '/' and does not contain two consecutive '/' - * characters. - * - * Params: - * schemaId = the id of the schema - * path = the path to use - * - * Returns: a new #GSettings object - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string schemaId, string path) - { - auto __p = g_settings_new_with_path(Str.toStringz(schemaId), Str.toStringz(path)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_path"); - } - - this(cast(GSettings*) __p, true); - } - - /** - * Deprecated. - * - * Deprecated: Use g_settings_schema_source_list_schemas() instead - * - * Returns: a list of relocatable - * #GSettings schemas that are available, in no defined order. The list must - * not be modified or freed. - * - * Since: 2.28 - */ - public static string[] listRelocatableSchemas() - { - return Str.toStringArray(g_settings_list_relocatable_schemas()); - } - - /** - * Deprecated. - * - * Deprecated: Use g_settings_schema_source_list_schemas() instead. - * If you used g_settings_list_schemas() to check for the presence of - * a particular schema, use g_settings_schema_source_lookup() instead - * of your whole loop. - * - * Returns: a list of #GSettings - * schemas that are available, in no defined order. The list must not be - * modified or freed. - * - * Since: 2.26 - */ - public static string[] listSchemas() - { - return Str.toStringArray(g_settings_list_schemas()); - } - - /** - * Ensures that all pending operations are complete for the default backend. - * - * Writes made to a #GSettings are handled asynchronously. For this - * reason, it is very unlikely that the changes have it to disk by the - * time g_settings_set() returns. - * - * This call will block until all of the writes have made it to the - * backend. Since the mainloop is not running, no change notifications - * will be dispatched during this call (but some may be queued by the - * time the call is done). - */ - public static void sync() - { - g_settings_sync(); - } - - /** - * Removes an existing binding for @property on @object. - * - * Note that bindings are automatically removed when the - * object is finalized, so it is rarely necessary to call this - * function. - * - * Params: - * object = the object - * property = the property whose binding is removed - * - * Since: 2.26 - */ - public static void unbind(ObjectG object, string property) - { - g_settings_unbind((object is null) ? null : object.getObjectGStruct(), Str.toStringz(property)); - } - - /** - * Applies any changes that have been made to the settings. This - * function does nothing unless @settings is in 'delay-apply' mode; - * see g_settings_delay(). In the normal case settings are always - * applied immediately. - */ - public void apply() - { - g_settings_apply(gSettings); - } - - /** - * Create a binding between the @key in the @settings object - * and the property @property of @object. - * - * The binding uses the default GIO mapping functions to map - * between the settings and property values. These functions - * handle booleans, numeric types and string types in a - * straightforward way. Use g_settings_bind_with_mapping() if - * you need a custom mapping, or map between types that are not - * supported by the default mapping functions. - * - * Unless the @flags include %G_SETTINGS_BIND_NO_SENSITIVITY, this - * function also establishes a binding between the writability of - * @key and the "sensitive" property of @object (if @object has - * a boolean property by that name). See g_settings_bind_writable() - * for more details about writable bindings. - * - * Note that the lifecycle of the binding is tied to @object, - * and that you can have only one binding per object property. - * If you bind the same property twice on the same object, the second - * binding overrides the first one. - * - * Params: - * key = the key to bind - * object = a #GObject - * property = the name of the property to bind - * flags = flags for the binding - * - * Since: 2.26 - */ - public void bind(string key, ObjectG object, string property, GSettingsBindFlags flags) - { - g_settings_bind(gSettings, Str.toStringz(key), (object is null) ? null : object.getObjectGStruct(), Str.toStringz(property), flags); - } - - /** - * Create a binding between the @key in the @settings object - * and the property @property of @object. - * - * The binding uses the provided mapping functions to map between - * settings and property values. - * - * Note that the lifecycle of the binding is tied to @object, - * and that you can have only one binding per object property. - * If you bind the same property twice on the same object, the second - * binding overrides the first one. - * - * Params: - * key = the key to bind - * object = a #GObject - * property = the name of the property to bind - * flags = flags for the binding - * getMapping = a function that gets called to convert values - * from @settings to @object, or %NULL to use the default GIO mapping - * setMapping = a function that gets called to convert values - * from @object to @settings, or %NULL to use the default GIO mapping - * userData = data that gets passed to @get_mapping and @set_mapping - * destroy = #GDestroyNotify function for @user_data - * - * Since: 2.26 - */ - public void bindWithMapping(string key, ObjectG object, string property, GSettingsBindFlags flags, GSettingsBindGetMapping getMapping, GSettingsBindSetMapping setMapping, void* userData, GDestroyNotify destroy) - { - g_settings_bind_with_mapping(gSettings, Str.toStringz(key), (object is null) ? null : object.getObjectGStruct(), Str.toStringz(property), flags, getMapping, setMapping, userData, destroy); - } - - /** - * Create a binding between the writability of @key in the - * @settings object and the property @property of @object. - * The property must be boolean; "sensitive" or "visible" - * properties of widgets are the most likely candidates. - * - * Writable bindings are always uni-directional; changes of the - * writability of the setting will be propagated to the object - * property, not the other way. - * - * When the @inverted argument is %TRUE, the binding inverts the - * value as it passes from the setting to the object, i.e. @property - * will be set to %TRUE if the key is not writable. - * - * Note that the lifecycle of the binding is tied to @object, - * and that you can have only one binding per object property. - * If you bind the same property twice on the same object, the second - * binding overrides the first one. - * - * Params: - * key = the key to bind - * object = a #GObject - * property = the name of a boolean property to bind - * inverted = whether to 'invert' the value - * - * Since: 2.26 - */ - public void bindWritable(string key, ObjectG object, string property, bool inverted) - { - g_settings_bind_writable(gSettings, Str.toStringz(key), (object is null) ? null : object.getObjectGStruct(), Str.toStringz(property), inverted); - } - - /** - * Creates a #GAction corresponding to a given #GSettings key. - * - * The action has the same name as the key. - * - * The value of the key becomes the state of the action and the action - * is enabled when the key is writable. Changing the state of the - * action results in the key being written to. Changes to the value or - * writability of the key cause appropriate change notifications to be - * emitted for the action. - * - * For boolean-valued keys, action activations take no parameter and - * result in the toggling of the value. For all other types, - * activations take the new value for the key (which must have the - * correct type). - * - * Params: - * key = the name of a key in @settings - * - * Returns: a new #GAction - * - * Since: 2.32 - */ - public ActionIF createAction(string key) - { - auto __p = g_settings_create_action(gSettings, Str.toStringz(key)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ActionIF)(cast(GAction*) __p, true); - } - - /** - * Changes the #GSettings object into 'delay-apply' mode. In this - * mode, changes to @settings are not immediately propagated to the - * backend, but kept locally until g_settings_apply() is called. - * - * Since: 2.26 - */ - public void delay() - { - g_settings_delay(gSettings); - } - - /** - * Gets the value that is stored at @key in @settings. - * - * A convenience variant of g_settings_get() for booleans. - * - * It is a programmer error to give a @key that isn't specified as - * having a boolean type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: a boolean - * - * Since: 2.26 - */ - public bool getBoolean(string key) - { - return g_settings_get_boolean(gSettings, Str.toStringz(key)) != 0; - } - - /** - * Creates a child settings object which has a base path of - * `base-path/@name`, where `base-path` is the base path of - * @settings. - * - * The schema for the child settings object must have been declared - * in the schema of @settings using a element. - * - * Params: - * name = the name of the child schema - * - * Returns: a 'child' settings object - * - * Since: 2.26 - */ - public Settings getChild(string name) - { - auto __p = g_settings_get_child(gSettings, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Settings)(cast(GSettings*) __p, true); - } - - /** - * Gets the "default value" of a key. - * - * This is the value that would be read if g_settings_reset() were to be - * called on the key. - * - * Note that this may be a different value than returned by - * g_settings_schema_key_get_default_value() if the system administrator - * has provided a default value. - * - * Comparing the return values of g_settings_get_default_value() and - * g_settings_get_value() is not sufficient for determining if a value - * has been set because the user may have explicitly set the value to - * something that happens to be equal to the default. The difference - * here is that if the default changes in the future, the user's key - * will still be set. - * - * This function may be useful for adding an indication to a UI of what - * the default value was before the user set it. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings. - * - * Params: - * key = the key to get the default value for - * - * Returns: the default value - * - * Since: 2.40 - */ - public Variant getDefaultValue(string key) - { - auto __p = g_settings_get_default_value(gSettings, Str.toStringz(key)); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the value that is stored at @key in @settings. - * - * A convenience variant of g_settings_get() for doubles. - * - * It is a programmer error to give a @key that isn't specified as - * having a 'double' type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: a double - * - * Since: 2.26 - */ - public double getDouble(string key) - { - return g_settings_get_double(gSettings, Str.toStringz(key)); - } - - /** - * Gets the value that is stored in @settings for @key and converts it - * to the enum value that it represents. - * - * In order to use this function the type of the value must be a string - * and it must be marked in the schema file as an enumerated type. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings or is not marked as an enumerated type. - * - * If the value stored in the configuration database is not a valid - * value for the enumerated type then this function will return the - * default value. - * - * Params: - * key = the key to get the value for - * - * Returns: the enum value - * - * Since: 2.26 - */ - public int getEnum(string key) - { - return g_settings_get_enum(gSettings, Str.toStringz(key)); - } - - /** - * Gets the value that is stored in @settings for @key and converts it - * to the flags value that it represents. - * - * In order to use this function the type of the value must be an array - * of strings and it must be marked in the schema file as a flags type. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings or is not marked as a flags type. - * - * If the value stored in the configuration database is not a valid - * value for the flags type then this function will return the default - * value. - * - * Params: - * key = the key to get the value for - * - * Returns: the flags value - * - * Since: 2.26 - */ - public uint getFlags(string key) - { - return g_settings_get_flags(gSettings, Str.toStringz(key)); - } - - /** - * Returns whether the #GSettings object has any unapplied - * changes. This can only be the case if it is in 'delayed-apply' mode. - * - * Returns: %TRUE if @settings has unapplied changes - * - * Since: 2.26 - */ - public bool getHasUnapplied() - { - return g_settings_get_has_unapplied(gSettings) != 0; - } - - /** - * Gets the value that is stored at @key in @settings. - * - * A convenience variant of g_settings_get() for 32-bit integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a int32 type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: an integer - * - * Since: 2.26 - */ - public int getInt(string key) - { - return g_settings_get_int(gSettings, Str.toStringz(key)); - } - - /** - * Gets the value that is stored at @key in @settings. - * - * A convenience variant of g_settings_get() for 64-bit integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a int64 type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: a 64-bit integer - * - * Since: 2.50 - */ - public long getInt64(string key) - { - return g_settings_get_int64(gSettings, Str.toStringz(key)); - } - - /** - * Gets the value that is stored at @key in @settings, subject to - * application-level validation/mapping. - * - * You should use this function when the application needs to perform - * some processing on the value of the key (for example, parsing). The - * @mapping function performs that processing. If the function - * indicates that the processing was unsuccessful (due to a parse error, - * for example) then the mapping is tried again with another value. - * - * This allows a robust 'fall back to defaults' behaviour to be - * implemented somewhat automatically. - * - * The first value that is tried is the user's setting for the key. If - * the mapping function fails to map this value, other values may be - * tried in an unspecified order (system or site defaults, translated - * schema default values, untranslated schema default values, etc). - * - * If the mapping function fails for all possible values, one additional - * attempt is made: the mapping function is called with a %NULL value. - * If the mapping function still indicates failure at this point then - * the application will be aborted. - * - * The result parameter for the @mapping function is pointed to a - * #gpointer which is initially set to %NULL. The same pointer is given - * to each invocation of @mapping. The final value of that #gpointer is - * what is returned by this function. %NULL is valid; it is returned - * just as any other value would be. - * - * Params: - * key = the key to get the value for - * mapping = the function to map the value in the - * settings database to the value used by the application - * userData = user data for @mapping - * - * Returns: the result, which may be %NULL - */ - public void* getMapped(string key, GSettingsGetMapping mapping, void* userData) - { - return g_settings_get_mapped(gSettings, Str.toStringz(key), mapping, userData); - } - - /** - * Queries the range of a key. - * - * Deprecated: Use g_settings_schema_key_get_range() instead. - * - * Params: - * key = the key to query the range of - * - * Since: 2.28 - */ - public Variant getRange(string key) - { - auto __p = g_settings_get_range(gSettings, Str.toStringz(key)); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the value that is stored at @key in @settings. - * - * A convenience variant of g_settings_get() for strings. - * - * It is a programmer error to give a @key that isn't specified as - * having a string type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: a newly-allocated string - * - * Since: 2.26 - */ - public string getString(string key) - { - auto retStr = g_settings_get_string(gSettings, Str.toStringz(key)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * A convenience variant of g_settings_get() for string arrays. - * - * It is a programmer error to give a @key that isn't specified as - * having an array of strings type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: a - * newly-allocated, %NULL-terminated array of strings, the value that - * is stored at @key in @settings. - * - * Since: 2.26 - */ - public string[] getStrv(string key) - { - auto retStr = g_settings_get_strv(gSettings, Str.toStringz(key)); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Gets the value that is stored at @key in @settings. - * - * A convenience variant of g_settings_get() for 32-bit unsigned - * integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a uint32 type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: an unsigned integer - * - * Since: 2.30 - */ - public uint getUint(string key) - { - return g_settings_get_uint(gSettings, Str.toStringz(key)); - } - - /** - * Gets the value that is stored at @key in @settings. - * - * A convenience variant of g_settings_get() for 64-bit unsigned - * integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a uint64 type in the schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: a 64-bit unsigned integer - * - * Since: 2.50 - */ - public ulong getUint64(string key) - { - return g_settings_get_uint64(gSettings, Str.toStringz(key)); - } - - /** - * Checks the "user value" of a key, if there is one. - * - * The user value of a key is the last value that was set by the user. - * - * After calling g_settings_reset() this function should always return - * %NULL (assuming something is not wrong with the system - * configuration). - * - * It is possible that g_settings_get_value() will return a different - * value than this function. This can happen in the case that the user - * set a value for a key that was subsequently locked down by the system - * administrator -- this function will return the user's old value. - * - * This function may be useful for adding a "reset" option to a UI or - * for providing indication that a particular value has been changed. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings. - * - * Params: - * key = the key to get the user value for - * - * Returns: the user's value, if set - * - * Since: 2.40 - */ - public Variant getUserValue(string key) - { - auto __p = g_settings_get_user_value(gSettings, Str.toStringz(key)); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the value that is stored in @settings for @key. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings. - * - * Params: - * key = the key to get the value for - * - * Returns: a new #GVariant - * - * Since: 2.26 - */ - public Variant getValue(string key) - { - auto __p = g_settings_get_value(gSettings, Str.toStringz(key)); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Finds out if a key can be written or not - * - * Params: - * name = the name of a key - * - * Returns: %TRUE if the key @name is writable - * - * Since: 2.26 - */ - public bool isWritable(string name) - { - return g_settings_is_writable(gSettings, Str.toStringz(name)) != 0; - } - - /** - * Gets the list of children on @settings. - * - * The list is exactly the list of strings for which it is not an error - * to call g_settings_get_child(). - * - * There is little reason to call this function from "normal" code, since - * you should already know what children are in your schema. This function - * may still be useful there for introspection reasons, however. - * - * You should free the return value with g_strfreev() when you are done - * with it. - * - * Returns: a list of the children on - * @settings, in no defined order - */ - public string[] listChildren() - { - auto retStr = g_settings_list_children(gSettings); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Introspects the list of keys on @settings. - * - * You should probably not be calling this function from "normal" code - * (since you should already know what keys are in your schema). This - * function is intended for introspection reasons. - * - * You should free the return value with g_strfreev() when you are done - * with it. - * - * Deprecated: Use g_settings_schema_list_keys() instead. - * - * Returns: a list of the keys on - * @settings, in no defined order - */ - public string[] listKeys() - { - auto retStr = g_settings_list_keys(gSettings); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Checks if the given @value is of the correct type and within the - * permitted range for @key. - * - * Deprecated: Use g_settings_schema_key_range_check() instead. - * - * Params: - * key = the key to check - * value = the value to check - * - * Returns: %TRUE if @value is valid for @key - * - * Since: 2.28 - */ - public bool rangeCheck(string key, Variant value) - { - return g_settings_range_check(gSettings, Str.toStringz(key), (value is null) ? null : value.getVariantStruct()) != 0; - } - - /** - * Resets @key to its default value. - * - * This call resets the key, as much as possible, to its default value. - * That might be the value specified in the schema or the one set by the - * administrator. - * - * Params: - * key = the name of a key - */ - public void reset(string key) - { - g_settings_reset(gSettings, Str.toStringz(key)); - } - - /** - * Reverts all non-applied changes to the settings. This function - * does nothing unless @settings is in 'delay-apply' mode; see - * g_settings_delay(). In the normal case settings are always applied - * immediately. - * - * Change notifications will be emitted for affected keys. - */ - public void revert() - { - g_settings_revert(gSettings); - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for booleans. - * - * It is a programmer error to give a @key that isn't specified as - * having a boolean type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.26 - */ - public bool setBoolean(string key, bool value) - { - return g_settings_set_boolean(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for doubles. - * - * It is a programmer error to give a @key that isn't specified as - * having a 'double' type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.26 - */ - public bool setDouble(string key, double value) - { - return g_settings_set_double(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Looks up the enumerated type nick for @value and writes it to @key, - * within @settings. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings or is not marked as an enumerated type, or for - * @value not to be a valid value for the named type. - * - * After performing the write, accessing @key directly with - * g_settings_get_string() will return the 'nick' associated with - * @value. - * - * Params: - * key = a key, within @settings - * value = an enumerated value - * - * Returns: %TRUE, if the set succeeds - */ - public bool setEnum(string key, int value) - { - return g_settings_set_enum(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Looks up the flags type nicks for the bits specified by @value, puts - * them in an array of strings and writes the array to @key, within - * @settings. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings or is not marked as a flags type, or for @value - * to contain any bits that are not value for the named type. - * - * After performing the write, accessing @key directly with - * g_settings_get_strv() will return an array of 'nicks'; one for each - * bit in @value. - * - * Params: - * key = a key, within @settings - * value = a flags value - * - * Returns: %TRUE, if the set succeeds - */ - public bool setFlags(string key, uint value) - { - return g_settings_set_flags(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for 32-bit integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a int32 type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.26 - */ - public bool setInt(string key, int value) - { - return g_settings_set_int(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for 64-bit integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a int64 type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.50 - */ - public bool setInt64(string key, long value) - { - return g_settings_set_int64(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for strings. - * - * It is a programmer error to give a @key that isn't specified as - * having a string type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.26 - */ - public bool setString(string key, string value) - { - return g_settings_set_string(gSettings, Str.toStringz(key), Str.toStringz(value)) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for string arrays. If - * @value is %NULL, then @key is set to be the empty array. - * - * It is a programmer error to give a @key that isn't specified as - * having an array of strings type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to, or %NULL - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.26 - */ - public bool setStrv(string key, string[] value) - { - return g_settings_set_strv(gSettings, Str.toStringz(key), Str.toStringzArray(value)) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for 32-bit unsigned - * integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a uint32 type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.30 - */ - public bool setUint(string key, uint value) - { - return g_settings_set_uint(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * A convenience variant of g_settings_set() for 64-bit unsigned - * integers. - * - * It is a programmer error to give a @key that isn't specified as - * having a uint64 type in the schema for @settings. - * - * Params: - * key = the name of the key to set - * value = the value to set it to - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.50 - */ - public bool setUint64(string key, ulong value) - { - return g_settings_set_uint64(gSettings, Str.toStringz(key), value) != 0; - } - - /** - * Sets @key in @settings to @value. - * - * It is a programmer error to give a @key that isn't contained in the - * schema for @settings or for @value to have the incorrect type, per - * the schema. - * - * If @value is floating then this function consumes the reference. - * - * Params: - * key = the name of the key to set - * value = a #GVariant of the correct type - * - * Returns: %TRUE if setting the key succeeded, - * %FALSE if the key was not writable - * - * Since: 2.26 - */ - public bool setValue(string key, Variant value) - { - return g_settings_set_value(gSettings, Str.toStringz(key), (value is null) ? null : value.getVariantStruct()) != 0; - } - - /** - * The "change-event" signal is emitted once per change event that - * affects this settings object. You should connect to this signal - * only if you are interested in viewing groups of changes before they - * are split out into multiple emissions of the "changed" signal. - * For most use cases it is more appropriate to use the "changed" signal. - * - * In the event that the change event applies to one or more specified - * keys, @keys will be an array of #GQuark of length @n_keys. In the - * event that the change event applies to the #GSettings object as a - * whole (ie: potentially every key has been changed) then @keys will - * be %NULL and @n_keys will be 0. - * - * The default handler for this signal invokes the "changed" signal - * for each affected key. If any other connected handler returns - * %TRUE then this default functionality will be suppressed. - * - * Params: - * keys = an array of #GQuarks for the changed keys, or %NULL - * nKeys = the length of the @keys array, or 0 - * - * Returns: %TRUE to stop other handlers from being invoked for the - * event. FALSE to propagate the event further. - */ - gulong addOnChange(bool delegate(void*, int, Settings) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "change-event", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "changed" signal is emitted when a key has potentially changed. - * You should call one of the g_settings_get() calls to check the new - * value. - * - * This signal supports detailed connections. You can connect to the - * detailed signal "changed::x" in order to only receive callbacks - * when key "x" changes. - * - * Note that @settings only emits this signal if you have read @key at - * least once while a signal handler was already connected for @key. - * - * Params: - * key = the name of the key that changed - */ - gulong addOnChanged(void delegate(string, Settings) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "writable-change-event" signal is emitted once per writability - * change event that affects this settings object. You should connect - * to this signal if you are interested in viewing groups of changes - * before they are split out into multiple emissions of the - * "writable-changed" signal. For most use cases it is more - * appropriate to use the "writable-changed" signal. - * - * In the event that the writability change applies only to a single - * key, @key will be set to the #GQuark for that key. In the event - * that the writability change affects the entire settings object, - * @key will be 0. - * - * The default handler for this signal invokes the "writable-changed" - * and "changed" signals for each affected key. This is done because - * changes in writability might also imply changes in value (if for - * example, a new mandatory setting is introduced). If any other - * connected handler returns %TRUE then this default functionality - * will be suppressed. - * - * Params: - * key = the quark of the key, or 0 - * - * Returns: %TRUE to stop other handlers from being invoked for the - * event. FALSE to propagate the event further. - */ - gulong addOnWritableChange(bool delegate(uint, Settings) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "writable-change-event", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * The "writable-changed" signal is emitted when the writability of a - * key has potentially changed. You should call - * g_settings_is_writable() in order to determine the new status. - * - * This signal supports detailed connections. You can connect to the - * detailed signal "writable-changed::x" in order to only receive - * callbacks when the writability of "x" changes. - * - * Params: - * key = the key - */ - gulong addOnWritableChanged(void delegate(string, Settings) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "writable-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/SettingsBackend.d b/generated/gtkd/gio/SettingsBackend.d deleted file mode 100644 index 5af50a988..000000000 --- a/generated/gtkd/gio/SettingsBackend.d +++ /dev/null @@ -1,426 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SettingsBackend; - -private import gio.c.functions; -public import gio.c.types; -private import glib.BBTree; -private import glib.Str; -private import glib.Variant; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * The #GSettingsBackend interface defines a generic interface for - * non-strictly-typed data that is stored in a hierarchy. To implement - * an alternative storage backend for #GSettings, you need to implement - * the #GSettingsBackend interface and then make it implement the - * extension point #G_SETTINGS_BACKEND_EXTENSION_POINT_NAME. - * - * The interface defines methods for reading and writing values, a - * method for determining if writing of certain values will fail - * (lockdown) and a change notification mechanism. - * - * The semantics of the interface are very precisely defined and - * implementations must carefully adhere to the expectations of - * callers that are documented on each of the interface methods. - * - * Some of the #GSettingsBackend functions accept or return a #GTree. - * These trees always have strings as keys and #GVariant as values. - * g_settings_backend_create_tree() is a convenience function to create - * suitable trees. - * - * The #GSettingsBackend API is exported to allow third-party - * implementations, but does not carry the same stability guarantees - * as the public GIO API. For this reason, you have to define the - * C preprocessor symbol %G_SETTINGS_ENABLE_BACKEND before including - * `gio/gsettingsbackend.h`. - */ -public class SettingsBackend : ObjectG -{ - /** the main Gtk struct */ - protected GSettingsBackend* gSettingsBackend; - - /** Get the main Gtk struct */ - public GSettingsBackend* getSettingsBackendStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSettingsBackend; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSettingsBackend; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSettingsBackend* gSettingsBackend, bool ownedRef = false) - { - this.gSettingsBackend = gSettingsBackend; - super(cast(GObject*)gSettingsBackend, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_settings_backend_get_type(); - } - - /** - * Calculate the longest common prefix of all keys in a tree and write - * out an array of the key names relative to that prefix and, - * optionally, the value to store at each of those keys. - * - * You must free the value returned in @path, @keys and @values using - * g_free(). You should not attempt to free or unref the contents of - * @keys or @values. - * - * Params: - * tree = a #GTree containing the changes - * path = the location to save the path - * keys = the - * location to save the relative keys - * values = the location to save the values, or %NULL - * - * Since: 2.26 - */ - public static void flattenTree(BBTree tree, out string path, out string[] keys, out Variant[] values) - { - char* outpath = null; - char** outkeys = null; - GVariant** outvalues = null; - - g_settings_backend_flatten_tree((tree is null) ? null : tree.getBBTreeStruct(), &outpath, &outkeys, &outvalues); - - path = Str.toString(outpath); - keys = Str.toStringArray(outkeys); - - values = new Variant[getArrayLength(outvalues)]; - for(size_t i = 0; i < getArrayLength(outvalues); i++) - { - values[i] = new Variant(cast(GVariant*) outvalues[i]); - } - } - - /** - * Returns the default #GSettingsBackend. It is possible to override - * the default by setting the `GSETTINGS_BACKEND` environment variable - * to the name of a settings backend. - * - * The user gets a reference to the backend. - * - * Returns: the default #GSettingsBackend, - * which will be a dummy (memory) settings backend if no other settings - * backend is available. - * - * Since: 2.28 - */ - public static SettingsBackend getDefault() - { - auto __p = g_settings_backend_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsBackend)(cast(GSettingsBackend*) __p, true); - } - - /** - * Signals that a single key has possibly changed. Backend - * implementations should call this if a key has possibly changed its - * value. - * - * @key must be a valid key (ie starting with a slash, not containing - * '//', and not ending with a slash). - * - * The implementation must call this function during any call to - * g_settings_backend_write(), before the call returns (except in the - * case that no keys are actually changed and it cares to detect this - * fact). It may not rely on the existence of a mainloop for - * dispatching the signal later. - * - * The implementation may call this function at any other time it likes - * in response to other events (such as changes occurring outside of the - * program). These calls may originate from a mainloop or may originate - * in response to any other action (including from calls to - * g_settings_backend_write()). - * - * In the case that this call is in response to a call to - * g_settings_backend_write() then @origin_tag must be set to the same - * value that was passed to that call. - * - * Params: - * key = the name of the key - * originTag = the origin tag - * - * Since: 2.26 - */ - public void changed(string key, void* originTag) - { - g_settings_backend_changed(gSettingsBackend, Str.toStringz(key), originTag); - } - - /** - * This call is a convenience wrapper. It gets the list of changes from - * @tree, computes the longest common prefix and calls - * g_settings_backend_changed(). - * - * Params: - * tree = a #GTree containing the changes - * originTag = the origin tag - * - * Since: 2.26 - */ - public void changedTree(BBTree tree, void* originTag) - { - g_settings_backend_changed_tree(gSettingsBackend, (tree is null) ? null : tree.getBBTreeStruct(), originTag); - } - - /** - * Signals that a list of keys have possibly changed. Backend - * implementations should call this if keys have possibly changed their - * values. - * - * @path must be a valid path (ie starting and ending with a slash and - * not containing '//'). Each string in @items must form a valid key - * name when @path is prefixed to it (ie: each item must not start or - * end with '/' and must not contain '//'). - * - * The meaning of this signal is that any of the key names resulting - * from the contatenation of @path with each item in @items may have - * changed. - * - * The same rules for when notifications must occur apply as per - * g_settings_backend_changed(). These two calls can be used - * interchangeably if exactly one item has changed (although in that - * case g_settings_backend_changed() is definitely preferred). - * - * For efficiency reasons, the implementation should strive for @path to - * be as long as possible (ie: the longest common prefix of all of the - * keys that were changed) but this is not strictly required. - * - * Params: - * path = the path containing the changes - * items = the %NULL-terminated list of changed keys - * originTag = the origin tag - * - * Since: 2.26 - */ - public void keysChanged(string path, string[] items, void* originTag) - { - g_settings_backend_keys_changed(gSettingsBackend, Str.toStringz(path), Str.toStringzArray(items), originTag); - } - - /** - * Signals that all keys below a given path may have possibly changed. - * Backend implementations should call this if an entire path of keys - * have possibly changed their values. - * - * @path must be a valid path (ie starting and ending with a slash and - * not containing '//'). - * - * The meaning of this signal is that any of the key which has a name - * starting with @path may have changed. - * - * The same rules for when notifications must occur apply as per - * g_settings_backend_changed(). This call might be an appropriate - * reasponse to a 'reset' call but implementations are also free to - * explicitly list the keys that were affected by that call if they can - * easily do so. - * - * For efficiency reasons, the implementation should strive for @path to - * be as long as possible (ie: the longest common prefix of all of the - * keys that were changed) but this is not strictly required. As an - * example, if this function is called with the path of "/" then every - * single key in the application will be notified of a possible change. - * - * Params: - * path = the path containing the changes - * originTag = the origin tag - * - * Since: 2.26 - */ - public void pathChanged(string path, void* originTag) - { - g_settings_backend_path_changed(gSettingsBackend, Str.toStringz(path), originTag); - } - - /** - * Signals that the writability of all keys below a given path may have - * changed. - * - * Since GSettings performs no locking operations for itself, this call - * will always be made in response to external events. - * - * Params: - * path = the name of the path - * - * Since: 2.26 - */ - public void pathWritableChanged(string path) - { - g_settings_backend_path_writable_changed(gSettingsBackend, Str.toStringz(path)); - } - - /** - * Signals that the writability of a single key has possibly changed. - * - * Since GSettings performs no locking operations for itself, this call - * will always be made in response to external events. - * - * Params: - * key = the name of the key - * - * Since: 2.26 - */ - public void writableChanged(string key) - { - g_settings_backend_writable_changed(gSettingsBackend, Str.toStringz(key)); - } - - /** - * Creates a keyfile-backed #GSettingsBackend. - * - * The filename of the keyfile to use is given by @filename. - * - * All settings read to or written from the backend must fall under the - * path given in @root_path (which must start and end with a slash and - * not contain two consecutive slashes). @root_path may be "/". - * - * If @root_group is non-%NULL then it specifies the name of the keyfile - * group used for keys that are written directly below @root_path. For - * example, if @root_path is "/apps/example/" and @root_group is - * "toplevel", then settings the key "/apps/example/enabled" to a value - * of %TRUE will cause the following to appear in the keyfile: - * - * |[ - * [toplevel] - * enabled=true - * ]| - * - * If @root_group is %NULL then it is not permitted to store keys - * directly below the @root_path. - * - * For keys not stored directly below @root_path (ie: in a sub-path), - * the name of the subpath (with the final slash stripped) is used as - * the name of the keyfile group. To continue the example, if - * "/apps/example/profiles/default/font-size" were set to - * 12 then the following would appear in the keyfile: - * - * |[ - * [profiles/default] - * font-size=12 - * ]| - * - * The backend will refuse writes (and return writability as being - * %FALSE) for keys outside of @root_path and, in the event that - * @root_group is %NULL, also for keys directly under @root_path. - * Writes will also be refused if the backend detects that it has the - * inability to rewrite the keyfile (ie: the containing directory is not - * writable). - * - * There is no checking done for your key namespace clashing with the - * syntax of the key file format. For example, if you have '[' or ']' - * characters in your path names or '=' in your key names you may be in - * trouble. - * - * The backend reads default values from a keyfile called `defaults` in - * the directory specified by the #GKeyfileSettingsBackend:defaults-dir property, - * and a list of locked keys from a text file with the name `locks` in - * the same location. - * - * Params: - * filename = the filename of the keyfile - * rootPath = the path under which all settings keys appear - * rootGroup = the group name corresponding to - * @root_path, or %NULL - * - * Returns: a keyfile-backed #GSettingsBackend - */ - public static SettingsBackend keyfileSettingsBackendNew(string filename, string rootPath, string rootGroup) - { - auto __p = g_keyfile_settings_backend_new(Str.toStringz(filename), Str.toStringz(rootPath), Str.toStringz(rootGroup)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsBackend)(cast(GSettingsBackend*) __p, true); - } - - /** - * Creates a memory-backed #GSettingsBackend. - * - * This backend allows changes to settings, but does not write them - * to any backing storage, so the next time you run your application, - * the memory backend will start out with the default values again. - * - * Returns: a newly created #GSettingsBackend - * - * Since: 2.28 - */ - public static SettingsBackend memorySettingsBackendNew() - { - auto __p = g_memory_settings_backend_new(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsBackend)(cast(GSettingsBackend*) __p, true); - } - - /** - * Creates a readonly #GSettingsBackend. - * - * This backend does not allow changes to settings, so all settings - * will always have their default values. - * - * Returns: a newly created #GSettingsBackend - * - * Since: 2.28 - */ - public static SettingsBackend nullSettingsBackendNew() - { - auto __p = g_null_settings_backend_new(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsBackend)(cast(GSettingsBackend*) __p, true); - } -} diff --git a/generated/gtkd/gio/SettingsSchema.d b/generated/gtkd/gio/SettingsSchema.d deleted file mode 100644 index 90b42f54b..000000000 --- a/generated/gtkd/gio/SettingsSchema.d +++ /dev/null @@ -1,310 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SettingsSchema; - -private import gio.SettingsSchemaKey; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * The #GSettingsSchemaSource and #GSettingsSchema APIs provide a - * mechanism for advanced control over the loading of schemas and a - * mechanism for introspecting their content. - * - * Plugin loading systems that wish to provide plugins a way to access - * settings face the problem of how to make the schemas for these - * settings visible to GSettings. Typically, a plugin will want to ship - * the schema along with itself and it won't be installed into the - * standard system directories for schemas. - * - * #GSettingsSchemaSource provides a mechanism for dealing with this by - * allowing the creation of a new 'schema source' from which schemas can - * be acquired. This schema source can then become part of the metadata - * associated with the plugin and queried whenever the plugin requires - * access to some settings. - * - * Consider the following example: - * - * |[ - * typedef struct - * { - * ... - * GSettingsSchemaSource *schema_source; - * ... - * } Plugin; - * - * Plugin * - * initialise_plugin (const gchar *dir) - * { - * Plugin *plugin; - * - * ... - * - * plugin->schema_source = - * g_settings_schema_source_new_from_directory (dir, - * g_settings_schema_source_get_default (), FALSE, NULL); - * - * ... - * - * return plugin; - * } - * - * ... - * - * GSettings * - * plugin_get_settings (Plugin *plugin, - * const gchar *schema_id) - * { - * GSettingsSchema *schema; - * - * if (schema_id == NULL) - * schema_id = plugin->identifier; - * - * schema = g_settings_schema_source_lookup (plugin->schema_source, - * schema_id, FALSE); - * - * if (schema == NULL) - * { - * ... disable the plugin or abort, etc ... - * } - * - * return g_settings_new_full (schema, NULL, NULL); - * } - * ]| - * - * The code above shows how hooks should be added to the code that - * initialises (or enables) the plugin to create the schema source and - * how an API can be added to the plugin system to provide a convenient - * way for the plugin to access its settings, using the schemas that it - * ships. - * - * From the standpoint of the plugin, it would need to ensure that it - * ships a gschemas.compiled file as part of itself, and then simply do - * the following: - * - * |[ - * { - * GSettings *settings; - * gint some_value; - * - * settings = plugin_get_settings (self, NULL); - * some_value = g_settings_get_int (settings, "some-value"); - * ... - * } - * ]| - * - * It's also possible that the plugin system expects the schema source - * files (ie: .gschema.xml files) instead of a gschemas.compiled file. - * In that case, the plugin loading system must compile the schemas for - * itself before attempting to create the settings source. - * - * Since: 2.32 - */ -public class SettingsSchema -{ - /** the main Gtk struct */ - protected GSettingsSchema* gSettingsSchema; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GSettingsSchema* getSettingsSchemaStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSettingsSchema; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gSettingsSchema; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSettingsSchema* gSettingsSchema, bool ownedRef = false) - { - this.gSettingsSchema = gSettingsSchema; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_settings_schema_unref(gSettingsSchema); - } - - - /** */ - public static GType getType() - { - return g_settings_schema_get_type(); - } - - /** - * Get the ID of @schema. - * - * Returns: the ID - */ - public string getId() - { - return Str.toString(g_settings_schema_get_id(gSettingsSchema)); - } - - /** - * Gets the key named @name from @schema. - * - * It is a programmer error to request a key that does not exist. See - * g_settings_schema_list_keys(). - * - * Params: - * name = the name of a key - * - * Returns: the #GSettingsSchemaKey for @name - * - * Since: 2.40 - */ - public SettingsSchemaKey getKey(string name) - { - auto __p = g_settings_schema_get_key(gSettingsSchema, Str.toStringz(name)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsSchemaKey)(cast(GSettingsSchemaKey*) __p, true); - } - - /** - * Gets the path associated with @schema, or %NULL. - * - * Schemas may be single-instance or relocatable. Single-instance - * schemas correspond to exactly one set of keys in the backend - * database: those located at the path returned by this function. - * - * Relocatable schemas can be referenced by other schemas and can - * therefore describe multiple sets of keys at different locations. For - * relocatable schemas, this function will return %NULL. - * - * Returns: the path of the schema, or %NULL - * - * Since: 2.32 - */ - public string getPath() - { - return Str.toString(g_settings_schema_get_path(gSettingsSchema)); - } - - /** - * Checks if @schema has a key named @name. - * - * Params: - * name = the name of a key - * - * Returns: %TRUE if such a key exists - * - * Since: 2.40 - */ - public bool hasKey(string name) - { - return g_settings_schema_has_key(gSettingsSchema, Str.toStringz(name)) != 0; - } - - /** - * Gets the list of children in @schema. - * - * You should free the return value with g_strfreev() when you are done - * with it. - * - * Returns: a list of the children on - * @settings, in no defined order - * - * Since: 2.44 - */ - public string[] listChildren() - { - auto retStr = g_settings_schema_list_children(gSettingsSchema); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Introspects the list of keys on @schema. - * - * You should probably not be calling this function from "normal" code - * (since you should already know what keys are in your schema). This - * function is intended for introspection reasons. - * - * Returns: a list of the keys on - * @schema, in no defined order - * - * Since: 2.46 - */ - public string[] listKeys() - { - auto retStr = g_settings_schema_list_keys(gSettingsSchema); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - alias doref = ref_; - /** - * Increase the reference count of @schema, returning a new reference. - * - * Returns: a new reference to @schema - * - * Since: 2.32 - */ - public SettingsSchema ref_() - { - auto __p = g_settings_schema_ref(gSettingsSchema); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsSchema)(cast(GSettingsSchema*) __p, true); - } - - /** - * Decrease the reference count of @schema, possibly freeing it. - * - * Since: 2.32 - */ - public void unref() - { - g_settings_schema_unref(gSettingsSchema); - } -} diff --git a/generated/gtkd/gio/SettingsSchemaKey.d b/generated/gtkd/gio/SettingsSchemaKey.d deleted file mode 100644 index 1f2490b7a..000000000 --- a/generated/gtkd/gio/SettingsSchemaKey.d +++ /dev/null @@ -1,287 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SettingsSchemaKey; - -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * #GSettingsSchemaKey is an opaque data structure and can only be accessed - * using the following functions. - */ -public class SettingsSchemaKey -{ - /** the main Gtk struct */ - protected GSettingsSchemaKey* gSettingsSchemaKey; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GSettingsSchemaKey* getSettingsSchemaKeyStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSettingsSchemaKey; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gSettingsSchemaKey; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSettingsSchemaKey* gSettingsSchemaKey, bool ownedRef = false) - { - this.gSettingsSchemaKey = gSettingsSchemaKey; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_settings_schema_key_unref(gSettingsSchemaKey); - } - - - /** */ - public static GType getType() - { - return g_settings_schema_key_get_type(); - } - - /** - * Gets the default value for @key. - * - * Note that this is the default value according to the schema. System - * administrator defaults and lockdown are not visible via this API. - * - * Returns: the default value for the key - * - * Since: 2.40 - */ - public Variant getDefaultValue() - { - auto __p = g_settings_schema_key_get_default_value(gSettingsSchemaKey); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the description for @key. - * - * If no description has been provided in the schema for @key, returns - * %NULL. - * - * The description can be one sentence to several paragraphs in length. - * Paragraphs are delimited with a double newline. Descriptions can be - * translated and the value returned from this function is is the - * current locale. - * - * This function is slow. The summary and description information for - * the schemas is not stored in the compiled schema database so this - * function has to parse all of the source XML files in the schema - * directory. - * - * Returns: the description for @key, or %NULL - * - * Since: 2.34 - */ - public string getDescription() - { - return Str.toString(g_settings_schema_key_get_description(gSettingsSchemaKey)); - } - - /** - * Gets the name of @key. - * - * Returns: the name of @key. - * - * Since: 2.44 - */ - public string getName() - { - return Str.toString(g_settings_schema_key_get_name(gSettingsSchemaKey)); - } - - /** - * Queries the range of a key. - * - * This function will return a #GVariant that fully describes the range - * of values that are valid for @key. - * - * The type of #GVariant returned is `(sv)`. The string describes - * the type of range restriction in effect. The type and meaning of - * the value contained in the variant depends on the string. - * - * If the string is `'type'` then the variant contains an empty array. - * The element type of that empty array is the expected type of value - * and all values of that type are valid. - * - * If the string is `'enum'` then the variant contains an array - * enumerating the possible values. Each item in the array is - * a possible valid value and no other values are valid. - * - * If the string is `'flags'` then the variant contains an array. Each - * item in the array is a value that may appear zero or one times in an - * array to be used as the value for this key. For example, if the - * variant contained the array `['x', 'y']` then the valid values for - * the key would be `[]`, `['x']`, `['y']`, `['x', 'y']` and - * `['y', 'x']`. - * - * Finally, if the string is `'range'` then the variant contains a pair - * of like-typed values -- the minimum and maximum permissible values - * for this key. - * - * This information should not be used by normal programs. It is - * considered to be a hint for introspection purposes. Normal programs - * should already know what is permitted by their own schema. The - * format may change in any way in the future -- but particularly, new - * forms may be added to the possibilities described above. - * - * You should free the returned value with g_variant_unref() when it is - * no longer needed. - * - * Returns: a #GVariant describing the range - * - * Since: 2.40 - */ - public Variant getRange() - { - auto __p = g_settings_schema_key_get_range(gSettingsSchemaKey); - - if(__p is null) - { - return null; - } - - return new Variant(cast(GVariant*) __p, true); - } - - /** - * Gets the summary for @key. - * - * If no summary has been provided in the schema for @key, returns - * %NULL. - * - * The summary is a short description of the purpose of the key; usually - * one short sentence. Summaries can be translated and the value - * returned from this function is is the current locale. - * - * This function is slow. The summary and description information for - * the schemas is not stored in the compiled schema database so this - * function has to parse all of the source XML files in the schema - * directory. - * - * Returns: the summary for @key, or %NULL - * - * Since: 2.34 - */ - public string getSummary() - { - return Str.toString(g_settings_schema_key_get_summary(gSettingsSchemaKey)); - } - - /** - * Gets the #GVariantType of @key. - * - * Returns: the type of @key - * - * Since: 2.40 - */ - public VariantType getValueType() - { - auto __p = g_settings_schema_key_get_value_type(gSettingsSchemaKey); - - if(__p is null) - { - return null; - } - - return new VariantType(cast(GVariantType*) __p); - } - - /** - * Checks if the given @value is of the correct type and within the - * permitted range for @key. - * - * It is a programmer error if @value is not of the correct type -- you - * must check for this first. - * - * Params: - * value = the value to check - * - * Returns: %TRUE if @value is valid for @key - * - * Since: 2.40 - */ - public bool rangeCheck(Variant value) - { - return g_settings_schema_key_range_check(gSettingsSchemaKey, (value is null) ? null : value.getVariantStruct()) != 0; - } - - alias doref = ref_; - /** - * Increase the reference count of @key, returning a new reference. - * - * Returns: a new reference to @key - * - * Since: 2.40 - */ - public SettingsSchemaKey ref_() - { - auto __p = g_settings_schema_key_ref(gSettingsSchemaKey); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsSchemaKey)(cast(GSettingsSchemaKey*) __p, true); - } - - /** - * Decrease the reference count of @key, possibly freeing it. - * - * Since: 2.40 - */ - public void unref() - { - g_settings_schema_key_unref(gSettingsSchemaKey); - } -} diff --git a/generated/gtkd/gio/SettingsSchemaSource.d b/generated/gtkd/gio/SettingsSchemaSource.d deleted file mode 100644 index 6e45fd45a..000000000 --- a/generated/gtkd/gio/SettingsSchemaSource.d +++ /dev/null @@ -1,273 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SettingsSchemaSource; - -private import gio.SettingsSchema; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * This is an opaque structure type. You may not access it directly. - * - * Since: 2.32 - */ -public class SettingsSchemaSource -{ - /** the main Gtk struct */ - protected GSettingsSchemaSource* gSettingsSchemaSource; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GSettingsSchemaSource* getSettingsSchemaSourceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSettingsSchemaSource; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gSettingsSchemaSource; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSettingsSchemaSource* gSettingsSchemaSource, bool ownedRef = false) - { - this.gSettingsSchemaSource = gSettingsSchemaSource; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_settings_schema_source_unref(gSettingsSchemaSource); - } - - - /** */ - public static GType getType() - { - return g_settings_schema_source_get_type(); - } - - /** - * Attempts to create a new schema source corresponding to the contents - * of the given directory. - * - * This function is not required for normal uses of #GSettings but it - * may be useful to authors of plugin management systems. - * - * The directory should contain a file called `gschemas.compiled` as - * produced by the [glib-compile-schemas][glib-compile-schemas] tool. - * - * If @trusted is %TRUE then `gschemas.compiled` is trusted not to be - * corrupted. This assumption has a performance advantage, but can result - * in crashes or inconsistent behaviour in the case of a corrupted file. - * Generally, you should set @trusted to %TRUE for files installed by the - * system and to %FALSE for files in the home directory. - * - * In either case, an empty file or some types of corruption in the file will - * result in %G_FILE_ERROR_INVAL being returned. - * - * If @parent is non-%NULL then there are two effects. - * - * First, if g_settings_schema_source_lookup() is called with the - * @recursive flag set to %TRUE and the schema can not be found in the - * source, the lookup will recurse to the parent. - * - * Second, any references to other schemas specified within this - * source (ie: `child` or `extends`) references may be resolved - * from the @parent. - * - * For this second reason, except in very unusual situations, the - * @parent should probably be given as the default schema source, as - * returned by g_settings_schema_source_get_default(). - * - * Params: - * directory = the filename of a directory - * parent = a #GSettingsSchemaSource, or %NULL - * trusted = %TRUE, if the directory is trusted - * - * Since: 2.32 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string directory, SettingsSchemaSource parent, bool trusted) - { - GError* err = null; - - auto __p = g_settings_schema_source_new_from_directory(Str.toStringz(directory), (parent is null) ? null : parent.getSettingsSchemaSourceStruct(), trusted, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_directory"); - } - - this(cast(GSettingsSchemaSource*) __p); - } - - /** - * Lists the schemas in a given source. - * - * If @recursive is %TRUE then include parent sources. If %FALSE then - * only include the schemas from one source (ie: one directory). You - * probably want %TRUE. - * - * Non-relocatable schemas are those for which you can call - * g_settings_new(). Relocatable schemas are those for which you must - * use g_settings_new_with_path(). - * - * Do not call this function from normal programs. This is designed for - * use by database editors, commandline tools, etc. - * - * Params: - * recursive = if we should recurse - * nonRelocatable = the - * list of non-relocatable schemas, in no defined order - * relocatable = the list - * of relocatable schemas, in no defined order - * - * Since: 2.40 - */ - public void listSchemas(bool recursive, out string[] nonRelocatable, out string[] relocatable) - { - char** outnonRelocatable = null; - char** outrelocatable = null; - - g_settings_schema_source_list_schemas(gSettingsSchemaSource, recursive, &outnonRelocatable, &outrelocatable); - - nonRelocatable = Str.toStringArray(outnonRelocatable); - relocatable = Str.toStringArray(outrelocatable); - } - - /** - * Looks up a schema with the identifier @schema_id in @source. - * - * This function is not required for normal uses of #GSettings but it - * may be useful to authors of plugin management systems or to those who - * want to introspect the content of schemas. - * - * If the schema isn't found directly in @source and @recursive is %TRUE - * then the parent sources will also be checked. - * - * If the schema isn't found, %NULL is returned. - * - * Params: - * schemaId = a schema ID - * recursive = %TRUE if the lookup should be recursive - * - * Returns: a new #GSettingsSchema - * - * Since: 2.32 - */ - public SettingsSchema lookup(string schemaId, bool recursive) - { - auto __p = g_settings_schema_source_lookup(gSettingsSchemaSource, Str.toStringz(schemaId), recursive); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsSchema)(cast(GSettingsSchema*) __p, true); - } - - alias doref = ref_; - /** - * Increase the reference count of @source, returning a new reference. - * - * Returns: a new reference to @source - * - * Since: 2.32 - */ - public SettingsSchemaSource ref_() - { - auto __p = g_settings_schema_source_ref(gSettingsSchemaSource); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsSchemaSource)(cast(GSettingsSchemaSource*) __p, true); - } - - /** - * Decrease the reference count of @source, possibly freeing it. - * - * Since: 2.32 - */ - public void unref() - { - g_settings_schema_source_unref(gSettingsSchemaSource); - } - - /** - * Gets the default system schema source. - * - * This function is not required for normal uses of #GSettings but it - * may be useful to authors of plugin management systems or to those who - * want to introspect the content of schemas. - * - * If no schemas are installed, %NULL will be returned. - * - * The returned source may actually consist of multiple schema sources - * from different directories, depending on which directories were given - * in `XDG_DATA_DIRS` and `GSETTINGS_SCHEMA_DIR`. For this reason, all - * lookups performed against the default source should probably be done - * recursively. - * - * Returns: the default schema source - * - * Since: 2.32 - */ - public static SettingsSchemaSource getDefault() - { - auto __p = g_settings_schema_source_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SettingsSchemaSource)(cast(GSettingsSchemaSource*) __p); - } -} diff --git a/generated/gtkd/gio/SimpleAction.d b/generated/gtkd/gio/SimpleAction.d deleted file mode 100644 index c45f6e03f..000000000 --- a/generated/gtkd/gio/SimpleAction.d +++ /dev/null @@ -1,273 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SimpleAction; - -private import gio.ActionIF; -private import gio.ActionT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.Variant; -private import glib.VariantType; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A #GSimpleAction is the obvious simple implementation of the #GAction - * interface. This is the easiest way to create an action for purposes of - * adding it to a #GSimpleActionGroup. - * - * See also #GtkAction. - */ -public class SimpleAction : ObjectG, ActionIF -{ - /** the main Gtk struct */ - protected GSimpleAction* gSimpleAction; - - /** Get the main Gtk struct */ - public GSimpleAction* getSimpleActionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSimpleAction; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSimpleAction; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSimpleAction* gSimpleAction, bool ownedRef = false) - { - this.gSimpleAction = gSimpleAction; - super(cast(GObject*)gSimpleAction, ownedRef); - } - - // add the Action capabilities - mixin ActionT!(GSimpleAction); - - - /** */ - public static GType getType() - { - return g_simple_action_get_type(); - } - - /** - * Creates a new action. - * - * The created action is stateless. See g_simple_action_new_stateful() to create - * an action that has state. - * - * Params: - * name = the name of the action - * parameterType = the type of parameter that will be passed to - * handlers for the #GSimpleAction::activate signal, or %NULL for no parameter - * - * Returns: a new #GSimpleAction - * - * Since: 2.28 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, VariantType parameterType) - { - auto __p = g_simple_action_new(Str.toStringz(name), (parameterType is null) ? null : parameterType.getVariantTypeStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSimpleAction*) __p, true); - } - - /** - * Creates a new stateful action. - * - * All future state values must have the same #GVariantType as the initial - * @state. - * - * If the @state #GVariant is floating, it is consumed. - * - * Params: - * name = the name of the action - * parameterType = the type of the parameter that will be passed to - * handlers for the #GSimpleAction::activate signal, or %NULL for no parameter - * state = the initial state of the action - * - * Returns: a new #GSimpleAction - * - * Since: 2.28 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string name, VariantType parameterType, Variant state) - { - auto __p = g_simple_action_new_stateful(Str.toStringz(name), (parameterType is null) ? null : parameterType.getVariantTypeStruct(), (state is null) ? null : state.getVariantStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_stateful"); - } - - this(cast(GSimpleAction*) __p, true); - } - - /** - * Sets the action as enabled or not. - * - * An action must be enabled in order to be activated or in order to - * have its state changed from outside callers. - * - * This should only be called by the implementor of the action. Users - * of the action should not attempt to modify its enabled flag. - * - * Params: - * enabled = whether the action is enabled - * - * Since: 2.28 - */ - public void setEnabled(bool enabled) - { - g_simple_action_set_enabled(gSimpleAction, enabled); - } - - /** - * Sets the state of the action. - * - * This directly updates the 'state' property to the given value. - * - * This should only be called by the implementor of the action. Users - * of the action should not attempt to directly modify the 'state' - * property. Instead, they should call g_action_change_state() to - * request the change. - * - * If the @value GVariant is floating, it is consumed. - * - * Params: - * value = the new #GVariant for the state - * - * Since: 2.30 - */ - public void setState(Variant value) - { - g_simple_action_set_state(gSimpleAction, (value is null) ? null : value.getVariantStruct()); - } - - /** - * Sets the state hint for the action. - * - * See g_action_get_state_hint() for more information about - * action state hints. - * - * Params: - * stateHint = a #GVariant representing the state hint - * - * Since: 2.44 - */ - public void setStateHint(Variant stateHint) - { - g_simple_action_set_state_hint(gSimpleAction, (stateHint is null) ? null : stateHint.getVariantStruct()); - } - - /** - * Indicates that the action was just activated. - * - * @parameter will always be of the expected type, i.e. the parameter type - * specified when the action was created. If an incorrect type is given when - * activating the action, this signal is not emitted. - * - * Since GLib 2.40, if no handler is connected to this signal then the - * default behaviour for boolean-stated actions with a %NULL parameter - * type is to toggle them via the #GSimpleAction::change-state signal. - * For stateful actions where the state type is equal to the parameter - * type, the default is to forward them directly to - * #GSimpleAction::change-state. This should allow almost all users - * of #GSimpleAction to connect only one handler or the other. - * - * Params: - * parameter = the parameter to the activation, or %NULL if it has - * no parameter - * - * Since: 2.28 - */ - gulong addOnActivate(void delegate(Variant, SimpleAction) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "activate", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Indicates that the action just received a request to change its - * state. - * - * @value will always be of the correct state type, i.e. the type of the - * initial state passed to g_simple_action_new_stateful(). If an incorrect - * type is given when requesting to change the state, this signal is not - * emitted. - * - * If no handler is connected to this signal then the default - * behaviour is to call g_simple_action_set_state() to set the state - * to the requested value. If you connect a signal handler then no - * default action is taken. If the state should change then you must - * call g_simple_action_set_state() from the handler. - * - * An example of a 'change-state' handler: - * |[ - * static void - * change_volume_state (GSimpleAction *action, - * GVariant *value, - * gpointer user_data) - * { - * gint requested; - * - * requested = g_variant_get_int32 (value); - * - * // Volume only goes from 0 to 10 - * if (0 <= requested && requested <= 10) - * g_simple_action_set_state (action, value); - * } - * ]| - * - * The handler need not set the state to the requested value. - * It could set it to any value at all, or take some other action. - * - * Params: - * value = the requested value for the state - * - * Since: 2.30 - */ - gulong addOnChangeState(void delegate(Variant, SimpleAction) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "change-state", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/SimpleActionGroup.d b/generated/gtkd/gio/SimpleActionGroup.d deleted file mode 100644 index e381a26c7..000000000 --- a/generated/gtkd/gio/SimpleActionGroup.d +++ /dev/null @@ -1,187 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SimpleActionGroup; - -private import gio.ActionGroupIF; -private import gio.ActionGroupT; -private import gio.ActionIF; -private import gio.ActionMapIF; -private import gio.ActionMapT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GSimpleActionGroup is a hash table filled with #GAction objects, - * implementing the #GActionGroup and #GActionMap interfaces. - * - * Since: 2.28 - */ -public class SimpleActionGroup : ObjectG, ActionGroupIF, ActionMapIF -{ - /** the main Gtk struct */ - protected GSimpleActionGroup* gSimpleActionGroup; - - /** Get the main Gtk struct */ - public GSimpleActionGroup* getSimpleActionGroupStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSimpleActionGroup; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSimpleActionGroup; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSimpleActionGroup* gSimpleActionGroup, bool ownedRef = false) - { - this.gSimpleActionGroup = gSimpleActionGroup; - super(cast(GObject*)gSimpleActionGroup, ownedRef); - } - - // add the ActionGroup capabilities - mixin ActionGroupT!(GSimpleActionGroup); - - // add the ActionMap capabilities - mixin ActionMapT!(GSimpleActionGroup); - - - /** */ - public static GType getType() - { - return g_simple_action_group_get_type(); - } - - /** - * Creates a new, empty, #GSimpleActionGroup. - * - * Returns: a new #GSimpleActionGroup - * - * Since: 2.28 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_simple_action_group_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSimpleActionGroup*) __p, true); - } - - /** - * A convenience function for creating multiple #GSimpleAction instances - * and adding them to the action group. - * - * Deprecated: Use g_action_map_add_action_entries() - * - * Params: - * entries = a pointer to the first item in - * an array of #GActionEntry structs - * userData = the user data for signal connections - * - * Since: 2.30 - */ - public void addEntries(GActionEntry[] entries, void* userData) - { - g_simple_action_group_add_entries(gSimpleActionGroup, entries.ptr, cast(int)entries.length, userData); - } - - /** - * Adds an action to the action group. - * - * If the action group already contains an action with the same name as - * @action then the old action is dropped from the group. - * - * The action group takes its own reference on @action. - * - * Deprecated: Use g_action_map_add_action() - * - * Params: - * action = a #GAction - * - * Since: 2.28 - */ - public void insert(ActionIF action) - { - g_simple_action_group_insert(gSimpleActionGroup, (action is null) ? null : action.getActionStruct()); - } - - /** - * Looks up the action with the name @action_name in the group. - * - * If no such action exists, returns %NULL. - * - * Deprecated: Use g_action_map_lookup_action() - * - * Params: - * actionName = the name of an action - * - * Returns: a #GAction, or %NULL - * - * Since: 2.28 - */ - public ActionIF lookup(string actionName) - { - auto __p = g_simple_action_group_lookup(gSimpleActionGroup, Str.toStringz(actionName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ActionIF)(cast(GAction*) __p); - } - - /** - * Removes the named action from the action group. - * - * If no action of this name is in the group then nothing happens. - * - * Deprecated: Use g_action_map_remove_action() - * - * Params: - * actionName = the name of the action - * - * Since: 2.28 - */ - public void remove(string actionName) - { - g_simple_action_group_remove(gSimpleActionGroup, Str.toStringz(actionName)); - } -} diff --git a/generated/gtkd/gio/SimpleAsyncResult.d b/generated/gtkd/gio/SimpleAsyncResult.d deleted file mode 100644 index 1abcd69f3..000000000 --- a/generated/gtkd/gio/SimpleAsyncResult.d +++ /dev/null @@ -1,634 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SimpleAsyncResult; - -private import gio.AsyncResultIF; -private import gio.AsyncResultT; -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * As of GLib 2.46, #GSimpleAsyncResult is deprecated in favor of - * #GTask, which provides a simpler API. - * - * #GSimpleAsyncResult implements #GAsyncResult. - * - * GSimpleAsyncResult handles #GAsyncReadyCallbacks, error - * reporting, operation cancellation and the final state of an operation, - * completely transparent to the application. Results can be returned - * as a pointer e.g. for functions that return data that is collected - * asynchronously, a boolean value for checking the success or failure - * of an operation, or a #gssize for operations which return the number - * of bytes modified by the operation; all of the simple return cases - * are covered. - * - * Most of the time, an application will not need to know of the details - * of this API; it is handled transparently, and any necessary operations - * are handled by #GAsyncResult's interface. However, if implementing a - * new GIO module, for writing language bindings, or for complex - * applications that need better control of how asynchronous operations - * are completed, it is important to understand this functionality. - * - * GSimpleAsyncResults are tagged with the calling function to ensure - * that asynchronous functions and their finishing functions are used - * together correctly. - * - * To create a new #GSimpleAsyncResult, call g_simple_async_result_new(). - * If the result needs to be created for a #GError, use - * g_simple_async_result_new_from_error() or - * g_simple_async_result_new_take_error(). If a #GError is not available - * (e.g. the asynchronous operation's doesn't take a #GError argument), - * but the result still needs to be created for an error condition, use - * g_simple_async_result_new_error() (or g_simple_async_result_set_error_va() - * if your application or binding requires passing a variable argument list - * directly), and the error can then be propagated through the use of - * g_simple_async_result_propagate_error(). - * - * An asynchronous operation can be made to ignore a cancellation event by - * calling g_simple_async_result_set_handle_cancellation() with a - * #GSimpleAsyncResult for the operation and %FALSE. This is useful for - * operations that are dangerous to cancel, such as close (which would - * cause a leak if cancelled before being run). - * - * GSimpleAsyncResult can integrate into GLib's event loop, #GMainLoop, - * or it can use #GThreads. - * g_simple_async_result_complete() will finish an I/O task directly - * from the point where it is called. g_simple_async_result_complete_in_idle() - * will finish it from an idle handler in the - * [thread-default main context][g-main-context-push-thread-default] - * where the #GSimpleAsyncResult was created. - * g_simple_async_result_run_in_thread() will run the job in a - * separate thread and then use - * g_simple_async_result_complete_in_idle() to deliver the result. - * - * To set the results of an asynchronous function, - * g_simple_async_result_set_op_res_gpointer(), - * g_simple_async_result_set_op_res_gboolean(), and - * g_simple_async_result_set_op_res_gssize() - * are provided, setting the operation's result to a gpointer, gboolean, or - * gssize, respectively. - * - * Likewise, to get the result of an asynchronous function, - * g_simple_async_result_get_op_res_gpointer(), - * g_simple_async_result_get_op_res_gboolean(), and - * g_simple_async_result_get_op_res_gssize() are - * provided, getting the operation's result as a gpointer, gboolean, and - * gssize, respectively. - * - * For the details of the requirements implementations must respect, see - * #GAsyncResult. A typical implementation of an asynchronous operation - * using GSimpleAsyncResult looks something like this: - * - * |[ - * static void - * baked_cb (Cake *cake, - * gpointer user_data) - * { - * // In this example, this callback is not given a reference to the cake, - * // so the GSimpleAsyncResult has to take a reference to it. - * GSimpleAsyncResult *result = user_data; - * - * if (cake == NULL) - * g_simple_async_result_set_error (result, - * BAKER_ERRORS, - * BAKER_ERROR_NO_FLOUR, - * "Go to the supermarket"); - * else - * g_simple_async_result_set_op_res_gpointer (result, - * g_object_ref (cake), - * g_object_unref); - * - * - * // In this example, we assume that baked_cb is called as a callback from - * // the mainloop, so it's safe to complete the operation synchronously here. - * // If, however, _baker_prepare_cake () might call its callback without - * // first returning to the mainloop — inadvisable, but some APIs do so — - * // we would need to use g_simple_async_result_complete_in_idle(). - * g_simple_async_result_complete (result); - * g_object_unref (result); - * } - * - * void - * baker_bake_cake_async (Baker *self, - * guint radius, - * GAsyncReadyCallback callback, - * gpointer user_data) - * { - * GSimpleAsyncResult *simple; - * Cake *cake; - * - * if (radius < 3) - * { - * g_simple_async_report_error_in_idle (G_OBJECT (self), - * callback, - * user_data, - * BAKER_ERRORS, - * BAKER_ERROR_TOO_SMALL, - * "%ucm radius cakes are silly", - * radius); - * return; - * } - * - * simple = g_simple_async_result_new (G_OBJECT (self), - * callback, - * user_data, - * baker_bake_cake_async); - * cake = _baker_get_cached_cake (self, radius); - * - * if (cake != NULL) - * { - * g_simple_async_result_set_op_res_gpointer (simple, - * g_object_ref (cake), - * g_object_unref); - * g_simple_async_result_complete_in_idle (simple); - * g_object_unref (simple); - * // Drop the reference returned by _baker_get_cached_cake(); - * // the GSimpleAsyncResult has taken its own reference. - * g_object_unref (cake); - * return; - * } - * - * _baker_prepare_cake (self, radius, baked_cb, simple); - * } - * - * Cake * - * baker_bake_cake_finish (Baker *self, - * GAsyncResult *result, - * GError **error) - * { - * GSimpleAsyncResult *simple; - * Cake *cake; - * - * g_return_val_if_fail (g_simple_async_result_is_valid (result, - * G_OBJECT (self), - * baker_bake_cake_async), - * NULL); - * - * simple = (GSimpleAsyncResult *) result; - * - * if (g_simple_async_result_propagate_error (simple, error)) - * return NULL; - * - * cake = CAKE (g_simple_async_result_get_op_res_gpointer (simple)); - * return g_object_ref (cake); - * } - * ]| - */ -public class SimpleAsyncResult : ObjectG, AsyncResultIF -{ - /** the main Gtk struct */ - protected GSimpleAsyncResult* gSimpleAsyncResult; - - /** Get the main Gtk struct */ - public GSimpleAsyncResult* getSimpleAsyncResultStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSimpleAsyncResult; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSimpleAsyncResult; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSimpleAsyncResult* gSimpleAsyncResult, bool ownedRef = false) - { - this.gSimpleAsyncResult = gSimpleAsyncResult; - super(cast(GObject*)gSimpleAsyncResult, ownedRef); - } - - // add the AsyncResult capabilities - mixin AsyncResultT!(GSimpleAsyncResult); - - - /** */ - public static GType getType() - { - return g_simple_async_result_get_type(); - } - - /** - * Creates a #GSimpleAsyncResult. - * - * The common convention is to create the #GSimpleAsyncResult in the - * function that starts the asynchronous operation and use that same - * function as the @source_tag. - * - * If your operation supports cancellation with #GCancellable (which it - * probably should) then you should provide the user's cancellable to - * g_simple_async_result_set_check_cancellable() immediately after - * this function returns. - * - * Deprecated: Use g_task_new() instead. - * - * Params: - * sourceObject = a #GObject, or %NULL. - * callback = a #GAsyncReadyCallback. - * userData = user data passed to @callback. - * sourceTag = the asynchronous function. - * - * Returns: a #GSimpleAsyncResult. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectG sourceObject, GAsyncReadyCallback callback, void* userData, void* sourceTag) - { - auto __p = g_simple_async_result_new((sourceObject is null) ? null : sourceObject.getObjectGStruct(), callback, userData, sourceTag); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSimpleAsyncResult*) __p, true); - } - - /** - * Creates a #GSimpleAsyncResult from an error condition. - * - * Deprecated: Use g_task_new() and g_task_return_error() instead. - * - * Params: - * sourceObject = a #GObject, or %NULL. - * callback = a #GAsyncReadyCallback. - * userData = user data passed to @callback. - * error = a #GError - * - * Returns: a #GSimpleAsyncResult. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectG sourceObject, GAsyncReadyCallback callback, void* userData, ErrorG error) - { - auto __p = g_simple_async_result_new_from_error((sourceObject is null) ? null : sourceObject.getObjectGStruct(), callback, userData, (error is null) ? null : error.getErrorGStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_error"); - } - - this(cast(GSimpleAsyncResult*) __p, true); - } - - /** - * Ensures that the data passed to the _finish function of an async - * operation is consistent. Three checks are performed. - * - * First, @result is checked to ensure that it is really a - * #GSimpleAsyncResult. Second, @source is checked to ensure that it - * matches the source object of @result. Third, @source_tag is - * checked to ensure that it is equal to the @source_tag argument given - * to g_simple_async_result_new() (which, by convention, is a pointer - * to the _async function corresponding to the _finish function from - * which this function is called). (Alternatively, if either - * @source_tag or @result's source tag is %NULL, then the source tag - * check is skipped.) - * - * Deprecated: Use #GTask and g_task_is_valid() instead. - * - * Params: - * result = the #GAsyncResult passed to the _finish function. - * source = the #GObject passed to the _finish function. - * sourceTag = the asynchronous function. - * - * Returns: #TRUE if all checks passed or #FALSE if any failed. - * - * Since: 2.20 - */ - public static bool isValid(AsyncResultIF result, ObjectG source, void* sourceTag) - { - return g_simple_async_result_is_valid((result is null) ? null : result.getAsyncResultStruct(), (source is null) ? null : source.getObjectGStruct(), sourceTag) != 0; - } - - /** - * Completes an asynchronous I/O job immediately. Must be called in - * the thread where the asynchronous result was to be delivered, as it - * invokes the callback directly. If you are in a different thread use - * g_simple_async_result_complete_in_idle(). - * - * Calling this function takes a reference to @simple for as long as - * is needed to complete the call. - * - * Deprecated: Use #GTask instead. - */ - public void complete() - { - g_simple_async_result_complete(gSimpleAsyncResult); - } - - /** - * Completes an asynchronous function in an idle handler in the - * [thread-default main context][g-main-context-push-thread-default] - * of the thread that @simple was initially created in - * (and re-pushes that context around the invocation of the callback). - * - * Calling this function takes a reference to @simple for as long as - * is needed to complete the call. - * - * Deprecated: Use #GTask instead. - */ - public void completeInIdle() - { - g_simple_async_result_complete_in_idle(gSimpleAsyncResult); - } - - /** - * Gets the operation result boolean from within the asynchronous result. - * - * Deprecated: Use #GTask and g_task_propagate_boolean() instead. - * - * Returns: %TRUE if the operation's result was %TRUE, %FALSE - * if the operation's result was %FALSE. - */ - public bool getOpResGboolean() - { - return g_simple_async_result_get_op_res_gboolean(gSimpleAsyncResult) != 0; - } - - /** - * Gets a pointer result as returned by the asynchronous function. - * - * Deprecated: Use #GTask and g_task_propagate_pointer() instead. - * - * Returns: a pointer from the result. - */ - public void* getOpResGpointer() - { - return g_simple_async_result_get_op_res_gpointer(gSimpleAsyncResult); - } - - /** - * Gets a gssize from the asynchronous result. - * - * Deprecated: Use #GTask and g_task_propagate_int() instead. - * - * Returns: a gssize returned from the asynchronous function. - */ - public ptrdiff_t getOpResGssize() - { - return g_simple_async_result_get_op_res_gssize(gSimpleAsyncResult); - } - - /** - * Gets the source tag for the #GSimpleAsyncResult. - * - * Deprecated: Use #GTask and g_task_get_source_tag() instead. - * - * Returns: a #gpointer to the source object for the #GSimpleAsyncResult. - */ - public void* getSourceTag() - { - return g_simple_async_result_get_source_tag(gSimpleAsyncResult); - } - - /** - * Propagates an error from within the simple asynchronous result to - * a given destination. - * - * If the #GCancellable given to a prior call to - * g_simple_async_result_set_check_cancellable() is cancelled then this - * function will return %TRUE with @dest set appropriately. - * - * Deprecated: Use #GTask instead. - * - * Returns: %TRUE if the error was propagated to @dest. %FALSE otherwise. - * - * Throws: GException on failure. - */ - public bool propagateError() - { - GError* err = null; - - auto __p = g_simple_async_result_propagate_error(gSimpleAsyncResult, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Runs the asynchronous job in a separate thread and then calls - * g_simple_async_result_complete_in_idle() on @simple to return - * the result to the appropriate main loop. - * - * Calling this function takes a reference to @simple for as long as - * is needed to run the job and report its completion. - * - * Deprecated: Use #GTask and g_task_run_in_thread() instead. - * - * Params: - * func = a #GSimpleAsyncThreadFunc. - * ioPriority = the io priority of the request. - * cancellable = optional #GCancellable object, %NULL to ignore. - */ - public void runInThread(GSimpleAsyncThreadFunc func, int ioPriority, Cancellable cancellable) - { - g_simple_async_result_run_in_thread(gSimpleAsyncResult, func, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct()); - } - - /** - * Sets a #GCancellable to check before dispatching results. - * - * This function has one very specific purpose: the provided cancellable - * is checked at the time of g_simple_async_result_propagate_error() If - * it is cancelled, these functions will return an "Operation was - * cancelled" error (%G_IO_ERROR_CANCELLED). - * - * Implementors of cancellable asynchronous functions should use this in - * order to provide a guarantee to their callers that cancelling an - * async operation will reliably result in an error being returned for - * that operation (even if a positive result for the operation has - * already been sent as an idle to the main context to be dispatched). - * - * The checking described above is done regardless of any call to the - * unrelated g_simple_async_result_set_handle_cancellation() function. - * - * Deprecated: Use #GTask instead. - * - * Params: - * checkCancellable = a #GCancellable to check, or %NULL to unset - * - * Since: 2.32 - */ - public void setCheckCancellable(Cancellable checkCancellable) - { - g_simple_async_result_set_check_cancellable(gSimpleAsyncResult, (checkCancellable is null) ? null : checkCancellable.getCancellableStruct()); - } - - /** - * Sets an error within the asynchronous result without a #GError. - * Unless writing a binding, see g_simple_async_result_set_error(). - * - * Deprecated: Use #GTask and g_task_return_error() instead. - * - * Params: - * domain = a #GQuark (usually #G_IO_ERROR). - * code = an error code. - * format = a formatted error reporting string. - * args = va_list of arguments. - */ - public void setErrorVa(GQuark domain, int code, string format, void* args) - { - g_simple_async_result_set_error_va(gSimpleAsyncResult, domain, code, Str.toStringz(format), args); - } - - /** - * Sets the result from a #GError. - * - * Deprecated: Use #GTask and g_task_return_error() instead. - * - * Params: - * error = #GError. - */ - public void setFromError(ErrorG error) - { - g_simple_async_result_set_from_error(gSimpleAsyncResult, (error is null) ? null : error.getErrorGStruct()); - } - - /** - * Sets whether to handle cancellation within the asynchronous operation. - * - * This function has nothing to do with - * g_simple_async_result_set_check_cancellable(). It only refers to the - * #GCancellable passed to g_simple_async_result_run_in_thread(). - * - * Params: - * handleCancellation = a #gboolean. - */ - public void setHandleCancellation(bool handleCancellation) - { - g_simple_async_result_set_handle_cancellation(gSimpleAsyncResult, handleCancellation); - } - - /** - * Sets the operation result to a boolean within the asynchronous result. - * - * Deprecated: Use #GTask and g_task_return_boolean() instead. - * - * Params: - * opRes = a #gboolean. - */ - public void setOpResGboolean(bool opRes) - { - g_simple_async_result_set_op_res_gboolean(gSimpleAsyncResult, opRes); - } - - /** - * Sets the operation result within the asynchronous result to a pointer. - * - * Deprecated: Use #GTask and g_task_return_pointer() instead. - * - * Params: - * opRes = a pointer result from an asynchronous function. - * destroyOpRes = a #GDestroyNotify function. - */ - public void setOpResGpointer(void* opRes, GDestroyNotify destroyOpRes) - { - g_simple_async_result_set_op_res_gpointer(gSimpleAsyncResult, opRes, destroyOpRes); - } - - /** - * Sets the operation result within the asynchronous result to - * the given @op_res. - * - * Deprecated: Use #GTask and g_task_return_int() instead. - * - * Params: - * opRes = a #gssize. - */ - public void setOpResGssize(ptrdiff_t opRes) - { - g_simple_async_result_set_op_res_gssize(gSimpleAsyncResult, opRes); - } - - /** - * Sets the result from @error, and takes over the caller's ownership - * of @error, so the caller does not need to free it any more. - * - * Deprecated: Use #GTask and g_task_return_error() instead. - * - * Params: - * error = a #GError - * - * Since: 2.28 - */ - public void takeError(ErrorG error) - { - g_simple_async_result_take_error(gSimpleAsyncResult, (error is null) ? null : error.getErrorGStruct()); - } - - /** - * Reports an error in an idle function. Similar to - * g_simple_async_report_error_in_idle(), but takes a #GError rather - * than building a new one. - * - * Deprecated: Use g_task_report_error(). - * - * Params: - * object = a #GObject, or %NULL - * callback = a #GAsyncReadyCallback. - * userData = user data passed to @callback. - * error = the #GError to report - */ - public static void simpleAsyncReportGerrorInIdle(ObjectG object, GAsyncReadyCallback callback, void* userData, ErrorG error) - { - g_simple_async_report_gerror_in_idle((object is null) ? null : object.getObjectGStruct(), callback, userData, (error is null) ? null : error.getErrorGStruct()); - } - - /** - * Reports an error in an idle function. Similar to - * g_simple_async_report_gerror_in_idle(), but takes over the caller's - * ownership of @error, so the caller does not have to free it any more. - * - * Deprecated: Use g_task_report_error(). - * - * Params: - * object = a #GObject, or %NULL - * callback = a #GAsyncReadyCallback. - * userData = user data passed to @callback. - * error = the #GError to report - * - * Since: 2.28 - */ - public static void simpleAsyncReportTakeGerrorInIdle(ObjectG object, GAsyncReadyCallback callback, void* userData, ErrorG error) - { - g_simple_async_report_take_gerror_in_idle((object is null) ? null : object.getObjectGStruct(), callback, userData, (error is null) ? null : error.getErrorGStruct()); - } -} diff --git a/generated/gtkd/gio/SimpleIOStream.d b/generated/gtkd/gio/SimpleIOStream.d deleted file mode 100644 index 4d9fcfcb4..000000000 --- a/generated/gtkd/gio/SimpleIOStream.d +++ /dev/null @@ -1,108 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SimpleIOStream; - -private import gio.IOStream; -private import gio.InputStream; -private import gio.OutputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * GSimpleIOStream creates a #GIOStream from an arbitrary #GInputStream and - * #GOutputStream. This allows any pair of input and output streams to be used - * with #GIOStream methods. - * - * This is useful when you obtained a #GInputStream and a #GOutputStream - * by other means, for instance creating them with platform specific methods as - * g_unix_input_stream_new() or g_win32_input_stream_new(), and you want - * to take advantage of the methods provided by #GIOStream. - * - * Since: 2.44 - */ -public class SimpleIOStream : IOStream -{ - /** the main Gtk struct */ - protected GSimpleIOStream* gSimpleIOStream; - - /** Get the main Gtk struct */ - public GSimpleIOStream* getSimpleIOStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSimpleIOStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSimpleIOStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSimpleIOStream* gSimpleIOStream, bool ownedRef = false) - { - this.gSimpleIOStream = gSimpleIOStream; - super(cast(GIOStream*)gSimpleIOStream, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_simple_io_stream_get_type(); - } - - /** - * Creates a new #GSimpleIOStream wrapping @input_stream and @output_stream. - * See also #GIOStream. - * - * Params: - * inputStream = a #GInputStream. - * outputStream = a #GOutputStream. - * - * Returns: a new #GSimpleIOStream instance. - * - * Since: 2.44 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(InputStream inputStream, OutputStream outputStream) - { - auto __p = g_simple_io_stream_new((inputStream is null) ? null : inputStream.getInputStreamStruct(), (outputStream is null) ? null : outputStream.getOutputStreamStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSimpleIOStream*) __p, true); - } -} diff --git a/generated/gtkd/gio/SimplePermission.d b/generated/gtkd/gio/SimplePermission.d deleted file mode 100644 index 7686522f9..000000000 --- a/generated/gtkd/gio/SimplePermission.d +++ /dev/null @@ -1,100 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SimplePermission; - -private import gio.Permission; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GSimplePermission is a trivial implementation of #GPermission that - * represents a permission that is either always or never allowed. The - * value is given at construction and doesn't change. - * - * Calling request or release will result in errors. - */ -public class SimplePermission : Permission -{ - /** the main Gtk struct */ - protected GSimplePermission* gSimplePermission; - - /** Get the main Gtk struct */ - public GSimplePermission* getSimplePermissionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSimplePermission; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSimplePermission; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSimplePermission* gSimplePermission, bool ownedRef = false) - { - this.gSimplePermission = gSimplePermission; - super(cast(GPermission*)gSimplePermission, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_simple_permission_get_type(); - } - - /** - * Creates a new #GPermission instance that represents an action that is - * either always or never allowed. - * - * Params: - * allowed = %TRUE if the action is allowed - * - * Returns: the #GSimplePermission, as a #GPermission - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(bool allowed) - { - auto __p = g_simple_permission_new(allowed); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSimplePermission*) __p, true); - } -} diff --git a/generated/gtkd/gio/SimpleProxyResolver.d b/generated/gtkd/gio/SimpleProxyResolver.d deleted file mode 100644 index 350209c58..000000000 --- a/generated/gtkd/gio/SimpleProxyResolver.d +++ /dev/null @@ -1,172 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SimpleProxyResolver; - -private import gio.ProxyResolverIF; -private import gio.ProxyResolverT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GSimpleProxyResolver is a simple #GProxyResolver implementation - * that handles a single default proxy, multiple URI-scheme-specific - * proxies, and a list of hosts that proxies should not be used for. - * - * #GSimpleProxyResolver is never the default proxy resolver, but it - * can be used as the base class for another proxy resolver - * implementation, or it can be created and used manually, such as - * with g_socket_client_set_proxy_resolver(). - * - * Since: 2.36 - */ -public class SimpleProxyResolver : ObjectG, ProxyResolverIF -{ - /** the main Gtk struct */ - protected GSimpleProxyResolver* gSimpleProxyResolver; - - /** Get the main Gtk struct */ - public GSimpleProxyResolver* getSimpleProxyResolverStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSimpleProxyResolver; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSimpleProxyResolver; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSimpleProxyResolver* gSimpleProxyResolver, bool ownedRef = false) - { - this.gSimpleProxyResolver = gSimpleProxyResolver; - super(cast(GObject*)gSimpleProxyResolver, ownedRef); - } - - // add the ProxyResolver capabilities - mixin ProxyResolverT!(GSimpleProxyResolver); - - - /** */ - public static GType getType() - { - return g_simple_proxy_resolver_get_type(); - } - - /** - * Creates a new #GSimpleProxyResolver. See - * #GSimpleProxyResolver:default-proxy and - * #GSimpleProxyResolver:ignore-hosts for more details on how the - * arguments are interpreted. - * - * Params: - * defaultProxy = the default proxy to use, eg - * "socks://192.168.1.1" - * ignoreHosts = an optional list of hosts/IP addresses - * to not use a proxy for. - * - * Returns: a new #GSimpleProxyResolver - * - * Since: 2.36 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string defaultProxy, string[] ignoreHosts) - { - auto __p = g_simple_proxy_resolver_new(Str.toStringz(defaultProxy), Str.toStringzArray(ignoreHosts)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSimpleProxyResolver*) __p, true); - } - - /** - * Sets the default proxy on @resolver, to be used for any URIs that - * don't match #GSimpleProxyResolver:ignore-hosts or a proxy set - * via g_simple_proxy_resolver_set_uri_proxy(). - * - * If @default_proxy starts with "socks://", - * #GSimpleProxyResolver will treat it as referring to all three of - * the socks5, socks4a, and socks4 proxy types. - * - * Params: - * defaultProxy = the default proxy to use - * - * Since: 2.36 - */ - public void setDefaultProxy(string defaultProxy) - { - g_simple_proxy_resolver_set_default_proxy(gSimpleProxyResolver, Str.toStringz(defaultProxy)); - } - - /** - * Sets the list of ignored hosts. - * - * See #GSimpleProxyResolver:ignore-hosts for more details on how the - * @ignore_hosts argument is interpreted. - * - * Params: - * ignoreHosts = %NULL-terminated list of hosts/IP addresses - * to not use a proxy for - * - * Since: 2.36 - */ - public void setIgnoreHosts(string[] ignoreHosts) - { - g_simple_proxy_resolver_set_ignore_hosts(gSimpleProxyResolver, Str.toStringzArray(ignoreHosts)); - } - - /** - * Adds a URI-scheme-specific proxy to @resolver; URIs whose scheme - * matches @uri_scheme (and which don't match - * #GSimpleProxyResolver:ignore-hosts) will be proxied via @proxy. - * - * As with #GSimpleProxyResolver:default-proxy, if @proxy starts with - * "socks://", #GSimpleProxyResolver will treat it - * as referring to all three of the socks5, socks4a, and socks4 proxy - * types. - * - * Params: - * uriScheme = the URI scheme to add a proxy for - * proxy = the proxy to use for @uri_scheme - * - * Since: 2.36 - */ - public void setUriProxy(string uriScheme, string proxy) - { - g_simple_proxy_resolver_set_uri_proxy(gSimpleProxyResolver, Str.toStringz(uriScheme), Str.toStringz(proxy)); - } -} diff --git a/generated/gtkd/gio/Socket.d b/generated/gtkd/gio/Socket.d deleted file mode 100644 index 18abee600..000000000 --- a/generated/gtkd/gio/Socket.d +++ /dev/null @@ -1,2025 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Socket; - -private import gio.Cancellable; -private import gio.Credentials; -private import gio.DatagramBasedIF; -private import gio.DatagramBasedT; -private import gio.InetAddress; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.SocketAddress; -private import gio.SocketConnection; -private import gio.SocketControlMessage; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Source; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * A #GSocket is a low-level networking primitive. It is a more or less - * direct mapping of the BSD socket API in a portable GObject based API. - * It supports both the UNIX socket implementations and winsock2 on Windows. - * - * #GSocket is the platform independent base upon which the higher level - * network primitives are based. Applications are not typically meant to - * use it directly, but rather through classes like #GSocketClient, - * #GSocketService and #GSocketConnection. However there may be cases where - * direct use of #GSocket is useful. - * - * #GSocket implements the #GInitable interface, so if it is manually constructed - * by e.g. g_object_new() you must call g_initable_init() and check the - * results before using the object. This is done automatically in - * g_socket_new() and g_socket_new_from_fd(), so these functions can return - * %NULL. - * - * Sockets operate in two general modes, blocking or non-blocking. When - * in blocking mode all operations (which don’t take an explicit blocking - * parameter) block until the requested operation - * is finished or there is an error. In non-blocking mode all calls that - * would block return immediately with a %G_IO_ERROR_WOULD_BLOCK error. - * To know when a call would successfully run you can call g_socket_condition_check(), - * or g_socket_condition_wait(). You can also use g_socket_create_source() and - * attach it to a #GMainContext to get callbacks when I/O is possible. - * Note that all sockets are always set to non blocking mode in the system, and - * blocking mode is emulated in GSocket. - * - * When working in non-blocking mode applications should always be able to - * handle getting a %G_IO_ERROR_WOULD_BLOCK error even when some other - * function said that I/O was possible. This can easily happen in case - * of a race condition in the application, but it can also happen for other - * reasons. For instance, on Windows a socket is always seen as writable - * until a write returns %G_IO_ERROR_WOULD_BLOCK. - * - * #GSockets can be either connection oriented or datagram based. - * For connection oriented types you must first establish a connection by - * either connecting to an address or accepting a connection from another - * address. For connectionless socket types the target/source address is - * specified or received in each I/O operation. - * - * All socket file descriptors are set to be close-on-exec. - * - * Note that creating a #GSocket causes the signal %SIGPIPE to be - * ignored for the remainder of the program. If you are writing a - * command-line utility that uses #GSocket, you may need to take into - * account the fact that your program will not automatically be killed - * if it tries to write to %stdout after it has been closed. - * - * Like most other APIs in GLib, #GSocket is not inherently thread safe. To use - * a #GSocket concurrently from multiple threads, you must implement your own - * locking. - * - * Since: 2.22 - */ -public class Socket : ObjectG, DatagramBasedIF, InitableIF -{ - /** the main Gtk struct */ - protected GSocket* gSocket; - - /** Get the main Gtk struct */ - public GSocket* getSocketStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocket; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocket; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocket* gSocket, bool ownedRef = false) - { - this.gSocket = gSocket; - super(cast(GObject*)gSocket, ownedRef); - } - - // add the DatagramBased capabilities - mixin DatagramBasedT!(GSocket); - - // add the Initable capabilities - mixin InitableT!(GSocket); - - - /** */ - public static GType getType() - { - return g_socket_get_type(); - } - - /** - * Creates a new #GSocket with the defined family, type and protocol. - * If @protocol is 0 (%G_SOCKET_PROTOCOL_DEFAULT) the default protocol type - * for the family and type is used. - * - * The @protocol is a family and type specific int that specifies what - * kind of protocol to use. #GSocketProtocol lists several common ones. - * Many families only support one protocol, and use 0 for this, others - * support several and using 0 means to use the default protocol for - * the family and type. - * - * The protocol id is passed directly to the operating - * system, so you can use protocols not listed in #GSocketProtocol if you - * know the protocol number used for it. - * - * Params: - * family = the socket family to use, e.g. %G_SOCKET_FAMILY_IPV4. - * type = the socket type to use. - * protocol = the id of the protocol to use, or 0 for default. - * - * Returns: a #GSocket or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GSocketFamily family, GSocketType type, GSocketProtocol protocol) - { - GError* err = null; - - auto __p = g_socket_new(family, type, protocol, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSocket*) __p, true); - } - - /** - * Creates a new #GSocket from a native file descriptor - * or winsock SOCKET handle. - * - * This reads all the settings from the file descriptor so that - * all properties should work. Note that the file descriptor - * will be set to non-blocking mode, independent on the blocking - * mode of the #GSocket. - * - * On success, the returned #GSocket takes ownership of @fd. On failure, the - * caller must close @fd themselves. - * - * Since GLib 2.46, it is no longer a fatal error to call this on a non-socket - * descriptor. Instead, a GError will be set with code %G_IO_ERROR_FAILED - * - * Params: - * fd = a native socket file descriptor. - * - * Returns: a #GSocket or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int fd) - { - GError* err = null; - - auto __p = g_socket_new_from_fd(fd, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_fd"); - } - - this(cast(GSocket*) __p, true); - } - - /** - * Accept incoming connections on a connection-based socket. This removes - * the first outstanding connection request from the listening socket and - * creates a #GSocket object for it. - * - * The @socket must be bound to a local address with g_socket_bind() and - * must be listening for incoming connections (g_socket_listen()). - * - * If there are no outstanding connections then the operation will block - * or return %G_IO_ERROR_WOULD_BLOCK if non-blocking I/O is enabled. - * To be notified of an incoming connection, wait for the %G_IO_IN condition. - * - * Params: - * cancellable = a %GCancellable or %NULL - * - * Returns: a new #GSocket, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public Socket accept(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_accept(gSocket, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Socket)(cast(GSocket*) __p, true); - } - - /** - * When a socket is created it is attached to an address family, but it - * doesn't have an address in this family. g_socket_bind() assigns the - * address (sometimes called name) of the socket. - * - * It is generally required to bind to a local address before you can - * receive connections. (See g_socket_listen() and g_socket_accept() ). - * In certain situations, you may also want to bind a socket that will be - * used to initiate connections, though this is not normally required. - * - * If @socket is a TCP socket, then @allow_reuse controls the setting - * of the `SO_REUSEADDR` socket option; normally it should be %TRUE for - * server sockets (sockets that you will eventually call - * g_socket_accept() on), and %FALSE for client sockets. (Failing to - * set this flag on a server socket may cause g_socket_bind() to return - * %G_IO_ERROR_ADDRESS_IN_USE if the server program is stopped and then - * immediately restarted.) - * - * If @socket is a UDP socket, then @allow_reuse determines whether or - * not other UDP sockets can be bound to the same address at the same - * time. In particular, you can have several UDP sockets bound to the - * same address, and they will all receive all of the multicast and - * broadcast packets sent to that address. (The behavior of unicast - * UDP packets to an address with multiple listeners is not defined.) - * - * Params: - * address = a #GSocketAddress specifying the local address. - * allowReuse = whether to allow reusing this address - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool bind(SocketAddress address, bool allowReuse) - { - GError* err = null; - - auto __p = g_socket_bind(gSocket, (address is null) ? null : address.getSocketAddressStruct(), allowReuse, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks and resets the pending connect error for the socket. - * This is used to check for errors when g_socket_connect() is - * used in non-blocking mode. - * - * Returns: %TRUE if no error, %FALSE otherwise, setting @error to the error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool checkConnectResult() - { - GError* err = null; - - auto __p = g_socket_check_connect_result(gSocket, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Closes the socket, shutting down any active connection. - * - * Closing a socket does not wait for all outstanding I/O operations - * to finish, so the caller should not rely on them to be guaranteed - * to complete even if the close returns with no error. - * - * Once the socket is closed, all other operations will return - * %G_IO_ERROR_CLOSED. Closing a socket multiple times will not - * return an error. - * - * Sockets will be automatically closed when the last reference - * is dropped, but you might want to call this function to make sure - * resources are released as early as possible. - * - * Beware that due to the way that TCP works, it is possible for - * recently-sent data to be lost if either you close a socket while the - * %G_IO_IN condition is set, or else if the remote connection tries to - * send something to you after you close the socket but before it has - * finished reading all of the data you sent. There is no easy generic - * way to avoid this problem; the easiest fix is to design the network - * protocol such that the client will never send data "out of turn". - * Another solution is for the server to half-close the connection by - * calling g_socket_shutdown() with only the @shutdown_write flag set, - * and then wait for the client to notice this and close its side of the - * connection, after which the server can safely call g_socket_close(). - * (This is what #GTcpConnection does if you call - * g_tcp_connection_set_graceful_disconnect(). But of course, this - * only works if the client will close its connection after the server - * does.) - * - * Returns: %TRUE on success, %FALSE on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool close() - { - GError* err = null; - - auto __p = g_socket_close(gSocket, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks on the readiness of @socket to perform operations. - * The operations specified in @condition are checked for and masked - * against the currently-satisfied conditions on @socket. The result - * is returned. - * - * Note that on Windows, it is possible for an operation to return - * %G_IO_ERROR_WOULD_BLOCK even immediately after - * g_socket_condition_check() has claimed that the socket is ready for - * writing. Rather than calling g_socket_condition_check() and then - * writing to the socket if it succeeds, it is generally better to - * simply try writing to the socket right away, and try again later if - * the initial attempt returns %G_IO_ERROR_WOULD_BLOCK. - * - * It is meaningless to specify %G_IO_ERR or %G_IO_HUP in condition; - * these conditions will always be set in the output if they are true. - * - * This call never blocks. - * - * Params: - * condition = a #GIOCondition mask to check - * - * Returns: the @GIOCondition mask of the current state - * - * Since: 2.22 - */ - public GIOCondition conditionCheck(GIOCondition condition) - { - return g_socket_condition_check(gSocket, condition); - } - - /** - * Waits for up to @timeout_us microseconds for @condition to become true - * on @socket. If the condition is met, %TRUE is returned. - * - * If @cancellable is cancelled before the condition is met, or if - * @timeout_us (or the socket's #GSocket:timeout) is reached before the - * condition is met, then %FALSE is returned and @error, if non-%NULL, - * is set to the appropriate value (%G_IO_ERROR_CANCELLED or - * %G_IO_ERROR_TIMED_OUT). - * - * If you don't want a timeout, use g_socket_condition_wait(). - * (Alternatively, you can pass -1 for @timeout_us.) - * - * Note that although @timeout_us is in microseconds for consistency with - * other GLib APIs, this function actually only has millisecond - * resolution, and the behavior is undefined if @timeout_us is not an - * exact number of milliseconds. - * - * Params: - * condition = a #GIOCondition mask to wait for - * timeoutUs = the maximum time (in microseconds) to wait, or -1 - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE if the condition was met, %FALSE otherwise - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool conditionTimedWait(GIOCondition condition, long timeoutUs, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_condition_timed_wait(gSocket, condition, timeoutUs, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Waits for @condition to become true on @socket. When the condition - * is met, %TRUE is returned. - * - * If @cancellable is cancelled before the condition is met, or if the - * socket has a timeout set and it is reached before the condition is - * met, then %FALSE is returned and @error, if non-%NULL, is set to - * the appropriate value (%G_IO_ERROR_CANCELLED or - * %G_IO_ERROR_TIMED_OUT). - * - * See also g_socket_condition_timed_wait(). - * - * Params: - * condition = a #GIOCondition mask to wait for - * cancellable = a #GCancellable, or %NULL - * - * Returns: %TRUE if the condition was met, %FALSE otherwise - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool conditionWait(GIOCondition condition, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_condition_wait(gSocket, condition, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Connect the socket to the specified remote address. - * - * For connection oriented socket this generally means we attempt to make - * a connection to the @address. For a connection-less socket it sets - * the default address for g_socket_send() and discards all incoming datagrams - * from other sources. - * - * Generally connection oriented sockets can only connect once, but - * connection-less sockets can connect multiple times to change the - * default address. - * - * If the connect call needs to do network I/O it will block, unless - * non-blocking I/O is enabled. Then %G_IO_ERROR_PENDING is returned - * and the user can be notified of the connection finishing by waiting - * for the G_IO_OUT condition. The result of the connection must then be - * checked with g_socket_check_connect_result(). - * - * Params: - * address = a #GSocketAddress specifying the remote address. - * cancellable = a %GCancellable or %NULL - * - * Returns: %TRUE if connected, %FALSE on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool connect(SocketAddress address, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_connect(gSocket, (address is null) ? null : address.getSocketAddressStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Creates a #GSocketConnection subclass of the right type for - * @socket. - * - * Returns: a #GSocketConnection - * - * Since: 2.22 - */ - public SocketConnection connectionFactoryCreateConnection() - { - auto __p = g_socket_connection_factory_create_connection(gSocket); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * Creates a #GSource that can be attached to a %GMainContext to monitor - * for the availability of the specified @condition on the socket. The #GSource - * keeps a reference to the @socket. - * - * The callback on the source is of the #GSocketSourceFunc type. - * - * It is meaningless to specify %G_IO_ERR or %G_IO_HUP in @condition; - * these conditions will always be reported output if they are true. - * - * @cancellable if not %NULL can be used to cancel the source, which will - * cause the source to trigger, reporting the current condition (which - * is likely 0 unless cancellation happened at the same time as a - * condition change). You can check for this in the callback using - * g_cancellable_is_cancelled(). - * - * If @socket has a timeout set, and it is reached before @condition - * occurs, the source will then trigger anyway, reporting %G_IO_IN or - * %G_IO_OUT depending on @condition. However, @socket will have been - * marked as having had a timeout, and so the next #GSocket I/O method - * you call will then fail with a %G_IO_ERROR_TIMED_OUT. - * - * Params: - * condition = a #GIOCondition mask to monitor - * cancellable = a %GCancellable or %NULL - * - * Returns: a newly allocated %GSource, free with g_source_unref(). - * - * Since: 2.22 - */ - public Source createSource(GIOCondition condition, Cancellable cancellable) - { - auto __p = g_socket_create_source(gSocket, condition, (cancellable is null) ? null : cancellable.getCancellableStruct()); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); - } - - /** - * Get the amount of data pending in the OS input buffer, without blocking. - * - * If @socket is a UDP or SCTP socket, this will return the size of - * just the next packet, even if additional packets are buffered after - * that one. - * - * Note that on Windows, this function is rather inefficient in the - * UDP case, and so if you know any plausible upper bound on the size - * of the incoming packet, it is better to just do a - * g_socket_receive() with a buffer of that size, rather than calling - * g_socket_get_available_bytes() first and then doing a receive of - * exactly the right size. - * - * Returns: the number of bytes that can be read from the socket - * without blocking or truncating, or -1 on error. - * - * Since: 2.32 - */ - public ptrdiff_t getAvailableBytes() - { - return g_socket_get_available_bytes(gSocket); - } - - /** - * Gets the blocking mode of the socket. For details on blocking I/O, - * see g_socket_set_blocking(). - * - * Returns: %TRUE if blocking I/O is used, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool getBlocking() - { - return g_socket_get_blocking(gSocket) != 0; - } - - /** - * Gets the broadcast setting on @socket; if %TRUE, - * it is possible to send packets to broadcast - * addresses. - * - * Returns: the broadcast setting on @socket - * - * Since: 2.32 - */ - public bool getBroadcast() - { - return g_socket_get_broadcast(gSocket) != 0; - } - - /** - * Returns the credentials of the foreign process connected to this - * socket, if any (e.g. it is only supported for %G_SOCKET_FAMILY_UNIX - * sockets). - * - * If this operation isn't supported on the OS, the method fails with - * the %G_IO_ERROR_NOT_SUPPORTED error. On Linux this is implemented - * by reading the %SO_PEERCRED option on the underlying socket. - * - * This method can be expected to be available on the following platforms: - * - * - Linux since GLib 2.26 - * - OpenBSD since GLib 2.30 - * - Solaris, Illumos and OpenSolaris since GLib 2.40 - * - NetBSD since GLib 2.42 - * - macOS, tvOS, iOS since GLib 2.66 - * - * Other ways to obtain credentials from a foreign peer includes the - * #GUnixCredentialsMessage type and - * g_unix_connection_send_credentials() / - * g_unix_connection_receive_credentials() functions. - * - * Returns: %NULL if @error is set, otherwise a #GCredentials object - * that must be freed with g_object_unref(). - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public Credentials getCredentials() - { - GError* err = null; - - auto __p = g_socket_get_credentials(gSocket, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Credentials)(cast(GCredentials*) __p, true); - } - - /** - * Gets the socket family of the socket. - * - * Returns: a #GSocketFamily - * - * Since: 2.22 - */ - public GSocketFamily getFamily() - { - return g_socket_get_family(gSocket); - } - - /** - * Returns the underlying OS socket object. On unix this - * is a socket file descriptor, and on Windows this is - * a Winsock2 SOCKET handle. This may be useful for - * doing platform specific or otherwise unusual operations - * on the socket. - * - * Returns: the file descriptor of the socket. - * - * Since: 2.22 - */ - public int getFd() - { - return g_socket_get_fd(gSocket); - } - - /** - * Gets the keepalive mode of the socket. For details on this, - * see g_socket_set_keepalive(). - * - * Returns: %TRUE if keepalive is active, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool getKeepalive() - { - return g_socket_get_keepalive(gSocket) != 0; - } - - /** - * Gets the listen backlog setting of the socket. For details on this, - * see g_socket_set_listen_backlog(). - * - * Returns: the maximum number of pending connections. - * - * Since: 2.22 - */ - public int getListenBacklog() - { - return g_socket_get_listen_backlog(gSocket); - } - - /** - * Try to get the local address of a bound socket. This is only - * useful if the socket has been bound to a local address, - * either explicitly or implicitly when connecting. - * - * Returns: a #GSocketAddress or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketAddress getLocalAddress() - { - GError* err = null; - - auto __p = g_socket_get_local_address(gSocket, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddress)(cast(GSocketAddress*) __p, true); - } - - /** - * Gets the multicast loopback setting on @socket; if %TRUE (the - * default), outgoing multicast packets will be looped back to - * multicast listeners on the same host. - * - * Returns: the multicast loopback setting on @socket - * - * Since: 2.32 - */ - public bool getMulticastLoopback() - { - return g_socket_get_multicast_loopback(gSocket) != 0; - } - - /** - * Gets the multicast time-to-live setting on @socket; see - * g_socket_set_multicast_ttl() for more details. - * - * Returns: the multicast time-to-live setting on @socket - * - * Since: 2.32 - */ - public uint getMulticastTtl() - { - return g_socket_get_multicast_ttl(gSocket); - } - - /** - * Gets the value of an integer-valued option on @socket, as with - * getsockopt(). (If you need to fetch a non-integer-valued option, - * you will need to call getsockopt() directly.) - * - * The [][gio-gnetworking.h] - * header pulls in system headers that will define most of the - * standard/portable socket options. For unusual socket protocols or - * platform-dependent options, you may need to include additional - * headers. - * - * Note that even for socket options that are a single byte in size, - * @value is still a pointer to a #gint variable, not a #guchar; - * g_socket_get_option() will handle the conversion internally. - * - * Params: - * level = the "API level" of the option (eg, `SOL_SOCKET`) - * optname = the "name" of the option (eg, `SO_BROADCAST`) - * value = return location for the option value - * - * Returns: success or failure. On failure, @error will be set, and - * the system error value (`errno` or WSAGetLastError()) will still - * be set to the result of the getsockopt() call. - * - * Since: 2.36 - * - * Throws: GException on failure. - */ - public bool getOption(int level, int optname, out int value) - { - GError* err = null; - - auto __p = g_socket_get_option(gSocket, level, optname, &value, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the socket protocol id the socket was created with. - * In case the protocol is unknown, -1 is returned. - * - * Returns: a protocol id, or -1 if unknown - * - * Since: 2.22 - */ - public GSocketProtocol getProtocol() - { - return g_socket_get_protocol(gSocket); - } - - /** - * Try to get the remote address of a connected socket. This is only - * useful for connection oriented sockets that have been connected. - * - * Returns: a #GSocketAddress or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketAddress getRemoteAddress() - { - GError* err = null; - - auto __p = g_socket_get_remote_address(gSocket, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddress)(cast(GSocketAddress*) __p, true); - } - - /** - * Gets the socket type of the socket. - * - * Returns: a #GSocketType - * - * Since: 2.22 - */ - public GSocketType getSocketType() - { - return g_socket_get_socket_type(gSocket); - } - - /** - * Gets the timeout setting of the socket. For details on this, see - * g_socket_set_timeout(). - * - * Returns: the timeout in seconds - * - * Since: 2.26 - */ - public uint getTimeout() - { - return g_socket_get_timeout(gSocket); - } - - /** - * Gets the unicast time-to-live setting on @socket; see - * g_socket_set_ttl() for more details. - * - * Returns: the time-to-live setting on @socket - * - * Since: 2.32 - */ - public uint getTtl() - { - return g_socket_get_ttl(gSocket); - } - - /** - * Checks whether a socket is closed. - * - * Returns: %TRUE if socket is closed, %FALSE otherwise - * - * Since: 2.22 - */ - public bool isClosed() - { - return g_socket_is_closed(gSocket) != 0; - } - - /** - * Check whether the socket is connected. This is only useful for - * connection-oriented sockets. - * - * If using g_socket_shutdown(), this function will return %TRUE until the - * socket has been shut down for reading and writing. If you do a non-blocking - * connect, this function will not return %TRUE until after you call - * g_socket_check_connect_result(). - * - * Returns: %TRUE if socket is connected, %FALSE otherwise. - * - * Since: 2.22 - */ - public bool isConnected() - { - return g_socket_is_connected(gSocket) != 0; - } - - /** - * Registers @socket to receive multicast messages sent to @group. - * @socket must be a %G_SOCKET_TYPE_DATAGRAM socket, and must have - * been bound to an appropriate interface and port with - * g_socket_bind(). - * - * If @iface is %NULL, the system will automatically pick an interface - * to bind to based on @group. - * - * If @source_specific is %TRUE, source-specific multicast as defined - * in RFC 4604 is used. Note that on older platforms this may fail - * with a %G_IO_ERROR_NOT_SUPPORTED error. - * - * To bind to a given source-specific multicast address, use - * g_socket_join_multicast_group_ssm() instead. - * - * Params: - * group = a #GInetAddress specifying the group address to join. - * sourceSpecific = %TRUE if source-specific multicast should be used - * iface = Name of the interface to use, or %NULL - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool joinMulticastGroup(InetAddress group, bool sourceSpecific, string iface) - { - GError* err = null; - - auto __p = g_socket_join_multicast_group(gSocket, (group is null) ? null : group.getInetAddressStruct(), sourceSpecific, Str.toStringz(iface), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Registers @socket to receive multicast messages sent to @group. - * @socket must be a %G_SOCKET_TYPE_DATAGRAM socket, and must have - * been bound to an appropriate interface and port with - * g_socket_bind(). - * - * If @iface is %NULL, the system will automatically pick an interface - * to bind to based on @group. - * - * If @source_specific is not %NULL, use source-specific multicast as - * defined in RFC 4604. Note that on older platforms this may fail - * with a %G_IO_ERROR_NOT_SUPPORTED error. - * - * Note that this function can be called multiple times for the same - * @group with different @source_specific in order to receive multicast - * packets from more than one source. - * - * Params: - * group = a #GInetAddress specifying the group address to join. - * sourceSpecific = a #GInetAddress specifying the - * source-specific multicast address or %NULL to ignore. - * iface = Name of the interface to use, or %NULL - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.56 - * - * Throws: GException on failure. - */ - public bool joinMulticastGroupSsm(InetAddress group, InetAddress sourceSpecific, string iface) - { - GError* err = null; - - auto __p = g_socket_join_multicast_group_ssm(gSocket, (group is null) ? null : group.getInetAddressStruct(), (sourceSpecific is null) ? null : sourceSpecific.getInetAddressStruct(), Str.toStringz(iface), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes @socket from the multicast group defined by @group, @iface, - * and @source_specific (which must all have the same values they had - * when you joined the group). - * - * @socket remains bound to its address and port, and can still receive - * unicast messages after calling this. - * - * To unbind to a given source-specific multicast address, use - * g_socket_leave_multicast_group_ssm() instead. - * - * Params: - * group = a #GInetAddress specifying the group address to leave. - * sourceSpecific = %TRUE if source-specific multicast was used - * iface = Interface used - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool leaveMulticastGroup(InetAddress group, bool sourceSpecific, string iface) - { - GError* err = null; - - auto __p = g_socket_leave_multicast_group(gSocket, (group is null) ? null : group.getInetAddressStruct(), sourceSpecific, Str.toStringz(iface), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes @socket from the multicast group defined by @group, @iface, - * and @source_specific (which must all have the same values they had - * when you joined the group). - * - * @socket remains bound to its address and port, and can still receive - * unicast messages after calling this. - * - * Params: - * group = a #GInetAddress specifying the group address to leave. - * sourceSpecific = a #GInetAddress specifying the - * source-specific multicast address or %NULL to ignore. - * iface = Name of the interface to use, or %NULL - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.56 - * - * Throws: GException on failure. - */ - public bool leaveMulticastGroupSsm(InetAddress group, InetAddress sourceSpecific, string iface) - { - GError* err = null; - - auto __p = g_socket_leave_multicast_group_ssm(gSocket, (group is null) ? null : group.getInetAddressStruct(), (sourceSpecific is null) ? null : sourceSpecific.getInetAddressStruct(), Str.toStringz(iface), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Marks the socket as a server socket, i.e. a socket that is used - * to accept incoming requests using g_socket_accept(). - * - * Before calling this the socket must be bound to a local address using - * g_socket_bind(). - * - * To set the maximum amount of outstanding clients, use - * g_socket_set_listen_backlog(). - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool listen() - { - GError* err = null; - - auto __p = g_socket_listen(gSocket, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Receive data (up to @size bytes) from a socket. This is mainly used by - * connection-oriented sockets; it is identical to g_socket_receive_from() - * with @address set to %NULL. - * - * For %G_SOCKET_TYPE_DATAGRAM and %G_SOCKET_TYPE_SEQPACKET sockets, - * g_socket_receive() will always read either 0 or 1 complete messages from - * the socket. If the received message is too large to fit in @buffer, then - * the data beyond @size bytes will be discarded, without any explicit - * indication that this has occurred. - * - * For %G_SOCKET_TYPE_STREAM sockets, g_socket_receive() can return any - * number of bytes, up to @size. If more than @size bytes have been - * received, the additional data will be returned in future calls to - * g_socket_receive(). - * - * If the socket is in blocking mode the call will block until there - * is some data to receive, the connection is closed, or there is an - * error. If there is no data available and the socket is in - * non-blocking mode, a %G_IO_ERROR_WOULD_BLOCK error will be - * returned. To be notified when data is available, wait for the - * %G_IO_IN condition. - * - * On error -1 is returned and @error is set accordingly. - * - * Params: - * buffer = a buffer to read data into (which should be at least @size bytes long). - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes read, or 0 if the connection was closed by - * the peer, or -1 on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ptrdiff_t receive(ref char[] buffer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_receive(gSocket, buffer.ptr, cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Receive data (up to @size bytes) from a socket. - * - * If @address is non-%NULL then @address will be set equal to the - * source address of the received packet. - * @address is owned by the caller. - * - * See g_socket_receive() for additional information. - * - * Params: - * address = a pointer to a #GSocketAddress - * pointer, or %NULL - * buffer = a buffer to read data into (which should be at least @size bytes long). - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes read, or 0 if the connection was closed by - * the peer, or -1 on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ptrdiff_t receiveFrom(out SocketAddress address, ref char[] buffer, Cancellable cancellable) - { - GSocketAddress* outaddress = null; - GError* err = null; - - auto __p = g_socket_receive_from(gSocket, &outaddress, buffer.ptr, cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - address = ObjectG.getDObject!(SocketAddress)(outaddress); - - return __p; - } - - /** - * Receive data from a socket. For receiving multiple messages, see - * g_socket_receive_messages(); for easier use, see - * g_socket_receive() and g_socket_receive_from(). - * - * If @address is non-%NULL then @address will be set equal to the - * source address of the received packet. - * @address is owned by the caller. - * - * @vector must point to an array of #GInputVector structs and - * @num_vectors must be the length of this array. These structs - * describe the buffers that received data will be scattered into. - * If @num_vectors is -1, then @vectors is assumed to be terminated - * by a #GInputVector with a %NULL buffer pointer. - * - * As a special case, if @num_vectors is 0 (in which case, @vectors - * may of course be %NULL), then a single byte is received and - * discarded. This is to facilitate the common practice of sending a - * single '\0' byte for the purposes of transferring ancillary data. - * - * @messages, if non-%NULL, will be set to point to a newly-allocated - * array of #GSocketControlMessage instances or %NULL if no such - * messages was received. These correspond to the control messages - * received from the kernel, one #GSocketControlMessage per message - * from the kernel. This array is %NULL-terminated and must be freed - * by the caller using g_free() after calling g_object_unref() on each - * element. If @messages is %NULL, any control messages received will - * be discarded. - * - * @num_messages, if non-%NULL, will be set to the number of control - * messages received. - * - * If both @messages and @num_messages are non-%NULL, then - * @num_messages gives the number of #GSocketControlMessage instances - * in @messages (ie: not including the %NULL terminator). - * - * @flags is an in/out parameter. The commonly available arguments - * for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too - * (and g_socket_receive_message() may pass system-specific flags out). - * Flags passed in to the parameter affect the receive operation; flags returned - * out of it are relevant to the specific returned message. - * - * As with g_socket_receive(), data may be discarded if @socket is - * %G_SOCKET_TYPE_DATAGRAM or %G_SOCKET_TYPE_SEQPACKET and you do not - * provide enough buffer space to read a complete message. You can pass - * %G_SOCKET_MSG_PEEK in @flags to peek at the current message without - * removing it from the receive queue, but there is no portable way to find - * out the length of the message other than by reading it into a - * sufficiently-large buffer. - * - * If the socket is in blocking mode the call will block until there - * is some data to receive, the connection is closed, or there is an - * error. If there is no data available and the socket is in - * non-blocking mode, a %G_IO_ERROR_WOULD_BLOCK error will be - * returned. To be notified when data is available, wait for the - * %G_IO_IN condition. - * - * On error -1 is returned and @error is set accordingly. - * - * Params: - * address = a pointer to a #GSocketAddress - * pointer, or %NULL - * vectors = an array of #GInputVector structs - * messages = a pointer - * which may be filled with an array of #GSocketControlMessages, or %NULL - * flags = a pointer to an int containing #GSocketMsgFlags flags, - * which may additionally contain - * [other platform specific flags](http://man7.org/linux/man-pages/man2/recv.2.html) - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes read, or 0 if the connection was closed by - * the peer, or -1 on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ptrdiff_t receiveMessage(out SocketAddress address, GInputVector[] vectors, out SocketControlMessage[] messages, ref int flags, Cancellable cancellable) - { - GSocketAddress* outaddress = null; - GSocketControlMessage** outmessages = null; - int numMessages; - GError* err = null; - - auto __p = g_socket_receive_message(gSocket, &outaddress, vectors.ptr, cast(int)vectors.length, &outmessages, &numMessages, &flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - address = ObjectG.getDObject!(SocketAddress)(outaddress); - - messages = new SocketControlMessage[numMessages]; - for(size_t i = 0; i < numMessages; i++) - { - messages[i] = ObjectG.getDObject!(SocketControlMessage)(cast(GSocketControlMessage*) outmessages[i]); - } - - return __p; - } - - /** - * Receive multiple data messages from @socket in one go. This is the most - * complicated and fully-featured version of this call. For easier use, see - * g_socket_receive(), g_socket_receive_from(), and g_socket_receive_message(). - * - * @messages must point to an array of #GInputMessage structs and - * @num_messages must be the length of this array. Each #GInputMessage - * contains a pointer to an array of #GInputVector structs describing the - * buffers that the data received in each message will be written to. Using - * multiple #GInputVectors is more memory-efficient than manually copying data - * out of a single buffer to multiple sources, and more system-call-efficient - * than making multiple calls to g_socket_receive(), such as in scenarios where - * a lot of data packets need to be received (e.g. high-bandwidth video - * streaming over RTP/UDP). - * - * @flags modify how all messages are received. The commonly available - * arguments for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too. These - * flags affect the overall receive operation. Flags affecting individual - * messages are returned in #GInputMessage.flags. - * - * The other members of #GInputMessage are treated as described in its - * documentation. - * - * If #GSocket:blocking is %TRUE the call will block until @num_messages have - * been received, or the end of the stream is reached. - * - * If #GSocket:blocking is %FALSE the call will return up to @num_messages - * without blocking, or %G_IO_ERROR_WOULD_BLOCK if no messages are queued in the - * operating system to be received. - * - * In blocking mode, if #GSocket:timeout is positive and is reached before any - * messages are received, %G_IO_ERROR_TIMED_OUT is returned, otherwise up to - * @num_messages are returned. (Note: This is effectively the - * behaviour of `MSG_WAITFORONE` with recvmmsg().) - * - * To be notified when messages are available, wait for the - * %G_IO_IN condition. Note though that you may still receive - * %G_IO_ERROR_WOULD_BLOCK from g_socket_receive_messages() even if you were - * previously notified of a %G_IO_IN condition. - * - * If the remote peer closes the connection, any messages queued in the - * operating system will be returned, and subsequent calls to - * g_socket_receive_messages() will return 0 (with no error set). - * - * On error -1 is returned and @error is set accordingly. An error will only - * be returned if zero messages could be received; otherwise the number of - * messages successfully received before the error will be returned. - * - * Params: - * messages = an array of #GInputMessage structs - * flags = an int containing #GSocketMsgFlags flags for the overall operation, - * which may additionally contain - * [other platform specific flags](http://man7.org/linux/man-pages/man2/recv.2.html) - * cancellable = a %GCancellable or %NULL - * - * Returns: number of messages received, or -1 on error. Note that the number - * of messages received may be smaller than @num_messages if in non-blocking - * mode, if the peer closed the connection, or if @num_messages - * was larger than `UIO_MAXIOV` (1024), in which case the caller may re-try - * to receive the remaining messages. - * - * Since: 2.48 - * - * Throws: GException on failure. - */ - public int receiveMessages(GInputMessage[] messages, int flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_receive_messages(gSocket, messages.ptr, cast(uint)messages.length, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * This behaves exactly the same as g_socket_receive(), except that - * the choice of blocking or non-blocking behavior is determined by - * the @blocking argument rather than by @socket's properties. - * - * Params: - * buffer = a buffer to read data into (which should be at least @size bytes long). - * blocking = whether to do blocking or non-blocking I/O - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes read, or 0 if the connection was closed by - * the peer, or -1 on error - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public ptrdiff_t receiveWithBlocking(out char[] buffer, bool blocking, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_receive_with_blocking(gSocket, buffer.ptr, cast(size_t)buffer.length, blocking, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tries to send @size bytes from @buffer on the socket. This is - * mainly used by connection-oriented sockets; it is identical to - * g_socket_send_to() with @address set to %NULL. - * - * If the socket is in blocking mode the call will block until there is - * space for the data in the socket queue. If there is no space available - * and the socket is in non-blocking mode a %G_IO_ERROR_WOULD_BLOCK error - * will be returned. To be notified when space is available, wait for the - * %G_IO_OUT condition. Note though that you may still receive - * %G_IO_ERROR_WOULD_BLOCK from g_socket_send() even if you were previously - * notified of a %G_IO_OUT condition. (On Windows in particular, this is - * very common due to the way the underlying APIs work.) - * - * On error -1 is returned and @error is set accordingly. - * - * Params: - * buffer = the buffer - * containing the data to send. - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes written (which may be less than @size), or -1 - * on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ptrdiff_t send(string buffer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_send(gSocket, Str.toStringz(buffer), cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Send data to @address on @socket. For sending multiple messages see - * g_socket_send_messages(); for easier use, see - * g_socket_send() and g_socket_send_to(). - * - * If @address is %NULL then the message is sent to the default receiver - * (set by g_socket_connect()). - * - * @vectors must point to an array of #GOutputVector structs and - * @num_vectors must be the length of this array. (If @num_vectors is -1, - * then @vectors is assumed to be terminated by a #GOutputVector with a - * %NULL buffer pointer.) The #GOutputVector structs describe the buffers - * that the sent data will be gathered from. Using multiple - * #GOutputVectors is more memory-efficient than manually copying - * data from multiple sources into a single buffer, and more - * network-efficient than making multiple calls to g_socket_send(). - * - * @messages, if non-%NULL, is taken to point to an array of @num_messages - * #GSocketControlMessage instances. These correspond to the control - * messages to be sent on the socket. - * If @num_messages is -1 then @messages is treated as a %NULL-terminated - * array. - * - * @flags modify how the message is sent. The commonly available arguments - * for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too. - * - * If the socket is in blocking mode the call will block until there is - * space for the data in the socket queue. If there is no space available - * and the socket is in non-blocking mode a %G_IO_ERROR_WOULD_BLOCK error - * will be returned. To be notified when space is available, wait for the - * %G_IO_OUT condition. Note though that you may still receive - * %G_IO_ERROR_WOULD_BLOCK from g_socket_send() even if you were previously - * notified of a %G_IO_OUT condition. (On Windows in particular, this is - * very common due to the way the underlying APIs work.) - * - * The sum of the sizes of each #GOutputVector in vectors must not be - * greater than %G_MAXSSIZE. If the message can be larger than this, - * then it is mandatory to use the g_socket_send_message_with_timeout() - * function. - * - * On error -1 is returned and @error is set accordingly. - * - * Params: - * address = a #GSocketAddress, or %NULL - * vectors = an array of #GOutputVector structs - * messages = a pointer to an - * array of #GSocketControlMessages, or %NULL. - * flags = an int containing #GSocketMsgFlags flags, which may additionally - * contain [other platform specific flags](http://man7.org/linux/man-pages/man2/recv.2.html) - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes written (which may be less than @size), or -1 - * on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ptrdiff_t sendMessage(SocketAddress address, GOutputVector[] vectors, SocketControlMessage[] messages, int flags, Cancellable cancellable) - { - GSocketControlMessage*[] messagesArray = new GSocketControlMessage*[messages.length]; - for ( int i = 0; i < messages.length; i++ ) - { - messagesArray[i] = messages[i].getSocketControlMessageStruct(); - } - - GError* err = null; - - auto __p = g_socket_send_message(gSocket, (address is null) ? null : address.getSocketAddressStruct(), vectors.ptr, cast(int)vectors.length, messagesArray.ptr, cast(int)messages.length, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * This behaves exactly the same as g_socket_send_message(), except that - * the choice of timeout behavior is determined by the @timeout_us argument - * rather than by @socket's properties. - * - * On error %G_POLLABLE_RETURN_FAILED is returned and @error is set accordingly, or - * if the socket is currently not writable %G_POLLABLE_RETURN_WOULD_BLOCK is - * returned. @bytes_written will contain 0 in both cases. - * - * Params: - * address = a #GSocketAddress, or %NULL - * vectors = an array of #GOutputVector structs - * messages = a pointer to an - * array of #GSocketControlMessages, or %NULL. - * flags = an int containing #GSocketMsgFlags flags, which may additionally - * contain [other platform specific flags](http://man7.org/linux/man-pages/man2/recv.2.html) - * timeoutUs = the maximum time (in microseconds) to wait, or -1 - * bytesWritten = location to store the number of bytes that were written to the socket - * cancellable = a %GCancellable or %NULL - * - * Returns: %G_POLLABLE_RETURN_OK if all data was successfully written, - * %G_POLLABLE_RETURN_WOULD_BLOCK if the socket is currently not writable, or - * %G_POLLABLE_RETURN_FAILED if an error happened and @error is set. - * - * Since: 2.60 - * - * Throws: GException on failure. - */ - public GPollableReturn sendMessageWithTimeout(SocketAddress address, GOutputVector[] vectors, SocketControlMessage[] messages, int flags, long timeoutUs, out size_t bytesWritten, Cancellable cancellable) - { - GSocketControlMessage*[] messagesArray = new GSocketControlMessage*[messages.length]; - for ( int i = 0; i < messages.length; i++ ) - { - messagesArray[i] = messages[i].getSocketControlMessageStruct(); - } - - GError* err = null; - - auto __p = g_socket_send_message_with_timeout(gSocket, (address is null) ? null : address.getSocketAddressStruct(), vectors.ptr, cast(int)vectors.length, messagesArray.ptr, cast(int)messages.length, flags, timeoutUs, &bytesWritten, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Send multiple data messages from @socket in one go. This is the most - * complicated and fully-featured version of this call. For easier use, see - * g_socket_send(), g_socket_send_to(), and g_socket_send_message(). - * - * @messages must point to an array of #GOutputMessage structs and - * @num_messages must be the length of this array. Each #GOutputMessage - * contains an address to send the data to, and a pointer to an array of - * #GOutputVector structs to describe the buffers that the data to be sent - * for each message will be gathered from. Using multiple #GOutputVectors is - * more memory-efficient than manually copying data from multiple sources - * into a single buffer, and more network-efficient than making multiple - * calls to g_socket_send(). Sending multiple messages in one go avoids the - * overhead of making a lot of syscalls in scenarios where a lot of data - * packets need to be sent (e.g. high-bandwidth video streaming over RTP/UDP), - * or where the same data needs to be sent to multiple recipients. - * - * @flags modify how the message is sent. The commonly available arguments - * for this are available in the #GSocketMsgFlags enum, but the - * values there are the same as the system values, and the flags - * are passed in as-is, so you can pass in system-specific flags too. - * - * If the socket is in blocking mode the call will block until there is - * space for all the data in the socket queue. If there is no space available - * and the socket is in non-blocking mode a %G_IO_ERROR_WOULD_BLOCK error - * will be returned if no data was written at all, otherwise the number of - * messages sent will be returned. To be notified when space is available, - * wait for the %G_IO_OUT condition. Note though that you may still receive - * %G_IO_ERROR_WOULD_BLOCK from g_socket_send() even if you were previously - * notified of a %G_IO_OUT condition. (On Windows in particular, this is - * very common due to the way the underlying APIs work.) - * - * On error -1 is returned and @error is set accordingly. An error will only - * be returned if zero messages could be sent; otherwise the number of messages - * successfully sent before the error will be returned. - * - * Params: - * messages = an array of #GOutputMessage structs - * flags = an int containing #GSocketMsgFlags flags, which may additionally - * contain [other platform specific flags](http://man7.org/linux/man-pages/man2/recv.2.html) - * cancellable = a %GCancellable or %NULL - * - * Returns: number of messages sent, or -1 on error. Note that the number of - * messages sent may be smaller than @num_messages if the socket is - * non-blocking or if @num_messages was larger than UIO_MAXIOV (1024), - * in which case the caller may re-try to send the remaining messages. - * - * Since: 2.44 - * - * Throws: GException on failure. - */ - public int sendMessages(GOutputMessage[] messages, int flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_send_messages(gSocket, messages.ptr, cast(uint)messages.length, flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Tries to send @size bytes from @buffer to @address. If @address is - * %NULL then the message is sent to the default receiver (set by - * g_socket_connect()). - * - * See g_socket_send() for additional information. - * - * Params: - * address = a #GSocketAddress, or %NULL - * buffer = the buffer - * containing the data to send. - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes written (which may be less than @size), or -1 - * on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public ptrdiff_t sendTo(SocketAddress address, string buffer, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_send_to(gSocket, (address is null) ? null : address.getSocketAddressStruct(), Str.toStringz(buffer), cast(size_t)buffer.length, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * This behaves exactly the same as g_socket_send(), except that - * the choice of blocking or non-blocking behavior is determined by - * the @blocking argument rather than by @socket's properties. - * - * Params: - * buffer = the buffer - * containing the data to send. - * blocking = whether to do blocking or non-blocking I/O - * cancellable = a %GCancellable or %NULL - * - * Returns: Number of bytes written (which may be less than @size), or -1 - * on error - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public ptrdiff_t sendWithBlocking(string buffer, bool blocking, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_send_with_blocking(gSocket, Str.toStringz(buffer), cast(size_t)buffer.length, blocking, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the blocking mode of the socket. In blocking mode - * all operations (which don’t take an explicit blocking parameter) block until - * they succeed or there is an error. In - * non-blocking mode all functions return results immediately or - * with a %G_IO_ERROR_WOULD_BLOCK error. - * - * All sockets are created in blocking mode. However, note that the - * platform level socket is always non-blocking, and blocking mode - * is a GSocket level feature. - * - * Params: - * blocking = Whether to use blocking I/O or not. - * - * Since: 2.22 - */ - public void setBlocking(bool blocking) - { - g_socket_set_blocking(gSocket, blocking); - } - - /** - * Sets whether @socket should allow sending to broadcast addresses. - * This is %FALSE by default. - * - * Params: - * broadcast = whether @socket should allow sending to broadcast - * addresses - * - * Since: 2.32 - */ - public void setBroadcast(bool broadcast) - { - g_socket_set_broadcast(gSocket, broadcast); - } - - /** - * Sets or unsets the %SO_KEEPALIVE flag on the underlying socket. When - * this flag is set on a socket, the system will attempt to verify that the - * remote socket endpoint is still present if a sufficiently long period of - * time passes with no data being exchanged. If the system is unable to - * verify the presence of the remote endpoint, it will automatically close - * the connection. - * - * This option is only functional on certain kinds of sockets. (Notably, - * %G_SOCKET_PROTOCOL_TCP sockets.) - * - * The exact time between pings is system- and protocol-dependent, but will - * normally be at least two hours. Most commonly, you would set this flag - * on a server socket if you want to allow clients to remain idle for long - * periods of time, but also want to ensure that connections are eventually - * garbage-collected if clients crash or become unreachable. - * - * Params: - * keepalive = Value for the keepalive flag - * - * Since: 2.22 - */ - public void setKeepalive(bool keepalive) - { - g_socket_set_keepalive(gSocket, keepalive); - } - - /** - * Sets the maximum number of outstanding connections allowed - * when listening on this socket. If more clients than this are - * connecting to the socket and the application is not handling them - * on time then the new connections will be refused. - * - * Note that this must be called before g_socket_listen() and has no - * effect if called after that. - * - * Params: - * backlog = the maximum number of pending connections. - * - * Since: 2.22 - */ - public void setListenBacklog(int backlog) - { - g_socket_set_listen_backlog(gSocket, backlog); - } - - /** - * Sets whether outgoing multicast packets will be received by sockets - * listening on that multicast address on the same host. This is %TRUE - * by default. - * - * Params: - * loopback = whether @socket should receive messages sent to its - * multicast groups from the local host - * - * Since: 2.32 - */ - public void setMulticastLoopback(bool loopback) - { - g_socket_set_multicast_loopback(gSocket, loopback); - } - - /** - * Sets the time-to-live for outgoing multicast datagrams on @socket. - * By default, this is 1, meaning that multicast packets will not leave - * the local network. - * - * Params: - * ttl = the time-to-live value for all multicast datagrams on @socket - * - * Since: 2.32 - */ - public void setMulticastTtl(uint ttl) - { - g_socket_set_multicast_ttl(gSocket, ttl); - } - - /** - * Sets the value of an integer-valued option on @socket, as with - * setsockopt(). (If you need to set a non-integer-valued option, - * you will need to call setsockopt() directly.) - * - * The [][gio-gnetworking.h] - * header pulls in system headers that will define most of the - * standard/portable socket options. For unusual socket protocols or - * platform-dependent options, you may need to include additional - * headers. - * - * Params: - * level = the "API level" of the option (eg, `SOL_SOCKET`) - * optname = the "name" of the option (eg, `SO_BROADCAST`) - * value = the value to set the option to - * - * Returns: success or failure. On failure, @error will be set, and - * the system error value (`errno` or WSAGetLastError()) will still - * be set to the result of the setsockopt() call. - * - * Since: 2.36 - * - * Throws: GException on failure. - */ - public bool setOption(int level, int optname, int value) - { - GError* err = null; - - auto __p = g_socket_set_option(gSocket, level, optname, value, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the time in seconds after which I/O operations on @socket will - * time out if they have not yet completed. - * - * On a blocking socket, this means that any blocking #GSocket - * operation will time out after @timeout seconds of inactivity, - * returning %G_IO_ERROR_TIMED_OUT. - * - * On a non-blocking socket, calls to g_socket_condition_wait() will - * also fail with %G_IO_ERROR_TIMED_OUT after the given time. Sources - * created with g_socket_create_source() will trigger after - * @timeout seconds of inactivity, with the requested condition - * set, at which point calling g_socket_receive(), g_socket_send(), - * g_socket_check_connect_result(), etc, will fail with - * %G_IO_ERROR_TIMED_OUT. - * - * If @timeout is 0 (the default), operations will never time out - * on their own. - * - * Note that if an I/O operation is interrupted by a signal, this may - * cause the timeout to be reset. - * - * Params: - * timeout = the timeout for @socket, in seconds, or 0 for none - * - * Since: 2.26 - */ - public void setTimeout(uint timeout) - { - g_socket_set_timeout(gSocket, timeout); - } - - /** - * Sets the time-to-live for outgoing unicast packets on @socket. - * By default the platform-specific default value is used. - * - * Params: - * ttl = the time-to-live value for all unicast packets on @socket - * - * Since: 2.32 - */ - public void setTtl(uint ttl) - { - g_socket_set_ttl(gSocket, ttl); - } - - /** - * Shut down part or all of a full-duplex connection. - * - * If @shutdown_read is %TRUE then the receiving side of the connection - * is shut down, and further reading is disallowed. - * - * If @shutdown_write is %TRUE then the sending side of the connection - * is shut down, and further writing is disallowed. - * - * It is allowed for both @shutdown_read and @shutdown_write to be %TRUE. - * - * One example where it is useful to shut down only one side of a connection is - * graceful disconnect for TCP connections where you close the sending side, - * then wait for the other side to close the connection, thus ensuring that the - * other side saw all sent data. - * - * Params: - * shutdownRead = whether to shut down the read side - * shutdownWrite = whether to shut down the write side - * - * Returns: %TRUE on success, %FALSE on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool shutdown(bool shutdownRead, bool shutdownWrite) - { - GError* err = null; - - auto __p = g_socket_shutdown(gSocket, shutdownRead, shutdownWrite, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks if a socket is capable of speaking IPv4. - * - * IPv4 sockets are capable of speaking IPv4. On some operating systems - * and under some combinations of circumstances IPv6 sockets are also - * capable of speaking IPv4. See RFC 3493 section 3.7 for more - * information. - * - * No other types of sockets are currently considered as being capable - * of speaking IPv4. - * - * Returns: %TRUE if this socket can be used with IPv4. - * - * Since: 2.22 - */ - public bool speaksIpv4() - { - return g_socket_speaks_ipv4(gSocket) != 0; - } -} diff --git a/generated/gtkd/gio/SocketAddress.d b/generated/gtkd/gio/SocketAddress.d deleted file mode 100644 index ef1c3beba..000000000 --- a/generated/gtkd/gio/SocketAddress.d +++ /dev/null @@ -1,167 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketAddress; - -private import gio.SocketConnectableIF; -private import gio.SocketConnectableT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * #GSocketAddress is the equivalent of struct sockaddr in the BSD - * sockets API. This is an abstract class; use #GInetSocketAddress - * for internet sockets, or #GUnixSocketAddress for UNIX domain sockets. - */ -public class SocketAddress : ObjectG, SocketConnectableIF -{ - /** the main Gtk struct */ - protected GSocketAddress* gSocketAddress; - - /** Get the main Gtk struct */ - public GSocketAddress* getSocketAddressStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocketAddress; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocketAddress; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocketAddress* gSocketAddress, bool ownedRef = false) - { - this.gSocketAddress = gSocketAddress; - super(cast(GObject*)gSocketAddress, ownedRef); - } - - // add the SocketConnectable capabilities - mixin SocketConnectableT!(GSocketAddress); - - - /** */ - public static GType getType() - { - return g_socket_address_get_type(); - } - - /** - * Creates a #GSocketAddress subclass corresponding to the native - * struct sockaddr @native. - * - * Params: - * native = a pointer to a struct sockaddr - * len = the size of the memory location pointed to by @native - * - * Returns: a new #GSocketAddress if @native could successfully - * be converted, otherwise %NULL - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(void* native, size_t len) - { - auto __p = g_socket_address_new_from_native(native, len); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_native"); - } - - this(cast(GSocketAddress*) __p, true); - } - - /** - * Gets the socket family type of @address. - * - * Returns: the socket family type of @address - * - * Since: 2.22 - */ - public GSocketFamily getFamily() - { - return g_socket_address_get_family(gSocketAddress); - } - - /** - * Gets the size of @address's native struct sockaddr. - * You can use this to allocate memory to pass to - * g_socket_address_to_native(). - * - * Returns: the size of the native struct sockaddr that - * @address represents - * - * Since: 2.22 - */ - public ptrdiff_t getNativeSize() - { - return g_socket_address_get_native_size(gSocketAddress); - } - - /** - * Converts a #GSocketAddress to a native struct sockaddr, which can - * be passed to low-level functions like connect() or bind(). - * - * If not enough space is available, a %G_IO_ERROR_NO_SPACE error - * is returned. If the address type is not known on the system - * then a %G_IO_ERROR_NOT_SUPPORTED error is returned. - * - * Params: - * dest = a pointer to a memory location that will contain the native - * struct sockaddr - * destlen = the size of @dest. Must be at least as large as - * g_socket_address_get_native_size() - * - * Returns: %TRUE if @dest was filled in, %FALSE on error - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool toNative(void* dest, size_t destlen) - { - GError* err = null; - - auto __p = g_socket_address_to_native(gSocketAddress, dest, destlen, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/SocketAddressEnumerator.d b/generated/gtkd/gio/SocketAddressEnumerator.d deleted file mode 100644 index ffb3ea602..000000000 --- a/generated/gtkd/gio/SocketAddressEnumerator.d +++ /dev/null @@ -1,182 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketAddressEnumerator; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.SocketAddress; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * #GSocketAddressEnumerator is an enumerator type for #GSocketAddress - * instances. It is returned by enumeration functions such as - * g_socket_connectable_enumerate(), which returns a #GSocketAddressEnumerator - * to list each #GSocketAddress which could be used to connect to that - * #GSocketConnectable. - * - * Enumeration is typically a blocking operation, so the asynchronous methods - * g_socket_address_enumerator_next_async() and - * g_socket_address_enumerator_next_finish() should be used where possible. - * - * Each #GSocketAddressEnumerator can only be enumerated once. Once - * g_socket_address_enumerator_next() has returned %NULL, further - * enumeration with that #GSocketAddressEnumerator is not possible, and it can - * be unreffed. - */ -public class SocketAddressEnumerator : ObjectG -{ - /** the main Gtk struct */ - protected GSocketAddressEnumerator* gSocketAddressEnumerator; - - /** Get the main Gtk struct */ - public GSocketAddressEnumerator* getSocketAddressEnumeratorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocketAddressEnumerator; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocketAddressEnumerator; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocketAddressEnumerator* gSocketAddressEnumerator, bool ownedRef = false) - { - this.gSocketAddressEnumerator = gSocketAddressEnumerator; - super(cast(GObject*)gSocketAddressEnumerator, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_socket_address_enumerator_get_type(); - } - - /** - * Retrieves the next #GSocketAddress from @enumerator. Note that this - * may block for some amount of time. (Eg, a #GNetworkAddress may need - * to do a DNS lookup before it can return an address.) Use - * g_socket_address_enumerator_next_async() if you need to avoid - * blocking. - * - * If @enumerator is expected to yield addresses, but for some reason - * is unable to (eg, because of a DNS error), then the first call to - * g_socket_address_enumerator_next() will return an appropriate error - * in *@error. However, if the first call to - * g_socket_address_enumerator_next() succeeds, then any further - * internal errors (other than @cancellable being triggered) will be - * ignored. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #GSocketAddress (owned by the caller), or %NULL on - * error (in which case *@error will be set) or if there are no - * more addresses. - * - * Throws: GException on failure. - */ - public SocketAddress next(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_address_enumerator_next(gSocketAddressEnumerator, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddress)(cast(GSocketAddress*) __p, true); - } - - /** - * Asynchronously retrieves the next #GSocketAddress from @enumerator - * and then calls @callback, which must call - * g_socket_address_enumerator_next_finish() to get the result. - * - * It is an error to call this multiple times before the previous callback has finished. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request - * is satisfied - * userData = the data to pass to callback function - */ - public void nextAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_address_enumerator_next_async(gSocketAddressEnumerator, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Retrieves the result of a completed call to - * g_socket_address_enumerator_next_async(). See - * g_socket_address_enumerator_next() for more information about - * error handling. - * - * Params: - * result = a #GAsyncResult - * - * Returns: a #GSocketAddress (owned by the caller), or %NULL on - * error (in which case *@error will be set) or if there are no - * more addresses. - * - * Throws: GException on failure. - */ - public SocketAddress nextFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_socket_address_enumerator_next_finish(gSocketAddressEnumerator, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddress)(cast(GSocketAddress*) __p, true); - } -} diff --git a/generated/gtkd/gio/SocketClient.d b/generated/gtkd/gio/SocketClient.d deleted file mode 100644 index 18afec155..000000000 --- a/generated/gtkd/gio/SocketClient.d +++ /dev/null @@ -1,943 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketClient; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.IOStream; -private import gio.ProxyResolverIF; -private import gio.SocketAddress; -private import gio.SocketConnectableIF; -private import gio.SocketConnection; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GSocketClient is a lightweight high-level utility class for connecting to - * a network host using a connection oriented socket type. - * - * You create a #GSocketClient object, set any options you want, and then - * call a sync or async connect operation, which returns a #GSocketConnection - * subclass on success. - * - * The type of the #GSocketConnection object returned depends on the type of - * the underlying socket that is in use. For instance, for a TCP/IP connection - * it will be a #GTcpConnection. - * - * As #GSocketClient is a lightweight object, you don't need to cache it. You - * can just create a new one any time you need one. - * - * Since: 2.22 - */ -public class SocketClient : ObjectG -{ - /** the main Gtk struct */ - protected GSocketClient* gSocketClient; - - /** Get the main Gtk struct */ - public GSocketClient* getSocketClientStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocketClient; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocketClient; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocketClient* gSocketClient, bool ownedRef = false) - { - this.gSocketClient = gSocketClient; - super(cast(GObject*)gSocketClient, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_socket_client_get_type(); - } - - /** - * Creates a new #GSocketClient with the default options. - * - * Returns: a #GSocketClient. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_socket_client_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSocketClient*) __p, true); - } - - /** - * Enable proxy protocols to be handled by the application. When the - * indicated proxy protocol is returned by the #GProxyResolver, - * #GSocketClient will consider this protocol as supported but will - * not try to find a #GProxy instance to handle handshaking. The - * application must check for this case by calling - * g_socket_connection_get_remote_address() on the returned - * #GSocketConnection, and seeing if it's a #GProxyAddress of the - * appropriate type, to determine whether or not it needs to handle - * the proxy handshaking itself. - * - * This should be used for proxy protocols that are dialects of - * another protocol such as HTTP proxy. It also allows cohabitation of - * proxy protocols that are reused between protocols. A good example - * is HTTP. It can be used to proxy HTTP, FTP and Gopher and can also - * be use as generic socket proxy through the HTTP CONNECT method. - * - * When the proxy is detected as being an application proxy, TLS handshake - * will be skipped. This is required to let the application do the proxy - * specific handshake. - * - * Params: - * protocol = The proxy protocol - */ - public void addApplicationProxy(string protocol) - { - g_socket_client_add_application_proxy(gSocketClient, Str.toStringz(protocol)); - } - - /** - * Tries to resolve the @connectable and make a network connection to it. - * - * Upon a successful connection, a new #GSocketConnection is constructed - * and returned. The caller owns this new object and must drop their - * reference to it when finished with it. - * - * The type of the #GSocketConnection object returned depends on the type of - * the underlying socket that is used. For instance, for a TCP/IP connection - * it will be a #GTcpConnection. - * - * The socket created will be the same family as the address that the - * @connectable resolves to, unless family is set with g_socket_client_set_family() - * or indirectly via g_socket_client_set_local_address(). The socket type - * defaults to %G_SOCKET_TYPE_STREAM but can be set with - * g_socket_client_set_socket_type(). - * - * If a local address is specified with g_socket_client_set_local_address() the - * socket will be bound to this address before connecting. - * - * Params: - * connectable = a #GSocketConnectable specifying the remote address. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketConnection connect(SocketConnectableIF connectable, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_client_connect(gSocketClient, (connectable is null) ? null : connectable.getSocketConnectableStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * This is the asynchronous version of g_socket_client_connect(). - * - * You may wish to prefer the asynchronous version even in synchronous - * command line programs because, since 2.60, it implements - * [RFC 8305](https://tools.ietf.org/html/rfc8305) "Happy Eyeballs" - * recommendations to work around long connection timeouts in networks - * where IPv6 is broken by performing an IPv4 connection simultaneously - * without waiting for IPv6 to time out, which is not supported by the - * synchronous call. (This is not an API guarantee, and may change in - * the future.) - * - * When the operation is finished @callback will be - * called. You can then call g_socket_client_connect_finish() to get - * the result of the operation. - * - * Params: - * connectable = a #GSocketConnectable specifying the remote address. - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback - * userData = user data for the callback - * - * Since: 2.22 - */ - public void connectAsync(SocketConnectableIF connectable, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_client_connect_async(gSocketClient, (connectable is null) ? null : connectable.getSocketConnectableStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async connect operation. See g_socket_client_connect_async() - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketConnection connectFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_socket_client_connect_finish(gSocketClient, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * This is a helper function for g_socket_client_connect(). - * - * Attempts to create a TCP connection to the named host. - * - * @host_and_port may be in any of a number of recognized formats; an IPv6 - * address, an IPv4 address, or a domain name (in which case a DNS - * lookup is performed). Quoting with [] is supported for all address - * types. A port override may be specified in the usual way with a - * colon. Ports may be given as decimal numbers or symbolic names (in - * which case an /etc/services lookup is performed). - * - * If no port override is given in @host_and_port then @default_port will be - * used as the port number to connect to. - * - * In general, @host_and_port is expected to be provided by the user (allowing - * them to give the hostname, and a port override if necessary) and - * @default_port is expected to be provided by the application. - * - * In the case that an IP address is given, a single connection - * attempt is made. In the case that a name is given, multiple - * connection attempts may be made, in turn and according to the - * number of address records in DNS, until a connection succeeds. - * - * Upon a successful connection, a new #GSocketConnection is constructed - * and returned. The caller owns this new object and must drop their - * reference to it when finished with it. - * - * In the event of any failure (DNS error, service not found, no hosts - * connectable) %NULL is returned and @error (if non-%NULL) is set - * accordingly. - * - * Params: - * hostAndPort = the name and optionally port of the host to connect to - * defaultPort = the default port to connect to - * cancellable = a #GCancellable, or %NULL - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketConnection connectToHost(string hostAndPort, ushort defaultPort, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_client_connect_to_host(gSocketClient, Str.toStringz(hostAndPort), defaultPort, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * This is the asynchronous version of g_socket_client_connect_to_host(). - * - * When the operation is finished @callback will be - * called. You can then call g_socket_client_connect_to_host_finish() to get - * the result of the operation. - * - * Params: - * hostAndPort = the name and optionally the port of the host to connect to - * defaultPort = the default port to connect to - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback - * userData = user data for the callback - * - * Since: 2.22 - */ - public void connectToHostAsync(string hostAndPort, ushort defaultPort, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_client_connect_to_host_async(gSocketClient, Str.toStringz(hostAndPort), defaultPort, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async connect operation. See g_socket_client_connect_to_host_async() - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketConnection connectToHostFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_socket_client_connect_to_host_finish(gSocketClient, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * Attempts to create a TCP connection to a service. - * - * This call looks up the SRV record for @service at @domain for the - * "tcp" protocol. It then attempts to connect, in turn, to each of - * the hosts providing the service until either a connection succeeds - * or there are no hosts remaining. - * - * Upon a successful connection, a new #GSocketConnection is constructed - * and returned. The caller owns this new object and must drop their - * reference to it when finished with it. - * - * In the event of any failure (DNS error, service not found, no hosts - * connectable) %NULL is returned and @error (if non-%NULL) is set - * accordingly. - * - * Params: - * domain = a domain name - * service = the name of the service to connect to - * cancellable = a #GCancellable, or %NULL - * - * Returns: a #GSocketConnection if successful, or %NULL on error - * - * Throws: GException on failure. - */ - public SocketConnection connectToService(string domain, string service, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_client_connect_to_service(gSocketClient, Str.toStringz(domain), Str.toStringz(service), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * This is the asynchronous version of - * g_socket_client_connect_to_service(). - * - * Params: - * domain = a domain name - * service = the name of the service to connect to - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback - * userData = user data for the callback - * - * Since: 2.22 - */ - public void connectToServiceAsync(string domain, string service, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_client_connect_to_service_async(gSocketClient, Str.toStringz(domain), Str.toStringz(service), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async connect operation. See g_socket_client_connect_to_service_async() - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketConnection connectToServiceFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_socket_client_connect_to_service_finish(gSocketClient, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * This is a helper function for g_socket_client_connect(). - * - * Attempts to create a TCP connection with a network URI. - * - * @uri may be any valid URI containing an "authority" (hostname/port) - * component. If a port is not specified in the URI, @default_port - * will be used. TLS will be negotiated if #GSocketClient:tls is %TRUE. - * (#GSocketClient does not know to automatically assume TLS for - * certain URI schemes.) - * - * Using this rather than g_socket_client_connect() or - * g_socket_client_connect_to_host() allows #GSocketClient to - * determine when to use application-specific proxy protocols. - * - * Upon a successful connection, a new #GSocketConnection is constructed - * and returned. The caller owns this new object and must drop their - * reference to it when finished with it. - * - * In the event of any failure (DNS error, service not found, no hosts - * connectable) %NULL is returned and @error (if non-%NULL) is set - * accordingly. - * - * Params: - * uri = A network URI - * defaultPort = the default port to connect to - * cancellable = a #GCancellable, or %NULL - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public SocketConnection connectToUri(string uri, ushort defaultPort, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_client_connect_to_uri(gSocketClient, Str.toStringz(uri), defaultPort, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * This is the asynchronous version of g_socket_client_connect_to_uri(). - * - * When the operation is finished @callback will be - * called. You can then call g_socket_client_connect_to_uri_finish() to get - * the result of the operation. - * - * Params: - * uri = a network uri - * defaultPort = the default port to connect to - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback - * userData = user data for the callback - * - * Since: 2.26 - */ - public void connectToUriAsync(string uri, ushort defaultPort, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_client_connect_to_uri_async(gSocketClient, Str.toStringz(uri), defaultPort, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async connect operation. See g_socket_client_connect_to_uri_async() - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public SocketConnection connectToUriFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_socket_client_connect_to_uri_finish(gSocketClient, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * Gets the proxy enable state; see g_socket_client_set_enable_proxy() - * - * Returns: whether proxying is enabled - * - * Since: 2.26 - */ - public bool getEnableProxy() - { - return g_socket_client_get_enable_proxy(gSocketClient) != 0; - } - - /** - * Gets the socket family of the socket client. - * - * See g_socket_client_set_family() for details. - * - * Returns: a #GSocketFamily - * - * Since: 2.22 - */ - public GSocketFamily getFamily() - { - return g_socket_client_get_family(gSocketClient); - } - - /** - * Gets the local address of the socket client. - * - * See g_socket_client_set_local_address() for details. - * - * Returns: a #GSocketAddress or %NULL. Do not free. - * - * Since: 2.22 - */ - public SocketAddress getLocalAddress() - { - auto __p = g_socket_client_get_local_address(gSocketClient); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddress)(cast(GSocketAddress*) __p); - } - - /** - * Gets the protocol name type of the socket client. - * - * See g_socket_client_set_protocol() for details. - * - * Returns: a #GSocketProtocol - * - * Since: 2.22 - */ - public GSocketProtocol getProtocol() - { - return g_socket_client_get_protocol(gSocketClient); - } - - /** - * Gets the #GProxyResolver being used by @client. Normally, this will - * be the resolver returned by g_proxy_resolver_get_default(), but you - * can override it with g_socket_client_set_proxy_resolver(). - * - * Returns: The #GProxyResolver being used by - * @client. - * - * Since: 2.36 - */ - public ProxyResolverIF getProxyResolver() - { - auto __p = g_socket_client_get_proxy_resolver(gSocketClient); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ProxyResolverIF)(cast(GProxyResolver*) __p); - } - - /** - * Gets the socket type of the socket client. - * - * See g_socket_client_set_socket_type() for details. - * - * Returns: a #GSocketFamily - * - * Since: 2.22 - */ - public GSocketType getSocketType() - { - return g_socket_client_get_socket_type(gSocketClient); - } - - /** - * Gets the I/O timeout time for sockets created by @client. - * - * See g_socket_client_set_timeout() for details. - * - * Returns: the timeout in seconds - * - * Since: 2.26 - */ - public uint getTimeout() - { - return g_socket_client_get_timeout(gSocketClient); - } - - /** - * Gets whether @client creates TLS connections. See - * g_socket_client_set_tls() for details. - * - * Returns: whether @client uses TLS - * - * Since: 2.28 - */ - public bool getTls() - { - return g_socket_client_get_tls(gSocketClient) != 0; - } - - /** - * Gets the TLS validation flags used creating TLS connections via - * @client. - * - * Returns: the TLS validation flags - * - * Since: 2.28 - */ - public GTlsCertificateFlags getTlsValidationFlags() - { - return g_socket_client_get_tls_validation_flags(gSocketClient); - } - - /** - * Sets whether or not @client attempts to make connections via a - * proxy server. When enabled (the default), #GSocketClient will use a - * #GProxyResolver to determine if a proxy protocol such as SOCKS is - * needed, and automatically do the necessary proxy negotiation. - * - * See also g_socket_client_set_proxy_resolver(). - * - * Params: - * enable = whether to enable proxies - * - * Since: 2.26 - */ - public void setEnableProxy(bool enable) - { - g_socket_client_set_enable_proxy(gSocketClient, enable); - } - - /** - * Sets the socket family of the socket client. - * If this is set to something other than %G_SOCKET_FAMILY_INVALID - * then the sockets created by this object will be of the specified - * family. - * - * This might be useful for instance if you want to force the local - * connection to be an ipv4 socket, even though the address might - * be an ipv6 mapped to ipv4 address. - * - * Params: - * family = a #GSocketFamily - * - * Since: 2.22 - */ - public void setFamily(GSocketFamily family) - { - g_socket_client_set_family(gSocketClient, family); - } - - /** - * Sets the local address of the socket client. - * The sockets created by this object will bound to the - * specified address (if not %NULL) before connecting. - * - * This is useful if you want to ensure that the local - * side of the connection is on a specific port, or on - * a specific interface. - * - * Params: - * address = a #GSocketAddress, or %NULL - * - * Since: 2.22 - */ - public void setLocalAddress(SocketAddress address) - { - g_socket_client_set_local_address(gSocketClient, (address is null) ? null : address.getSocketAddressStruct()); - } - - /** - * Sets the protocol of the socket client. - * The sockets created by this object will use of the specified - * protocol. - * - * If @protocol is %G_SOCKET_PROTOCOL_DEFAULT that means to use the default - * protocol for the socket family and type. - * - * Params: - * protocol = a #GSocketProtocol - * - * Since: 2.22 - */ - public void setProtocol(GSocketProtocol protocol) - { - g_socket_client_set_protocol(gSocketClient, protocol); - } - - /** - * Overrides the #GProxyResolver used by @client. You can call this if - * you want to use specific proxies, rather than using the system - * default proxy settings. - * - * Note that whether or not the proxy resolver is actually used - * depends on the setting of #GSocketClient:enable-proxy, which is not - * changed by this function (but which is %TRUE by default) - * - * Params: - * proxyResolver = a #GProxyResolver, or %NULL for the - * default. - * - * Since: 2.36 - */ - public void setProxyResolver(ProxyResolverIF proxyResolver) - { - g_socket_client_set_proxy_resolver(gSocketClient, (proxyResolver is null) ? null : proxyResolver.getProxyResolverStruct()); - } - - /** - * Sets the socket type of the socket client. - * The sockets created by this object will be of the specified - * type. - * - * It doesn't make sense to specify a type of %G_SOCKET_TYPE_DATAGRAM, - * as GSocketClient is used for connection oriented services. - * - * Params: - * type = a #GSocketType - * - * Since: 2.22 - */ - public void setSocketType(GSocketType type) - { - g_socket_client_set_socket_type(gSocketClient, type); - } - - /** - * Sets the I/O timeout for sockets created by @client. @timeout is a - * time in seconds, or 0 for no timeout (the default). - * - * The timeout value affects the initial connection attempt as well, - * so setting this may cause calls to g_socket_client_connect(), etc, - * to fail with %G_IO_ERROR_TIMED_OUT. - * - * Params: - * timeout = the timeout - * - * Since: 2.26 - */ - public void setTimeout(uint timeout) - { - g_socket_client_set_timeout(gSocketClient, timeout); - } - - /** - * Sets whether @client creates TLS (aka SSL) connections. If @tls is - * %TRUE, @client will wrap its connections in a #GTlsClientConnection - * and perform a TLS handshake when connecting. - * - * Note that since #GSocketClient must return a #GSocketConnection, - * but #GTlsClientConnection is not a #GSocketConnection, this - * actually wraps the resulting #GTlsClientConnection in a - * #GTcpWrapperConnection when returning it. You can use - * g_tcp_wrapper_connection_get_base_io_stream() on the return value - * to extract the #GTlsClientConnection. - * - * If you need to modify the behavior of the TLS handshake (eg, by - * setting a client-side certificate to use, or connecting to the - * #GTlsConnection::accept-certificate signal), you can connect to - * @client's #GSocketClient::event signal and wait for it to be - * emitted with %G_SOCKET_CLIENT_TLS_HANDSHAKING, which will give you - * a chance to see the #GTlsClientConnection before the handshake - * starts. - * - * Params: - * tls = whether to use TLS - * - * Since: 2.28 - */ - public void setTls(bool tls) - { - g_socket_client_set_tls(gSocketClient, tls); - } - - /** - * Sets the TLS validation flags used when creating TLS connections - * via @client. The default value is %G_TLS_CERTIFICATE_VALIDATE_ALL. - * - * Params: - * flags = the validation flags - * - * Since: 2.28 - */ - public void setTlsValidationFlags(GTlsCertificateFlags flags) - { - g_socket_client_set_tls_validation_flags(gSocketClient, flags); - } - - /** - * Emitted when @client's activity on @connectable changes state. - * Among other things, this can be used to provide progress - * information about a network connection in the UI. The meanings of - * the different @event values are as follows: - * - * - %G_SOCKET_CLIENT_RESOLVING: @client is about to look up @connectable - * in DNS. @connection will be %NULL. - * - * - %G_SOCKET_CLIENT_RESOLVED: @client has successfully resolved - * @connectable in DNS. @connection will be %NULL. - * - * - %G_SOCKET_CLIENT_CONNECTING: @client is about to make a connection - * to a remote host; either a proxy server or the destination server - * itself. @connection is the #GSocketConnection, which is not yet - * connected. Since GLib 2.40, you can access the remote - * address via g_socket_connection_get_remote_address(). - * - * - %G_SOCKET_CLIENT_CONNECTED: @client has successfully connected - * to a remote host. @connection is the connected #GSocketConnection. - * - * - %G_SOCKET_CLIENT_PROXY_NEGOTIATING: @client is about to negotiate - * with a proxy to get it to connect to @connectable. @connection is - * the #GSocketConnection to the proxy server. - * - * - %G_SOCKET_CLIENT_PROXY_NEGOTIATED: @client has negotiated a - * connection to @connectable through a proxy server. @connection is - * the stream returned from g_proxy_connect(), which may or may not - * be a #GSocketConnection. - * - * - %G_SOCKET_CLIENT_TLS_HANDSHAKING: @client is about to begin a TLS - * handshake. @connection is a #GTlsClientConnection. - * - * - %G_SOCKET_CLIENT_TLS_HANDSHAKED: @client has successfully completed - * the TLS handshake. @connection is a #GTlsClientConnection. - * - * - %G_SOCKET_CLIENT_COMPLETE: @client has either successfully connected - * to @connectable (in which case @connection is the #GSocketConnection - * that it will be returning to the caller) or has failed (in which - * case @connection is %NULL and the client is about to return an error). - * - * Each event except %G_SOCKET_CLIENT_COMPLETE may be emitted - * multiple times (or not at all) for a given connectable (in - * particular, if @client ends up attempting to connect to more than - * one address). However, if @client emits the #GSocketClient::event - * signal at all for a given connectable, then it will always emit - * it with %G_SOCKET_CLIENT_COMPLETE when it is done. - * - * Note that there may be additional #GSocketClientEvent values in - * the future; unrecognized @event values should be ignored. - * - * Params: - * event = the event that is occurring - * connectable = the #GSocketConnectable that @event is occurring on - * connection = the current representation of the connection - * - * Since: 2.32 - */ - gulong addOnEvent(void delegate(GSocketClientEvent, SocketConnectableIF, IOStream, SocketClient) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "event", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/SocketConnectableIF.d b/generated/gtkd/gio/SocketConnectableIF.d deleted file mode 100644 index 1b6e20dc0..000000000 --- a/generated/gtkd/gio/SocketConnectableIF.d +++ /dev/null @@ -1,146 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketConnectableIF; - -private import gio.SocketAddressEnumerator; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Objects that describe one or more potential socket endpoints - * implement #GSocketConnectable. Callers can then use - * g_socket_connectable_enumerate() to get a #GSocketAddressEnumerator - * to try out each socket address in turn until one succeeds, as shown - * in the sample code below. - * - * |[ - * MyConnectionType * - * connect_to_host (const char *hostname, - * guint16 port, - * GCancellable *cancellable, - * GError **error) - * { - * MyConnection *conn = NULL; - * GSocketConnectable *addr; - * GSocketAddressEnumerator *enumerator; - * GSocketAddress *sockaddr; - * GError *conn_error = NULL; - * - * addr = g_network_address_new (hostname, port); - * enumerator = g_socket_connectable_enumerate (addr); - * g_object_unref (addr); - * - * // Try each sockaddr until we succeed. Record the first connection error, - * // but not any further ones (since they'll probably be basically the same - * // as the first). - * while (!conn && (sockaddr = g_socket_address_enumerator_next (enumerator, cancellable, error)) - * { - * conn = connect_to_sockaddr (sockaddr, conn_error ? NULL : &conn_error); - * g_object_unref (sockaddr); - * } - * g_object_unref (enumerator); - * - * if (conn) - * { - * if (conn_error) - * { - * // We couldn't connect to the first address, but we succeeded - * // in connecting to a later address. - * g_error_free (conn_error); - * } - * return conn; - * } - * else if (error) - * { - * /// Either initial lookup failed, or else the caller cancelled us. - * if (conn_error) - * g_error_free (conn_error); - * return NULL; - * } - * else - * { - * g_error_propagate (error, conn_error); - * return NULL; - * } - * } - * ]| - */ -public interface SocketConnectableIF{ - /** Get the main Gtk struct */ - public GSocketConnectable* getSocketConnectableStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_socket_connectable_get_type(); - } - - /** - * Creates a #GSocketAddressEnumerator for @connectable. - * - * Returns: a new #GSocketAddressEnumerator. - * - * Since: 2.22 - */ - public SocketAddressEnumerator enumerate(); - - /** - * Creates a #GSocketAddressEnumerator for @connectable that will - * return a #GProxyAddress for each of its addresses that you must connect - * to via a proxy. - * - * If @connectable does not implement - * g_socket_connectable_proxy_enumerate(), this will fall back to - * calling g_socket_connectable_enumerate(). - * - * Returns: a new #GSocketAddressEnumerator. - * - * Since: 2.26 - */ - public SocketAddressEnumerator proxyEnumerate(); - - /** - * Format a #GSocketConnectable as a string. This is a human-readable format for - * use in debugging output, and is not a stable serialization format. It is not - * suitable for use in user interfaces as it exposes too much information for a - * user. - * - * If the #GSocketConnectable implementation does not support string formatting, - * the implementation’s type name will be returned as a fallback. - * - * Returns: the formatted string - * - * Since: 2.48 - */ - public string toString(); -} diff --git a/generated/gtkd/gio/SocketConnectableT.d b/generated/gtkd/gio/SocketConnectableT.d deleted file mode 100644 index 60b27088a..000000000 --- a/generated/gtkd/gio/SocketConnectableT.d +++ /dev/null @@ -1,169 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketConnectableT; - -public import gio.SocketAddressEnumerator; -public import gio.c.functions; -public import gio.c.types; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; - - -/** - * Objects that describe one or more potential socket endpoints - * implement #GSocketConnectable. Callers can then use - * g_socket_connectable_enumerate() to get a #GSocketAddressEnumerator - * to try out each socket address in turn until one succeeds, as shown - * in the sample code below. - * - * |[ - * MyConnectionType * - * connect_to_host (const char *hostname, - * guint16 port, - * GCancellable *cancellable, - * GError **error) - * { - * MyConnection *conn = NULL; - * GSocketConnectable *addr; - * GSocketAddressEnumerator *enumerator; - * GSocketAddress *sockaddr; - * GError *conn_error = NULL; - * - * addr = g_network_address_new (hostname, port); - * enumerator = g_socket_connectable_enumerate (addr); - * g_object_unref (addr); - * - * // Try each sockaddr until we succeed. Record the first connection error, - * // but not any further ones (since they'll probably be basically the same - * // as the first). - * while (!conn && (sockaddr = g_socket_address_enumerator_next (enumerator, cancellable, error)) - * { - * conn = connect_to_sockaddr (sockaddr, conn_error ? NULL : &conn_error); - * g_object_unref (sockaddr); - * } - * g_object_unref (enumerator); - * - * if (conn) - * { - * if (conn_error) - * { - * // We couldn't connect to the first address, but we succeeded - * // in connecting to a later address. - * g_error_free (conn_error); - * } - * return conn; - * } - * else if (error) - * { - * /// Either initial lookup failed, or else the caller cancelled us. - * if (conn_error) - * g_error_free (conn_error); - * return NULL; - * } - * else - * { - * g_error_propagate (error, conn_error); - * return NULL; - * } - * } - * ]| - */ -public template SocketConnectableT(TStruct) -{ - /** Get the main Gtk struct */ - public GSocketConnectable* getSocketConnectableStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GSocketConnectable*)getStruct(); - } - - - /** - * Creates a #GSocketAddressEnumerator for @connectable. - * - * Returns: a new #GSocketAddressEnumerator. - * - * Since: 2.22 - */ - public SocketAddressEnumerator enumerate() - { - auto __p = g_socket_connectable_enumerate(getSocketConnectableStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddressEnumerator)(cast(GSocketAddressEnumerator*) __p, true); - } - - /** - * Creates a #GSocketAddressEnumerator for @connectable that will - * return a #GProxyAddress for each of its addresses that you must connect - * to via a proxy. - * - * If @connectable does not implement - * g_socket_connectable_proxy_enumerate(), this will fall back to - * calling g_socket_connectable_enumerate(). - * - * Returns: a new #GSocketAddressEnumerator. - * - * Since: 2.26 - */ - public SocketAddressEnumerator proxyEnumerate() - { - auto __p = g_socket_connectable_proxy_enumerate(getSocketConnectableStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddressEnumerator)(cast(GSocketAddressEnumerator*) __p, true); - } - - /** - * Format a #GSocketConnectable as a string. This is a human-readable format for - * use in debugging output, and is not a stable serialization format. It is not - * suitable for use in user interfaces as it exposes too much information for a - * user. - * - * If the #GSocketConnectable implementation does not support string formatting, - * the implementation’s type name will be returned as a fallback. - * - * Returns: the formatted string - * - * Since: 2.48 - */ - public override string toString() - { - auto retStr = g_socket_connectable_to_string(getSocketConnectableStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gtkd/gio/SocketConnection.d b/generated/gtkd/gio/SocketConnection.d deleted file mode 100644 index 869d8510e..000000000 --- a/generated/gtkd/gio/SocketConnection.d +++ /dev/null @@ -1,305 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketConnection; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.IOStream; -private import gio.Socket; -private import gio.SocketAddress; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * #GSocketConnection is a #GIOStream for a connected socket. They - * can be created either by #GSocketClient when connecting to a host, - * or by #GSocketListener when accepting a new client. - * - * The type of the #GSocketConnection object returned from these calls - * depends on the type of the underlying socket that is in use. For - * instance, for a TCP/IP connection it will be a #GTcpConnection. - * - * Choosing what type of object to construct is done with the socket - * connection factory, and it is possible for 3rd parties to register - * custom socket connection types for specific combination of socket - * family/type/protocol using g_socket_connection_factory_register_type(). - * - * To close a #GSocketConnection, use g_io_stream_close(). Closing both - * substreams of the #GIOStream separately will not close the underlying - * #GSocket. - * - * Since: 2.22 - */ -public class SocketConnection : IOStream -{ - /** the main Gtk struct */ - protected GSocketConnection* gSocketConnection; - - /** Get the main Gtk struct */ - public GSocketConnection* getSocketConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocketConnection; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocketConnection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocketConnection* gSocketConnection, bool ownedRef = false) - { - this.gSocketConnection = gSocketConnection; - super(cast(GIOStream*)gSocketConnection, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_socket_connection_get_type(); - } - - /** - * Looks up the #GType to be used when creating socket connections on - * sockets with the specified @family, @type and @protocol_id. - * - * If no type is registered, the #GSocketConnection base type is returned. - * - * Params: - * family = a #GSocketFamily - * type = a #GSocketType - * protocolId = a protocol id - * - * Returns: a #GType - * - * Since: 2.22 - */ - public static GType factoryLookupType(GSocketFamily family, GSocketType type, int protocolId) - { - return g_socket_connection_factory_lookup_type(family, type, protocolId); - } - - /** - * Looks up the #GType to be used when creating socket connections on - * sockets with the specified @family, @type and @protocol. - * - * If no type is registered, the #GSocketConnection base type is returned. - * - * Params: - * gType = a #GType, inheriting from %G_TYPE_SOCKET_CONNECTION - * family = a #GSocketFamily - * type = a #GSocketType - * protocol = a protocol id - * - * Since: 2.22 - */ - public static void factoryRegisterType(GType gType, GSocketFamily family, GSocketType type, int protocol) - { - g_socket_connection_factory_register_type(gType, family, type, protocol); - } - - /** - * Connect @connection to the specified remote address. - * - * Params: - * address = a #GSocketAddress specifying the remote address. - * cancellable = a %GCancellable or %NULL - * - * Returns: %TRUE if the connection succeeded, %FALSE on error - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool connect(SocketAddress address, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_socket_connection_connect(gSocketConnection, (address is null) ? null : address.getSocketAddressStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously connect @connection to the specified remote address. - * - * This clears the #GSocket:blocking flag on @connection's underlying - * socket if it is currently set. - * - * Use g_socket_connection_connect_finish() to retrieve the result. - * - * Params: - * address = a #GSocketAddress specifying the remote address. - * cancellable = a %GCancellable or %NULL - * callback = a #GAsyncReadyCallback - * userData = user data for the callback - * - * Since: 2.32 - */ - public void connectAsync(SocketAddress address, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_connection_connect_async(gSocketConnection, (address is null) ? null : address.getSocketAddressStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Gets the result of a g_socket_connection_connect_async() call. - * - * Params: - * result = the #GAsyncResult - * - * Returns: %TRUE if the connection succeeded, %FALSE on error - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool connectFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_socket_connection_connect_finish(gSocketConnection, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Try to get the local address of a socket connection. - * - * Returns: a #GSocketAddress or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketAddress getLocalAddress() - { - GError* err = null; - - auto __p = g_socket_connection_get_local_address(gSocketConnection, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddress)(cast(GSocketAddress*) __p, true); - } - - /** - * Try to get the remote address of a socket connection. - * - * Since GLib 2.40, when used with g_socket_client_connect() or - * g_socket_client_connect_async(), during emission of - * %G_SOCKET_CLIENT_CONNECTING, this function will return the remote - * address that will be used for the connection. This allows - * applications to print e.g. "Connecting to example.com - * (10.42.77.3)...". - * - * Returns: a #GSocketAddress or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketAddress getRemoteAddress() - { - GError* err = null; - - auto __p = g_socket_connection_get_remote_address(gSocketConnection, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketAddress)(cast(GSocketAddress*) __p, true); - } - - /** - * Gets the underlying #GSocket object of the connection. - * This can be useful if you want to do something unusual on it - * not supported by the #GSocketConnection APIs. - * - * Returns: a #GSocket or %NULL on error. - * - * Since: 2.22 - */ - public Socket getSocket() - { - auto __p = g_socket_connection_get_socket(gSocketConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Socket)(cast(GSocket*) __p); - } - - /** - * Checks if @connection is connected. This is equivalent to calling - * g_socket_is_connected() on @connection's underlying #GSocket. - * - * Returns: whether @connection is connected - * - * Since: 2.32 - */ - public bool isConnected() - { - return g_socket_connection_is_connected(gSocketConnection) != 0; - } -} diff --git a/generated/gtkd/gio/SocketControlMessage.d b/generated/gtkd/gio/SocketControlMessage.d deleted file mode 100644 index 0ca1884a5..000000000 --- a/generated/gtkd/gio/SocketControlMessage.d +++ /dev/null @@ -1,177 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketControlMessage; - -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; - - -/** - * A #GSocketControlMessage is a special-purpose utility message that - * can be sent to or received from a #GSocket. These types of - * messages are often called "ancillary data". - * - * The message can represent some sort of special instruction to or - * information from the socket or can represent a special kind of - * transfer to the peer (for example, sending a file descriptor over - * a UNIX socket). - * - * These messages are sent with g_socket_send_message() and received - * with g_socket_receive_message(). - * - * To extend the set of control message that can be sent, subclass this - * class and override the get_size, get_level, get_type and serialize - * methods. - * - * To extend the set of control messages that can be received, subclass - * this class and implement the deserialize method. Also, make sure your - * class is registered with the GType typesystem before calling - * g_socket_receive_message() to read such a message. - * - * Since: 2.22 - */ -public class SocketControlMessage : ObjectG -{ - /** the main Gtk struct */ - protected GSocketControlMessage* gSocketControlMessage; - - /** Get the main Gtk struct */ - public GSocketControlMessage* getSocketControlMessageStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocketControlMessage; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocketControlMessage; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocketControlMessage* gSocketControlMessage, bool ownedRef = false) - { - this.gSocketControlMessage = gSocketControlMessage; - super(cast(GObject*)gSocketControlMessage, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_socket_control_message_get_type(); - } - - /** - * Tries to deserialize a socket control message of a given - * @level and @type. This will ask all known (to GType) subclasses - * of #GSocketControlMessage if they can understand this kind - * of message and if so deserialize it into a #GSocketControlMessage. - * - * If there is no implementation for this kind of control message, %NULL - * will be returned. - * - * Params: - * level = a socket level - * type = a socket control message type for the given @level - * data = pointer to the message data - * - * Returns: the deserialized message or %NULL - * - * Since: 2.22 - */ - public static SocketControlMessage deserialize(int level, int type, ubyte[] data) - { - auto __p = g_socket_control_message_deserialize(level, type, cast(size_t)data.length, data.ptr); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketControlMessage)(cast(GSocketControlMessage*) __p, true); - } - - /** - * Returns the "level" (i.e. the originating protocol) of the control message. - * This is often SOL_SOCKET. - * - * Returns: an integer describing the level - * - * Since: 2.22 - */ - public int getLevel() - { - return g_socket_control_message_get_level(gSocketControlMessage); - } - - /** - * Returns the protocol specific type of the control message. - * For instance, for UNIX fd passing this would be SCM_RIGHTS. - * - * Returns: an integer describing the type of control message - * - * Since: 2.22 - */ - public int getMsgType() - { - return g_socket_control_message_get_msg_type(gSocketControlMessage); - } - - /** - * Returns the space required for the control message, not including - * headers or alignment. - * - * Returns: The number of bytes required. - * - * Since: 2.22 - */ - public size_t getSize() - { - return g_socket_control_message_get_size(gSocketControlMessage); - } - - /** - * Converts the data in the message to bytes placed in the - * message. - * - * @data is guaranteed to have enough space to fit the size - * returned by g_socket_control_message_get_size() on this - * object. - * - * Params: - * data = A buffer to write data to - * - * Since: 2.22 - */ - public void serialize(void* data) - { - g_socket_control_message_serialize(gSocketControlMessage, data); - } -} diff --git a/generated/gtkd/gio/SocketListener.d b/generated/gtkd/gio/SocketListener.d deleted file mode 100644 index 0c197a64d..000000000 --- a/generated/gtkd/gio/SocketListener.d +++ /dev/null @@ -1,529 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketListener; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.Socket; -private import gio.SocketAddress; -private import gio.SocketConnection; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A #GSocketListener is an object that keeps track of a set - * of server sockets and helps you accept sockets from any of the - * socket, either sync or async. - * - * Add addresses and ports to listen on using g_socket_listener_add_address() - * and g_socket_listener_add_inet_port(). These will be listened on until - * g_socket_listener_close() is called. Dropping your final reference to the - * #GSocketListener will not cause g_socket_listener_close() to be called - * implicitly, as some references to the #GSocketListener may be held - * internally. - * - * If you want to implement a network server, also look at #GSocketService - * and #GThreadedSocketService which are subclasses of #GSocketListener - * that make this even easier. - * - * Since: 2.22 - */ -public class SocketListener : ObjectG -{ - /** the main Gtk struct */ - protected GSocketListener* gSocketListener; - - /** Get the main Gtk struct */ - public GSocketListener* getSocketListenerStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocketListener; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocketListener; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocketListener* gSocketListener, bool ownedRef = false) - { - this.gSocketListener = gSocketListener; - super(cast(GObject*)gSocketListener, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_socket_listener_get_type(); - } - - /** - * Creates a new #GSocketListener with no sockets to listen for. - * New listeners can be added with e.g. g_socket_listener_add_address() - * or g_socket_listener_add_inet_port(). - * - * Returns: a new #GSocketListener. - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_socket_listener_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSocketListener*) __p, true); - } - - /** - * Blocks waiting for a client to connect to any of the sockets added - * to the listener. Returns a #GSocketConnection for the socket that was - * accepted. - * - * If @source_object is not %NULL it will be filled out with the source - * object specified when the corresponding socket or address was added - * to the listener. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * sourceObject = location where #GObject pointer will be stored, or %NULL - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketConnection accept(out ObjectG sourceObject, Cancellable cancellable) - { - GObject* outsourceObject = null; - GError* err = null; - - auto __p = g_socket_listener_accept(gSocketListener, &outsourceObject, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - sourceObject = ObjectG.getDObject!(ObjectG)(outsourceObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * This is the asynchronous version of g_socket_listener_accept(). - * - * When the operation is finished @callback will be - * called. You can then call g_socket_listener_accept_socket() - * to get the result of the operation. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback - * userData = user data for the callback - * - * Since: 2.22 - */ - public void acceptAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_listener_accept_async(gSocketListener, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async accept operation. See g_socket_listener_accept_async() - * - * Params: - * result = a #GAsyncResult. - * sourceObject = Optional #GObject identifying this source - * - * Returns: a #GSocketConnection on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public SocketConnection acceptFinish(AsyncResultIF result, out ObjectG sourceObject) - { - GObject* outsourceObject = null; - GError* err = null; - - auto __p = g_socket_listener_accept_finish(gSocketListener, (result is null) ? null : result.getAsyncResultStruct(), &outsourceObject, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - sourceObject = ObjectG.getDObject!(ObjectG)(outsourceObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnection)(cast(GSocketConnection*) __p, true); - } - - /** - * Blocks waiting for a client to connect to any of the sockets added - * to the listener. Returns the #GSocket that was accepted. - * - * If you want to accept the high-level #GSocketConnection, not a #GSocket, - * which is often the case, then you should use g_socket_listener_accept() - * instead. - * - * If @source_object is not %NULL it will be filled out with the source - * object specified when the corresponding socket or address was added - * to the listener. - * - * If @cancellable is not %NULL, then the operation can be cancelled by - * triggering the cancellable object from another thread. If the operation - * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. - * - * Params: - * sourceObject = location where #GObject pointer will be stored, or %NULL. - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a #GSocket on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public Socket acceptSocket(out ObjectG sourceObject, Cancellable cancellable) - { - GObject* outsourceObject = null; - GError* err = null; - - auto __p = g_socket_listener_accept_socket(gSocketListener, &outsourceObject, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - sourceObject = ObjectG.getDObject!(ObjectG)(outsourceObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Socket)(cast(GSocket*) __p, true); - } - - /** - * This is the asynchronous version of g_socket_listener_accept_socket(). - * - * When the operation is finished @callback will be - * called. You can then call g_socket_listener_accept_socket_finish() - * to get the result of the operation. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback - * userData = user data for the callback - * - * Since: 2.22 - */ - public void acceptSocketAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_socket_listener_accept_socket_async(gSocketListener, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an async accept operation. See g_socket_listener_accept_socket_async() - * - * Params: - * result = a #GAsyncResult. - * sourceObject = Optional #GObject identifying this source - * - * Returns: a #GSocket on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public Socket acceptSocketFinish(AsyncResultIF result, out ObjectG sourceObject) - { - GObject* outsourceObject = null; - GError* err = null; - - auto __p = g_socket_listener_accept_socket_finish(gSocketListener, (result is null) ? null : result.getAsyncResultStruct(), &outsourceObject, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - sourceObject = ObjectG.getDObject!(ObjectG)(outsourceObject); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Socket)(cast(GSocket*) __p, true); - } - - /** - * Creates a socket of type @type and protocol @protocol, binds - * it to @address and adds it to the set of sockets we're accepting - * sockets from. - * - * Note that adding an IPv6 address, depending on the platform, - * may or may not result in a listener that also accepts IPv4 - * connections. For more deterministic behavior, see - * g_socket_listener_add_inet_port(). - * - * @source_object will be passed out in the various calls - * to accept to identify this particular source, which is - * useful if you're listening on multiple addresses and do - * different things depending on what address is connected to. - * - * If successful and @effective_address is non-%NULL then it will - * be set to the address that the binding actually occurred at. This - * is helpful for determining the port number that was used for when - * requesting a binding to port 0 (ie: "any port"). This address, if - * requested, belongs to the caller and must be freed. - * - * Call g_socket_listener_close() to stop listening on @address; this will not - * be done automatically when you drop your final reference to @listener, as - * references may be held internally. - * - * Params: - * address = a #GSocketAddress - * type = a #GSocketType - * protocol = a #GSocketProtocol - * sourceObject = Optional #GObject identifying this source - * effectiveAddress = location to store the address that was bound to, or %NULL. - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool addAddress(SocketAddress address, GSocketType type, GSocketProtocol protocol, ObjectG sourceObject, out SocketAddress effectiveAddress) - { - GSocketAddress* outeffectiveAddress = null; - GError* err = null; - - auto __p = g_socket_listener_add_address(gSocketListener, (address is null) ? null : address.getSocketAddressStruct(), type, protocol, (sourceObject is null) ? null : sourceObject.getObjectGStruct(), &outeffectiveAddress, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - effectiveAddress = ObjectG.getDObject!(SocketAddress)(outeffectiveAddress); - - return __p; - } - - /** - * Listens for TCP connections on any available port number for both - * IPv6 and IPv4 (if each is available). - * - * This is useful if you need to have a socket for incoming connections - * but don't care about the specific port number. - * - * @source_object will be passed out in the various calls - * to accept to identify this particular source, which is - * useful if you're listening on multiple addresses and do - * different things depending on what address is connected to. - * - * Params: - * sourceObject = Optional #GObject identifying this source - * - * Returns: the port number, or 0 in case of failure. - * - * Since: 2.24 - * - * Throws: GException on failure. - */ - public ushort addAnyInetPort(ObjectG sourceObject) - { - GError* err = null; - - auto __p = g_socket_listener_add_any_inet_port(gSocketListener, (sourceObject is null) ? null : sourceObject.getObjectGStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Helper function for g_socket_listener_add_address() that - * creates a TCP/IP socket listening on IPv4 and IPv6 (if - * supported) on the specified port on all interfaces. - * - * @source_object will be passed out in the various calls - * to accept to identify this particular source, which is - * useful if you're listening on multiple addresses and do - * different things depending on what address is connected to. - * - * Call g_socket_listener_close() to stop listening on @port; this will not - * be done automatically when you drop your final reference to @listener, as - * references may be held internally. - * - * Params: - * port = an IP port number (non-zero) - * sourceObject = Optional #GObject identifying this source - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool addInetPort(ushort port, ObjectG sourceObject) - { - GError* err = null; - - auto __p = g_socket_listener_add_inet_port(gSocketListener, port, (sourceObject is null) ? null : sourceObject.getObjectGStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Adds @socket to the set of sockets that we try to accept - * new clients from. The socket must be bound to a local - * address and listened to. - * - * @source_object will be passed out in the various calls - * to accept to identify this particular source, which is - * useful if you're listening on multiple addresses and do - * different things depending on what address is connected to. - * - * The @socket will not be automatically closed when the @listener is finalized - * unless the listener held the final reference to the socket. Before GLib 2.42, - * the @socket was automatically closed on finalization of the @listener, even - * if references to it were held elsewhere. - * - * Params: - * socket = a listening #GSocket - * sourceObject = Optional #GObject identifying this source - * - * Returns: %TRUE on success, %FALSE on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool addSocket(Socket socket, ObjectG sourceObject) - { - GError* err = null; - - auto __p = g_socket_listener_add_socket(gSocketListener, (socket is null) ? null : socket.getSocketStruct(), (sourceObject is null) ? null : sourceObject.getObjectGStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Closes all the sockets in the listener. - * - * Since: 2.22 - */ - public void close() - { - g_socket_listener_close(gSocketListener); - } - - /** - * Sets the listen backlog on the sockets in the listener. This must be called - * before adding any sockets, addresses or ports to the #GSocketListener (for - * example, by calling g_socket_listener_add_inet_port()) to be effective. - * - * See g_socket_set_listen_backlog() for details - * - * Params: - * listenBacklog = an integer - * - * Since: 2.22 - */ - public void setBacklog(int listenBacklog) - { - g_socket_listener_set_backlog(gSocketListener, listenBacklog); - } - - /** - * Emitted when @listener's activity on @socket changes state. - * Note that when @listener is used to listen on both IPv4 and - * IPv6, a separate set of signals will be emitted for each, and - * the order they happen in is undefined. - * - * Params: - * event = the event that is occurring - * socket = the #GSocket the event is occurring on - * - * Since: 2.46 - */ - gulong addOnEvent(void delegate(GSocketListenerEvent, Socket, SocketListener) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "event", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/SocketService.d b/generated/gtkd/gio/SocketService.d deleted file mode 100644 index e5ce199d5..000000000 --- a/generated/gtkd/gio/SocketService.d +++ /dev/null @@ -1,206 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SocketService; - -private import gio.SocketConnection; -private import gio.SocketListener; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A #GSocketService is an object that represents a service that - * is provided to the network or over local sockets. When a new - * connection is made to the service the #GSocketService::incoming - * signal is emitted. - * - * A #GSocketService is a subclass of #GSocketListener and you need - * to add the addresses you want to accept connections on with the - * #GSocketListener APIs. - * - * There are two options for implementing a network service based on - * #GSocketService. The first is to create the service using - * g_socket_service_new() and to connect to the #GSocketService::incoming - * signal. The second is to subclass #GSocketService and override the - * default signal handler implementation. - * - * In either case, the handler must immediately return, or else it - * will block additional incoming connections from being serviced. - * If you are interested in writing connection handlers that contain - * blocking code then see #GThreadedSocketService. - * - * The socket service runs on the main loop of the - * [thread-default context][g-main-context-push-thread-default-context] - * of the thread it is created in, and is not - * threadsafe in general. However, the calls to start and stop the - * service are thread-safe so these can be used from threads that - * handle incoming clients. - * - * Since: 2.22 - */ -public class SocketService : SocketListener -{ - /** the main Gtk struct */ - protected GSocketService* gSocketService; - - /** Get the main Gtk struct */ - public GSocketService* getSocketServiceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSocketService; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSocketService; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSocketService* gSocketService, bool ownedRef = false) - { - this.gSocketService = gSocketService; - super(cast(GSocketListener*)gSocketService, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_socket_service_get_type(); - } - - /** - * Creates a new #GSocketService with no sockets to listen for. - * New listeners can be added with e.g. g_socket_listener_add_address() - * or g_socket_listener_add_inet_port(). - * - * New services are created active, there is no need to call - * g_socket_service_start(), unless g_socket_service_stop() has been - * called before. - * - * Returns: a new #GSocketService. - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_socket_service_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSocketService*) __p, true); - } - - /** - * Check whether the service is active or not. An active - * service will accept new clients that connect, while - * a non-active service will let connecting clients queue - * up until the service is started. - * - * Returns: %TRUE if the service is active, %FALSE otherwise - * - * Since: 2.22 - */ - public bool isActive() - { - return g_socket_service_is_active(gSocketService) != 0; - } - - /** - * Restarts the service, i.e. start accepting connections - * from the added sockets when the mainloop runs. This only needs - * to be called after the service has been stopped from - * g_socket_service_stop(). - * - * This call is thread-safe, so it may be called from a thread - * handling an incoming client request. - * - * Since: 2.22 - */ - public void start() - { - g_socket_service_start(gSocketService); - } - - /** - * Stops the service, i.e. stops accepting connections - * from the added sockets when the mainloop runs. - * - * This call is thread-safe, so it may be called from a thread - * handling an incoming client request. - * - * Note that this only stops accepting new connections; it does not - * close the listening sockets, and you can call - * g_socket_service_start() again later to begin listening again. To - * close the listening sockets, call g_socket_listener_close(). (This - * will happen automatically when the #GSocketService is finalized.) - * - * This must be called before calling g_socket_listener_close() as - * the socket service will start accepting connections immediately - * when a new socket is added. - * - * Since: 2.22 - */ - public void stop() - { - g_socket_service_stop(gSocketService); - } - - /** - * The ::incoming signal is emitted when a new incoming connection - * to @service needs to be handled. The handler must initiate the - * handling of @connection, but may not block; in essence, - * asynchronous operations must be used. - * - * @connection will be unreffed once the signal handler returns, - * so you need to ref it yourself if you are planning to use it. - * - * Params: - * connection = a new #GSocketConnection object - * sourceObject = the source_object passed to - * g_socket_listener_add_address() - * - * Returns: %TRUE to stop other handlers from being called - * - * Since: 2.22 - */ - gulong addOnIncoming(bool delegate(SocketConnection, ObjectG, SocketService) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "incoming", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/SrvTarget.d b/generated/gtkd/gio/SrvTarget.d deleted file mode 100644 index 4443e7c2e..000000000 --- a/generated/gtkd/gio/SrvTarget.d +++ /dev/null @@ -1,231 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SrvTarget; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * SRV (service) records are used by some network protocols to provide - * service-specific aliasing and load-balancing. For example, XMPP - * (Jabber) uses SRV records to locate the XMPP server for a domain; - * rather than connecting directly to "example.com" or assuming a - * specific server hostname like "xmpp.example.com", an XMPP client - * would look up the "xmpp-client" SRV record for "example.com", and - * then connect to whatever host was pointed to by that record. - * - * You can use g_resolver_lookup_service() or - * g_resolver_lookup_service_async() to find the #GSrvTargets - * for a given service. However, if you are simply planning to connect - * to the remote service, you can use #GNetworkService's - * #GSocketConnectable interface and not need to worry about - * #GSrvTarget at all. - */ -public class SrvTarget -{ - /** the main Gtk struct */ - protected GSrvTarget* gSrvTarget; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GSrvTarget* getSrvTargetStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSrvTarget; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gSrvTarget; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSrvTarget* gSrvTarget, bool ownedRef = false) - { - this.gSrvTarget = gSrvTarget; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_srv_target_free(gSrvTarget); - } - - - /** */ - public static GType getType() - { - return g_srv_target_get_type(); - } - - /** - * Creates a new #GSrvTarget with the given parameters. - * - * You should not need to use this; normally #GSrvTargets are - * created by #GResolver. - * - * Params: - * hostname = the host that the service is running on - * port = the port that the service is running on - * priority = the target's priority - * weight = the target's weight - * - * Returns: a new #GSrvTarget. - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string hostname, ushort port, ushort priority, ushort weight) - { - auto __p = g_srv_target_new(Str.toStringz(hostname), port, priority, weight); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSrvTarget*) __p); - } - - /** - * Copies @target - * - * Returns: a copy of @target - * - * Since: 2.22 - */ - public SrvTarget copy() - { - auto __p = g_srv_target_copy(gSrvTarget); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SrvTarget)(cast(GSrvTarget*) __p, true); - } - - /** - * Frees @target - * - * Since: 2.22 - */ - public void free() - { - g_srv_target_free(gSrvTarget); - ownedRef = false; - } - - /** - * Gets @target's hostname (in ASCII form; if you are going to present - * this to the user, you should use g_hostname_is_ascii_encoded() to - * check if it contains encoded Unicode segments, and use - * g_hostname_to_unicode() to convert it if it does.) - * - * Returns: @target's hostname - * - * Since: 2.22 - */ - public string getHostname() - { - return Str.toString(g_srv_target_get_hostname(gSrvTarget)); - } - - /** - * Gets @target's port - * - * Returns: @target's port - * - * Since: 2.22 - */ - public ushort getPort() - { - return g_srv_target_get_port(gSrvTarget); - } - - /** - * Gets @target's priority. You should not need to look at this; - * #GResolver already sorts the targets according to the algorithm in - * RFC 2782. - * - * Returns: @target's priority - * - * Since: 2.22 - */ - public ushort getPriority() - { - return g_srv_target_get_priority(gSrvTarget); - } - - /** - * Gets @target's weight. You should not need to look at this; - * #GResolver already sorts the targets according to the algorithm in - * RFC 2782. - * - * Returns: @target's weight - * - * Since: 2.22 - */ - public ushort getWeight() - { - return g_srv_target_get_weight(gSrvTarget); - } - - /** - * Sorts @targets in place according to the algorithm in RFC 2782. - * - * Params: - * targets = a #GList of #GSrvTarget - * - * Returns: the head of the sorted list. - * - * Since: 2.22 - */ - public static ListG listSort(ListG targets) - { - auto __p = g_srv_target_list_sort((targets is null) ? null : targets.getListGStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } -} diff --git a/generated/gtkd/gio/StaticResource.d b/generated/gtkd/gio/StaticResource.d deleted file mode 100644 index 7033f2611..000000000 --- a/generated/gtkd/gio/StaticResource.d +++ /dev/null @@ -1,118 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.StaticResource; - -private import gio.Resource; -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; - - -/** - * #GStaticResource is an opaque data structure and can only be accessed - * using the following functions. - */ -public class StaticResource -{ - /** the main Gtk struct */ - protected GStaticResource* gStaticResource; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GStaticResource* getStaticResourceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gStaticResource; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gStaticResource; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GStaticResource* gStaticResource, bool ownedRef = false) - { - this.gStaticResource = gStaticResource; - this.ownedRef = ownedRef; - } - - - /** - * Finalized a GResource initialized by g_static_resource_init(). - * - * This is normally used by code generated by - * [glib-compile-resources][glib-compile-resources] - * and is not typically used by other code. - * - * Since: 2.32 - */ - public void fini() - { - g_static_resource_fini(gStaticResource); - } - - /** - * Gets the GResource that was registered by a call to g_static_resource_init(). - * - * This is normally used by code generated by - * [glib-compile-resources][glib-compile-resources] - * and is not typically used by other code. - * - * Returns: a #GResource - * - * Since: 2.32 - */ - public Resource getResource() - { - auto __p = g_static_resource_get_resource(gStaticResource); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Resource)(cast(GResource*) __p); - } - - /** - * Initializes a GResource from static data using a - * GStaticResource. - * - * This is normally used by code generated by - * [glib-compile-resources][glib-compile-resources] - * and is not typically used by other code. - * - * Since: 2.32 - */ - public void init() - { - g_static_resource_init(gStaticResource); - } -} diff --git a/generated/gtkd/gio/Subprocess.d b/generated/gtkd/gio/Subprocess.d deleted file mode 100644 index 0a64d19a3..000000000 --- a/generated/gtkd/gio/Subprocess.d +++ /dev/null @@ -1,752 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Subprocess; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.InitableIF; -private import gio.InitableT; -private import gio.InputStream; -private import gio.OutputStream; -private import gio.c.functions; -public import gio.c.types; -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GSubprocess allows the creation of and interaction with child - * processes. - * - * Processes can be communicated with using standard GIO-style APIs (ie: - * #GInputStream, #GOutputStream). There are GIO-style APIs to wait for - * process termination (ie: cancellable and with an asynchronous - * variant). - * - * There is an API to force a process to terminate, as well as a - * race-free API for sending UNIX signals to a subprocess. - * - * One major advantage that GIO brings over the core GLib library is - * comprehensive API for asynchronous I/O, such - * g_output_stream_splice_async(). This makes GSubprocess - * significantly more powerful and flexible than equivalent APIs in - * some other languages such as the `subprocess.py` - * included with Python. For example, using #GSubprocess one could - * create two child processes, reading standard output from the first, - * processing it, and writing to the input stream of the second, all - * without blocking the main loop. - * - * A powerful g_subprocess_communicate() API is provided similar to the - * `communicate()` method of `subprocess.py`. This enables very easy - * interaction with a subprocess that has been opened with pipes. - * - * #GSubprocess defaults to tight control over the file descriptors open - * in the child process, avoiding dangling-fd issues that are caused by - * a simple fork()/exec(). The only open file descriptors in the - * spawned process are ones that were explicitly specified by the - * #GSubprocess API (unless %G_SUBPROCESS_FLAGS_INHERIT_FDS was - * specified). - * - * #GSubprocess will quickly reap all child processes as they exit, - * avoiding "zombie processes" remaining around for long periods of - * time. g_subprocess_wait() can be used to wait for this to happen, - * but it will happen even without the call being explicitly made. - * - * As a matter of principle, #GSubprocess has no API that accepts - * shell-style space-separated strings. It will, however, match the - * typical shell behaviour of searching the PATH for executables that do - * not contain a directory separator in their name. - * - * #GSubprocess attempts to have a very simple API for most uses (ie: - * spawning a subprocess with arguments and support for most typical - * kinds of input and output redirection). See g_subprocess_new(). The - * #GSubprocessLauncher API is provided for more complicated cases - * (advanced types of redirection, environment variable manipulation, - * change of working directory, child setup functions, etc). - * - * A typical use of #GSubprocess will involve calling - * g_subprocess_new(), followed by g_subprocess_wait_async() or - * g_subprocess_wait(). After the process exits, the status can be - * checked using functions such as g_subprocess_get_if_exited() (which - * are similar to the familiar WIFEXITED-style POSIX macros). - * - * Since: 2.40 - */ -public class Subprocess : ObjectG, InitableIF -{ - /** the main Gtk struct */ - protected GSubprocess* gSubprocess; - - /** Get the main Gtk struct */ - public GSubprocess* getSubprocessStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSubprocess; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSubprocess; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSubprocess* gSubprocess, bool ownedRef = false) - { - this.gSubprocess = gSubprocess; - super(cast(GObject*)gSubprocess, ownedRef); - } - - // add the Initable capabilities - mixin InitableT!(GSubprocess); - - - /** */ - public static GType getType() - { - return g_subprocess_get_type(); - } - - /** - * Create a new process with the given flags and argument list. - * - * The argument list is expected to be %NULL-terminated. - * - * Params: - * argv = commandline arguments for the subprocess - * flags = flags that define the behaviour of the subprocess - * - * Returns: A newly created #GSubprocess, or %NULL on error (and @error - * will be set) - * - * Since: 2.40 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string[] argv, GSubprocessFlags flags) - { - GError* err = null; - - auto __p = g_subprocess_newv(Str.toStringzArray(argv), flags, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by newv"); - } - - this(cast(GSubprocess*) __p, true); - } - - /** - * Communicate with the subprocess until it terminates, and all input - * and output has been completed. - * - * If @stdin_buf is given, the subprocess must have been created with - * %G_SUBPROCESS_FLAGS_STDIN_PIPE. The given data is fed to the - * stdin of the subprocess and the pipe is closed (ie: EOF). - * - * At the same time (as not to cause blocking when dealing with large - * amounts of data), if %G_SUBPROCESS_FLAGS_STDOUT_PIPE or - * %G_SUBPROCESS_FLAGS_STDERR_PIPE were used, reads from those - * streams. The data that was read is returned in @stdout and/or - * the @stderr. - * - * If the subprocess was created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE, - * @stdout_buf will contain the data read from stdout. Otherwise, for - * subprocesses not created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE, - * @stdout_buf will be set to %NULL. Similar provisions apply to - * @stderr_buf and %G_SUBPROCESS_FLAGS_STDERR_PIPE. - * - * As usual, any output variable may be given as %NULL to ignore it. - * - * If you desire the stdout and stderr data to be interleaved, create - * the subprocess with %G_SUBPROCESS_FLAGS_STDOUT_PIPE and - * %G_SUBPROCESS_FLAGS_STDERR_MERGE. The merged result will be returned - * in @stdout_buf and @stderr_buf will be set to %NULL. - * - * In case of any error (including cancellation), %FALSE will be - * returned with @error set. Some or all of the stdin data may have - * been written. Any stdout or stderr data that has been read will be - * discarded. None of the out variables (aside from @error) will have - * been set to anything in particular and should not be inspected. - * - * In the case that %TRUE is returned, the subprocess has exited and the - * exit status inspection APIs (eg: g_subprocess_get_if_exited(), - * g_subprocess_get_exit_status()) may be used. - * - * You should not attempt to use any of the subprocess pipes after - * starting this function, since they may be left in strange states, - * even if the operation was cancelled. You should especially not - * attempt to interact with the pipes while the operation is in progress - * (either from another thread or if using the asynchronous version). - * - * Params: - * stdinBuf = data to send to the stdin of the subprocess, or %NULL - * cancellable = a #GCancellable - * stdoutBuf = data read from the subprocess stdout - * stderrBuf = data read from the subprocess stderr - * - * Returns: %TRUE if successful - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public bool communicate(Bytes stdinBuf, Cancellable cancellable, out Bytes stdoutBuf, out Bytes stderrBuf) - { - GBytes* outstdoutBuf = null; - GBytes* outstderrBuf = null; - GError* err = null; - - auto __p = g_subprocess_communicate(gSubprocess, (stdinBuf is null) ? null : stdinBuf.getBytesStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - stdoutBuf = new Bytes(outstdoutBuf); - stderrBuf = new Bytes(outstderrBuf); - - return __p; - } - - /** - * Asynchronous version of g_subprocess_communicate(). Complete - * invocation with g_subprocess_communicate_finish(). - * - * Params: - * stdinBuf = Input data, or %NULL - * cancellable = Cancellable - * callback = Callback - * userData = User data - */ - public void communicateAsync(Bytes stdinBuf, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_subprocess_communicate_async(gSubprocess, (stdinBuf is null) ? null : stdinBuf.getBytesStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Complete an invocation of g_subprocess_communicate_async(). - * - * Params: - * result = Result - * stdoutBuf = Return location for stdout data - * stderrBuf = Return location for stderr data - * - * Throws: GException on failure. - */ - public bool communicateFinish(AsyncResultIF result, out Bytes stdoutBuf, out Bytes stderrBuf) - { - GBytes* outstdoutBuf = null; - GBytes* outstderrBuf = null; - GError* err = null; - - auto __p = g_subprocess_communicate_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - stdoutBuf = new Bytes(outstdoutBuf); - stderrBuf = new Bytes(outstderrBuf); - - return __p; - } - - /** - * Like g_subprocess_communicate(), but validates the output of the - * process as UTF-8, and returns it as a regular NUL terminated string. - * - * On error, @stdout_buf and @stderr_buf will be set to undefined values and - * should not be used. - * - * Params: - * stdinBuf = data to send to the stdin of the subprocess, or %NULL - * cancellable = a #GCancellable - * stdoutBuf = data read from the subprocess stdout - * stderrBuf = data read from the subprocess stderr - * - * Throws: GException on failure. - */ - public bool communicateUtf8(string stdinBuf, Cancellable cancellable, out string stdoutBuf, out string stderrBuf) - { - char* outstdoutBuf = null; - char* outstderrBuf = null; - GError* err = null; - - auto __p = g_subprocess_communicate_utf8(gSubprocess, Str.toStringz(stdinBuf), (cancellable is null) ? null : cancellable.getCancellableStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - stdoutBuf = Str.toString(outstdoutBuf); - stderrBuf = Str.toString(outstderrBuf); - - return __p; - } - - /** - * Asynchronous version of g_subprocess_communicate_utf8(). Complete - * invocation with g_subprocess_communicate_utf8_finish(). - * - * Params: - * stdinBuf = Input data, or %NULL - * cancellable = Cancellable - * callback = Callback - * userData = User data - */ - public void communicateUtf8Async(string stdinBuf, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_subprocess_communicate_utf8_async(gSubprocess, Str.toStringz(stdinBuf), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Complete an invocation of g_subprocess_communicate_utf8_async(). - * - * Params: - * result = Result - * stdoutBuf = Return location for stdout data - * stderrBuf = Return location for stderr data - * - * Throws: GException on failure. - */ - public bool communicateUtf8Finish(AsyncResultIF result, out string stdoutBuf, out string stderrBuf) - { - char* outstdoutBuf = null; - char* outstderrBuf = null; - GError* err = null; - - auto __p = g_subprocess_communicate_utf8_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &outstdoutBuf, &outstderrBuf, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - stdoutBuf = Str.toString(outstdoutBuf); - stderrBuf = Str.toString(outstderrBuf); - - return __p; - } - - /** - * Use an operating-system specific method to attempt an immediate, - * forceful termination of the process. There is no mechanism to - * determine whether or not the request itself was successful; - * however, you can use g_subprocess_wait() to monitor the status of - * the process after calling this function. - * - * On Unix, this function sends %SIGKILL. - * - * Since: 2.40 - */ - public void forceExit() - { - g_subprocess_force_exit(gSubprocess); - } - - /** - * Check the exit status of the subprocess, given that it exited - * normally. This is the value passed to the exit() system call or the - * return value from main. - * - * This is equivalent to the system WEXITSTATUS macro. - * - * It is an error to call this function before g_subprocess_wait() and - * unless g_subprocess_get_if_exited() returned %TRUE. - * - * Returns: the exit status - * - * Since: 2.40 - */ - public int getExitStatus() - { - return g_subprocess_get_exit_status(gSubprocess); - } - - /** - * On UNIX, returns the process ID as a decimal string. - * On Windows, returns the result of GetProcessId() also as a string. - * If the subprocess has terminated, this will return %NULL. - * - * Returns: the subprocess identifier, or %NULL if the subprocess - * has terminated - * - * Since: 2.40 - */ - public string getIdentifier() - { - return Str.toString(g_subprocess_get_identifier(gSubprocess)); - } - - /** - * Check if the given subprocess exited normally (ie: by way of exit() - * or return from main()). - * - * This is equivalent to the system WIFEXITED macro. - * - * It is an error to call this function before g_subprocess_wait() has - * returned. - * - * Returns: %TRUE if the case of a normal exit - * - * Since: 2.40 - */ - public bool getIfExited() - { - return g_subprocess_get_if_exited(gSubprocess) != 0; - } - - /** - * Check if the given subprocess terminated in response to a signal. - * - * This is equivalent to the system WIFSIGNALED macro. - * - * It is an error to call this function before g_subprocess_wait() has - * returned. - * - * Returns: %TRUE if the case of termination due to a signal - * - * Since: 2.40 - */ - public bool getIfSignaled() - { - return g_subprocess_get_if_signaled(gSubprocess) != 0; - } - - /** - * Gets the raw status code of the process, as from waitpid(). - * - * This value has no particular meaning, but it can be used with the - * macros defined by the system headers such as WIFEXITED. It can also - * be used with g_spawn_check_exit_status(). - * - * It is more likely that you want to use g_subprocess_get_if_exited() - * followed by g_subprocess_get_exit_status(). - * - * It is an error to call this function before g_subprocess_wait() has - * returned. - * - * Returns: the (meaningless) waitpid() exit status from the kernel - * - * Since: 2.40 - */ - public int getStatus() - { - return g_subprocess_get_status(gSubprocess); - } - - /** - * Gets the #GInputStream from which to read the stderr output of - * @subprocess. - * - * The process must have been created with %G_SUBPROCESS_FLAGS_STDERR_PIPE, - * otherwise %NULL will be returned. - * - * Returns: the stderr pipe - * - * Since: 2.40 - */ - public InputStream getStderrPipe() - { - auto __p = g_subprocess_get_stderr_pipe(gSubprocess); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p); - } - - /** - * Gets the #GOutputStream that you can write to in order to give data - * to the stdin of @subprocess. - * - * The process must have been created with %G_SUBPROCESS_FLAGS_STDIN_PIPE and - * not %G_SUBPROCESS_FLAGS_STDIN_INHERIT, otherwise %NULL will be returned. - * - * Returns: the stdout pipe - * - * Since: 2.40 - */ - public OutputStream getStdinPipe() - { - auto __p = g_subprocess_get_stdin_pipe(gSubprocess); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(OutputStream)(cast(GOutputStream*) __p); - } - - /** - * Gets the #GInputStream from which to read the stdout output of - * @subprocess. - * - * The process must have been created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE, - * otherwise %NULL will be returned. - * - * Returns: the stdout pipe - * - * Since: 2.40 - */ - public InputStream getStdoutPipe() - { - auto __p = g_subprocess_get_stdout_pipe(gSubprocess); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(InputStream)(cast(GInputStream*) __p); - } - - /** - * Checks if the process was "successful". A process is considered - * successful if it exited cleanly with an exit status of 0, either by - * way of the exit() system call or return from main(). - * - * It is an error to call this function before g_subprocess_wait() has - * returned. - * - * Returns: %TRUE if the process exited cleanly with a exit status of 0 - * - * Since: 2.40 - */ - public bool getSuccessful() - { - return g_subprocess_get_successful(gSubprocess) != 0; - } - - /** - * Get the signal number that caused the subprocess to terminate, given - * that it terminated due to a signal. - * - * This is equivalent to the system WTERMSIG macro. - * - * It is an error to call this function before g_subprocess_wait() and - * unless g_subprocess_get_if_signaled() returned %TRUE. - * - * Returns: the signal causing termination - * - * Since: 2.40 - */ - public int getTermSig() - { - return g_subprocess_get_term_sig(gSubprocess); - } - - /** - * Sends the UNIX signal @signal_num to the subprocess, if it is still - * running. - * - * This API is race-free. If the subprocess has terminated, it will not - * be signalled. - * - * This API is not available on Windows. - * - * Params: - * signalNum = the signal number to send - * - * Since: 2.40 - */ - public void sendSignal(int signalNum) - { - g_subprocess_send_signal(gSubprocess, signalNum); - } - - /** - * Synchronously wait for the subprocess to terminate. - * - * After the process terminates you can query its exit status with - * functions such as g_subprocess_get_if_exited() and - * g_subprocess_get_exit_status(). - * - * This function does not fail in the case of the subprocess having - * abnormal termination. See g_subprocess_wait_check() for that. - * - * Cancelling @cancellable doesn't kill the subprocess. Call - * g_subprocess_force_exit() if it is desirable. - * - * Params: - * cancellable = a #GCancellable - * - * Returns: %TRUE on success, %FALSE if @cancellable was cancelled - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public bool wait(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_subprocess_wait(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Wait for the subprocess to terminate. - * - * This is the asynchronous version of g_subprocess_wait(). - * - * Params: - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback to call when the operation is complete - * userData = user_data for @callback - * - * Since: 2.40 - */ - public void waitAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_subprocess_wait_async(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Combines g_subprocess_wait() with g_spawn_check_exit_status(). - * - * Params: - * cancellable = a #GCancellable - * - * Returns: %TRUE on success, %FALSE if process exited abnormally, or - * @cancellable was cancelled - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public bool waitCheck(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_subprocess_wait_check(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Combines g_subprocess_wait_async() with g_spawn_check_exit_status(). - * - * This is the asynchronous version of g_subprocess_wait_check(). - * - * Params: - * cancellable = a #GCancellable, or %NULL - * callback = a #GAsyncReadyCallback to call when the operation is complete - * userData = user_data for @callback - * - * Since: 2.40 - */ - public void waitCheckAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_subprocess_wait_check_async(gSubprocess, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Collects the result of a previous call to - * g_subprocess_wait_check_async(). - * - * Params: - * result = the #GAsyncResult passed to your #GAsyncReadyCallback - * - * Returns: %TRUE if successful, or %FALSE with @error set - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public bool waitCheckFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_subprocess_wait_check_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Collects the result of a previous call to - * g_subprocess_wait_async(). - * - * Params: - * result = the #GAsyncResult passed to your #GAsyncReadyCallback - * - * Returns: %TRUE if successful, or %FALSE with @error set - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public bool waitFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_subprocess_wait_finish(gSubprocess, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/SubprocessLauncher.d b/generated/gtkd/gio/SubprocessLauncher.d deleted file mode 100644 index 24348b3b9..000000000 --- a/generated/gtkd/gio/SubprocessLauncher.d +++ /dev/null @@ -1,496 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.SubprocessLauncher; - -private import gio.Subprocess; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * This class contains a set of options for launching child processes, - * such as where its standard input and output will be directed, the - * argument list, the environment, and more. - * - * While the #GSubprocess class has high level functions covering - * popular cases, use of this class allows access to more advanced - * options. It can also be used to launch multiple subprocesses with - * a similar configuration. - * - * Since: 2.40 - */ -public class SubprocessLauncher : ObjectG -{ - /** the main Gtk struct */ - protected GSubprocessLauncher* gSubprocessLauncher; - - /** Get the main Gtk struct */ - public GSubprocessLauncher* getSubprocessLauncherStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gSubprocessLauncher; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gSubprocessLauncher; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GSubprocessLauncher* gSubprocessLauncher, bool ownedRef = false) - { - this.gSubprocessLauncher = gSubprocessLauncher; - super(cast(GObject*)gSubprocessLauncher, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_subprocess_launcher_get_type(); - } - - /** - * Creates a new #GSubprocessLauncher. - * - * The launcher is created with the default options. A copy of the - * environment of the calling process is made at the time of this call - * and will be used as the environment that the process is launched in. - * - * Params: - * flags = #GSubprocessFlags - * - * Since: 2.40 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GSubprocessFlags flags) - { - auto __p = g_subprocess_launcher_new(flags); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GSubprocessLauncher*) __p, true); - } - - /** - * Closes all the file descriptors previously passed to the object with - * g_subprocess_launcher_take_fd(), g_subprocess_launcher_take_stderr_fd(), etc. - * - * After calling this method, any subsequent calls to g_subprocess_launcher_spawn() or g_subprocess_launcher_spawnv() will - * return %G_IO_ERROR_CLOSED. This method is idempotent if - * called more than once. - * - * This function is called automatically when the #GSubprocessLauncher - * is disposed, but is provided separately so that garbage collected - * language bindings can call it earlier to guarantee when FDs are closed. - * - * Since: 2.68 - */ - public void close() - { - g_subprocess_launcher_close(gSubprocessLauncher); - } - - /** - * Returns the value of the environment variable @variable in the - * environment of processes launched from this launcher. - * - * On UNIX, the returned string can be an arbitrary byte string. - * On Windows, it will be UTF-8. - * - * Params: - * variable = the environment variable to get - * - * Returns: the value of the environment variable, - * %NULL if unset - * - * Since: 2.40 - */ - public string getenv(string variable) - { - return Str.toString(g_subprocess_launcher_getenv(gSubprocessLauncher, Str.toStringz(variable))); - } - - /** - * Sets up a child setup function. - * - * The child setup function will be called after fork() but before - * exec() on the child's side. - * - * @destroy_notify will not be automatically called on the child's side - * of the fork(). It will only be called when the last reference on the - * #GSubprocessLauncher is dropped or when a new child setup function is - * given. - * - * %NULL can be given as @child_setup to disable the functionality. - * - * Child setup functions are only available on UNIX. - * - * Params: - * childSetup = a #GSpawnChildSetupFunc to use as the child setup function - * userData = user data for @child_setup - * destroyNotify = a #GDestroyNotify for @user_data - * - * Since: 2.40 - */ - public void setChildSetup(GSpawnChildSetupFunc childSetup, void* userData, GDestroyNotify destroyNotify) - { - g_subprocess_launcher_set_child_setup(gSubprocessLauncher, childSetup, userData, destroyNotify); - } - - /** - * Sets the current working directory that processes will be launched - * with. - * - * By default processes are launched with the current working directory - * of the launching process at the time of launch. - * - * Params: - * cwd = the cwd for launched processes - * - * Since: 2.40 - */ - public void setCwd(string cwd) - { - g_subprocess_launcher_set_cwd(gSubprocessLauncher, Str.toStringz(cwd)); - } - - /** - * Replace the entire environment of processes launched from this - * launcher with the given 'environ' variable. - * - * Typically you will build this variable by using g_listenv() to copy - * the process 'environ' and using the functions g_environ_setenv(), - * g_environ_unsetenv(), etc. - * - * As an alternative, you can use g_subprocess_launcher_setenv(), - * g_subprocess_launcher_unsetenv(), etc. - * - * Pass an empty array to set an empty environment. Pass %NULL to inherit the - * parent process’ environment. As of GLib 2.54, the parent process’ environment - * will be copied when g_subprocess_launcher_set_environ() is called. - * Previously, it was copied when the subprocess was executed. This means the - * copied environment may now be modified (using g_subprocess_launcher_setenv(), - * etc.) before launching the subprocess. - * - * On UNIX, all strings in this array can be arbitrary byte strings. - * On Windows, they should be in UTF-8. - * - * Params: - * env = the replacement environment - * - * Since: 2.40 - */ - public void setEnviron(string[] env) - { - g_subprocess_launcher_set_environ(gSubprocessLauncher, Str.toStringzArray(env)); - } - - /** - * Sets the flags on the launcher. - * - * The default flags are %G_SUBPROCESS_FLAGS_NONE. - * - * You may not set flags that specify conflicting options for how to - * handle a particular stdio stream (eg: specifying both - * %G_SUBPROCESS_FLAGS_STDIN_PIPE and - * %G_SUBPROCESS_FLAGS_STDIN_INHERIT). - * - * You may also not set a flag that conflicts with a previous call to a - * function like g_subprocess_launcher_set_stdin_file_path() or - * g_subprocess_launcher_take_stdout_fd(). - * - * Params: - * flags = #GSubprocessFlags - * - * Since: 2.40 - */ - public void setFlags(GSubprocessFlags flags) - { - g_subprocess_launcher_set_flags(gSubprocessLauncher, flags); - } - - /** - * Sets the file path to use as the stderr for spawned processes. - * - * If @path is %NULL then any previously given path is unset. - * - * The file will be created or truncated when the process is spawned, as - * would be the case if using '2>' at the shell. - * - * If you want to send both stdout and stderr to the same file then use - * %G_SUBPROCESS_FLAGS_STDERR_MERGE. - * - * You may not set a stderr file path if a stderr fd is already set or - * if the launcher flags contain any flags directing stderr elsewhere. - * - * This feature is only available on UNIX. - * - * Params: - * path = a filename or %NULL - * - * Since: 2.40 - */ - public void setStderrFilePath(string path) - { - g_subprocess_launcher_set_stderr_file_path(gSubprocessLauncher, Str.toStringz(path)); - } - - /** - * Sets the file path to use as the stdin for spawned processes. - * - * If @path is %NULL then any previously given path is unset. - * - * The file must exist or spawning the process will fail. - * - * You may not set a stdin file path if a stdin fd is already set or if - * the launcher flags contain any flags directing stdin elsewhere. - * - * This feature is only available on UNIX. - * - * Since: 2.40 - */ - public void setStdinFilePath(string path) - { - g_subprocess_launcher_set_stdin_file_path(gSubprocessLauncher, Str.toStringz(path)); - } - - /** - * Sets the file path to use as the stdout for spawned processes. - * - * If @path is %NULL then any previously given path is unset. - * - * The file will be created or truncated when the process is spawned, as - * would be the case if using '>' at the shell. - * - * You may not set a stdout file path if a stdout fd is already set or - * if the launcher flags contain any flags directing stdout elsewhere. - * - * This feature is only available on UNIX. - * - * Params: - * path = a filename or %NULL - * - * Since: 2.40 - */ - public void setStdoutFilePath(string path) - { - g_subprocess_launcher_set_stdout_file_path(gSubprocessLauncher, Str.toStringz(path)); - } - - /** - * Sets the environment variable @variable in the environment of - * processes launched from this launcher. - * - * On UNIX, both the variable's name and value can be arbitrary byte - * strings, except that the variable's name cannot contain '='. - * On Windows, they should be in UTF-8. - * - * Params: - * variable = the environment variable to set, - * must not contain '=' - * value = the new value for the variable - * overwrite = whether to change the variable if it already exists - * - * Since: 2.40 - */ - public void setenv(string variable, string value, bool overwrite) - { - g_subprocess_launcher_setenv(gSubprocessLauncher, Str.toStringz(variable), Str.toStringz(value), overwrite); - } - - /** - * Creates a #GSubprocess given a provided array of arguments. - * - * Params: - * argv = Command line arguments - * - * Returns: A new #GSubprocess, or %NULL on error (and @error will be set) - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public Subprocess spawnv(string[] argv) - { - GError* err = null; - - auto __p = g_subprocess_launcher_spawnv(gSubprocessLauncher, Str.toStringzArray(argv), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Subprocess)(cast(GSubprocess*) __p, true); - } - - /** - * Transfer an arbitrary file descriptor from parent process to the - * child. This function takes ownership of the @source_fd; it will be closed - * in the parent when @self is freed. - * - * By default, all file descriptors from the parent will be closed. - * This function allows you to create (for example) a custom `pipe()` or - * `socketpair()` before launching the process, and choose the target - * descriptor in the child. - * - * An example use case is GNUPG, which has a command line argument - * `--passphrase-fd` providing a file descriptor number where it expects - * the passphrase to be written. - * - * Params: - * sourceFd = File descriptor in parent process - * targetFd = Target descriptor for child process - */ - public void takeFd(int sourceFd, int targetFd) - { - g_subprocess_launcher_take_fd(gSubprocessLauncher, sourceFd, targetFd); - } - - /** - * Sets the file descriptor to use as the stderr for spawned processes. - * - * If @fd is -1 then any previously given fd is unset. - * - * Note that the default behaviour is to pass stderr through to the - * stderr of the parent process. - * - * The passed @fd belongs to the #GSubprocessLauncher. It will be - * automatically closed when the launcher is finalized. The file - * descriptor will also be closed on the child side when executing the - * spawned process. - * - * You may not set a stderr fd if a stderr file path is already set or - * if the launcher flags contain any flags directing stderr elsewhere. - * - * This feature is only available on UNIX. - * - * Params: - * fd = a file descriptor, or -1 - * - * Since: 2.40 - */ - public void takeStderrFd(int fd) - { - g_subprocess_launcher_take_stderr_fd(gSubprocessLauncher, fd); - } - - /** - * Sets the file descriptor to use as the stdin for spawned processes. - * - * If @fd is -1 then any previously given fd is unset. - * - * Note that if your intention is to have the stdin of the calling - * process inherited by the child then %G_SUBPROCESS_FLAGS_STDIN_INHERIT - * is a better way to go about doing that. - * - * The passed @fd is noted but will not be touched in the current - * process. It is therefore necessary that it be kept open by the - * caller until the subprocess is spawned. The file descriptor will - * also not be explicitly closed on the child side, so it must be marked - * O_CLOEXEC if that's what you want. - * - * You may not set a stdin fd if a stdin file path is already set or if - * the launcher flags contain any flags directing stdin elsewhere. - * - * This feature is only available on UNIX. - * - * Params: - * fd = a file descriptor, or -1 - * - * Since: 2.40 - */ - public void takeStdinFd(int fd) - { - g_subprocess_launcher_take_stdin_fd(gSubprocessLauncher, fd); - } - - /** - * Sets the file descriptor to use as the stdout for spawned processes. - * - * If @fd is -1 then any previously given fd is unset. - * - * Note that the default behaviour is to pass stdout through to the - * stdout of the parent process. - * - * The passed @fd is noted but will not be touched in the current - * process. It is therefore necessary that it be kept open by the - * caller until the subprocess is spawned. The file descriptor will - * also not be explicitly closed on the child side, so it must be marked - * O_CLOEXEC if that's what you want. - * - * You may not set a stdout fd if a stdout file path is already set or - * if the launcher flags contain any flags directing stdout elsewhere. - * - * This feature is only available on UNIX. - * - * Params: - * fd = a file descriptor, or -1 - * - * Since: 2.40 - */ - public void takeStdoutFd(int fd) - { - g_subprocess_launcher_take_stdout_fd(gSubprocessLauncher, fd); - } - - /** - * Removes the environment variable @variable from the environment of - * processes launched from this launcher. - * - * On UNIX, the variable's name can be an arbitrary byte string not - * containing '='. On Windows, it should be in UTF-8. - * - * Params: - * variable = the environment variable to unset, - * must not contain '=' - * - * Since: 2.40 - */ - public void unsetenv(string variable) - { - g_subprocess_launcher_unsetenv(gSubprocessLauncher, Str.toStringz(variable)); - } -} diff --git a/generated/gtkd/gio/Task.d b/generated/gtkd/gio/Task.d deleted file mode 100644 index 436748c7f..000000000 --- a/generated/gtkd/gio/Task.d +++ /dev/null @@ -1,1291 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Task; - -private import gio.AsyncResultIF; -private import gio.AsyncResultT; -private import gio.Cancellable; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.MainContext; -private import glib.MemorySlice; -private import glib.Source; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Value; - - -/** - * A #GTask represents and manages a cancellable "task". - * - * ## Asynchronous operations - * - * The most common usage of #GTask is as a #GAsyncResult, to - * manage data during an asynchronous operation. You call - * g_task_new() in the "start" method, followed by - * g_task_set_task_data() and the like if you need to keep some - * additional data associated with the task, and then pass the - * task object around through your asynchronous operation. - * Eventually, you will call a method such as - * g_task_return_pointer() or g_task_return_error(), which will - * save the value you give it and then invoke the task's callback - * function in the - * [thread-default main context][g-main-context-push-thread-default] - * where it was created (waiting until the next iteration of the main - * loop first, if necessary). The caller will pass the #GTask back to - * the operation's finish function (as a #GAsyncResult), and you can - * use g_task_propagate_pointer() or the like to extract the - * return value. - * - * Here is an example for using GTask as a GAsyncResult: - * |[ - * typedef struct { - * CakeFrostingType frosting; - * char *message; - * } DecorationData; - * - * static void - * decoration_data_free (DecorationData *decoration) - * { - * g_free (decoration->message); - * g_slice_free (DecorationData, decoration); - * } - * - * static void - * baked_cb (Cake *cake, - * gpointer user_data) - * { - * GTask *task = user_data; - * DecorationData *decoration = g_task_get_task_data (task); - * GError *error = NULL; - * - * if (cake == NULL) - * { - * g_task_return_new_error (task, BAKER_ERROR, BAKER_ERROR_NO_FLOUR, - * "Go to the supermarket"); - * g_object_unref (task); - * return; - * } - * - * if (!cake_decorate (cake, decoration->frosting, decoration->message, &error)) - * { - * g_object_unref (cake); - * // g_task_return_error() takes ownership of error - * g_task_return_error (task, error); - * g_object_unref (task); - * return; - * } - * - * g_task_return_pointer (task, cake, g_object_unref); - * g_object_unref (task); - * } - * - * void - * baker_bake_cake_async (Baker *self, - * guint radius, - * CakeFlavor flavor, - * CakeFrostingType frosting, - * const char *message, - * GCancellable *cancellable, - * GAsyncReadyCallback callback, - * gpointer user_data) - * { - * GTask *task; - * DecorationData *decoration; - * Cake *cake; - * - * task = g_task_new (self, cancellable, callback, user_data); - * if (radius < 3) - * { - * g_task_return_new_error (task, BAKER_ERROR, BAKER_ERROR_TOO_SMALL, - * "%ucm radius cakes are silly", - * radius); - * g_object_unref (task); - * return; - * } - * - * cake = _baker_get_cached_cake (self, radius, flavor, frosting, message); - * if (cake != NULL) - * { - * // _baker_get_cached_cake() returns a reffed cake - * g_task_return_pointer (task, cake, g_object_unref); - * g_object_unref (task); - * return; - * } - * - * decoration = g_slice_new (DecorationData); - * decoration->frosting = frosting; - * decoration->message = g_strdup (message); - * g_task_set_task_data (task, decoration, (GDestroyNotify) decoration_data_free); - * - * _baker_begin_cake (self, radius, flavor, cancellable, baked_cb, task); - * } - * - * Cake * - * baker_bake_cake_finish (Baker *self, - * GAsyncResult *result, - * GError **error) - * { - * g_return_val_if_fail (g_task_is_valid (result, self), NULL); - * - * return g_task_propagate_pointer (G_TASK (result), error); - * } - * ]| - * - * ## Chained asynchronous operations - * - * #GTask also tries to simplify asynchronous operations that - * internally chain together several smaller asynchronous - * operations. g_task_get_cancellable(), g_task_get_context(), - * and g_task_get_priority() allow you to get back the task's - * #GCancellable, #GMainContext, and [I/O priority][io-priority] - * when starting a new subtask, so you don't have to keep track - * of them yourself. g_task_attach_source() simplifies the case - * of waiting for a source to fire (automatically using the correct - * #GMainContext and priority). - * - * Here is an example for chained asynchronous operations: - * |[ - * typedef struct { - * Cake *cake; - * CakeFrostingType frosting; - * char *message; - * } BakingData; - * - * static void - * decoration_data_free (BakingData *bd) - * { - * if (bd->cake) - * g_object_unref (bd->cake); - * g_free (bd->message); - * g_slice_free (BakingData, bd); - * } - * - * static void - * decorated_cb (Cake *cake, - * GAsyncResult *result, - * gpointer user_data) - * { - * GTask *task = user_data; - * GError *error = NULL; - * - * if (!cake_decorate_finish (cake, result, &error)) - * { - * g_object_unref (cake); - * g_task_return_error (task, error); - * g_object_unref (task); - * return; - * } - * - * // baking_data_free() will drop its ref on the cake, so we have to - * // take another here to give to the caller. - * g_task_return_pointer (task, g_object_ref (cake), g_object_unref); - * g_object_unref (task); - * } - * - * static gboolean - * decorator_ready (gpointer user_data) - * { - * GTask *task = user_data; - * BakingData *bd = g_task_get_task_data (task); - * - * cake_decorate_async (bd->cake, bd->frosting, bd->message, - * g_task_get_cancellable (task), - * decorated_cb, task); - * - * return G_SOURCE_REMOVE; - * } - * - * static void - * baked_cb (Cake *cake, - * gpointer user_data) - * { - * GTask *task = user_data; - * BakingData *bd = g_task_get_task_data (task); - * GError *error = NULL; - * - * if (cake == NULL) - * { - * g_task_return_new_error (task, BAKER_ERROR, BAKER_ERROR_NO_FLOUR, - * "Go to the supermarket"); - * g_object_unref (task); - * return; - * } - * - * bd->cake = cake; - * - * // Bail out now if the user has already cancelled - * if (g_task_return_error_if_cancelled (task)) - * { - * g_object_unref (task); - * return; - * } - * - * if (cake_decorator_available (cake)) - * decorator_ready (task); - * else - * { - * GSource *source; - * - * source = cake_decorator_wait_source_new (cake); - * // Attach @source to @task's GMainContext and have it call - * // decorator_ready() when it is ready. - * g_task_attach_source (task, source, decorator_ready); - * g_source_unref (source); - * } - * } - * - * void - * baker_bake_cake_async (Baker *self, - * guint radius, - * CakeFlavor flavor, - * CakeFrostingType frosting, - * const char *message, - * gint priority, - * GCancellable *cancellable, - * GAsyncReadyCallback callback, - * gpointer user_data) - * { - * GTask *task; - * BakingData *bd; - * - * task = g_task_new (self, cancellable, callback, user_data); - * g_task_set_priority (task, priority); - * - * bd = g_slice_new0 (BakingData); - * bd->frosting = frosting; - * bd->message = g_strdup (message); - * g_task_set_task_data (task, bd, (GDestroyNotify) baking_data_free); - * - * _baker_begin_cake (self, radius, flavor, cancellable, baked_cb, task); - * } - * - * Cake * - * baker_bake_cake_finish (Baker *self, - * GAsyncResult *result, - * GError **error) - * { - * g_return_val_if_fail (g_task_is_valid (result, self), NULL); - * - * return g_task_propagate_pointer (G_TASK (result), error); - * } - * ]| - * - * ## Asynchronous operations from synchronous ones - * - * You can use g_task_run_in_thread() to turn a synchronous - * operation into an asynchronous one, by running it in a thread. - * When it completes, the result will be dispatched to the - * [thread-default main context][g-main-context-push-thread-default] - * where the #GTask was created. - * - * Running a task in a thread: - * |[ - * typedef struct { - * guint radius; - * CakeFlavor flavor; - * CakeFrostingType frosting; - * char *message; - * } CakeData; - * - * static void - * cake_data_free (CakeData *cake_data) - * { - * g_free (cake_data->message); - * g_slice_free (CakeData, cake_data); - * } - * - * static void - * bake_cake_thread (GTask *task, - * gpointer source_object, - * gpointer task_data, - * GCancellable *cancellable) - * { - * Baker *self = source_object; - * CakeData *cake_data = task_data; - * Cake *cake; - * GError *error = NULL; - * - * cake = bake_cake (baker, cake_data->radius, cake_data->flavor, - * cake_data->frosting, cake_data->message, - * cancellable, &error); - * if (cake) - * g_task_return_pointer (task, cake, g_object_unref); - * else - * g_task_return_error (task, error); - * } - * - * void - * baker_bake_cake_async (Baker *self, - * guint radius, - * CakeFlavor flavor, - * CakeFrostingType frosting, - * const char *message, - * GCancellable *cancellable, - * GAsyncReadyCallback callback, - * gpointer user_data) - * { - * CakeData *cake_data; - * GTask *task; - * - * cake_data = g_slice_new (CakeData); - * cake_data->radius = radius; - * cake_data->flavor = flavor; - * cake_data->frosting = frosting; - * cake_data->message = g_strdup (message); - * task = g_task_new (self, cancellable, callback, user_data); - * g_task_set_task_data (task, cake_data, (GDestroyNotify) cake_data_free); - * g_task_run_in_thread (task, bake_cake_thread); - * g_object_unref (task); - * } - * - * Cake * - * baker_bake_cake_finish (Baker *self, - * GAsyncResult *result, - * GError **error) - * { - * g_return_val_if_fail (g_task_is_valid (result, self), NULL); - * - * return g_task_propagate_pointer (G_TASK (result), error); - * } - * ]| - * - * ## Adding cancellability to uncancellable tasks - * - * Finally, g_task_run_in_thread() and g_task_run_in_thread_sync() - * can be used to turn an uncancellable operation into a - * cancellable one. If you call g_task_set_return_on_cancel(), - * passing %TRUE, then if the task's #GCancellable is cancelled, - * it will return control back to the caller immediately, while - * allowing the task thread to continue running in the background - * (and simply discarding its result when it finally does finish). - * Provided that the task thread is careful about how it uses - * locks and other externally-visible resources, this allows you - * to make "GLib-friendly" asynchronous and cancellable - * synchronous variants of blocking APIs. - * - * Cancelling a task: - * |[ - * static void - * bake_cake_thread (GTask *task, - * gpointer source_object, - * gpointer task_data, - * GCancellable *cancellable) - * { - * Baker *self = source_object; - * CakeData *cake_data = task_data; - * Cake *cake; - * GError *error = NULL; - * - * cake = bake_cake (baker, cake_data->radius, cake_data->flavor, - * cake_data->frosting, cake_data->message, - * &error); - * if (error) - * { - * g_task_return_error (task, error); - * return; - * } - * - * // If the task has already been cancelled, then we don't want to add - * // the cake to the cake cache. Likewise, we don't want to have the - * // task get cancelled in the middle of updating the cache. - * // g_task_set_return_on_cancel() will return %TRUE here if it managed - * // to disable return-on-cancel, or %FALSE if the task was cancelled - * // before it could. - * if (g_task_set_return_on_cancel (task, FALSE)) - * { - * // If the caller cancels at this point, their - * // GAsyncReadyCallback won't be invoked until we return, - * // so we don't have to worry that this code will run at - * // the same time as that code does. But if there were - * // other functions that might look at the cake cache, - * // then we'd probably need a GMutex here as well. - * baker_add_cake_to_cache (baker, cake); - * g_task_return_pointer (task, cake, g_object_unref); - * } - * } - * - * void - * baker_bake_cake_async (Baker *self, - * guint radius, - * CakeFlavor flavor, - * CakeFrostingType frosting, - * const char *message, - * GCancellable *cancellable, - * GAsyncReadyCallback callback, - * gpointer user_data) - * { - * CakeData *cake_data; - * GTask *task; - * - * cake_data = g_slice_new (CakeData); - * - * ... - * - * task = g_task_new (self, cancellable, callback, user_data); - * g_task_set_task_data (task, cake_data, (GDestroyNotify) cake_data_free); - * g_task_set_return_on_cancel (task, TRUE); - * g_task_run_in_thread (task, bake_cake_thread); - * } - * - * Cake * - * baker_bake_cake_sync (Baker *self, - * guint radius, - * CakeFlavor flavor, - * CakeFrostingType frosting, - * const char *message, - * GCancellable *cancellable, - * GError **error) - * { - * CakeData *cake_data; - * GTask *task; - * Cake *cake; - * - * cake_data = g_slice_new (CakeData); - * - * ... - * - * task = g_task_new (self, cancellable, NULL, NULL); - * g_task_set_task_data (task, cake_data, (GDestroyNotify) cake_data_free); - * g_task_set_return_on_cancel (task, TRUE); - * g_task_run_in_thread_sync (task, bake_cake_thread); - * - * cake = g_task_propagate_pointer (task, error); - * g_object_unref (task); - * return cake; - * } - * ]| - * - * ## Porting from GSimpleAsyncResult - * - * #GTask's API attempts to be simpler than #GSimpleAsyncResult's - * in several ways: - * - You can save task-specific data with g_task_set_task_data(), and - * retrieve it later with g_task_get_task_data(). This replaces the - * abuse of g_simple_async_result_set_op_res_gpointer() for the same - * purpose with #GSimpleAsyncResult. - * - In addition to the task data, #GTask also keeps track of the - * [priority][io-priority], #GCancellable, and - * #GMainContext associated with the task, so tasks that consist of - * a chain of simpler asynchronous operations will have easy access - * to those values when starting each sub-task. - * - g_task_return_error_if_cancelled() provides simplified - * handling for cancellation. In addition, cancellation - * overrides any other #GTask return value by default, like - * #GSimpleAsyncResult does when - * g_simple_async_result_set_check_cancellable() is called. - * (You can use g_task_set_check_cancellable() to turn off that - * behavior.) On the other hand, g_task_run_in_thread() - * guarantees that it will always run your - * `task_func`, even if the task's #GCancellable - * is already cancelled before the task gets a chance to run; - * you can start your `task_func` with a - * g_task_return_error_if_cancelled() check if you need the - * old behavior. - * - The "return" methods (eg, g_task_return_pointer()) - * automatically cause the task to be "completed" as well, and - * there is no need to worry about the "complete" vs "complete - * in idle" distinction. (#GTask automatically figures out - * whether the task's callback can be invoked directly, or - * if it needs to be sent to another #GMainContext, or delayed - * until the next iteration of the current #GMainContext.) - * - The "finish" functions for #GTask based operations are generally - * much simpler than #GSimpleAsyncResult ones, normally consisting - * of only a single call to g_task_propagate_pointer() or the like. - * Since g_task_propagate_pointer() "steals" the return value from - * the #GTask, it is not necessary to juggle pointers around to - * prevent it from being freed twice. - * - With #GSimpleAsyncResult, it was common to call - * g_simple_async_result_propagate_error() from the - * `_finish()` wrapper function, and have - * virtual method implementations only deal with successful - * returns. This behavior is deprecated, because it makes it - * difficult for a subclass to chain to a parent class's async - * methods. Instead, the wrapper function should just be a - * simple wrapper, and the virtual method should call an - * appropriate `g_task_propagate_` function. - * Note that wrapper methods can now use - * g_async_result_legacy_propagate_error() to do old-style - * #GSimpleAsyncResult error-returning behavior, and - * g_async_result_is_tagged() to check if a result is tagged as - * having come from the `_async()` wrapper - * function (for "short-circuit" results, such as when passing - * 0 to g_input_stream_read_async()). - */ -public class Task : ObjectG, AsyncResultIF -{ - /** the main Gtk struct */ - protected GTask* gTask; - - /** Get the main Gtk struct */ - public GTask* getTaskStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTask; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTask; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTask* gTask, bool ownedRef = false) - { - this.gTask = gTask; - super(cast(GObject*)gTask, ownedRef); - } - - // add the AsyncResult capabilities - mixin AsyncResultT!(GTask); - - - /** */ - public static GType getType() - { - return g_task_get_type(); - } - - /** - * Creates a #GTask acting on @source_object, which will eventually be - * used to invoke @callback in the current - * [thread-default main context][g-main-context-push-thread-default]. - * - * Call this in the "start" method of your asynchronous method, and - * pass the #GTask around throughout the asynchronous operation. You - * can use g_task_set_task_data() to attach task-specific data to the - * object, which you can retrieve later via g_task_get_task_data(). - * - * By default, if @cancellable is cancelled, then the return value of - * the task will always be %G_IO_ERROR_CANCELLED, even if the task had - * already completed before the cancellation. This allows for - * simplified handling in cases where cancellation may imply that - * other objects that the task depends on have been destroyed. If you - * do not want this behavior, you can use - * g_task_set_check_cancellable() to change it. - * - * Params: - * sourceObject = the #GObject that owns - * this task, or %NULL. - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback. - * callbackData = user data passed to @callback. - * - * Returns: a #GTask. - * - * Since: 2.36 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ObjectG sourceObject, Cancellable cancellable, GAsyncReadyCallback callback, void* callbackData) - { - auto __p = g_task_new((sourceObject is null) ? null : sourceObject.getObjectGStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, callbackData); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GTask*) __p, true); - } - - /** - * Checks that @result is a #GTask, and that @source_object is its - * source object (or that @source_object is %NULL and @result has no - * source object). This can be used in g_return_if_fail() checks. - * - * Params: - * result = A #GAsyncResult - * sourceObject = the source object - * expected to be associated with the task - * - * Returns: %TRUE if @result and @source_object are valid, %FALSE - * if not - * - * Since: 2.36 - */ - public static bool isValid(AsyncResultIF result, ObjectG sourceObject) - { - return g_task_is_valid((result is null) ? null : result.getAsyncResultStruct(), (sourceObject is null) ? null : sourceObject.getObjectGStruct()) != 0; - } - - /** - * Creates a #GTask and then immediately calls g_task_return_error() - * on it. Use this in the wrapper function of an asynchronous method - * when you want to avoid even calling the virtual method. You can - * then use g_async_result_is_tagged() in the finish method wrapper to - * check if the result there is tagged as having been created by the - * wrapper method, and deal with it appropriately if so. - * - * See also g_task_report_new_error(). - * - * Params: - * sourceObject = the #GObject that owns - * this task, or %NULL. - * callback = a #GAsyncReadyCallback. - * callbackData = user data passed to @callback. - * sourceTag = an opaque pointer indicating the source of this task - * error = error to report - * - * Since: 2.36 - */ - public static void reportError(ObjectG sourceObject, GAsyncReadyCallback callback, void* callbackData, void* sourceTag, ErrorG error) - { - g_task_report_error((sourceObject is null) ? null : sourceObject.getObjectGStruct(), callback, callbackData, sourceTag, (error is null) ? null : error.getErrorGStruct(true)); - } - - /** - * A utility function for dealing with async operations where you need - * to wait for a #GSource to trigger. Attaches @source to @task's - * #GMainContext with @task's [priority][io-priority], and sets @source's - * callback to @callback, with @task as the callback's `user_data`. - * - * It will set the @source’s name to the task’s name (as set with - * g_task_set_name()), if one has been set. - * - * This takes a reference on @task until @source is destroyed. - * - * Params: - * source = the source to attach - * callback = the callback to invoke when @source triggers - * - * Since: 2.36 - */ - public void attachSource(Source source, GSourceFunc callback) - { - g_task_attach_source(gTask, (source is null) ? null : source.getSourceStruct(), callback); - } - - /** - * Gets @task's #GCancellable - * - * Returns: @task's #GCancellable - * - * Since: 2.36 - */ - public Cancellable getCancellable() - { - auto __p = g_task_get_cancellable(gTask); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Cancellable)(cast(GCancellable*) __p); - } - - /** - * Gets @task's check-cancellable flag. See - * g_task_set_check_cancellable() for more details. - * - * Since: 2.36 - */ - public bool getCheckCancellable() - { - return g_task_get_check_cancellable(gTask) != 0; - } - - /** - * Gets the value of #GTask:completed. This changes from %FALSE to %TRUE after - * the task’s callback is invoked, and will return %FALSE if called from inside - * the callback. - * - * Returns: %TRUE if the task has completed, %FALSE otherwise. - * - * Since: 2.44 - */ - public bool getCompleted() - { - return g_task_get_completed(gTask) != 0; - } - - /** - * Gets the #GMainContext that @task will return its result in (that - * is, the context that was the - * [thread-default main context][g-main-context-push-thread-default] - * at the point when @task was created). - * - * This will always return a non-%NULL value, even if the task's - * context is the default #GMainContext. - * - * Returns: @task's #GMainContext - * - * Since: 2.36 - */ - public MainContext getContext() - { - auto __p = g_task_get_context(gTask); - - if(__p is null) - { - return null; - } - - return new MainContext(cast(GMainContext*) __p); - } - - /** - * Gets @task’s name. See g_task_set_name(). - * - * Returns: @task’s name, or %NULL - * - * Since: 2.60 - */ - public string getName() - { - return Str.toString(g_task_get_name(gTask)); - } - - /** - * Gets @task's priority - * - * Returns: @task's priority - * - * Since: 2.36 - */ - public int getPriority() - { - return g_task_get_priority(gTask); - } - - /** - * Gets @task's return-on-cancel flag. See - * g_task_set_return_on_cancel() for more details. - * - * Since: 2.36 - */ - public bool getReturnOnCancel() - { - return g_task_get_return_on_cancel(gTask) != 0; - } - - /** - * Gets the source object from @task. Like - * g_async_result_get_source_object(), but does not ref the object. - * - * Returns: @task's source object, or %NULL - * - * Since: 2.36 - */ - public ObjectG getSourceObject() - { - auto __p = g_task_get_source_object(gTask); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(ObjectG)(cast(GObject*) __p); - } - - /** - * Gets @task's source tag. See g_task_set_source_tag(). - * - * Returns: @task's source tag - * - * Since: 2.36 - */ - public void* getSourceTag() - { - return g_task_get_source_tag(gTask); - } - - /** - * Gets @task's `task_data`. - * - * Returns: @task's `task_data`. - * - * Since: 2.36 - */ - public void* getTaskData() - { - return g_task_get_task_data(gTask); - } - - /** - * Tests if @task resulted in an error. - * - * Returns: %TRUE if the task resulted in an error, %FALSE otherwise. - * - * Since: 2.36 - */ - public bool hadError() - { - return g_task_had_error(gTask) != 0; - } - - /** - * Gets the result of @task as a #gboolean. - * - * If the task resulted in an error, or was cancelled, then this will - * instead return %FALSE and set @error. - * - * Since this method transfers ownership of the return value (or - * error) to the caller, you may only call it once. - * - * Returns: the task result, or %FALSE on error - * - * Since: 2.36 - * - * Throws: GException on failure. - */ - public bool propagateBoolean() - { - GError* err = null; - - auto __p = g_task_propagate_boolean(gTask, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the result of @task as an integer (#gssize). - * - * If the task resulted in an error, or was cancelled, then this will - * instead return -1 and set @error. - * - * Since this method transfers ownership of the return value (or - * error) to the caller, you may only call it once. - * - * Returns: the task result, or -1 on error - * - * Since: 2.36 - * - * Throws: GException on failure. - */ - public ptrdiff_t propagateInt() - { - GError* err = null; - - auto __p = g_task_propagate_int(gTask, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the result of @task as a pointer, and transfers ownership - * of that value to the caller. - * - * If the task resulted in an error, or was cancelled, then this will - * instead return %NULL and set @error. - * - * Since this method transfers ownership of the return value (or - * error) to the caller, you may only call it once. - * - * Returns: the task result, or %NULL on error - * - * Since: 2.36 - * - * Throws: GException on failure. - */ - public void* propagatePointer() - { - GError* err = null; - - auto __p = g_task_propagate_pointer(gTask, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the result of @task as a #GValue, and transfers ownership of - * that value to the caller. As with g_task_return_value(), this is - * a generic low-level method; g_task_propagate_pointer() and the like - * will usually be more useful for C code. - * - * If the task resulted in an error, or was cancelled, then this will - * instead set @error and return %FALSE. - * - * Since this method transfers ownership of the return value (or - * error) to the caller, you may only call it once. - * - * Params: - * value = return location for the #GValue - * - * Returns: %TRUE if @task succeeded, %FALSE on error. - * - * Since: 2.64 - * - * Throws: GException on failure. - */ - public bool propagateValue(out Value value) - { - GValue* outvalue = sliceNew!GValue(); - GError* err = null; - - auto __p = g_task_propagate_value(gTask, outvalue, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - value = ObjectG.getDObject!(Value)(outvalue, true); - - return __p; - } - - /** - * Sets @task's result to @result and completes the task (see - * g_task_return_pointer() for more discussion of exactly what this - * means). - * - * Params: - * result = the #gboolean result of a task function. - * - * Since: 2.36 - */ - public void returnBoolean(bool result) - { - g_task_return_boolean(gTask, result); - } - - /** - * Sets @task's result to @error (which @task assumes ownership of) - * and completes the task (see g_task_return_pointer() for more - * discussion of exactly what this means). - * - * Note that since the task takes ownership of @error, and since the - * task may be completed before returning from g_task_return_error(), - * you cannot assume that @error is still valid after calling this. - * Call g_error_copy() on the error if you need to keep a local copy - * as well. - * - * See also g_task_return_new_error(). - * - * Params: - * error = the #GError result of a task function. - * - * Since: 2.36 - */ - public void returnError(ErrorG error) - { - g_task_return_error(gTask, (error is null) ? null : error.getErrorGStruct(true)); - } - - /** - * Checks if @task's #GCancellable has been cancelled, and if so, sets - * @task's error accordingly and completes the task (see - * g_task_return_pointer() for more discussion of exactly what this - * means). - * - * Returns: %TRUE if @task has been cancelled, %FALSE if not - * - * Since: 2.36 - */ - public bool returnErrorIfCancelled() - { - return g_task_return_error_if_cancelled(gTask) != 0; - } - - /** - * Sets @task's result to @result and completes the task (see - * g_task_return_pointer() for more discussion of exactly what this - * means). - * - * Params: - * result = the integer (#gssize) result of a task function. - * - * Since: 2.36 - */ - public void returnInt(ptrdiff_t result) - { - g_task_return_int(gTask, result); - } - - /** - * Sets @task's result to @result and completes the task. If @result - * is not %NULL, then @result_destroy will be used to free @result if - * the caller does not take ownership of it with - * g_task_propagate_pointer(). - * - * "Completes the task" means that for an ordinary asynchronous task - * it will either invoke the task's callback, or else queue that - * callback to be invoked in the proper #GMainContext, or in the next - * iteration of the current #GMainContext. For a task run via - * g_task_run_in_thread() or g_task_run_in_thread_sync(), calling this - * method will save @result to be returned to the caller later, but - * the task will not actually be completed until the #GTaskThreadFunc - * exits. - * - * Note that since the task may be completed before returning from - * g_task_return_pointer(), you cannot assume that @result is still - * valid after calling this, unless you are still holding another - * reference on it. - * - * Params: - * result = the pointer result of a task - * function - * resultDestroy = a #GDestroyNotify function. - * - * Since: 2.36 - */ - public void returnPointer(void* result, GDestroyNotify resultDestroy) - { - g_task_return_pointer(gTask, result, resultDestroy); - } - - /** - * Sets @task's result to @result (by copying it) and completes the task. - * - * If @result is %NULL then a #GValue of type #G_TYPE_POINTER - * with a value of %NULL will be used for the result. - * - * This is a very generic low-level method intended primarily for use - * by language bindings; for C code, g_task_return_pointer() and the - * like will normally be much easier to use. - * - * Params: - * result = the #GValue result of - * a task function - * - * Since: 2.64 - */ - public void returnValue(Value result) - { - g_task_return_value(gTask, (result is null) ? null : result.getValueStruct()); - } - - /** - * Runs @task_func in another thread. When @task_func returns, @task's - * #GAsyncReadyCallback will be invoked in @task's #GMainContext. - * - * This takes a ref on @task until the task completes. - * - * See #GTaskThreadFunc for more details about how @task_func is handled. - * - * Although GLib currently rate-limits the tasks queued via - * g_task_run_in_thread(), you should not assume that it will always - * do this. If you have a very large number of tasks to run, but don't - * want them to all run at once, you should only queue a limited - * number of them at a time. - * - * Params: - * taskFunc = a #GTaskThreadFunc - * - * Since: 2.36 - */ - public void runInThread(GTaskThreadFunc taskFunc) - { - g_task_run_in_thread(gTask, taskFunc); - } - - /** - * Runs @task_func in another thread, and waits for it to return or be - * cancelled. You can use g_task_propagate_pointer(), etc, afterward - * to get the result of @task_func. - * - * See #GTaskThreadFunc for more details about how @task_func is handled. - * - * Normally this is used with tasks created with a %NULL - * `callback`, but note that even if the task does - * have a callback, it will not be invoked when @task_func returns. - * #GTask:completed will be set to %TRUE just before this function returns. - * - * Although GLib currently rate-limits the tasks queued via - * g_task_run_in_thread_sync(), you should not assume that it will - * always do this. If you have a very large number of tasks to run, - * but don't want them to all run at once, you should only queue a - * limited number of them at a time. - * - * Params: - * taskFunc = a #GTaskThreadFunc - * - * Since: 2.36 - */ - public void runInThreadSync(GTaskThreadFunc taskFunc) - { - g_task_run_in_thread_sync(gTask, taskFunc); - } - - /** - * Sets or clears @task's check-cancellable flag. If this is %TRUE - * (the default), then g_task_propagate_pointer(), etc, and - * g_task_had_error() will check the task's #GCancellable first, and - * if it has been cancelled, then they will consider the task to have - * returned an "Operation was cancelled" error - * (%G_IO_ERROR_CANCELLED), regardless of any other error or return - * value the task may have had. - * - * If @check_cancellable is %FALSE, then the #GTask will not check the - * cancellable itself, and it is up to @task's owner to do this (eg, - * via g_task_return_error_if_cancelled()). - * - * If you are using g_task_set_return_on_cancel() as well, then - * you must leave check-cancellable set %TRUE. - * - * Params: - * checkCancellable = whether #GTask will check the state of - * its #GCancellable for you. - * - * Since: 2.36 - */ - public void setCheckCancellable(bool checkCancellable) - { - g_task_set_check_cancellable(gTask, checkCancellable); - } - - /** - * Sets @task’s name, used in debugging and profiling. The name defaults to - * %NULL. - * - * The task name should describe in a human readable way what the task does. - * For example, ‘Open file’ or ‘Connect to network host’. It is used to set the - * name of the #GSource used for idle completion of the task. - * - * This function may only be called before the @task is first used in a thread - * other than the one it was constructed in. - * - * Params: - * name = a human readable name for the task, or %NULL to unset it - * - * Since: 2.60 - */ - public void setName(string name) - { - g_task_set_name(gTask, Str.toStringz(name)); - } - - /** - * Sets @task's priority. If you do not call this, it will default to - * %G_PRIORITY_DEFAULT. - * - * This will affect the priority of #GSources created with - * g_task_attach_source() and the scheduling of tasks run in threads, - * and can also be explicitly retrieved later via - * g_task_get_priority(). - * - * Params: - * priority = the [priority][io-priority] of the request - * - * Since: 2.36 - */ - public void setPriority(int priority) - { - g_task_set_priority(gTask, priority); - } - - /** - * Sets or clears @task's return-on-cancel flag. This is only - * meaningful for tasks run via g_task_run_in_thread() or - * g_task_run_in_thread_sync(). - * - * If @return_on_cancel is %TRUE, then cancelling @task's - * #GCancellable will immediately cause it to return, as though the - * task's #GTaskThreadFunc had called - * g_task_return_error_if_cancelled() and then returned. - * - * This allows you to create a cancellable wrapper around an - * uninterruptible function. The #GTaskThreadFunc just needs to be - * careful that it does not modify any externally-visible state after - * it has been cancelled. To do that, the thread should call - * g_task_set_return_on_cancel() again to (atomically) set - * return-on-cancel %FALSE before making externally-visible changes; - * if the task gets cancelled before the return-on-cancel flag could - * be changed, g_task_set_return_on_cancel() will indicate this by - * returning %FALSE. - * - * You can disable and re-enable this flag multiple times if you wish. - * If the task's #GCancellable is cancelled while return-on-cancel is - * %FALSE, then calling g_task_set_return_on_cancel() to set it %TRUE - * again will cause the task to be cancelled at that point. - * - * If the task's #GCancellable is already cancelled before you call - * g_task_run_in_thread()/g_task_run_in_thread_sync(), then the - * #GTaskThreadFunc will still be run (for consistency), but the task - * will also be completed right away. - * - * Params: - * returnOnCancel = whether the task returns automatically when - * it is cancelled. - * - * Returns: %TRUE if @task's return-on-cancel flag was changed to - * match @return_on_cancel. %FALSE if @task has already been - * cancelled. - * - * Since: 2.36 - */ - public bool setReturnOnCancel(bool returnOnCancel) - { - return g_task_set_return_on_cancel(gTask, returnOnCancel) != 0; - } - - /** - * Sets @task's source tag. You can use this to tag a task return - * value with a particular pointer (usually a pointer to the function - * doing the tagging) and then later check it using - * g_task_get_source_tag() (or g_async_result_is_tagged()) in the - * task's "finish" function, to figure out if the response came from a - * particular place. - * - * Params: - * sourceTag = an opaque pointer indicating the source of this task - * - * Since: 2.36 - */ - public void setSourceTag(void* sourceTag) - { - g_task_set_source_tag(gTask, sourceTag); - } - - /** - * Sets @task's task data (freeing the existing task data, if any). - * - * Params: - * taskData = task-specific data - * taskDataDestroy = #GDestroyNotify for @task_data - * - * Since: 2.36 - */ - public void setTaskData(void* taskData, GDestroyNotify taskDataDestroy) - { - g_task_set_task_data(gTask, taskData, taskDataDestroy); - } -} diff --git a/generated/gtkd/gio/TcpConnection.d b/generated/gtkd/gio/TcpConnection.d deleted file mode 100644 index bf7962cba..000000000 --- a/generated/gtkd/gio/TcpConnection.d +++ /dev/null @@ -1,106 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TcpConnection; - -private import gio.SocketConnection; -private import gio.c.functions; -public import gio.c.types; - - -/** - * This is the subclass of #GSocketConnection that is created - * for TCP/IP sockets. - * - * Since: 2.22 - */ -public class TcpConnection : SocketConnection -{ - /** the main Gtk struct */ - protected GTcpConnection* gTcpConnection; - - /** Get the main Gtk struct */ - public GTcpConnection* getTcpConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTcpConnection; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTcpConnection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTcpConnection* gTcpConnection, bool ownedRef = false) - { - this.gTcpConnection = gTcpConnection; - super(cast(GSocketConnection*)gTcpConnection, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_tcp_connection_get_type(); - } - - /** - * Checks if graceful disconnects are used. See - * g_tcp_connection_set_graceful_disconnect(). - * - * Returns: %TRUE if graceful disconnect is used on close, %FALSE otherwise - * - * Since: 2.22 - */ - public bool getGracefulDisconnect() - { - return g_tcp_connection_get_graceful_disconnect(gTcpConnection) != 0; - } - - /** - * This enables graceful disconnects on close. A graceful disconnect - * means that we signal the receiving end that the connection is terminated - * and wait for it to close the connection before closing the connection. - * - * A graceful disconnect means that we can be sure that we successfully sent - * all the outstanding data to the other end, or get an error reported. - * However, it also means we have to wait for all the data to reach the - * other side and for it to acknowledge this by closing the socket, which may - * take a while. For this reason it is disabled by default. - * - * Params: - * gracefulDisconnect = Whether to do graceful disconnects or not - * - * Since: 2.22 - */ - public void setGracefulDisconnect(bool gracefulDisconnect) - { - g_tcp_connection_set_graceful_disconnect(gTcpConnection, gracefulDisconnect); - } -} diff --git a/generated/gtkd/gio/TcpWrapperConnection.d b/generated/gtkd/gio/TcpWrapperConnection.d deleted file mode 100644 index 468387050..000000000 --- a/generated/gtkd/gio/TcpWrapperConnection.d +++ /dev/null @@ -1,122 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TcpWrapperConnection; - -private import gio.IOStream; -private import gio.Socket; -private import gio.SocketConnection; -private import gio.TcpConnection; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * A #GTcpWrapperConnection can be used to wrap a #GIOStream that is - * based on a #GSocket, but which is not actually a - * #GSocketConnection. This is used by #GSocketClient so that it can - * always return a #GSocketConnection, even when the connection it has - * actually created is not directly a #GSocketConnection. - * - * Since: 2.28 - */ -public class TcpWrapperConnection : TcpConnection -{ - /** the main Gtk struct */ - protected GTcpWrapperConnection* gTcpWrapperConnection; - - /** Get the main Gtk struct */ - public GTcpWrapperConnection* getTcpWrapperConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTcpWrapperConnection; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTcpWrapperConnection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTcpWrapperConnection* gTcpWrapperConnection, bool ownedRef = false) - { - this.gTcpWrapperConnection = gTcpWrapperConnection; - super(cast(GTcpConnection*)gTcpWrapperConnection, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_tcp_wrapper_connection_get_type(); - } - - /** - * Wraps @base_io_stream and @socket together as a #GSocketConnection. - * - * Params: - * baseIoStream = the #GIOStream to wrap - * socket = the #GSocket associated with @base_io_stream - * - * Returns: the new #GSocketConnection. - * - * Since: 2.28 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(IOStream baseIoStream, Socket socket) - { - auto __p = g_tcp_wrapper_connection_new((baseIoStream is null) ? null : baseIoStream.getIOStreamStruct(), (socket is null) ? null : socket.getSocketStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GTcpWrapperConnection*) __p, true); - } - - /** - * Gets @conn's base #GIOStream - * - * Returns: @conn's base #GIOStream - */ - public IOStream getBaseIoStream() - { - auto __p = g_tcp_wrapper_connection_get_base_io_stream(gTcpWrapperConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IOStream)(cast(GIOStream*) __p); - } -} diff --git a/generated/gtkd/gio/TestDBus.d b/generated/gtkd/gio/TestDBus.d deleted file mode 100644 index f33b48d29..000000000 --- a/generated/gtkd/gio/TestDBus.d +++ /dev/null @@ -1,254 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TestDBus; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * A helper class for testing code which uses D-Bus without touching the user's - * session bus. - * - * Note that #GTestDBus modifies the user’s environment, calling setenv(). - * This is not thread-safe, so all #GTestDBus calls should be completed before - * threads are spawned, or should have appropriate locking to ensure no access - * conflicts to environment variables shared between #GTestDBus and other - * threads. - * - * ## Creating unit tests using GTestDBus - * - * Testing of D-Bus services can be tricky because normally we only ever run - * D-Bus services over an existing instance of the D-Bus daemon thus we - * usually don't activate D-Bus services that are not yet installed into the - * target system. The #GTestDBus object makes this easier for us by taking care - * of the lower level tasks such as running a private D-Bus daemon and looking - * up uninstalled services in customizable locations, typically in your source - * code tree. - * - * The first thing you will need is a separate service description file for the - * D-Bus daemon. Typically a `services` subdirectory of your `tests` directory - * is a good place to put this file. - * - * The service file should list your service along with an absolute path to the - * uninstalled service executable in your source tree. Using autotools we would - * achieve this by adding a file such as `my-server.service.in` in the services - * directory and have it processed by configure. - * |[ - * [D-BUS Service] - * Name=org.gtk.GDBus.Examples.ObjectManager - * Exec=@abs_top_builddir@/gio/tests/gdbus-example-objectmanager-server - * ]| - * You will also need to indicate this service directory in your test - * fixtures, so you will need to pass the path while compiling your - * test cases. Typically this is done with autotools with an added - * preprocessor flag specified to compile your tests such as: - * |[ - * -DTEST_SERVICES=\""$(abs_top_builddir)/tests/services"\" - * ]| - * Once you have a service definition file which is local to your source tree, - * you can proceed to set up a GTest fixture using the #GTestDBus scaffolding. - * - * An example of a test fixture for D-Bus services can be found - * here: - * [gdbus-test-fixture.c](https://git.gnome.org/browse/glib/tree/gio/tests/gdbus-test-fixture.c) - * - * Note that these examples only deal with isolating the D-Bus aspect of your - * service. To successfully run isolated unit tests on your service you may need - * some additional modifications to your test case fixture. For example; if your - * service uses GSettings and installs a schema then it is important that your test service - * not load the schema in the ordinary installed location (chances are that your service - * and schema files are not yet installed, or worse; there is an older version of the - * schema file sitting in the install location). - * - * Most of the time we can work around these obstacles using the - * environment. Since the environment is inherited by the D-Bus daemon - * created by #GTestDBus and then in turn inherited by any services the - * D-Bus daemon activates, using the setup routine for your fixture is - * a practical place to help sandbox your runtime environment. For the - * rather typical GSettings case we can work around this by setting - * `GSETTINGS_SCHEMA_DIR` to the in tree directory holding your schemas - * in the above fixture_setup() routine. - * - * The GSettings schemas need to be locally pre-compiled for this to work. This can be achieved - * by compiling the schemas locally as a step before running test cases, an autotools setup might - * do the following in the directory holding schemas: - * |[ - * all-am: - * $(GLIB_COMPILE_SCHEMAS) . - * - * CLEANFILES += gschemas.compiled - * ]| - * - * Since: 2.34 - */ -public class TestDBus : ObjectG -{ - /** the main Gtk struct */ - protected GTestDBus* gTestDBus; - - /** Get the main Gtk struct */ - public GTestDBus* getTestDBusStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTestDBus; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTestDBus; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTestDBus* gTestDBus, bool ownedRef = false) - { - this.gTestDBus = gTestDBus; - super(cast(GObject*)gTestDBus, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_test_dbus_get_type(); - } - - /** - * Create a new #GTestDBus object. - * - * Params: - * flags = a #GTestDBusFlags - * - * Returns: a new #GTestDBus. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GTestDBusFlags flags) - { - auto __p = g_test_dbus_new(flags); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GTestDBus*) __p, true); - } - - /** - * Unset DISPLAY and DBUS_SESSION_BUS_ADDRESS env variables to ensure the test - * won't use user's session bus. - * - * This is useful for unit tests that want to verify behaviour when no session - * bus is running. It is not necessary to call this if unit test already calls - * g_test_dbus_up() before acquiring the session bus. - */ - public static void unset() - { - g_test_dbus_unset(); - } - - /** - * Add a path where dbus-daemon will look up .service files. This can't be - * called after g_test_dbus_up(). - * - * Params: - * path = path to a directory containing .service files - */ - public void addServiceDir(string path) - { - g_test_dbus_add_service_dir(gTestDBus, Str.toStringz(path)); - } - - /** - * Stop the session bus started by g_test_dbus_up(). - * - * This will wait for the singleton returned by g_bus_get() or g_bus_get_sync() - * to be destroyed. This is done to ensure that the next unit test won't get a - * leaked singleton from this test. - */ - public void down() - { - g_test_dbus_down(gTestDBus); - } - - /** - * Get the address on which dbus-daemon is running. If g_test_dbus_up() has not - * been called yet, %NULL is returned. This can be used with - * g_dbus_connection_new_for_address(). - * - * Returns: the address of the bus, or %NULL. - */ - public string getBusAddress() - { - return Str.toString(g_test_dbus_get_bus_address(gTestDBus)); - } - - /** - * Get the flags of the #GTestDBus object. - * - * Returns: the value of #GTestDBus:flags property - */ - public GTestDBusFlags getFlags() - { - return g_test_dbus_get_flags(gTestDBus); - } - - /** - * Stop the session bus started by g_test_dbus_up(). - * - * Unlike g_test_dbus_down(), this won't verify the #GDBusConnection - * singleton returned by g_bus_get() or g_bus_get_sync() is destroyed. Unit - * tests wanting to verify behaviour after the session bus has been stopped - * can use this function but should still call g_test_dbus_down() when done. - */ - public void stop() - { - g_test_dbus_stop(gTestDBus); - } - - /** - * Start a dbus-daemon instance and set DBUS_SESSION_BUS_ADDRESS. After this - * call, it is safe for unit tests to start sending messages on the session bus. - * - * If this function is called from setup callback of g_test_add(), - * g_test_dbus_down() must be called in its teardown callback. - * - * If this function is called from unit test's main(), then g_test_dbus_down() - * must be called after g_test_run(). - */ - public void up() - { - g_test_dbus_up(gTestDBus); - } -} diff --git a/generated/gtkd/gio/ThemedIcon.d b/generated/gtkd/gio/ThemedIcon.d deleted file mode 100644 index 03ad7089b..000000000 --- a/generated/gtkd/gio/ThemedIcon.d +++ /dev/null @@ -1,181 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ThemedIcon; - -private import gio.IconIF; -private import gio.IconT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GThemedIcon is an implementation of #GIcon that supports icon themes. - * #GThemedIcon contains a list of all of the icons present in an icon - * theme, so that icons can be looked up quickly. #GThemedIcon does - * not provide actual pixmaps for icons, just the icon names. - * Ideally something like gtk_icon_theme_choose_icon() should be used to - * resolve the list of names so that fallback icons work nicely with - * themes that inherit other themes. - */ -public class ThemedIcon : ObjectG, IconIF -{ - /** the main Gtk struct */ - protected GThemedIcon* gThemedIcon; - - /** Get the main Gtk struct */ - public GThemedIcon* getThemedIconStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gThemedIcon; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gThemedIcon; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GThemedIcon* gThemedIcon, bool ownedRef = false) - { - this.gThemedIcon = gThemedIcon; - super(cast(GObject*)gThemedIcon, ownedRef); - } - - // add the Icon capabilities - mixin IconT!(GThemedIcon); - - - /** */ - public static GType getType() - { - return g_themed_icon_get_type(); - } - - /** - * Creates a new themed icon for @iconnames. - * - * Params: - * iconnames = an array of strings containing icon names. - * - * Returns: a new #GThemedIcon - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string[] iconnames) - { - auto __p = g_themed_icon_new_from_names(Str.toStringzArray(iconnames), cast(int)iconnames.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_names"); - } - - this(cast(GThemedIcon*) __p, true); - } - - /** - * Creates a new themed icon for @iconname, and all the names - * that can be created by shortening @iconname at '-' characters. - * - * In the following example, @icon1 and @icon2 are equivalent: - * |[ - * const char *names[] = { - * "gnome-dev-cdrom-audio", - * "gnome-dev-cdrom", - * "gnome-dev", - * "gnome" - * }; - * - * icon1 = g_themed_icon_new_from_names (names, 4); - * icon2 = g_themed_icon_new_with_default_fallbacks ("gnome-dev-cdrom-audio"); - * ]| - * - * Params: - * iconname = a string containing an icon name - * - * Returns: a new #GThemedIcon. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string iconname) - { - auto __p = g_themed_icon_new_with_default_fallbacks(Str.toStringz(iconname)); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_default_fallbacks"); - } - - this(cast(GThemedIcon*) __p, true); - } - - /** - * Append a name to the list of icons from within @icon. - * - * Note that doing so invalidates the hash computed by prior calls - * to g_icon_hash(). - * - * Params: - * iconname = name of icon to append to list of icons from within @icon. - */ - public void appendName(string iconname) - { - g_themed_icon_append_name(gThemedIcon, Str.toStringz(iconname)); - } - - /** - * Gets the names of icons from within @icon. - * - * Returns: a list of icon names. - */ - public string[] getNames() - { - return Str.toStringArray(g_themed_icon_get_names(gThemedIcon)); - } - - /** - * Prepend a name to the list of icons from within @icon. - * - * Note that doing so invalidates the hash computed by prior calls - * to g_icon_hash(). - * - * Params: - * iconname = name of icon to prepend to list of icons from within @icon. - * - * Since: 2.18 - */ - public void prependName(string iconname) - { - g_themed_icon_prepend_name(gThemedIcon, Str.toStringz(iconname)); - } -} diff --git a/generated/gtkd/gio/ThreadedSocketService.d b/generated/gtkd/gio/ThreadedSocketService.d deleted file mode 100644 index 103b4be39..000000000 --- a/generated/gtkd/gio/ThreadedSocketService.d +++ /dev/null @@ -1,133 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ThreadedSocketService; - -private import gio.SocketConnection; -private import gio.SocketService; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * A #GThreadedSocketService is a simple subclass of #GSocketService - * that handles incoming connections by creating a worker thread and - * dispatching the connection to it by emitting the - * #GThreadedSocketService::run signal in the new thread. - * - * The signal handler may perform blocking IO and need not return - * until the connection is closed. - * - * The service is implemented using a thread pool, so there is a - * limited amount of threads available to serve incoming requests. - * The service automatically stops the #GSocketService from accepting - * new connections when all threads are busy. - * - * As with #GSocketService, you may connect to #GThreadedSocketService::run, - * or subclass and override the default handler. - * - * Since: 2.22 - */ -public class ThreadedSocketService : SocketService -{ - /** the main Gtk struct */ - protected GThreadedSocketService* gThreadedSocketService; - - /** Get the main Gtk struct */ - public GThreadedSocketService* getThreadedSocketServiceStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gThreadedSocketService; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gThreadedSocketService; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GThreadedSocketService* gThreadedSocketService, bool ownedRef = false) - { - this.gThreadedSocketService = gThreadedSocketService; - super(cast(GSocketService*)gThreadedSocketService, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_threaded_socket_service_get_type(); - } - - /** - * Creates a new #GThreadedSocketService with no listeners. Listeners - * must be added with one of the #GSocketListener "add" methods. - * - * Params: - * maxThreads = the maximal number of threads to execute concurrently - * handling incoming clients, -1 means no limit - * - * Returns: a new #GSocketService. - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int maxThreads) - { - auto __p = g_threaded_socket_service_new(maxThreads); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GThreadedSocketService*) __p, true); - } - - /** - * The ::run signal is emitted in a worker thread in response to an - * incoming connection. This thread is dedicated to handling - * @connection and may perform blocking IO. The signal handler need - * not return until the connection is closed. - * - * Params: - * connection = a new #GSocketConnection object. - * sourceObject = the source_object passed to g_socket_listener_add_address(). - * - * Returns: %TRUE to stop further signal handlers from being called - */ - gulong addOnRun(bool delegate(SocketConnection, ObjectG, ThreadedSocketService) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "run", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/TlsBackendIF.d b/generated/gtkd/gio/TlsBackendIF.d deleted file mode 100644 index 4ee4664ee..000000000 --- a/generated/gtkd/gio/TlsBackendIF.d +++ /dev/null @@ -1,178 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsBackendIF; - -private import gio.TlsBackendIF; -private import gio.TlsDatabase; -private import gio.c.functions; -public import gio.c.types; -private import gobject.ObjectG; - - -/** - * TLS (Transport Layer Security, aka SSL) and DTLS backend. - * - * Since: 2.28 - */ -public interface TlsBackendIF{ - /** Get the main Gtk struct */ - public GTlsBackend* getTlsBackendStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_tls_backend_get_type(); - } - - /** - * Gets the default #GTlsBackend for the system. - * - * Returns: a #GTlsBackend, which will be a - * dummy object if no TLS backend is available - * - * Since: 2.28 - */ - public static TlsBackendIF getDefault() - { - auto __p = g_tls_backend_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsBackendIF)(cast(GTlsBackend*) __p); - } - - /** - * Gets the #GType of @backend's #GTlsCertificate implementation. - * - * Returns: the #GType of @backend's #GTlsCertificate - * implementation. - * - * Since: 2.28 - */ - public GType getCertificateType(); - - /** - * Gets the #GType of @backend's #GTlsClientConnection implementation. - * - * Returns: the #GType of @backend's #GTlsClientConnection - * implementation. - * - * Since: 2.28 - */ - public GType getClientConnectionType(); - - /** - * Gets the default #GTlsDatabase used to verify TLS connections. - * - * Returns: the default database, which should be - * unreffed when done. - * - * Since: 2.30 - */ - public TlsDatabase getDefaultDatabase(); - - /** - * Gets the #GType of @backend’s #GDtlsClientConnection implementation. - * - * Returns: the #GType of @backend’s #GDtlsClientConnection - * implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS. - * - * Since: 2.48 - */ - public GType getDtlsClientConnectionType(); - - /** - * Gets the #GType of @backend’s #GDtlsServerConnection implementation. - * - * Returns: the #GType of @backend’s #GDtlsServerConnection - * implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS. - * - * Since: 2.48 - */ - public GType getDtlsServerConnectionType(); - - /** - * Gets the #GType of @backend's #GTlsFileDatabase implementation. - * - * Returns: the #GType of backend's #GTlsFileDatabase implementation. - * - * Since: 2.30 - */ - public GType getFileDatabaseType(); - - /** - * Gets the #GType of @backend's #GTlsServerConnection implementation. - * - * Returns: the #GType of @backend's #GTlsServerConnection - * implementation. - * - * Since: 2.28 - */ - public GType getServerConnectionType(); - - /** - * Set the default #GTlsDatabase used to verify TLS connections - * - * Any subsequent call to g_tls_backend_get_default_database() will return - * the database set in this call. Existing databases and connections are not - * modified. - * - * Setting a %NULL default database will reset to using the system default - * database as if g_tls_backend_set_default_database() had never been called. - * - * Params: - * database = the #GTlsDatabase - * - * Since: 2.60 - */ - public void setDefaultDatabase(TlsDatabase database); - - /** - * Checks if DTLS is supported. DTLS support may not be available even if TLS - * support is available, and vice-versa. - * - * Returns: whether DTLS is supported - * - * Since: 2.48 - */ - public bool supportsDtls(); - - /** - * Checks if TLS is supported; if this returns %FALSE for the default - * #GTlsBackend, it means no "real" TLS backend is available. - * - * Returns: whether or not TLS is supported - * - * Since: 2.28 - */ - public bool supportsTls(); -} diff --git a/generated/gtkd/gio/TlsBackendT.d b/generated/gtkd/gio/TlsBackendT.d deleted file mode 100644 index 4dca1617f..000000000 --- a/generated/gtkd/gio/TlsBackendT.d +++ /dev/null @@ -1,192 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsBackendT; - -public import gio.TlsBackendIF; -public import gio.TlsDatabase; -public import gio.c.functions; -public import gio.c.types; -public import gobject.ObjectG; - - -/** - * TLS (Transport Layer Security, aka SSL) and DTLS backend. - * - * Since: 2.28 - */ -public template TlsBackendT(TStruct) -{ - /** Get the main Gtk struct */ - public GTlsBackend* getTlsBackendStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GTlsBackend*)getStruct(); - } - - - /** - * Gets the #GType of @backend's #GTlsCertificate implementation. - * - * Returns: the #GType of @backend's #GTlsCertificate - * implementation. - * - * Since: 2.28 - */ - public GType getCertificateType() - { - return g_tls_backend_get_certificate_type(getTlsBackendStruct()); - } - - /** - * Gets the #GType of @backend's #GTlsClientConnection implementation. - * - * Returns: the #GType of @backend's #GTlsClientConnection - * implementation. - * - * Since: 2.28 - */ - public GType getClientConnectionType() - { - return g_tls_backend_get_client_connection_type(getTlsBackendStruct()); - } - - /** - * Gets the default #GTlsDatabase used to verify TLS connections. - * - * Returns: the default database, which should be - * unreffed when done. - * - * Since: 2.30 - */ - public TlsDatabase getDefaultDatabase() - { - auto __p = g_tls_backend_get_default_database(getTlsBackendStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsDatabase)(cast(GTlsDatabase*) __p, true); - } - - /** - * Gets the #GType of @backend’s #GDtlsClientConnection implementation. - * - * Returns: the #GType of @backend’s #GDtlsClientConnection - * implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS. - * - * Since: 2.48 - */ - public GType getDtlsClientConnectionType() - { - return g_tls_backend_get_dtls_client_connection_type(getTlsBackendStruct()); - } - - /** - * Gets the #GType of @backend’s #GDtlsServerConnection implementation. - * - * Returns: the #GType of @backend’s #GDtlsServerConnection - * implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS. - * - * Since: 2.48 - */ - public GType getDtlsServerConnectionType() - { - return g_tls_backend_get_dtls_server_connection_type(getTlsBackendStruct()); - } - - /** - * Gets the #GType of @backend's #GTlsFileDatabase implementation. - * - * Returns: the #GType of backend's #GTlsFileDatabase implementation. - * - * Since: 2.30 - */ - public GType getFileDatabaseType() - { - return g_tls_backend_get_file_database_type(getTlsBackendStruct()); - } - - /** - * Gets the #GType of @backend's #GTlsServerConnection implementation. - * - * Returns: the #GType of @backend's #GTlsServerConnection - * implementation. - * - * Since: 2.28 - */ - public GType getServerConnectionType() - { - return g_tls_backend_get_server_connection_type(getTlsBackendStruct()); - } - - /** - * Set the default #GTlsDatabase used to verify TLS connections - * - * Any subsequent call to g_tls_backend_get_default_database() will return - * the database set in this call. Existing databases and connections are not - * modified. - * - * Setting a %NULL default database will reset to using the system default - * database as if g_tls_backend_set_default_database() had never been called. - * - * Params: - * database = the #GTlsDatabase - * - * Since: 2.60 - */ - public void setDefaultDatabase(TlsDatabase database) - { - g_tls_backend_set_default_database(getTlsBackendStruct(), (database is null) ? null : database.getTlsDatabaseStruct()); - } - - /** - * Checks if DTLS is supported. DTLS support may not be available even if TLS - * support is available, and vice-versa. - * - * Returns: whether DTLS is supported - * - * Since: 2.48 - */ - public bool supportsDtls() - { - return g_tls_backend_supports_dtls(getTlsBackendStruct()) != 0; - } - - /** - * Checks if TLS is supported; if this returns %FALSE for the default - * #GTlsBackend, it means no "real" TLS backend is available. - * - * Returns: whether or not TLS is supported - * - * Since: 2.28 - */ - public bool supportsTls() - { - return g_tls_backend_supports_tls(getTlsBackendStruct()) != 0; - } -} diff --git a/generated/gtkd/gio/TlsCertificate.d b/generated/gtkd/gio/TlsCertificate.d deleted file mode 100644 index 96fc27506..000000000 --- a/generated/gtkd/gio/TlsCertificate.d +++ /dev/null @@ -1,387 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsCertificate; - -private import gio.SocketConnectableIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * A certificate used for TLS authentication and encryption. - * This can represent either a certificate only (eg, the certificate - * received by a client from a server), or the combination of - * a certificate and a private key (which is needed when acting as a - * #GTlsServerConnection). - * - * Since: 2.28 - */ -public class TlsCertificate : ObjectG -{ - /** the main Gtk struct */ - protected GTlsCertificate* gTlsCertificate; - - /** Get the main Gtk struct */ - public GTlsCertificate* getTlsCertificateStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTlsCertificate; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTlsCertificate; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTlsCertificate* gTlsCertificate, bool ownedRef = false) - { - this.gTlsCertificate = gTlsCertificate; - super(cast(GObject*)gTlsCertificate, ownedRef); - } - - /** - * Creates a #GTlsCertificate from a PKCS \#11 URI. - * - * An example @pkcs11_uri would be `pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01` - * - * Where the token’s layout is: - * - * ``` - * Object 0: - * URL: pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01;object=private%20key;type=private - * Type: Private key (RSA-2048) - * ID: 01 - * - * Object 1: - * URL: pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01;object=Certificate%20for%20Authentication;type=cert - * Type: X.509 Certificate (RSA-2048) - * ID: 01 - * ``` - * - * In this case the certificate and private key would both be detected and used as expected. - * @pkcs_uri may also just reference an X.509 certificate object and then optionally - * @private_key_pkcs11_uri allows using a private key exposed under a different URI. - * - * Note that the private key is not accessed until usage and may fail or require a PIN later. - * - * Params: - * pkcs11Uri = A PKCS \#11 URI - * privateKeyPkcs11Uri = A PKCS \#11 URI - * - * Returns: the new certificate, or %NULL on error - * - * Since: 2.68 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public static TlsCertificate newFromPkcs11Uris(string pkcs11Uri, string privateKeyPkcs11Uri) - { - GError* err = null; - - auto __p = g_tls_certificate_new_from_pkcs11_uris(Str.toStringz(pkcs11Uri), Str.toStringz(privateKeyPkcs11Uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_pkcs11_uris"); - } - - return new TlsCertificate(cast(GTlsCertificate*) __p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_tls_certificate_get_type(); - } - - /** - * Creates a #GTlsCertificate from the PEM-encoded data in @file. The - * returned certificate will be the first certificate found in @file. As - * of GLib 2.44, if @file contains more certificates it will try to load - * a certificate chain. All certificates will be verified in the order - * found (top-level certificate should be the last one in the file) and - * the #GTlsCertificate:issuer property of each certificate will be set - * accordingly if the verification succeeds. If any certificate in the - * chain cannot be verified, the first certificate in the file will - * still be returned. - * - * If @file cannot be read or parsed, the function will return %NULL and - * set @error. Otherwise, this behaves like - * g_tls_certificate_new_from_pem(). - * - * Params: - * file = file containing a PEM-encoded certificate to import - * - * Returns: the new certificate, or %NULL on error - * - * Since: 2.28 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string file) - { - GError* err = null; - - auto __p = g_tls_certificate_new_from_file(Str.toStringz(file), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_file"); - } - - this(cast(GTlsCertificate*) __p, true); - } - - /** - * Creates a #GTlsCertificate from the PEM-encoded data in @cert_file - * and @key_file. The returned certificate will be the first certificate - * found in @cert_file. As of GLib 2.44, if @cert_file contains more - * certificates it will try to load a certificate chain. All - * certificates will be verified in the order found (top-level - * certificate should be the last one in the file) and the - * #GTlsCertificate:issuer property of each certificate will be set - * accordingly if the verification succeeds. If any certificate in the - * chain cannot be verified, the first certificate in the file will - * still be returned. - * - * If either file cannot be read or parsed, the function will return - * %NULL and set @error. Otherwise, this behaves like - * g_tls_certificate_new_from_pem(). - * - * Params: - * certFile = file containing one or more PEM-encoded - * certificates to import - * keyFile = file containing a PEM-encoded private key - * to import - * - * Returns: the new certificate, or %NULL on error - * - * Since: 2.28 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string certFile, string keyFile) - { - GError* err = null; - - auto __p = g_tls_certificate_new_from_files(Str.toStringz(certFile), Str.toStringz(keyFile), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_files"); - } - - this(cast(GTlsCertificate*) __p, true); - } - - /** - * Creates a #GTlsCertificate from the PEM-encoded data in @data. If - * @data includes both a certificate and a private key, then the - * returned certificate will include the private key data as well. (See - * the #GTlsCertificate:private-key-pem property for information about - * supported formats.) - * - * The returned certificate will be the first certificate found in - * @data. As of GLib 2.44, if @data contains more certificates it will - * try to load a certificate chain. All certificates will be verified in - * the order found (top-level certificate should be the last one in the - * file) and the #GTlsCertificate:issuer property of each certificate - * will be set accordingly if the verification succeeds. If any - * certificate in the chain cannot be verified, the first certificate in - * the file will still be returned. - * - * Params: - * data = PEM-encoded certificate data - * length = the length of @data, or -1 if it's 0-terminated. - * - * Returns: the new certificate, or %NULL if @data is invalid - * - * Since: 2.28 - * - * Throws: GException on failure. - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string data, ptrdiff_t length) - { - GError* err = null; - - auto __p = g_tls_certificate_new_from_pem(Str.toStringz(data), length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_pem"); - } - - this(cast(GTlsCertificate*) __p, true); - } - - /** - * Creates one or more #GTlsCertificates from the PEM-encoded - * data in @file. If @file cannot be read or parsed, the function will - * return %NULL and set @error. If @file does not contain any - * PEM-encoded certificates, this will return an empty list and not - * set @error. - * - * Params: - * file = file containing PEM-encoded certificates to import - * - * Returns: a - * #GList containing #GTlsCertificate objects. You must free the list - * and its contents when you are done with it. - * - * Since: 2.28 - * - * Throws: GException on failure. - */ - public static ListG listNewFromFile(string file) - { - GError* err = null; - - auto __p = g_tls_certificate_list_new_from_file(Str.toStringz(file), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets the #GTlsCertificate representing @cert's issuer, if known - * - * Returns: The certificate of @cert's issuer, - * or %NULL if @cert is self-signed or signed with an unknown - * certificate. - * - * Since: 2.28 - */ - public TlsCertificate getIssuer() - { - auto __p = g_tls_certificate_get_issuer(gTlsCertificate); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p); - } - - /** - * Check if two #GTlsCertificate objects represent the same certificate. - * The raw DER byte data of the two certificates are checked for equality. - * This has the effect that two certificates may compare equal even if - * their #GTlsCertificate:issuer, #GTlsCertificate:private-key, or - * #GTlsCertificate:private-key-pem properties differ. - * - * Params: - * certTwo = second certificate to compare - * - * Returns: whether the same or not - * - * Since: 2.34 - */ - public bool isSame(TlsCertificate certTwo) - { - return g_tls_certificate_is_same(gTlsCertificate, (certTwo is null) ? null : certTwo.getTlsCertificateStruct()) != 0; - } - - /** - * This verifies @cert and returns a set of #GTlsCertificateFlags - * indicating any problems found with it. This can be used to verify a - * certificate outside the context of making a connection, or to - * check a certificate against a CA that is not part of the system - * CA database. - * - * If @identity is not %NULL, @cert's name(s) will be compared against - * it, and %G_TLS_CERTIFICATE_BAD_IDENTITY will be set in the return - * value if it does not match. If @identity is %NULL, that bit will - * never be set in the return value. - * - * If @trusted_ca is not %NULL, then @cert (or one of the certificates - * in its chain) must be signed by it, or else - * %G_TLS_CERTIFICATE_UNKNOWN_CA will be set in the return value. If - * @trusted_ca is %NULL, that bit will never be set in the return - * value. - * - * (All other #GTlsCertificateFlags values will always be set or unset - * as appropriate.) - * - * Params: - * identity = the expected peer identity - * trustedCa = the certificate of a trusted authority - * - * Returns: the appropriate #GTlsCertificateFlags - * - * Since: 2.28 - */ - public GTlsCertificateFlags verify(SocketConnectableIF identity, TlsCertificate trustedCa) - { - return g_tls_certificate_verify(gTlsCertificate, (identity is null) ? null : identity.getSocketConnectableStruct(), (trustedCa is null) ? null : trustedCa.getTlsCertificateStruct()); - } -} diff --git a/generated/gtkd/gio/TlsClientConnectionIF.d b/generated/gtkd/gio/TlsClientConnectionIF.d deleted file mode 100644 index bfa12353a..000000000 --- a/generated/gtkd/gio/TlsClientConnectionIF.d +++ /dev/null @@ -1,189 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsClientConnectionIF; - -private import gio.IOStream; -private import gio.SocketConnectableIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import gobject.ObjectG; - - -/** - * #GTlsClientConnection is the client-side subclass of - * #GTlsConnection, representing a client-side TLS connection. - * - * Since: 2.28 - */ -public interface TlsClientConnectionIF{ - /** Get the main Gtk struct */ - public GTlsClientConnection* getTlsClientConnectionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_tls_client_connection_get_type(); - } - - /** - * Possibly copies session state from one connection to another, for use - * in TLS session resumption. This is not normally needed, but may be - * used when the same session needs to be used between different - * endpoints, as is required by some protocols, such as FTP over TLS. - * @source should have already completed a handshake and, since TLS 1.3, - * it should have been used to read data at least once. @conn should not - * have completed a handshake. - * - * It is not possible to know whether a call to this function will - * actually do anything. Because session resumption is normally used - * only for performance benefit, the TLS backend might not implement - * this function. Even if implemented, it may not actually succeed in - * allowing @conn to resume @source's TLS session, because the server - * may not have sent a session resumption token to @source, or it may - * refuse to accept the token from @conn. There is no way to know - * whether a call to this function is actually successful. - * - * Using this function is not required to benefit from session - * resumption. If the TLS backend supports session resumption, the - * session will be resumed automatically if it is possible to do so - * without weakening the privacy guarantees normally provided by TLS, - * without need to call this function. For example, with TLS 1.3, - * a session ticket will be automatically copied from any - * #GTlsClientConnection that has previously received session tickets - * from the server, provided a ticket is available that has not - * previously been used for session resumption, since session ticket - * reuse would be a privacy weakness. Using this function causes the - * ticket to be copied without regard for privacy considerations. - * - * Params: - * source = a #GTlsClientConnection - * - * Since: 2.46 - */ - public void copySessionState(TlsClientConnectionIF source); - - /** - * Gets the list of distinguished names of the Certificate Authorities - * that the server will accept certificates from. This will be set - * during the TLS handshake if the server requests a certificate. - * Otherwise, it will be %NULL. - * - * Each item in the list is a #GByteArray which contains the complete - * subject DN of the certificate authority. - * - * Returns: the list of - * CA DNs. You should unref each element with g_byte_array_unref() and then - * the free the list with g_list_free(). - * - * Since: 2.28 - */ - public ListG getAcceptedCas(); - - /** - * Gets @conn's expected server identity - * - * Returns: a #GSocketConnectable describing the - * expected server identity, or %NULL if the expected identity is not - * known. - * - * Since: 2.28 - */ - public SocketConnectableIF getServerIdentity(); - - /** - * SSL 3.0 is no longer supported. See - * g_tls_client_connection_set_use_ssl3() for details. - * - * Deprecated: SSL 3.0 is insecure. - * - * Returns: %FALSE - * - * Since: 2.28 - */ - public bool getUseSsl3(); - - /** - * Gets @conn's validation flags - * - * Returns: the validation flags - * - * Since: 2.28 - */ - public GTlsCertificateFlags getValidationFlags(); - - /** - * Sets @conn's expected server identity, which is used both to tell - * servers on virtual hosts which certificate to present, and also - * to let @conn know what name to look for in the certificate when - * performing %G_TLS_CERTIFICATE_BAD_IDENTITY validation, if enabled. - * - * Params: - * identity = a #GSocketConnectable describing the expected server identity - * - * Since: 2.28 - */ - public void setServerIdentity(SocketConnectableIF identity); - - /** - * Since GLib 2.42.1, SSL 3.0 is no longer supported. - * - * From GLib 2.42.1 through GLib 2.62, this function could be used to - * force use of TLS 1.0, the lowest-supported TLS protocol version at - * the time. In the past, this was needed to connect to broken TLS - * servers that exhibited protocol version intolerance. Such servers - * are no longer common, and using TLS 1.0 is no longer considered - * acceptable. - * - * Since GLib 2.64, this function does nothing. - * - * Deprecated: SSL 3.0 is insecure. - * - * Params: - * useSsl3 = a #gboolean, ignored - * - * Since: 2.28 - */ - public void setUseSsl3(bool useSsl3); - - /** - * Sets @conn's validation flags, to override the default set of - * checks performed when validating a server certificate. By default, - * %G_TLS_CERTIFICATE_VALIDATE_ALL is used. - * - * Params: - * flags = the #GTlsCertificateFlags to use - * - * Since: 2.28 - */ - public void setValidationFlags(GTlsCertificateFlags flags); -} diff --git a/generated/gtkd/gio/TlsClientConnectionT.d b/generated/gtkd/gio/TlsClientConnectionT.d deleted file mode 100644 index bb709b140..000000000 --- a/generated/gtkd/gio/TlsClientConnectionT.d +++ /dev/null @@ -1,224 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsClientConnectionT; - -public import gio.IOStream; -public import gio.SocketConnectableIF; -public import gio.c.functions; -public import gio.c.types; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import glib.ListG; -public import gobject.ObjectG; - - -/** - * #GTlsClientConnection is the client-side subclass of - * #GTlsConnection, representing a client-side TLS connection. - * - * Since: 2.28 - */ -public template TlsClientConnectionT(TStruct) -{ - /** Get the main Gtk struct */ - public GTlsClientConnection* getTlsClientConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GTlsClientConnection*)getStruct(); - } - - - /** - * Possibly copies session state from one connection to another, for use - * in TLS session resumption. This is not normally needed, but may be - * used when the same session needs to be used between different - * endpoints, as is required by some protocols, such as FTP over TLS. - * @source should have already completed a handshake and, since TLS 1.3, - * it should have been used to read data at least once. @conn should not - * have completed a handshake. - * - * It is not possible to know whether a call to this function will - * actually do anything. Because session resumption is normally used - * only for performance benefit, the TLS backend might not implement - * this function. Even if implemented, it may not actually succeed in - * allowing @conn to resume @source's TLS session, because the server - * may not have sent a session resumption token to @source, or it may - * refuse to accept the token from @conn. There is no way to know - * whether a call to this function is actually successful. - * - * Using this function is not required to benefit from session - * resumption. If the TLS backend supports session resumption, the - * session will be resumed automatically if it is possible to do so - * without weakening the privacy guarantees normally provided by TLS, - * without need to call this function. For example, with TLS 1.3, - * a session ticket will be automatically copied from any - * #GTlsClientConnection that has previously received session tickets - * from the server, provided a ticket is available that has not - * previously been used for session resumption, since session ticket - * reuse would be a privacy weakness. Using this function causes the - * ticket to be copied without regard for privacy considerations. - * - * Params: - * source = a #GTlsClientConnection - * - * Since: 2.46 - */ - public void copySessionState(TlsClientConnectionIF source) - { - g_tls_client_connection_copy_session_state(getTlsClientConnectionStruct(), (source is null) ? null : source.getTlsClientConnectionStruct()); - } - - /** - * Gets the list of distinguished names of the Certificate Authorities - * that the server will accept certificates from. This will be set - * during the TLS handshake if the server requests a certificate. - * Otherwise, it will be %NULL. - * - * Each item in the list is a #GByteArray which contains the complete - * subject DN of the certificate authority. - * - * Returns: the list of - * CA DNs. You should unref each element with g_byte_array_unref() and then - * the free the list with g_list_free(). - * - * Since: 2.28 - */ - public ListG getAcceptedCas() - { - auto __p = g_tls_client_connection_get_accepted_cas(getTlsClientConnectionStruct()); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Gets @conn's expected server identity - * - * Returns: a #GSocketConnectable describing the - * expected server identity, or %NULL if the expected identity is not - * known. - * - * Since: 2.28 - */ - public SocketConnectableIF getServerIdentity() - { - auto __p = g_tls_client_connection_get_server_identity(getTlsClientConnectionStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(SocketConnectableIF)(cast(GSocketConnectable*) __p); - } - - /** - * SSL 3.0 is no longer supported. See - * g_tls_client_connection_set_use_ssl3() for details. - * - * Deprecated: SSL 3.0 is insecure. - * - * Returns: %FALSE - * - * Since: 2.28 - */ - public bool getUseSsl3() - { - return g_tls_client_connection_get_use_ssl3(getTlsClientConnectionStruct()) != 0; - } - - /** - * Gets @conn's validation flags - * - * Returns: the validation flags - * - * Since: 2.28 - */ - public GTlsCertificateFlags getValidationFlags() - { - return g_tls_client_connection_get_validation_flags(getTlsClientConnectionStruct()); - } - - /** - * Sets @conn's expected server identity, which is used both to tell - * servers on virtual hosts which certificate to present, and also - * to let @conn know what name to look for in the certificate when - * performing %G_TLS_CERTIFICATE_BAD_IDENTITY validation, if enabled. - * - * Params: - * identity = a #GSocketConnectable describing the expected server identity - * - * Since: 2.28 - */ - public void setServerIdentity(SocketConnectableIF identity) - { - g_tls_client_connection_set_server_identity(getTlsClientConnectionStruct(), (identity is null) ? null : identity.getSocketConnectableStruct()); - } - - /** - * Since GLib 2.42.1, SSL 3.0 is no longer supported. - * - * From GLib 2.42.1 through GLib 2.62, this function could be used to - * force use of TLS 1.0, the lowest-supported TLS protocol version at - * the time. In the past, this was needed to connect to broken TLS - * servers that exhibited protocol version intolerance. Such servers - * are no longer common, and using TLS 1.0 is no longer considered - * acceptable. - * - * Since GLib 2.64, this function does nothing. - * - * Deprecated: SSL 3.0 is insecure. - * - * Params: - * useSsl3 = a #gboolean, ignored - * - * Since: 2.28 - */ - public void setUseSsl3(bool useSsl3) - { - g_tls_client_connection_set_use_ssl3(getTlsClientConnectionStruct(), useSsl3); - } - - /** - * Sets @conn's validation flags, to override the default set of - * checks performed when validating a server certificate. By default, - * %G_TLS_CERTIFICATE_VALIDATE_ALL is used. - * - * Params: - * flags = the #GTlsCertificateFlags to use - * - * Since: 2.28 - */ - public void setValidationFlags(GTlsCertificateFlags flags) - { - g_tls_client_connection_set_validation_flags(getTlsClientConnectionStruct(), flags); - } -} diff --git a/generated/gtkd/gio/TlsConnection.d b/generated/gtkd/gio/TlsConnection.d deleted file mode 100644 index 1254f6c1f..000000000 --- a/generated/gtkd/gio/TlsConnection.d +++ /dev/null @@ -1,631 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsConnection; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.IOStream; -private import gio.TlsCertificate; -private import gio.TlsDatabase; -private import gio.TlsInteraction; -private import gio.c.functions; -public import gio.c.types; -private import glib.ByteArray; -private import glib.ErrorG; -private import glib.GException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GTlsConnection is the base TLS connection class type, which wraps - * a #GIOStream and provides TLS encryption on top of it. Its - * subclasses, #GTlsClientConnection and #GTlsServerConnection, - * implement client-side and server-side TLS, respectively. - * - * For DTLS (Datagram TLS) support, see #GDtlsConnection. - * - * Since: 2.28 - */ -public class TlsConnection : IOStream -{ - /** the main Gtk struct */ - protected GTlsConnection* gTlsConnection; - - /** Get the main Gtk struct */ - public GTlsConnection* getTlsConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTlsConnection; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTlsConnection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTlsConnection* gTlsConnection, bool ownedRef = false) - { - this.gTlsConnection = gTlsConnection; - super(cast(GIOStream*)gTlsConnection, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_tls_connection_get_type(); - } - - /** - * Used by #GTlsConnection implementations to emit the - * #GTlsConnection::accept-certificate signal. - * - * Params: - * peerCert = the peer's #GTlsCertificate - * errors = the problems with @peer_cert - * - * Returns: %TRUE if one of the signal handlers has returned - * %TRUE to accept @peer_cert - * - * Since: 2.28 - */ - public bool emitAcceptCertificate(TlsCertificate peerCert, GTlsCertificateFlags errors) - { - return g_tls_connection_emit_accept_certificate(gTlsConnection, (peerCert is null) ? null : peerCert.getTlsCertificateStruct(), errors) != 0; - } - - /** - * Gets @conn's certificate, as set by - * g_tls_connection_set_certificate(). - * - * Returns: @conn's certificate, or %NULL - * - * Since: 2.28 - */ - public TlsCertificate getCertificate() - { - auto __p = g_tls_connection_get_certificate(gTlsConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p); - } - - /** - * Query the TLS backend for TLS channel binding data of @type for @conn. - * - * This call retrieves TLS channel binding data as specified in RFC - * [5056](https://tools.ietf.org/html/rfc5056), RFC - * [5929](https://tools.ietf.org/html/rfc5929), and related RFCs. The - * binding data is returned in @data. The @data is resized by the callee - * using #GByteArray buffer management and will be freed when the @data - * is destroyed by g_byte_array_unref(). If @data is %NULL, it will only - * check whether TLS backend is able to fetch the data (e.g. whether @type - * is supported by the TLS backend). It does not guarantee that the data - * will be available though. That could happen if TLS connection does not - * support @type or the binding data is not available yet due to additional - * negotiation or input required. - * - * Params: - * type = #GTlsChannelBindingType type of data to fetch - * data = #GByteArray is - * filled with the binding data, or %NULL - * - * Returns: %TRUE on success, %FALSE otherwise - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public bool getChannelBindingData(GTlsChannelBindingType type, out ByteArray data) - { - GByteArray* outdata = sliceNew!GByteArray(); - GError* err = null; - - auto __p = g_tls_connection_get_channel_binding_data(gTlsConnection, type, outdata, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - data = new ByteArray(outdata, true); - - return __p; - } - - /** - * Gets the certificate database that @conn uses to verify - * peer certificates. See g_tls_connection_set_database(). - * - * Returns: the certificate database that @conn uses or %NULL - * - * Since: 2.30 - */ - public TlsDatabase getDatabase() - { - auto __p = g_tls_connection_get_database(gTlsConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsDatabase)(cast(GTlsDatabase*) __p); - } - - /** - * Get the object that will be used to interact with the user. It will be used - * for things like prompting the user for passwords. If %NULL is returned, then - * no user interaction will occur for this connection. - * - * Returns: The interaction object. - * - * Since: 2.30 - */ - public TlsInteraction getInteraction() - { - auto __p = g_tls_connection_get_interaction(gTlsConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsInteraction)(cast(GTlsInteraction*) __p); - } - - /** - * Gets the name of the application-layer protocol negotiated during - * the handshake. - * - * If the peer did not use the ALPN extension, or did not advertise a - * protocol that matched one of @conn's protocols, or the TLS backend - * does not support ALPN, then this will be %NULL. See - * g_tls_connection_set_advertised_protocols(). - * - * Returns: the negotiated protocol, or %NULL - * - * Since: 2.60 - */ - public string getNegotiatedProtocol() - { - return Str.toString(g_tls_connection_get_negotiated_protocol(gTlsConnection)); - } - - /** - * Gets @conn's peer's certificate after the handshake has completed - * or failed. (It is not set during the emission of - * #GTlsConnection::accept-certificate.) - * - * Returns: @conn's peer's certificate, or %NULL - * - * Since: 2.28 - */ - public TlsCertificate getPeerCertificate() - { - auto __p = g_tls_connection_get_peer_certificate(gTlsConnection); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p); - } - - /** - * Gets the errors associated with validating @conn's peer's - * certificate, after the handshake has completed or failed. (It is - * not set during the emission of #GTlsConnection::accept-certificate.) - * - * Returns: @conn's peer's certificate errors - * - * Since: 2.28 - */ - public GTlsCertificateFlags getPeerCertificateErrors() - { - return g_tls_connection_get_peer_certificate_errors(gTlsConnection); - } - - /** - * Gets @conn rehandshaking mode. See - * g_tls_connection_set_rehandshake_mode() for details. - * - * Deprecated: Changing the rehandshake mode is no longer - * required for compatibility. Also, rehandshaking has been removed - * from the TLS protocol in TLS 1.3. - * - * Returns: %G_TLS_REHANDSHAKE_SAFELY - * - * Since: 2.28 - */ - public GTlsRehandshakeMode getRehandshakeMode() - { - return g_tls_connection_get_rehandshake_mode(gTlsConnection); - } - - /** - * Tests whether or not @conn expects a proper TLS close notification - * when the connection is closed. See - * g_tls_connection_set_require_close_notify() for details. - * - * Returns: %TRUE if @conn requires a proper TLS close - * notification. - * - * Since: 2.28 - */ - public bool getRequireCloseNotify() - { - return g_tls_connection_get_require_close_notify(gTlsConnection) != 0; - } - - /** - * Gets whether @conn uses the system certificate database to verify - * peer certificates. See g_tls_connection_set_use_system_certdb(). - * - * Deprecated: Use g_tls_connection_get_database() instead - * - * Returns: whether @conn uses the system certificate database - */ - public bool getUseSystemCertdb() - { - return g_tls_connection_get_use_system_certdb(gTlsConnection) != 0; - } - - /** - * Attempts a TLS handshake on @conn. - * - * On the client side, it is never necessary to call this method; - * although the connection needs to perform a handshake after - * connecting (or after sending a "STARTTLS"-type command), - * #GTlsConnection will handle this for you automatically when you try - * to send or receive data on the connection. You can call - * g_tls_connection_handshake() manually if you want to know whether - * the initial handshake succeeded or failed (as opposed to just - * immediately trying to use @conn to read or write, in which case, - * if it fails, it may not be possible to tell if it failed before or - * after completing the handshake), but beware that servers may reject - * client authentication after the handshake has completed, so a - * successful handshake does not indicate the connection will be usable. - * - * Likewise, on the server side, although a handshake is necessary at - * the beginning of the communication, you do not need to call this - * function explicitly unless you want clearer error reporting. - * - * Previously, calling g_tls_connection_handshake() after the initial - * handshake would trigger a rehandshake; however, this usage was - * deprecated in GLib 2.60 because rehandshaking was removed from the - * TLS protocol in TLS 1.3. Since GLib 2.64, calling this function after - * the initial handshake will no longer do anything. - * - * When using a #GTlsConnection created by #GSocketClient, the - * #GSocketClient performs the initial handshake, so calling this - * function manually is not recommended. - * - * #GTlsConnection::accept_certificate may be emitted during the - * handshake. - * - * Params: - * cancellable = a #GCancellable, or %NULL - * - * Returns: success or failure - * - * Since: 2.28 - * - * Throws: GException on failure. - */ - public bool handshake(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_connection_handshake(gTlsConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously performs a TLS handshake on @conn. See - * g_tls_connection_handshake() for more information. - * - * Params: - * ioPriority = the [I/O priority][io-priority] of the request - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the handshake is complete - * userData = the data to pass to the callback function - * - * Since: 2.28 - */ - public void handshakeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_tls_connection_handshake_async(gTlsConnection, ioPriority, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous TLS handshake operation. See - * g_tls_connection_handshake() for more information. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set. - * - * Since: 2.28 - * - * Throws: GException on failure. - */ - public bool handshakeFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_tls_connection_handshake_finish(gTlsConnection, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the list of application-layer protocols to advertise that the - * caller is willing to speak on this connection. The - * Application-Layer Protocol Negotiation (ALPN) extension will be - * used to negotiate a compatible protocol with the peer; use - * g_tls_connection_get_negotiated_protocol() to find the negotiated - * protocol after the handshake. Specifying %NULL for the the value - * of @protocols will disable ALPN negotiation. - * - * See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) - * for a list of registered protocol IDs. - * - * Params: - * protocols = a %NULL-terminated - * array of ALPN protocol names (eg, "http/1.1", "h2"), or %NULL - * - * Since: 2.60 - */ - public void setAdvertisedProtocols(string[] protocols) - { - g_tls_connection_set_advertised_protocols(gTlsConnection, Str.toStringzArray(protocols)); - } - - /** - * This sets the certificate that @conn will present to its peer - * during the TLS handshake. For a #GTlsServerConnection, it is - * mandatory to set this, and that will normally be done at construct - * time. - * - * For a #GTlsClientConnection, this is optional. If a handshake fails - * with %G_TLS_ERROR_CERTIFICATE_REQUIRED, that means that the server - * requires a certificate, and if you try connecting again, you should - * call this method first. You can call - * g_tls_client_connection_get_accepted_cas() on the failed connection - * to get a list of Certificate Authorities that the server will - * accept certificates from. - * - * (It is also possible that a server will allow the connection with - * or without a certificate; in that case, if you don't provide a - * certificate, you can tell that the server requested one by the fact - * that g_tls_client_connection_get_accepted_cas() will return - * non-%NULL.) - * - * Params: - * certificate = the certificate to use for @conn - * - * Since: 2.28 - */ - public void setCertificate(TlsCertificate certificate) - { - g_tls_connection_set_certificate(gTlsConnection, (certificate is null) ? null : certificate.getTlsCertificateStruct()); - } - - /** - * Sets the certificate database that is used to verify peer certificates. - * This is set to the default database by default. See - * g_tls_backend_get_default_database(). If set to %NULL, then - * peer certificate validation will always set the - * %G_TLS_CERTIFICATE_UNKNOWN_CA error (meaning - * #GTlsConnection::accept-certificate will always be emitted on - * client-side connections, unless that bit is not set in - * #GTlsClientConnection:validation-flags). - * - * Params: - * database = a #GTlsDatabase - * - * Since: 2.30 - */ - public void setDatabase(TlsDatabase database) - { - g_tls_connection_set_database(gTlsConnection, (database is null) ? null : database.getTlsDatabaseStruct()); - } - - /** - * Set the object that will be used to interact with the user. It will be used - * for things like prompting the user for passwords. - * - * The @interaction argument will normally be a derived subclass of - * #GTlsInteraction. %NULL can also be provided if no user interaction - * should occur for this connection. - * - * Params: - * interaction = an interaction object, or %NULL - * - * Since: 2.30 - */ - public void setInteraction(TlsInteraction interaction) - { - g_tls_connection_set_interaction(gTlsConnection, (interaction is null) ? null : interaction.getTlsInteractionStruct()); - } - - /** - * Since GLib 2.64, changing the rehandshake mode is no longer supported - * and will have no effect. With TLS 1.3, rehandshaking has been removed from - * the TLS protocol, replaced by separate post-handshake authentication and - * rekey operations. - * - * Deprecated: Changing the rehandshake mode is no longer - * required for compatibility. Also, rehandshaking has been removed - * from the TLS protocol in TLS 1.3. - * - * Params: - * mode = the rehandshaking mode - * - * Since: 2.28 - */ - public void setRehandshakeMode(GTlsRehandshakeMode mode) - { - g_tls_connection_set_rehandshake_mode(gTlsConnection, mode); - } - - /** - * Sets whether or not @conn expects a proper TLS close notification - * before the connection is closed. If this is %TRUE (the default), - * then @conn will expect to receive a TLS close notification from its - * peer before the connection is closed, and will return a - * %G_TLS_ERROR_EOF error if the connection is closed without proper - * notification (since this may indicate a network error, or - * man-in-the-middle attack). - * - * In some protocols, the application will know whether or not the - * connection was closed cleanly based on application-level data - * (because the application-level data includes a length field, or is - * somehow self-delimiting); in this case, the close notify is - * redundant and sometimes omitted. (TLS 1.1 explicitly allows this; - * in TLS 1.0 it is technically an error, but often done anyway.) You - * can use g_tls_connection_set_require_close_notify() to tell @conn - * to allow an "unannounced" connection close, in which case the close - * will show up as a 0-length read, as in a non-TLS - * #GSocketConnection, and it is up to the application to check that - * the data has been fully received. - * - * Note that this only affects the behavior when the peer closes the - * connection; when the application calls g_io_stream_close() itself - * on @conn, this will send a close notification regardless of the - * setting of this property. If you explicitly want to do an unclean - * close, you can close @conn's #GTlsConnection:base-io-stream rather - * than closing @conn itself, but note that this may only be done when no other - * operations are pending on @conn or the base I/O stream. - * - * Params: - * requireCloseNotify = whether or not to require close notification - * - * Since: 2.28 - */ - public void setRequireCloseNotify(bool requireCloseNotify) - { - g_tls_connection_set_require_close_notify(gTlsConnection, requireCloseNotify); - } - - /** - * Sets whether @conn uses the system certificate database to verify - * peer certificates. This is %TRUE by default. If set to %FALSE, then - * peer certificate validation will always set the - * %G_TLS_CERTIFICATE_UNKNOWN_CA error (meaning - * #GTlsConnection::accept-certificate will always be emitted on - * client-side connections, unless that bit is not set in - * #GTlsClientConnection:validation-flags). - * - * Deprecated: Use g_tls_connection_set_database() instead - * - * Params: - * useSystemCertdb = whether to use the system certificate database - */ - public void setUseSystemCertdb(bool useSystemCertdb) - { - g_tls_connection_set_use_system_certdb(gTlsConnection, useSystemCertdb); - } - - /** - * Emitted during the TLS handshake after the peer certificate has - * been received. You can examine @peer_cert's certification path by - * calling g_tls_certificate_get_issuer() on it. - * - * For a client-side connection, @peer_cert is the server's - * certificate, and the signal will only be emitted if the - * certificate was not acceptable according to @conn's - * #GTlsClientConnection:validation_flags. If you would like the - * certificate to be accepted despite @errors, return %TRUE from the - * signal handler. Otherwise, if no handler accepts the certificate, - * the handshake will fail with %G_TLS_ERROR_BAD_CERTIFICATE. - * - * For a server-side connection, @peer_cert is the certificate - * presented by the client, if this was requested via the server's - * #GTlsServerConnection:authentication_mode. On the server side, - * the signal is always emitted when the client presents a - * certificate, and the certificate will only be accepted if a - * handler returns %TRUE. - * - * Note that if this signal is emitted as part of asynchronous I/O - * in the main thread, then you should not attempt to interact with - * the user before returning from the signal handler. If you want to - * let the user decide whether or not to accept the certificate, you - * would have to return %FALSE from the signal handler on the first - * attempt, and then after the connection attempt returns a - * %G_TLS_ERROR_BAD_CERTIFICATE, you can interact with the user, and - * if the user decides to accept the certificate, remember that fact, - * create a new connection, and return %TRUE from the signal handler - * the next time. - * - * If you are doing I/O in another thread, you do not - * need to worry about this, and can simply block in the signal - * handler until the UI thread returns an answer. - * - * Params: - * peerCert = the peer's #GTlsCertificate - * errors = the problems with @peer_cert. - * - * Returns: %TRUE to accept @peer_cert (which will also - * immediately end the signal emission). %FALSE to allow the signal - * emission to continue, which will cause the handshake to fail if - * no one else overrides it. - * - * Since: 2.28 - */ - gulong addOnAcceptCertificate(bool delegate(TlsCertificate, GTlsCertificateFlags, TlsConnection) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "accept-certificate", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/TlsDatabase.d b/generated/gtkd/gio/TlsDatabase.d deleted file mode 100644 index 4b6807b5f..000000000 --- a/generated/gtkd/gio/TlsDatabase.d +++ /dev/null @@ -1,532 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsDatabase; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.SocketConnectableIF; -private import gio.TlsCertificate; -private import gio.TlsInteraction; -private import gio.c.functions; -public import gio.c.types; -private import glib.ByteArray; -private import glib.ErrorG; -private import glib.GException; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * #GTlsDatabase is used to look up certificates and other information - * from a certificate or key store. It is an abstract base class which - * TLS library specific subtypes override. - * - * A #GTlsDatabase may be accessed from multiple threads by the TLS backend. - * All implementations are required to be fully thread-safe. - * - * Most common client applications will not directly interact with - * #GTlsDatabase. It is used internally by #GTlsConnection. - * - * Since: 2.30 - */ -public class TlsDatabase : ObjectG -{ - /** the main Gtk struct */ - protected GTlsDatabase* gTlsDatabase; - - /** Get the main Gtk struct */ - public GTlsDatabase* getTlsDatabaseStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTlsDatabase; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTlsDatabase; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTlsDatabase* gTlsDatabase, bool ownedRef = false) - { - this.gTlsDatabase = gTlsDatabase; - super(cast(GObject*)gTlsDatabase, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_tls_database_get_type(); - } - - /** - * Create a handle string for the certificate. The database will only be able - * to create a handle for certificates that originate from the database. In - * cases where the database cannot create a handle for a certificate, %NULL - * will be returned. - * - * This handle should be stable across various instances of the application, - * and between applications. If a certificate is modified in the database, - * then it is not guaranteed that this handle will continue to point to it. - * - * Params: - * certificate = certificate for which to create a handle. - * - * Returns: a newly allocated string containing the - * handle. - * - * Since: 2.30 - */ - public string createCertificateHandle(TlsCertificate certificate) - { - auto retStr = g_tls_database_create_certificate_handle(gTlsDatabase, (certificate is null) ? null : certificate.getTlsCertificateStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Look up a certificate by its handle. - * - * The handle should have been created by calling - * g_tls_database_create_certificate_handle() on a #GTlsDatabase object of - * the same TLS backend. The handle is designed to remain valid across - * instantiations of the database. - * - * If the handle is no longer valid, or does not point to a certificate in - * this database, then %NULL will be returned. - * - * This function can block, use g_tls_database_lookup_certificate_for_handle_async() to perform - * the lookup operation asynchronously. - * - * Params: - * handle = a certificate handle - * interaction = used to interact with the user if necessary - * flags = Flags which affect the lookup. - * cancellable = a #GCancellable, or %NULL - * - * Returns: a newly allocated - * #GTlsCertificate, or %NULL. Use g_object_unref() to release the certificate. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public TlsCertificate lookupCertificateForHandle(string handle, TlsInteraction interaction, GTlsDatabaseLookupFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_database_lookup_certificate_for_handle(gTlsDatabase, Str.toStringz(handle), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p, true); - } - - /** - * Asynchronously look up a certificate by its handle in the database. See - * g_tls_database_lookup_certificate_for_handle() for more information. - * - * Params: - * handle = a certificate handle - * interaction = used to interact with the user if necessary - * flags = Flags which affect the lookup. - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the operation completes - * userData = the data to pass to the callback function - * - * Since: 2.30 - */ - public void lookupCertificateForHandleAsync(string handle, TlsInteraction interaction, GTlsDatabaseLookupFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_tls_database_lookup_certificate_for_handle_async(gTlsDatabase, Str.toStringz(handle), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous lookup of a certificate by its handle. See - * g_tls_database_lookup_certificate_for_handle() for more information. - * - * If the handle is no longer valid, or does not point to a certificate in - * this database, then %NULL will be returned. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a newly allocated #GTlsCertificate object. - * Use g_object_unref() to release the certificate. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public TlsCertificate lookupCertificateForHandleFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_tls_database_lookup_certificate_for_handle_finish(gTlsDatabase, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p, true); - } - - /** - * Look up the issuer of @certificate in the database. - * - * The #GTlsCertificate:issuer property - * of @certificate is not modified, and the two certificates are not hooked - * into a chain. - * - * This function can block, use g_tls_database_lookup_certificate_issuer_async() to perform - * the lookup operation asynchronously. - * - * Params: - * certificate = a #GTlsCertificate - * interaction = used to interact with the user if necessary - * flags = flags which affect the lookup operation - * cancellable = a #GCancellable, or %NULL - * - * Returns: a newly allocated issuer #GTlsCertificate, - * or %NULL. Use g_object_unref() to release the certificate. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public TlsCertificate lookupCertificateIssuer(TlsCertificate certificate, TlsInteraction interaction, GTlsDatabaseLookupFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_database_lookup_certificate_issuer(gTlsDatabase, (certificate is null) ? null : certificate.getTlsCertificateStruct(), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p, true); - } - - /** - * Asynchronously look up the issuer of @certificate in the database. See - * g_tls_database_lookup_certificate_issuer() for more information. - * - * Params: - * certificate = a #GTlsCertificate - * interaction = used to interact with the user if necessary - * flags = flags which affect the lookup operation - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the operation completes - * userData = the data to pass to the callback function - * - * Since: 2.30 - */ - public void lookupCertificateIssuerAsync(TlsCertificate certificate, TlsInteraction interaction, GTlsDatabaseLookupFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_tls_database_lookup_certificate_issuer_async(gTlsDatabase, (certificate is null) ? null : certificate.getTlsCertificateStruct(), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous lookup issuer operation. See - * g_tls_database_lookup_certificate_issuer() for more information. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a newly allocated issuer #GTlsCertificate, - * or %NULL. Use g_object_unref() to release the certificate. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public TlsCertificate lookupCertificateIssuerFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_tls_database_lookup_certificate_issuer_finish(gTlsDatabase, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(TlsCertificate)(cast(GTlsCertificate*) __p, true); - } - - /** - * Look up certificates issued by this issuer in the database. - * - * This function can block, use g_tls_database_lookup_certificates_issued_by_async() to perform - * the lookup operation asynchronously. - * - * Params: - * issuerRawDn = a #GByteArray which holds the DER encoded issuer DN. - * interaction = used to interact with the user if necessary - * flags = Flags which affect the lookup operation. - * cancellable = a #GCancellable, or %NULL - * - * Returns: a newly allocated list of #GTlsCertificate - * objects. Use g_object_unref() on each certificate, and g_list_free() on the release the list. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public ListG lookupCertificatesIssuedBy(ByteArray issuerRawDn, TlsInteraction interaction, GTlsDatabaseLookupFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_database_lookup_certificates_issued_by(gTlsDatabase, (issuerRawDn is null) ? null : issuerRawDn.getByteArrayStruct(), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Asynchronously look up certificates issued by this issuer in the database. See - * g_tls_database_lookup_certificates_issued_by() for more information. - * - * The database may choose to hold a reference to the issuer byte array for the duration - * of of this asynchronous operation. The byte array should not be modified during - * this time. - * - * Params: - * issuerRawDn = a #GByteArray which holds the DER encoded issuer DN. - * interaction = used to interact with the user if necessary - * flags = Flags which affect the lookup operation. - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the operation completes - * userData = the data to pass to the callback function - * - * Since: 2.30 - */ - public void lookupCertificatesIssuedByAsync(ByteArray issuerRawDn, TlsInteraction interaction, GTlsDatabaseLookupFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_tls_database_lookup_certificates_issued_by_async(gTlsDatabase, (issuerRawDn is null) ? null : issuerRawDn.getByteArrayStruct(), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous lookup of certificates. See - * g_tls_database_lookup_certificates_issued_by() for more information. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a newly allocated list of #GTlsCertificate - * objects. Use g_object_unref() on each certificate, and g_list_free() on the release the list. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public ListG lookupCertificatesIssuedByFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_tls_database_lookup_certificates_issued_by_finish(gTlsDatabase, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Determines the validity of a certificate chain after looking up and - * adding any missing certificates to the chain. - * - * @chain is a chain of #GTlsCertificate objects each pointing to the next - * certificate in the chain by its #GTlsCertificate:issuer property. The chain may initially - * consist of one or more certificates. After the verification process is - * complete, @chain may be modified by adding missing certificates, or removing - * extra certificates. If a certificate anchor was found, then it is added to - * the @chain. - * - * @purpose describes the purpose (or usage) for which the certificate - * is being used. Typically @purpose will be set to #G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER - * which means that the certificate is being used to authenticate a server - * (and we are acting as the client). - * - * The @identity is used to ensure the server certificate is valid for - * the expected peer identity. If the identity does not match the - * certificate, %G_TLS_CERTIFICATE_BAD_IDENTITY will be set in the - * return value. If @identity is %NULL, that bit will never be set in - * the return value. The peer identity may also be used to check for - * pinned certificates (trust exceptions) in the database. These may - * override the normal verification process on a host-by-host basis. - * - * Currently there are no @flags, and %G_TLS_DATABASE_VERIFY_NONE should be - * used. - * - * If @chain is found to be valid, then the return value will be 0. If - * @chain is found to be invalid, then the return value will indicate - * the problems found. If the function is unable to determine whether - * @chain is valid or not (eg, because @cancellable is triggered - * before it completes) then the return value will be - * %G_TLS_CERTIFICATE_GENERIC_ERROR and @error will be set - * accordingly. @error is not set when @chain is successfully analyzed - * but found to be invalid. - * - * This function can block, use g_tls_database_verify_chain_async() to perform - * the verification operation asynchronously. - * - * Params: - * chain = a #GTlsCertificate chain - * purpose = the purpose that this certificate chain will be used for. - * identity = the expected peer identity - * interaction = used to interact with the user if necessary - * flags = additional verify flags - * cancellable = a #GCancellable, or %NULL - * - * Returns: the appropriate #GTlsCertificateFlags which represents the - * result of verification. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public GTlsCertificateFlags verifyChain(TlsCertificate chain, string purpose, SocketConnectableIF identity, TlsInteraction interaction, GTlsDatabaseVerifyFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_database_verify_chain(gTlsDatabase, (chain is null) ? null : chain.getTlsCertificateStruct(), Str.toStringz(purpose), (identity is null) ? null : identity.getSocketConnectableStruct(), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously determines the validity of a certificate chain after - * looking up and adding any missing certificates to the chain. See - * g_tls_database_verify_chain() for more information. - * - * Params: - * chain = a #GTlsCertificate chain - * purpose = the purpose that this certificate chain will be used for. - * identity = the expected peer identity - * interaction = used to interact with the user if necessary - * flags = additional verify flags - * cancellable = a #GCancellable, or %NULL - * callback = callback to call when the operation completes - * userData = the data to pass to the callback function - * - * Since: 2.30 - */ - public void verifyChainAsync(TlsCertificate chain, string purpose, SocketConnectableIF identity, TlsInteraction interaction, GTlsDatabaseVerifyFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_tls_database_verify_chain_async(gTlsDatabase, (chain is null) ? null : chain.getTlsCertificateStruct(), Str.toStringz(purpose), (identity is null) ? null : identity.getSocketConnectableStruct(), (interaction is null) ? null : interaction.getTlsInteractionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finish an asynchronous verify chain operation. See - * g_tls_database_verify_chain() for more information. - * - * If @chain is found to be valid, then the return value will be 0. If - * @chain is found to be invalid, then the return value will indicate - * the problems found. If the function is unable to determine whether - * @chain is valid or not (eg, because @cancellable is triggered - * before it completes) then the return value will be - * %G_TLS_CERTIFICATE_GENERIC_ERROR and @error will be set - * accordingly. @error is not set when @chain is successfully analyzed - * but found to be invalid. - * - * Params: - * result = a #GAsyncResult. - * - * Returns: the appropriate #GTlsCertificateFlags which represents the - * result of verification. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public GTlsCertificateFlags verifyChainFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_tls_database_verify_chain_finish(gTlsDatabase, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/TlsFileDatabaseIF.d b/generated/gtkd/gio/TlsFileDatabaseIF.d deleted file mode 100644 index 3460d198e..000000000 --- a/generated/gtkd/gio/TlsFileDatabaseIF.d +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsFileDatabaseIF; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import gobject.ObjectG; - - -/** - * #GTlsFileDatabase is implemented by #GTlsDatabase objects which load - * their certificate information from a file. It is an interface which - * TLS library specific subtypes implement. - * - * Since: 2.30 - */ -public interface TlsFileDatabaseIF{ - /** Get the main Gtk struct */ - public GTlsFileDatabase* getTlsFileDatabaseStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_tls_file_database_get_type(); - } -} diff --git a/generated/gtkd/gio/TlsFileDatabaseT.d b/generated/gtkd/gio/TlsFileDatabaseT.d deleted file mode 100644 index de9855820..000000000 --- a/generated/gtkd/gio/TlsFileDatabaseT.d +++ /dev/null @@ -1,53 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsFileDatabaseT; - -public import gio.c.functions; -public import gio.c.types; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import gobject.ObjectG; - - -/** - * #GTlsFileDatabase is implemented by #GTlsDatabase objects which load - * their certificate information from a file. It is an interface which - * TLS library specific subtypes implement. - * - * Since: 2.30 - */ -public template TlsFileDatabaseT(TStruct) -{ - /** Get the main Gtk struct */ - public GTlsFileDatabase* getTlsFileDatabaseStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GTlsFileDatabase*)getStruct(); - } - -} diff --git a/generated/gtkd/gio/TlsInteraction.d b/generated/gtkd/gio/TlsInteraction.d deleted file mode 100644 index 754db08db..000000000 --- a/generated/gtkd/gio/TlsInteraction.d +++ /dev/null @@ -1,393 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsInteraction; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.TlsConnection; -private import gio.TlsPassword; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * #GTlsInteraction provides a mechanism for the TLS connection and database - * code to interact with the user. It can be used to ask the user for passwords. - * - * To use a #GTlsInteraction with a TLS connection use - * g_tls_connection_set_interaction(). - * - * Callers should instantiate a derived class that implements the various - * interaction methods to show the required dialogs. - * - * Callers should use the 'invoke' functions like - * g_tls_interaction_invoke_ask_password() to run interaction methods. These - * functions make sure that the interaction is invoked in the main loop - * and not in the current thread, if the current thread is not running the - * main loop. - * - * Derived classes can choose to implement whichever interactions methods they'd - * like to support by overriding those virtual methods in their class - * initialization function. Any interactions not implemented will return - * %G_TLS_INTERACTION_UNHANDLED. If a derived class implements an async method, - * it must also implement the corresponding finish method. - * - * Since: 2.30 - */ -public class TlsInteraction : ObjectG -{ - /** the main Gtk struct */ - protected GTlsInteraction* gTlsInteraction; - - /** Get the main Gtk struct */ - public GTlsInteraction* getTlsInteractionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTlsInteraction; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTlsInteraction; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTlsInteraction* gTlsInteraction, bool ownedRef = false) - { - this.gTlsInteraction = gTlsInteraction; - super(cast(GObject*)gTlsInteraction, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_tls_interaction_get_type(); - } - - /** - * Run synchronous interaction to ask the user for a password. In general, - * g_tls_interaction_invoke_ask_password() should be used instead of this - * function. - * - * Derived subclasses usually implement a password prompt, although they may - * also choose to provide a password from elsewhere. The @password value will - * be filled in and then @callback will be called. Alternatively the user may - * abort this password request, which will usually abort the TLS connection. - * - * If the interaction is cancelled by the cancellation object, or by the - * user then %G_TLS_INTERACTION_FAILED will be returned with an error that - * contains a %G_IO_ERROR_CANCELLED error code. Certain implementations may - * not support immediate cancellation. - * - * Params: - * password = a #GTlsPassword object - * cancellable = an optional #GCancellable cancellation object - * - * Returns: The status of the ask password interaction. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public GTlsInteractionResult askPassword(TlsPassword password, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_interaction_ask_password(gTlsInteraction, (password is null) ? null : password.getTlsPasswordStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Run asynchronous interaction to ask the user for a password. In general, - * g_tls_interaction_invoke_ask_password() should be used instead of this - * function. - * - * Derived subclasses usually implement a password prompt, although they may - * also choose to provide a password from elsewhere. The @password value will - * be filled in and then @callback will be called. Alternatively the user may - * abort this password request, which will usually abort the TLS connection. - * - * If the interaction is cancelled by the cancellation object, or by the - * user then %G_TLS_INTERACTION_FAILED will be returned with an error that - * contains a %G_IO_ERROR_CANCELLED error code. Certain implementations may - * not support immediate cancellation. - * - * Certain implementations may not support immediate cancellation. - * - * Params: - * password = a #GTlsPassword object - * cancellable = an optional #GCancellable cancellation object - * callback = will be called when the interaction completes - * userData = data to pass to the @callback - * - * Since: 2.30 - */ - public void askPasswordAsync(TlsPassword password, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_tls_interaction_ask_password_async(gTlsInteraction, (password is null) ? null : password.getTlsPasswordStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Complete an ask password user interaction request. This should be once - * the g_tls_interaction_ask_password_async() completion callback is called. - * - * If %G_TLS_INTERACTION_HANDLED is returned, then the #GTlsPassword passed - * to g_tls_interaction_ask_password() will have its password filled in. - * - * If the interaction is cancelled by the cancellation object, or by the - * user then %G_TLS_INTERACTION_FAILED will be returned with an error that - * contains a %G_IO_ERROR_CANCELLED error code. - * - * Params: - * result = the result passed to the callback - * - * Returns: The status of the ask password interaction. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public GTlsInteractionResult askPasswordFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_tls_interaction_ask_password_finish(gTlsInteraction, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Invoke the interaction to ask the user for a password. It invokes this - * interaction in the main loop, specifically the #GMainContext returned by - * g_main_context_get_thread_default() when the interaction is created. This - * is called by called by #GTlsConnection or #GTlsDatabase to ask the user - * for a password. - * - * Derived subclasses usually implement a password prompt, although they may - * also choose to provide a password from elsewhere. The @password value will - * be filled in and then @callback will be called. Alternatively the user may - * abort this password request, which will usually abort the TLS connection. - * - * The implementation can either be a synchronous (eg: modal dialog) or an - * asynchronous one (eg: modeless dialog). This function will take care of - * calling which ever one correctly. - * - * If the interaction is cancelled by the cancellation object, or by the - * user then %G_TLS_INTERACTION_FAILED will be returned with an error that - * contains a %G_IO_ERROR_CANCELLED error code. Certain implementations may - * not support immediate cancellation. - * - * Params: - * password = a #GTlsPassword object - * cancellable = an optional #GCancellable cancellation object - * - * Returns: The status of the ask password interaction. - * - * Since: 2.30 - * - * Throws: GException on failure. - */ - public GTlsInteractionResult invokeAskPassword(TlsPassword password, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_interaction_invoke_ask_password(gTlsInteraction, (password is null) ? null : password.getTlsPasswordStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Invoke the interaction to ask the user to choose a certificate to - * use with the connection. It invokes this interaction in the main - * loop, specifically the #GMainContext returned by - * g_main_context_get_thread_default() when the interaction is - * created. This is called by called by #GTlsConnection when the peer - * requests a certificate during the handshake. - * - * Derived subclasses usually implement a certificate selector, - * although they may also choose to provide a certificate from - * elsewhere. Alternatively the user may abort this certificate - * request, which may or may not abort the TLS connection. - * - * The implementation can either be a synchronous (eg: modal dialog) or an - * asynchronous one (eg: modeless dialog). This function will take care of - * calling which ever one correctly. - * - * If the interaction is cancelled by the cancellation object, or by the - * user then %G_TLS_INTERACTION_FAILED will be returned with an error that - * contains a %G_IO_ERROR_CANCELLED error code. Certain implementations may - * not support immediate cancellation. - * - * Params: - * connection = a #GTlsConnection object - * flags = flags providing more information about the request - * cancellable = an optional #GCancellable cancellation object - * - * Returns: The status of the certificate request interaction. - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public GTlsInteractionResult invokeRequestCertificate(TlsConnection connection, GTlsCertificateRequestFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_interaction_invoke_request_certificate(gTlsInteraction, (connection is null) ? null : connection.getTlsConnectionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Run synchronous interaction to ask the user to choose a certificate to use - * with the connection. In general, g_tls_interaction_invoke_request_certificate() - * should be used instead of this function. - * - * Derived subclasses usually implement a certificate selector, although they may - * also choose to provide a certificate from elsewhere. Alternatively the user may - * abort this certificate request, which will usually abort the TLS connection. - * - * If %G_TLS_INTERACTION_HANDLED is returned, then the #GTlsConnection - * passed to g_tls_interaction_request_certificate() will have had its - * #GTlsConnection:certificate filled in. - * - * If the interaction is cancelled by the cancellation object, or by the - * user then %G_TLS_INTERACTION_FAILED will be returned with an error that - * contains a %G_IO_ERROR_CANCELLED error code. Certain implementations may - * not support immediate cancellation. - * - * Params: - * connection = a #GTlsConnection object - * flags = flags providing more information about the request - * cancellable = an optional #GCancellable cancellation object - * - * Returns: The status of the request certificate interaction. - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public GTlsInteractionResult requestCertificate(TlsConnection connection, GTlsCertificateRequestFlags flags, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_tls_interaction_request_certificate(gTlsInteraction, (connection is null) ? null : connection.getTlsConnectionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Run asynchronous interaction to ask the user for a certificate to use with - * the connection. In general, g_tls_interaction_invoke_request_certificate() should - * be used instead of this function. - * - * Derived subclasses usually implement a certificate selector, although they may - * also choose to provide a certificate from elsewhere. @callback will be called - * when the operation completes. Alternatively the user may abort this certificate - * request, which will usually abort the TLS connection. - * - * Params: - * connection = a #GTlsConnection object - * flags = flags providing more information about the request - * cancellable = an optional #GCancellable cancellation object - * callback = will be called when the interaction completes - * userData = data to pass to the @callback - * - * Since: 2.40 - */ - public void requestCertificateAsync(TlsConnection connection, GTlsCertificateRequestFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_tls_interaction_request_certificate_async(gTlsInteraction, (connection is null) ? null : connection.getTlsConnectionStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Complete a request certificate user interaction request. This should be once - * the g_tls_interaction_request_certificate_async() completion callback is called. - * - * If %G_TLS_INTERACTION_HANDLED is returned, then the #GTlsConnection - * passed to g_tls_interaction_request_certificate_async() will have had its - * #GTlsConnection:certificate filled in. - * - * If the interaction is cancelled by the cancellation object, or by the - * user then %G_TLS_INTERACTION_FAILED will be returned with an error that - * contains a %G_IO_ERROR_CANCELLED error code. - * - * Params: - * result = the result passed to the callback - * - * Returns: The status of the request certificate interaction. - * - * Since: 2.40 - * - * Throws: GException on failure. - */ - public GTlsInteractionResult requestCertificateFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_tls_interaction_request_certificate_finish(gTlsInteraction, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/TlsPassword.d b/generated/gtkd/gio/TlsPassword.d deleted file mode 100644 index ddf93d4e0..000000000 --- a/generated/gtkd/gio/TlsPassword.d +++ /dev/null @@ -1,237 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsPassword; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Holds a password used in TLS. - * - * Since: 2.30 - */ -public class TlsPassword : ObjectG -{ - /** the main Gtk struct */ - protected GTlsPassword* gTlsPassword; - - /** Get the main Gtk struct */ - public GTlsPassword* getTlsPasswordStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTlsPassword; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gTlsPassword; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTlsPassword* gTlsPassword, bool ownedRef = false) - { - this.gTlsPassword = gTlsPassword; - super(cast(GObject*)gTlsPassword, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_tls_password_get_type(); - } - - /** - * Create a new #GTlsPassword object. - * - * Params: - * flags = the password flags - * description = description of what the password is for - * - * Returns: The newly allocated password object - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GTlsPasswordFlags flags, string description) - { - auto __p = g_tls_password_new(flags, Str.toStringz(description)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GTlsPassword*) __p, true); - } - - /** - * Get a description string about what the password will be used for. - * - * Returns: The description of the password. - * - * Since: 2.30 - */ - public string getDescription() - { - return Str.toString(g_tls_password_get_description(gTlsPassword)); - } - - /** - * Get flags about the password. - * - * Returns: The flags about the password. - * - * Since: 2.30 - */ - public GTlsPasswordFlags getFlags() - { - return g_tls_password_get_flags(gTlsPassword); - } - - /** - * Get the password value. If @length is not %NULL then it will be - * filled in with the length of the password value. (Note that the - * password value is not nul-terminated, so you can only pass %NULL - * for @length in contexts where you know the password will have a - * certain fixed length.) - * - * Returns: The password value (owned by the password object). - * - * Since: 2.30 - */ - public char[] getValue() - { - size_t length; - - auto __p = g_tls_password_get_value(gTlsPassword, &length); - - return __p[0 .. length]; - } - - /** - * Get a user readable translated warning. Usually this warning is a - * representation of the password flags returned from - * g_tls_password_get_flags(). - * - * Returns: The warning. - * - * Since: 2.30 - */ - public string getWarning() - { - return Str.toString(g_tls_password_get_warning(gTlsPassword)); - } - - /** - * Set a description string about what the password will be used for. - * - * Params: - * description = The description of the password - * - * Since: 2.30 - */ - public void setDescription(string description) - { - g_tls_password_set_description(gTlsPassword, Str.toStringz(description)); - } - - /** - * Set flags about the password. - * - * Params: - * flags = The flags about the password - * - * Since: 2.30 - */ - public void setFlags(GTlsPasswordFlags flags) - { - g_tls_password_set_flags(gTlsPassword, flags); - } - - /** - * Set the value for this password. The @value will be copied by the password - * object. - * - * Specify the @length, for a non-nul-terminated password. Pass -1 as - * @length if using a nul-terminated password, and @length will be - * calculated automatically. (Note that the terminating nul is not - * considered part of the password in this case.) - * - * Params: - * value = the new password value - * - * Since: 2.30 - */ - public void setValue(char[] value) - { - g_tls_password_set_value(gTlsPassword, value.ptr, cast(ptrdiff_t)value.length); - } - - /** - * Provide the value for this password. - * - * The @value will be owned by the password object, and later freed using - * the @destroy function callback. - * - * Specify the @length, for a non-nul-terminated password. Pass -1 as - * @length if using a nul-terminated password, and @length will be - * calculated automatically. (Note that the terminating nul is not - * considered part of the password in this case.) - * - * Params: - * value = the value for the password - * destroy = a function to use to free the password. - * - * Since: 2.30 - */ - public void setValueFull(char[] value, GDestroyNotify destroy) - { - g_tls_password_set_value_full(gTlsPassword, value.ptr, cast(ptrdiff_t)value.length, destroy); - } - - /** - * Set a user readable translated warning. Usually this warning is a - * representation of the password flags returned from - * g_tls_password_get_flags(). - * - * Params: - * warning = The user readable warning - * - * Since: 2.30 - */ - public void setWarning(string warning) - { - g_tls_password_set_warning(gTlsPassword, Str.toStringz(warning)); - } -} diff --git a/generated/gtkd/gio/TlsServerConnectionIF.d b/generated/gtkd/gio/TlsServerConnectionIF.d deleted file mode 100644 index 41524a89c..000000000 --- a/generated/gtkd/gio/TlsServerConnectionIF.d +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsServerConnectionIF; - -private import gio.IOStream; -private import gio.TlsCertificate; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * #GTlsServerConnection is the server-side subclass of #GTlsConnection, - * representing a server-side TLS connection. - * - * Since: 2.28 - */ -public interface TlsServerConnectionIF{ - /** Get the main Gtk struct */ - public GTlsServerConnection* getTlsServerConnectionStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_tls_server_connection_get_type(); - } -} diff --git a/generated/gtkd/gio/TlsServerConnectionT.d b/generated/gtkd/gio/TlsServerConnectionT.d deleted file mode 100644 index 5b6665500..000000000 --- a/generated/gtkd/gio/TlsServerConnectionT.d +++ /dev/null @@ -1,53 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.TlsServerConnectionT; - -public import gio.IOStream; -public import gio.TlsCertificate; -public import gio.c.functions; -public import gio.c.types; -public import glib.ConstructionException; -public import glib.ErrorG; -public import glib.GException; -public import gobject.ObjectG; - - -/** - * #GTlsServerConnection is the server-side subclass of #GTlsConnection, - * representing a server-side TLS connection. - * - * Since: 2.28 - */ -public template TlsServerConnectionT(TStruct) -{ - /** Get the main Gtk struct */ - public GTlsServerConnection* getTlsServerConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GTlsServerConnection*)getStruct(); - } - -} diff --git a/generated/gtkd/gio/UnixConnection.d b/generated/gtkd/gio/UnixConnection.d deleted file mode 100644 index 00f60de6e..000000000 --- a/generated/gtkd/gio/UnixConnection.d +++ /dev/null @@ -1,345 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixConnection; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.Credentials; -private import gio.SocketConnection; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * This is the subclass of #GSocketConnection that is created - * for UNIX domain sockets. - * - * It contains functions to do some of the UNIX socket specific - * functionality like passing file descriptors. - * - * Note that `` belongs to the UNIX-specific - * GIO interfaces, thus you have to use the `gio-unix-2.0.pc` - * pkg-config file when using it. - * - * Since: 2.22 - */ -public class UnixConnection : SocketConnection -{ - /** the main Gtk struct */ - protected GUnixConnection* gUnixConnection; - - /** Get the main Gtk struct */ - public GUnixConnection* getUnixConnectionStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixConnection; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixConnection; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixConnection* gUnixConnection, bool ownedRef = false) - { - this.gUnixConnection = gUnixConnection; - super(cast(GSocketConnection*)gUnixConnection, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_unix_connection_get_type(); - } - - /** - * Receives credentials from the sending end of the connection. The - * sending end has to call g_unix_connection_send_credentials() (or - * similar) for this to work. - * - * As well as reading the credentials this also reads (and discards) a - * single byte from the stream, as this is required for credentials - * passing to work on some implementations. - * - * This method can be expected to be available on the following platforms: - * - * - Linux since GLib 2.26 - * - FreeBSD since GLib 2.26 - * - GNU/kFreeBSD since GLib 2.36 - * - Solaris, Illumos and OpenSolaris since GLib 2.40 - * - GNU/Hurd since GLib 2.40 - * - * Other ways to exchange credentials with a foreign peer includes the - * #GUnixCredentialsMessage type and g_socket_get_credentials() function. - * - * Params: - * cancellable = A #GCancellable or %NULL. - * - * Returns: Received credentials on success (free with - * g_object_unref()), %NULL if @error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public Credentials receiveCredentials(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_unix_connection_receive_credentials(gUnixConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Credentials)(cast(GCredentials*) __p, true); - } - - /** - * Asynchronously receive credentials. - * - * For more details, see g_unix_connection_receive_credentials() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. You can then call - * g_unix_connection_receive_credentials_finish() to get the result of the operation. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.32 - */ - public void receiveCredentialsAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_unix_connection_receive_credentials_async(gUnixConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous receive credentials operation started with - * g_unix_connection_receive_credentials_async(). - * - * Params: - * result = a #GAsyncResult. - * - * Returns: a #GCredentials, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public Credentials receiveCredentialsFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_unix_connection_receive_credentials_finish(gUnixConnection, (result is null) ? null : result.getAsyncResultStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Credentials)(cast(GCredentials*) __p, true); - } - - /** - * Receives a file descriptor from the sending end of the connection. - * The sending end has to call g_unix_connection_send_fd() for this - * to work. - * - * As well as reading the fd this also reads a single byte from the - * stream, as this is required for fd passing to work on some - * implementations. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore - * - * Returns: a file descriptor on success, -1 on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public int receiveFd(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_unix_connection_receive_fd(gUnixConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Passes the credentials of the current user the receiving side - * of the connection. The receiving end has to call - * g_unix_connection_receive_credentials() (or similar) to accept the - * credentials. - * - * As well as sending the credentials this also writes a single NUL - * byte to the stream, as this is required for credentials passing to - * work on some implementations. - * - * This method can be expected to be available on the following platforms: - * - * - Linux since GLib 2.26 - * - FreeBSD since GLib 2.26 - * - GNU/kFreeBSD since GLib 2.36 - * - Solaris, Illumos and OpenSolaris since GLib 2.40 - * - GNU/Hurd since GLib 2.40 - * - * Other ways to exchange credentials with a foreign peer includes the - * #GUnixCredentialsMessage type and g_socket_get_credentials() function. - * - * Params: - * cancellable = A #GCancellable or %NULL. - * - * Returns: %TRUE on success, %FALSE if @error is set. - * - * Since: 2.26 - * - * Throws: GException on failure. - */ - public bool sendCredentials(Cancellable cancellable) - { - GError* err = null; - - auto __p = g_unix_connection_send_credentials(gUnixConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Asynchronously send credentials. - * - * For more details, see g_unix_connection_send_credentials() which is - * the synchronous version of this call. - * - * When the operation is finished, @callback will be called. You can then call - * g_unix_connection_send_credentials_finish() to get the result of the operation. - * - * Params: - * cancellable = optional #GCancellable object, %NULL to ignore. - * callback = a #GAsyncReadyCallback to call when the request is satisfied - * userData = the data to pass to callback function - * - * Since: 2.32 - */ - public void sendCredentialsAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_unix_connection_send_credentials_async(gUnixConnection, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes an asynchronous send credentials operation started with - * g_unix_connection_send_credentials_async(). - * - * Params: - * result = a #GAsyncResult. - * - * Returns: %TRUE if the operation was successful, otherwise %FALSE. - * - * Since: 2.32 - * - * Throws: GException on failure. - */ - public bool sendCredentialsFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_unix_connection_send_credentials_finish(gUnixConnection, (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Passes a file descriptor to the receiving side of the - * connection. The receiving end has to call g_unix_connection_receive_fd() - * to accept the file descriptor. - * - * As well as sending the fd this also writes a single byte to the - * stream, as this is required for fd passing to work on some - * implementations. - * - * Params: - * fd = a file descriptor - * cancellable = optional #GCancellable object, %NULL to ignore. - * - * Returns: a %TRUE on success, %NULL on error. - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool sendFd(int fd, Cancellable cancellable) - { - GError* err = null; - - auto __p = g_unix_connection_send_fd(gUnixConnection, fd, (cancellable is null) ? null : cancellable.getCancellableStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } -} diff --git a/generated/gtkd/gio/UnixCredentialsMessage.d b/generated/gtkd/gio/UnixCredentialsMessage.d deleted file mode 100644 index 2c993f6e7..000000000 --- a/generated/gtkd/gio/UnixCredentialsMessage.d +++ /dev/null @@ -1,160 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixCredentialsMessage; - -private import gio.Credentials; -private import gio.SocketControlMessage; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * This #GSocketControlMessage contains a #GCredentials instance. It - * may be sent using g_socket_send_message() and received using - * g_socket_receive_message() over UNIX sockets (ie: sockets in the - * %G_SOCKET_FAMILY_UNIX family). - * - * For an easier way to send and receive credentials over - * stream-oriented UNIX sockets, see - * g_unix_connection_send_credentials() and - * g_unix_connection_receive_credentials(). To receive credentials of - * a foreign process connected to a socket, use - * g_socket_get_credentials(). - * - * Since: 2.26 - */ -public class UnixCredentialsMessage : SocketControlMessage -{ - /** the main Gtk struct */ - protected GUnixCredentialsMessage* gUnixCredentialsMessage; - - /** Get the main Gtk struct */ - public GUnixCredentialsMessage* getUnixCredentialsMessageStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixCredentialsMessage; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixCredentialsMessage; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixCredentialsMessage* gUnixCredentialsMessage, bool ownedRef = false) - { - this.gUnixCredentialsMessage = gUnixCredentialsMessage; - super(cast(GSocketControlMessage*)gUnixCredentialsMessage, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_unix_credentials_message_get_type(); - } - - /** - * Creates a new #GUnixCredentialsMessage with credentials matching the current processes. - * - * Returns: a new #GUnixCredentialsMessage - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_unix_credentials_message_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GUnixCredentialsMessage*) __p, true); - } - - /** - * Creates a new #GUnixCredentialsMessage holding @credentials. - * - * Params: - * credentials = A #GCredentials object. - * - * Returns: a new #GUnixCredentialsMessage - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(Credentials credentials) - { - auto __p = g_unix_credentials_message_new_with_credentials((credentials is null) ? null : credentials.getCredentialsStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_credentials"); - } - - this(cast(GUnixCredentialsMessage*) __p, true); - } - - /** - * Checks if passing #GCredentials on a #GSocket is supported on this platform. - * - * Returns: %TRUE if supported, %FALSE otherwise - * - * Since: 2.26 - */ - public static bool isSupported() - { - return g_unix_credentials_message_is_supported() != 0; - } - - /** - * Gets the credentials stored in @message. - * - * Returns: A #GCredentials instance. Do not free, it is owned by @message. - * - * Since: 2.26 - */ - public Credentials getCredentials() - { - auto __p = g_unix_credentials_message_get_credentials(gUnixCredentialsMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Credentials)(cast(GCredentials*) __p); - } -} diff --git a/generated/gtkd/gio/UnixFDList.d b/generated/gtkd/gio/UnixFDList.d deleted file mode 100644 index b3c764570..000000000 --- a/generated/gtkd/gio/UnixFDList.d +++ /dev/null @@ -1,284 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixFDList; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * A #GUnixFDList contains a list of file descriptors. It owns the file - * descriptors that it contains, closing them when finalized. - * - * It may be wrapped in a #GUnixFDMessage and sent over a #GSocket in - * the %G_SOCKET_FAMILY_UNIX family by using g_socket_send_message() - * and received using g_socket_receive_message(). - * - * Note that `` belongs to the UNIX-specific GIO - * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config - * file when using it. - */ -public class UnixFDList : ObjectG -{ - /** the main Gtk struct */ - protected GUnixFDList* gUnixFDList; - - /** Get the main Gtk struct */ - public GUnixFDList* getUnixFDListStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixFDList; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixFDList; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixFDList* gUnixFDList, bool ownedRef = false) - { - this.gUnixFDList = gUnixFDList; - super(cast(GObject*)gUnixFDList, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_unix_fd_list_get_type(); - } - - /** - * Creates a new #GUnixFDList containing no file descriptors. - * - * Returns: a new #GUnixFDList - * - * Since: 2.24 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_unix_fd_list_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GUnixFDList*) __p, true); - } - - /** - * Creates a new #GUnixFDList containing the file descriptors given in - * @fds. The file descriptors become the property of the new list and - * may no longer be used by the caller. The array itself is owned by - * the caller. - * - * Each file descriptor in the array should be set to close-on-exec. - * - * If @n_fds is -1 then @fds must be terminated with -1. - * - * Params: - * fds = the initial list of file descriptors - * - * Returns: a new #GUnixFDList - * - * Since: 2.24 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int[] fds) - { - auto __p = g_unix_fd_list_new_from_array(fds.ptr, cast(int)fds.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new_from_array"); - } - - this(cast(GUnixFDList*) __p, true); - } - - /** - * Adds a file descriptor to @list. - * - * The file descriptor is duplicated using dup(). You keep your copy - * of the descriptor and the copy contained in @list will be closed - * when @list is finalized. - * - * A possible cause of failure is exceeding the per-process or - * system-wide file descriptor limit. - * - * The index of the file descriptor in the list is returned. If you use - * this index with g_unix_fd_list_get() then you will receive back a - * duplicated copy of the same file descriptor. - * - * Params: - * fd = a valid open file descriptor - * - * Returns: the index of the appended fd in case of success, else -1 - * (and @error is set) - * - * Since: 2.24 - * - * Throws: GException on failure. - */ - public int append(int fd) - { - GError* err = null; - - auto __p = g_unix_fd_list_append(gUnixFDList, fd, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets a file descriptor out of @list. - * - * @index_ specifies the index of the file descriptor to get. It is a - * programmer error for @index_ to be out of range; see - * g_unix_fd_list_get_length(). - * - * The file descriptor is duplicated using dup() and set as - * close-on-exec before being returned. You must call close() on it - * when you are done. - * - * A possible cause of failure is exceeding the per-process or - * system-wide file descriptor limit. - * - * Params: - * index = the index into the list - * - * Returns: the file descriptor, or -1 in case of error - * - * Since: 2.24 - * - * Throws: GException on failure. - */ - public int get(int index) - { - GError* err = null; - - auto __p = g_unix_fd_list_get(gUnixFDList, index, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the length of @list (ie: the number of file descriptors - * contained within). - * - * Returns: the length of @list - * - * Since: 2.24 - */ - public int getLength() - { - return g_unix_fd_list_get_length(gUnixFDList); - } - - /** - * Returns the array of file descriptors that is contained in this - * object. - * - * After this call, the descriptors remain the property of @list. The - * caller must not close them and must not free the array. The array is - * valid only until @list is changed in any way. - * - * If @length is non-%NULL then it is set to the number of file - * descriptors in the returned array. The returned array is also - * terminated with -1. - * - * This function never returns %NULL. In case there are no file - * descriptors contained in @list, an empty array is returned. - * - * Returns: an array of file - * descriptors - * - * Since: 2.24 - */ - public int[] peekFds() - { - int length; - - auto __p = g_unix_fd_list_peek_fds(gUnixFDList, &length); - - return __p[0 .. length]; - } - - /** - * Returns the array of file descriptors that is contained in this - * object. - * - * After this call, the descriptors are no longer contained in - * @list. Further calls will return an empty list (unless more - * descriptors have been added). - * - * The return result of this function must be freed with g_free(). - * The caller is also responsible for closing all of the file - * descriptors. The file descriptors in the array are set to - * close-on-exec. - * - * If @length is non-%NULL then it is set to the number of file - * descriptors in the returned array. The returned array is also - * terminated with -1. - * - * This function never returns %NULL. In case there are no file - * descriptors contained in @list, an empty array is returned. - * - * Returns: an array of file - * descriptors - * - * Since: 2.24 - */ - public int[] stealFds() - { - int length; - - auto __p = g_unix_fd_list_steal_fds(gUnixFDList, &length); - - return __p[0 .. length]; - } -} diff --git a/generated/gtkd/gio/UnixFDMessage.d b/generated/gtkd/gio/UnixFDMessage.d deleted file mode 100644 index 407f3230c..000000000 --- a/generated/gtkd/gio/UnixFDMessage.d +++ /dev/null @@ -1,219 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixFDMessage; - -private import gio.SocketControlMessage; -private import gio.UnixFDList; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ErrorG; -private import glib.GException; -private import gobject.ObjectG; - - -/** - * This #GSocketControlMessage contains a #GUnixFDList. - * It may be sent using g_socket_send_message() and received using - * g_socket_receive_message() over UNIX sockets (ie: sockets in the - * %G_SOCKET_FAMILY_UNIX family). The file descriptors are copied - * between processes by the kernel. - * - * For an easier way to send and receive file descriptors over - * stream-oriented UNIX sockets, see g_unix_connection_send_fd() and - * g_unix_connection_receive_fd(). - * - * Note that `` belongs to the UNIX-specific GIO - * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config - * file when using it. - */ -public class UnixFDMessage : SocketControlMessage -{ - /** the main Gtk struct */ - protected GUnixFDMessage* gUnixFDMessage; - - /** Get the main Gtk struct */ - public GUnixFDMessage* getUnixFDMessageStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixFDMessage; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixFDMessage; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixFDMessage* gUnixFDMessage, bool ownedRef = false) - { - this.gUnixFDMessage = gUnixFDMessage; - super(cast(GSocketControlMessage*)gUnixFDMessage, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_unix_fd_message_get_type(); - } - - /** - * Creates a new #GUnixFDMessage containing an empty file descriptor - * list. - * - * Returns: a new #GUnixFDMessage - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_unix_fd_message_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GUnixFDMessage*) __p, true); - } - - /** - * Creates a new #GUnixFDMessage containing @list. - * - * Params: - * fdList = a #GUnixFDList - * - * Returns: a new #GUnixFDMessage - * - * Since: 2.24 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(UnixFDList fdList) - { - auto __p = g_unix_fd_message_new_with_fd_list((fdList is null) ? null : fdList.getUnixFDListStruct()); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_fd_list"); - } - - this(cast(GUnixFDMessage*) __p, true); - } - - /** - * Adds a file descriptor to @message. - * - * The file descriptor is duplicated using dup(). You keep your copy - * of the descriptor and the copy contained in @message will be closed - * when @message is finalized. - * - * A possible cause of failure is exceeding the per-process or - * system-wide file descriptor limit. - * - * Params: - * fd = a valid open file descriptor - * - * Returns: %TRUE in case of success, else %FALSE (and @error is set) - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool appendFd(int fd) - { - GError* err = null; - - auto __p = g_unix_fd_message_append_fd(gUnixFDMessage, fd, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the #GUnixFDList contained in @message. This function does not - * return a reference to the caller, but the returned list is valid for - * the lifetime of @message. - * - * Returns: the #GUnixFDList from @message - * - * Since: 2.24 - */ - public UnixFDList getFdList() - { - auto __p = g_unix_fd_message_get_fd_list(gUnixFDMessage); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixFDList)(cast(GUnixFDList*) __p); - } - - /** - * Returns the array of file descriptors that is contained in this - * object. - * - * After this call, the descriptors are no longer contained in - * @message. Further calls will return an empty list (unless more - * descriptors have been added). - * - * The return result of this function must be freed with g_free(). - * The caller is also responsible for closing all of the file - * descriptors. - * - * If @length is non-%NULL then it is set to the number of file - * descriptors in the returned array. The returned array is also - * terminated with -1. - * - * This function never returns %NULL. In case there are no file - * descriptors contained in @message, an empty array is returned. - * - * Returns: an array of file - * descriptors - * - * Since: 2.22 - */ - public int[] stealFds() - { - int length; - - auto __p = g_unix_fd_message_steal_fds(gUnixFDMessage, &length); - - return __p[0 .. length]; - } -} diff --git a/generated/gtkd/gio/UnixInputStream.d b/generated/gtkd/gio/UnixInputStream.d deleted file mode 100644 index 2951188bd..000000000 --- a/generated/gtkd/gio/UnixInputStream.d +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixInputStream; - -private import gio.FileDescriptorBasedIF; -private import gio.FileDescriptorBasedT; -private import gio.InputStream; -private import gio.PollableInputStreamIF; -private import gio.PollableInputStreamT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GUnixInputStream implements #GInputStream for reading from a UNIX - * file descriptor, including asynchronous operations. (If the file - * descriptor refers to a socket or pipe, this will use poll() to do - * asynchronous I/O. If it refers to a regular file, it will fall back - * to doing asynchronous I/O in another thread.) - * - * Note that `` belongs to the UNIX-specific GIO - * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config - * file when using it. - */ -public class UnixInputStream : InputStream, FileDescriptorBasedIF, PollableInputStreamIF -{ - /** the main Gtk struct */ - protected GUnixInputStream* gUnixInputStream; - - /** Get the main Gtk struct */ - public GUnixInputStream* getUnixInputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixInputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixInputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixInputStream* gUnixInputStream, bool ownedRef = false) - { - this.gUnixInputStream = gUnixInputStream; - super(cast(GInputStream*)gUnixInputStream, ownedRef); - } - - // add the FileDescriptorBased capabilities - mixin FileDescriptorBasedT!(GUnixInputStream); - - // add the PollableInputStream capabilities - mixin PollableInputStreamT!(GUnixInputStream); - - - /** */ - public static GType getType() - { - return g_unix_input_stream_get_type(); - } - - /** - * Creates a new #GUnixInputStream for the given @fd. - * - * If @close_fd is %TRUE, the file descriptor will be closed - * when the stream is closed. - * - * Params: - * fd = a UNIX file descriptor - * closeFd = %TRUE to close the file descriptor when done - * - * Returns: a new #GUnixInputStream - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int fd, bool closeFd) - { - auto __p = g_unix_input_stream_new(fd, closeFd); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GUnixInputStream*) __p, true); - } - - /** - * Returns whether the file descriptor of @stream will be - * closed when the stream is closed. - * - * Returns: %TRUE if the file descriptor is closed when done - * - * Since: 2.20 - */ - public bool getCloseFd() - { - return g_unix_input_stream_get_close_fd(gUnixInputStream) != 0; - } - - /** - * Return the UNIX file descriptor that the stream reads from. - * - * Returns: The file descriptor of @stream - * - * Since: 2.20 - */ - public int getFd() - { - return g_unix_input_stream_get_fd(gUnixInputStream); - } - - /** - * Sets whether the file descriptor of @stream shall be closed - * when the stream is closed. - * - * Params: - * closeFd = %TRUE to close the file descriptor when done - * - * Since: 2.20 - */ - public void setCloseFd(bool closeFd) - { - g_unix_input_stream_set_close_fd(gUnixInputStream, closeFd); - } -} diff --git a/generated/gtkd/gio/UnixMountEntry.d b/generated/gtkd/gio/UnixMountEntry.d deleted file mode 100644 index 71c00c216..000000000 --- a/generated/gtkd/gio/UnixMountEntry.d +++ /dev/null @@ -1,419 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixMountEntry; - -private import gio.IconIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ListG; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Defines a Unix mount entry (e.g. /media/cdrom). - * This corresponds roughly to a mtab entry. - */ -public class UnixMountEntry -{ - /** the main Gtk struct */ - protected GUnixMountEntry* gUnixMountEntry; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GUnixMountEntry* getUnixMountEntryStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixMountEntry; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gUnixMountEntry; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixMountEntry* gUnixMountEntry, bool ownedRef = false) - { - this.gUnixMountEntry = gUnixMountEntry; - this.ownedRef = ownedRef; - } - - - /** */ - public static GType getType() - { - return g_unix_mount_entry_get_type(); - } - - /** - * Determines if @mount_path is considered an implementation of the - * OS. This is primarily used for hiding mountable and mounted volumes - * that only are used in the OS and has little to no relevance to the - * casual user. - * - * Params: - * mountPath = a mount path, e.g. `/media/disk` or `/usr` - * - * Returns: %TRUE if @mount_path is considered an implementation detail - * of the OS. - */ - public static bool isMountPathSystemInternal(string mountPath) - { - return g_unix_is_mount_path_system_internal(Str.toStringz(mountPath)) != 0; - } - - /** - * Gets a #GUnixMountEntry for a given mount path. If @time_read - * is set, it will be filled with a unix timestamp for checking - * if the mounts have changed since with g_unix_mounts_changed_since(). - * - * If more mounts have the same mount path, the last matching mount - * is returned. - * - * Params: - * mountPath = path for a possible unix mount. - * timeRead = guint64 to contain a timestamp. - * - * Returns: a #GUnixMountEntry. - */ - public static UnixMountEntry at(string mountPath, out ulong timeRead) - { - auto __p = g_unix_mount_at(Str.toStringz(mountPath), &timeRead); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixMountEntry)(cast(GUnixMountEntry*) __p, true); - } - - /** - * Compares two unix mounts. - * - * Params: - * mount2 = second #GUnixMountEntry to compare. - * - * Returns: 1, 0 or -1 if @mount1 is greater than, equal to, - * or less than @mount2, respectively. - */ - public int compare(UnixMountEntry mount2) - { - return g_unix_mount_compare(gUnixMountEntry, (mount2 is null) ? null : mount2.getUnixMountEntryStruct()); - } - - /** - * Frees a unix mount. - */ - public void free() - { - g_unix_mount_free(gUnixMountEntry); - } - - /** - * Gets the device path for a unix mount. - * - * Returns: a string containing the device path. - */ - public string getDevicePath() - { - return Str.toString(g_unix_mount_get_device_path(gUnixMountEntry)); - } - - /** - * Gets the filesystem type for the unix mount. - * - * Returns: a string containing the file system type. - */ - public string getFsType() - { - return Str.toString(g_unix_mount_get_fs_type(gUnixMountEntry)); - } - - /** - * Gets the mount path for a unix mount. - * - * Returns: the mount path for @mount_entry. - */ - public string getMountPath() - { - return Str.toString(g_unix_mount_get_mount_path(gUnixMountEntry)); - } - - /** - * Guesses whether a Unix mount can be ejected. - * - * Returns: %TRUE if @mount_entry is deemed to be ejectable. - */ - public bool guessCanEject() - { - return g_unix_mount_guess_can_eject(gUnixMountEntry) != 0; - } - - /** - * Guesses the icon of a Unix mount. - * - * Returns: a #GIcon - */ - public IconIF guessIcon() - { - auto __p = g_unix_mount_guess_icon(gUnixMountEntry); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Guesses the name of a Unix mount. - * The result is a translated string. - * - * Returns: A newly allocated string that must - * be freed with g_free() - */ - public string guessName() - { - auto retStr = g_unix_mount_guess_name(gUnixMountEntry); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Guesses whether a Unix mount should be displayed in the UI. - * - * Returns: %TRUE if @mount_entry is deemed to be displayable. - */ - public bool guessShouldDisplay() - { - return g_unix_mount_guess_should_display(gUnixMountEntry) != 0; - } - - /** - * Guesses the symbolic icon of a Unix mount. - * - * Returns: a #GIcon - * - * Since: 2.34 - */ - public IconIF guessSymbolicIcon() - { - auto __p = g_unix_mount_guess_symbolic_icon(gUnixMountEntry); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Checks if a unix mount is mounted read only. - * - * Returns: %TRUE if @mount_entry is read only. - */ - public bool isReadonly() - { - return g_unix_mount_is_readonly(gUnixMountEntry) != 0; - } - - /** - * Checks if a Unix mount is a system mount. This is the Boolean OR of - * g_unix_is_system_fs_type(), g_unix_is_system_device_path() and - * g_unix_is_mount_path_system_internal() on @mount_entry’s properties. - * - * The definition of what a ‘system’ mount entry is may change over time as new - * file system types and device paths are ignored. - * - * Returns: %TRUE if the unix mount is for a system path. - */ - public bool isSystemInternal() - { - return g_unix_mount_is_system_internal(gUnixMountEntry) != 0; - } - - /** - * Checks if the unix mount points have changed since a given unix time. - * - * Params: - * time = guint64 to contain a timestamp. - * - * Returns: %TRUE if the mount points have changed since @time. - */ - public static bool pointsChangedSince(ulong time) - { - return g_unix_mount_points_changed_since(time) != 0; - } - - /** - * Gets a #GList of #GUnixMountPoint containing the unix mount points. - * If @time_read is set, it will be filled with the mount timestamp, - * allowing for checking if the mounts have changed with - * g_unix_mount_points_changed_since(). - * - * Params: - * timeRead = guint64 to contain a timestamp. - * - * Returns: a #GList of the UNIX mountpoints. - */ - public static ListG mountPointsGet(out ulong timeRead) - { - auto __p = g_unix_mount_points_get(&timeRead); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Checks if the unix mounts have changed since a given unix time. - * - * Params: - * time = guint64 to contain a timestamp. - * - * Returns: %TRUE if the mounts have changed since @time. - */ - public static bool mountsChangedSince(ulong time) - { - return g_unix_mounts_changed_since(time) != 0; - } - - /** - * Gets a #GList of #GUnixMountEntry containing the unix mounts. - * If @time_read is set, it will be filled with the mount - * timestamp, allowing for checking if the mounts have changed - * with g_unix_mounts_changed_since(). - * - * Params: - * timeRead = guint64 to contain a timestamp, or %NULL - * - * Returns: a #GList of the UNIX mounts. - */ - public static ListG mountsGet(out ulong timeRead) - { - auto __p = g_unix_mounts_get(&timeRead); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Makes a copy of @mount_entry. - * - * Returns: a new #GUnixMountEntry - * - * Since: 2.54 - */ - public UnixMountEntry copy() - { - auto __p = g_unix_mount_copy(gUnixMountEntry); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixMountEntry)(cast(GUnixMountEntry*) __p, true); - } - - /** - * Gets a #GUnixMountEntry for a given file path. If @time_read - * is set, it will be filled with a unix timestamp for checking - * if the mounts have changed since with g_unix_mounts_changed_since(). - * - * If more mounts have the same mount path, the last matching mount - * is returned. - * - * Params: - * filePath = file path on some unix mount. - * timeRead = guint64 to contain a timestamp. - * - * Returns: a #GUnixMountEntry. - * - * Since: 2.52 - */ - public static UnixMountEntry mountFor(string filePath, out ulong timeRead) - { - auto __p = g_unix_mount_for(Str.toStringz(filePath), &timeRead); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixMountEntry)(cast(GUnixMountEntry*) __p, true); - } - - /** - * Gets a comma-separated list of mount options for the unix mount. For example, - * `rw,relatime,seclabel,data=ordered`. - * - * This is similar to g_unix_mount_point_get_options(), but it takes - * a #GUnixMountEntry as an argument. - * - * Returns: a string containing the options, or %NULL if not - * available. - * - * Since: 2.58 - */ - public string getOptions() - { - return Str.toString(g_unix_mount_get_options(gUnixMountEntry)); - } - - /** - * Gets the root of the mount within the filesystem. This is useful e.g. for - * mounts created by bind operation, or btrfs subvolumes. - * - * For example, the root path is equal to "/" for mount created by - * "mount /dev/sda1 /mnt/foo" and "/bar" for - * "mount --bind /mnt/foo/bar /mnt/bar". - * - * Returns: a string containing the root, or %NULL if not supported. - * - * Since: 2.60 - */ - public string getRootPath() - { - return Str.toString(g_unix_mount_get_root_path(gUnixMountEntry)); - } -} diff --git a/generated/gtkd/gio/UnixMountMonitor.d b/generated/gtkd/gio/UnixMountMonitor.d deleted file mode 100644 index 34a42006a..000000000 --- a/generated/gtkd/gio/UnixMountMonitor.d +++ /dev/null @@ -1,161 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixMountMonitor; - -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * Watches #GUnixMounts for changes. - */ -public class UnixMountMonitor : ObjectG -{ - /** the main Gtk struct */ - protected GUnixMountMonitor* gUnixMountMonitor; - - /** Get the main Gtk struct */ - public GUnixMountMonitor* getUnixMountMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixMountMonitor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixMountMonitor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixMountMonitor* gUnixMountMonitor, bool ownedRef = false) - { - this.gUnixMountMonitor = gUnixMountMonitor; - super(cast(GObject*)gUnixMountMonitor, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_unix_mount_monitor_get_type(); - } - - /** - * Deprecated alias for g_unix_mount_monitor_get(). - * - * This function was never a true constructor, which is why it was - * renamed. - * - * Deprecated: Use g_unix_mount_monitor_get() instead. - * - * Returns: a #GUnixMountMonitor. - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_unix_mount_monitor_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GUnixMountMonitor*) __p, true); - } - - /** - * Gets the #GUnixMountMonitor for the current thread-default main - * context. - * - * The mount monitor can be used to monitor for changes to the list of - * mounted filesystems as well as the list of mount points (ie: fstab - * entries). - * - * You must only call g_object_unref() on the return value from under - * the same main context as you called this function. - * - * Returns: the #GUnixMountMonitor. - * - * Since: 2.44 - */ - public static UnixMountMonitor get() - { - auto __p = g_unix_mount_monitor_get(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixMountMonitor)(cast(GUnixMountMonitor*) __p, true); - } - - /** - * This function does nothing. - * - * Before 2.44, this was a partially-effective way of controlling the - * rate at which events would be reported under some uncommon - * circumstances. Since @mount_monitor is a singleton, it also meant - * that calling this function would have side effects for other users of - * the monitor. - * - * Deprecated: This function does nothing. Don't call it. - * - * Params: - * limitMsec = a integer with the limit in milliseconds to - * poll for changes. - * - * Since: 2.18 - */ - public void setRateLimit(int limitMsec) - { - g_unix_mount_monitor_set_rate_limit(gUnixMountMonitor, limitMsec); - } - - /** - * Emitted when the unix mount points have changed. - */ - gulong addOnMountpointsChanged(void delegate(UnixMountMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "mountpoints-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the unix mounts have changed. - */ - gulong addOnMountsChanged(void delegate(UnixMountMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "mounts-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/UnixMountPoint.d b/generated/gtkd/gio/UnixMountPoint.d deleted file mode 100644 index 3d457bd7a..000000000 --- a/generated/gtkd/gio/UnixMountPoint.d +++ /dev/null @@ -1,285 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixMountPoint; - -private import gio.IconIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gtkd.Loader; - - -/** - * Defines a Unix mount point (e.g. /dev). - * This corresponds roughly to a fstab entry. - */ -public class UnixMountPoint -{ - /** the main Gtk struct */ - protected GUnixMountPoint* gUnixMountPoint; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GUnixMountPoint* getUnixMountPointStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixMountPoint; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gUnixMountPoint; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixMountPoint* gUnixMountPoint, bool ownedRef = false) - { - this.gUnixMountPoint = gUnixMountPoint; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GIO) && ownedRef ) - g_unix_mount_point_free(gUnixMountPoint); - } - - - /** */ - public static GType getType() - { - return g_unix_mount_point_get_type(); - } - - /** - * Compares two unix mount points. - * - * Params: - * mount2 = a #GUnixMount. - * - * Returns: 1, 0 or -1 if @mount1 is greater than, equal to, - * or less than @mount2, respectively. - */ - public int compare(UnixMountPoint mount2) - { - return g_unix_mount_point_compare(gUnixMountPoint, (mount2 is null) ? null : mount2.getUnixMountPointStruct()); - } - - /** - * Makes a copy of @mount_point. - * - * Returns: a new #GUnixMountPoint - * - * Since: 2.54 - */ - public UnixMountPoint copy() - { - auto __p = g_unix_mount_point_copy(gUnixMountPoint); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixMountPoint)(cast(GUnixMountPoint*) __p, true); - } - - /** - * Frees a unix mount point. - */ - public void free() - { - g_unix_mount_point_free(gUnixMountPoint); - ownedRef = false; - } - - /** - * Gets the device path for a unix mount point. - * - * Returns: a string containing the device path. - */ - public string getDevicePath() - { - return Str.toString(g_unix_mount_point_get_device_path(gUnixMountPoint)); - } - - /** - * Gets the file system type for the mount point. - * - * Returns: a string containing the file system type. - */ - public string getFsType() - { - return Str.toString(g_unix_mount_point_get_fs_type(gUnixMountPoint)); - } - - /** - * Gets the mount path for a unix mount point. - * - * Returns: a string containing the mount path. - */ - public string getMountPath() - { - return Str.toString(g_unix_mount_point_get_mount_path(gUnixMountPoint)); - } - - /** - * Gets the options for the mount point. - * - * Returns: a string containing the options. - * - * Since: 2.32 - */ - public string getOptions() - { - return Str.toString(g_unix_mount_point_get_options(gUnixMountPoint)); - } - - /** - * Guesses whether a Unix mount point can be ejected. - * - * Returns: %TRUE if @mount_point is deemed to be ejectable. - */ - public bool guessCanEject() - { - return g_unix_mount_point_guess_can_eject(gUnixMountPoint) != 0; - } - - /** - * Guesses the icon of a Unix mount point. - * - * Returns: a #GIcon - */ - public IconIF guessIcon() - { - auto __p = g_unix_mount_point_guess_icon(gUnixMountPoint); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Guesses the name of a Unix mount point. - * The result is a translated string. - * - * Returns: A newly allocated string that must - * be freed with g_free() - */ - public string guessName() - { - auto retStr = g_unix_mount_point_guess_name(gUnixMountPoint); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Guesses the symbolic icon of a Unix mount point. - * - * Returns: a #GIcon - * - * Since: 2.34 - */ - public IconIF guessSymbolicIcon() - { - auto __p = g_unix_mount_point_guess_symbolic_icon(gUnixMountPoint); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Checks if a unix mount point is a loopback device. - * - * Returns: %TRUE if the mount point is a loopback. %FALSE otherwise. - */ - public bool isLoopback() - { - return g_unix_mount_point_is_loopback(gUnixMountPoint) != 0; - } - - /** - * Checks if a unix mount point is read only. - * - * Returns: %TRUE if a mount point is read only. - */ - public bool isReadonly() - { - return g_unix_mount_point_is_readonly(gUnixMountPoint) != 0; - } - - /** - * Checks if a unix mount point is mountable by the user. - * - * Returns: %TRUE if the mount point is user mountable. - */ - public bool isUserMountable() - { - return g_unix_mount_point_is_user_mountable(gUnixMountPoint) != 0; - } - - /** - * Gets a #GUnixMountPoint for a given mount path. If @time_read is set, it - * will be filled with a unix timestamp for checking if the mount points have - * changed since with g_unix_mount_points_changed_since(). - * - * If more mount points have the same mount path, the last matching mount point - * is returned. - * - * Params: - * mountPath = path for a possible unix mount point. - * timeRead = guint64 to contain a timestamp. - * - * Returns: a #GUnixMountPoint, or %NULL if no match - * is found. - * - * Since: 2.66 - */ - public static UnixMountPoint at(string mountPath, out ulong timeRead) - { - auto __p = g_unix_mount_point_at(Str.toStringz(mountPath), &timeRead); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(UnixMountPoint)(cast(GUnixMountPoint*) __p, true); - } -} diff --git a/generated/gtkd/gio/UnixOutputStream.d b/generated/gtkd/gio/UnixOutputStream.d deleted file mode 100644 index fa738c7a1..000000000 --- a/generated/gtkd/gio/UnixOutputStream.d +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixOutputStream; - -private import gio.FileDescriptorBasedIF; -private import gio.FileDescriptorBasedT; -private import gio.OutputStream; -private import gio.PollableOutputStreamIF; -private import gio.PollableOutputStreamT; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * #GUnixOutputStream implements #GOutputStream for writing to a UNIX - * file descriptor, including asynchronous operations. (If the file - * descriptor refers to a socket or pipe, this will use poll() to do - * asynchronous I/O. If it refers to a regular file, it will fall back - * to doing asynchronous I/O in another thread.) - * - * Note that `` belongs to the UNIX-specific GIO - * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file - * when using it. - */ -public class UnixOutputStream : OutputStream, FileDescriptorBasedIF, PollableOutputStreamIF -{ - /** the main Gtk struct */ - protected GUnixOutputStream* gUnixOutputStream; - - /** Get the main Gtk struct */ - public GUnixOutputStream* getUnixOutputStreamStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixOutputStream; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixOutputStream; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixOutputStream* gUnixOutputStream, bool ownedRef = false) - { - this.gUnixOutputStream = gUnixOutputStream; - super(cast(GOutputStream*)gUnixOutputStream, ownedRef); - } - - // add the FileDescriptorBased capabilities - mixin FileDescriptorBasedT!(GUnixOutputStream); - - // add the PollableOutputStream capabilities - mixin PollableOutputStreamT!(GUnixOutputStream); - - - /** */ - public static GType getType() - { - return g_unix_output_stream_get_type(); - } - - /** - * Creates a new #GUnixOutputStream for the given @fd. - * - * If @close_fd, is %TRUE, the file descriptor will be closed when - * the output stream is destroyed. - * - * Params: - * fd = a UNIX file descriptor - * closeFd = %TRUE to close the file descriptor when done - * - * Returns: a new #GOutputStream - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(int fd, bool closeFd) - { - auto __p = g_unix_output_stream_new(fd, closeFd); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GUnixOutputStream*) __p, true); - } - - /** - * Returns whether the file descriptor of @stream will be - * closed when the stream is closed. - * - * Returns: %TRUE if the file descriptor is closed when done - * - * Since: 2.20 - */ - public bool getCloseFd() - { - return g_unix_output_stream_get_close_fd(gUnixOutputStream) != 0; - } - - /** - * Return the UNIX file descriptor that the stream writes to. - * - * Returns: The file descriptor of @stream - * - * Since: 2.20 - */ - public int getFd() - { - return g_unix_output_stream_get_fd(gUnixOutputStream); - } - - /** - * Sets whether the file descriptor of @stream shall be closed - * when the stream is closed. - * - * Params: - * closeFd = %TRUE to close the file descriptor when done - * - * Since: 2.20 - */ - public void setCloseFd(bool closeFd) - { - g_unix_output_stream_set_close_fd(gUnixOutputStream, closeFd); - } -} diff --git a/generated/gtkd/gio/UnixSocketAddress.d b/generated/gtkd/gio/UnixSocketAddress.d deleted file mode 100644 index 45afb7138..000000000 --- a/generated/gtkd/gio/UnixSocketAddress.d +++ /dev/null @@ -1,237 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.UnixSocketAddress; - -private import gio.SocketAddress; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Support for UNIX-domain (also known as local) sockets. - * - * UNIX domain sockets are generally visible in the filesystem. - * However, some systems support abstract socket names which are not - * visible in the filesystem and not affected by the filesystem - * permissions, visibility, etc. Currently this is only supported - * under Linux. If you attempt to use abstract sockets on other - * systems, function calls may return %G_IO_ERROR_NOT_SUPPORTED - * errors. You can use g_unix_socket_address_abstract_names_supported() - * to see if abstract names are supported. - * - * Note that `` belongs to the UNIX-specific GIO - * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file - * when using it. - */ -public class UnixSocketAddress : SocketAddress -{ - /** the main Gtk struct */ - protected GUnixSocketAddress* gUnixSocketAddress; - - /** Get the main Gtk struct */ - public GUnixSocketAddress* getUnixSocketAddressStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gUnixSocketAddress; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gUnixSocketAddress; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GUnixSocketAddress* gUnixSocketAddress, bool ownedRef = false) - { - this.gUnixSocketAddress = gUnixSocketAddress; - super(cast(GSocketAddress*)gUnixSocketAddress, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_unix_socket_address_get_type(); - } - - /** - * Creates a new #GUnixSocketAddress for @path. - * - * To create abstract socket addresses, on systems that support that, - * use g_unix_socket_address_new_abstract(). - * - * Params: - * path = the socket path - * - * Returns: a new #GUnixSocketAddress - * - * Since: 2.22 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string path) - { - auto __p = g_unix_socket_address_new(Str.toStringz(path)); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GUnixSocketAddress*) __p, true); - } - - /** - * Creates a new #GUnixSocketAddress of type @type with name @path. - * - * If @type is %G_UNIX_SOCKET_ADDRESS_PATH, this is equivalent to - * calling g_unix_socket_address_new(). - * - * If @type is %G_UNIX_SOCKET_ADDRESS_ANONYMOUS, @path and @path_len will be - * ignored. - * - * If @path_type is %G_UNIX_SOCKET_ADDRESS_ABSTRACT, then @path_len - * bytes of @path will be copied to the socket's path, and only those - * bytes will be considered part of the name. (If @path_len is -1, - * then @path is assumed to be NUL-terminated.) For example, if @path - * was "test", then calling g_socket_address_get_native_size() on the - * returned socket would return 7 (2 bytes of overhead, 1 byte for the - * abstract-socket indicator byte, and 4 bytes for the name "test"). - * - * If @path_type is %G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED, then - * @path_len bytes of @path will be copied to the socket's path, the - * rest of the path will be padded with 0 bytes, and the entire - * zero-padded buffer will be considered the name. (As above, if - * @path_len is -1, then @path is assumed to be NUL-terminated.) In - * this case, g_socket_address_get_native_size() will always return - * the full size of a `struct sockaddr_un`, although - * g_unix_socket_address_get_path_len() will still return just the - * length of @path. - * - * %G_UNIX_SOCKET_ADDRESS_ABSTRACT is preferred over - * %G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED for new programs. Of course, - * when connecting to a server created by another process, you must - * use the appropriate type corresponding to how that process created - * its listening socket. - * - * Params: - * path = the name - * type = a #GUnixSocketAddressType - * - * Returns: a new #GUnixSocketAddress - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(string path, GUnixSocketAddressType type) - { - auto __p = g_unix_socket_address_new_with_type(Str.toStringz(path), cast(int)path.length, type); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_type"); - } - - this(cast(GUnixSocketAddress*) __p, true); - } - - /** - * Checks if abstract UNIX domain socket names are supported. - * - * Returns: %TRUE if supported, %FALSE otherwise - * - * Since: 2.22 - */ - public static bool abstractNamesSupported() - { - return g_unix_socket_address_abstract_names_supported() != 0; - } - - /** - * Gets @address's type. - * - * Returns: a #GUnixSocketAddressType - * - * Since: 2.26 - */ - public GUnixSocketAddressType getAddressType() - { - return g_unix_socket_address_get_address_type(gUnixSocketAddress); - } - - /** - * Tests if @address is abstract. - * - * Deprecated: Use g_unix_socket_address_get_address_type() - * - * Returns: %TRUE if the address is abstract, %FALSE otherwise - * - * Since: 2.22 - */ - public bool getIsAbstract() - { - return g_unix_socket_address_get_is_abstract(gUnixSocketAddress) != 0; - } - - /** - * Gets @address's path, or for abstract sockets the "name". - * - * Guaranteed to be zero-terminated, but an abstract socket - * may contain embedded zeros, and thus you should use - * g_unix_socket_address_get_path_len() to get the true length - * of this string. - * - * Returns: the path for @address - * - * Since: 2.22 - */ - public string getPath() - { - return Str.toString(g_unix_socket_address_get_path(gUnixSocketAddress)); - } - - /** - * Gets the length of @address's path. - * - * For details, see g_unix_socket_address_get_path(). - * - * Returns: the length of the path - * - * Since: 2.22 - */ - public size_t getPathLen() - { - return g_unix_socket_address_get_path_len(gUnixSocketAddress); - } -} diff --git a/generated/gtkd/gio/Vfs.d b/generated/gtkd/gio/Vfs.d deleted file mode 100644 index a727e3c00..000000000 --- a/generated/gtkd/gio/Vfs.d +++ /dev/null @@ -1,262 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.Vfs; - -private import gio.FileIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; - - -/** - * Entry point for using GIO functionality. - */ -public class Vfs : ObjectG -{ - /** the main Gtk struct */ - protected GVfs* gVfs; - - /** Get the main Gtk struct */ - public GVfs* getVfsStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gVfs; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gVfs; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GVfs* gVfs, bool ownedRef = false) - { - this.gVfs = gVfs; - super(cast(GObject*)gVfs, ownedRef); - } - - - /** */ - public static GType getType() - { - return g_vfs_get_type(); - } - - /** - * Gets the default #GVfs for the system. - * - * Returns: a #GVfs, which will be the local - * file system #GVfs if no other implementation is available. - */ - public static Vfs getDefault() - { - auto __p = g_vfs_get_default(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Vfs)(cast(GVfs*) __p); - } - - /** - * Gets the local #GVfs for the system. - * - * Returns: a #GVfs. - */ - public static Vfs getLocal() - { - auto __p = g_vfs_get_local(); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(Vfs)(cast(GVfs*) __p); - } - - /** - * Gets a #GFile for @path. - * - * Params: - * path = a string containing a VFS path. - * - * Returns: a #GFile. - * Free the returned object with g_object_unref(). - */ - public FileIF getFileForPath(string path) - { - auto __p = g_vfs_get_file_for_path(gVfs, Str.toStringz(path)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets a #GFile for @uri. - * - * This operation never fails, but the returned object - * might not support any I/O operation if the URI - * is malformed or if the URI scheme is not supported. - * - * Params: - * uri = a string containing a URI - * - * Returns: a #GFile. - * Free the returned object with g_object_unref(). - */ - public FileIF getFileForUri(string uri) - { - auto __p = g_vfs_get_file_for_uri(gVfs, Str.toStringz(uri)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets a list of URI schemes supported by @vfs. - * - * Returns: a %NULL-terminated array of strings. - * The returned array belongs to GIO and must - * not be freed or modified. - */ - public string[] getSupportedUriSchemes() - { - return Str.toStringArray(g_vfs_get_supported_uri_schemes(gVfs)); - } - - /** - * Checks if the VFS is active. - * - * Returns: %TRUE if construction of the @vfs was successful - * and it is now active. - */ - public bool isActive() - { - return g_vfs_is_active(gVfs) != 0; - } - - /** - * This operation never fails, but the returned object might - * not support any I/O operations if the @parse_name cannot - * be parsed by the #GVfs module. - * - * Params: - * parseName = a string to be parsed by the VFS module. - * - * Returns: a #GFile for the given @parse_name. - * Free the returned object with g_object_unref(). - */ - public FileIF parseName(string parseName) - { - auto __p = g_vfs_parse_name(gVfs, Str.toStringz(parseName)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Registers @uri_func and @parse_name_func as the #GFile URI and parse name - * lookup functions for URIs with a scheme matching @scheme. - * Note that @scheme is registered only within the running application, as - * opposed to desktop-wide as it happens with GVfs backends. - * - * When a #GFile is requested with an URI containing @scheme (e.g. through - * g_file_new_for_uri()), @uri_func will be called to allow a custom - * constructor. The implementation of @uri_func should not be blocking, and - * must not call g_vfs_register_uri_scheme() or g_vfs_unregister_uri_scheme(). - * - * When g_file_parse_name() is called with a parse name obtained from such file, - * @parse_name_func will be called to allow the #GFile to be created again. In - * that case, it's responsibility of @parse_name_func to make sure the parse - * name matches what the custom #GFile implementation returned when - * g_file_get_parse_name() was previously called. The implementation of - * @parse_name_func should not be blocking, and must not call - * g_vfs_register_uri_scheme() or g_vfs_unregister_uri_scheme(). - * - * It's an error to call this function twice with the same scheme. To unregister - * a custom URI scheme, use g_vfs_unregister_uri_scheme(). - * - * Params: - * scheme = an URI scheme, e.g. "http" - * uriFunc = a #GVfsFileLookupFunc - * uriData = custom data passed to be passed to @uri_func, or %NULL - * uriDestroy = function to be called when unregistering the - * URI scheme, or when @vfs is disposed, to free the resources used - * by the URI lookup function - * parseNameFunc = a #GVfsFileLookupFunc - * parseNameData = custom data passed to be passed to - * @parse_name_func, or %NULL - * parseNameDestroy = function to be called when unregistering the - * URI scheme, or when @vfs is disposed, to free the resources used - * by the parse name lookup function - * - * Returns: %TRUE if @scheme was successfully registered, or %FALSE if a handler - * for @scheme already exists. - * - * Since: 2.50 - */ - public bool registerUriScheme(string scheme, GVfsFileLookupFunc uriFunc, void* uriData, GDestroyNotify uriDestroy, GVfsFileLookupFunc parseNameFunc, void* parseNameData, GDestroyNotify parseNameDestroy) - { - return g_vfs_register_uri_scheme(gVfs, Str.toStringz(scheme), uriFunc, uriData, uriDestroy, parseNameFunc, parseNameData, parseNameDestroy) != 0; - } - - /** - * Unregisters the URI handler for @scheme previously registered with - * g_vfs_register_uri_scheme(). - * - * Params: - * scheme = an URI scheme, e.g. "http" - * - * Returns: %TRUE if @scheme was successfully unregistered, or %FALSE if a - * handler for @scheme does not exist. - * - * Since: 2.50 - */ - public bool unregisterUriScheme(string scheme) - { - return g_vfs_unregister_uri_scheme(gVfs, Str.toStringz(scheme)) != 0; - } -} diff --git a/generated/gtkd/gio/VolumeIF.d b/generated/gtkd/gio/VolumeIF.d deleted file mode 100644 index 1bbf6ee7a..000000000 --- a/generated/gtkd/gio/VolumeIF.d +++ /dev/null @@ -1,354 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.VolumeIF; - -private import gio.AsyncResultIF; -private import gio.Cancellable; -private import gio.DriveIF; -private import gio.FileIF; -private import gio.IconIF; -private import gio.MountIF; -private import gio.MountOperation; -private import gio.c.functions; -public import gio.c.types; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * The #GVolume interface represents user-visible objects that can be - * mounted. Note, when porting from GnomeVFS, #GVolume is the moral - * equivalent of #GnomeVFSDrive. - * - * Mounting a #GVolume instance is an asynchronous operation. For more - * information about asynchronous operations, see #GAsyncResult and - * #GTask. To mount a #GVolume, first call g_volume_mount() with (at - * least) the #GVolume instance, optionally a #GMountOperation object - * and a #GAsyncReadyCallback. - * - * Typically, one will only want to pass %NULL for the - * #GMountOperation if automounting all volumes when a desktop session - * starts since it's not desirable to put up a lot of dialogs asking - * for credentials. - * - * The callback will be fired when the operation has resolved (either - * with success or failure), and a #GAsyncResult instance will be - * passed to the callback. That callback should then call - * g_volume_mount_finish() with the #GVolume instance and the - * #GAsyncResult data to see if the operation was completed - * successfully. If an @error is present when g_volume_mount_finish() - * is called, then it will be filled with any error information. - * - * ## Volume Identifiers # {#volume-identifier} - * - * It is sometimes necessary to directly access the underlying - * operating system object behind a volume (e.g. for passing a volume - * to an application via the commandline). For this purpose, GIO - * allows to obtain an 'identifier' for the volume. There can be - * different kinds of identifiers, such as Hal UDIs, filesystem labels, - * traditional Unix devices (e.g. `/dev/sda2`), UUIDs. GIO uses predefined - * strings as names for the different kinds of identifiers: - * #G_VOLUME_IDENTIFIER_KIND_UUID, #G_VOLUME_IDENTIFIER_KIND_LABEL, etc. - * Use g_volume_get_identifier() to obtain an identifier for a volume. - * - * - * Note that #G_VOLUME_IDENTIFIER_KIND_HAL_UDI will only be available - * when the gvfs hal volume monitor is in use. Other volume monitors - * will generally be able to provide the #G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE - * identifier, which can be used to obtain a hal device by means of - * libhal_manager_find_device_string_match(). - */ -public interface VolumeIF{ - /** Get the main Gtk struct */ - public GVolume* getVolumeStruct(bool transferOwnership = false); - - /** the main Gtk struct as a void* */ - protected void* getStruct(); - - - /** */ - public static GType getType() - { - return g_volume_get_type(); - } - - /** - * Checks if a volume can be ejected. - * - * Returns: %TRUE if the @volume can be ejected. %FALSE otherwise - */ - public bool canEject(); - - /** - * Checks if a volume can be mounted. - * - * Returns: %TRUE if the @volume can be mounted. %FALSE otherwise - */ - public bool canMount(); - - /** - * Ejects a volume. This is an asynchronous operation, and is - * finished by calling g_volume_eject_finish() with the @volume - * and #GAsyncResult returned in the @callback. - * - * Deprecated: Use g_volume_eject_with_operation() instead. - * - * Params: - * flags = flags affecting the unmount if required for eject - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback, or %NULL - * userData = user data that gets passed to @callback - */ - public void eject(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes ejecting a volume. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Deprecated: Use g_volume_eject_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE, %FALSE if operation failed - * - * Throws: GException on failure. - */ - public bool ejectFinish(AsyncResultIF result); - - /** - * Ejects a volume. This is an asynchronous operation, and is - * finished by calling g_volume_eject_with_operation_finish() with the @volume - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the unmount if required for eject - * mountOperation = a #GMountOperation or %NULL to - * avoid user interaction - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback, or %NULL - * userData = user data passed to @callback - * - * Since: 2.22 - */ - public void ejectWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes ejecting a volume. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the volume was successfully ejected. %FALSE otherwise - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectWithOperationFinish(AsyncResultIF result); - - /** - * Gets the kinds of [identifiers][volume-identifier] that @volume has. - * Use g_volume_get_identifier() to obtain the identifiers themselves. - * - * Returns: a %NULL-terminated array - * of strings containing kinds of identifiers. Use g_strfreev() to free. - */ - public string[] enumerateIdentifiers(); - - /** - * Gets the activation root for a #GVolume if it is known ahead of - * mount time. Returns %NULL otherwise. If not %NULL and if @volume - * is mounted, then the result of g_mount_get_root() on the - * #GMount object obtained from g_volume_get_mount() will always - * either be equal or a prefix of what this function returns. In - * other words, in code - * - * |[ - * GMount *mount; - * GFile *mount_root - * GFile *volume_activation_root; - * - * mount = g_volume_get_mount (volume); // mounted, so never NULL - * mount_root = g_mount_get_root (mount); - * volume_activation_root = g_volume_get_activation_root (volume); // assume not NULL - * ]| - * then the expression - * |[ - * (g_file_has_prefix (volume_activation_root, mount_root) || - * g_file_equal (volume_activation_root, mount_root)) - * ]| - * will always be %TRUE. - * - * Activation roots are typically used in #GVolumeMonitor - * implementations to find the underlying mount to shadow, see - * g_mount_is_shadowed() for more details. - * - * Returns: the activation root of @volume - * or %NULL. Use g_object_unref() to free. - * - * Since: 2.18 - */ - public FileIF getActivationRoot(); - - /** - * Gets the drive for the @volume. - * - * Returns: a #GDrive or %NULL if @volume is not - * associated with a drive. The returned object should be unreffed - * with g_object_unref() when no longer needed. - */ - public DriveIF getDrive(); - - /** - * Gets the icon for @volume. - * - * Returns: a #GIcon. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - */ - public IconIF getIcon(); - - /** - * Gets the identifier of the given kind for @volume. - * See the [introduction][volume-identifier] for more - * information about volume identifiers. - * - * Params: - * kind = the kind of identifier to return - * - * Returns: a newly allocated string containing the - * requested identifier, or %NULL if the #GVolume - * doesn't have this kind of identifier - */ - public string getIdentifier(string kind); - - /** - * Gets the mount for the @volume. - * - * Returns: a #GMount or %NULL if @volume isn't mounted. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - */ - public MountIF getMount(); - - /** - * Gets the name of @volume. - * - * Returns: the name for the given @volume. The returned string should - * be freed with g_free() when no longer needed. - */ - public string getName(); - - /** - * Gets the sort key for @volume, if any. - * - * Returns: Sorting key for @volume or %NULL if no such key is available - * - * Since: 2.32 - */ - public string getSortKey(); - - /** - * Gets the symbolic icon for @volume. - * - * Returns: a #GIcon. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - * - * Since: 2.34 - */ - public IconIF getSymbolicIcon(); - - /** - * Gets the UUID for the @volume. The reference is typically based on - * the file system UUID for the volume in question and should be - * considered an opaque string. Returns %NULL if there is no UUID - * available. - * - * Returns: the UUID for @volume or %NULL if no UUID - * can be computed. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getUuid(); - - /** - * Mounts a volume. This is an asynchronous operation, and is - * finished by calling g_volume_mount_finish() with the @volume - * and #GAsyncResult returned in the @callback. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback, or %NULL - * userData = user data that gets passed to @callback - */ - public void mount(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData); - - /** - * Finishes mounting a volume. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * If the mount operation succeeded, g_volume_get_mount() on @volume - * is guaranteed to return the mount right after calling this - * function; there's no need to listen for the 'mount-added' signal on - * #GVolumeMonitor. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE, %FALSE if operation failed - * - * Throws: GException on failure. - */ - public bool mountFinish(AsyncResultIF result); - - /** - * Returns whether the volume should be automatically mounted. - * - * Returns: %TRUE if the volume should be automatically mounted - */ - public bool shouldAutomount(); - - /** - * Emitted when the volume has been changed. - */ - gulong addOnChanged(void delegate(VolumeIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); - - /** - * This signal is emitted when the #GVolume have been removed. If - * the recipient is holding references to the object they should - * release them so the object can be finalized. - */ - gulong addOnRemoved(void delegate(VolumeIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); -} diff --git a/generated/gtkd/gio/VolumeMonitor.d b/generated/gtkd/gio/VolumeMonitor.d deleted file mode 100644 index 03e575dd7..000000000 --- a/generated/gtkd/gio/VolumeMonitor.d +++ /dev/null @@ -1,402 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.VolumeMonitor; - -private import gio.DriveIF; -private import gio.MountIF; -private import gio.VolumeIF; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import glib.ListG; -private import glib.Str; -private import gobject.ObjectG; -private import gobject.Signals; -private import std.algorithm; - - -/** - * #GVolumeMonitor is for listing the user interesting devices and volumes - * on the computer. In other words, what a file selector or file manager - * would show in a sidebar. - * - * #GVolumeMonitor is not - * [thread-default-context aware][g-main-context-push-thread-default], - * and so should not be used other than from the main thread, with no - * thread-default-context active. - * - * In order to receive updates about volumes and mounts monitored through GVFS, - * a main loop must be running. - */ -public class VolumeMonitor : ObjectG -{ - /** the main Gtk struct */ - protected GVolumeMonitor* gVolumeMonitor; - - /** Get the main Gtk struct */ - public GVolumeMonitor* getVolumeMonitorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gVolumeMonitor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gVolumeMonitor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GVolumeMonitor* gVolumeMonitor, bool ownedRef = false) - { - this.gVolumeMonitor = gVolumeMonitor; - super(cast(GObject*)gVolumeMonitor, ownedRef); - } - - /** - * Gets the volume monitor used by gio. - * - * Return: a reference to the #GVolumeMonitor used by gio. Call - * g_object_unref() when done with it. - */ - public this() - { - auto p = g_volume_monitor_get(); - - if(p is null) - { - throw new ConstructionException("g_volume_monitor_get()"); - } - - this(cast(GVolumeMonitor*) p, true); - } - - /** - */ - - /** */ - public static GType getType() - { - return g_volume_monitor_get_type(); - } - - /** - * This function should be called by any #GVolumeMonitor - * implementation when a new #GMount object is created that is not - * associated with a #GVolume object. It must be called just before - * emitting the @mount_added signal. - * - * If the return value is not %NULL, the caller must associate the - * returned #GVolume object with the #GMount. This involves returning - * it in its g_mount_get_volume() implementation. The caller must - * also listen for the "removed" signal on the returned object - * and give up its reference when handling that signal - * - * Similarly, if implementing g_volume_monitor_adopt_orphan_mount(), - * the implementor must take a reference to @mount and return it in - * its g_volume_get_mount() implemented. Also, the implementor must - * listen for the "unmounted" signal on @mount and give up its - * reference upon handling that signal. - * - * There are two main use cases for this function. - * - * One is when implementing a user space file system driver that reads - * blocks of a block device that is already represented by the native - * volume monitor (for example a CD Audio file system driver). Such - * a driver will generate its own #GMount object that needs to be - * associated with the #GVolume object that represents the volume. - * - * The other is for implementing a #GVolumeMonitor whose sole purpose - * is to return #GVolume objects representing entries in the users - * "favorite servers" list or similar. - * - * Deprecated: Instead of using this function, #GVolumeMonitor - * implementations should instead create shadow mounts with the URI of - * the mount they intend to adopt. See the proxy volume monitor in - * gvfs for an example of this. Also see g_mount_is_shadowed(), - * g_mount_shadow() and g_mount_unshadow() functions. - * - * Params: - * mount = a #GMount object to find a parent for - * - * Returns: the #GVolume object that is the parent for @mount or %NULL - * if no wants to adopt the #GMount. - */ - public static VolumeIF adoptOrphanMount(MountIF mount) - { - auto __p = g_volume_monitor_adopt_orphan_mount((mount is null) ? null : mount.getMountStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(VolumeIF)(cast(GVolume*) __p, true); - } - - /** - * Gets a list of drives connected to the system. - * - * The returned list should be freed with g_list_free(), after - * its elements have been unreffed with g_object_unref(). - * - * Returns: a #GList of connected #GDrive objects. - */ - public ListG getConnectedDrives() - { - auto __p = g_volume_monitor_get_connected_drives(gVolumeMonitor); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Finds a #GMount object by its UUID (see g_mount_get_uuid()) - * - * Params: - * uuid = the UUID to look for - * - * Returns: a #GMount or %NULL if no such mount is available. - * Free the returned object with g_object_unref(). - */ - public MountIF getMountForUuid(string uuid) - { - auto __p = g_volume_monitor_get_mount_for_uuid(gVolumeMonitor, Str.toStringz(uuid)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MountIF)(cast(GMount*) __p, true); - } - - /** - * Gets a list of the mounts on the system. - * - * The returned list should be freed with g_list_free(), after - * its elements have been unreffed with g_object_unref(). - * - * Returns: a #GList of #GMount objects. - */ - public ListG getMounts() - { - auto __p = g_volume_monitor_get_mounts(gVolumeMonitor); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Finds a #GVolume object by its UUID (see g_volume_get_uuid()) - * - * Params: - * uuid = the UUID to look for - * - * Returns: a #GVolume or %NULL if no such volume is available. - * Free the returned object with g_object_unref(). - */ - public VolumeIF getVolumeForUuid(string uuid) - { - auto __p = g_volume_monitor_get_volume_for_uuid(gVolumeMonitor, Str.toStringz(uuid)); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(VolumeIF)(cast(GVolume*) __p, true); - } - - /** - * Gets a list of the volumes on the system. - * - * The returned list should be freed with g_list_free(), after - * its elements have been unreffed with g_object_unref(). - * - * Returns: a #GList of #GVolume objects. - */ - public ListG getVolumes() - { - auto __p = g_volume_monitor_get_volumes(gVolumeMonitor); - - if(__p is null) - { - return null; - } - - return new ListG(cast(GList*) __p, true); - } - - /** - * Emitted when a drive changes. - * - * Params: - * drive = the drive that changed - */ - gulong addOnDriveChanged(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "drive-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a drive is connected to the system. - * - * Params: - * drive = a #GDrive that was connected. - */ - gulong addOnDriveConnected(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "drive-connected", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a drive is disconnected from the system. - * - * Params: - * drive = a #GDrive that was disconnected. - */ - gulong addOnDriveDisconnected(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "drive-disconnected", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the eject button is pressed on @drive. - * - * Params: - * drive = the drive where the eject button was pressed - * - * Since: 2.18 - */ - gulong addOnDriveEjectButton(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "drive-eject-button", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when the stop button is pressed on @drive. - * - * Params: - * drive = the drive where the stop button was pressed - * - * Since: 2.22 - */ - gulong addOnDriveStopButton(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "drive-stop-button", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a mount is added. - * - * Params: - * mount = a #GMount that was added. - */ - gulong addOnMountAdded(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "mount-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a mount changes. - * - * Params: - * mount = a #GMount that changed. - */ - gulong addOnMountChanged(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "mount-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * May be emitted when a mount is about to be removed. - * - * This signal depends on the backend and is only emitted if - * GIO was used to unmount. - * - * Params: - * mount = a #GMount that is being unmounted. - */ - gulong addOnMountPreUnmount(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "mount-pre-unmount", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a mount is removed. - * - * Params: - * mount = a #GMount that was removed. - */ - gulong addOnMountRemoved(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "mount-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a mountable volume is added to the system. - * - * Params: - * volume = a #GVolume that was added. - */ - gulong addOnVolumeAdded(void delegate(VolumeIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "volume-added", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when mountable volume is changed. - * - * Params: - * volume = a #GVolume that changed. - */ - gulong addOnVolumeChanged(void delegate(VolumeIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "volume-changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * Emitted when a mountable volume is removed from the system. - * - * Params: - * volume = a #GVolume that was removed. - */ - gulong addOnVolumeRemoved(void delegate(VolumeIF, VolumeMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "volume-removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/VolumeT.d b/generated/gtkd/gio/VolumeT.d deleted file mode 100644 index 4b5b35088..000000000 --- a/generated/gtkd/gio/VolumeT.d +++ /dev/null @@ -1,488 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.VolumeT; - -public import gio.AsyncResultIF; -public import gio.Cancellable; -public import gio.DriveIF; -public import gio.FileIF; -public import gio.IconIF; -public import gio.MountIF; -public import gio.MountOperation; -public import gio.c.functions; -public import gio.c.types; -public import glib.ErrorG; -public import glib.GException; -public import glib.Str; -public import glib.c.functions; -public import gobject.ObjectG; -public import gobject.Signals; -public import std.algorithm; - - -/** - * The #GVolume interface represents user-visible objects that can be - * mounted. Note, when porting from GnomeVFS, #GVolume is the moral - * equivalent of #GnomeVFSDrive. - * - * Mounting a #GVolume instance is an asynchronous operation. For more - * information about asynchronous operations, see #GAsyncResult and - * #GTask. To mount a #GVolume, first call g_volume_mount() with (at - * least) the #GVolume instance, optionally a #GMountOperation object - * and a #GAsyncReadyCallback. - * - * Typically, one will only want to pass %NULL for the - * #GMountOperation if automounting all volumes when a desktop session - * starts since it's not desirable to put up a lot of dialogs asking - * for credentials. - * - * The callback will be fired when the operation has resolved (either - * with success or failure), and a #GAsyncResult instance will be - * passed to the callback. That callback should then call - * g_volume_mount_finish() with the #GVolume instance and the - * #GAsyncResult data to see if the operation was completed - * successfully. If an @error is present when g_volume_mount_finish() - * is called, then it will be filled with any error information. - * - * ## Volume Identifiers # {#volume-identifier} - * - * It is sometimes necessary to directly access the underlying - * operating system object behind a volume (e.g. for passing a volume - * to an application via the commandline). For this purpose, GIO - * allows to obtain an 'identifier' for the volume. There can be - * different kinds of identifiers, such as Hal UDIs, filesystem labels, - * traditional Unix devices (e.g. `/dev/sda2`), UUIDs. GIO uses predefined - * strings as names for the different kinds of identifiers: - * #G_VOLUME_IDENTIFIER_KIND_UUID, #G_VOLUME_IDENTIFIER_KIND_LABEL, etc. - * Use g_volume_get_identifier() to obtain an identifier for a volume. - * - * - * Note that #G_VOLUME_IDENTIFIER_KIND_HAL_UDI will only be available - * when the gvfs hal volume monitor is in use. Other volume monitors - * will generally be able to provide the #G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE - * identifier, which can be used to obtain a hal device by means of - * libhal_manager_find_device_string_match(). - */ -public template VolumeT(TStruct) -{ - /** Get the main Gtk struct */ - public GVolume* getVolumeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return cast(GVolume*)getStruct(); - } - - - /** - * Checks if a volume can be ejected. - * - * Returns: %TRUE if the @volume can be ejected. %FALSE otherwise - */ - public bool canEject() - { - return g_volume_can_eject(getVolumeStruct()) != 0; - } - - /** - * Checks if a volume can be mounted. - * - * Returns: %TRUE if the @volume can be mounted. %FALSE otherwise - */ - public bool canMount() - { - return g_volume_can_mount(getVolumeStruct()) != 0; - } - - /** - * Ejects a volume. This is an asynchronous operation, and is - * finished by calling g_volume_eject_finish() with the @volume - * and #GAsyncResult returned in the @callback. - * - * Deprecated: Use g_volume_eject_with_operation() instead. - * - * Params: - * flags = flags affecting the unmount if required for eject - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback, or %NULL - * userData = user data that gets passed to @callback - */ - public void eject(GMountUnmountFlags flags, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_volume_eject(getVolumeStruct(), flags, (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes ejecting a volume. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Deprecated: Use g_volume_eject_with_operation_finish() instead. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE, %FALSE if operation failed - * - * Throws: GException on failure. - */ - public bool ejectFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_volume_eject_finish(getVolumeStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Ejects a volume. This is an asynchronous operation, and is - * finished by calling g_volume_eject_with_operation_finish() with the @volume - * and #GAsyncResult data returned in the @callback. - * - * Params: - * flags = flags affecting the unmount if required for eject - * mountOperation = a #GMountOperation or %NULL to - * avoid user interaction - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback, or %NULL - * userData = user data passed to @callback - * - * Since: 2.22 - */ - public void ejectWithOperation(GMountUnmountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_volume_eject_with_operation(getVolumeStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes ejecting a volume. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE if the volume was successfully ejected. %FALSE otherwise - * - * Since: 2.22 - * - * Throws: GException on failure. - */ - public bool ejectWithOperationFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_volume_eject_with_operation_finish(getVolumeStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the kinds of [identifiers][volume-identifier] that @volume has. - * Use g_volume_get_identifier() to obtain the identifiers themselves. - * - * Returns: a %NULL-terminated array - * of strings containing kinds of identifiers. Use g_strfreev() to free. - */ - public string[] enumerateIdentifiers() - { - auto retStr = g_volume_enumerate_identifiers(getVolumeStruct()); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr); - } - - /** - * Gets the activation root for a #GVolume if it is known ahead of - * mount time. Returns %NULL otherwise. If not %NULL and if @volume - * is mounted, then the result of g_mount_get_root() on the - * #GMount object obtained from g_volume_get_mount() will always - * either be equal or a prefix of what this function returns. In - * other words, in code - * - * |[ - * GMount *mount; - * GFile *mount_root - * GFile *volume_activation_root; - * - * mount = g_volume_get_mount (volume); // mounted, so never NULL - * mount_root = g_mount_get_root (mount); - * volume_activation_root = g_volume_get_activation_root (volume); // assume not NULL - * ]| - * then the expression - * |[ - * (g_file_has_prefix (volume_activation_root, mount_root) || - * g_file_equal (volume_activation_root, mount_root)) - * ]| - * will always be %TRUE. - * - * Activation roots are typically used in #GVolumeMonitor - * implementations to find the underlying mount to shadow, see - * g_mount_is_shadowed() for more details. - * - * Returns: the activation root of @volume - * or %NULL. Use g_object_unref() to free. - * - * Since: 2.18 - */ - public FileIF getActivationRoot() - { - auto __p = g_volume_get_activation_root(getVolumeStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileIF)(cast(GFile*) __p, true); - } - - /** - * Gets the drive for the @volume. - * - * Returns: a #GDrive or %NULL if @volume is not - * associated with a drive. The returned object should be unreffed - * with g_object_unref() when no longer needed. - */ - public DriveIF getDrive() - { - auto __p = g_volume_get_drive(getVolumeStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(DriveIF)(cast(GDrive*) __p, true); - } - - /** - * Gets the icon for @volume. - * - * Returns: a #GIcon. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - */ - public IconIF getIcon() - { - auto __p = g_volume_get_icon(getVolumeStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Gets the identifier of the given kind for @volume. - * See the [introduction][volume-identifier] for more - * information about volume identifiers. - * - * Params: - * kind = the kind of identifier to return - * - * Returns: a newly allocated string containing the - * requested identifier, or %NULL if the #GVolume - * doesn't have this kind of identifier - */ - public string getIdentifier(string kind) - { - auto retStr = g_volume_get_identifier(getVolumeStruct(), Str.toStringz(kind)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the mount for the @volume. - * - * Returns: a #GMount or %NULL if @volume isn't mounted. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - */ - public MountIF getMount() - { - auto __p = g_volume_get_mount(getVolumeStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(MountIF)(cast(GMount*) __p, true); - } - - /** - * Gets the name of @volume. - * - * Returns: the name for the given @volume. The returned string should - * be freed with g_free() when no longer needed. - */ - public string getName() - { - auto retStr = g_volume_get_name(getVolumeStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the sort key for @volume, if any. - * - * Returns: Sorting key for @volume or %NULL if no such key is available - * - * Since: 2.32 - */ - public string getSortKey() - { - return Str.toString(g_volume_get_sort_key(getVolumeStruct())); - } - - /** - * Gets the symbolic icon for @volume. - * - * Returns: a #GIcon. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - * - * Since: 2.34 - */ - public IconIF getSymbolicIcon() - { - auto __p = g_volume_get_symbolic_icon(getVolumeStruct()); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(IconIF)(cast(GIcon*) __p, true); - } - - /** - * Gets the UUID for the @volume. The reference is typically based on - * the file system UUID for the volume in question and should be - * considered an opaque string. Returns %NULL if there is no UUID - * available. - * - * Returns: the UUID for @volume or %NULL if no UUID - * can be computed. - * The returned string should be freed with g_free() - * when no longer needed. - */ - public string getUuid() - { - auto retStr = g_volume_get_uuid(getVolumeStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Mounts a volume. This is an asynchronous operation, and is - * finished by calling g_volume_mount_finish() with the @volume - * and #GAsyncResult returned in the @callback. - * - * Params: - * flags = flags affecting the operation - * mountOperation = a #GMountOperation or %NULL to avoid user interaction - * cancellable = optional #GCancellable object, %NULL to ignore - * callback = a #GAsyncReadyCallback, or %NULL - * userData = user data that gets passed to @callback - */ - public void mount(GMountMountFlags flags, MountOperation mountOperation, Cancellable cancellable, GAsyncReadyCallback callback, void* userData) - { - g_volume_mount(getVolumeStruct(), flags, (mountOperation is null) ? null : mountOperation.getMountOperationStruct(), (cancellable is null) ? null : cancellable.getCancellableStruct(), callback, userData); - } - - /** - * Finishes mounting a volume. If any errors occurred during the operation, - * @error will be set to contain the errors and %FALSE will be returned. - * - * If the mount operation succeeded, g_volume_get_mount() on @volume - * is guaranteed to return the mount right after calling this - * function; there's no need to listen for the 'mount-added' signal on - * #GVolumeMonitor. - * - * Params: - * result = a #GAsyncResult - * - * Returns: %TRUE, %FALSE if operation failed - * - * Throws: GException on failure. - */ - public bool mountFinish(AsyncResultIF result) - { - GError* err = null; - - auto __p = g_volume_mount_finish(getVolumeStruct(), (result is null) ? null : result.getAsyncResultStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Returns whether the volume should be automatically mounted. - * - * Returns: %TRUE if the volume should be automatically mounted - */ - public bool shouldAutomount() - { - return g_volume_should_automount(getVolumeStruct()) != 0; - } - - /** - * Emitted when the volume has been changed. - */ - gulong addOnChanged(void delegate(VolumeIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "changed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } - - /** - * This signal is emitted when the #GVolume have been removed. If - * the recipient is holding references to the object they should - * release them so the object can be finalized. - */ - gulong addOnRemoved(void delegate(VolumeIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) - { - return Signals.connect(this, "removed", dlg, connectFlags ^ ConnectFlags.SWAPPED); - } -} diff --git a/generated/gtkd/gio/ZlibCompressor.d b/generated/gtkd/gio/ZlibCompressor.d deleted file mode 100644 index 7565b7df4..000000000 --- a/generated/gtkd/gio/ZlibCompressor.d +++ /dev/null @@ -1,140 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ZlibCompressor; - -private import gio.ConverterIF; -private import gio.ConverterT; -private import gio.FileInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * Zlib decompression - */ -public class ZlibCompressor : ObjectG, ConverterIF -{ - /** the main Gtk struct */ - protected GZlibCompressor* gZlibCompressor; - - /** Get the main Gtk struct */ - public GZlibCompressor* getZlibCompressorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gZlibCompressor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gZlibCompressor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GZlibCompressor* gZlibCompressor, bool ownedRef = false) - { - this.gZlibCompressor = gZlibCompressor; - super(cast(GObject*)gZlibCompressor, ownedRef); - } - - // add the Converter capabilities - mixin ConverterT!(GZlibCompressor); - - - /** */ - public static GType getType() - { - return g_zlib_compressor_get_type(); - } - - /** - * Creates a new #GZlibCompressor. - * - * Params: - * format = The format to use for the compressed data - * level = compression level (0-9), -1 for default - * - * Returns: a new #GZlibCompressor - * - * Since: 2.24 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GZlibCompressorFormat format, int level) - { - auto __p = g_zlib_compressor_new(format, level); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GZlibCompressor*) __p, true); - } - - /** - * Returns the #GZlibCompressor:file-info property. - * - * Returns: a #GFileInfo, or %NULL - * - * Since: 2.26 - */ - public FileInfo getFileInfo() - { - auto __p = g_zlib_compressor_get_file_info(gZlibCompressor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p); - } - - /** - * Sets @file_info in @compressor. If non-%NULL, and @compressor's - * #GZlibCompressor:format property is %G_ZLIB_COMPRESSOR_FORMAT_GZIP, - * it will be used to set the file name and modification time in - * the GZIP header of the compressed data. - * - * Note: it is an error to call this function while a compression is in - * progress; it may only be called immediately after creation of @compressor, - * or after resetting it with g_converter_reset(). - * - * Params: - * fileInfo = a #GFileInfo - * - * Since: 2.26 - */ - public void setFileInfo(FileInfo fileInfo) - { - g_zlib_compressor_set_file_info(gZlibCompressor, (fileInfo is null) ? null : fileInfo.getFileInfoStruct()); - } -} diff --git a/generated/gtkd/gio/ZlibDecompressor.d b/generated/gtkd/gio/ZlibDecompressor.d deleted file mode 100644 index c37d0f1f3..000000000 --- a/generated/gtkd/gio/ZlibDecompressor.d +++ /dev/null @@ -1,123 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.ZlibDecompressor; - -private import gio.ConverterIF; -private import gio.ConverterT; -private import gio.FileInfo; -private import gio.c.functions; -public import gio.c.types; -private import glib.ConstructionException; -private import gobject.ObjectG; - - -/** - * Zlib decompression - */ -public class ZlibDecompressor : ObjectG, ConverterIF -{ - /** the main Gtk struct */ - protected GZlibDecompressor* gZlibDecompressor; - - /** Get the main Gtk struct */ - public GZlibDecompressor* getZlibDecompressorStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gZlibDecompressor; - } - - /** the main Gtk struct as a void* */ - protected override void* getStruct() - { - return cast(void*)gZlibDecompressor; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GZlibDecompressor* gZlibDecompressor, bool ownedRef = false) - { - this.gZlibDecompressor = gZlibDecompressor; - super(cast(GObject*)gZlibDecompressor, ownedRef); - } - - // add the Converter capabilities - mixin ConverterT!(GZlibDecompressor); - - - /** */ - public static GType getType() - { - return g_zlib_decompressor_get_type(); - } - - /** - * Creates a new #GZlibDecompressor. - * - * Params: - * format = The format to use for the compressed data - * - * Returns: a new #GZlibDecompressor - * - * Since: 2.24 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GZlibCompressorFormat format) - { - auto __p = g_zlib_decompressor_new(format); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GZlibDecompressor*) __p, true); - } - - /** - * Retrieves the #GFileInfo constructed from the GZIP header data - * of compressed data processed by @compressor, or %NULL if @decompressor's - * #GZlibDecompressor:format property is not %G_ZLIB_COMPRESSOR_FORMAT_GZIP, - * or the header data was not fully processed yet, or it not present in the - * data stream at all. - * - * Returns: a #GFileInfo, or %NULL - * - * Since: 2.26 - */ - public FileInfo getFileInfo() - { - auto __p = g_zlib_decompressor_get_file_info(gZlibDecompressor); - - if(__p is null) - { - return null; - } - - return ObjectG.getDObject!(FileInfo)(cast(GFileInfo*) __p); - } -} diff --git a/generated/gtkd/gio/c/functions.d b/generated/gtkd/gio/c/functions.d deleted file mode 100644 index 8d448cf92..000000000 --- a/generated/gtkd/gio/c/functions.d +++ /dev/null @@ -1,7421 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.c.functions; - -import std.stdio; -import gio.c.types; -import gtkd.Loader; - -version (Windows) - static immutable LIBRARY_GIO = ["libgio-2.0-0.dll;gio-2.0-0.dll;gio-2.dll"]; -else version (OSX) - static immutable LIBRARY_GIO = ["libgio-2.0.0.dylib"]; -else - static immutable LIBRARY_GIO = ["libgio-2.0.so.0"]; - -shared static this() -{ - // gio.Action - - Linker.link(g_action_get_type, "g_action_get_type", LIBRARY_GIO); - Linker.link(g_action_name_is_valid, "g_action_name_is_valid", LIBRARY_GIO); - Linker.link(g_action_parse_detailed_name, "g_action_parse_detailed_name", LIBRARY_GIO); - Linker.link(g_action_print_detailed_name, "g_action_print_detailed_name", LIBRARY_GIO); - Linker.link(g_action_activate, "g_action_activate", LIBRARY_GIO); - Linker.link(g_action_change_state, "g_action_change_state", LIBRARY_GIO); - Linker.link(g_action_get_enabled, "g_action_get_enabled", LIBRARY_GIO); - Linker.link(g_action_get_name, "g_action_get_name", LIBRARY_GIO); - Linker.link(g_action_get_parameter_type, "g_action_get_parameter_type", LIBRARY_GIO); - Linker.link(g_action_get_state, "g_action_get_state", LIBRARY_GIO); - Linker.link(g_action_get_state_hint, "g_action_get_state_hint", LIBRARY_GIO); - Linker.link(g_action_get_state_type, "g_action_get_state_type", LIBRARY_GIO); - - // gio.ActionGroup - - Linker.link(g_action_group_get_type, "g_action_group_get_type", LIBRARY_GIO); - Linker.link(g_action_group_action_added, "g_action_group_action_added", LIBRARY_GIO); - Linker.link(g_action_group_action_enabled_changed, "g_action_group_action_enabled_changed", LIBRARY_GIO); - Linker.link(g_action_group_action_removed, "g_action_group_action_removed", LIBRARY_GIO); - Linker.link(g_action_group_action_state_changed, "g_action_group_action_state_changed", LIBRARY_GIO); - Linker.link(g_action_group_activate_action, "g_action_group_activate_action", LIBRARY_GIO); - Linker.link(g_action_group_change_action_state, "g_action_group_change_action_state", LIBRARY_GIO); - Linker.link(g_action_group_get_action_enabled, "g_action_group_get_action_enabled", LIBRARY_GIO); - Linker.link(g_action_group_get_action_parameter_type, "g_action_group_get_action_parameter_type", LIBRARY_GIO); - Linker.link(g_action_group_get_action_state, "g_action_group_get_action_state", LIBRARY_GIO); - Linker.link(g_action_group_get_action_state_hint, "g_action_group_get_action_state_hint", LIBRARY_GIO); - Linker.link(g_action_group_get_action_state_type, "g_action_group_get_action_state_type", LIBRARY_GIO); - Linker.link(g_action_group_has_action, "g_action_group_has_action", LIBRARY_GIO); - Linker.link(g_action_group_list_actions, "g_action_group_list_actions", LIBRARY_GIO); - Linker.link(g_action_group_query_action, "g_action_group_query_action", LIBRARY_GIO); - - // gio.ActionMap - - Linker.link(g_action_map_get_type, "g_action_map_get_type", LIBRARY_GIO); - Linker.link(g_action_map_add_action, "g_action_map_add_action", LIBRARY_GIO); - Linker.link(g_action_map_add_action_entries, "g_action_map_add_action_entries", LIBRARY_GIO); - Linker.link(g_action_map_lookup_action, "g_action_map_lookup_action", LIBRARY_GIO); - Linker.link(g_action_map_remove_action, "g_action_map_remove_action", LIBRARY_GIO); - - // gio.AppInfo - - Linker.link(g_app_info_get_type, "g_app_info_get_type", LIBRARY_GIO); - Linker.link(g_app_info_create_from_commandline, "g_app_info_create_from_commandline", LIBRARY_GIO); - Linker.link(g_app_info_get_all, "g_app_info_get_all", LIBRARY_GIO); - Linker.link(g_app_info_get_all_for_type, "g_app_info_get_all_for_type", LIBRARY_GIO); - Linker.link(g_app_info_get_default_for_type, "g_app_info_get_default_for_type", LIBRARY_GIO); - Linker.link(g_app_info_get_default_for_uri_scheme, "g_app_info_get_default_for_uri_scheme", LIBRARY_GIO); - Linker.link(g_app_info_get_fallback_for_type, "g_app_info_get_fallback_for_type", LIBRARY_GIO); - Linker.link(g_app_info_get_recommended_for_type, "g_app_info_get_recommended_for_type", LIBRARY_GIO); - Linker.link(g_app_info_launch_default_for_uri, "g_app_info_launch_default_for_uri", LIBRARY_GIO); - Linker.link(g_app_info_launch_default_for_uri_async, "g_app_info_launch_default_for_uri_async", LIBRARY_GIO); - Linker.link(g_app_info_launch_default_for_uri_finish, "g_app_info_launch_default_for_uri_finish", LIBRARY_GIO); - Linker.link(g_app_info_reset_type_associations, "g_app_info_reset_type_associations", LIBRARY_GIO); - Linker.link(g_app_info_add_supports_type, "g_app_info_add_supports_type", LIBRARY_GIO); - Linker.link(g_app_info_can_delete, "g_app_info_can_delete", LIBRARY_GIO); - Linker.link(g_app_info_can_remove_supports_type, "g_app_info_can_remove_supports_type", LIBRARY_GIO); - Linker.link(g_app_info_delete, "g_app_info_delete", LIBRARY_GIO); - Linker.link(g_app_info_dup, "g_app_info_dup", LIBRARY_GIO); - Linker.link(g_app_info_equal, "g_app_info_equal", LIBRARY_GIO); - Linker.link(g_app_info_get_commandline, "g_app_info_get_commandline", LIBRARY_GIO); - Linker.link(g_app_info_get_description, "g_app_info_get_description", LIBRARY_GIO); - Linker.link(g_app_info_get_display_name, "g_app_info_get_display_name", LIBRARY_GIO); - Linker.link(g_app_info_get_executable, "g_app_info_get_executable", LIBRARY_GIO); - Linker.link(g_app_info_get_icon, "g_app_info_get_icon", LIBRARY_GIO); - Linker.link(g_app_info_get_id, "g_app_info_get_id", LIBRARY_GIO); - Linker.link(g_app_info_get_name, "g_app_info_get_name", LIBRARY_GIO); - Linker.link(g_app_info_get_supported_types, "g_app_info_get_supported_types", LIBRARY_GIO); - Linker.link(g_app_info_launch, "g_app_info_launch", LIBRARY_GIO); - Linker.link(g_app_info_launch_uris, "g_app_info_launch_uris", LIBRARY_GIO); - Linker.link(g_app_info_launch_uris_async, "g_app_info_launch_uris_async", LIBRARY_GIO); - Linker.link(g_app_info_launch_uris_finish, "g_app_info_launch_uris_finish", LIBRARY_GIO); - Linker.link(g_app_info_remove_supports_type, "g_app_info_remove_supports_type", LIBRARY_GIO); - Linker.link(g_app_info_set_as_default_for_extension, "g_app_info_set_as_default_for_extension", LIBRARY_GIO); - Linker.link(g_app_info_set_as_default_for_type, "g_app_info_set_as_default_for_type", LIBRARY_GIO); - Linker.link(g_app_info_set_as_last_used_for_type, "g_app_info_set_as_last_used_for_type", LIBRARY_GIO); - Linker.link(g_app_info_should_show, "g_app_info_should_show", LIBRARY_GIO); - Linker.link(g_app_info_supports_files, "g_app_info_supports_files", LIBRARY_GIO); - Linker.link(g_app_info_supports_uris, "g_app_info_supports_uris", LIBRARY_GIO); - - // gio.AppInfoMonitor - - Linker.link(g_app_info_monitor_get_type, "g_app_info_monitor_get_type", LIBRARY_GIO); - Linker.link(g_app_info_monitor_get, "g_app_info_monitor_get", LIBRARY_GIO); - - // gio.AppLaunchContext - - Linker.link(g_app_launch_context_get_type, "g_app_launch_context_get_type", LIBRARY_GIO); - Linker.link(g_app_launch_context_new, "g_app_launch_context_new", LIBRARY_GIO); - Linker.link(g_app_launch_context_get_display, "g_app_launch_context_get_display", LIBRARY_GIO); - Linker.link(g_app_launch_context_get_environment, "g_app_launch_context_get_environment", LIBRARY_GIO); - Linker.link(g_app_launch_context_get_startup_notify_id, "g_app_launch_context_get_startup_notify_id", LIBRARY_GIO); - Linker.link(g_app_launch_context_launch_failed, "g_app_launch_context_launch_failed", LIBRARY_GIO); - Linker.link(g_app_launch_context_setenv, "g_app_launch_context_setenv", LIBRARY_GIO); - Linker.link(g_app_launch_context_unsetenv, "g_app_launch_context_unsetenv", LIBRARY_GIO); - - // gio.Application - - Linker.link(g_application_get_type, "g_application_get_type", LIBRARY_GIO); - Linker.link(g_application_new, "g_application_new", LIBRARY_GIO); - Linker.link(g_application_get_default, "g_application_get_default", LIBRARY_GIO); - Linker.link(g_application_id_is_valid, "g_application_id_is_valid", LIBRARY_GIO); - Linker.link(g_application_activate, "g_application_activate", LIBRARY_GIO); - Linker.link(g_application_add_main_option, "g_application_add_main_option", LIBRARY_GIO); - Linker.link(g_application_add_main_option_entries, "g_application_add_main_option_entries", LIBRARY_GIO); - Linker.link(g_application_add_option_group, "g_application_add_option_group", LIBRARY_GIO); - Linker.link(g_application_bind_busy_property, "g_application_bind_busy_property", LIBRARY_GIO); - Linker.link(g_application_get_application_id, "g_application_get_application_id", LIBRARY_GIO); - Linker.link(g_application_get_dbus_connection, "g_application_get_dbus_connection", LIBRARY_GIO); - Linker.link(g_application_get_dbus_object_path, "g_application_get_dbus_object_path", LIBRARY_GIO); - Linker.link(g_application_get_flags, "g_application_get_flags", LIBRARY_GIO); - Linker.link(g_application_get_inactivity_timeout, "g_application_get_inactivity_timeout", LIBRARY_GIO); - Linker.link(g_application_get_is_busy, "g_application_get_is_busy", LIBRARY_GIO); - Linker.link(g_application_get_is_registered, "g_application_get_is_registered", LIBRARY_GIO); - Linker.link(g_application_get_is_remote, "g_application_get_is_remote", LIBRARY_GIO); - Linker.link(g_application_get_resource_base_path, "g_application_get_resource_base_path", LIBRARY_GIO); - Linker.link(g_application_hold, "g_application_hold", LIBRARY_GIO); - Linker.link(g_application_mark_busy, "g_application_mark_busy", LIBRARY_GIO); - Linker.link(g_application_open, "g_application_open", LIBRARY_GIO); - Linker.link(g_application_quit, "g_application_quit", LIBRARY_GIO); - Linker.link(g_application_register, "g_application_register", LIBRARY_GIO); - Linker.link(g_application_release, "g_application_release", LIBRARY_GIO); - Linker.link(g_application_run, "g_application_run", LIBRARY_GIO); - Linker.link(g_application_send_notification, "g_application_send_notification", LIBRARY_GIO); - Linker.link(g_application_set_action_group, "g_application_set_action_group", LIBRARY_GIO); - Linker.link(g_application_set_application_id, "g_application_set_application_id", LIBRARY_GIO); - Linker.link(g_application_set_default, "g_application_set_default", LIBRARY_GIO); - Linker.link(g_application_set_flags, "g_application_set_flags", LIBRARY_GIO); - Linker.link(g_application_set_inactivity_timeout, "g_application_set_inactivity_timeout", LIBRARY_GIO); - Linker.link(g_application_set_option_context_description, "g_application_set_option_context_description", LIBRARY_GIO); - Linker.link(g_application_set_option_context_parameter_string, "g_application_set_option_context_parameter_string", LIBRARY_GIO); - Linker.link(g_application_set_option_context_summary, "g_application_set_option_context_summary", LIBRARY_GIO); - Linker.link(g_application_set_resource_base_path, "g_application_set_resource_base_path", LIBRARY_GIO); - Linker.link(g_application_unbind_busy_property, "g_application_unbind_busy_property", LIBRARY_GIO); - Linker.link(g_application_unmark_busy, "g_application_unmark_busy", LIBRARY_GIO); - Linker.link(g_application_withdraw_notification, "g_application_withdraw_notification", LIBRARY_GIO); - - // gio.ApplicationCommandLine - - Linker.link(g_application_command_line_get_type, "g_application_command_line_get_type", LIBRARY_GIO); - Linker.link(g_application_command_line_create_file_for_arg, "g_application_command_line_create_file_for_arg", LIBRARY_GIO); - Linker.link(g_application_command_line_get_arguments, "g_application_command_line_get_arguments", LIBRARY_GIO); - Linker.link(g_application_command_line_get_cwd, "g_application_command_line_get_cwd", LIBRARY_GIO); - Linker.link(g_application_command_line_get_environ, "g_application_command_line_get_environ", LIBRARY_GIO); - Linker.link(g_application_command_line_get_exit_status, "g_application_command_line_get_exit_status", LIBRARY_GIO); - Linker.link(g_application_command_line_get_is_remote, "g_application_command_line_get_is_remote", LIBRARY_GIO); - Linker.link(g_application_command_line_get_options_dict, "g_application_command_line_get_options_dict", LIBRARY_GIO); - Linker.link(g_application_command_line_get_platform_data, "g_application_command_line_get_platform_data", LIBRARY_GIO); - Linker.link(g_application_command_line_get_stdin, "g_application_command_line_get_stdin", LIBRARY_GIO); - Linker.link(g_application_command_line_getenv, "g_application_command_line_getenv", LIBRARY_GIO); - Linker.link(g_application_command_line_print, "g_application_command_line_print", LIBRARY_GIO); - Linker.link(g_application_command_line_printerr, "g_application_command_line_printerr", LIBRARY_GIO); - Linker.link(g_application_command_line_set_exit_status, "g_application_command_line_set_exit_status", LIBRARY_GIO); - - // gio.AsyncInitable - - Linker.link(g_async_initable_get_type, "g_async_initable_get_type", LIBRARY_GIO); - Linker.link(g_async_initable_new_async, "g_async_initable_new_async", LIBRARY_GIO); - Linker.link(g_async_initable_new_valist_async, "g_async_initable_new_valist_async", LIBRARY_GIO); - Linker.link(g_async_initable_newv_async, "g_async_initable_newv_async", LIBRARY_GIO); - Linker.link(g_async_initable_init_async, "g_async_initable_init_async", LIBRARY_GIO); - Linker.link(g_async_initable_init_finish, "g_async_initable_init_finish", LIBRARY_GIO); - Linker.link(g_async_initable_new_finish, "g_async_initable_new_finish", LIBRARY_GIO); - - // gio.AsyncResult - - Linker.link(g_async_result_get_type, "g_async_result_get_type", LIBRARY_GIO); - Linker.link(g_async_result_get_source_object, "g_async_result_get_source_object", LIBRARY_GIO); - Linker.link(g_async_result_get_user_data, "g_async_result_get_user_data", LIBRARY_GIO); - Linker.link(g_async_result_is_tagged, "g_async_result_is_tagged", LIBRARY_GIO); - Linker.link(g_async_result_legacy_propagate_error, "g_async_result_legacy_propagate_error", LIBRARY_GIO); - - // gio.BufferedInputStream - - Linker.link(g_buffered_input_stream_get_type, "g_buffered_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_new, "g_buffered_input_stream_new", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_new_sized, "g_buffered_input_stream_new_sized", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_fill, "g_buffered_input_stream_fill", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_fill_async, "g_buffered_input_stream_fill_async", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_fill_finish, "g_buffered_input_stream_fill_finish", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_get_available, "g_buffered_input_stream_get_available", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_get_buffer_size, "g_buffered_input_stream_get_buffer_size", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_peek, "g_buffered_input_stream_peek", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_peek_buffer, "g_buffered_input_stream_peek_buffer", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_read_byte, "g_buffered_input_stream_read_byte", LIBRARY_GIO); - Linker.link(g_buffered_input_stream_set_buffer_size, "g_buffered_input_stream_set_buffer_size", LIBRARY_GIO); - - // gio.BufferedOutputStream - - Linker.link(g_buffered_output_stream_get_type, "g_buffered_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_buffered_output_stream_new, "g_buffered_output_stream_new", LIBRARY_GIO); - Linker.link(g_buffered_output_stream_new_sized, "g_buffered_output_stream_new_sized", LIBRARY_GIO); - Linker.link(g_buffered_output_stream_get_auto_grow, "g_buffered_output_stream_get_auto_grow", LIBRARY_GIO); - Linker.link(g_buffered_output_stream_get_buffer_size, "g_buffered_output_stream_get_buffer_size", LIBRARY_GIO); - Linker.link(g_buffered_output_stream_set_auto_grow, "g_buffered_output_stream_set_auto_grow", LIBRARY_GIO); - Linker.link(g_buffered_output_stream_set_buffer_size, "g_buffered_output_stream_set_buffer_size", LIBRARY_GIO); - - // gio.BytesIcon - - Linker.link(g_bytes_icon_get_type, "g_bytes_icon_get_type", LIBRARY_GIO); - Linker.link(g_bytes_icon_new, "g_bytes_icon_new", LIBRARY_GIO); - Linker.link(g_bytes_icon_get_bytes, "g_bytes_icon_get_bytes", LIBRARY_GIO); - - // gio.Cancellable - - Linker.link(g_cancellable_get_type, "g_cancellable_get_type", LIBRARY_GIO); - Linker.link(g_cancellable_new, "g_cancellable_new", LIBRARY_GIO); - Linker.link(g_cancellable_get_current, "g_cancellable_get_current", LIBRARY_GIO); - Linker.link(g_cancellable_cancel, "g_cancellable_cancel", LIBRARY_GIO); - Linker.link(g_cancellable_connect, "g_cancellable_connect", LIBRARY_GIO); - Linker.link(g_cancellable_disconnect, "g_cancellable_disconnect", LIBRARY_GIO); - Linker.link(g_cancellable_get_fd, "g_cancellable_get_fd", LIBRARY_GIO); - Linker.link(g_cancellable_is_cancelled, "g_cancellable_is_cancelled", LIBRARY_GIO); - Linker.link(g_cancellable_make_pollfd, "g_cancellable_make_pollfd", LIBRARY_GIO); - Linker.link(g_cancellable_pop_current, "g_cancellable_pop_current", LIBRARY_GIO); - Linker.link(g_cancellable_push_current, "g_cancellable_push_current", LIBRARY_GIO); - Linker.link(g_cancellable_release_fd, "g_cancellable_release_fd", LIBRARY_GIO); - Linker.link(g_cancellable_reset, "g_cancellable_reset", LIBRARY_GIO); - Linker.link(g_cancellable_set_error_if_cancelled, "g_cancellable_set_error_if_cancelled", LIBRARY_GIO); - Linker.link(g_cancellable_source_new, "g_cancellable_source_new", LIBRARY_GIO); - - // gio.CharsetConverter - - Linker.link(g_charset_converter_get_type, "g_charset_converter_get_type", LIBRARY_GIO); - Linker.link(g_charset_converter_new, "g_charset_converter_new", LIBRARY_GIO); - Linker.link(g_charset_converter_get_num_fallbacks, "g_charset_converter_get_num_fallbacks", LIBRARY_GIO); - Linker.link(g_charset_converter_get_use_fallback, "g_charset_converter_get_use_fallback", LIBRARY_GIO); - Linker.link(g_charset_converter_set_use_fallback, "g_charset_converter_set_use_fallback", LIBRARY_GIO); - - // gio.Converter - - Linker.link(g_converter_get_type, "g_converter_get_type", LIBRARY_GIO); - Linker.link(g_converter_convert, "g_converter_convert", LIBRARY_GIO); - Linker.link(g_converter_reset, "g_converter_reset", LIBRARY_GIO); - - // gio.ConverterInputStream - - Linker.link(g_converter_input_stream_get_type, "g_converter_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_converter_input_stream_new, "g_converter_input_stream_new", LIBRARY_GIO); - Linker.link(g_converter_input_stream_get_converter, "g_converter_input_stream_get_converter", LIBRARY_GIO); - - // gio.ConverterOutputStream - - Linker.link(g_converter_output_stream_get_type, "g_converter_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_converter_output_stream_new, "g_converter_output_stream_new", LIBRARY_GIO); - Linker.link(g_converter_output_stream_get_converter, "g_converter_output_stream_get_converter", LIBRARY_GIO); - - // gio.Credentials - - Linker.link(g_credentials_get_type, "g_credentials_get_type", LIBRARY_GIO); - Linker.link(g_credentials_new, "g_credentials_new", LIBRARY_GIO); - Linker.link(g_credentials_get_native, "g_credentials_get_native", LIBRARY_GIO); - Linker.link(g_credentials_get_unix_pid, "g_credentials_get_unix_pid", LIBRARY_GIO); - Linker.link(g_credentials_get_unix_user, "g_credentials_get_unix_user", LIBRARY_GIO); - Linker.link(g_credentials_is_same_user, "g_credentials_is_same_user", LIBRARY_GIO); - Linker.link(g_credentials_set_native, "g_credentials_set_native", LIBRARY_GIO); - Linker.link(g_credentials_set_unix_user, "g_credentials_set_unix_user", LIBRARY_GIO); - Linker.link(g_credentials_to_string, "g_credentials_to_string", LIBRARY_GIO); - - // gio.DBusActionGroup - - Linker.link(g_dbus_action_group_get_type, "g_dbus_action_group_get_type", LIBRARY_GIO); - Linker.link(g_dbus_action_group_get, "g_dbus_action_group_get", LIBRARY_GIO); - - // gio.DBusAnnotationInfo - - Linker.link(g_dbus_annotation_info_get_type, "g_dbus_annotation_info_get_type", LIBRARY_GIO); - Linker.link(g_dbus_annotation_info_ref, "g_dbus_annotation_info_ref", LIBRARY_GIO); - Linker.link(g_dbus_annotation_info_unref, "g_dbus_annotation_info_unref", LIBRARY_GIO); - Linker.link(g_dbus_annotation_info_lookup, "g_dbus_annotation_info_lookup", LIBRARY_GIO); - - // gio.DBusArgInfo - - Linker.link(g_dbus_arg_info_get_type, "g_dbus_arg_info_get_type", LIBRARY_GIO); - Linker.link(g_dbus_arg_info_ref, "g_dbus_arg_info_ref", LIBRARY_GIO); - Linker.link(g_dbus_arg_info_unref, "g_dbus_arg_info_unref", LIBRARY_GIO); - - // gio.DBusAuthObserver - - Linker.link(g_dbus_auth_observer_get_type, "g_dbus_auth_observer_get_type", LIBRARY_GIO); - Linker.link(g_dbus_auth_observer_new, "g_dbus_auth_observer_new", LIBRARY_GIO); - Linker.link(g_dbus_auth_observer_allow_mechanism, "g_dbus_auth_observer_allow_mechanism", LIBRARY_GIO); - Linker.link(g_dbus_auth_observer_authorize_authenticated_peer, "g_dbus_auth_observer_authorize_authenticated_peer", LIBRARY_GIO); - - // gio.DBusConnection - - Linker.link(g_dbus_connection_get_type, "g_dbus_connection_get_type", LIBRARY_GIO); - Linker.link(g_dbus_connection_new_finish, "g_dbus_connection_new_finish", LIBRARY_GIO); - Linker.link(g_dbus_connection_new_for_address_finish, "g_dbus_connection_new_for_address_finish", LIBRARY_GIO); - Linker.link(g_dbus_connection_new_for_address_sync, "g_dbus_connection_new_for_address_sync", LIBRARY_GIO); - Linker.link(g_dbus_connection_new_sync, "g_dbus_connection_new_sync", LIBRARY_GIO); - Linker.link(g_dbus_connection_new, "g_dbus_connection_new", LIBRARY_GIO); - Linker.link(g_dbus_connection_new_for_address, "g_dbus_connection_new_for_address", LIBRARY_GIO); - Linker.link(g_dbus_connection_add_filter, "g_dbus_connection_add_filter", LIBRARY_GIO); - Linker.link(g_dbus_connection_call, "g_dbus_connection_call", LIBRARY_GIO); - Linker.link(g_dbus_connection_call_finish, "g_dbus_connection_call_finish", LIBRARY_GIO); - Linker.link(g_dbus_connection_call_sync, "g_dbus_connection_call_sync", LIBRARY_GIO); - Linker.link(g_dbus_connection_call_with_unix_fd_list, "g_dbus_connection_call_with_unix_fd_list", LIBRARY_GIO); - Linker.link(g_dbus_connection_call_with_unix_fd_list_finish, "g_dbus_connection_call_with_unix_fd_list_finish", LIBRARY_GIO); - Linker.link(g_dbus_connection_call_with_unix_fd_list_sync, "g_dbus_connection_call_with_unix_fd_list_sync", LIBRARY_GIO); - Linker.link(g_dbus_connection_close, "g_dbus_connection_close", LIBRARY_GIO); - Linker.link(g_dbus_connection_close_finish, "g_dbus_connection_close_finish", LIBRARY_GIO); - Linker.link(g_dbus_connection_close_sync, "g_dbus_connection_close_sync", LIBRARY_GIO); - Linker.link(g_dbus_connection_emit_signal, "g_dbus_connection_emit_signal", LIBRARY_GIO); - Linker.link(g_dbus_connection_export_action_group, "g_dbus_connection_export_action_group", LIBRARY_GIO); - Linker.link(g_dbus_connection_export_menu_model, "g_dbus_connection_export_menu_model", LIBRARY_GIO); - Linker.link(g_dbus_connection_flush, "g_dbus_connection_flush", LIBRARY_GIO); - Linker.link(g_dbus_connection_flush_finish, "g_dbus_connection_flush_finish", LIBRARY_GIO); - Linker.link(g_dbus_connection_flush_sync, "g_dbus_connection_flush_sync", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_capabilities, "g_dbus_connection_get_capabilities", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_exit_on_close, "g_dbus_connection_get_exit_on_close", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_flags, "g_dbus_connection_get_flags", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_guid, "g_dbus_connection_get_guid", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_last_serial, "g_dbus_connection_get_last_serial", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_peer_credentials, "g_dbus_connection_get_peer_credentials", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_stream, "g_dbus_connection_get_stream", LIBRARY_GIO); - Linker.link(g_dbus_connection_get_unique_name, "g_dbus_connection_get_unique_name", LIBRARY_GIO); - Linker.link(g_dbus_connection_is_closed, "g_dbus_connection_is_closed", LIBRARY_GIO); - Linker.link(g_dbus_connection_register_object, "g_dbus_connection_register_object", LIBRARY_GIO); - Linker.link(g_dbus_connection_register_object_with_closures, "g_dbus_connection_register_object_with_closures", LIBRARY_GIO); - Linker.link(g_dbus_connection_register_subtree, "g_dbus_connection_register_subtree", LIBRARY_GIO); - Linker.link(g_dbus_connection_remove_filter, "g_dbus_connection_remove_filter", LIBRARY_GIO); - Linker.link(g_dbus_connection_send_message, "g_dbus_connection_send_message", LIBRARY_GIO); - Linker.link(g_dbus_connection_send_message_with_reply, "g_dbus_connection_send_message_with_reply", LIBRARY_GIO); - Linker.link(g_dbus_connection_send_message_with_reply_finish, "g_dbus_connection_send_message_with_reply_finish", LIBRARY_GIO); - Linker.link(g_dbus_connection_send_message_with_reply_sync, "g_dbus_connection_send_message_with_reply_sync", LIBRARY_GIO); - Linker.link(g_dbus_connection_set_exit_on_close, "g_dbus_connection_set_exit_on_close", LIBRARY_GIO); - Linker.link(g_dbus_connection_signal_subscribe, "g_dbus_connection_signal_subscribe", LIBRARY_GIO); - Linker.link(g_dbus_connection_signal_unsubscribe, "g_dbus_connection_signal_unsubscribe", LIBRARY_GIO); - Linker.link(g_dbus_connection_start_message_processing, "g_dbus_connection_start_message_processing", LIBRARY_GIO); - Linker.link(g_dbus_connection_unexport_action_group, "g_dbus_connection_unexport_action_group", LIBRARY_GIO); - Linker.link(g_dbus_connection_unexport_menu_model, "g_dbus_connection_unexport_menu_model", LIBRARY_GIO); - Linker.link(g_dbus_connection_unregister_object, "g_dbus_connection_unregister_object", LIBRARY_GIO); - Linker.link(g_dbus_connection_unregister_subtree, "g_dbus_connection_unregister_subtree", LIBRARY_GIO); - Linker.link(g_bus_get, "g_bus_get", LIBRARY_GIO); - Linker.link(g_bus_get_finish, "g_bus_get_finish", LIBRARY_GIO); - Linker.link(g_bus_get_sync, "g_bus_get_sync", LIBRARY_GIO); - - // gio.DBusInterface - - Linker.link(g_dbus_interface_get_type, "g_dbus_interface_get_type", LIBRARY_GIO); - Linker.link(g_dbus_interface_dup_object, "g_dbus_interface_dup_object", LIBRARY_GIO); - Linker.link(g_dbus_interface_get_info, "g_dbus_interface_get_info", LIBRARY_GIO); - Linker.link(g_dbus_interface_get_object, "g_dbus_interface_get_object", LIBRARY_GIO); - Linker.link(g_dbus_interface_set_object, "g_dbus_interface_set_object", LIBRARY_GIO); - - // gio.DBusInterfaceInfo - - Linker.link(g_dbus_interface_info_get_type, "g_dbus_interface_info_get_type", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_cache_build, "g_dbus_interface_info_cache_build", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_cache_release, "g_dbus_interface_info_cache_release", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_generate_xml, "g_dbus_interface_info_generate_xml", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_lookup_method, "g_dbus_interface_info_lookup_method", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_lookup_property, "g_dbus_interface_info_lookup_property", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_lookup_signal, "g_dbus_interface_info_lookup_signal", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_ref, "g_dbus_interface_info_ref", LIBRARY_GIO); - Linker.link(g_dbus_interface_info_unref, "g_dbus_interface_info_unref", LIBRARY_GIO); - - // gio.DBusInterfaceSkeleton - - Linker.link(g_dbus_interface_skeleton_get_type, "g_dbus_interface_skeleton_get_type", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_export, "g_dbus_interface_skeleton_export", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_flush, "g_dbus_interface_skeleton_flush", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_get_connection, "g_dbus_interface_skeleton_get_connection", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_get_connections, "g_dbus_interface_skeleton_get_connections", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_get_flags, "g_dbus_interface_skeleton_get_flags", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_get_info, "g_dbus_interface_skeleton_get_info", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_get_object_path, "g_dbus_interface_skeleton_get_object_path", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_get_properties, "g_dbus_interface_skeleton_get_properties", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_get_vtable, "g_dbus_interface_skeleton_get_vtable", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_has_connection, "g_dbus_interface_skeleton_has_connection", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_set_flags, "g_dbus_interface_skeleton_set_flags", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_unexport, "g_dbus_interface_skeleton_unexport", LIBRARY_GIO); - Linker.link(g_dbus_interface_skeleton_unexport_from_connection, "g_dbus_interface_skeleton_unexport_from_connection", LIBRARY_GIO); - - // gio.DBusMenuModel - - Linker.link(g_dbus_menu_model_get_type, "g_dbus_menu_model_get_type", LIBRARY_GIO); - Linker.link(g_dbus_menu_model_get, "g_dbus_menu_model_get", LIBRARY_GIO); - - // gio.DBusMessage - - Linker.link(g_dbus_message_get_type, "g_dbus_message_get_type", LIBRARY_GIO); - Linker.link(g_dbus_message_new, "g_dbus_message_new", LIBRARY_GIO); - Linker.link(g_dbus_message_new_from_blob, "g_dbus_message_new_from_blob", LIBRARY_GIO); - Linker.link(g_dbus_message_new_method_call, "g_dbus_message_new_method_call", LIBRARY_GIO); - Linker.link(g_dbus_message_new_signal, "g_dbus_message_new_signal", LIBRARY_GIO); - Linker.link(g_dbus_message_bytes_needed, "g_dbus_message_bytes_needed", LIBRARY_GIO); - Linker.link(g_dbus_message_copy, "g_dbus_message_copy", LIBRARY_GIO); - Linker.link(g_dbus_message_get_arg0, "g_dbus_message_get_arg0", LIBRARY_GIO); - Linker.link(g_dbus_message_get_body, "g_dbus_message_get_body", LIBRARY_GIO); - Linker.link(g_dbus_message_get_byte_order, "g_dbus_message_get_byte_order", LIBRARY_GIO); - Linker.link(g_dbus_message_get_destination, "g_dbus_message_get_destination", LIBRARY_GIO); - Linker.link(g_dbus_message_get_error_name, "g_dbus_message_get_error_name", LIBRARY_GIO); - Linker.link(g_dbus_message_get_flags, "g_dbus_message_get_flags", LIBRARY_GIO); - Linker.link(g_dbus_message_get_header, "g_dbus_message_get_header", LIBRARY_GIO); - Linker.link(g_dbus_message_get_header_fields, "g_dbus_message_get_header_fields", LIBRARY_GIO); - Linker.link(g_dbus_message_get_interface, "g_dbus_message_get_interface", LIBRARY_GIO); - Linker.link(g_dbus_message_get_locked, "g_dbus_message_get_locked", LIBRARY_GIO); - Linker.link(g_dbus_message_get_member, "g_dbus_message_get_member", LIBRARY_GIO); - Linker.link(g_dbus_message_get_message_type, "g_dbus_message_get_message_type", LIBRARY_GIO); - Linker.link(g_dbus_message_get_num_unix_fds, "g_dbus_message_get_num_unix_fds", LIBRARY_GIO); - Linker.link(g_dbus_message_get_path, "g_dbus_message_get_path", LIBRARY_GIO); - Linker.link(g_dbus_message_get_reply_serial, "g_dbus_message_get_reply_serial", LIBRARY_GIO); - Linker.link(g_dbus_message_get_sender, "g_dbus_message_get_sender", LIBRARY_GIO); - Linker.link(g_dbus_message_get_serial, "g_dbus_message_get_serial", LIBRARY_GIO); - Linker.link(g_dbus_message_get_signature, "g_dbus_message_get_signature", LIBRARY_GIO); - Linker.link(g_dbus_message_get_unix_fd_list, "g_dbus_message_get_unix_fd_list", LIBRARY_GIO); - Linker.link(g_dbus_message_lock, "g_dbus_message_lock", LIBRARY_GIO); - Linker.link(g_dbus_message_new_method_error, "g_dbus_message_new_method_error", LIBRARY_GIO); - Linker.link(g_dbus_message_new_method_error_literal, "g_dbus_message_new_method_error_literal", LIBRARY_GIO); - Linker.link(g_dbus_message_new_method_error_valist, "g_dbus_message_new_method_error_valist", LIBRARY_GIO); - Linker.link(g_dbus_message_new_method_reply, "g_dbus_message_new_method_reply", LIBRARY_GIO); - Linker.link(g_dbus_message_print, "g_dbus_message_print", LIBRARY_GIO); - Linker.link(g_dbus_message_set_body, "g_dbus_message_set_body", LIBRARY_GIO); - Linker.link(g_dbus_message_set_byte_order, "g_dbus_message_set_byte_order", LIBRARY_GIO); - Linker.link(g_dbus_message_set_destination, "g_dbus_message_set_destination", LIBRARY_GIO); - Linker.link(g_dbus_message_set_error_name, "g_dbus_message_set_error_name", LIBRARY_GIO); - Linker.link(g_dbus_message_set_flags, "g_dbus_message_set_flags", LIBRARY_GIO); - Linker.link(g_dbus_message_set_header, "g_dbus_message_set_header", LIBRARY_GIO); - Linker.link(g_dbus_message_set_interface, "g_dbus_message_set_interface", LIBRARY_GIO); - Linker.link(g_dbus_message_set_member, "g_dbus_message_set_member", LIBRARY_GIO); - Linker.link(g_dbus_message_set_message_type, "g_dbus_message_set_message_type", LIBRARY_GIO); - Linker.link(g_dbus_message_set_num_unix_fds, "g_dbus_message_set_num_unix_fds", LIBRARY_GIO); - Linker.link(g_dbus_message_set_path, "g_dbus_message_set_path", LIBRARY_GIO); - Linker.link(g_dbus_message_set_reply_serial, "g_dbus_message_set_reply_serial", LIBRARY_GIO); - Linker.link(g_dbus_message_set_sender, "g_dbus_message_set_sender", LIBRARY_GIO); - Linker.link(g_dbus_message_set_serial, "g_dbus_message_set_serial", LIBRARY_GIO); - Linker.link(g_dbus_message_set_signature, "g_dbus_message_set_signature", LIBRARY_GIO); - Linker.link(g_dbus_message_set_unix_fd_list, "g_dbus_message_set_unix_fd_list", LIBRARY_GIO); - Linker.link(g_dbus_message_to_blob, "g_dbus_message_to_blob", LIBRARY_GIO); - Linker.link(g_dbus_message_to_gerror, "g_dbus_message_to_gerror", LIBRARY_GIO); - - // gio.DBusMethodInfo - - Linker.link(g_dbus_method_info_get_type, "g_dbus_method_info_get_type", LIBRARY_GIO); - Linker.link(g_dbus_method_info_ref, "g_dbus_method_info_ref", LIBRARY_GIO); - Linker.link(g_dbus_method_info_unref, "g_dbus_method_info_unref", LIBRARY_GIO); - - // gio.DBusMethodInvocation - - Linker.link(g_dbus_method_invocation_get_type, "g_dbus_method_invocation_get_type", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_connection, "g_dbus_method_invocation_get_connection", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_interface_name, "g_dbus_method_invocation_get_interface_name", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_message, "g_dbus_method_invocation_get_message", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_method_info, "g_dbus_method_invocation_get_method_info", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_method_name, "g_dbus_method_invocation_get_method_name", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_object_path, "g_dbus_method_invocation_get_object_path", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_parameters, "g_dbus_method_invocation_get_parameters", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_property_info, "g_dbus_method_invocation_get_property_info", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_sender, "g_dbus_method_invocation_get_sender", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_get_user_data, "g_dbus_method_invocation_get_user_data", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_return_dbus_error, "g_dbus_method_invocation_return_dbus_error", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_return_error, "g_dbus_method_invocation_return_error", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_return_error_literal, "g_dbus_method_invocation_return_error_literal", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_return_error_valist, "g_dbus_method_invocation_return_error_valist", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_return_gerror, "g_dbus_method_invocation_return_gerror", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_return_value, "g_dbus_method_invocation_return_value", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_return_value_with_unix_fd_list, "g_dbus_method_invocation_return_value_with_unix_fd_list", LIBRARY_GIO); - Linker.link(g_dbus_method_invocation_take_error, "g_dbus_method_invocation_take_error", LIBRARY_GIO); - - // gio.DBusNodeInfo - - Linker.link(g_dbus_node_info_get_type, "g_dbus_node_info_get_type", LIBRARY_GIO); - Linker.link(g_dbus_node_info_new_for_xml, "g_dbus_node_info_new_for_xml", LIBRARY_GIO); - Linker.link(g_dbus_node_info_generate_xml, "g_dbus_node_info_generate_xml", LIBRARY_GIO); - Linker.link(g_dbus_node_info_lookup_interface, "g_dbus_node_info_lookup_interface", LIBRARY_GIO); - Linker.link(g_dbus_node_info_ref, "g_dbus_node_info_ref", LIBRARY_GIO); - Linker.link(g_dbus_node_info_unref, "g_dbus_node_info_unref", LIBRARY_GIO); - - // gio.DBusObject - - Linker.link(g_dbus_object_get_type, "g_dbus_object_get_type", LIBRARY_GIO); - Linker.link(g_dbus_object_get_interface, "g_dbus_object_get_interface", LIBRARY_GIO); - Linker.link(g_dbus_object_get_interfaces, "g_dbus_object_get_interfaces", LIBRARY_GIO); - Linker.link(g_dbus_object_get_object_path, "g_dbus_object_get_object_path", LIBRARY_GIO); - - // gio.DBusObjectManager - - Linker.link(g_dbus_object_manager_get_type, "g_dbus_object_manager_get_type", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_get_interface, "g_dbus_object_manager_get_interface", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_get_object, "g_dbus_object_manager_get_object", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_get_object_path, "g_dbus_object_manager_get_object_path", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_get_objects, "g_dbus_object_manager_get_objects", LIBRARY_GIO); - - // gio.DBusObjectManagerClient - - Linker.link(g_dbus_object_manager_client_get_type, "g_dbus_object_manager_client_get_type", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_new_finish, "g_dbus_object_manager_client_new_finish", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_new_for_bus_finish, "g_dbus_object_manager_client_new_for_bus_finish", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_new_for_bus_sync, "g_dbus_object_manager_client_new_for_bus_sync", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_new_sync, "g_dbus_object_manager_client_new_sync", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_new, "g_dbus_object_manager_client_new", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_new_for_bus, "g_dbus_object_manager_client_new_for_bus", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_get_connection, "g_dbus_object_manager_client_get_connection", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_get_flags, "g_dbus_object_manager_client_get_flags", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_get_name, "g_dbus_object_manager_client_get_name", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_client_get_name_owner, "g_dbus_object_manager_client_get_name_owner", LIBRARY_GIO); - - // gio.DBusObjectManagerServer - - Linker.link(g_dbus_object_manager_server_get_type, "g_dbus_object_manager_server_get_type", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_server_new, "g_dbus_object_manager_server_new", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_server_export, "g_dbus_object_manager_server_export", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_server_export_uniquely, "g_dbus_object_manager_server_export_uniquely", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_server_get_connection, "g_dbus_object_manager_server_get_connection", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_server_is_exported, "g_dbus_object_manager_server_is_exported", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_server_set_connection, "g_dbus_object_manager_server_set_connection", LIBRARY_GIO); - Linker.link(g_dbus_object_manager_server_unexport, "g_dbus_object_manager_server_unexport", LIBRARY_GIO); - - // gio.DBusObjectProxy - - Linker.link(g_dbus_object_proxy_get_type, "g_dbus_object_proxy_get_type", LIBRARY_GIO); - Linker.link(g_dbus_object_proxy_new, "g_dbus_object_proxy_new", LIBRARY_GIO); - Linker.link(g_dbus_object_proxy_get_connection, "g_dbus_object_proxy_get_connection", LIBRARY_GIO); - - // gio.DBusObjectSkeleton - - Linker.link(g_dbus_object_skeleton_get_type, "g_dbus_object_skeleton_get_type", LIBRARY_GIO); - Linker.link(g_dbus_object_skeleton_new, "g_dbus_object_skeleton_new", LIBRARY_GIO); - Linker.link(g_dbus_object_skeleton_add_interface, "g_dbus_object_skeleton_add_interface", LIBRARY_GIO); - Linker.link(g_dbus_object_skeleton_flush, "g_dbus_object_skeleton_flush", LIBRARY_GIO); - Linker.link(g_dbus_object_skeleton_remove_interface, "g_dbus_object_skeleton_remove_interface", LIBRARY_GIO); - Linker.link(g_dbus_object_skeleton_remove_interface_by_name, "g_dbus_object_skeleton_remove_interface_by_name", LIBRARY_GIO); - Linker.link(g_dbus_object_skeleton_set_object_path, "g_dbus_object_skeleton_set_object_path", LIBRARY_GIO); - - // gio.DBusPropertyInfo - - Linker.link(g_dbus_property_info_get_type, "g_dbus_property_info_get_type", LIBRARY_GIO); - Linker.link(g_dbus_property_info_ref, "g_dbus_property_info_ref", LIBRARY_GIO); - Linker.link(g_dbus_property_info_unref, "g_dbus_property_info_unref", LIBRARY_GIO); - - // gio.DBusProxy - - Linker.link(g_dbus_proxy_get_type, "g_dbus_proxy_get_type", LIBRARY_GIO); - Linker.link(g_dbus_proxy_new_finish, "g_dbus_proxy_new_finish", LIBRARY_GIO); - Linker.link(g_dbus_proxy_new_for_bus_finish, "g_dbus_proxy_new_for_bus_finish", LIBRARY_GIO); - Linker.link(g_dbus_proxy_new_for_bus_sync, "g_dbus_proxy_new_for_bus_sync", LIBRARY_GIO); - Linker.link(g_dbus_proxy_new_sync, "g_dbus_proxy_new_sync", LIBRARY_GIO); - Linker.link(g_dbus_proxy_new, "g_dbus_proxy_new", LIBRARY_GIO); - Linker.link(g_dbus_proxy_new_for_bus, "g_dbus_proxy_new_for_bus", LIBRARY_GIO); - Linker.link(g_dbus_proxy_call, "g_dbus_proxy_call", LIBRARY_GIO); - Linker.link(g_dbus_proxy_call_finish, "g_dbus_proxy_call_finish", LIBRARY_GIO); - Linker.link(g_dbus_proxy_call_sync, "g_dbus_proxy_call_sync", LIBRARY_GIO); - Linker.link(g_dbus_proxy_call_with_unix_fd_list, "g_dbus_proxy_call_with_unix_fd_list", LIBRARY_GIO); - Linker.link(g_dbus_proxy_call_with_unix_fd_list_finish, "g_dbus_proxy_call_with_unix_fd_list_finish", LIBRARY_GIO); - Linker.link(g_dbus_proxy_call_with_unix_fd_list_sync, "g_dbus_proxy_call_with_unix_fd_list_sync", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_cached_property, "g_dbus_proxy_get_cached_property", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_cached_property_names, "g_dbus_proxy_get_cached_property_names", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_connection, "g_dbus_proxy_get_connection", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_default_timeout, "g_dbus_proxy_get_default_timeout", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_flags, "g_dbus_proxy_get_flags", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_interface_info, "g_dbus_proxy_get_interface_info", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_interface_name, "g_dbus_proxy_get_interface_name", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_name, "g_dbus_proxy_get_name", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_name_owner, "g_dbus_proxy_get_name_owner", LIBRARY_GIO); - Linker.link(g_dbus_proxy_get_object_path, "g_dbus_proxy_get_object_path", LIBRARY_GIO); - Linker.link(g_dbus_proxy_set_cached_property, "g_dbus_proxy_set_cached_property", LIBRARY_GIO); - Linker.link(g_dbus_proxy_set_default_timeout, "g_dbus_proxy_set_default_timeout", LIBRARY_GIO); - Linker.link(g_dbus_proxy_set_interface_info, "g_dbus_proxy_set_interface_info", LIBRARY_GIO); - - // gio.DBusServer - - Linker.link(g_dbus_server_get_type, "g_dbus_server_get_type", LIBRARY_GIO); - Linker.link(g_dbus_server_new_sync, "g_dbus_server_new_sync", LIBRARY_GIO); - Linker.link(g_dbus_server_get_client_address, "g_dbus_server_get_client_address", LIBRARY_GIO); - Linker.link(g_dbus_server_get_flags, "g_dbus_server_get_flags", LIBRARY_GIO); - Linker.link(g_dbus_server_get_guid, "g_dbus_server_get_guid", LIBRARY_GIO); - Linker.link(g_dbus_server_is_active, "g_dbus_server_is_active", LIBRARY_GIO); - Linker.link(g_dbus_server_start, "g_dbus_server_start", LIBRARY_GIO); - Linker.link(g_dbus_server_stop, "g_dbus_server_stop", LIBRARY_GIO); - - // gio.DBusSignalInfo - - Linker.link(g_dbus_signal_info_get_type, "g_dbus_signal_info_get_type", LIBRARY_GIO); - Linker.link(g_dbus_signal_info_ref, "g_dbus_signal_info_ref", LIBRARY_GIO); - Linker.link(g_dbus_signal_info_unref, "g_dbus_signal_info_unref", LIBRARY_GIO); - - // gio.DataInputStream - - Linker.link(g_data_input_stream_get_type, "g_data_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_data_input_stream_new, "g_data_input_stream_new", LIBRARY_GIO); - Linker.link(g_data_input_stream_get_byte_order, "g_data_input_stream_get_byte_order", LIBRARY_GIO); - Linker.link(g_data_input_stream_get_newline_type, "g_data_input_stream_get_newline_type", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_byte, "g_data_input_stream_read_byte", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_int16, "g_data_input_stream_read_int16", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_int32, "g_data_input_stream_read_int32", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_int64, "g_data_input_stream_read_int64", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_line, "g_data_input_stream_read_line", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_line_async, "g_data_input_stream_read_line_async", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_line_finish, "g_data_input_stream_read_line_finish", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_line_finish_utf8, "g_data_input_stream_read_line_finish_utf8", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_line_utf8, "g_data_input_stream_read_line_utf8", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_uint16, "g_data_input_stream_read_uint16", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_uint32, "g_data_input_stream_read_uint32", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_uint64, "g_data_input_stream_read_uint64", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_until, "g_data_input_stream_read_until", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_until_async, "g_data_input_stream_read_until_async", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_until_finish, "g_data_input_stream_read_until_finish", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_upto, "g_data_input_stream_read_upto", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_upto_async, "g_data_input_stream_read_upto_async", LIBRARY_GIO); - Linker.link(g_data_input_stream_read_upto_finish, "g_data_input_stream_read_upto_finish", LIBRARY_GIO); - Linker.link(g_data_input_stream_set_byte_order, "g_data_input_stream_set_byte_order", LIBRARY_GIO); - Linker.link(g_data_input_stream_set_newline_type, "g_data_input_stream_set_newline_type", LIBRARY_GIO); - - // gio.DataOutputStream - - Linker.link(g_data_output_stream_get_type, "g_data_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_data_output_stream_new, "g_data_output_stream_new", LIBRARY_GIO); - Linker.link(g_data_output_stream_get_byte_order, "g_data_output_stream_get_byte_order", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_byte, "g_data_output_stream_put_byte", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_int16, "g_data_output_stream_put_int16", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_int32, "g_data_output_stream_put_int32", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_int64, "g_data_output_stream_put_int64", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_string, "g_data_output_stream_put_string", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_uint16, "g_data_output_stream_put_uint16", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_uint32, "g_data_output_stream_put_uint32", LIBRARY_GIO); - Linker.link(g_data_output_stream_put_uint64, "g_data_output_stream_put_uint64", LIBRARY_GIO); - Linker.link(g_data_output_stream_set_byte_order, "g_data_output_stream_set_byte_order", LIBRARY_GIO); - - // gio.DatagramBased - - Linker.link(g_datagram_based_get_type, "g_datagram_based_get_type", LIBRARY_GIO); - Linker.link(g_datagram_based_condition_check, "g_datagram_based_condition_check", LIBRARY_GIO); - Linker.link(g_datagram_based_condition_wait, "g_datagram_based_condition_wait", LIBRARY_GIO); - Linker.link(g_datagram_based_create_source, "g_datagram_based_create_source", LIBRARY_GIO); - Linker.link(g_datagram_based_receive_messages, "g_datagram_based_receive_messages", LIBRARY_GIO); - Linker.link(g_datagram_based_send_messages, "g_datagram_based_send_messages", LIBRARY_GIO); - - // gio.DesktopAppInfo - - Linker.link(g_desktop_app_info_get_type, "g_desktop_app_info_get_type", LIBRARY_GIO); - Linker.link(g_desktop_app_info_new, "g_desktop_app_info_new", LIBRARY_GIO); - Linker.link(g_desktop_app_info_new_from_filename, "g_desktop_app_info_new_from_filename", LIBRARY_GIO); - Linker.link(g_desktop_app_info_new_from_keyfile, "g_desktop_app_info_new_from_keyfile", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_implementations, "g_desktop_app_info_get_implementations", LIBRARY_GIO); - Linker.link(g_desktop_app_info_search, "g_desktop_app_info_search", LIBRARY_GIO); - Linker.link(g_desktop_app_info_set_desktop_env, "g_desktop_app_info_set_desktop_env", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_action_name, "g_desktop_app_info_get_action_name", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_boolean, "g_desktop_app_info_get_boolean", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_categories, "g_desktop_app_info_get_categories", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_filename, "g_desktop_app_info_get_filename", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_generic_name, "g_desktop_app_info_get_generic_name", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_is_hidden, "g_desktop_app_info_get_is_hidden", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_keywords, "g_desktop_app_info_get_keywords", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_locale_string, "g_desktop_app_info_get_locale_string", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_nodisplay, "g_desktop_app_info_get_nodisplay", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_show_in, "g_desktop_app_info_get_show_in", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_startup_wm_class, "g_desktop_app_info_get_startup_wm_class", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_string, "g_desktop_app_info_get_string", LIBRARY_GIO); - Linker.link(g_desktop_app_info_get_string_list, "g_desktop_app_info_get_string_list", LIBRARY_GIO); - Linker.link(g_desktop_app_info_has_key, "g_desktop_app_info_has_key", LIBRARY_GIO); - Linker.link(g_desktop_app_info_launch_action, "g_desktop_app_info_launch_action", LIBRARY_GIO); - Linker.link(g_desktop_app_info_launch_uris_as_manager, "g_desktop_app_info_launch_uris_as_manager", LIBRARY_GIO); - Linker.link(g_desktop_app_info_launch_uris_as_manager_with_fds, "g_desktop_app_info_launch_uris_as_manager_with_fds", LIBRARY_GIO); - Linker.link(g_desktop_app_info_list_actions, "g_desktop_app_info_list_actions", LIBRARY_GIO); - - // gio.DesktopAppInfoLookup - - Linker.link(g_desktop_app_info_lookup_get_type, "g_desktop_app_info_lookup_get_type", LIBRARY_GIO); - Linker.link(g_desktop_app_info_lookup_get_default_for_uri_scheme, "g_desktop_app_info_lookup_get_default_for_uri_scheme", LIBRARY_GIO); - - // gio.Drive - - Linker.link(g_drive_get_type, "g_drive_get_type", LIBRARY_GIO); - Linker.link(g_drive_can_eject, "g_drive_can_eject", LIBRARY_GIO); - Linker.link(g_drive_can_poll_for_media, "g_drive_can_poll_for_media", LIBRARY_GIO); - Linker.link(g_drive_can_start, "g_drive_can_start", LIBRARY_GIO); - Linker.link(g_drive_can_start_degraded, "g_drive_can_start_degraded", LIBRARY_GIO); - Linker.link(g_drive_can_stop, "g_drive_can_stop", LIBRARY_GIO); - Linker.link(g_drive_eject, "g_drive_eject", LIBRARY_GIO); - Linker.link(g_drive_eject_finish, "g_drive_eject_finish", LIBRARY_GIO); - Linker.link(g_drive_eject_with_operation, "g_drive_eject_with_operation", LIBRARY_GIO); - Linker.link(g_drive_eject_with_operation_finish, "g_drive_eject_with_operation_finish", LIBRARY_GIO); - Linker.link(g_drive_enumerate_identifiers, "g_drive_enumerate_identifiers", LIBRARY_GIO); - Linker.link(g_drive_get_icon, "g_drive_get_icon", LIBRARY_GIO); - Linker.link(g_drive_get_identifier, "g_drive_get_identifier", LIBRARY_GIO); - Linker.link(g_drive_get_name, "g_drive_get_name", LIBRARY_GIO); - Linker.link(g_drive_get_sort_key, "g_drive_get_sort_key", LIBRARY_GIO); - Linker.link(g_drive_get_start_stop_type, "g_drive_get_start_stop_type", LIBRARY_GIO); - Linker.link(g_drive_get_symbolic_icon, "g_drive_get_symbolic_icon", LIBRARY_GIO); - Linker.link(g_drive_get_volumes, "g_drive_get_volumes", LIBRARY_GIO); - Linker.link(g_drive_has_media, "g_drive_has_media", LIBRARY_GIO); - Linker.link(g_drive_has_volumes, "g_drive_has_volumes", LIBRARY_GIO); - Linker.link(g_drive_is_media_check_automatic, "g_drive_is_media_check_automatic", LIBRARY_GIO); - Linker.link(g_drive_is_media_removable, "g_drive_is_media_removable", LIBRARY_GIO); - Linker.link(g_drive_is_removable, "g_drive_is_removable", LIBRARY_GIO); - Linker.link(g_drive_poll_for_media, "g_drive_poll_for_media", LIBRARY_GIO); - Linker.link(g_drive_poll_for_media_finish, "g_drive_poll_for_media_finish", LIBRARY_GIO); - Linker.link(g_drive_start, "g_drive_start", LIBRARY_GIO); - Linker.link(g_drive_start_finish, "g_drive_start_finish", LIBRARY_GIO); - Linker.link(g_drive_stop, "g_drive_stop", LIBRARY_GIO); - Linker.link(g_drive_stop_finish, "g_drive_stop_finish", LIBRARY_GIO); - - // gio.DtlsClientConnection - - Linker.link(g_dtls_client_connection_get_type, "g_dtls_client_connection_get_type", LIBRARY_GIO); - Linker.link(g_dtls_client_connection_new, "g_dtls_client_connection_new", LIBRARY_GIO); - Linker.link(g_dtls_client_connection_get_accepted_cas, "g_dtls_client_connection_get_accepted_cas", LIBRARY_GIO); - Linker.link(g_dtls_client_connection_get_server_identity, "g_dtls_client_connection_get_server_identity", LIBRARY_GIO); - Linker.link(g_dtls_client_connection_get_validation_flags, "g_dtls_client_connection_get_validation_flags", LIBRARY_GIO); - Linker.link(g_dtls_client_connection_set_server_identity, "g_dtls_client_connection_set_server_identity", LIBRARY_GIO); - Linker.link(g_dtls_client_connection_set_validation_flags, "g_dtls_client_connection_set_validation_flags", LIBRARY_GIO); - - // gio.DtlsConnection - - Linker.link(g_dtls_connection_get_type, "g_dtls_connection_get_type", LIBRARY_GIO); - Linker.link(g_dtls_connection_close, "g_dtls_connection_close", LIBRARY_GIO); - Linker.link(g_dtls_connection_close_async, "g_dtls_connection_close_async", LIBRARY_GIO); - Linker.link(g_dtls_connection_close_finish, "g_dtls_connection_close_finish", LIBRARY_GIO); - Linker.link(g_dtls_connection_emit_accept_certificate, "g_dtls_connection_emit_accept_certificate", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_certificate, "g_dtls_connection_get_certificate", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_channel_binding_data, "g_dtls_connection_get_channel_binding_data", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_database, "g_dtls_connection_get_database", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_interaction, "g_dtls_connection_get_interaction", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_negotiated_protocol, "g_dtls_connection_get_negotiated_protocol", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_peer_certificate, "g_dtls_connection_get_peer_certificate", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_peer_certificate_errors, "g_dtls_connection_get_peer_certificate_errors", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_rehandshake_mode, "g_dtls_connection_get_rehandshake_mode", LIBRARY_GIO); - Linker.link(g_dtls_connection_get_require_close_notify, "g_dtls_connection_get_require_close_notify", LIBRARY_GIO); - Linker.link(g_dtls_connection_handshake, "g_dtls_connection_handshake", LIBRARY_GIO); - Linker.link(g_dtls_connection_handshake_async, "g_dtls_connection_handshake_async", LIBRARY_GIO); - Linker.link(g_dtls_connection_handshake_finish, "g_dtls_connection_handshake_finish", LIBRARY_GIO); - Linker.link(g_dtls_connection_set_advertised_protocols, "g_dtls_connection_set_advertised_protocols", LIBRARY_GIO); - Linker.link(g_dtls_connection_set_certificate, "g_dtls_connection_set_certificate", LIBRARY_GIO); - Linker.link(g_dtls_connection_set_database, "g_dtls_connection_set_database", LIBRARY_GIO); - Linker.link(g_dtls_connection_set_interaction, "g_dtls_connection_set_interaction", LIBRARY_GIO); - Linker.link(g_dtls_connection_set_rehandshake_mode, "g_dtls_connection_set_rehandshake_mode", LIBRARY_GIO); - Linker.link(g_dtls_connection_set_require_close_notify, "g_dtls_connection_set_require_close_notify", LIBRARY_GIO); - Linker.link(g_dtls_connection_shutdown, "g_dtls_connection_shutdown", LIBRARY_GIO); - Linker.link(g_dtls_connection_shutdown_async, "g_dtls_connection_shutdown_async", LIBRARY_GIO); - Linker.link(g_dtls_connection_shutdown_finish, "g_dtls_connection_shutdown_finish", LIBRARY_GIO); - - // gio.DtlsServerConnection - - Linker.link(g_dtls_server_connection_get_type, "g_dtls_server_connection_get_type", LIBRARY_GIO); - Linker.link(g_dtls_server_connection_new, "g_dtls_server_connection_new", LIBRARY_GIO); - - // gio.Emblem - - Linker.link(g_emblem_get_type, "g_emblem_get_type", LIBRARY_GIO); - Linker.link(g_emblem_new, "g_emblem_new", LIBRARY_GIO); - Linker.link(g_emblem_new_with_origin, "g_emblem_new_with_origin", LIBRARY_GIO); - Linker.link(g_emblem_get_icon, "g_emblem_get_icon", LIBRARY_GIO); - Linker.link(g_emblem_get_origin, "g_emblem_get_origin", LIBRARY_GIO); - - // gio.EmblemedIcon - - Linker.link(g_emblemed_icon_get_type, "g_emblemed_icon_get_type", LIBRARY_GIO); - Linker.link(g_emblemed_icon_new, "g_emblemed_icon_new", LIBRARY_GIO); - Linker.link(g_emblemed_icon_add_emblem, "g_emblemed_icon_add_emblem", LIBRARY_GIO); - Linker.link(g_emblemed_icon_clear_emblems, "g_emblemed_icon_clear_emblems", LIBRARY_GIO); - Linker.link(g_emblemed_icon_get_emblems, "g_emblemed_icon_get_emblems", LIBRARY_GIO); - Linker.link(g_emblemed_icon_get_icon, "g_emblemed_icon_get_icon", LIBRARY_GIO); - - // gio.File - - Linker.link(g_file_get_type, "g_file_get_type", LIBRARY_GIO); - Linker.link(g_file_new_build_filename, "g_file_new_build_filename", LIBRARY_GIO); - Linker.link(g_file_new_for_commandline_arg, "g_file_new_for_commandline_arg", LIBRARY_GIO); - Linker.link(g_file_new_for_commandline_arg_and_cwd, "g_file_new_for_commandline_arg_and_cwd", LIBRARY_GIO); - Linker.link(g_file_new_for_path, "g_file_new_for_path", LIBRARY_GIO); - Linker.link(g_file_new_for_uri, "g_file_new_for_uri", LIBRARY_GIO); - Linker.link(g_file_new_tmp, "g_file_new_tmp", LIBRARY_GIO); - Linker.link(g_file_parse_name, "g_file_parse_name", LIBRARY_GIO); - Linker.link(g_file_append_to, "g_file_append_to", LIBRARY_GIO); - Linker.link(g_file_append_to_async, "g_file_append_to_async", LIBRARY_GIO); - Linker.link(g_file_append_to_finish, "g_file_append_to_finish", LIBRARY_GIO); - Linker.link(g_file_build_attribute_list_for_copy, "g_file_build_attribute_list_for_copy", LIBRARY_GIO); - Linker.link(g_file_copy, "g_file_copy", LIBRARY_GIO); - Linker.link(g_file_copy_async, "g_file_copy_async", LIBRARY_GIO); - Linker.link(g_file_copy_attributes, "g_file_copy_attributes", LIBRARY_GIO); - Linker.link(g_file_copy_finish, "g_file_copy_finish", LIBRARY_GIO); - Linker.link(g_file_create, "g_file_create", LIBRARY_GIO); - Linker.link(g_file_create_async, "g_file_create_async", LIBRARY_GIO); - Linker.link(g_file_create_finish, "g_file_create_finish", LIBRARY_GIO); - Linker.link(g_file_create_readwrite, "g_file_create_readwrite", LIBRARY_GIO); - Linker.link(g_file_create_readwrite_async, "g_file_create_readwrite_async", LIBRARY_GIO); - Linker.link(g_file_create_readwrite_finish, "g_file_create_readwrite_finish", LIBRARY_GIO); - Linker.link(g_file_delete, "g_file_delete", LIBRARY_GIO); - Linker.link(g_file_delete_async, "g_file_delete_async", LIBRARY_GIO); - Linker.link(g_file_delete_finish, "g_file_delete_finish", LIBRARY_GIO); - Linker.link(g_file_dup, "g_file_dup", LIBRARY_GIO); - Linker.link(g_file_eject_mountable, "g_file_eject_mountable", LIBRARY_GIO); - Linker.link(g_file_eject_mountable_finish, "g_file_eject_mountable_finish", LIBRARY_GIO); - Linker.link(g_file_eject_mountable_with_operation, "g_file_eject_mountable_with_operation", LIBRARY_GIO); - Linker.link(g_file_eject_mountable_with_operation_finish, "g_file_eject_mountable_with_operation_finish", LIBRARY_GIO); - Linker.link(g_file_enumerate_children, "g_file_enumerate_children", LIBRARY_GIO); - Linker.link(g_file_enumerate_children_async, "g_file_enumerate_children_async", LIBRARY_GIO); - Linker.link(g_file_enumerate_children_finish, "g_file_enumerate_children_finish", LIBRARY_GIO); - Linker.link(g_file_equal, "g_file_equal", LIBRARY_GIO); - Linker.link(g_file_find_enclosing_mount, "g_file_find_enclosing_mount", LIBRARY_GIO); - Linker.link(g_file_find_enclosing_mount_async, "g_file_find_enclosing_mount_async", LIBRARY_GIO); - Linker.link(g_file_find_enclosing_mount_finish, "g_file_find_enclosing_mount_finish", LIBRARY_GIO); - Linker.link(g_file_get_basename, "g_file_get_basename", LIBRARY_GIO); - Linker.link(g_file_get_child, "g_file_get_child", LIBRARY_GIO); - Linker.link(g_file_get_child_for_display_name, "g_file_get_child_for_display_name", LIBRARY_GIO); - Linker.link(g_file_get_parent, "g_file_get_parent", LIBRARY_GIO); - Linker.link(g_file_get_parse_name, "g_file_get_parse_name", LIBRARY_GIO); - Linker.link(g_file_get_path, "g_file_get_path", LIBRARY_GIO); - Linker.link(g_file_get_relative_path, "g_file_get_relative_path", LIBRARY_GIO); - Linker.link(g_file_get_uri, "g_file_get_uri", LIBRARY_GIO); - Linker.link(g_file_get_uri_scheme, "g_file_get_uri_scheme", LIBRARY_GIO); - Linker.link(g_file_has_parent, "g_file_has_parent", LIBRARY_GIO); - Linker.link(g_file_has_prefix, "g_file_has_prefix", LIBRARY_GIO); - Linker.link(g_file_has_uri_scheme, "g_file_has_uri_scheme", LIBRARY_GIO); - Linker.link(g_file_hash, "g_file_hash", LIBRARY_GIO); - Linker.link(g_file_is_native, "g_file_is_native", LIBRARY_GIO); - Linker.link(g_file_load_bytes, "g_file_load_bytes", LIBRARY_GIO); - Linker.link(g_file_load_bytes_async, "g_file_load_bytes_async", LIBRARY_GIO); - Linker.link(g_file_load_bytes_finish, "g_file_load_bytes_finish", LIBRARY_GIO); - Linker.link(g_file_load_contents, "g_file_load_contents", LIBRARY_GIO); - Linker.link(g_file_load_contents_async, "g_file_load_contents_async", LIBRARY_GIO); - Linker.link(g_file_load_contents_finish, "g_file_load_contents_finish", LIBRARY_GIO); - Linker.link(g_file_load_partial_contents_async, "g_file_load_partial_contents_async", LIBRARY_GIO); - Linker.link(g_file_load_partial_contents_finish, "g_file_load_partial_contents_finish", LIBRARY_GIO); - Linker.link(g_file_make_directory, "g_file_make_directory", LIBRARY_GIO); - Linker.link(g_file_make_directory_async, "g_file_make_directory_async", LIBRARY_GIO); - Linker.link(g_file_make_directory_finish, "g_file_make_directory_finish", LIBRARY_GIO); - Linker.link(g_file_make_directory_with_parents, "g_file_make_directory_with_parents", LIBRARY_GIO); - Linker.link(g_file_make_symbolic_link, "g_file_make_symbolic_link", LIBRARY_GIO); - Linker.link(g_file_measure_disk_usage, "g_file_measure_disk_usage", LIBRARY_GIO); - Linker.link(g_file_measure_disk_usage_async, "g_file_measure_disk_usage_async", LIBRARY_GIO); - Linker.link(g_file_measure_disk_usage_finish, "g_file_measure_disk_usage_finish", LIBRARY_GIO); - Linker.link(g_file_monitor, "g_file_monitor", LIBRARY_GIO); - Linker.link(g_file_monitor_directory, "g_file_monitor_directory", LIBRARY_GIO); - Linker.link(g_file_monitor_file, "g_file_monitor_file", LIBRARY_GIO); - Linker.link(g_file_mount_enclosing_volume, "g_file_mount_enclosing_volume", LIBRARY_GIO); - Linker.link(g_file_mount_enclosing_volume_finish, "g_file_mount_enclosing_volume_finish", LIBRARY_GIO); - Linker.link(g_file_mount_mountable, "g_file_mount_mountable", LIBRARY_GIO); - Linker.link(g_file_mount_mountable_finish, "g_file_mount_mountable_finish", LIBRARY_GIO); - Linker.link(g_file_move, "g_file_move", LIBRARY_GIO); - Linker.link(g_file_open_readwrite, "g_file_open_readwrite", LIBRARY_GIO); - Linker.link(g_file_open_readwrite_async, "g_file_open_readwrite_async", LIBRARY_GIO); - Linker.link(g_file_open_readwrite_finish, "g_file_open_readwrite_finish", LIBRARY_GIO); - Linker.link(g_file_peek_path, "g_file_peek_path", LIBRARY_GIO); - Linker.link(g_file_poll_mountable, "g_file_poll_mountable", LIBRARY_GIO); - Linker.link(g_file_poll_mountable_finish, "g_file_poll_mountable_finish", LIBRARY_GIO); - Linker.link(g_file_query_default_handler, "g_file_query_default_handler", LIBRARY_GIO); - Linker.link(g_file_query_default_handler_async, "g_file_query_default_handler_async", LIBRARY_GIO); - Linker.link(g_file_query_default_handler_finish, "g_file_query_default_handler_finish", LIBRARY_GIO); - Linker.link(g_file_query_exists, "g_file_query_exists", LIBRARY_GIO); - Linker.link(g_file_query_file_type, "g_file_query_file_type", LIBRARY_GIO); - Linker.link(g_file_query_filesystem_info, "g_file_query_filesystem_info", LIBRARY_GIO); - Linker.link(g_file_query_filesystem_info_async, "g_file_query_filesystem_info_async", LIBRARY_GIO); - Linker.link(g_file_query_filesystem_info_finish, "g_file_query_filesystem_info_finish", LIBRARY_GIO); - Linker.link(g_file_query_info, "g_file_query_info", LIBRARY_GIO); - Linker.link(g_file_query_info_async, "g_file_query_info_async", LIBRARY_GIO); - Linker.link(g_file_query_info_finish, "g_file_query_info_finish", LIBRARY_GIO); - Linker.link(g_file_query_settable_attributes, "g_file_query_settable_attributes", LIBRARY_GIO); - Linker.link(g_file_query_writable_namespaces, "g_file_query_writable_namespaces", LIBRARY_GIO); - Linker.link(g_file_read, "g_file_read", LIBRARY_GIO); - Linker.link(g_file_read_async, "g_file_read_async", LIBRARY_GIO); - Linker.link(g_file_read_finish, "g_file_read_finish", LIBRARY_GIO); - Linker.link(g_file_replace, "g_file_replace", LIBRARY_GIO); - Linker.link(g_file_replace_async, "g_file_replace_async", LIBRARY_GIO); - Linker.link(g_file_replace_contents, "g_file_replace_contents", LIBRARY_GIO); - Linker.link(g_file_replace_contents_async, "g_file_replace_contents_async", LIBRARY_GIO); - Linker.link(g_file_replace_contents_bytes_async, "g_file_replace_contents_bytes_async", LIBRARY_GIO); - Linker.link(g_file_replace_contents_finish, "g_file_replace_contents_finish", LIBRARY_GIO); - Linker.link(g_file_replace_finish, "g_file_replace_finish", LIBRARY_GIO); - Linker.link(g_file_replace_readwrite, "g_file_replace_readwrite", LIBRARY_GIO); - Linker.link(g_file_replace_readwrite_async, "g_file_replace_readwrite_async", LIBRARY_GIO); - Linker.link(g_file_replace_readwrite_finish, "g_file_replace_readwrite_finish", LIBRARY_GIO); - Linker.link(g_file_resolve_relative_path, "g_file_resolve_relative_path", LIBRARY_GIO); - Linker.link(g_file_set_attribute, "g_file_set_attribute", LIBRARY_GIO); - Linker.link(g_file_set_attribute_byte_string, "g_file_set_attribute_byte_string", LIBRARY_GIO); - Linker.link(g_file_set_attribute_int32, "g_file_set_attribute_int32", LIBRARY_GIO); - Linker.link(g_file_set_attribute_int64, "g_file_set_attribute_int64", LIBRARY_GIO); - Linker.link(g_file_set_attribute_string, "g_file_set_attribute_string", LIBRARY_GIO); - Linker.link(g_file_set_attribute_uint32, "g_file_set_attribute_uint32", LIBRARY_GIO); - Linker.link(g_file_set_attribute_uint64, "g_file_set_attribute_uint64", LIBRARY_GIO); - Linker.link(g_file_set_attributes_async, "g_file_set_attributes_async", LIBRARY_GIO); - Linker.link(g_file_set_attributes_finish, "g_file_set_attributes_finish", LIBRARY_GIO); - Linker.link(g_file_set_attributes_from_info, "g_file_set_attributes_from_info", LIBRARY_GIO); - Linker.link(g_file_set_display_name, "g_file_set_display_name", LIBRARY_GIO); - Linker.link(g_file_set_display_name_async, "g_file_set_display_name_async", LIBRARY_GIO); - Linker.link(g_file_set_display_name_finish, "g_file_set_display_name_finish", LIBRARY_GIO); - Linker.link(g_file_start_mountable, "g_file_start_mountable", LIBRARY_GIO); - Linker.link(g_file_start_mountable_finish, "g_file_start_mountable_finish", LIBRARY_GIO); - Linker.link(g_file_stop_mountable, "g_file_stop_mountable", LIBRARY_GIO); - Linker.link(g_file_stop_mountable_finish, "g_file_stop_mountable_finish", LIBRARY_GIO); - Linker.link(g_file_supports_thread_contexts, "g_file_supports_thread_contexts", LIBRARY_GIO); - Linker.link(g_file_trash, "g_file_trash", LIBRARY_GIO); - Linker.link(g_file_trash_async, "g_file_trash_async", LIBRARY_GIO); - Linker.link(g_file_trash_finish, "g_file_trash_finish", LIBRARY_GIO); - Linker.link(g_file_unmount_mountable, "g_file_unmount_mountable", LIBRARY_GIO); - Linker.link(g_file_unmount_mountable_finish, "g_file_unmount_mountable_finish", LIBRARY_GIO); - Linker.link(g_file_unmount_mountable_with_operation, "g_file_unmount_mountable_with_operation", LIBRARY_GIO); - Linker.link(g_file_unmount_mountable_with_operation_finish, "g_file_unmount_mountable_with_operation_finish", LIBRARY_GIO); - - // gio.FileAttributeInfoList - - Linker.link(g_file_attribute_info_list_get_type, "g_file_attribute_info_list_get_type", LIBRARY_GIO); - Linker.link(g_file_attribute_info_list_new, "g_file_attribute_info_list_new", LIBRARY_GIO); - Linker.link(g_file_attribute_info_list_add, "g_file_attribute_info_list_add", LIBRARY_GIO); - Linker.link(g_file_attribute_info_list_dup, "g_file_attribute_info_list_dup", LIBRARY_GIO); - Linker.link(g_file_attribute_info_list_lookup, "g_file_attribute_info_list_lookup", LIBRARY_GIO); - Linker.link(g_file_attribute_info_list_ref, "g_file_attribute_info_list_ref", LIBRARY_GIO); - Linker.link(g_file_attribute_info_list_unref, "g_file_attribute_info_list_unref", LIBRARY_GIO); - - // gio.FileAttributeMatcher - - Linker.link(g_file_attribute_matcher_get_type, "g_file_attribute_matcher_get_type", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_new, "g_file_attribute_matcher_new", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_enumerate_namespace, "g_file_attribute_matcher_enumerate_namespace", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_enumerate_next, "g_file_attribute_matcher_enumerate_next", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_matches, "g_file_attribute_matcher_matches", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_matches_only, "g_file_attribute_matcher_matches_only", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_ref, "g_file_attribute_matcher_ref", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_subtract, "g_file_attribute_matcher_subtract", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_to_string, "g_file_attribute_matcher_to_string", LIBRARY_GIO); - Linker.link(g_file_attribute_matcher_unref, "g_file_attribute_matcher_unref", LIBRARY_GIO); - - // gio.FileDescriptorBased - - Linker.link(g_file_descriptor_based_get_type, "g_file_descriptor_based_get_type", LIBRARY_GIO); - Linker.link(g_file_descriptor_based_get_fd, "g_file_descriptor_based_get_fd", LIBRARY_GIO); - - // gio.FileEnumerator - - Linker.link(g_file_enumerator_get_type, "g_file_enumerator_get_type", LIBRARY_GIO); - Linker.link(g_file_enumerator_close, "g_file_enumerator_close", LIBRARY_GIO); - Linker.link(g_file_enumerator_close_async, "g_file_enumerator_close_async", LIBRARY_GIO); - Linker.link(g_file_enumerator_close_finish, "g_file_enumerator_close_finish", LIBRARY_GIO); - Linker.link(g_file_enumerator_get_child, "g_file_enumerator_get_child", LIBRARY_GIO); - Linker.link(g_file_enumerator_get_container, "g_file_enumerator_get_container", LIBRARY_GIO); - Linker.link(g_file_enumerator_has_pending, "g_file_enumerator_has_pending", LIBRARY_GIO); - Linker.link(g_file_enumerator_is_closed, "g_file_enumerator_is_closed", LIBRARY_GIO); - Linker.link(g_file_enumerator_iterate, "g_file_enumerator_iterate", LIBRARY_GIO); - Linker.link(g_file_enumerator_next_file, "g_file_enumerator_next_file", LIBRARY_GIO); - Linker.link(g_file_enumerator_next_files_async, "g_file_enumerator_next_files_async", LIBRARY_GIO); - Linker.link(g_file_enumerator_next_files_finish, "g_file_enumerator_next_files_finish", LIBRARY_GIO); - Linker.link(g_file_enumerator_set_pending, "g_file_enumerator_set_pending", LIBRARY_GIO); - - // gio.FileIOStream - - Linker.link(g_file_io_stream_get_type, "g_file_io_stream_get_type", LIBRARY_GIO); - Linker.link(g_file_io_stream_get_etag, "g_file_io_stream_get_etag", LIBRARY_GIO); - Linker.link(g_file_io_stream_query_info, "g_file_io_stream_query_info", LIBRARY_GIO); - Linker.link(g_file_io_stream_query_info_async, "g_file_io_stream_query_info_async", LIBRARY_GIO); - Linker.link(g_file_io_stream_query_info_finish, "g_file_io_stream_query_info_finish", LIBRARY_GIO); - - // gio.FileIcon - - Linker.link(g_file_icon_get_type, "g_file_icon_get_type", LIBRARY_GIO); - Linker.link(g_file_icon_new, "g_file_icon_new", LIBRARY_GIO); - Linker.link(g_file_icon_get_file, "g_file_icon_get_file", LIBRARY_GIO); - - // gio.FileInfo - - Linker.link(g_file_info_get_type, "g_file_info_get_type", LIBRARY_GIO); - Linker.link(g_file_info_new, "g_file_info_new", LIBRARY_GIO); - Linker.link(g_file_info_clear_status, "g_file_info_clear_status", LIBRARY_GIO); - Linker.link(g_file_info_copy_into, "g_file_info_copy_into", LIBRARY_GIO); - Linker.link(g_file_info_dup, "g_file_info_dup", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_as_string, "g_file_info_get_attribute_as_string", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_boolean, "g_file_info_get_attribute_boolean", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_byte_string, "g_file_info_get_attribute_byte_string", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_data, "g_file_info_get_attribute_data", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_int32, "g_file_info_get_attribute_int32", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_int64, "g_file_info_get_attribute_int64", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_object, "g_file_info_get_attribute_object", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_status, "g_file_info_get_attribute_status", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_string, "g_file_info_get_attribute_string", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_stringv, "g_file_info_get_attribute_stringv", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_type, "g_file_info_get_attribute_type", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_uint32, "g_file_info_get_attribute_uint32", LIBRARY_GIO); - Linker.link(g_file_info_get_attribute_uint64, "g_file_info_get_attribute_uint64", LIBRARY_GIO); - Linker.link(g_file_info_get_content_type, "g_file_info_get_content_type", LIBRARY_GIO); - Linker.link(g_file_info_get_deletion_date, "g_file_info_get_deletion_date", LIBRARY_GIO); - Linker.link(g_file_info_get_display_name, "g_file_info_get_display_name", LIBRARY_GIO); - Linker.link(g_file_info_get_edit_name, "g_file_info_get_edit_name", LIBRARY_GIO); - Linker.link(g_file_info_get_etag, "g_file_info_get_etag", LIBRARY_GIO); - Linker.link(g_file_info_get_file_type, "g_file_info_get_file_type", LIBRARY_GIO); - Linker.link(g_file_info_get_icon, "g_file_info_get_icon", LIBRARY_GIO); - Linker.link(g_file_info_get_is_backup, "g_file_info_get_is_backup", LIBRARY_GIO); - Linker.link(g_file_info_get_is_hidden, "g_file_info_get_is_hidden", LIBRARY_GIO); - Linker.link(g_file_info_get_is_symlink, "g_file_info_get_is_symlink", LIBRARY_GIO); - Linker.link(g_file_info_get_modification_date_time, "g_file_info_get_modification_date_time", LIBRARY_GIO); - Linker.link(g_file_info_get_modification_time, "g_file_info_get_modification_time", LIBRARY_GIO); - Linker.link(g_file_info_get_name, "g_file_info_get_name", LIBRARY_GIO); - Linker.link(g_file_info_get_size, "g_file_info_get_size", LIBRARY_GIO); - Linker.link(g_file_info_get_sort_order, "g_file_info_get_sort_order", LIBRARY_GIO); - Linker.link(g_file_info_get_symbolic_icon, "g_file_info_get_symbolic_icon", LIBRARY_GIO); - Linker.link(g_file_info_get_symlink_target, "g_file_info_get_symlink_target", LIBRARY_GIO); - Linker.link(g_file_info_has_attribute, "g_file_info_has_attribute", LIBRARY_GIO); - Linker.link(g_file_info_has_namespace, "g_file_info_has_namespace", LIBRARY_GIO); - Linker.link(g_file_info_list_attributes, "g_file_info_list_attributes", LIBRARY_GIO); - Linker.link(g_file_info_remove_attribute, "g_file_info_remove_attribute", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute, "g_file_info_set_attribute", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_boolean, "g_file_info_set_attribute_boolean", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_byte_string, "g_file_info_set_attribute_byte_string", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_int32, "g_file_info_set_attribute_int32", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_int64, "g_file_info_set_attribute_int64", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_mask, "g_file_info_set_attribute_mask", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_object, "g_file_info_set_attribute_object", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_status, "g_file_info_set_attribute_status", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_string, "g_file_info_set_attribute_string", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_stringv, "g_file_info_set_attribute_stringv", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_uint32, "g_file_info_set_attribute_uint32", LIBRARY_GIO); - Linker.link(g_file_info_set_attribute_uint64, "g_file_info_set_attribute_uint64", LIBRARY_GIO); - Linker.link(g_file_info_set_content_type, "g_file_info_set_content_type", LIBRARY_GIO); - Linker.link(g_file_info_set_display_name, "g_file_info_set_display_name", LIBRARY_GIO); - Linker.link(g_file_info_set_edit_name, "g_file_info_set_edit_name", LIBRARY_GIO); - Linker.link(g_file_info_set_file_type, "g_file_info_set_file_type", LIBRARY_GIO); - Linker.link(g_file_info_set_icon, "g_file_info_set_icon", LIBRARY_GIO); - Linker.link(g_file_info_set_is_hidden, "g_file_info_set_is_hidden", LIBRARY_GIO); - Linker.link(g_file_info_set_is_symlink, "g_file_info_set_is_symlink", LIBRARY_GIO); - Linker.link(g_file_info_set_modification_date_time, "g_file_info_set_modification_date_time", LIBRARY_GIO); - Linker.link(g_file_info_set_modification_time, "g_file_info_set_modification_time", LIBRARY_GIO); - Linker.link(g_file_info_set_name, "g_file_info_set_name", LIBRARY_GIO); - Linker.link(g_file_info_set_size, "g_file_info_set_size", LIBRARY_GIO); - Linker.link(g_file_info_set_sort_order, "g_file_info_set_sort_order", LIBRARY_GIO); - Linker.link(g_file_info_set_symbolic_icon, "g_file_info_set_symbolic_icon", LIBRARY_GIO); - Linker.link(g_file_info_set_symlink_target, "g_file_info_set_symlink_target", LIBRARY_GIO); - Linker.link(g_file_info_unset_attribute_mask, "g_file_info_unset_attribute_mask", LIBRARY_GIO); - - // gio.FileInputStream - - Linker.link(g_file_input_stream_get_type, "g_file_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_file_input_stream_query_info, "g_file_input_stream_query_info", LIBRARY_GIO); - Linker.link(g_file_input_stream_query_info_async, "g_file_input_stream_query_info_async", LIBRARY_GIO); - Linker.link(g_file_input_stream_query_info_finish, "g_file_input_stream_query_info_finish", LIBRARY_GIO); - - // gio.FileMonitor - - Linker.link(g_file_monitor_get_type, "g_file_monitor_get_type", LIBRARY_GIO); - Linker.link(g_file_monitor_cancel, "g_file_monitor_cancel", LIBRARY_GIO); - Linker.link(g_file_monitor_emit_event, "g_file_monitor_emit_event", LIBRARY_GIO); - Linker.link(g_file_monitor_is_cancelled, "g_file_monitor_is_cancelled", LIBRARY_GIO); - Linker.link(g_file_monitor_set_rate_limit, "g_file_monitor_set_rate_limit", LIBRARY_GIO); - - // gio.FileOutputStream - - Linker.link(g_file_output_stream_get_type, "g_file_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_file_output_stream_get_etag, "g_file_output_stream_get_etag", LIBRARY_GIO); - Linker.link(g_file_output_stream_query_info, "g_file_output_stream_query_info", LIBRARY_GIO); - Linker.link(g_file_output_stream_query_info_async, "g_file_output_stream_query_info_async", LIBRARY_GIO); - Linker.link(g_file_output_stream_query_info_finish, "g_file_output_stream_query_info_finish", LIBRARY_GIO); - - // gio.FilenameCompleter - - Linker.link(g_filename_completer_get_type, "g_filename_completer_get_type", LIBRARY_GIO); - Linker.link(g_filename_completer_new, "g_filename_completer_new", LIBRARY_GIO); - Linker.link(g_filename_completer_get_completion_suffix, "g_filename_completer_get_completion_suffix", LIBRARY_GIO); - Linker.link(g_filename_completer_get_completions, "g_filename_completer_get_completions", LIBRARY_GIO); - Linker.link(g_filename_completer_set_dirs_only, "g_filename_completer_set_dirs_only", LIBRARY_GIO); - - // gio.FilterInputStream - - Linker.link(g_filter_input_stream_get_type, "g_filter_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_filter_input_stream_get_base_stream, "g_filter_input_stream_get_base_stream", LIBRARY_GIO); - Linker.link(g_filter_input_stream_get_close_base_stream, "g_filter_input_stream_get_close_base_stream", LIBRARY_GIO); - Linker.link(g_filter_input_stream_set_close_base_stream, "g_filter_input_stream_set_close_base_stream", LIBRARY_GIO); - - // gio.FilterOutputStream - - Linker.link(g_filter_output_stream_get_type, "g_filter_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_filter_output_stream_get_base_stream, "g_filter_output_stream_get_base_stream", LIBRARY_GIO); - Linker.link(g_filter_output_stream_get_close_base_stream, "g_filter_output_stream_get_close_base_stream", LIBRARY_GIO); - Linker.link(g_filter_output_stream_set_close_base_stream, "g_filter_output_stream_set_close_base_stream", LIBRARY_GIO); - - // gio.IOExtension - - Linker.link(g_io_extension_get_name, "g_io_extension_get_name", LIBRARY_GIO); - Linker.link(g_io_extension_get_priority, "g_io_extension_get_priority", LIBRARY_GIO); - Linker.link(g_io_extension_get_type, "g_io_extension_get_type", LIBRARY_GIO); - Linker.link(g_io_extension_ref_class, "g_io_extension_ref_class", LIBRARY_GIO); - - // gio.IOExtensionPoint - - Linker.link(g_io_extension_point_get_extension_by_name, "g_io_extension_point_get_extension_by_name", LIBRARY_GIO); - Linker.link(g_io_extension_point_get_extensions, "g_io_extension_point_get_extensions", LIBRARY_GIO); - Linker.link(g_io_extension_point_get_required_type, "g_io_extension_point_get_required_type", LIBRARY_GIO); - Linker.link(g_io_extension_point_set_required_type, "g_io_extension_point_set_required_type", LIBRARY_GIO); - Linker.link(g_io_extension_point_implement, "g_io_extension_point_implement", LIBRARY_GIO); - Linker.link(g_io_extension_point_lookup, "g_io_extension_point_lookup", LIBRARY_GIO); - Linker.link(g_io_extension_point_register, "g_io_extension_point_register", LIBRARY_GIO); - - // gio.IOModule - - Linker.link(g_io_module_get_type, "g_io_module_get_type", LIBRARY_GIO); - Linker.link(g_io_module_new, "g_io_module_new", LIBRARY_GIO); - Linker.link(g_io_modules_load_all_in_directory, "g_io_modules_load_all_in_directory", LIBRARY_GIO); - Linker.link(g_io_modules_load_all_in_directory_with_scope, "g_io_modules_load_all_in_directory_with_scope", LIBRARY_GIO); - Linker.link(g_io_modules_scan_all_in_directory, "g_io_modules_scan_all_in_directory", LIBRARY_GIO); - Linker.link(g_io_modules_scan_all_in_directory_with_scope, "g_io_modules_scan_all_in_directory_with_scope", LIBRARY_GIO); - - // gio.IOModuleScope - - Linker.link(g_io_module_scope_block, "g_io_module_scope_block", LIBRARY_GIO); - Linker.link(g_io_module_scope_free, "g_io_module_scope_free", LIBRARY_GIO); - Linker.link(g_io_module_scope_new, "g_io_module_scope_new", LIBRARY_GIO); - - // gio.IOSchedulerJob - - Linker.link(g_io_scheduler_job_send_to_mainloop, "g_io_scheduler_job_send_to_mainloop", LIBRARY_GIO); - Linker.link(g_io_scheduler_job_send_to_mainloop_async, "g_io_scheduler_job_send_to_mainloop_async", LIBRARY_GIO); - Linker.link(g_io_scheduler_cancel_all_jobs, "g_io_scheduler_cancel_all_jobs", LIBRARY_GIO); - Linker.link(g_io_scheduler_push_job, "g_io_scheduler_push_job", LIBRARY_GIO); - - // gio.IOStream - - Linker.link(g_io_stream_get_type, "g_io_stream_get_type", LIBRARY_GIO); - Linker.link(g_io_stream_splice_finish, "g_io_stream_splice_finish", LIBRARY_GIO); - Linker.link(g_io_stream_clear_pending, "g_io_stream_clear_pending", LIBRARY_GIO); - Linker.link(g_io_stream_close, "g_io_stream_close", LIBRARY_GIO); - Linker.link(g_io_stream_close_async, "g_io_stream_close_async", LIBRARY_GIO); - Linker.link(g_io_stream_close_finish, "g_io_stream_close_finish", LIBRARY_GIO); - Linker.link(g_io_stream_get_input_stream, "g_io_stream_get_input_stream", LIBRARY_GIO); - Linker.link(g_io_stream_get_output_stream, "g_io_stream_get_output_stream", LIBRARY_GIO); - Linker.link(g_io_stream_has_pending, "g_io_stream_has_pending", LIBRARY_GIO); - Linker.link(g_io_stream_is_closed, "g_io_stream_is_closed", LIBRARY_GIO); - Linker.link(g_io_stream_set_pending, "g_io_stream_set_pending", LIBRARY_GIO); - Linker.link(g_io_stream_splice_async, "g_io_stream_splice_async", LIBRARY_GIO); - - // gio.Icon - - Linker.link(g_icon_get_type, "g_icon_get_type", LIBRARY_GIO); - Linker.link(g_icon_deserialize, "g_icon_deserialize", LIBRARY_GIO); - Linker.link(g_icon_hash, "g_icon_hash", LIBRARY_GIO); - Linker.link(g_icon_new_for_string, "g_icon_new_for_string", LIBRARY_GIO); - Linker.link(g_icon_equal, "g_icon_equal", LIBRARY_GIO); - Linker.link(g_icon_serialize, "g_icon_serialize", LIBRARY_GIO); - Linker.link(g_icon_to_string, "g_icon_to_string", LIBRARY_GIO); - - // gio.InetAddress - - Linker.link(g_inet_address_get_type, "g_inet_address_get_type", LIBRARY_GIO); - Linker.link(g_inet_address_new_any, "g_inet_address_new_any", LIBRARY_GIO); - Linker.link(g_inet_address_new_from_bytes, "g_inet_address_new_from_bytes", LIBRARY_GIO); - Linker.link(g_inet_address_new_from_string, "g_inet_address_new_from_string", LIBRARY_GIO); - Linker.link(g_inet_address_new_loopback, "g_inet_address_new_loopback", LIBRARY_GIO); - Linker.link(g_inet_address_equal, "g_inet_address_equal", LIBRARY_GIO); - Linker.link(g_inet_address_get_family, "g_inet_address_get_family", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_any, "g_inet_address_get_is_any", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_link_local, "g_inet_address_get_is_link_local", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_loopback, "g_inet_address_get_is_loopback", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_mc_global, "g_inet_address_get_is_mc_global", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_mc_link_local, "g_inet_address_get_is_mc_link_local", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_mc_node_local, "g_inet_address_get_is_mc_node_local", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_mc_org_local, "g_inet_address_get_is_mc_org_local", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_mc_site_local, "g_inet_address_get_is_mc_site_local", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_multicast, "g_inet_address_get_is_multicast", LIBRARY_GIO); - Linker.link(g_inet_address_get_is_site_local, "g_inet_address_get_is_site_local", LIBRARY_GIO); - Linker.link(g_inet_address_get_native_size, "g_inet_address_get_native_size", LIBRARY_GIO); - Linker.link(g_inet_address_to_bytes, "g_inet_address_to_bytes", LIBRARY_GIO); - Linker.link(g_inet_address_to_string, "g_inet_address_to_string", LIBRARY_GIO); - - // gio.InetAddressMask - - Linker.link(g_inet_address_mask_get_type, "g_inet_address_mask_get_type", LIBRARY_GIO); - Linker.link(g_inet_address_mask_new, "g_inet_address_mask_new", LIBRARY_GIO); - Linker.link(g_inet_address_mask_new_from_string, "g_inet_address_mask_new_from_string", LIBRARY_GIO); - Linker.link(g_inet_address_mask_equal, "g_inet_address_mask_equal", LIBRARY_GIO); - Linker.link(g_inet_address_mask_get_address, "g_inet_address_mask_get_address", LIBRARY_GIO); - Linker.link(g_inet_address_mask_get_family, "g_inet_address_mask_get_family", LIBRARY_GIO); - Linker.link(g_inet_address_mask_get_length, "g_inet_address_mask_get_length", LIBRARY_GIO); - Linker.link(g_inet_address_mask_matches, "g_inet_address_mask_matches", LIBRARY_GIO); - Linker.link(g_inet_address_mask_to_string, "g_inet_address_mask_to_string", LIBRARY_GIO); - - // gio.InetSocketAddress - - Linker.link(g_inet_socket_address_get_type, "g_inet_socket_address_get_type", LIBRARY_GIO); - Linker.link(g_inet_socket_address_new, "g_inet_socket_address_new", LIBRARY_GIO); - Linker.link(g_inet_socket_address_new_from_string, "g_inet_socket_address_new_from_string", LIBRARY_GIO); - Linker.link(g_inet_socket_address_get_address, "g_inet_socket_address_get_address", LIBRARY_GIO); - Linker.link(g_inet_socket_address_get_flowinfo, "g_inet_socket_address_get_flowinfo", LIBRARY_GIO); - Linker.link(g_inet_socket_address_get_port, "g_inet_socket_address_get_port", LIBRARY_GIO); - Linker.link(g_inet_socket_address_get_scope_id, "g_inet_socket_address_get_scope_id", LIBRARY_GIO); - - // gio.Initable - - Linker.link(g_initable_get_type, "g_initable_get_type", LIBRARY_GIO); - Linker.link(g_initable_new, "g_initable_new", LIBRARY_GIO); - Linker.link(g_initable_new_valist, "g_initable_new_valist", LIBRARY_GIO); - Linker.link(g_initable_newv, "g_initable_newv", LIBRARY_GIO); - Linker.link(g_initable_init, "g_initable_init", LIBRARY_GIO); - - // gio.InputStream - - Linker.link(g_input_stream_get_type, "g_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_input_stream_clear_pending, "g_input_stream_clear_pending", LIBRARY_GIO); - Linker.link(g_input_stream_close, "g_input_stream_close", LIBRARY_GIO); - Linker.link(g_input_stream_close_async, "g_input_stream_close_async", LIBRARY_GIO); - Linker.link(g_input_stream_close_finish, "g_input_stream_close_finish", LIBRARY_GIO); - Linker.link(g_input_stream_has_pending, "g_input_stream_has_pending", LIBRARY_GIO); - Linker.link(g_input_stream_is_closed, "g_input_stream_is_closed", LIBRARY_GIO); - Linker.link(g_input_stream_read, "g_input_stream_read", LIBRARY_GIO); - Linker.link(g_input_stream_read_all, "g_input_stream_read_all", LIBRARY_GIO); - Linker.link(g_input_stream_read_all_async, "g_input_stream_read_all_async", LIBRARY_GIO); - Linker.link(g_input_stream_read_all_finish, "g_input_stream_read_all_finish", LIBRARY_GIO); - Linker.link(g_input_stream_read_async, "g_input_stream_read_async", LIBRARY_GIO); - Linker.link(g_input_stream_read_bytes, "g_input_stream_read_bytes", LIBRARY_GIO); - Linker.link(g_input_stream_read_bytes_async, "g_input_stream_read_bytes_async", LIBRARY_GIO); - Linker.link(g_input_stream_read_bytes_finish, "g_input_stream_read_bytes_finish", LIBRARY_GIO); - Linker.link(g_input_stream_read_finish, "g_input_stream_read_finish", LIBRARY_GIO); - Linker.link(g_input_stream_set_pending, "g_input_stream_set_pending", LIBRARY_GIO); - Linker.link(g_input_stream_skip, "g_input_stream_skip", LIBRARY_GIO); - Linker.link(g_input_stream_skip_async, "g_input_stream_skip_async", LIBRARY_GIO); - Linker.link(g_input_stream_skip_finish, "g_input_stream_skip_finish", LIBRARY_GIO); - - // gio.ListModel - - Linker.link(g_list_model_get_type, "g_list_model_get_type", LIBRARY_GIO); - Linker.link(g_list_model_get_item, "g_list_model_get_item", LIBRARY_GIO); - Linker.link(g_list_model_get_item_type, "g_list_model_get_item_type", LIBRARY_GIO); - Linker.link(g_list_model_get_n_items, "g_list_model_get_n_items", LIBRARY_GIO); - Linker.link(g_list_model_get_object, "g_list_model_get_object", LIBRARY_GIO); - Linker.link(g_list_model_items_changed, "g_list_model_items_changed", LIBRARY_GIO); - - // gio.ListStore - - Linker.link(g_list_store_get_type, "g_list_store_get_type", LIBRARY_GIO); - Linker.link(g_list_store_new, "g_list_store_new", LIBRARY_GIO); - Linker.link(g_list_store_append, "g_list_store_append", LIBRARY_GIO); - Linker.link(g_list_store_find, "g_list_store_find", LIBRARY_GIO); - Linker.link(g_list_store_find_with_equal_func, "g_list_store_find_with_equal_func", LIBRARY_GIO); - Linker.link(g_list_store_insert, "g_list_store_insert", LIBRARY_GIO); - Linker.link(g_list_store_insert_sorted, "g_list_store_insert_sorted", LIBRARY_GIO); - Linker.link(g_list_store_remove, "g_list_store_remove", LIBRARY_GIO); - Linker.link(g_list_store_remove_all, "g_list_store_remove_all", LIBRARY_GIO); - Linker.link(g_list_store_sort, "g_list_store_sort", LIBRARY_GIO); - Linker.link(g_list_store_splice, "g_list_store_splice", LIBRARY_GIO); - - // gio.LoadableIcon - - Linker.link(g_loadable_icon_get_type, "g_loadable_icon_get_type", LIBRARY_GIO); - Linker.link(g_loadable_icon_load, "g_loadable_icon_load", LIBRARY_GIO); - Linker.link(g_loadable_icon_load_async, "g_loadable_icon_load_async", LIBRARY_GIO); - Linker.link(g_loadable_icon_load_finish, "g_loadable_icon_load_finish", LIBRARY_GIO); - - // gio.MemoryInputStream - - Linker.link(g_memory_input_stream_get_type, "g_memory_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_memory_input_stream_new, "g_memory_input_stream_new", LIBRARY_GIO); - Linker.link(g_memory_input_stream_new_from_bytes, "g_memory_input_stream_new_from_bytes", LIBRARY_GIO); - Linker.link(g_memory_input_stream_new_from_data, "g_memory_input_stream_new_from_data", LIBRARY_GIO); - Linker.link(g_memory_input_stream_add_bytes, "g_memory_input_stream_add_bytes", LIBRARY_GIO); - Linker.link(g_memory_input_stream_add_data, "g_memory_input_stream_add_data", LIBRARY_GIO); - - // gio.MemoryMonitor - - Linker.link(g_memory_monitor_get_type, "g_memory_monitor_get_type", LIBRARY_GIO); - Linker.link(g_memory_monitor_dup_default, "g_memory_monitor_dup_default", LIBRARY_GIO); - - // gio.MemoryOutputStream - - Linker.link(g_memory_output_stream_get_type, "g_memory_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_memory_output_stream_new, "g_memory_output_stream_new", LIBRARY_GIO); - Linker.link(g_memory_output_stream_new_resizable, "g_memory_output_stream_new_resizable", LIBRARY_GIO); - Linker.link(g_memory_output_stream_get_data, "g_memory_output_stream_get_data", LIBRARY_GIO); - Linker.link(g_memory_output_stream_get_data_size, "g_memory_output_stream_get_data_size", LIBRARY_GIO); - Linker.link(g_memory_output_stream_get_size, "g_memory_output_stream_get_size", LIBRARY_GIO); - Linker.link(g_memory_output_stream_steal_as_bytes, "g_memory_output_stream_steal_as_bytes", LIBRARY_GIO); - Linker.link(g_memory_output_stream_steal_data, "g_memory_output_stream_steal_data", LIBRARY_GIO); - - // gio.Menu - - Linker.link(g_menu_get_type, "g_menu_get_type", LIBRARY_GIO); - Linker.link(g_menu_new, "g_menu_new", LIBRARY_GIO); - Linker.link(g_menu_append, "g_menu_append", LIBRARY_GIO); - Linker.link(g_menu_append_item, "g_menu_append_item", LIBRARY_GIO); - Linker.link(g_menu_append_section, "g_menu_append_section", LIBRARY_GIO); - Linker.link(g_menu_append_submenu, "g_menu_append_submenu", LIBRARY_GIO); - Linker.link(g_menu_freeze, "g_menu_freeze", LIBRARY_GIO); - Linker.link(g_menu_insert, "g_menu_insert", LIBRARY_GIO); - Linker.link(g_menu_insert_item, "g_menu_insert_item", LIBRARY_GIO); - Linker.link(g_menu_insert_section, "g_menu_insert_section", LIBRARY_GIO); - Linker.link(g_menu_insert_submenu, "g_menu_insert_submenu", LIBRARY_GIO); - Linker.link(g_menu_prepend, "g_menu_prepend", LIBRARY_GIO); - Linker.link(g_menu_prepend_item, "g_menu_prepend_item", LIBRARY_GIO); - Linker.link(g_menu_prepend_section, "g_menu_prepend_section", LIBRARY_GIO); - Linker.link(g_menu_prepend_submenu, "g_menu_prepend_submenu", LIBRARY_GIO); - Linker.link(g_menu_remove, "g_menu_remove", LIBRARY_GIO); - Linker.link(g_menu_remove_all, "g_menu_remove_all", LIBRARY_GIO); - - // gio.MenuAttributeIter - - Linker.link(g_menu_attribute_iter_get_type, "g_menu_attribute_iter_get_type", LIBRARY_GIO); - Linker.link(g_menu_attribute_iter_get_name, "g_menu_attribute_iter_get_name", LIBRARY_GIO); - Linker.link(g_menu_attribute_iter_get_next, "g_menu_attribute_iter_get_next", LIBRARY_GIO); - Linker.link(g_menu_attribute_iter_get_value, "g_menu_attribute_iter_get_value", LIBRARY_GIO); - Linker.link(g_menu_attribute_iter_next, "g_menu_attribute_iter_next", LIBRARY_GIO); - - // gio.MenuItem - - Linker.link(g_menu_item_get_type, "g_menu_item_get_type", LIBRARY_GIO); - Linker.link(g_menu_item_new, "g_menu_item_new", LIBRARY_GIO); - Linker.link(g_menu_item_new_from_model, "g_menu_item_new_from_model", LIBRARY_GIO); - Linker.link(g_menu_item_new_section, "g_menu_item_new_section", LIBRARY_GIO); - Linker.link(g_menu_item_new_submenu, "g_menu_item_new_submenu", LIBRARY_GIO); - Linker.link(g_menu_item_get_attribute, "g_menu_item_get_attribute", LIBRARY_GIO); - Linker.link(g_menu_item_get_attribute_value, "g_menu_item_get_attribute_value", LIBRARY_GIO); - Linker.link(g_menu_item_get_link, "g_menu_item_get_link", LIBRARY_GIO); - Linker.link(g_menu_item_set_action_and_target, "g_menu_item_set_action_and_target", LIBRARY_GIO); - Linker.link(g_menu_item_set_action_and_target_value, "g_menu_item_set_action_and_target_value", LIBRARY_GIO); - Linker.link(g_menu_item_set_attribute, "g_menu_item_set_attribute", LIBRARY_GIO); - Linker.link(g_menu_item_set_attribute_value, "g_menu_item_set_attribute_value", LIBRARY_GIO); - Linker.link(g_menu_item_set_detailed_action, "g_menu_item_set_detailed_action", LIBRARY_GIO); - Linker.link(g_menu_item_set_icon, "g_menu_item_set_icon", LIBRARY_GIO); - Linker.link(g_menu_item_set_label, "g_menu_item_set_label", LIBRARY_GIO); - Linker.link(g_menu_item_set_link, "g_menu_item_set_link", LIBRARY_GIO); - Linker.link(g_menu_item_set_section, "g_menu_item_set_section", LIBRARY_GIO); - Linker.link(g_menu_item_set_submenu, "g_menu_item_set_submenu", LIBRARY_GIO); - - // gio.MenuLinkIter - - Linker.link(g_menu_link_iter_get_type, "g_menu_link_iter_get_type", LIBRARY_GIO); - Linker.link(g_menu_link_iter_get_name, "g_menu_link_iter_get_name", LIBRARY_GIO); - Linker.link(g_menu_link_iter_get_next, "g_menu_link_iter_get_next", LIBRARY_GIO); - Linker.link(g_menu_link_iter_get_value, "g_menu_link_iter_get_value", LIBRARY_GIO); - Linker.link(g_menu_link_iter_next, "g_menu_link_iter_next", LIBRARY_GIO); - - // gio.MenuModel - - Linker.link(g_menu_model_get_type, "g_menu_model_get_type", LIBRARY_GIO); - Linker.link(g_menu_model_get_item_attribute, "g_menu_model_get_item_attribute", LIBRARY_GIO); - Linker.link(g_menu_model_get_item_attribute_value, "g_menu_model_get_item_attribute_value", LIBRARY_GIO); - Linker.link(g_menu_model_get_item_link, "g_menu_model_get_item_link", LIBRARY_GIO); - Linker.link(g_menu_model_get_n_items, "g_menu_model_get_n_items", LIBRARY_GIO); - Linker.link(g_menu_model_is_mutable, "g_menu_model_is_mutable", LIBRARY_GIO); - Linker.link(g_menu_model_items_changed, "g_menu_model_items_changed", LIBRARY_GIO); - Linker.link(g_menu_model_iterate_item_attributes, "g_menu_model_iterate_item_attributes", LIBRARY_GIO); - Linker.link(g_menu_model_iterate_item_links, "g_menu_model_iterate_item_links", LIBRARY_GIO); - - // gio.Mount - - Linker.link(g_mount_get_type, "g_mount_get_type", LIBRARY_GIO); - Linker.link(g_mount_can_eject, "g_mount_can_eject", LIBRARY_GIO); - Linker.link(g_mount_can_unmount, "g_mount_can_unmount", LIBRARY_GIO); - Linker.link(g_mount_eject, "g_mount_eject", LIBRARY_GIO); - Linker.link(g_mount_eject_finish, "g_mount_eject_finish", LIBRARY_GIO); - Linker.link(g_mount_eject_with_operation, "g_mount_eject_with_operation", LIBRARY_GIO); - Linker.link(g_mount_eject_with_operation_finish, "g_mount_eject_with_operation_finish", LIBRARY_GIO); - Linker.link(g_mount_get_default_location, "g_mount_get_default_location", LIBRARY_GIO); - Linker.link(g_mount_get_drive, "g_mount_get_drive", LIBRARY_GIO); - Linker.link(g_mount_get_icon, "g_mount_get_icon", LIBRARY_GIO); - Linker.link(g_mount_get_name, "g_mount_get_name", LIBRARY_GIO); - Linker.link(g_mount_get_root, "g_mount_get_root", LIBRARY_GIO); - Linker.link(g_mount_get_sort_key, "g_mount_get_sort_key", LIBRARY_GIO); - Linker.link(g_mount_get_symbolic_icon, "g_mount_get_symbolic_icon", LIBRARY_GIO); - Linker.link(g_mount_get_uuid, "g_mount_get_uuid", LIBRARY_GIO); - Linker.link(g_mount_get_volume, "g_mount_get_volume", LIBRARY_GIO); - Linker.link(g_mount_guess_content_type, "g_mount_guess_content_type", LIBRARY_GIO); - Linker.link(g_mount_guess_content_type_finish, "g_mount_guess_content_type_finish", LIBRARY_GIO); - Linker.link(g_mount_guess_content_type_sync, "g_mount_guess_content_type_sync", LIBRARY_GIO); - Linker.link(g_mount_is_shadowed, "g_mount_is_shadowed", LIBRARY_GIO); - Linker.link(g_mount_remount, "g_mount_remount", LIBRARY_GIO); - Linker.link(g_mount_remount_finish, "g_mount_remount_finish", LIBRARY_GIO); - Linker.link(g_mount_shadow, "g_mount_shadow", LIBRARY_GIO); - Linker.link(g_mount_unmount, "g_mount_unmount", LIBRARY_GIO); - Linker.link(g_mount_unmount_finish, "g_mount_unmount_finish", LIBRARY_GIO); - Linker.link(g_mount_unmount_with_operation, "g_mount_unmount_with_operation", LIBRARY_GIO); - Linker.link(g_mount_unmount_with_operation_finish, "g_mount_unmount_with_operation_finish", LIBRARY_GIO); - Linker.link(g_mount_unshadow, "g_mount_unshadow", LIBRARY_GIO); - - // gio.MountOperation - - Linker.link(g_mount_operation_get_type, "g_mount_operation_get_type", LIBRARY_GIO); - Linker.link(g_mount_operation_new, "g_mount_operation_new", LIBRARY_GIO); - Linker.link(g_mount_operation_get_anonymous, "g_mount_operation_get_anonymous", LIBRARY_GIO); - Linker.link(g_mount_operation_get_choice, "g_mount_operation_get_choice", LIBRARY_GIO); - Linker.link(g_mount_operation_get_domain, "g_mount_operation_get_domain", LIBRARY_GIO); - Linker.link(g_mount_operation_get_is_tcrypt_hidden_volume, "g_mount_operation_get_is_tcrypt_hidden_volume", LIBRARY_GIO); - Linker.link(g_mount_operation_get_is_tcrypt_system_volume, "g_mount_operation_get_is_tcrypt_system_volume", LIBRARY_GIO); - Linker.link(g_mount_operation_get_password, "g_mount_operation_get_password", LIBRARY_GIO); - Linker.link(g_mount_operation_get_password_save, "g_mount_operation_get_password_save", LIBRARY_GIO); - Linker.link(g_mount_operation_get_pim, "g_mount_operation_get_pim", LIBRARY_GIO); - Linker.link(g_mount_operation_get_username, "g_mount_operation_get_username", LIBRARY_GIO); - Linker.link(g_mount_operation_reply, "g_mount_operation_reply", LIBRARY_GIO); - Linker.link(g_mount_operation_set_anonymous, "g_mount_operation_set_anonymous", LIBRARY_GIO); - Linker.link(g_mount_operation_set_choice, "g_mount_operation_set_choice", LIBRARY_GIO); - Linker.link(g_mount_operation_set_domain, "g_mount_operation_set_domain", LIBRARY_GIO); - Linker.link(g_mount_operation_set_is_tcrypt_hidden_volume, "g_mount_operation_set_is_tcrypt_hidden_volume", LIBRARY_GIO); - Linker.link(g_mount_operation_set_is_tcrypt_system_volume, "g_mount_operation_set_is_tcrypt_system_volume", LIBRARY_GIO); - Linker.link(g_mount_operation_set_password, "g_mount_operation_set_password", LIBRARY_GIO); - Linker.link(g_mount_operation_set_password_save, "g_mount_operation_set_password_save", LIBRARY_GIO); - Linker.link(g_mount_operation_set_pim, "g_mount_operation_set_pim", LIBRARY_GIO); - Linker.link(g_mount_operation_set_username, "g_mount_operation_set_username", LIBRARY_GIO); - - // gio.NativeSocketAddress - - Linker.link(g_native_socket_address_get_type, "g_native_socket_address_get_type", LIBRARY_GIO); - Linker.link(g_native_socket_address_new, "g_native_socket_address_new", LIBRARY_GIO); - - // gio.NativeVolumeMonitor - - Linker.link(g_native_volume_monitor_get_type, "g_native_volume_monitor_get_type", LIBRARY_GIO); - - // gio.NetworkAddress - - Linker.link(g_network_address_get_type, "g_network_address_get_type", LIBRARY_GIO); - Linker.link(g_network_address_new, "g_network_address_new", LIBRARY_GIO); - Linker.link(g_network_address_new_loopback, "g_network_address_new_loopback", LIBRARY_GIO); - Linker.link(g_network_address_parse, "g_network_address_parse", LIBRARY_GIO); - Linker.link(g_network_address_parse_uri, "g_network_address_parse_uri", LIBRARY_GIO); - Linker.link(g_network_address_get_hostname, "g_network_address_get_hostname", LIBRARY_GIO); - Linker.link(g_network_address_get_port, "g_network_address_get_port", LIBRARY_GIO); - Linker.link(g_network_address_get_scheme, "g_network_address_get_scheme", LIBRARY_GIO); - - // gio.NetworkMonitor - - Linker.link(g_network_monitor_get_type, "g_network_monitor_get_type", LIBRARY_GIO); - Linker.link(g_network_monitor_get_default, "g_network_monitor_get_default", LIBRARY_GIO); - Linker.link(g_network_monitor_can_reach, "g_network_monitor_can_reach", LIBRARY_GIO); - Linker.link(g_network_monitor_can_reach_async, "g_network_monitor_can_reach_async", LIBRARY_GIO); - Linker.link(g_network_monitor_can_reach_finish, "g_network_monitor_can_reach_finish", LIBRARY_GIO); - Linker.link(g_network_monitor_get_connectivity, "g_network_monitor_get_connectivity", LIBRARY_GIO); - Linker.link(g_network_monitor_get_network_available, "g_network_monitor_get_network_available", LIBRARY_GIO); - Linker.link(g_network_monitor_get_network_metered, "g_network_monitor_get_network_metered", LIBRARY_GIO); - - // gio.NetworkService - - Linker.link(g_network_service_get_type, "g_network_service_get_type", LIBRARY_GIO); - Linker.link(g_network_service_new, "g_network_service_new", LIBRARY_GIO); - Linker.link(g_network_service_get_domain, "g_network_service_get_domain", LIBRARY_GIO); - Linker.link(g_network_service_get_protocol, "g_network_service_get_protocol", LIBRARY_GIO); - Linker.link(g_network_service_get_scheme, "g_network_service_get_scheme", LIBRARY_GIO); - Linker.link(g_network_service_get_service, "g_network_service_get_service", LIBRARY_GIO); - Linker.link(g_network_service_set_scheme, "g_network_service_set_scheme", LIBRARY_GIO); - - // gio.Notification - - Linker.link(g_notification_get_type, "g_notification_get_type", LIBRARY_GIO); - Linker.link(g_notification_new, "g_notification_new", LIBRARY_GIO); - Linker.link(g_notification_add_button, "g_notification_add_button", LIBRARY_GIO); - Linker.link(g_notification_add_button_with_target, "g_notification_add_button_with_target", LIBRARY_GIO); - Linker.link(g_notification_add_button_with_target_value, "g_notification_add_button_with_target_value", LIBRARY_GIO); - Linker.link(g_notification_set_body, "g_notification_set_body", LIBRARY_GIO); - Linker.link(g_notification_set_default_action, "g_notification_set_default_action", LIBRARY_GIO); - Linker.link(g_notification_set_default_action_and_target, "g_notification_set_default_action_and_target", LIBRARY_GIO); - Linker.link(g_notification_set_default_action_and_target_value, "g_notification_set_default_action_and_target_value", LIBRARY_GIO); - Linker.link(g_notification_set_icon, "g_notification_set_icon", LIBRARY_GIO); - Linker.link(g_notification_set_priority, "g_notification_set_priority", LIBRARY_GIO); - Linker.link(g_notification_set_title, "g_notification_set_title", LIBRARY_GIO); - Linker.link(g_notification_set_urgent, "g_notification_set_urgent", LIBRARY_GIO); - - // gio.OutputStream - - Linker.link(g_output_stream_get_type, "g_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_output_stream_clear_pending, "g_output_stream_clear_pending", LIBRARY_GIO); - Linker.link(g_output_stream_close, "g_output_stream_close", LIBRARY_GIO); - Linker.link(g_output_stream_close_async, "g_output_stream_close_async", LIBRARY_GIO); - Linker.link(g_output_stream_close_finish, "g_output_stream_close_finish", LIBRARY_GIO); - Linker.link(g_output_stream_flush, "g_output_stream_flush", LIBRARY_GIO); - Linker.link(g_output_stream_flush_async, "g_output_stream_flush_async", LIBRARY_GIO); - Linker.link(g_output_stream_flush_finish, "g_output_stream_flush_finish", LIBRARY_GIO); - Linker.link(g_output_stream_has_pending, "g_output_stream_has_pending", LIBRARY_GIO); - Linker.link(g_output_stream_is_closed, "g_output_stream_is_closed", LIBRARY_GIO); - Linker.link(g_output_stream_is_closing, "g_output_stream_is_closing", LIBRARY_GIO); - Linker.link(g_output_stream_printf, "g_output_stream_printf", LIBRARY_GIO); - Linker.link(g_output_stream_set_pending, "g_output_stream_set_pending", LIBRARY_GIO); - Linker.link(g_output_stream_splice, "g_output_stream_splice", LIBRARY_GIO); - Linker.link(g_output_stream_splice_async, "g_output_stream_splice_async", LIBRARY_GIO); - Linker.link(g_output_stream_splice_finish, "g_output_stream_splice_finish", LIBRARY_GIO); - Linker.link(g_output_stream_vprintf, "g_output_stream_vprintf", LIBRARY_GIO); - Linker.link(g_output_stream_write, "g_output_stream_write", LIBRARY_GIO); - Linker.link(g_output_stream_write_all, "g_output_stream_write_all", LIBRARY_GIO); - Linker.link(g_output_stream_write_all_async, "g_output_stream_write_all_async", LIBRARY_GIO); - Linker.link(g_output_stream_write_all_finish, "g_output_stream_write_all_finish", LIBRARY_GIO); - Linker.link(g_output_stream_write_async, "g_output_stream_write_async", LIBRARY_GIO); - Linker.link(g_output_stream_write_bytes, "g_output_stream_write_bytes", LIBRARY_GIO); - Linker.link(g_output_stream_write_bytes_async, "g_output_stream_write_bytes_async", LIBRARY_GIO); - Linker.link(g_output_stream_write_bytes_finish, "g_output_stream_write_bytes_finish", LIBRARY_GIO); - Linker.link(g_output_stream_write_finish, "g_output_stream_write_finish", LIBRARY_GIO); - Linker.link(g_output_stream_writev, "g_output_stream_writev", LIBRARY_GIO); - Linker.link(g_output_stream_writev_all, "g_output_stream_writev_all", LIBRARY_GIO); - Linker.link(g_output_stream_writev_all_async, "g_output_stream_writev_all_async", LIBRARY_GIO); - Linker.link(g_output_stream_writev_all_finish, "g_output_stream_writev_all_finish", LIBRARY_GIO); - Linker.link(g_output_stream_writev_async, "g_output_stream_writev_async", LIBRARY_GIO); - Linker.link(g_output_stream_writev_finish, "g_output_stream_writev_finish", LIBRARY_GIO); - - // gio.Permission - - Linker.link(g_permission_get_type, "g_permission_get_type", LIBRARY_GIO); - Linker.link(g_permission_acquire, "g_permission_acquire", LIBRARY_GIO); - Linker.link(g_permission_acquire_async, "g_permission_acquire_async", LIBRARY_GIO); - Linker.link(g_permission_acquire_finish, "g_permission_acquire_finish", LIBRARY_GIO); - Linker.link(g_permission_get_allowed, "g_permission_get_allowed", LIBRARY_GIO); - Linker.link(g_permission_get_can_acquire, "g_permission_get_can_acquire", LIBRARY_GIO); - Linker.link(g_permission_get_can_release, "g_permission_get_can_release", LIBRARY_GIO); - Linker.link(g_permission_impl_update, "g_permission_impl_update", LIBRARY_GIO); - Linker.link(g_permission_release, "g_permission_release", LIBRARY_GIO); - Linker.link(g_permission_release_async, "g_permission_release_async", LIBRARY_GIO); - Linker.link(g_permission_release_finish, "g_permission_release_finish", LIBRARY_GIO); - - // gio.PollableInputStream - - Linker.link(g_pollable_input_stream_get_type, "g_pollable_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_pollable_input_stream_can_poll, "g_pollable_input_stream_can_poll", LIBRARY_GIO); - Linker.link(g_pollable_input_stream_create_source, "g_pollable_input_stream_create_source", LIBRARY_GIO); - Linker.link(g_pollable_input_stream_is_readable, "g_pollable_input_stream_is_readable", LIBRARY_GIO); - Linker.link(g_pollable_input_stream_read_nonblocking, "g_pollable_input_stream_read_nonblocking", LIBRARY_GIO); - - // gio.PollableOutputStream - - Linker.link(g_pollable_output_stream_get_type, "g_pollable_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_pollable_output_stream_can_poll, "g_pollable_output_stream_can_poll", LIBRARY_GIO); - Linker.link(g_pollable_output_stream_create_source, "g_pollable_output_stream_create_source", LIBRARY_GIO); - Linker.link(g_pollable_output_stream_is_writable, "g_pollable_output_stream_is_writable", LIBRARY_GIO); - Linker.link(g_pollable_output_stream_write_nonblocking, "g_pollable_output_stream_write_nonblocking", LIBRARY_GIO); - Linker.link(g_pollable_output_stream_writev_nonblocking, "g_pollable_output_stream_writev_nonblocking", LIBRARY_GIO); - - // gio.PropertyAction - - Linker.link(g_property_action_get_type, "g_property_action_get_type", LIBRARY_GIO); - Linker.link(g_property_action_new, "g_property_action_new", LIBRARY_GIO); - - // gio.Proxy - - Linker.link(g_proxy_get_type, "g_proxy_get_type", LIBRARY_GIO); - Linker.link(g_proxy_get_default_for_protocol, "g_proxy_get_default_for_protocol", LIBRARY_GIO); - Linker.link(g_proxy_connect, "g_proxy_connect", LIBRARY_GIO); - Linker.link(g_proxy_connect_async, "g_proxy_connect_async", LIBRARY_GIO); - Linker.link(g_proxy_connect_finish, "g_proxy_connect_finish", LIBRARY_GIO); - Linker.link(g_proxy_supports_hostname, "g_proxy_supports_hostname", LIBRARY_GIO); - - // gio.ProxyAddress - - Linker.link(g_proxy_address_get_type, "g_proxy_address_get_type", LIBRARY_GIO); - Linker.link(g_proxy_address_new, "g_proxy_address_new", LIBRARY_GIO); - Linker.link(g_proxy_address_get_destination_hostname, "g_proxy_address_get_destination_hostname", LIBRARY_GIO); - Linker.link(g_proxy_address_get_destination_port, "g_proxy_address_get_destination_port", LIBRARY_GIO); - Linker.link(g_proxy_address_get_destination_protocol, "g_proxy_address_get_destination_protocol", LIBRARY_GIO); - Linker.link(g_proxy_address_get_password, "g_proxy_address_get_password", LIBRARY_GIO); - Linker.link(g_proxy_address_get_protocol, "g_proxy_address_get_protocol", LIBRARY_GIO); - Linker.link(g_proxy_address_get_uri, "g_proxy_address_get_uri", LIBRARY_GIO); - Linker.link(g_proxy_address_get_username, "g_proxy_address_get_username", LIBRARY_GIO); - - // gio.ProxyAddressEnumerator - - Linker.link(g_proxy_address_enumerator_get_type, "g_proxy_address_enumerator_get_type", LIBRARY_GIO); - - // gio.ProxyResolver - - Linker.link(g_proxy_resolver_get_type, "g_proxy_resolver_get_type", LIBRARY_GIO); - Linker.link(g_proxy_resolver_get_default, "g_proxy_resolver_get_default", LIBRARY_GIO); - Linker.link(g_proxy_resolver_is_supported, "g_proxy_resolver_is_supported", LIBRARY_GIO); - Linker.link(g_proxy_resolver_lookup, "g_proxy_resolver_lookup", LIBRARY_GIO); - Linker.link(g_proxy_resolver_lookup_async, "g_proxy_resolver_lookup_async", LIBRARY_GIO); - Linker.link(g_proxy_resolver_lookup_finish, "g_proxy_resolver_lookup_finish", LIBRARY_GIO); - - // gio.RemoteActionGroup - - Linker.link(g_remote_action_group_get_type, "g_remote_action_group_get_type", LIBRARY_GIO); - Linker.link(g_remote_action_group_activate_action_full, "g_remote_action_group_activate_action_full", LIBRARY_GIO); - Linker.link(g_remote_action_group_change_action_state_full, "g_remote_action_group_change_action_state_full", LIBRARY_GIO); - - // gio.Resolver - - Linker.link(g_resolver_get_type, "g_resolver_get_type", LIBRARY_GIO); - Linker.link(g_resolver_free_addresses, "g_resolver_free_addresses", LIBRARY_GIO); - Linker.link(g_resolver_free_targets, "g_resolver_free_targets", LIBRARY_GIO); - Linker.link(g_resolver_get_default, "g_resolver_get_default", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_address, "g_resolver_lookup_by_address", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_address_async, "g_resolver_lookup_by_address_async", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_address_finish, "g_resolver_lookup_by_address_finish", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_name, "g_resolver_lookup_by_name", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_name_async, "g_resolver_lookup_by_name_async", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_name_finish, "g_resolver_lookup_by_name_finish", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_name_with_flags, "g_resolver_lookup_by_name_with_flags", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_name_with_flags_async, "g_resolver_lookup_by_name_with_flags_async", LIBRARY_GIO); - Linker.link(g_resolver_lookup_by_name_with_flags_finish, "g_resolver_lookup_by_name_with_flags_finish", LIBRARY_GIO); - Linker.link(g_resolver_lookup_records, "g_resolver_lookup_records", LIBRARY_GIO); - Linker.link(g_resolver_lookup_records_async, "g_resolver_lookup_records_async", LIBRARY_GIO); - Linker.link(g_resolver_lookup_records_finish, "g_resolver_lookup_records_finish", LIBRARY_GIO); - Linker.link(g_resolver_lookup_service, "g_resolver_lookup_service", LIBRARY_GIO); - Linker.link(g_resolver_lookup_service_async, "g_resolver_lookup_service_async", LIBRARY_GIO); - Linker.link(g_resolver_lookup_service_finish, "g_resolver_lookup_service_finish", LIBRARY_GIO); - Linker.link(g_resolver_set_default, "g_resolver_set_default", LIBRARY_GIO); - - // gio.Resource - - Linker.link(g_resource_get_type, "g_resource_get_type", LIBRARY_GIO); - Linker.link(g_resource_new_from_data, "g_resource_new_from_data", LIBRARY_GIO); - Linker.link(g_resources_register, "g_resources_register", LIBRARY_GIO); - Linker.link(g_resources_unregister, "g_resources_unregister", LIBRARY_GIO); - Linker.link(g_resource_enumerate_children, "g_resource_enumerate_children", LIBRARY_GIO); - Linker.link(g_resource_get_info, "g_resource_get_info", LIBRARY_GIO); - Linker.link(g_resource_lookup_data, "g_resource_lookup_data", LIBRARY_GIO); - Linker.link(g_resource_open_stream, "g_resource_open_stream", LIBRARY_GIO); - Linker.link(g_resource_ref, "g_resource_ref", LIBRARY_GIO); - Linker.link(g_resource_unref, "g_resource_unref", LIBRARY_GIO); - Linker.link(g_resource_load, "g_resource_load", LIBRARY_GIO); - Linker.link(g_resources_enumerate_children, "g_resources_enumerate_children", LIBRARY_GIO); - Linker.link(g_resources_get_info, "g_resources_get_info", LIBRARY_GIO); - Linker.link(g_resources_lookup_data, "g_resources_lookup_data", LIBRARY_GIO); - Linker.link(g_resources_open_stream, "g_resources_open_stream", LIBRARY_GIO); - - // gio.Seekable - - Linker.link(g_seekable_get_type, "g_seekable_get_type", LIBRARY_GIO); - Linker.link(g_seekable_can_seek, "g_seekable_can_seek", LIBRARY_GIO); - Linker.link(g_seekable_can_truncate, "g_seekable_can_truncate", LIBRARY_GIO); - Linker.link(g_seekable_seek, "g_seekable_seek", LIBRARY_GIO); - Linker.link(g_seekable_tell, "g_seekable_tell", LIBRARY_GIO); - Linker.link(g_seekable_truncate, "g_seekable_truncate", LIBRARY_GIO); - - // gio.Settings - - Linker.link(g_settings_get_type, "g_settings_get_type", LIBRARY_GIO); - Linker.link(g_settings_new, "g_settings_new", LIBRARY_GIO); - Linker.link(g_settings_new_full, "g_settings_new_full", LIBRARY_GIO); - Linker.link(g_settings_new_with_backend, "g_settings_new_with_backend", LIBRARY_GIO); - Linker.link(g_settings_new_with_backend_and_path, "g_settings_new_with_backend_and_path", LIBRARY_GIO); - Linker.link(g_settings_new_with_path, "g_settings_new_with_path", LIBRARY_GIO); - Linker.link(g_settings_list_relocatable_schemas, "g_settings_list_relocatable_schemas", LIBRARY_GIO); - Linker.link(g_settings_list_schemas, "g_settings_list_schemas", LIBRARY_GIO); - Linker.link(g_settings_sync, "g_settings_sync", LIBRARY_GIO); - Linker.link(g_settings_unbind, "g_settings_unbind", LIBRARY_GIO); - Linker.link(g_settings_apply, "g_settings_apply", LIBRARY_GIO); - Linker.link(g_settings_bind, "g_settings_bind", LIBRARY_GIO); - Linker.link(g_settings_bind_with_mapping, "g_settings_bind_with_mapping", LIBRARY_GIO); - Linker.link(g_settings_bind_writable, "g_settings_bind_writable", LIBRARY_GIO); - Linker.link(g_settings_create_action, "g_settings_create_action", LIBRARY_GIO); - Linker.link(g_settings_delay, "g_settings_delay", LIBRARY_GIO); - Linker.link(g_settings_get, "g_settings_get", LIBRARY_GIO); - Linker.link(g_settings_get_boolean, "g_settings_get_boolean", LIBRARY_GIO); - Linker.link(g_settings_get_child, "g_settings_get_child", LIBRARY_GIO); - Linker.link(g_settings_get_default_value, "g_settings_get_default_value", LIBRARY_GIO); - Linker.link(g_settings_get_double, "g_settings_get_double", LIBRARY_GIO); - Linker.link(g_settings_get_enum, "g_settings_get_enum", LIBRARY_GIO); - Linker.link(g_settings_get_flags, "g_settings_get_flags", LIBRARY_GIO); - Linker.link(g_settings_get_has_unapplied, "g_settings_get_has_unapplied", LIBRARY_GIO); - Linker.link(g_settings_get_int, "g_settings_get_int", LIBRARY_GIO); - Linker.link(g_settings_get_int64, "g_settings_get_int64", LIBRARY_GIO); - Linker.link(g_settings_get_mapped, "g_settings_get_mapped", LIBRARY_GIO); - Linker.link(g_settings_get_range, "g_settings_get_range", LIBRARY_GIO); - Linker.link(g_settings_get_string, "g_settings_get_string", LIBRARY_GIO); - Linker.link(g_settings_get_strv, "g_settings_get_strv", LIBRARY_GIO); - Linker.link(g_settings_get_uint, "g_settings_get_uint", LIBRARY_GIO); - Linker.link(g_settings_get_uint64, "g_settings_get_uint64", LIBRARY_GIO); - Linker.link(g_settings_get_user_value, "g_settings_get_user_value", LIBRARY_GIO); - Linker.link(g_settings_get_value, "g_settings_get_value", LIBRARY_GIO); - Linker.link(g_settings_is_writable, "g_settings_is_writable", LIBRARY_GIO); - Linker.link(g_settings_list_children, "g_settings_list_children", LIBRARY_GIO); - Linker.link(g_settings_list_keys, "g_settings_list_keys", LIBRARY_GIO); - Linker.link(g_settings_range_check, "g_settings_range_check", LIBRARY_GIO); - Linker.link(g_settings_reset, "g_settings_reset", LIBRARY_GIO); - Linker.link(g_settings_revert, "g_settings_revert", LIBRARY_GIO); - Linker.link(g_settings_set, "g_settings_set", LIBRARY_GIO); - Linker.link(g_settings_set_boolean, "g_settings_set_boolean", LIBRARY_GIO); - Linker.link(g_settings_set_double, "g_settings_set_double", LIBRARY_GIO); - Linker.link(g_settings_set_enum, "g_settings_set_enum", LIBRARY_GIO); - Linker.link(g_settings_set_flags, "g_settings_set_flags", LIBRARY_GIO); - Linker.link(g_settings_set_int, "g_settings_set_int", LIBRARY_GIO); - Linker.link(g_settings_set_int64, "g_settings_set_int64", LIBRARY_GIO); - Linker.link(g_settings_set_string, "g_settings_set_string", LIBRARY_GIO); - Linker.link(g_settings_set_strv, "g_settings_set_strv", LIBRARY_GIO); - Linker.link(g_settings_set_uint, "g_settings_set_uint", LIBRARY_GIO); - Linker.link(g_settings_set_uint64, "g_settings_set_uint64", LIBRARY_GIO); - Linker.link(g_settings_set_value, "g_settings_set_value", LIBRARY_GIO); - - // gio.SettingsBackend - - Linker.link(g_settings_backend_get_type, "g_settings_backend_get_type", LIBRARY_GIO); - Linker.link(g_settings_backend_flatten_tree, "g_settings_backend_flatten_tree", LIBRARY_GIO); - Linker.link(g_settings_backend_get_default, "g_settings_backend_get_default", LIBRARY_GIO); - Linker.link(g_settings_backend_changed, "g_settings_backend_changed", LIBRARY_GIO); - Linker.link(g_settings_backend_changed_tree, "g_settings_backend_changed_tree", LIBRARY_GIO); - Linker.link(g_settings_backend_keys_changed, "g_settings_backend_keys_changed", LIBRARY_GIO); - Linker.link(g_settings_backend_path_changed, "g_settings_backend_path_changed", LIBRARY_GIO); - Linker.link(g_settings_backend_path_writable_changed, "g_settings_backend_path_writable_changed", LIBRARY_GIO); - Linker.link(g_settings_backend_writable_changed, "g_settings_backend_writable_changed", LIBRARY_GIO); - Linker.link(g_keyfile_settings_backend_new, "g_keyfile_settings_backend_new", LIBRARY_GIO); - Linker.link(g_memory_settings_backend_new, "g_memory_settings_backend_new", LIBRARY_GIO); - Linker.link(g_null_settings_backend_new, "g_null_settings_backend_new", LIBRARY_GIO); - - // gio.SettingsSchema - - Linker.link(g_settings_schema_get_type, "g_settings_schema_get_type", LIBRARY_GIO); - Linker.link(g_settings_schema_get_id, "g_settings_schema_get_id", LIBRARY_GIO); - Linker.link(g_settings_schema_get_key, "g_settings_schema_get_key", LIBRARY_GIO); - Linker.link(g_settings_schema_get_path, "g_settings_schema_get_path", LIBRARY_GIO); - Linker.link(g_settings_schema_has_key, "g_settings_schema_has_key", LIBRARY_GIO); - Linker.link(g_settings_schema_list_children, "g_settings_schema_list_children", LIBRARY_GIO); - Linker.link(g_settings_schema_list_keys, "g_settings_schema_list_keys", LIBRARY_GIO); - Linker.link(g_settings_schema_ref, "g_settings_schema_ref", LIBRARY_GIO); - Linker.link(g_settings_schema_unref, "g_settings_schema_unref", LIBRARY_GIO); - - // gio.SettingsSchemaKey - - Linker.link(g_settings_schema_key_get_type, "g_settings_schema_key_get_type", LIBRARY_GIO); - Linker.link(g_settings_schema_key_get_default_value, "g_settings_schema_key_get_default_value", LIBRARY_GIO); - Linker.link(g_settings_schema_key_get_description, "g_settings_schema_key_get_description", LIBRARY_GIO); - Linker.link(g_settings_schema_key_get_name, "g_settings_schema_key_get_name", LIBRARY_GIO); - Linker.link(g_settings_schema_key_get_range, "g_settings_schema_key_get_range", LIBRARY_GIO); - Linker.link(g_settings_schema_key_get_summary, "g_settings_schema_key_get_summary", LIBRARY_GIO); - Linker.link(g_settings_schema_key_get_value_type, "g_settings_schema_key_get_value_type", LIBRARY_GIO); - Linker.link(g_settings_schema_key_range_check, "g_settings_schema_key_range_check", LIBRARY_GIO); - Linker.link(g_settings_schema_key_ref, "g_settings_schema_key_ref", LIBRARY_GIO); - Linker.link(g_settings_schema_key_unref, "g_settings_schema_key_unref", LIBRARY_GIO); - - // gio.SettingsSchemaSource - - Linker.link(g_settings_schema_source_get_type, "g_settings_schema_source_get_type", LIBRARY_GIO); - Linker.link(g_settings_schema_source_new_from_directory, "g_settings_schema_source_new_from_directory", LIBRARY_GIO); - Linker.link(g_settings_schema_source_list_schemas, "g_settings_schema_source_list_schemas", LIBRARY_GIO); - Linker.link(g_settings_schema_source_lookup, "g_settings_schema_source_lookup", LIBRARY_GIO); - Linker.link(g_settings_schema_source_ref, "g_settings_schema_source_ref", LIBRARY_GIO); - Linker.link(g_settings_schema_source_unref, "g_settings_schema_source_unref", LIBRARY_GIO); - Linker.link(g_settings_schema_source_get_default, "g_settings_schema_source_get_default", LIBRARY_GIO); - - // gio.SimpleAction - - Linker.link(g_simple_action_get_type, "g_simple_action_get_type", LIBRARY_GIO); - Linker.link(g_simple_action_new, "g_simple_action_new", LIBRARY_GIO); - Linker.link(g_simple_action_new_stateful, "g_simple_action_new_stateful", LIBRARY_GIO); - Linker.link(g_simple_action_set_enabled, "g_simple_action_set_enabled", LIBRARY_GIO); - Linker.link(g_simple_action_set_state, "g_simple_action_set_state", LIBRARY_GIO); - Linker.link(g_simple_action_set_state_hint, "g_simple_action_set_state_hint", LIBRARY_GIO); - - // gio.SimpleActionGroup - - Linker.link(g_simple_action_group_get_type, "g_simple_action_group_get_type", LIBRARY_GIO); - Linker.link(g_simple_action_group_new, "g_simple_action_group_new", LIBRARY_GIO); - Linker.link(g_simple_action_group_add_entries, "g_simple_action_group_add_entries", LIBRARY_GIO); - Linker.link(g_simple_action_group_insert, "g_simple_action_group_insert", LIBRARY_GIO); - Linker.link(g_simple_action_group_lookup, "g_simple_action_group_lookup", LIBRARY_GIO); - Linker.link(g_simple_action_group_remove, "g_simple_action_group_remove", LIBRARY_GIO); - - // gio.SimpleAsyncResult - - Linker.link(g_simple_async_result_get_type, "g_simple_async_result_get_type", LIBRARY_GIO); - Linker.link(g_simple_async_result_new, "g_simple_async_result_new", LIBRARY_GIO); - Linker.link(g_simple_async_result_new_error, "g_simple_async_result_new_error", LIBRARY_GIO); - Linker.link(g_simple_async_result_new_from_error, "g_simple_async_result_new_from_error", LIBRARY_GIO); - Linker.link(g_simple_async_result_new_take_error, "g_simple_async_result_new_take_error", LIBRARY_GIO); - Linker.link(g_simple_async_result_is_valid, "g_simple_async_result_is_valid", LIBRARY_GIO); - Linker.link(g_simple_async_result_complete, "g_simple_async_result_complete", LIBRARY_GIO); - Linker.link(g_simple_async_result_complete_in_idle, "g_simple_async_result_complete_in_idle", LIBRARY_GIO); - Linker.link(g_simple_async_result_get_op_res_gboolean, "g_simple_async_result_get_op_res_gboolean", LIBRARY_GIO); - Linker.link(g_simple_async_result_get_op_res_gpointer, "g_simple_async_result_get_op_res_gpointer", LIBRARY_GIO); - Linker.link(g_simple_async_result_get_op_res_gssize, "g_simple_async_result_get_op_res_gssize", LIBRARY_GIO); - Linker.link(g_simple_async_result_get_source_tag, "g_simple_async_result_get_source_tag", LIBRARY_GIO); - Linker.link(g_simple_async_result_propagate_error, "g_simple_async_result_propagate_error", LIBRARY_GIO); - Linker.link(g_simple_async_result_run_in_thread, "g_simple_async_result_run_in_thread", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_check_cancellable, "g_simple_async_result_set_check_cancellable", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_error, "g_simple_async_result_set_error", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_error_va, "g_simple_async_result_set_error_va", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_from_error, "g_simple_async_result_set_from_error", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_handle_cancellation, "g_simple_async_result_set_handle_cancellation", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_op_res_gboolean, "g_simple_async_result_set_op_res_gboolean", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_op_res_gpointer, "g_simple_async_result_set_op_res_gpointer", LIBRARY_GIO); - Linker.link(g_simple_async_result_set_op_res_gssize, "g_simple_async_result_set_op_res_gssize", LIBRARY_GIO); - Linker.link(g_simple_async_result_take_error, "g_simple_async_result_take_error", LIBRARY_GIO); - Linker.link(g_simple_async_report_error_in_idle, "g_simple_async_report_error_in_idle", LIBRARY_GIO); - Linker.link(g_simple_async_report_gerror_in_idle, "g_simple_async_report_gerror_in_idle", LIBRARY_GIO); - Linker.link(g_simple_async_report_take_gerror_in_idle, "g_simple_async_report_take_gerror_in_idle", LIBRARY_GIO); - - // gio.SimpleIOStream - - Linker.link(g_simple_io_stream_get_type, "g_simple_io_stream_get_type", LIBRARY_GIO); - Linker.link(g_simple_io_stream_new, "g_simple_io_stream_new", LIBRARY_GIO); - - // gio.SimplePermission - - Linker.link(g_simple_permission_get_type, "g_simple_permission_get_type", LIBRARY_GIO); - Linker.link(g_simple_permission_new, "g_simple_permission_new", LIBRARY_GIO); - - // gio.SimpleProxyResolver - - Linker.link(g_simple_proxy_resolver_get_type, "g_simple_proxy_resolver_get_type", LIBRARY_GIO); - Linker.link(g_simple_proxy_resolver_new, "g_simple_proxy_resolver_new", LIBRARY_GIO); - Linker.link(g_simple_proxy_resolver_set_default_proxy, "g_simple_proxy_resolver_set_default_proxy", LIBRARY_GIO); - Linker.link(g_simple_proxy_resolver_set_ignore_hosts, "g_simple_proxy_resolver_set_ignore_hosts", LIBRARY_GIO); - Linker.link(g_simple_proxy_resolver_set_uri_proxy, "g_simple_proxy_resolver_set_uri_proxy", LIBRARY_GIO); - - // gio.Socket - - Linker.link(g_socket_get_type, "g_socket_get_type", LIBRARY_GIO); - Linker.link(g_socket_new, "g_socket_new", LIBRARY_GIO); - Linker.link(g_socket_new_from_fd, "g_socket_new_from_fd", LIBRARY_GIO); - Linker.link(g_socket_accept, "g_socket_accept", LIBRARY_GIO); - Linker.link(g_socket_bind, "g_socket_bind", LIBRARY_GIO); - Linker.link(g_socket_check_connect_result, "g_socket_check_connect_result", LIBRARY_GIO); - Linker.link(g_socket_close, "g_socket_close", LIBRARY_GIO); - Linker.link(g_socket_condition_check, "g_socket_condition_check", LIBRARY_GIO); - Linker.link(g_socket_condition_timed_wait, "g_socket_condition_timed_wait", LIBRARY_GIO); - Linker.link(g_socket_condition_wait, "g_socket_condition_wait", LIBRARY_GIO); - Linker.link(g_socket_connect, "g_socket_connect", LIBRARY_GIO); - Linker.link(g_socket_connection_factory_create_connection, "g_socket_connection_factory_create_connection", LIBRARY_GIO); - Linker.link(g_socket_create_source, "g_socket_create_source", LIBRARY_GIO); - Linker.link(g_socket_get_available_bytes, "g_socket_get_available_bytes", LIBRARY_GIO); - Linker.link(g_socket_get_blocking, "g_socket_get_blocking", LIBRARY_GIO); - Linker.link(g_socket_get_broadcast, "g_socket_get_broadcast", LIBRARY_GIO); - Linker.link(g_socket_get_credentials, "g_socket_get_credentials", LIBRARY_GIO); - Linker.link(g_socket_get_family, "g_socket_get_family", LIBRARY_GIO); - Linker.link(g_socket_get_fd, "g_socket_get_fd", LIBRARY_GIO); - Linker.link(g_socket_get_keepalive, "g_socket_get_keepalive", LIBRARY_GIO); - Linker.link(g_socket_get_listen_backlog, "g_socket_get_listen_backlog", LIBRARY_GIO); - Linker.link(g_socket_get_local_address, "g_socket_get_local_address", LIBRARY_GIO); - Linker.link(g_socket_get_multicast_loopback, "g_socket_get_multicast_loopback", LIBRARY_GIO); - Linker.link(g_socket_get_multicast_ttl, "g_socket_get_multicast_ttl", LIBRARY_GIO); - Linker.link(g_socket_get_option, "g_socket_get_option", LIBRARY_GIO); - Linker.link(g_socket_get_protocol, "g_socket_get_protocol", LIBRARY_GIO); - Linker.link(g_socket_get_remote_address, "g_socket_get_remote_address", LIBRARY_GIO); - Linker.link(g_socket_get_socket_type, "g_socket_get_socket_type", LIBRARY_GIO); - Linker.link(g_socket_get_timeout, "g_socket_get_timeout", LIBRARY_GIO); - Linker.link(g_socket_get_ttl, "g_socket_get_ttl", LIBRARY_GIO); - Linker.link(g_socket_is_closed, "g_socket_is_closed", LIBRARY_GIO); - Linker.link(g_socket_is_connected, "g_socket_is_connected", LIBRARY_GIO); - Linker.link(g_socket_join_multicast_group, "g_socket_join_multicast_group", LIBRARY_GIO); - Linker.link(g_socket_join_multicast_group_ssm, "g_socket_join_multicast_group_ssm", LIBRARY_GIO); - Linker.link(g_socket_leave_multicast_group, "g_socket_leave_multicast_group", LIBRARY_GIO); - Linker.link(g_socket_leave_multicast_group_ssm, "g_socket_leave_multicast_group_ssm", LIBRARY_GIO); - Linker.link(g_socket_listen, "g_socket_listen", LIBRARY_GIO); - Linker.link(g_socket_receive, "g_socket_receive", LIBRARY_GIO); - Linker.link(g_socket_receive_from, "g_socket_receive_from", LIBRARY_GIO); - Linker.link(g_socket_receive_message, "g_socket_receive_message", LIBRARY_GIO); - Linker.link(g_socket_receive_messages, "g_socket_receive_messages", LIBRARY_GIO); - Linker.link(g_socket_receive_with_blocking, "g_socket_receive_with_blocking", LIBRARY_GIO); - Linker.link(g_socket_send, "g_socket_send", LIBRARY_GIO); - Linker.link(g_socket_send_message, "g_socket_send_message", LIBRARY_GIO); - Linker.link(g_socket_send_message_with_timeout, "g_socket_send_message_with_timeout", LIBRARY_GIO); - Linker.link(g_socket_send_messages, "g_socket_send_messages", LIBRARY_GIO); - Linker.link(g_socket_send_to, "g_socket_send_to", LIBRARY_GIO); - Linker.link(g_socket_send_with_blocking, "g_socket_send_with_blocking", LIBRARY_GIO); - Linker.link(g_socket_set_blocking, "g_socket_set_blocking", LIBRARY_GIO); - Linker.link(g_socket_set_broadcast, "g_socket_set_broadcast", LIBRARY_GIO); - Linker.link(g_socket_set_keepalive, "g_socket_set_keepalive", LIBRARY_GIO); - Linker.link(g_socket_set_listen_backlog, "g_socket_set_listen_backlog", LIBRARY_GIO); - Linker.link(g_socket_set_multicast_loopback, "g_socket_set_multicast_loopback", LIBRARY_GIO); - Linker.link(g_socket_set_multicast_ttl, "g_socket_set_multicast_ttl", LIBRARY_GIO); - Linker.link(g_socket_set_option, "g_socket_set_option", LIBRARY_GIO); - Linker.link(g_socket_set_timeout, "g_socket_set_timeout", LIBRARY_GIO); - Linker.link(g_socket_set_ttl, "g_socket_set_ttl", LIBRARY_GIO); - Linker.link(g_socket_shutdown, "g_socket_shutdown", LIBRARY_GIO); - Linker.link(g_socket_speaks_ipv4, "g_socket_speaks_ipv4", LIBRARY_GIO); - - // gio.SocketAddress - - Linker.link(g_socket_address_get_type, "g_socket_address_get_type", LIBRARY_GIO); - Linker.link(g_socket_address_new_from_native, "g_socket_address_new_from_native", LIBRARY_GIO); - Linker.link(g_socket_address_get_family, "g_socket_address_get_family", LIBRARY_GIO); - Linker.link(g_socket_address_get_native_size, "g_socket_address_get_native_size", LIBRARY_GIO); - Linker.link(g_socket_address_to_native, "g_socket_address_to_native", LIBRARY_GIO); - - // gio.SocketAddressEnumerator - - Linker.link(g_socket_address_enumerator_get_type, "g_socket_address_enumerator_get_type", LIBRARY_GIO); - Linker.link(g_socket_address_enumerator_next, "g_socket_address_enumerator_next", LIBRARY_GIO); - Linker.link(g_socket_address_enumerator_next_async, "g_socket_address_enumerator_next_async", LIBRARY_GIO); - Linker.link(g_socket_address_enumerator_next_finish, "g_socket_address_enumerator_next_finish", LIBRARY_GIO); - - // gio.SocketClient - - Linker.link(g_socket_client_get_type, "g_socket_client_get_type", LIBRARY_GIO); - Linker.link(g_socket_client_new, "g_socket_client_new", LIBRARY_GIO); - Linker.link(g_socket_client_add_application_proxy, "g_socket_client_add_application_proxy", LIBRARY_GIO); - Linker.link(g_socket_client_connect, "g_socket_client_connect", LIBRARY_GIO); - Linker.link(g_socket_client_connect_async, "g_socket_client_connect_async", LIBRARY_GIO); - Linker.link(g_socket_client_connect_finish, "g_socket_client_connect_finish", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_host, "g_socket_client_connect_to_host", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_host_async, "g_socket_client_connect_to_host_async", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_host_finish, "g_socket_client_connect_to_host_finish", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_service, "g_socket_client_connect_to_service", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_service_async, "g_socket_client_connect_to_service_async", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_service_finish, "g_socket_client_connect_to_service_finish", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_uri, "g_socket_client_connect_to_uri", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_uri_async, "g_socket_client_connect_to_uri_async", LIBRARY_GIO); - Linker.link(g_socket_client_connect_to_uri_finish, "g_socket_client_connect_to_uri_finish", LIBRARY_GIO); - Linker.link(g_socket_client_get_enable_proxy, "g_socket_client_get_enable_proxy", LIBRARY_GIO); - Linker.link(g_socket_client_get_family, "g_socket_client_get_family", LIBRARY_GIO); - Linker.link(g_socket_client_get_local_address, "g_socket_client_get_local_address", LIBRARY_GIO); - Linker.link(g_socket_client_get_protocol, "g_socket_client_get_protocol", LIBRARY_GIO); - Linker.link(g_socket_client_get_proxy_resolver, "g_socket_client_get_proxy_resolver", LIBRARY_GIO); - Linker.link(g_socket_client_get_socket_type, "g_socket_client_get_socket_type", LIBRARY_GIO); - Linker.link(g_socket_client_get_timeout, "g_socket_client_get_timeout", LIBRARY_GIO); - Linker.link(g_socket_client_get_tls, "g_socket_client_get_tls", LIBRARY_GIO); - Linker.link(g_socket_client_get_tls_validation_flags, "g_socket_client_get_tls_validation_flags", LIBRARY_GIO); - Linker.link(g_socket_client_set_enable_proxy, "g_socket_client_set_enable_proxy", LIBRARY_GIO); - Linker.link(g_socket_client_set_family, "g_socket_client_set_family", LIBRARY_GIO); - Linker.link(g_socket_client_set_local_address, "g_socket_client_set_local_address", LIBRARY_GIO); - Linker.link(g_socket_client_set_protocol, "g_socket_client_set_protocol", LIBRARY_GIO); - Linker.link(g_socket_client_set_proxy_resolver, "g_socket_client_set_proxy_resolver", LIBRARY_GIO); - Linker.link(g_socket_client_set_socket_type, "g_socket_client_set_socket_type", LIBRARY_GIO); - Linker.link(g_socket_client_set_timeout, "g_socket_client_set_timeout", LIBRARY_GIO); - Linker.link(g_socket_client_set_tls, "g_socket_client_set_tls", LIBRARY_GIO); - Linker.link(g_socket_client_set_tls_validation_flags, "g_socket_client_set_tls_validation_flags", LIBRARY_GIO); - - // gio.SocketConnectable - - Linker.link(g_socket_connectable_get_type, "g_socket_connectable_get_type", LIBRARY_GIO); - Linker.link(g_socket_connectable_enumerate, "g_socket_connectable_enumerate", LIBRARY_GIO); - Linker.link(g_socket_connectable_proxy_enumerate, "g_socket_connectable_proxy_enumerate", LIBRARY_GIO); - Linker.link(g_socket_connectable_to_string, "g_socket_connectable_to_string", LIBRARY_GIO); - - // gio.SocketConnection - - Linker.link(g_socket_connection_get_type, "g_socket_connection_get_type", LIBRARY_GIO); - Linker.link(g_socket_connection_factory_lookup_type, "g_socket_connection_factory_lookup_type", LIBRARY_GIO); - Linker.link(g_socket_connection_factory_register_type, "g_socket_connection_factory_register_type", LIBRARY_GIO); - Linker.link(g_socket_connection_connect, "g_socket_connection_connect", LIBRARY_GIO); - Linker.link(g_socket_connection_connect_async, "g_socket_connection_connect_async", LIBRARY_GIO); - Linker.link(g_socket_connection_connect_finish, "g_socket_connection_connect_finish", LIBRARY_GIO); - Linker.link(g_socket_connection_get_local_address, "g_socket_connection_get_local_address", LIBRARY_GIO); - Linker.link(g_socket_connection_get_remote_address, "g_socket_connection_get_remote_address", LIBRARY_GIO); - Linker.link(g_socket_connection_get_socket, "g_socket_connection_get_socket", LIBRARY_GIO); - Linker.link(g_socket_connection_is_connected, "g_socket_connection_is_connected", LIBRARY_GIO); - - // gio.SocketControlMessage - - Linker.link(g_socket_control_message_get_type, "g_socket_control_message_get_type", LIBRARY_GIO); - Linker.link(g_socket_control_message_deserialize, "g_socket_control_message_deserialize", LIBRARY_GIO); - Linker.link(g_socket_control_message_get_level, "g_socket_control_message_get_level", LIBRARY_GIO); - Linker.link(g_socket_control_message_get_msg_type, "g_socket_control_message_get_msg_type", LIBRARY_GIO); - Linker.link(g_socket_control_message_get_size, "g_socket_control_message_get_size", LIBRARY_GIO); - Linker.link(g_socket_control_message_serialize, "g_socket_control_message_serialize", LIBRARY_GIO); - - // gio.SocketListener - - Linker.link(g_socket_listener_get_type, "g_socket_listener_get_type", LIBRARY_GIO); - Linker.link(g_socket_listener_new, "g_socket_listener_new", LIBRARY_GIO); - Linker.link(g_socket_listener_accept, "g_socket_listener_accept", LIBRARY_GIO); - Linker.link(g_socket_listener_accept_async, "g_socket_listener_accept_async", LIBRARY_GIO); - Linker.link(g_socket_listener_accept_finish, "g_socket_listener_accept_finish", LIBRARY_GIO); - Linker.link(g_socket_listener_accept_socket, "g_socket_listener_accept_socket", LIBRARY_GIO); - Linker.link(g_socket_listener_accept_socket_async, "g_socket_listener_accept_socket_async", LIBRARY_GIO); - Linker.link(g_socket_listener_accept_socket_finish, "g_socket_listener_accept_socket_finish", LIBRARY_GIO); - Linker.link(g_socket_listener_add_address, "g_socket_listener_add_address", LIBRARY_GIO); - Linker.link(g_socket_listener_add_any_inet_port, "g_socket_listener_add_any_inet_port", LIBRARY_GIO); - Linker.link(g_socket_listener_add_inet_port, "g_socket_listener_add_inet_port", LIBRARY_GIO); - Linker.link(g_socket_listener_add_socket, "g_socket_listener_add_socket", LIBRARY_GIO); - Linker.link(g_socket_listener_close, "g_socket_listener_close", LIBRARY_GIO); - Linker.link(g_socket_listener_set_backlog, "g_socket_listener_set_backlog", LIBRARY_GIO); - - // gio.SocketService - - Linker.link(g_socket_service_get_type, "g_socket_service_get_type", LIBRARY_GIO); - Linker.link(g_socket_service_new, "g_socket_service_new", LIBRARY_GIO); - Linker.link(g_socket_service_is_active, "g_socket_service_is_active", LIBRARY_GIO); - Linker.link(g_socket_service_start, "g_socket_service_start", LIBRARY_GIO); - Linker.link(g_socket_service_stop, "g_socket_service_stop", LIBRARY_GIO); - - // gio.SrvTarget - - Linker.link(g_srv_target_get_type, "g_srv_target_get_type", LIBRARY_GIO); - Linker.link(g_srv_target_new, "g_srv_target_new", LIBRARY_GIO); - Linker.link(g_srv_target_copy, "g_srv_target_copy", LIBRARY_GIO); - Linker.link(g_srv_target_free, "g_srv_target_free", LIBRARY_GIO); - Linker.link(g_srv_target_get_hostname, "g_srv_target_get_hostname", LIBRARY_GIO); - Linker.link(g_srv_target_get_port, "g_srv_target_get_port", LIBRARY_GIO); - Linker.link(g_srv_target_get_priority, "g_srv_target_get_priority", LIBRARY_GIO); - Linker.link(g_srv_target_get_weight, "g_srv_target_get_weight", LIBRARY_GIO); - Linker.link(g_srv_target_list_sort, "g_srv_target_list_sort", LIBRARY_GIO); - - // gio.StaticResource - - Linker.link(g_static_resource_fini, "g_static_resource_fini", LIBRARY_GIO); - Linker.link(g_static_resource_get_resource, "g_static_resource_get_resource", LIBRARY_GIO); - Linker.link(g_static_resource_init, "g_static_resource_init", LIBRARY_GIO); - - // gio.Subprocess - - Linker.link(g_subprocess_get_type, "g_subprocess_get_type", LIBRARY_GIO); - Linker.link(g_subprocess_new, "g_subprocess_new", LIBRARY_GIO); - Linker.link(g_subprocess_newv, "g_subprocess_newv", LIBRARY_GIO); - Linker.link(g_subprocess_communicate, "g_subprocess_communicate", LIBRARY_GIO); - Linker.link(g_subprocess_communicate_async, "g_subprocess_communicate_async", LIBRARY_GIO); - Linker.link(g_subprocess_communicate_finish, "g_subprocess_communicate_finish", LIBRARY_GIO); - Linker.link(g_subprocess_communicate_utf8, "g_subprocess_communicate_utf8", LIBRARY_GIO); - Linker.link(g_subprocess_communicate_utf8_async, "g_subprocess_communicate_utf8_async", LIBRARY_GIO); - Linker.link(g_subprocess_communicate_utf8_finish, "g_subprocess_communicate_utf8_finish", LIBRARY_GIO); - Linker.link(g_subprocess_force_exit, "g_subprocess_force_exit", LIBRARY_GIO); - Linker.link(g_subprocess_get_exit_status, "g_subprocess_get_exit_status", LIBRARY_GIO); - Linker.link(g_subprocess_get_identifier, "g_subprocess_get_identifier", LIBRARY_GIO); - Linker.link(g_subprocess_get_if_exited, "g_subprocess_get_if_exited", LIBRARY_GIO); - Linker.link(g_subprocess_get_if_signaled, "g_subprocess_get_if_signaled", LIBRARY_GIO); - Linker.link(g_subprocess_get_status, "g_subprocess_get_status", LIBRARY_GIO); - Linker.link(g_subprocess_get_stderr_pipe, "g_subprocess_get_stderr_pipe", LIBRARY_GIO); - Linker.link(g_subprocess_get_stdin_pipe, "g_subprocess_get_stdin_pipe", LIBRARY_GIO); - Linker.link(g_subprocess_get_stdout_pipe, "g_subprocess_get_stdout_pipe", LIBRARY_GIO); - Linker.link(g_subprocess_get_successful, "g_subprocess_get_successful", LIBRARY_GIO); - Linker.link(g_subprocess_get_term_sig, "g_subprocess_get_term_sig", LIBRARY_GIO); - Linker.link(g_subprocess_send_signal, "g_subprocess_send_signal", LIBRARY_GIO); - Linker.link(g_subprocess_wait, "g_subprocess_wait", LIBRARY_GIO); - Linker.link(g_subprocess_wait_async, "g_subprocess_wait_async", LIBRARY_GIO); - Linker.link(g_subprocess_wait_check, "g_subprocess_wait_check", LIBRARY_GIO); - Linker.link(g_subprocess_wait_check_async, "g_subprocess_wait_check_async", LIBRARY_GIO); - Linker.link(g_subprocess_wait_check_finish, "g_subprocess_wait_check_finish", LIBRARY_GIO); - Linker.link(g_subprocess_wait_finish, "g_subprocess_wait_finish", LIBRARY_GIO); - - // gio.SubprocessLauncher - - Linker.link(g_subprocess_launcher_get_type, "g_subprocess_launcher_get_type", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_new, "g_subprocess_launcher_new", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_close, "g_subprocess_launcher_close", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_getenv, "g_subprocess_launcher_getenv", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_set_child_setup, "g_subprocess_launcher_set_child_setup", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_set_cwd, "g_subprocess_launcher_set_cwd", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_set_environ, "g_subprocess_launcher_set_environ", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_set_flags, "g_subprocess_launcher_set_flags", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_set_stderr_file_path, "g_subprocess_launcher_set_stderr_file_path", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_set_stdin_file_path, "g_subprocess_launcher_set_stdin_file_path", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_set_stdout_file_path, "g_subprocess_launcher_set_stdout_file_path", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_setenv, "g_subprocess_launcher_setenv", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_spawn, "g_subprocess_launcher_spawn", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_spawnv, "g_subprocess_launcher_spawnv", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_take_fd, "g_subprocess_launcher_take_fd", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_take_stderr_fd, "g_subprocess_launcher_take_stderr_fd", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_take_stdin_fd, "g_subprocess_launcher_take_stdin_fd", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_take_stdout_fd, "g_subprocess_launcher_take_stdout_fd", LIBRARY_GIO); - Linker.link(g_subprocess_launcher_unsetenv, "g_subprocess_launcher_unsetenv", LIBRARY_GIO); - - // gio.Task - - Linker.link(g_task_get_type, "g_task_get_type", LIBRARY_GIO); - Linker.link(g_task_new, "g_task_new", LIBRARY_GIO); - Linker.link(g_task_is_valid, "g_task_is_valid", LIBRARY_GIO); - Linker.link(g_task_report_error, "g_task_report_error", LIBRARY_GIO); - Linker.link(g_task_report_new_error, "g_task_report_new_error", LIBRARY_GIO); - Linker.link(g_task_attach_source, "g_task_attach_source", LIBRARY_GIO); - Linker.link(g_task_get_cancellable, "g_task_get_cancellable", LIBRARY_GIO); - Linker.link(g_task_get_check_cancellable, "g_task_get_check_cancellable", LIBRARY_GIO); - Linker.link(g_task_get_completed, "g_task_get_completed", LIBRARY_GIO); - Linker.link(g_task_get_context, "g_task_get_context", LIBRARY_GIO); - Linker.link(g_task_get_name, "g_task_get_name", LIBRARY_GIO); - Linker.link(g_task_get_priority, "g_task_get_priority", LIBRARY_GIO); - Linker.link(g_task_get_return_on_cancel, "g_task_get_return_on_cancel", LIBRARY_GIO); - Linker.link(g_task_get_source_object, "g_task_get_source_object", LIBRARY_GIO); - Linker.link(g_task_get_source_tag, "g_task_get_source_tag", LIBRARY_GIO); - Linker.link(g_task_get_task_data, "g_task_get_task_data", LIBRARY_GIO); - Linker.link(g_task_had_error, "g_task_had_error", LIBRARY_GIO); - Linker.link(g_task_propagate_boolean, "g_task_propagate_boolean", LIBRARY_GIO); - Linker.link(g_task_propagate_int, "g_task_propagate_int", LIBRARY_GIO); - Linker.link(g_task_propagate_pointer, "g_task_propagate_pointer", LIBRARY_GIO); - Linker.link(g_task_propagate_value, "g_task_propagate_value", LIBRARY_GIO); - Linker.link(g_task_return_boolean, "g_task_return_boolean", LIBRARY_GIO); - Linker.link(g_task_return_error, "g_task_return_error", LIBRARY_GIO); - Linker.link(g_task_return_error_if_cancelled, "g_task_return_error_if_cancelled", LIBRARY_GIO); - Linker.link(g_task_return_int, "g_task_return_int", LIBRARY_GIO); - Linker.link(g_task_return_new_error, "g_task_return_new_error", LIBRARY_GIO); - Linker.link(g_task_return_pointer, "g_task_return_pointer", LIBRARY_GIO); - Linker.link(g_task_return_value, "g_task_return_value", LIBRARY_GIO); - Linker.link(g_task_run_in_thread, "g_task_run_in_thread", LIBRARY_GIO); - Linker.link(g_task_run_in_thread_sync, "g_task_run_in_thread_sync", LIBRARY_GIO); - Linker.link(g_task_set_check_cancellable, "g_task_set_check_cancellable", LIBRARY_GIO); - Linker.link(g_task_set_name, "g_task_set_name", LIBRARY_GIO); - Linker.link(g_task_set_priority, "g_task_set_priority", LIBRARY_GIO); - Linker.link(g_task_set_return_on_cancel, "g_task_set_return_on_cancel", LIBRARY_GIO); - Linker.link(g_task_set_source_tag, "g_task_set_source_tag", LIBRARY_GIO); - Linker.link(g_task_set_task_data, "g_task_set_task_data", LIBRARY_GIO); - - // gio.TcpConnection - - Linker.link(g_tcp_connection_get_type, "g_tcp_connection_get_type", LIBRARY_GIO); - Linker.link(g_tcp_connection_get_graceful_disconnect, "g_tcp_connection_get_graceful_disconnect", LIBRARY_GIO); - Linker.link(g_tcp_connection_set_graceful_disconnect, "g_tcp_connection_set_graceful_disconnect", LIBRARY_GIO); - - // gio.TcpWrapperConnection - - Linker.link(g_tcp_wrapper_connection_get_type, "g_tcp_wrapper_connection_get_type", LIBRARY_GIO); - Linker.link(g_tcp_wrapper_connection_new, "g_tcp_wrapper_connection_new", LIBRARY_GIO); - Linker.link(g_tcp_wrapper_connection_get_base_io_stream, "g_tcp_wrapper_connection_get_base_io_stream", LIBRARY_GIO); - - // gio.TestDBus - - Linker.link(g_test_dbus_get_type, "g_test_dbus_get_type", LIBRARY_GIO); - Linker.link(g_test_dbus_new, "g_test_dbus_new", LIBRARY_GIO); - Linker.link(g_test_dbus_unset, "g_test_dbus_unset", LIBRARY_GIO); - Linker.link(g_test_dbus_add_service_dir, "g_test_dbus_add_service_dir", LIBRARY_GIO); - Linker.link(g_test_dbus_down, "g_test_dbus_down", LIBRARY_GIO); - Linker.link(g_test_dbus_get_bus_address, "g_test_dbus_get_bus_address", LIBRARY_GIO); - Linker.link(g_test_dbus_get_flags, "g_test_dbus_get_flags", LIBRARY_GIO); - Linker.link(g_test_dbus_stop, "g_test_dbus_stop", LIBRARY_GIO); - Linker.link(g_test_dbus_up, "g_test_dbus_up", LIBRARY_GIO); - - // gio.ThemedIcon - - Linker.link(g_themed_icon_get_type, "g_themed_icon_get_type", LIBRARY_GIO); - Linker.link(g_themed_icon_new, "g_themed_icon_new", LIBRARY_GIO); - Linker.link(g_themed_icon_new_from_names, "g_themed_icon_new_from_names", LIBRARY_GIO); - Linker.link(g_themed_icon_new_with_default_fallbacks, "g_themed_icon_new_with_default_fallbacks", LIBRARY_GIO); - Linker.link(g_themed_icon_append_name, "g_themed_icon_append_name", LIBRARY_GIO); - Linker.link(g_themed_icon_get_names, "g_themed_icon_get_names", LIBRARY_GIO); - Linker.link(g_themed_icon_prepend_name, "g_themed_icon_prepend_name", LIBRARY_GIO); - - // gio.ThreadedSocketService - - Linker.link(g_threaded_socket_service_get_type, "g_threaded_socket_service_get_type", LIBRARY_GIO); - Linker.link(g_threaded_socket_service_new, "g_threaded_socket_service_new", LIBRARY_GIO); - - // gio.TlsBackend - - Linker.link(g_tls_backend_get_type, "g_tls_backend_get_type", LIBRARY_GIO); - Linker.link(g_tls_backend_get_default, "g_tls_backend_get_default", LIBRARY_GIO); - Linker.link(g_tls_backend_get_certificate_type, "g_tls_backend_get_certificate_type", LIBRARY_GIO); - Linker.link(g_tls_backend_get_client_connection_type, "g_tls_backend_get_client_connection_type", LIBRARY_GIO); - Linker.link(g_tls_backend_get_default_database, "g_tls_backend_get_default_database", LIBRARY_GIO); - Linker.link(g_tls_backend_get_dtls_client_connection_type, "g_tls_backend_get_dtls_client_connection_type", LIBRARY_GIO); - Linker.link(g_tls_backend_get_dtls_server_connection_type, "g_tls_backend_get_dtls_server_connection_type", LIBRARY_GIO); - Linker.link(g_tls_backend_get_file_database_type, "g_tls_backend_get_file_database_type", LIBRARY_GIO); - Linker.link(g_tls_backend_get_server_connection_type, "g_tls_backend_get_server_connection_type", LIBRARY_GIO); - Linker.link(g_tls_backend_set_default_database, "g_tls_backend_set_default_database", LIBRARY_GIO); - Linker.link(g_tls_backend_supports_dtls, "g_tls_backend_supports_dtls", LIBRARY_GIO); - Linker.link(g_tls_backend_supports_tls, "g_tls_backend_supports_tls", LIBRARY_GIO); - - // gio.TlsCertificate - - Linker.link(g_tls_certificate_get_type, "g_tls_certificate_get_type", LIBRARY_GIO); - Linker.link(g_tls_certificate_new_from_file, "g_tls_certificate_new_from_file", LIBRARY_GIO); - Linker.link(g_tls_certificate_new_from_files, "g_tls_certificate_new_from_files", LIBRARY_GIO); - Linker.link(g_tls_certificate_new_from_pem, "g_tls_certificate_new_from_pem", LIBRARY_GIO); - Linker.link(g_tls_certificate_new_from_pkcs11_uris, "g_tls_certificate_new_from_pkcs11_uris", LIBRARY_GIO); - Linker.link(g_tls_certificate_list_new_from_file, "g_tls_certificate_list_new_from_file", LIBRARY_GIO); - Linker.link(g_tls_certificate_get_issuer, "g_tls_certificate_get_issuer", LIBRARY_GIO); - Linker.link(g_tls_certificate_is_same, "g_tls_certificate_is_same", LIBRARY_GIO); - Linker.link(g_tls_certificate_verify, "g_tls_certificate_verify", LIBRARY_GIO); - - // gio.TlsClientConnection - - Linker.link(g_tls_client_connection_get_type, "g_tls_client_connection_get_type", LIBRARY_GIO); - Linker.link(g_tls_client_connection_new, "g_tls_client_connection_new", LIBRARY_GIO); - Linker.link(g_tls_client_connection_copy_session_state, "g_tls_client_connection_copy_session_state", LIBRARY_GIO); - Linker.link(g_tls_client_connection_get_accepted_cas, "g_tls_client_connection_get_accepted_cas", LIBRARY_GIO); - Linker.link(g_tls_client_connection_get_server_identity, "g_tls_client_connection_get_server_identity", LIBRARY_GIO); - Linker.link(g_tls_client_connection_get_use_ssl3, "g_tls_client_connection_get_use_ssl3", LIBRARY_GIO); - Linker.link(g_tls_client_connection_get_validation_flags, "g_tls_client_connection_get_validation_flags", LIBRARY_GIO); - Linker.link(g_tls_client_connection_set_server_identity, "g_tls_client_connection_set_server_identity", LIBRARY_GIO); - Linker.link(g_tls_client_connection_set_use_ssl3, "g_tls_client_connection_set_use_ssl3", LIBRARY_GIO); - Linker.link(g_tls_client_connection_set_validation_flags, "g_tls_client_connection_set_validation_flags", LIBRARY_GIO); - - // gio.TlsConnection - - Linker.link(g_tls_connection_get_type, "g_tls_connection_get_type", LIBRARY_GIO); - Linker.link(g_tls_connection_emit_accept_certificate, "g_tls_connection_emit_accept_certificate", LIBRARY_GIO); - Linker.link(g_tls_connection_get_certificate, "g_tls_connection_get_certificate", LIBRARY_GIO); - Linker.link(g_tls_connection_get_channel_binding_data, "g_tls_connection_get_channel_binding_data", LIBRARY_GIO); - Linker.link(g_tls_connection_get_database, "g_tls_connection_get_database", LIBRARY_GIO); - Linker.link(g_tls_connection_get_interaction, "g_tls_connection_get_interaction", LIBRARY_GIO); - Linker.link(g_tls_connection_get_negotiated_protocol, "g_tls_connection_get_negotiated_protocol", LIBRARY_GIO); - Linker.link(g_tls_connection_get_peer_certificate, "g_tls_connection_get_peer_certificate", LIBRARY_GIO); - Linker.link(g_tls_connection_get_peer_certificate_errors, "g_tls_connection_get_peer_certificate_errors", LIBRARY_GIO); - Linker.link(g_tls_connection_get_rehandshake_mode, "g_tls_connection_get_rehandshake_mode", LIBRARY_GIO); - Linker.link(g_tls_connection_get_require_close_notify, "g_tls_connection_get_require_close_notify", LIBRARY_GIO); - Linker.link(g_tls_connection_get_use_system_certdb, "g_tls_connection_get_use_system_certdb", LIBRARY_GIO); - Linker.link(g_tls_connection_handshake, "g_tls_connection_handshake", LIBRARY_GIO); - Linker.link(g_tls_connection_handshake_async, "g_tls_connection_handshake_async", LIBRARY_GIO); - Linker.link(g_tls_connection_handshake_finish, "g_tls_connection_handshake_finish", LIBRARY_GIO); - Linker.link(g_tls_connection_set_advertised_protocols, "g_tls_connection_set_advertised_protocols", LIBRARY_GIO); - Linker.link(g_tls_connection_set_certificate, "g_tls_connection_set_certificate", LIBRARY_GIO); - Linker.link(g_tls_connection_set_database, "g_tls_connection_set_database", LIBRARY_GIO); - Linker.link(g_tls_connection_set_interaction, "g_tls_connection_set_interaction", LIBRARY_GIO); - Linker.link(g_tls_connection_set_rehandshake_mode, "g_tls_connection_set_rehandshake_mode", LIBRARY_GIO); - Linker.link(g_tls_connection_set_require_close_notify, "g_tls_connection_set_require_close_notify", LIBRARY_GIO); - Linker.link(g_tls_connection_set_use_system_certdb, "g_tls_connection_set_use_system_certdb", LIBRARY_GIO); - - // gio.TlsDatabase - - Linker.link(g_tls_database_get_type, "g_tls_database_get_type", LIBRARY_GIO); - Linker.link(g_tls_database_create_certificate_handle, "g_tls_database_create_certificate_handle", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificate_for_handle, "g_tls_database_lookup_certificate_for_handle", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificate_for_handle_async, "g_tls_database_lookup_certificate_for_handle_async", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificate_for_handle_finish, "g_tls_database_lookup_certificate_for_handle_finish", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificate_issuer, "g_tls_database_lookup_certificate_issuer", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificate_issuer_async, "g_tls_database_lookup_certificate_issuer_async", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificate_issuer_finish, "g_tls_database_lookup_certificate_issuer_finish", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificates_issued_by, "g_tls_database_lookup_certificates_issued_by", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificates_issued_by_async, "g_tls_database_lookup_certificates_issued_by_async", LIBRARY_GIO); - Linker.link(g_tls_database_lookup_certificates_issued_by_finish, "g_tls_database_lookup_certificates_issued_by_finish", LIBRARY_GIO); - Linker.link(g_tls_database_verify_chain, "g_tls_database_verify_chain", LIBRARY_GIO); - Linker.link(g_tls_database_verify_chain_async, "g_tls_database_verify_chain_async", LIBRARY_GIO); - Linker.link(g_tls_database_verify_chain_finish, "g_tls_database_verify_chain_finish", LIBRARY_GIO); - - // gio.TlsFileDatabase - - Linker.link(g_tls_file_database_get_type, "g_tls_file_database_get_type", LIBRARY_GIO); - Linker.link(g_tls_file_database_new, "g_tls_file_database_new", LIBRARY_GIO); - - // gio.TlsInteraction - - Linker.link(g_tls_interaction_get_type, "g_tls_interaction_get_type", LIBRARY_GIO); - Linker.link(g_tls_interaction_ask_password, "g_tls_interaction_ask_password", LIBRARY_GIO); - Linker.link(g_tls_interaction_ask_password_async, "g_tls_interaction_ask_password_async", LIBRARY_GIO); - Linker.link(g_tls_interaction_ask_password_finish, "g_tls_interaction_ask_password_finish", LIBRARY_GIO); - Linker.link(g_tls_interaction_invoke_ask_password, "g_tls_interaction_invoke_ask_password", LIBRARY_GIO); - Linker.link(g_tls_interaction_invoke_request_certificate, "g_tls_interaction_invoke_request_certificate", LIBRARY_GIO); - Linker.link(g_tls_interaction_request_certificate, "g_tls_interaction_request_certificate", LIBRARY_GIO); - Linker.link(g_tls_interaction_request_certificate_async, "g_tls_interaction_request_certificate_async", LIBRARY_GIO); - Linker.link(g_tls_interaction_request_certificate_finish, "g_tls_interaction_request_certificate_finish", LIBRARY_GIO); - - // gio.TlsPassword - - Linker.link(g_tls_password_get_type, "g_tls_password_get_type", LIBRARY_GIO); - Linker.link(g_tls_password_new, "g_tls_password_new", LIBRARY_GIO); - Linker.link(g_tls_password_get_description, "g_tls_password_get_description", LIBRARY_GIO); - Linker.link(g_tls_password_get_flags, "g_tls_password_get_flags", LIBRARY_GIO); - Linker.link(g_tls_password_get_value, "g_tls_password_get_value", LIBRARY_GIO); - Linker.link(g_tls_password_get_warning, "g_tls_password_get_warning", LIBRARY_GIO); - Linker.link(g_tls_password_set_description, "g_tls_password_set_description", LIBRARY_GIO); - Linker.link(g_tls_password_set_flags, "g_tls_password_set_flags", LIBRARY_GIO); - Linker.link(g_tls_password_set_value, "g_tls_password_set_value", LIBRARY_GIO); - Linker.link(g_tls_password_set_value_full, "g_tls_password_set_value_full", LIBRARY_GIO); - Linker.link(g_tls_password_set_warning, "g_tls_password_set_warning", LIBRARY_GIO); - - // gio.TlsServerConnection - - Linker.link(g_tls_server_connection_get_type, "g_tls_server_connection_get_type", LIBRARY_GIO); - Linker.link(g_tls_server_connection_new, "g_tls_server_connection_new", LIBRARY_GIO); - - // gio.UnixConnection - - Linker.link(g_unix_connection_get_type, "g_unix_connection_get_type", LIBRARY_GIO); - Linker.link(g_unix_connection_receive_credentials, "g_unix_connection_receive_credentials", LIBRARY_GIO); - Linker.link(g_unix_connection_receive_credentials_async, "g_unix_connection_receive_credentials_async", LIBRARY_GIO); - Linker.link(g_unix_connection_receive_credentials_finish, "g_unix_connection_receive_credentials_finish", LIBRARY_GIO); - Linker.link(g_unix_connection_receive_fd, "g_unix_connection_receive_fd", LIBRARY_GIO); - Linker.link(g_unix_connection_send_credentials, "g_unix_connection_send_credentials", LIBRARY_GIO); - Linker.link(g_unix_connection_send_credentials_async, "g_unix_connection_send_credentials_async", LIBRARY_GIO); - Linker.link(g_unix_connection_send_credentials_finish, "g_unix_connection_send_credentials_finish", LIBRARY_GIO); - Linker.link(g_unix_connection_send_fd, "g_unix_connection_send_fd", LIBRARY_GIO); - - // gio.UnixCredentialsMessage - - Linker.link(g_unix_credentials_message_get_type, "g_unix_credentials_message_get_type", LIBRARY_GIO); - Linker.link(g_unix_credentials_message_new, "g_unix_credentials_message_new", LIBRARY_GIO); - Linker.link(g_unix_credentials_message_new_with_credentials, "g_unix_credentials_message_new_with_credentials", LIBRARY_GIO); - Linker.link(g_unix_credentials_message_is_supported, "g_unix_credentials_message_is_supported", LIBRARY_GIO); - Linker.link(g_unix_credentials_message_get_credentials, "g_unix_credentials_message_get_credentials", LIBRARY_GIO); - - // gio.UnixFDList - - Linker.link(g_unix_fd_list_get_type, "g_unix_fd_list_get_type", LIBRARY_GIO); - Linker.link(g_unix_fd_list_new, "g_unix_fd_list_new", LIBRARY_GIO); - Linker.link(g_unix_fd_list_new_from_array, "g_unix_fd_list_new_from_array", LIBRARY_GIO); - Linker.link(g_unix_fd_list_append, "g_unix_fd_list_append", LIBRARY_GIO); - Linker.link(g_unix_fd_list_get, "g_unix_fd_list_get", LIBRARY_GIO); - Linker.link(g_unix_fd_list_get_length, "g_unix_fd_list_get_length", LIBRARY_GIO); - Linker.link(g_unix_fd_list_peek_fds, "g_unix_fd_list_peek_fds", LIBRARY_GIO); - Linker.link(g_unix_fd_list_steal_fds, "g_unix_fd_list_steal_fds", LIBRARY_GIO); - - // gio.UnixFDMessage - - Linker.link(g_unix_fd_message_get_type, "g_unix_fd_message_get_type", LIBRARY_GIO); - Linker.link(g_unix_fd_message_new, "g_unix_fd_message_new", LIBRARY_GIO); - Linker.link(g_unix_fd_message_new_with_fd_list, "g_unix_fd_message_new_with_fd_list", LIBRARY_GIO); - Linker.link(g_unix_fd_message_append_fd, "g_unix_fd_message_append_fd", LIBRARY_GIO); - Linker.link(g_unix_fd_message_get_fd_list, "g_unix_fd_message_get_fd_list", LIBRARY_GIO); - Linker.link(g_unix_fd_message_steal_fds, "g_unix_fd_message_steal_fds", LIBRARY_GIO); - - // gio.UnixInputStream - - Linker.link(g_unix_input_stream_get_type, "g_unix_input_stream_get_type", LIBRARY_GIO); - Linker.link(g_unix_input_stream_new, "g_unix_input_stream_new", LIBRARY_GIO); - Linker.link(g_unix_input_stream_get_close_fd, "g_unix_input_stream_get_close_fd", LIBRARY_GIO); - Linker.link(g_unix_input_stream_get_fd, "g_unix_input_stream_get_fd", LIBRARY_GIO); - Linker.link(g_unix_input_stream_set_close_fd, "g_unix_input_stream_set_close_fd", LIBRARY_GIO); - - // gio.UnixMountEntry - - Linker.link(g_unix_mount_entry_get_type, "g_unix_mount_entry_get_type", LIBRARY_GIO); - Linker.link(g_unix_is_mount_path_system_internal, "g_unix_is_mount_path_system_internal", LIBRARY_GIO); - Linker.link(g_unix_mount_at, "g_unix_mount_at", LIBRARY_GIO); - Linker.link(g_unix_mount_compare, "g_unix_mount_compare", LIBRARY_GIO); - Linker.link(g_unix_mount_free, "g_unix_mount_free", LIBRARY_GIO); - Linker.link(g_unix_mount_get_device_path, "g_unix_mount_get_device_path", LIBRARY_GIO); - Linker.link(g_unix_mount_get_fs_type, "g_unix_mount_get_fs_type", LIBRARY_GIO); - Linker.link(g_unix_mount_get_mount_path, "g_unix_mount_get_mount_path", LIBRARY_GIO); - Linker.link(g_unix_mount_guess_can_eject, "g_unix_mount_guess_can_eject", LIBRARY_GIO); - Linker.link(g_unix_mount_guess_icon, "g_unix_mount_guess_icon", LIBRARY_GIO); - Linker.link(g_unix_mount_guess_name, "g_unix_mount_guess_name", LIBRARY_GIO); - Linker.link(g_unix_mount_guess_should_display, "g_unix_mount_guess_should_display", LIBRARY_GIO); - Linker.link(g_unix_mount_guess_symbolic_icon, "g_unix_mount_guess_symbolic_icon", LIBRARY_GIO); - Linker.link(g_unix_mount_is_readonly, "g_unix_mount_is_readonly", LIBRARY_GIO); - Linker.link(g_unix_mount_is_system_internal, "g_unix_mount_is_system_internal", LIBRARY_GIO); - Linker.link(g_unix_mount_points_changed_since, "g_unix_mount_points_changed_since", LIBRARY_GIO); - Linker.link(g_unix_mount_points_get, "g_unix_mount_points_get", LIBRARY_GIO); - Linker.link(g_unix_mounts_changed_since, "g_unix_mounts_changed_since", LIBRARY_GIO); - Linker.link(g_unix_mounts_get, "g_unix_mounts_get", LIBRARY_GIO); - Linker.link(g_unix_mount_copy, "g_unix_mount_copy", LIBRARY_GIO); - Linker.link(g_unix_mount_for, "g_unix_mount_for", LIBRARY_GIO); - Linker.link(g_unix_mount_get_options, "g_unix_mount_get_options", LIBRARY_GIO); - Linker.link(g_unix_mount_get_root_path, "g_unix_mount_get_root_path", LIBRARY_GIO); - - // gio.UnixMountMonitor - - Linker.link(g_unix_mount_monitor_get_type, "g_unix_mount_monitor_get_type", LIBRARY_GIO); - Linker.link(g_unix_mount_monitor_new, "g_unix_mount_monitor_new", LIBRARY_GIO); - Linker.link(g_unix_mount_monitor_get, "g_unix_mount_monitor_get", LIBRARY_GIO); - Linker.link(g_unix_mount_monitor_set_rate_limit, "g_unix_mount_monitor_set_rate_limit", LIBRARY_GIO); - - // gio.UnixMountPoint - - Linker.link(g_unix_mount_point_get_type, "g_unix_mount_point_get_type", LIBRARY_GIO); - Linker.link(g_unix_mount_point_compare, "g_unix_mount_point_compare", LIBRARY_GIO); - Linker.link(g_unix_mount_point_copy, "g_unix_mount_point_copy", LIBRARY_GIO); - Linker.link(g_unix_mount_point_free, "g_unix_mount_point_free", LIBRARY_GIO); - Linker.link(g_unix_mount_point_get_device_path, "g_unix_mount_point_get_device_path", LIBRARY_GIO); - Linker.link(g_unix_mount_point_get_fs_type, "g_unix_mount_point_get_fs_type", LIBRARY_GIO); - Linker.link(g_unix_mount_point_get_mount_path, "g_unix_mount_point_get_mount_path", LIBRARY_GIO); - Linker.link(g_unix_mount_point_get_options, "g_unix_mount_point_get_options", LIBRARY_GIO); - Linker.link(g_unix_mount_point_guess_can_eject, "g_unix_mount_point_guess_can_eject", LIBRARY_GIO); - Linker.link(g_unix_mount_point_guess_icon, "g_unix_mount_point_guess_icon", LIBRARY_GIO); - Linker.link(g_unix_mount_point_guess_name, "g_unix_mount_point_guess_name", LIBRARY_GIO); - Linker.link(g_unix_mount_point_guess_symbolic_icon, "g_unix_mount_point_guess_symbolic_icon", LIBRARY_GIO); - Linker.link(g_unix_mount_point_is_loopback, "g_unix_mount_point_is_loopback", LIBRARY_GIO); - Linker.link(g_unix_mount_point_is_readonly, "g_unix_mount_point_is_readonly", LIBRARY_GIO); - Linker.link(g_unix_mount_point_is_user_mountable, "g_unix_mount_point_is_user_mountable", LIBRARY_GIO); - Linker.link(g_unix_mount_point_at, "g_unix_mount_point_at", LIBRARY_GIO); - - // gio.UnixOutputStream - - Linker.link(g_unix_output_stream_get_type, "g_unix_output_stream_get_type", LIBRARY_GIO); - Linker.link(g_unix_output_stream_new, "g_unix_output_stream_new", LIBRARY_GIO); - Linker.link(g_unix_output_stream_get_close_fd, "g_unix_output_stream_get_close_fd", LIBRARY_GIO); - Linker.link(g_unix_output_stream_get_fd, "g_unix_output_stream_get_fd", LIBRARY_GIO); - Linker.link(g_unix_output_stream_set_close_fd, "g_unix_output_stream_set_close_fd", LIBRARY_GIO); - - // gio.UnixSocketAddress - - Linker.link(g_unix_socket_address_get_type, "g_unix_socket_address_get_type", LIBRARY_GIO); - Linker.link(g_unix_socket_address_new, "g_unix_socket_address_new", LIBRARY_GIO); - Linker.link(g_unix_socket_address_new_abstract, "g_unix_socket_address_new_abstract", LIBRARY_GIO); - Linker.link(g_unix_socket_address_new_with_type, "g_unix_socket_address_new_with_type", LIBRARY_GIO); - Linker.link(g_unix_socket_address_abstract_names_supported, "g_unix_socket_address_abstract_names_supported", LIBRARY_GIO); - Linker.link(g_unix_socket_address_get_address_type, "g_unix_socket_address_get_address_type", LIBRARY_GIO); - Linker.link(g_unix_socket_address_get_is_abstract, "g_unix_socket_address_get_is_abstract", LIBRARY_GIO); - Linker.link(g_unix_socket_address_get_path, "g_unix_socket_address_get_path", LIBRARY_GIO); - Linker.link(g_unix_socket_address_get_path_len, "g_unix_socket_address_get_path_len", LIBRARY_GIO); - - // gio.Vfs - - Linker.link(g_vfs_get_type, "g_vfs_get_type", LIBRARY_GIO); - Linker.link(g_vfs_get_default, "g_vfs_get_default", LIBRARY_GIO); - Linker.link(g_vfs_get_local, "g_vfs_get_local", LIBRARY_GIO); - Linker.link(g_vfs_get_file_for_path, "g_vfs_get_file_for_path", LIBRARY_GIO); - Linker.link(g_vfs_get_file_for_uri, "g_vfs_get_file_for_uri", LIBRARY_GIO); - Linker.link(g_vfs_get_supported_uri_schemes, "g_vfs_get_supported_uri_schemes", LIBRARY_GIO); - Linker.link(g_vfs_is_active, "g_vfs_is_active", LIBRARY_GIO); - Linker.link(g_vfs_parse_name, "g_vfs_parse_name", LIBRARY_GIO); - Linker.link(g_vfs_register_uri_scheme, "g_vfs_register_uri_scheme", LIBRARY_GIO); - Linker.link(g_vfs_unregister_uri_scheme, "g_vfs_unregister_uri_scheme", LIBRARY_GIO); - - // gio.Volume - - Linker.link(g_volume_get_type, "g_volume_get_type", LIBRARY_GIO); - Linker.link(g_volume_can_eject, "g_volume_can_eject", LIBRARY_GIO); - Linker.link(g_volume_can_mount, "g_volume_can_mount", LIBRARY_GIO); - Linker.link(g_volume_eject, "g_volume_eject", LIBRARY_GIO); - Linker.link(g_volume_eject_finish, "g_volume_eject_finish", LIBRARY_GIO); - Linker.link(g_volume_eject_with_operation, "g_volume_eject_with_operation", LIBRARY_GIO); - Linker.link(g_volume_eject_with_operation_finish, "g_volume_eject_with_operation_finish", LIBRARY_GIO); - Linker.link(g_volume_enumerate_identifiers, "g_volume_enumerate_identifiers", LIBRARY_GIO); - Linker.link(g_volume_get_activation_root, "g_volume_get_activation_root", LIBRARY_GIO); - Linker.link(g_volume_get_drive, "g_volume_get_drive", LIBRARY_GIO); - Linker.link(g_volume_get_icon, "g_volume_get_icon", LIBRARY_GIO); - Linker.link(g_volume_get_identifier, "g_volume_get_identifier", LIBRARY_GIO); - Linker.link(g_volume_get_mount, "g_volume_get_mount", LIBRARY_GIO); - Linker.link(g_volume_get_name, "g_volume_get_name", LIBRARY_GIO); - Linker.link(g_volume_get_sort_key, "g_volume_get_sort_key", LIBRARY_GIO); - Linker.link(g_volume_get_symbolic_icon, "g_volume_get_symbolic_icon", LIBRARY_GIO); - Linker.link(g_volume_get_uuid, "g_volume_get_uuid", LIBRARY_GIO); - Linker.link(g_volume_mount, "g_volume_mount", LIBRARY_GIO); - Linker.link(g_volume_mount_finish, "g_volume_mount_finish", LIBRARY_GIO); - Linker.link(g_volume_should_automount, "g_volume_should_automount", LIBRARY_GIO); - - // gio.VolumeMonitor - - Linker.link(g_volume_monitor_get_type, "g_volume_monitor_get_type", LIBRARY_GIO); - Linker.link(g_volume_monitor_adopt_orphan_mount, "g_volume_monitor_adopt_orphan_mount", LIBRARY_GIO); - Linker.link(g_volume_monitor_get, "g_volume_monitor_get", LIBRARY_GIO); - Linker.link(g_volume_monitor_get_connected_drives, "g_volume_monitor_get_connected_drives", LIBRARY_GIO); - Linker.link(g_volume_monitor_get_mount_for_uuid, "g_volume_monitor_get_mount_for_uuid", LIBRARY_GIO); - Linker.link(g_volume_monitor_get_mounts, "g_volume_monitor_get_mounts", LIBRARY_GIO); - Linker.link(g_volume_monitor_get_volume_for_uuid, "g_volume_monitor_get_volume_for_uuid", LIBRARY_GIO); - Linker.link(g_volume_monitor_get_volumes, "g_volume_monitor_get_volumes", LIBRARY_GIO); - - // gio.ZlibCompressor - - Linker.link(g_zlib_compressor_get_type, "g_zlib_compressor_get_type", LIBRARY_GIO); - Linker.link(g_zlib_compressor_new, "g_zlib_compressor_new", LIBRARY_GIO); - Linker.link(g_zlib_compressor_get_file_info, "g_zlib_compressor_get_file_info", LIBRARY_GIO); - Linker.link(g_zlib_compressor_set_file_info, "g_zlib_compressor_set_file_info", LIBRARY_GIO); - - // gio.ZlibDecompressor - - Linker.link(g_zlib_decompressor_get_type, "g_zlib_decompressor_get_type", LIBRARY_GIO); - Linker.link(g_zlib_decompressor_new, "g_zlib_decompressor_new", LIBRARY_GIO); - Linker.link(g_zlib_decompressor_get_file_info, "g_zlib_decompressor_get_file_info", LIBRARY_GIO); - - // gio.PollableUtils - - Linker.link(g_pollable_source_new, "g_pollable_source_new", LIBRARY_GIO); - Linker.link(g_pollable_source_new_full, "g_pollable_source_new_full", LIBRARY_GIO); - Linker.link(g_pollable_stream_read, "g_pollable_stream_read", LIBRARY_GIO); - Linker.link(g_pollable_stream_write, "g_pollable_stream_write", LIBRARY_GIO); - Linker.link(g_pollable_stream_write_all, "g_pollable_stream_write_all", LIBRARY_GIO); - - // gio.DBusNames - - Linker.link(g_bus_own_name, "g_bus_own_name", LIBRARY_GIO); - Linker.link(g_bus_own_name_on_connection, "g_bus_own_name_on_connection", LIBRARY_GIO); - Linker.link(g_bus_own_name_on_connection_with_closures, "g_bus_own_name_on_connection_with_closures", LIBRARY_GIO); - Linker.link(g_bus_own_name_with_closures, "g_bus_own_name_with_closures", LIBRARY_GIO); - Linker.link(g_bus_unown_name, "g_bus_unown_name", LIBRARY_GIO); - Linker.link(g_bus_unwatch_name, "g_bus_unwatch_name", LIBRARY_GIO); - Linker.link(g_bus_watch_name, "g_bus_watch_name", LIBRARY_GIO); - Linker.link(g_bus_watch_name_on_connection, "g_bus_watch_name_on_connection", LIBRARY_GIO); - Linker.link(g_bus_watch_name_on_connection_with_closures, "g_bus_watch_name_on_connection_with_closures", LIBRARY_GIO); - Linker.link(g_bus_watch_name_with_closures, "g_bus_watch_name_with_closures", LIBRARY_GIO); - - // gio.ContentType - - Linker.link(g_content_type_can_be_executable, "g_content_type_can_be_executable", LIBRARY_GIO); - Linker.link(g_content_type_equals, "g_content_type_equals", LIBRARY_GIO); - Linker.link(g_content_type_from_mime_type, "g_content_type_from_mime_type", LIBRARY_GIO); - Linker.link(g_content_type_get_description, "g_content_type_get_description", LIBRARY_GIO); - Linker.link(g_content_type_get_generic_icon_name, "g_content_type_get_generic_icon_name", LIBRARY_GIO); - Linker.link(g_content_type_get_icon, "g_content_type_get_icon", LIBRARY_GIO); - Linker.link(g_content_type_get_mime_type, "g_content_type_get_mime_type", LIBRARY_GIO); - Linker.link(g_content_type_get_symbolic_icon, "g_content_type_get_symbolic_icon", LIBRARY_GIO); - Linker.link(g_content_type_guess, "g_content_type_guess", LIBRARY_GIO); - Linker.link(g_content_type_guess_for_tree, "g_content_type_guess_for_tree", LIBRARY_GIO); - Linker.link(g_content_type_is_a, "g_content_type_is_a", LIBRARY_GIO); - Linker.link(g_content_type_is_unknown, "g_content_type_is_unknown", LIBRARY_GIO); - Linker.link(g_content_types_get_registered, "g_content_types_get_registered", LIBRARY_GIO); - Linker.link(g_content_type_is_mime_type, "g_content_type_is_mime_type", LIBRARY_GIO); - Linker.link(g_content_type_get_mime_dirs, "g_content_type_get_mime_dirs", LIBRARY_GIO); - Linker.link(g_content_type_set_mime_dirs, "g_content_type_set_mime_dirs", LIBRARY_GIO); - - // gio.DBusError - - Linker.link(g_dbus_error_encode_gerror, "g_dbus_error_encode_gerror", LIBRARY_GIO); - Linker.link(g_dbus_error_get_remote_error, "g_dbus_error_get_remote_error", LIBRARY_GIO); - Linker.link(g_dbus_error_is_remote_error, "g_dbus_error_is_remote_error", LIBRARY_GIO); - Linker.link(g_dbus_error_new_for_dbus_error, "g_dbus_error_new_for_dbus_error", LIBRARY_GIO); - Linker.link(g_dbus_error_quark, "g_dbus_error_quark", LIBRARY_GIO); - Linker.link(g_dbus_error_register_error, "g_dbus_error_register_error", LIBRARY_GIO); - Linker.link(g_dbus_error_register_error_domain, "g_dbus_error_register_error_domain", LIBRARY_GIO); - Linker.link(g_dbus_error_strip_remote_error, "g_dbus_error_strip_remote_error", LIBRARY_GIO); - Linker.link(g_dbus_error_unregister_error, "g_dbus_error_unregister_error", LIBRARY_GIO); - - // gio.DBusUtilities - - Linker.link(g_dbus_address_escape_value, "g_dbus_address_escape_value", LIBRARY_GIO); - Linker.link(g_dbus_address_get_for_bus_sync, "g_dbus_address_get_for_bus_sync", LIBRARY_GIO); - Linker.link(g_dbus_address_get_stream, "g_dbus_address_get_stream", LIBRARY_GIO); - Linker.link(g_dbus_address_get_stream_finish, "g_dbus_address_get_stream_finish", LIBRARY_GIO); - Linker.link(g_dbus_address_get_stream_sync, "g_dbus_address_get_stream_sync", LIBRARY_GIO); - Linker.link(g_dbus_generate_guid, "g_dbus_generate_guid", LIBRARY_GIO); - Linker.link(g_dbus_gvalue_to_gvariant, "g_dbus_gvalue_to_gvariant", LIBRARY_GIO); - Linker.link(g_dbus_gvariant_to_gvalue, "g_dbus_gvariant_to_gvalue", LIBRARY_GIO); - Linker.link(g_dbus_is_address, "g_dbus_is_address", LIBRARY_GIO); - Linker.link(g_dbus_is_guid, "g_dbus_is_guid", LIBRARY_GIO); - Linker.link(g_dbus_is_interface_name, "g_dbus_is_interface_name", LIBRARY_GIO); - Linker.link(g_dbus_is_member_name, "g_dbus_is_member_name", LIBRARY_GIO); - Linker.link(g_dbus_is_name, "g_dbus_is_name", LIBRARY_GIO); - Linker.link(g_dbus_is_supported_address, "g_dbus_is_supported_address", LIBRARY_GIO); - Linker.link(g_dbus_is_unique_name, "g_dbus_is_unique_name", LIBRARY_GIO); - - // gio.ErrorGIO - - Linker.link(g_io_error_from_errno, "g_io_error_from_errno", LIBRARY_GIO); - Linker.link(g_io_error_quark, "g_io_error_quark", LIBRARY_GIO); -} - -__gshared extern(C) -{ - - // gio.Action - - GType function() c_g_action_get_type; - int function(const(char)* actionName) c_g_action_name_is_valid; - int function(const(char)* detailedName, char** actionName, GVariant** targetValue, GError** err) c_g_action_parse_detailed_name; - char* function(const(char)* actionName, GVariant* targetValue) c_g_action_print_detailed_name; - void function(GAction* action, GVariant* parameter) c_g_action_activate; - void function(GAction* action, GVariant* value) c_g_action_change_state; - int function(GAction* action) c_g_action_get_enabled; - const(char)* function(GAction* action) c_g_action_get_name; - GVariantType* function(GAction* action) c_g_action_get_parameter_type; - GVariant* function(GAction* action) c_g_action_get_state; - GVariant* function(GAction* action) c_g_action_get_state_hint; - GVariantType* function(GAction* action) c_g_action_get_state_type; - - // gio.ActionGroup - - GType function() c_g_action_group_get_type; - void function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_action_added; - void function(GActionGroup* actionGroup, const(char)* actionName, int enabled) c_g_action_group_action_enabled_changed; - void function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_action_removed; - void function(GActionGroup* actionGroup, const(char)* actionName, GVariant* state) c_g_action_group_action_state_changed; - void function(GActionGroup* actionGroup, const(char)* actionName, GVariant* parameter) c_g_action_group_activate_action; - void function(GActionGroup* actionGroup, const(char)* actionName, GVariant* value) c_g_action_group_change_action_state; - int function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_get_action_enabled; - GVariantType* function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_get_action_parameter_type; - GVariant* function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_get_action_state; - GVariant* function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_get_action_state_hint; - GVariantType* function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_get_action_state_type; - int function(GActionGroup* actionGroup, const(char)* actionName) c_g_action_group_has_action; - char** function(GActionGroup* actionGroup) c_g_action_group_list_actions; - int function(GActionGroup* actionGroup, const(char)* actionName, int* enabled, GVariantType** parameterType, GVariantType** stateType, GVariant** stateHint, GVariant** state) c_g_action_group_query_action; - - // gio.ActionMap - - GType function() c_g_action_map_get_type; - void function(GActionMap* actionMap, GAction* action) c_g_action_map_add_action; - void function(GActionMap* actionMap, GActionEntry* entries, int nEntries, void* userData) c_g_action_map_add_action_entries; - GAction* function(GActionMap* actionMap, const(char)* actionName) c_g_action_map_lookup_action; - void function(GActionMap* actionMap, const(char)* actionName) c_g_action_map_remove_action; - - // gio.AppInfo - - GType function() c_g_app_info_get_type; - GAppInfo* function(char* commandline, const(char)* applicationName, GAppInfoCreateFlags flags, GError** err) c_g_app_info_create_from_commandline; - GList* function() c_g_app_info_get_all; - GList* function(const(char)* contentType) c_g_app_info_get_all_for_type; - GAppInfo* function(const(char)* contentType, int mustSupportUris) c_g_app_info_get_default_for_type; - GAppInfo* function(const(char)* uriScheme) c_g_app_info_get_default_for_uri_scheme; - GList* function(const(char)* contentType) c_g_app_info_get_fallback_for_type; - GList* function(const(char)* contentType) c_g_app_info_get_recommended_for_type; - int function(const(char)* uri, GAppLaunchContext* context, GError** err) c_g_app_info_launch_default_for_uri; - void function(const(char)* uri, GAppLaunchContext* context, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_app_info_launch_default_for_uri_async; - int function(GAsyncResult* result, GError** err) c_g_app_info_launch_default_for_uri_finish; - void function(const(char)* contentType) c_g_app_info_reset_type_associations; - int function(GAppInfo* appinfo, const(char)* contentType, GError** err) c_g_app_info_add_supports_type; - int function(GAppInfo* appinfo) c_g_app_info_can_delete; - int function(GAppInfo* appinfo) c_g_app_info_can_remove_supports_type; - int function(GAppInfo* appinfo) c_g_app_info_delete; - GAppInfo* function(GAppInfo* appinfo) c_g_app_info_dup; - int function(GAppInfo* appinfo1, GAppInfo* appinfo2) c_g_app_info_equal; - char* function(GAppInfo* appinfo) c_g_app_info_get_commandline; - const(char)* function(GAppInfo* appinfo) c_g_app_info_get_description; - const(char)* function(GAppInfo* appinfo) c_g_app_info_get_display_name; - char* function(GAppInfo* appinfo) c_g_app_info_get_executable; - GIcon* function(GAppInfo* appinfo) c_g_app_info_get_icon; - const(char)* function(GAppInfo* appinfo) c_g_app_info_get_id; - const(char)* function(GAppInfo* appinfo) c_g_app_info_get_name; - char** function(GAppInfo* appinfo) c_g_app_info_get_supported_types; - int function(GAppInfo* appinfo, GList* files, GAppLaunchContext* context, GError** err) c_g_app_info_launch; - int function(GAppInfo* appinfo, GList* uris, GAppLaunchContext* context, GError** err) c_g_app_info_launch_uris; - void function(GAppInfo* appinfo, GList* uris, GAppLaunchContext* context, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_app_info_launch_uris_async; - int function(GAppInfo* appinfo, GAsyncResult* result, GError** err) c_g_app_info_launch_uris_finish; - int function(GAppInfo* appinfo, const(char)* contentType, GError** err) c_g_app_info_remove_supports_type; - int function(GAppInfo* appinfo, char* extension, GError** err) c_g_app_info_set_as_default_for_extension; - int function(GAppInfo* appinfo, const(char)* contentType, GError** err) c_g_app_info_set_as_default_for_type; - int function(GAppInfo* appinfo, const(char)* contentType, GError** err) c_g_app_info_set_as_last_used_for_type; - int function(GAppInfo* appinfo) c_g_app_info_should_show; - int function(GAppInfo* appinfo) c_g_app_info_supports_files; - int function(GAppInfo* appinfo) c_g_app_info_supports_uris; - - // gio.AppInfoMonitor - - GType function() c_g_app_info_monitor_get_type; - GAppInfoMonitor* function() c_g_app_info_monitor_get; - - // gio.AppLaunchContext - - GType function() c_g_app_launch_context_get_type; - GAppLaunchContext* function() c_g_app_launch_context_new; - char* function(GAppLaunchContext* context, GAppInfo* info, GList* files) c_g_app_launch_context_get_display; - char** function(GAppLaunchContext* context) c_g_app_launch_context_get_environment; - char* function(GAppLaunchContext* context, GAppInfo* info, GList* files) c_g_app_launch_context_get_startup_notify_id; - void function(GAppLaunchContext* context, const(char)* startupNotifyId) c_g_app_launch_context_launch_failed; - void function(GAppLaunchContext* context, char* variable, char* value) c_g_app_launch_context_setenv; - void function(GAppLaunchContext* context, char* variable) c_g_app_launch_context_unsetenv; - - // gio.Application - - GType function() c_g_application_get_type; - GApplication* function(const(char)* applicationId, GApplicationFlags flags) c_g_application_new; - GApplication* function() c_g_application_get_default; - int function(const(char)* applicationId) c_g_application_id_is_valid; - void function(GApplication* application) c_g_application_activate; - void function(GApplication* application, const(char)* longName, char shortName, GOptionFlags flags, GOptionArg arg, const(char)* description, const(char)* argDescription) c_g_application_add_main_option; - void function(GApplication* application, GOptionEntry* entries) c_g_application_add_main_option_entries; - void function(GApplication* application, GOptionGroup* group) c_g_application_add_option_group; - void function(GApplication* application, void* object, const(char)* property) c_g_application_bind_busy_property; - const(char)* function(GApplication* application) c_g_application_get_application_id; - GDBusConnection* function(GApplication* application) c_g_application_get_dbus_connection; - const(char)* function(GApplication* application) c_g_application_get_dbus_object_path; - GApplicationFlags function(GApplication* application) c_g_application_get_flags; - uint function(GApplication* application) c_g_application_get_inactivity_timeout; - int function(GApplication* application) c_g_application_get_is_busy; - int function(GApplication* application) c_g_application_get_is_registered; - int function(GApplication* application) c_g_application_get_is_remote; - const(char)* function(GApplication* application) c_g_application_get_resource_base_path; - void function(GApplication* application) c_g_application_hold; - void function(GApplication* application) c_g_application_mark_busy; - void function(GApplication* application, GFile** files, int nFiles, const(char)* hint) c_g_application_open; - void function(GApplication* application) c_g_application_quit; - int function(GApplication* application, GCancellable* cancellable, GError** err) c_g_application_register; - void function(GApplication* application) c_g_application_release; - int function(GApplication* application, int argc, char** argv) c_g_application_run; - void function(GApplication* application, const(char)* id, GNotification* notification) c_g_application_send_notification; - void function(GApplication* application, GActionGroup* actionGroup) c_g_application_set_action_group; - void function(GApplication* application, const(char)* applicationId) c_g_application_set_application_id; - void function(GApplication* application) c_g_application_set_default; - void function(GApplication* application, GApplicationFlags flags) c_g_application_set_flags; - void function(GApplication* application, uint inactivityTimeout) c_g_application_set_inactivity_timeout; - void function(GApplication* application, const(char)* description) c_g_application_set_option_context_description; - void function(GApplication* application, const(char)* parameterString) c_g_application_set_option_context_parameter_string; - void function(GApplication* application, const(char)* summary) c_g_application_set_option_context_summary; - void function(GApplication* application, const(char)* resourcePath) c_g_application_set_resource_base_path; - void function(GApplication* application, void* object, const(char)* property) c_g_application_unbind_busy_property; - void function(GApplication* application) c_g_application_unmark_busy; - void function(GApplication* application, const(char)* id) c_g_application_withdraw_notification; - - // gio.ApplicationCommandLine - - GType function() c_g_application_command_line_get_type; - GFile* function(GApplicationCommandLine* cmdline, char* arg) c_g_application_command_line_create_file_for_arg; - char** function(GApplicationCommandLine* cmdline, int* argc) c_g_application_command_line_get_arguments; - char* function(GApplicationCommandLine* cmdline) c_g_application_command_line_get_cwd; - char** function(GApplicationCommandLine* cmdline) c_g_application_command_line_get_environ; - int function(GApplicationCommandLine* cmdline) c_g_application_command_line_get_exit_status; - int function(GApplicationCommandLine* cmdline) c_g_application_command_line_get_is_remote; - GVariantDict* function(GApplicationCommandLine* cmdline) c_g_application_command_line_get_options_dict; - GVariant* function(GApplicationCommandLine* cmdline) c_g_application_command_line_get_platform_data; - GInputStream* function(GApplicationCommandLine* cmdline) c_g_application_command_line_get_stdin; - const(char)* function(GApplicationCommandLine* cmdline, char* name) c_g_application_command_line_getenv; - void function(GApplicationCommandLine* cmdline, const(char)* format, ... ) c_g_application_command_line_print; - void function(GApplicationCommandLine* cmdline, const(char)* format, ... ) c_g_application_command_line_printerr; - void function(GApplicationCommandLine* cmdline, int exitStatus) c_g_application_command_line_set_exit_status; - - // gio.AsyncInitable - - GType function() c_g_async_initable_get_type; - void function(GType objectType, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData, const(char)* firstPropertyName, ... ) c_g_async_initable_new_async; - void function(GType objectType, const(char)* firstPropertyName, void* varArgs, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_async_initable_new_valist_async; - void function(GType objectType, uint nParameters, GParameter* parameters, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_async_initable_newv_async; - void function(GAsyncInitable* initable, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_async_initable_init_async; - int function(GAsyncInitable* initable, GAsyncResult* res, GError** err) c_g_async_initable_init_finish; - GObject* function(GAsyncInitable* initable, GAsyncResult* res, GError** err) c_g_async_initable_new_finish; - - // gio.AsyncResult - - GType function() c_g_async_result_get_type; - GObject* function(GAsyncResult* res) c_g_async_result_get_source_object; - void* function(GAsyncResult* res) c_g_async_result_get_user_data; - int function(GAsyncResult* res, void* sourceTag) c_g_async_result_is_tagged; - int function(GAsyncResult* res, GError** err) c_g_async_result_legacy_propagate_error; - - // gio.BufferedInputStream - - GType function() c_g_buffered_input_stream_get_type; - GInputStream* function(GInputStream* baseStream) c_g_buffered_input_stream_new; - GInputStream* function(GInputStream* baseStream, size_t size) c_g_buffered_input_stream_new_sized; - ptrdiff_t function(GBufferedInputStream* stream, ptrdiff_t count, GCancellable* cancellable, GError** err) c_g_buffered_input_stream_fill; - void function(GBufferedInputStream* stream, ptrdiff_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_buffered_input_stream_fill_async; - ptrdiff_t function(GBufferedInputStream* stream, GAsyncResult* result, GError** err) c_g_buffered_input_stream_fill_finish; - size_t function(GBufferedInputStream* stream) c_g_buffered_input_stream_get_available; - size_t function(GBufferedInputStream* stream) c_g_buffered_input_stream_get_buffer_size; - size_t function(GBufferedInputStream* stream, void* buffer, size_t offset, size_t count) c_g_buffered_input_stream_peek; - void* function(GBufferedInputStream* stream, size_t* count) c_g_buffered_input_stream_peek_buffer; - int function(GBufferedInputStream* stream, GCancellable* cancellable, GError** err) c_g_buffered_input_stream_read_byte; - void function(GBufferedInputStream* stream, size_t size) c_g_buffered_input_stream_set_buffer_size; - - // gio.BufferedOutputStream - - GType function() c_g_buffered_output_stream_get_type; - GOutputStream* function(GOutputStream* baseStream) c_g_buffered_output_stream_new; - GOutputStream* function(GOutputStream* baseStream, size_t size) c_g_buffered_output_stream_new_sized; - int function(GBufferedOutputStream* stream) c_g_buffered_output_stream_get_auto_grow; - size_t function(GBufferedOutputStream* stream) c_g_buffered_output_stream_get_buffer_size; - void function(GBufferedOutputStream* stream, int autoGrow) c_g_buffered_output_stream_set_auto_grow; - void function(GBufferedOutputStream* stream, size_t size) c_g_buffered_output_stream_set_buffer_size; - - // gio.BytesIcon - - GType function() c_g_bytes_icon_get_type; - GIcon* function(GBytes* bytes) c_g_bytes_icon_new; - GBytes* function(GBytesIcon* icon) c_g_bytes_icon_get_bytes; - - // gio.Cancellable - - GType function() c_g_cancellable_get_type; - GCancellable* function() c_g_cancellable_new; - GCancellable* function() c_g_cancellable_get_current; - void function(GCancellable* cancellable) c_g_cancellable_cancel; - gulong function(GCancellable* cancellable, GCallback callback, void* data, GDestroyNotify dataDestroyFunc) c_g_cancellable_connect; - void function(GCancellable* cancellable, gulong handlerId) c_g_cancellable_disconnect; - int function(GCancellable* cancellable) c_g_cancellable_get_fd; - int function(GCancellable* cancellable) c_g_cancellable_is_cancelled; - int function(GCancellable* cancellable, GPollFD* pollfd) c_g_cancellable_make_pollfd; - void function(GCancellable* cancellable) c_g_cancellable_pop_current; - void function(GCancellable* cancellable) c_g_cancellable_push_current; - void function(GCancellable* cancellable) c_g_cancellable_release_fd; - void function(GCancellable* cancellable) c_g_cancellable_reset; - int function(GCancellable* cancellable, GError** err) c_g_cancellable_set_error_if_cancelled; - GSource* function(GCancellable* cancellable) c_g_cancellable_source_new; - - // gio.CharsetConverter - - GType function() c_g_charset_converter_get_type; - GCharsetConverter* function(const(char)* toCharset, const(char)* fromCharset, GError** err) c_g_charset_converter_new; - uint function(GCharsetConverter* converter) c_g_charset_converter_get_num_fallbacks; - int function(GCharsetConverter* converter) c_g_charset_converter_get_use_fallback; - void function(GCharsetConverter* converter, int useFallback) c_g_charset_converter_set_use_fallback; - - // gio.Converter - - GType function() c_g_converter_get_type; - GConverterResult function(GConverter* converter, void* inbuf, size_t inbufSize, void* outbuf, size_t outbufSize, GConverterFlags flags, size_t* bytesRead, size_t* bytesWritten, GError** err) c_g_converter_convert; - void function(GConverter* converter) c_g_converter_reset; - - // gio.ConverterInputStream - - GType function() c_g_converter_input_stream_get_type; - GInputStream* function(GInputStream* baseStream, GConverter* converter) c_g_converter_input_stream_new; - GConverter* function(GConverterInputStream* converterStream) c_g_converter_input_stream_get_converter; - - // gio.ConverterOutputStream - - GType function() c_g_converter_output_stream_get_type; - GOutputStream* function(GOutputStream* baseStream, GConverter* converter) c_g_converter_output_stream_new; - GConverter* function(GConverterOutputStream* converterStream) c_g_converter_output_stream_get_converter; - - // gio.Credentials - - GType function() c_g_credentials_get_type; - GCredentials* function() c_g_credentials_new; - void* function(GCredentials* credentials, GCredentialsType nativeType) c_g_credentials_get_native; - pid_t function(GCredentials* credentials, GError** err) c_g_credentials_get_unix_pid; - uid_t function(GCredentials* credentials, GError** err) c_g_credentials_get_unix_user; - int function(GCredentials* credentials, GCredentials* otherCredentials, GError** err) c_g_credentials_is_same_user; - void function(GCredentials* credentials, GCredentialsType nativeType, void* native) c_g_credentials_set_native; - int function(GCredentials* credentials, uid_t uid, GError** err) c_g_credentials_set_unix_user; - char* function(GCredentials* credentials) c_g_credentials_to_string; - - // gio.DBusActionGroup - - GType function() c_g_dbus_action_group_get_type; - GDBusActionGroup* function(GDBusConnection* connection, const(char)* busName, const(char)* objectPath) c_g_dbus_action_group_get; - - // gio.DBusAnnotationInfo - - GType function() c_g_dbus_annotation_info_get_type; - GDBusAnnotationInfo* function(GDBusAnnotationInfo* info) c_g_dbus_annotation_info_ref; - void function(GDBusAnnotationInfo* info) c_g_dbus_annotation_info_unref; - const(char)* function(GDBusAnnotationInfo** annotations, const(char)* name) c_g_dbus_annotation_info_lookup; - - // gio.DBusArgInfo - - GType function() c_g_dbus_arg_info_get_type; - GDBusArgInfo* function(GDBusArgInfo* info) c_g_dbus_arg_info_ref; - void function(GDBusArgInfo* info) c_g_dbus_arg_info_unref; - - // gio.DBusAuthObserver - - GType function() c_g_dbus_auth_observer_get_type; - GDBusAuthObserver* function() c_g_dbus_auth_observer_new; - int function(GDBusAuthObserver* observer, const(char)* mechanism) c_g_dbus_auth_observer_allow_mechanism; - int function(GDBusAuthObserver* observer, GIOStream* stream, GCredentials* credentials) c_g_dbus_auth_observer_authorize_authenticated_peer; - - // gio.DBusConnection - - GType function() c_g_dbus_connection_get_type; - GDBusConnection* function(GAsyncResult* res, GError** err) c_g_dbus_connection_new_finish; - GDBusConnection* function(GAsyncResult* res, GError** err) c_g_dbus_connection_new_for_address_finish; - GDBusConnection* function(const(char)* address, GDBusConnectionFlags flags, GDBusAuthObserver* observer, GCancellable* cancellable, GError** err) c_g_dbus_connection_new_for_address_sync; - GDBusConnection* function(GIOStream* stream, const(char)* guid, GDBusConnectionFlags flags, GDBusAuthObserver* observer, GCancellable* cancellable, GError** err) c_g_dbus_connection_new_sync; - void function(GIOStream* stream, const(char)* guid, GDBusConnectionFlags flags, GDBusAuthObserver* observer, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_connection_new; - void function(const(char)* address, GDBusConnectionFlags flags, GDBusAuthObserver* observer, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_connection_new_for_address; - uint function(GDBusConnection* connection, GDBusMessageFilterFunction filterFunction, void* userData, GDestroyNotify userDataFreeFunc) c_g_dbus_connection_add_filter; - void function(GDBusConnection* connection, const(char)* busName, const(char)* objectPath, const(char)* interfaceName, const(char)* methodName, GVariant* parameters, GVariantType* replyType, GDBusCallFlags flags, int timeoutMsec, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_connection_call; - GVariant* function(GDBusConnection* connection, GAsyncResult* res, GError** err) c_g_dbus_connection_call_finish; - GVariant* function(GDBusConnection* connection, const(char)* busName, const(char)* objectPath, const(char)* interfaceName, const(char)* methodName, GVariant* parameters, GVariantType* replyType, GDBusCallFlags flags, int timeoutMsec, GCancellable* cancellable, GError** err) c_g_dbus_connection_call_sync; - void function(GDBusConnection* connection, const(char)* busName, const(char)* objectPath, const(char)* interfaceName, const(char)* methodName, GVariant* parameters, GVariantType* replyType, GDBusCallFlags flags, int timeoutMsec, GUnixFDList* fdList, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_connection_call_with_unix_fd_list; - GVariant* function(GDBusConnection* connection, GUnixFDList** outFdList, GAsyncResult* res, GError** err) c_g_dbus_connection_call_with_unix_fd_list_finish; - GVariant* function(GDBusConnection* connection, const(char)* busName, const(char)* objectPath, const(char)* interfaceName, const(char)* methodName, GVariant* parameters, GVariantType* replyType, GDBusCallFlags flags, int timeoutMsec, GUnixFDList* fdList, GUnixFDList** outFdList, GCancellable* cancellable, GError** err) c_g_dbus_connection_call_with_unix_fd_list_sync; - void function(GDBusConnection* connection, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_connection_close; - int function(GDBusConnection* connection, GAsyncResult* res, GError** err) c_g_dbus_connection_close_finish; - int function(GDBusConnection* connection, GCancellable* cancellable, GError** err) c_g_dbus_connection_close_sync; - int function(GDBusConnection* connection, const(char)* destinationBusName, const(char)* objectPath, const(char)* interfaceName, const(char)* signalName, GVariant* parameters, GError** err) c_g_dbus_connection_emit_signal; - uint function(GDBusConnection* connection, const(char)* objectPath, GActionGroup* actionGroup, GError** err) c_g_dbus_connection_export_action_group; - uint function(GDBusConnection* connection, const(char)* objectPath, GMenuModel* menu, GError** err) c_g_dbus_connection_export_menu_model; - void function(GDBusConnection* connection, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_connection_flush; - int function(GDBusConnection* connection, GAsyncResult* res, GError** err) c_g_dbus_connection_flush_finish; - int function(GDBusConnection* connection, GCancellable* cancellable, GError** err) c_g_dbus_connection_flush_sync; - GDBusCapabilityFlags function(GDBusConnection* connection) c_g_dbus_connection_get_capabilities; - int function(GDBusConnection* connection) c_g_dbus_connection_get_exit_on_close; - GDBusConnectionFlags function(GDBusConnection* connection) c_g_dbus_connection_get_flags; - const(char)* function(GDBusConnection* connection) c_g_dbus_connection_get_guid; - uint function(GDBusConnection* connection) c_g_dbus_connection_get_last_serial; - GCredentials* function(GDBusConnection* connection) c_g_dbus_connection_get_peer_credentials; - GIOStream* function(GDBusConnection* connection) c_g_dbus_connection_get_stream; - const(char)* function(GDBusConnection* connection) c_g_dbus_connection_get_unique_name; - int function(GDBusConnection* connection) c_g_dbus_connection_is_closed; - uint function(GDBusConnection* connection, const(char)* objectPath, GDBusInterfaceInfo* interfaceInfo, GDBusInterfaceVTable* vtable, void* userData, GDestroyNotify userDataFreeFunc, GError** err) c_g_dbus_connection_register_object; - uint function(GDBusConnection* connection, const(char)* objectPath, GDBusInterfaceInfo* interfaceInfo, GClosure* methodCallClosure, GClosure* getPropertyClosure, GClosure* setPropertyClosure, GError** err) c_g_dbus_connection_register_object_with_closures; - uint function(GDBusConnection* connection, const(char)* objectPath, GDBusSubtreeVTable* vtable, GDBusSubtreeFlags flags, void* userData, GDestroyNotify userDataFreeFunc, GError** err) c_g_dbus_connection_register_subtree; - void function(GDBusConnection* connection, uint filterId) c_g_dbus_connection_remove_filter; - int function(GDBusConnection* connection, GDBusMessage* message, GDBusSendMessageFlags flags, uint* outSerial, GError** err) c_g_dbus_connection_send_message; - void function(GDBusConnection* connection, GDBusMessage* message, GDBusSendMessageFlags flags, int timeoutMsec, uint* outSerial, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_connection_send_message_with_reply; - GDBusMessage* function(GDBusConnection* connection, GAsyncResult* res, GError** err) c_g_dbus_connection_send_message_with_reply_finish; - GDBusMessage* function(GDBusConnection* connection, GDBusMessage* message, GDBusSendMessageFlags flags, int timeoutMsec, uint* outSerial, GCancellable* cancellable, GError** err) c_g_dbus_connection_send_message_with_reply_sync; - void function(GDBusConnection* connection, int exitOnClose) c_g_dbus_connection_set_exit_on_close; - uint function(GDBusConnection* connection, const(char)* sender, const(char)* interfaceName, const(char)* member, const(char)* objectPath, const(char)* arg0, GDBusSignalFlags flags, GDBusSignalCallback callback, void* userData, GDestroyNotify userDataFreeFunc) c_g_dbus_connection_signal_subscribe; - void function(GDBusConnection* connection, uint subscriptionId) c_g_dbus_connection_signal_unsubscribe; - void function(GDBusConnection* connection) c_g_dbus_connection_start_message_processing; - void function(GDBusConnection* connection, uint exportId) c_g_dbus_connection_unexport_action_group; - void function(GDBusConnection* connection, uint exportId) c_g_dbus_connection_unexport_menu_model; - int function(GDBusConnection* connection, uint registrationId) c_g_dbus_connection_unregister_object; - int function(GDBusConnection* connection, uint registrationId) c_g_dbus_connection_unregister_subtree; - void function(GBusType busType, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_bus_get; - GDBusConnection* function(GAsyncResult* res, GError** err) c_g_bus_get_finish; - GDBusConnection* function(GBusType busType, GCancellable* cancellable, GError** err) c_g_bus_get_sync; - - // gio.DBusInterface - - GType function() c_g_dbus_interface_get_type; - GDBusObject* function(GDBusInterface* interface_) c_g_dbus_interface_dup_object; - GDBusInterfaceInfo* function(GDBusInterface* interface_) c_g_dbus_interface_get_info; - GDBusObject* function(GDBusInterface* interface_) c_g_dbus_interface_get_object; - void function(GDBusInterface* interface_, GDBusObject* object) c_g_dbus_interface_set_object; - - // gio.DBusInterfaceInfo - - GType function() c_g_dbus_interface_info_get_type; - void function(GDBusInterfaceInfo* info) c_g_dbus_interface_info_cache_build; - void function(GDBusInterfaceInfo* info) c_g_dbus_interface_info_cache_release; - void function(GDBusInterfaceInfo* info, uint indent, GString* stringBuilder) c_g_dbus_interface_info_generate_xml; - GDBusMethodInfo* function(GDBusInterfaceInfo* info, const(char)* name) c_g_dbus_interface_info_lookup_method; - GDBusPropertyInfo* function(GDBusInterfaceInfo* info, const(char)* name) c_g_dbus_interface_info_lookup_property; - GDBusSignalInfo* function(GDBusInterfaceInfo* info, const(char)* name) c_g_dbus_interface_info_lookup_signal; - GDBusInterfaceInfo* function(GDBusInterfaceInfo* info) c_g_dbus_interface_info_ref; - void function(GDBusInterfaceInfo* info) c_g_dbus_interface_info_unref; - - // gio.DBusInterfaceSkeleton - - GType function() c_g_dbus_interface_skeleton_get_type; - int function(GDBusInterfaceSkeleton* interface_, GDBusConnection* connection, const(char)* objectPath, GError** err) c_g_dbus_interface_skeleton_export; - void function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_flush; - GDBusConnection* function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_get_connection; - GList* function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_get_connections; - GDBusInterfaceSkeletonFlags function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_get_flags; - GDBusInterfaceInfo* function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_get_info; - const(char)* function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_get_object_path; - GVariant* function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_get_properties; - GDBusInterfaceVTable* function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_get_vtable; - int function(GDBusInterfaceSkeleton* interface_, GDBusConnection* connection) c_g_dbus_interface_skeleton_has_connection; - void function(GDBusInterfaceSkeleton* interface_, GDBusInterfaceSkeletonFlags flags) c_g_dbus_interface_skeleton_set_flags; - void function(GDBusInterfaceSkeleton* interface_) c_g_dbus_interface_skeleton_unexport; - void function(GDBusInterfaceSkeleton* interface_, GDBusConnection* connection) c_g_dbus_interface_skeleton_unexport_from_connection; - - // gio.DBusMenuModel - - GType function() c_g_dbus_menu_model_get_type; - GDBusMenuModel* function(GDBusConnection* connection, const(char)* busName, const(char)* objectPath) c_g_dbus_menu_model_get; - - // gio.DBusMessage - - GType function() c_g_dbus_message_get_type; - GDBusMessage* function() c_g_dbus_message_new; - GDBusMessage* function(char* blob, size_t blobLen, GDBusCapabilityFlags capabilities, GError** err) c_g_dbus_message_new_from_blob; - GDBusMessage* function(const(char)* name, const(char)* path, const(char)* interface_, const(char)* method) c_g_dbus_message_new_method_call; - GDBusMessage* function(const(char)* path, const(char)* interface_, const(char)* signal) c_g_dbus_message_new_signal; - ptrdiff_t function(char* blob, size_t blobLen, GError** err) c_g_dbus_message_bytes_needed; - GDBusMessage* function(GDBusMessage* message, GError** err) c_g_dbus_message_copy; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_arg0; - GVariant* function(GDBusMessage* message) c_g_dbus_message_get_body; - GDBusMessageByteOrder function(GDBusMessage* message) c_g_dbus_message_get_byte_order; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_destination; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_error_name; - GDBusMessageFlags function(GDBusMessage* message) c_g_dbus_message_get_flags; - GVariant* function(GDBusMessage* message, GDBusMessageHeaderField headerField) c_g_dbus_message_get_header; - char* function(GDBusMessage* message) c_g_dbus_message_get_header_fields; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_interface; - int function(GDBusMessage* message) c_g_dbus_message_get_locked; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_member; - GDBusMessageType function(GDBusMessage* message) c_g_dbus_message_get_message_type; - uint function(GDBusMessage* message) c_g_dbus_message_get_num_unix_fds; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_path; - uint function(GDBusMessage* message) c_g_dbus_message_get_reply_serial; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_sender; - uint function(GDBusMessage* message) c_g_dbus_message_get_serial; - const(char)* function(GDBusMessage* message) c_g_dbus_message_get_signature; - GUnixFDList* function(GDBusMessage* message) c_g_dbus_message_get_unix_fd_list; - void function(GDBusMessage* message) c_g_dbus_message_lock; - GDBusMessage* function(GDBusMessage* methodCallMessage, const(char)* errorName, const(char)* errorMessageFormat, ... ) c_g_dbus_message_new_method_error; - GDBusMessage* function(GDBusMessage* methodCallMessage, const(char)* errorName, const(char)* errorMessage) c_g_dbus_message_new_method_error_literal; - GDBusMessage* function(GDBusMessage* methodCallMessage, const(char)* errorName, const(char)* errorMessageFormat, void* varArgs) c_g_dbus_message_new_method_error_valist; - GDBusMessage* function(GDBusMessage* methodCallMessage) c_g_dbus_message_new_method_reply; - char* function(GDBusMessage* message, uint indent) c_g_dbus_message_print; - void function(GDBusMessage* message, GVariant* body_) c_g_dbus_message_set_body; - void function(GDBusMessage* message, GDBusMessageByteOrder byteOrder) c_g_dbus_message_set_byte_order; - void function(GDBusMessage* message, const(char)* value) c_g_dbus_message_set_destination; - void function(GDBusMessage* message, const(char)* value) c_g_dbus_message_set_error_name; - void function(GDBusMessage* message, GDBusMessageFlags flags) c_g_dbus_message_set_flags; - void function(GDBusMessage* message, GDBusMessageHeaderField headerField, GVariant* value) c_g_dbus_message_set_header; - void function(GDBusMessage* message, const(char)* value) c_g_dbus_message_set_interface; - void function(GDBusMessage* message, const(char)* value) c_g_dbus_message_set_member; - void function(GDBusMessage* message, GDBusMessageType type) c_g_dbus_message_set_message_type; - void function(GDBusMessage* message, uint value) c_g_dbus_message_set_num_unix_fds; - void function(GDBusMessage* message, const(char)* value) c_g_dbus_message_set_path; - void function(GDBusMessage* message, uint value) c_g_dbus_message_set_reply_serial; - void function(GDBusMessage* message, const(char)* value) c_g_dbus_message_set_sender; - void function(GDBusMessage* message, uint serial) c_g_dbus_message_set_serial; - void function(GDBusMessage* message, const(char)* value) c_g_dbus_message_set_signature; - void function(GDBusMessage* message, GUnixFDList* fdList) c_g_dbus_message_set_unix_fd_list; - char* function(GDBusMessage* message, size_t* outSize, GDBusCapabilityFlags capabilities, GError** err) c_g_dbus_message_to_blob; - int function(GDBusMessage* message, GError** err) c_g_dbus_message_to_gerror; - - // gio.DBusMethodInfo - - GType function() c_g_dbus_method_info_get_type; - GDBusMethodInfo* function(GDBusMethodInfo* info) c_g_dbus_method_info_ref; - void function(GDBusMethodInfo* info) c_g_dbus_method_info_unref; - - // gio.DBusMethodInvocation - - GType function() c_g_dbus_method_invocation_get_type; - GDBusConnection* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_connection; - const(char)* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_interface_name; - GDBusMessage* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_message; - GDBusMethodInfo* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_method_info; - const(char)* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_method_name; - const(char)* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_object_path; - GVariant* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_parameters; - GDBusPropertyInfo* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_property_info; - const(char)* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_sender; - void* function(GDBusMethodInvocation* invocation) c_g_dbus_method_invocation_get_user_data; - void function(GDBusMethodInvocation* invocation, const(char)* errorName, const(char)* errorMessage) c_g_dbus_method_invocation_return_dbus_error; - void function(GDBusMethodInvocation* invocation, GQuark domain, int code, const(char)* format, ... ) c_g_dbus_method_invocation_return_error; - void function(GDBusMethodInvocation* invocation, GQuark domain, int code, const(char)* message) c_g_dbus_method_invocation_return_error_literal; - void function(GDBusMethodInvocation* invocation, GQuark domain, int code, const(char)* format, void* varArgs) c_g_dbus_method_invocation_return_error_valist; - void function(GDBusMethodInvocation* invocation, GError* error) c_g_dbus_method_invocation_return_gerror; - void function(GDBusMethodInvocation* invocation, GVariant* parameters) c_g_dbus_method_invocation_return_value; - void function(GDBusMethodInvocation* invocation, GVariant* parameters, GUnixFDList* fdList) c_g_dbus_method_invocation_return_value_with_unix_fd_list; - void function(GDBusMethodInvocation* invocation, GError* error) c_g_dbus_method_invocation_take_error; - - // gio.DBusNodeInfo - - GType function() c_g_dbus_node_info_get_type; - GDBusNodeInfo* function(const(char)* xmlData, GError** err) c_g_dbus_node_info_new_for_xml; - void function(GDBusNodeInfo* info, uint indent, GString* stringBuilder) c_g_dbus_node_info_generate_xml; - GDBusInterfaceInfo* function(GDBusNodeInfo* info, const(char)* name) c_g_dbus_node_info_lookup_interface; - GDBusNodeInfo* function(GDBusNodeInfo* info) c_g_dbus_node_info_ref; - void function(GDBusNodeInfo* info) c_g_dbus_node_info_unref; - - // gio.DBusObject - - GType function() c_g_dbus_object_get_type; - GDBusInterface* function(GDBusObject* object, const(char)* interfaceName) c_g_dbus_object_get_interface; - GList* function(GDBusObject* object) c_g_dbus_object_get_interfaces; - const(char)* function(GDBusObject* object) c_g_dbus_object_get_object_path; - - // gio.DBusObjectManager - - GType function() c_g_dbus_object_manager_get_type; - GDBusInterface* function(GDBusObjectManager* manager, const(char)* objectPath, const(char)* interfaceName) c_g_dbus_object_manager_get_interface; - GDBusObject* function(GDBusObjectManager* manager, const(char)* objectPath) c_g_dbus_object_manager_get_object; - const(char)* function(GDBusObjectManager* manager) c_g_dbus_object_manager_get_object_path; - GList* function(GDBusObjectManager* manager) c_g_dbus_object_manager_get_objects; - - // gio.DBusObjectManagerClient - - GType function() c_g_dbus_object_manager_client_get_type; - GDBusObjectManager* function(GAsyncResult* res, GError** err) c_g_dbus_object_manager_client_new_finish; - GDBusObjectManager* function(GAsyncResult* res, GError** err) c_g_dbus_object_manager_client_new_for_bus_finish; - GDBusObjectManager* function(GBusType busType, GDBusObjectManagerClientFlags flags, const(char)* name, const(char)* objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, GCancellable* cancellable, GError** err) c_g_dbus_object_manager_client_new_for_bus_sync; - GDBusObjectManager* function(GDBusConnection* connection, GDBusObjectManagerClientFlags flags, const(char)* name, const(char)* objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, GCancellable* cancellable, GError** err) c_g_dbus_object_manager_client_new_sync; - void function(GDBusConnection* connection, GDBusObjectManagerClientFlags flags, const(char)* name, const(char)* objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_object_manager_client_new; - void function(GBusType busType, GDBusObjectManagerClientFlags flags, const(char)* name, const(char)* objectPath, GDBusProxyTypeFunc getProxyTypeFunc, void* getProxyTypeUserData, GDestroyNotify getProxyTypeDestroyNotify, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_object_manager_client_new_for_bus; - GDBusConnection* function(GDBusObjectManagerClient* manager) c_g_dbus_object_manager_client_get_connection; - GDBusObjectManagerClientFlags function(GDBusObjectManagerClient* manager) c_g_dbus_object_manager_client_get_flags; - const(char)* function(GDBusObjectManagerClient* manager) c_g_dbus_object_manager_client_get_name; - char* function(GDBusObjectManagerClient* manager) c_g_dbus_object_manager_client_get_name_owner; - - // gio.DBusObjectManagerServer - - GType function() c_g_dbus_object_manager_server_get_type; - GDBusObjectManagerServer* function(const(char)* objectPath) c_g_dbus_object_manager_server_new; - void function(GDBusObjectManagerServer* manager, GDBusObjectSkeleton* object) c_g_dbus_object_manager_server_export; - void function(GDBusObjectManagerServer* manager, GDBusObjectSkeleton* object) c_g_dbus_object_manager_server_export_uniquely; - GDBusConnection* function(GDBusObjectManagerServer* manager) c_g_dbus_object_manager_server_get_connection; - int function(GDBusObjectManagerServer* manager, GDBusObjectSkeleton* object) c_g_dbus_object_manager_server_is_exported; - void function(GDBusObjectManagerServer* manager, GDBusConnection* connection) c_g_dbus_object_manager_server_set_connection; - int function(GDBusObjectManagerServer* manager, const(char)* objectPath) c_g_dbus_object_manager_server_unexport; - - // gio.DBusObjectProxy - - GType function() c_g_dbus_object_proxy_get_type; - GDBusObjectProxy* function(GDBusConnection* connection, const(char)* objectPath) c_g_dbus_object_proxy_new; - GDBusConnection* function(GDBusObjectProxy* proxy) c_g_dbus_object_proxy_get_connection; - - // gio.DBusObjectSkeleton - - GType function() c_g_dbus_object_skeleton_get_type; - GDBusObjectSkeleton* function(const(char)* objectPath) c_g_dbus_object_skeleton_new; - void function(GDBusObjectSkeleton* object, GDBusInterfaceSkeleton* interface_) c_g_dbus_object_skeleton_add_interface; - void function(GDBusObjectSkeleton* object) c_g_dbus_object_skeleton_flush; - void function(GDBusObjectSkeleton* object, GDBusInterfaceSkeleton* interface_) c_g_dbus_object_skeleton_remove_interface; - void function(GDBusObjectSkeleton* object, const(char)* interfaceName) c_g_dbus_object_skeleton_remove_interface_by_name; - void function(GDBusObjectSkeleton* object, const(char)* objectPath) c_g_dbus_object_skeleton_set_object_path; - - // gio.DBusPropertyInfo - - GType function() c_g_dbus_property_info_get_type; - GDBusPropertyInfo* function(GDBusPropertyInfo* info) c_g_dbus_property_info_ref; - void function(GDBusPropertyInfo* info) c_g_dbus_property_info_unref; - - // gio.DBusProxy - - GType function() c_g_dbus_proxy_get_type; - GDBusProxy* function(GAsyncResult* res, GError** err) c_g_dbus_proxy_new_finish; - GDBusProxy* function(GAsyncResult* res, GError** err) c_g_dbus_proxy_new_for_bus_finish; - GDBusProxy* function(GBusType busType, GDBusProxyFlags flags, GDBusInterfaceInfo* info, const(char)* name, const(char)* objectPath, const(char)* interfaceName, GCancellable* cancellable, GError** err) c_g_dbus_proxy_new_for_bus_sync; - GDBusProxy* function(GDBusConnection* connection, GDBusProxyFlags flags, GDBusInterfaceInfo* info, const(char)* name, const(char)* objectPath, const(char)* interfaceName, GCancellable* cancellable, GError** err) c_g_dbus_proxy_new_sync; - void function(GDBusConnection* connection, GDBusProxyFlags flags, GDBusInterfaceInfo* info, const(char)* name, const(char)* objectPath, const(char)* interfaceName, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_proxy_new; - void function(GBusType busType, GDBusProxyFlags flags, GDBusInterfaceInfo* info, const(char)* name, const(char)* objectPath, const(char)* interfaceName, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_proxy_new_for_bus; - void function(GDBusProxy* proxy, const(char)* methodName, GVariant* parameters, GDBusCallFlags flags, int timeoutMsec, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_proxy_call; - GVariant* function(GDBusProxy* proxy, GAsyncResult* res, GError** err) c_g_dbus_proxy_call_finish; - GVariant* function(GDBusProxy* proxy, const(char)* methodName, GVariant* parameters, GDBusCallFlags flags, int timeoutMsec, GCancellable* cancellable, GError** err) c_g_dbus_proxy_call_sync; - void function(GDBusProxy* proxy, const(char)* methodName, GVariant* parameters, GDBusCallFlags flags, int timeoutMsec, GUnixFDList* fdList, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_proxy_call_with_unix_fd_list; - GVariant* function(GDBusProxy* proxy, GUnixFDList** outFdList, GAsyncResult* res, GError** err) c_g_dbus_proxy_call_with_unix_fd_list_finish; - GVariant* function(GDBusProxy* proxy, const(char)* methodName, GVariant* parameters, GDBusCallFlags flags, int timeoutMsec, GUnixFDList* fdList, GUnixFDList** outFdList, GCancellable* cancellable, GError** err) c_g_dbus_proxy_call_with_unix_fd_list_sync; - GVariant* function(GDBusProxy* proxy, const(char)* propertyName) c_g_dbus_proxy_get_cached_property; - char** function(GDBusProxy* proxy) c_g_dbus_proxy_get_cached_property_names; - GDBusConnection* function(GDBusProxy* proxy) c_g_dbus_proxy_get_connection; - int function(GDBusProxy* proxy) c_g_dbus_proxy_get_default_timeout; - GDBusProxyFlags function(GDBusProxy* proxy) c_g_dbus_proxy_get_flags; - GDBusInterfaceInfo* function(GDBusProxy* proxy) c_g_dbus_proxy_get_interface_info; - const(char)* function(GDBusProxy* proxy) c_g_dbus_proxy_get_interface_name; - const(char)* function(GDBusProxy* proxy) c_g_dbus_proxy_get_name; - char* function(GDBusProxy* proxy) c_g_dbus_proxy_get_name_owner; - const(char)* function(GDBusProxy* proxy) c_g_dbus_proxy_get_object_path; - void function(GDBusProxy* proxy, const(char)* propertyName, GVariant* value) c_g_dbus_proxy_set_cached_property; - void function(GDBusProxy* proxy, int timeoutMsec) c_g_dbus_proxy_set_default_timeout; - void function(GDBusProxy* proxy, GDBusInterfaceInfo* info) c_g_dbus_proxy_set_interface_info; - - // gio.DBusServer - - GType function() c_g_dbus_server_get_type; - GDBusServer* function(const(char)* address, GDBusServerFlags flags, const(char)* guid, GDBusAuthObserver* observer, GCancellable* cancellable, GError** err) c_g_dbus_server_new_sync; - const(char)* function(GDBusServer* server) c_g_dbus_server_get_client_address; - GDBusServerFlags function(GDBusServer* server) c_g_dbus_server_get_flags; - const(char)* function(GDBusServer* server) c_g_dbus_server_get_guid; - int function(GDBusServer* server) c_g_dbus_server_is_active; - void function(GDBusServer* server) c_g_dbus_server_start; - void function(GDBusServer* server) c_g_dbus_server_stop; - - // gio.DBusSignalInfo - - GType function() c_g_dbus_signal_info_get_type; - GDBusSignalInfo* function(GDBusSignalInfo* info) c_g_dbus_signal_info_ref; - void function(GDBusSignalInfo* info) c_g_dbus_signal_info_unref; - - // gio.DataInputStream - - GType function() c_g_data_input_stream_get_type; - GDataInputStream* function(GInputStream* baseStream) c_g_data_input_stream_new; - GDataStreamByteOrder function(GDataInputStream* stream) c_g_data_input_stream_get_byte_order; - GDataStreamNewlineType function(GDataInputStream* stream) c_g_data_input_stream_get_newline_type; - char function(GDataInputStream* stream, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_byte; - short function(GDataInputStream* stream, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_int16; - int function(GDataInputStream* stream, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_int32; - long function(GDataInputStream* stream, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_int64; - char* function(GDataInputStream* stream, size_t* length, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_line; - void function(GDataInputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_data_input_stream_read_line_async; - char* function(GDataInputStream* stream, GAsyncResult* result, size_t* length, GError** err) c_g_data_input_stream_read_line_finish; - char* function(GDataInputStream* stream, GAsyncResult* result, size_t* length, GError** err) c_g_data_input_stream_read_line_finish_utf8; - char* function(GDataInputStream* stream, size_t* length, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_line_utf8; - ushort function(GDataInputStream* stream, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_uint16; - uint function(GDataInputStream* stream, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_uint32; - ulong function(GDataInputStream* stream, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_uint64; - char* function(GDataInputStream* stream, const(char)* stopChars, size_t* length, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_until; - void function(GDataInputStream* stream, const(char)* stopChars, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_data_input_stream_read_until_async; - char* function(GDataInputStream* stream, GAsyncResult* result, size_t* length, GError** err) c_g_data_input_stream_read_until_finish; - char* function(GDataInputStream* stream, const(char)* stopChars, ptrdiff_t stopCharsLen, size_t* length, GCancellable* cancellable, GError** err) c_g_data_input_stream_read_upto; - void function(GDataInputStream* stream, const(char)* stopChars, ptrdiff_t stopCharsLen, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_data_input_stream_read_upto_async; - char* function(GDataInputStream* stream, GAsyncResult* result, size_t* length, GError** err) c_g_data_input_stream_read_upto_finish; - void function(GDataInputStream* stream, GDataStreamByteOrder order) c_g_data_input_stream_set_byte_order; - void function(GDataInputStream* stream, GDataStreamNewlineType type) c_g_data_input_stream_set_newline_type; - - // gio.DataOutputStream - - GType function() c_g_data_output_stream_get_type; - GDataOutputStream* function(GOutputStream* baseStream) c_g_data_output_stream_new; - GDataStreamByteOrder function(GDataOutputStream* stream) c_g_data_output_stream_get_byte_order; - int function(GDataOutputStream* stream, char data, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_byte; - int function(GDataOutputStream* stream, short data, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_int16; - int function(GDataOutputStream* stream, int data, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_int32; - int function(GDataOutputStream* stream, long data, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_int64; - int function(GDataOutputStream* stream, const(char)* str, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_string; - int function(GDataOutputStream* stream, ushort data, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_uint16; - int function(GDataOutputStream* stream, uint data, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_uint32; - int function(GDataOutputStream* stream, ulong data, GCancellable* cancellable, GError** err) c_g_data_output_stream_put_uint64; - void function(GDataOutputStream* stream, GDataStreamByteOrder order) c_g_data_output_stream_set_byte_order; - - // gio.DatagramBased - - GType function() c_g_datagram_based_get_type; - GIOCondition function(GDatagramBased* datagramBased, GIOCondition condition) c_g_datagram_based_condition_check; - int function(GDatagramBased* datagramBased, GIOCondition condition, long timeout, GCancellable* cancellable, GError** err) c_g_datagram_based_condition_wait; - GSource* function(GDatagramBased* datagramBased, GIOCondition condition, GCancellable* cancellable) c_g_datagram_based_create_source; - int function(GDatagramBased* datagramBased, GInputMessage* messages, uint numMessages, int flags, long timeout, GCancellable* cancellable, GError** err) c_g_datagram_based_receive_messages; - int function(GDatagramBased* datagramBased, GOutputMessage* messages, uint numMessages, int flags, long timeout, GCancellable* cancellable, GError** err) c_g_datagram_based_send_messages; - - // gio.DesktopAppInfo - - GType function() c_g_desktop_app_info_get_type; - GDesktopAppInfo* function(const(char)* desktopId) c_g_desktop_app_info_new; - GDesktopAppInfo* function(char* filename) c_g_desktop_app_info_new_from_filename; - GDesktopAppInfo* function(GKeyFile* keyFile) c_g_desktop_app_info_new_from_keyfile; - GList* function(const(char)* interface_) c_g_desktop_app_info_get_implementations; - char*** function(const(char)* searchString) c_g_desktop_app_info_search; - void function(const(char)* desktopEnv) c_g_desktop_app_info_set_desktop_env; - char* function(GDesktopAppInfo* info, const(char)* actionName) c_g_desktop_app_info_get_action_name; - int function(GDesktopAppInfo* info, const(char)* key) c_g_desktop_app_info_get_boolean; - const(char)* function(GDesktopAppInfo* info) c_g_desktop_app_info_get_categories; - char* function(GDesktopAppInfo* info) c_g_desktop_app_info_get_filename; - const(char)* function(GDesktopAppInfo* info) c_g_desktop_app_info_get_generic_name; - int function(GDesktopAppInfo* info) c_g_desktop_app_info_get_is_hidden; - char** function(GDesktopAppInfo* info) c_g_desktop_app_info_get_keywords; - char* function(GDesktopAppInfo* info, const(char)* key) c_g_desktop_app_info_get_locale_string; - int function(GDesktopAppInfo* info) c_g_desktop_app_info_get_nodisplay; - int function(GDesktopAppInfo* info, const(char)* desktopEnv) c_g_desktop_app_info_get_show_in; - const(char)* function(GDesktopAppInfo* info) c_g_desktop_app_info_get_startup_wm_class; - char* function(GDesktopAppInfo* info, const(char)* key) c_g_desktop_app_info_get_string; - char** function(GDesktopAppInfo* info, const(char)* key, size_t* length) c_g_desktop_app_info_get_string_list; - int function(GDesktopAppInfo* info, const(char)* key) c_g_desktop_app_info_has_key; - void function(GDesktopAppInfo* info, const(char)* actionName, GAppLaunchContext* launchContext) c_g_desktop_app_info_launch_action; - int function(GDesktopAppInfo* appinfo, GList* uris, GAppLaunchContext* launchContext, GSpawnFlags spawnFlags, GSpawnChildSetupFunc userSetup, void* userSetupData, GDesktopAppLaunchCallback pidCallback, void* pidCallbackData, GError** err) c_g_desktop_app_info_launch_uris_as_manager; - int function(GDesktopAppInfo* appinfo, GList* uris, GAppLaunchContext* launchContext, GSpawnFlags spawnFlags, GSpawnChildSetupFunc userSetup, void* userSetupData, GDesktopAppLaunchCallback pidCallback, void* pidCallbackData, int stdinFd, int stdoutFd, int stderrFd, GError** err) c_g_desktop_app_info_launch_uris_as_manager_with_fds; - char** function(GDesktopAppInfo* info) c_g_desktop_app_info_list_actions; - - // gio.DesktopAppInfoLookup - - GType function() c_g_desktop_app_info_lookup_get_type; - GAppInfo* function(GDesktopAppInfoLookup* lookup, const(char)* uriScheme) c_g_desktop_app_info_lookup_get_default_for_uri_scheme; - - // gio.Drive - - GType function() c_g_drive_get_type; - int function(GDrive* drive) c_g_drive_can_eject; - int function(GDrive* drive) c_g_drive_can_poll_for_media; - int function(GDrive* drive) c_g_drive_can_start; - int function(GDrive* drive) c_g_drive_can_start_degraded; - int function(GDrive* drive) c_g_drive_can_stop; - void function(GDrive* drive, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_drive_eject; - int function(GDrive* drive, GAsyncResult* result, GError** err) c_g_drive_eject_finish; - void function(GDrive* drive, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_drive_eject_with_operation; - int function(GDrive* drive, GAsyncResult* result, GError** err) c_g_drive_eject_with_operation_finish; - char** function(GDrive* drive) c_g_drive_enumerate_identifiers; - GIcon* function(GDrive* drive) c_g_drive_get_icon; - char* function(GDrive* drive, const(char)* kind) c_g_drive_get_identifier; - char* function(GDrive* drive) c_g_drive_get_name; - const(char)* function(GDrive* drive) c_g_drive_get_sort_key; - GDriveStartStopType function(GDrive* drive) c_g_drive_get_start_stop_type; - GIcon* function(GDrive* drive) c_g_drive_get_symbolic_icon; - GList* function(GDrive* drive) c_g_drive_get_volumes; - int function(GDrive* drive) c_g_drive_has_media; - int function(GDrive* drive) c_g_drive_has_volumes; - int function(GDrive* drive) c_g_drive_is_media_check_automatic; - int function(GDrive* drive) c_g_drive_is_media_removable; - int function(GDrive* drive) c_g_drive_is_removable; - void function(GDrive* drive, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_drive_poll_for_media; - int function(GDrive* drive, GAsyncResult* result, GError** err) c_g_drive_poll_for_media_finish; - void function(GDrive* drive, GDriveStartFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_drive_start; - int function(GDrive* drive, GAsyncResult* result, GError** err) c_g_drive_start_finish; - void function(GDrive* drive, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_drive_stop; - int function(GDrive* drive, GAsyncResult* result, GError** err) c_g_drive_stop_finish; - - // gio.DtlsClientConnection - - GType function() c_g_dtls_client_connection_get_type; - GDatagramBased* function(GDatagramBased* baseSocket, GSocketConnectable* serverIdentity, GError** err) c_g_dtls_client_connection_new; - GList* function(GDtlsClientConnection* conn) c_g_dtls_client_connection_get_accepted_cas; - GSocketConnectable* function(GDtlsClientConnection* conn) c_g_dtls_client_connection_get_server_identity; - GTlsCertificateFlags function(GDtlsClientConnection* conn) c_g_dtls_client_connection_get_validation_flags; - void function(GDtlsClientConnection* conn, GSocketConnectable* identity) c_g_dtls_client_connection_set_server_identity; - void function(GDtlsClientConnection* conn, GTlsCertificateFlags flags) c_g_dtls_client_connection_set_validation_flags; - - // gio.DtlsConnection - - GType function() c_g_dtls_connection_get_type; - int function(GDtlsConnection* conn, GCancellable* cancellable, GError** err) c_g_dtls_connection_close; - void function(GDtlsConnection* conn, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dtls_connection_close_async; - int function(GDtlsConnection* conn, GAsyncResult* result, GError** err) c_g_dtls_connection_close_finish; - int function(GDtlsConnection* conn, GTlsCertificate* peerCert, GTlsCertificateFlags errors) c_g_dtls_connection_emit_accept_certificate; - GTlsCertificate* function(GDtlsConnection* conn) c_g_dtls_connection_get_certificate; - int function(GDtlsConnection* conn, GTlsChannelBindingType type, GByteArray* data, GError** err) c_g_dtls_connection_get_channel_binding_data; - GTlsDatabase* function(GDtlsConnection* conn) c_g_dtls_connection_get_database; - GTlsInteraction* function(GDtlsConnection* conn) c_g_dtls_connection_get_interaction; - const(char)* function(GDtlsConnection* conn) c_g_dtls_connection_get_negotiated_protocol; - GTlsCertificate* function(GDtlsConnection* conn) c_g_dtls_connection_get_peer_certificate; - GTlsCertificateFlags function(GDtlsConnection* conn) c_g_dtls_connection_get_peer_certificate_errors; - GTlsRehandshakeMode function(GDtlsConnection* conn) c_g_dtls_connection_get_rehandshake_mode; - int function(GDtlsConnection* conn) c_g_dtls_connection_get_require_close_notify; - int function(GDtlsConnection* conn, GCancellable* cancellable, GError** err) c_g_dtls_connection_handshake; - void function(GDtlsConnection* conn, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dtls_connection_handshake_async; - int function(GDtlsConnection* conn, GAsyncResult* result, GError** err) c_g_dtls_connection_handshake_finish; - void function(GDtlsConnection* conn, char** protocols) c_g_dtls_connection_set_advertised_protocols; - void function(GDtlsConnection* conn, GTlsCertificate* certificate) c_g_dtls_connection_set_certificate; - void function(GDtlsConnection* conn, GTlsDatabase* database) c_g_dtls_connection_set_database; - void function(GDtlsConnection* conn, GTlsInteraction* interaction) c_g_dtls_connection_set_interaction; - void function(GDtlsConnection* conn, GTlsRehandshakeMode mode) c_g_dtls_connection_set_rehandshake_mode; - void function(GDtlsConnection* conn, int requireCloseNotify) c_g_dtls_connection_set_require_close_notify; - int function(GDtlsConnection* conn, int shutdownRead, int shutdownWrite, GCancellable* cancellable, GError** err) c_g_dtls_connection_shutdown; - void function(GDtlsConnection* conn, int shutdownRead, int shutdownWrite, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dtls_connection_shutdown_async; - int function(GDtlsConnection* conn, GAsyncResult* result, GError** err) c_g_dtls_connection_shutdown_finish; - - // gio.DtlsServerConnection - - GType function() c_g_dtls_server_connection_get_type; - GDatagramBased* function(GDatagramBased* baseSocket, GTlsCertificate* certificate, GError** err) c_g_dtls_server_connection_new; - - // gio.Emblem - - GType function() c_g_emblem_get_type; - GEmblem* function(GIcon* icon) c_g_emblem_new; - GEmblem* function(GIcon* icon, GEmblemOrigin origin) c_g_emblem_new_with_origin; - GIcon* function(GEmblem* emblem) c_g_emblem_get_icon; - GEmblemOrigin function(GEmblem* emblem) c_g_emblem_get_origin; - - // gio.EmblemedIcon - - GType function() c_g_emblemed_icon_get_type; - GIcon* function(GIcon* icon, GEmblem* emblem) c_g_emblemed_icon_new; - void function(GEmblemedIcon* emblemed, GEmblem* emblem) c_g_emblemed_icon_add_emblem; - void function(GEmblemedIcon* emblemed) c_g_emblemed_icon_clear_emblems; - GList* function(GEmblemedIcon* emblemed) c_g_emblemed_icon_get_emblems; - GIcon* function(GEmblemedIcon* emblemed) c_g_emblemed_icon_get_icon; - - // gio.File - - GType function() c_g_file_get_type; - GFile* function(char* firstElement, ... ) c_g_file_new_build_filename; - GFile* function(char* arg) c_g_file_new_for_commandline_arg; - GFile* function(char* arg, char* cwd) c_g_file_new_for_commandline_arg_and_cwd; - GFile* function(char* path) c_g_file_new_for_path; - GFile* function(const(char)* uri) c_g_file_new_for_uri; - GFile* function(char* tmpl, GFileIOStream** iostream, GError** err) c_g_file_new_tmp; - GFile* function(const(char)* parseName) c_g_file_parse_name; - GFileOutputStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** err) c_g_file_append_to; - void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_append_to_async; - GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_append_to_finish; - char* function(GFile* file, GFileCopyFlags flags, GCancellable* cancellable, GError** err) c_g_file_build_attribute_list_for_copy; - int function(GFile* source, GFile* destination, GFileCopyFlags flags, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GError** err) c_g_file_copy; - void function(GFile* source, GFile* destination, GFileCopyFlags flags, int ioPriority, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GAsyncReadyCallback callback, void* userData) c_g_file_copy_async; - int function(GFile* source, GFile* destination, GFileCopyFlags flags, GCancellable* cancellable, GError** err) c_g_file_copy_attributes; - int function(GFile* file, GAsyncResult* res, GError** err) c_g_file_copy_finish; - GFileOutputStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** err) c_g_file_create; - void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_create_async; - GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_create_finish; - GFileIOStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** err) c_g_file_create_readwrite; - void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_create_readwrite_async; - GFileIOStream* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_create_readwrite_finish; - int function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_delete; - void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_delete_async; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_delete_finish; - GFile* function(GFile* file) c_g_file_dup; - void function(GFile* file, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_eject_mountable; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_eject_mountable_finish; - void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_eject_mountable_with_operation; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_eject_mountable_with_operation_finish; - GFileEnumerator* function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_enumerate_children; - void function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_enumerate_children_async; - GFileEnumerator* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_enumerate_children_finish; - int function(GFile* file1, GFile* file2) c_g_file_equal; - GMount* function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_find_enclosing_mount; - void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_find_enclosing_mount_async; - GMount* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_find_enclosing_mount_finish; - char* function(GFile* file) c_g_file_get_basename; - GFile* function(GFile* file, char* name) c_g_file_get_child; - GFile* function(GFile* file, const(char)* displayName, GError** err) c_g_file_get_child_for_display_name; - GFile* function(GFile* file) c_g_file_get_parent; - char* function(GFile* file) c_g_file_get_parse_name; - char* function(GFile* file) c_g_file_get_path; - char* function(GFile* parent, GFile* descendant) c_g_file_get_relative_path; - char* function(GFile* file) c_g_file_get_uri; - char* function(GFile* file) c_g_file_get_uri_scheme; - int function(GFile* file, GFile* parent) c_g_file_has_parent; - int function(GFile* file, GFile* prefix) c_g_file_has_prefix; - int function(GFile* file, const(char)* uriScheme) c_g_file_has_uri_scheme; - uint function(void* file) c_g_file_hash; - int function(GFile* file) c_g_file_is_native; - GBytes* function(GFile* file, GCancellable* cancellable, char** etagOut, GError** err) c_g_file_load_bytes; - void function(GFile* file, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_load_bytes_async; - GBytes* function(GFile* file, GAsyncResult* result, char** etagOut, GError** err) c_g_file_load_bytes_finish; - int function(GFile* file, GCancellable* cancellable, char** contents, size_t* length, char** etagOut, GError** err) c_g_file_load_contents; - void function(GFile* file, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_load_contents_async; - int function(GFile* file, GAsyncResult* res, char** contents, size_t* length, char** etagOut, GError** err) c_g_file_load_contents_finish; - void function(GFile* file, GCancellable* cancellable, GFileReadMoreCallback readMoreCallback, GAsyncReadyCallback callback, void* userData) c_g_file_load_partial_contents_async; - int function(GFile* file, GAsyncResult* res, char** contents, size_t* length, char** etagOut, GError** err) c_g_file_load_partial_contents_finish; - int function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_make_directory; - void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_make_directory_async; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_make_directory_finish; - int function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_make_directory_with_parents; - int function(GFile* file, char* symlinkValue, GCancellable* cancellable, GError** err) c_g_file_make_symbolic_link; - int function(GFile* file, GFileMeasureFlags flags, GCancellable* cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, ulong* diskUsage, ulong* numDirs, ulong* numFiles, GError** err) c_g_file_measure_disk_usage; - void function(GFile* file, GFileMeasureFlags flags, int ioPriority, GCancellable* cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, GAsyncReadyCallback callback, void* userData) c_g_file_measure_disk_usage_async; - int function(GFile* file, GAsyncResult* result, ulong* diskUsage, ulong* numDirs, ulong* numFiles, GError** err) c_g_file_measure_disk_usage_finish; - GFileMonitor* function(GFile* file, GFileMonitorFlags flags, GCancellable* cancellable, GError** err) c_g_file_monitor; - GFileMonitor* function(GFile* file, GFileMonitorFlags flags, GCancellable* cancellable, GError** err) c_g_file_monitor_directory; - GFileMonitor* function(GFile* file, GFileMonitorFlags flags, GCancellable* cancellable, GError** err) c_g_file_monitor_file; - void function(GFile* location, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_mount_enclosing_volume; - int function(GFile* location, GAsyncResult* result, GError** err) c_g_file_mount_enclosing_volume_finish; - void function(GFile* file, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_mount_mountable; - GFile* function(GFile* file, GAsyncResult* result, GError** err) c_g_file_mount_mountable_finish; - int function(GFile* source, GFile* destination, GFileCopyFlags flags, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GError** err) c_g_file_move; - GFileIOStream* function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_open_readwrite; - void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_open_readwrite_async; - GFileIOStream* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_open_readwrite_finish; - char* function(GFile* file) c_g_file_peek_path; - void function(GFile* file, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_poll_mountable; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_poll_mountable_finish; - GAppInfo* function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_query_default_handler; - void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_query_default_handler_async; - GAppInfo* function(GFile* file, GAsyncResult* result, GError** err) c_g_file_query_default_handler_finish; - int function(GFile* file, GCancellable* cancellable) c_g_file_query_exists; - GFileType function(GFile* file, GFileQueryInfoFlags flags, GCancellable* cancellable) c_g_file_query_file_type; - GFileInfo* function(GFile* file, const(char)* attributes, GCancellable* cancellable, GError** err) c_g_file_query_filesystem_info; - void function(GFile* file, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_query_filesystem_info_async; - GFileInfo* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_query_filesystem_info_finish; - GFileInfo* function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_query_info; - void function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_query_info_async; - GFileInfo* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_query_info_finish; - GFileAttributeInfoList* function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_query_settable_attributes; - GFileAttributeInfoList* function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_query_writable_namespaces; - GFileInputStream* function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_read; - void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_read_async; - GFileInputStream* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_read_finish; - GFileOutputStream* function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GError** err) c_g_file_replace; - void function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_replace_async; - int function(GFile* file, char* contents, size_t length, const(char)* etag, int makeBackup, GFileCreateFlags flags, char** newEtag, GCancellable* cancellable, GError** err) c_g_file_replace_contents; - void function(GFile* file, char* contents, size_t length, const(char)* etag, int makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_replace_contents_async; - void function(GFile* file, GBytes* contents, const(char)* etag, int makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_replace_contents_bytes_async; - int function(GFile* file, GAsyncResult* res, char** newEtag, GError** err) c_g_file_replace_contents_finish; - GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_replace_finish; - GFileIOStream* function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GError** err) c_g_file_replace_readwrite; - void function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_replace_readwrite_async; - GFileIOStream* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_replace_readwrite_finish; - GFile* function(GFile* file, char* relativePath) c_g_file_resolve_relative_path; - int function(GFile* file, const(char)* attribute, GFileAttributeType type, void* valueP, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attribute; - int function(GFile* file, const(char)* attribute, const(char)* value, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attribute_byte_string; - int function(GFile* file, const(char)* attribute, int value, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attribute_int32; - int function(GFile* file, const(char)* attribute, long value, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attribute_int64; - int function(GFile* file, const(char)* attribute, const(char)* value, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attribute_string; - int function(GFile* file, const(char)* attribute, uint value, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attribute_uint32; - int function(GFile* file, const(char)* attribute, ulong value, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attribute_uint64; - void function(GFile* file, GFileInfo* info, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_set_attributes_async; - int function(GFile* file, GAsyncResult* result, GFileInfo** info, GError** err) c_g_file_set_attributes_finish; - int function(GFile* file, GFileInfo* info, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) c_g_file_set_attributes_from_info; - GFile* function(GFile* file, const(char)* displayName, GCancellable* cancellable, GError** err) c_g_file_set_display_name; - void function(GFile* file, const(char)* displayName, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_set_display_name_async; - GFile* function(GFile* file, GAsyncResult* res, GError** err) c_g_file_set_display_name_finish; - void function(GFile* file, GDriveStartFlags flags, GMountOperation* startOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_start_mountable; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_start_mountable_finish; - void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_stop_mountable; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_stop_mountable_finish; - int function(GFile* file) c_g_file_supports_thread_contexts; - int function(GFile* file, GCancellable* cancellable, GError** err) c_g_file_trash; - void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_trash_async; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_trash_finish; - void function(GFile* file, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_unmount_mountable; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_unmount_mountable_finish; - void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_unmount_mountable_with_operation; - int function(GFile* file, GAsyncResult* result, GError** err) c_g_file_unmount_mountable_with_operation_finish; - - // gio.FileAttributeInfoList - - GType function() c_g_file_attribute_info_list_get_type; - GFileAttributeInfoList* function() c_g_file_attribute_info_list_new; - void function(GFileAttributeInfoList* list, const(char)* name, GFileAttributeType type, GFileAttributeInfoFlags flags) c_g_file_attribute_info_list_add; - GFileAttributeInfoList* function(GFileAttributeInfoList* list) c_g_file_attribute_info_list_dup; - GFileAttributeInfo* function(GFileAttributeInfoList* list, const(char)* name) c_g_file_attribute_info_list_lookup; - GFileAttributeInfoList* function(GFileAttributeInfoList* list) c_g_file_attribute_info_list_ref; - void function(GFileAttributeInfoList* list) c_g_file_attribute_info_list_unref; - - // gio.FileAttributeMatcher - - GType function() c_g_file_attribute_matcher_get_type; - GFileAttributeMatcher* function(const(char)* attributes) c_g_file_attribute_matcher_new; - int function(GFileAttributeMatcher* matcher, const(char)* ns) c_g_file_attribute_matcher_enumerate_namespace; - const(char)* function(GFileAttributeMatcher* matcher) c_g_file_attribute_matcher_enumerate_next; - int function(GFileAttributeMatcher* matcher, const(char)* attribute) c_g_file_attribute_matcher_matches; - int function(GFileAttributeMatcher* matcher, const(char)* attribute) c_g_file_attribute_matcher_matches_only; - GFileAttributeMatcher* function(GFileAttributeMatcher* matcher) c_g_file_attribute_matcher_ref; - GFileAttributeMatcher* function(GFileAttributeMatcher* matcher, GFileAttributeMatcher* subtract) c_g_file_attribute_matcher_subtract; - char* function(GFileAttributeMatcher* matcher) c_g_file_attribute_matcher_to_string; - void function(GFileAttributeMatcher* matcher) c_g_file_attribute_matcher_unref; - - // gio.FileDescriptorBased - - GType function() c_g_file_descriptor_based_get_type; - int function(GFileDescriptorBased* fdBased) c_g_file_descriptor_based_get_fd; - - // gio.FileEnumerator - - GType function() c_g_file_enumerator_get_type; - int function(GFileEnumerator* enumerator, GCancellable* cancellable, GError** err) c_g_file_enumerator_close; - void function(GFileEnumerator* enumerator, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_enumerator_close_async; - int function(GFileEnumerator* enumerator, GAsyncResult* result, GError** err) c_g_file_enumerator_close_finish; - GFile* function(GFileEnumerator* enumerator, GFileInfo* info) c_g_file_enumerator_get_child; - GFile* function(GFileEnumerator* enumerator) c_g_file_enumerator_get_container; - int function(GFileEnumerator* enumerator) c_g_file_enumerator_has_pending; - int function(GFileEnumerator* enumerator) c_g_file_enumerator_is_closed; - int function(GFileEnumerator* direnum, GFileInfo** outInfo, GFile** outChild, GCancellable* cancellable, GError** err) c_g_file_enumerator_iterate; - GFileInfo* function(GFileEnumerator* enumerator, GCancellable* cancellable, GError** err) c_g_file_enumerator_next_file; - void function(GFileEnumerator* enumerator, int numFiles, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_enumerator_next_files_async; - GList* function(GFileEnumerator* enumerator, GAsyncResult* result, GError** err) c_g_file_enumerator_next_files_finish; - void function(GFileEnumerator* enumerator, int pending) c_g_file_enumerator_set_pending; - - // gio.FileIOStream - - GType function() c_g_file_io_stream_get_type; - char* function(GFileIOStream* stream) c_g_file_io_stream_get_etag; - GFileInfo* function(GFileIOStream* stream, const(char)* attributes, GCancellable* cancellable, GError** err) c_g_file_io_stream_query_info; - void function(GFileIOStream* stream, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_io_stream_query_info_async; - GFileInfo* function(GFileIOStream* stream, GAsyncResult* result, GError** err) c_g_file_io_stream_query_info_finish; - - // gio.FileIcon - - GType function() c_g_file_icon_get_type; - GIcon* function(GFile* file) c_g_file_icon_new; - GFile* function(GFileIcon* icon) c_g_file_icon_get_file; - - // gio.FileInfo - - GType function() c_g_file_info_get_type; - GFileInfo* function() c_g_file_info_new; - void function(GFileInfo* info) c_g_file_info_clear_status; - void function(GFileInfo* srcInfo, GFileInfo* destInfo) c_g_file_info_copy_into; - GFileInfo* function(GFileInfo* other) c_g_file_info_dup; - char* function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_as_string; - int function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_boolean; - const(char)* function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_byte_string; - int function(GFileInfo* info, const(char)* attribute, GFileAttributeType* type, void** valuePp, GFileAttributeStatus* status) c_g_file_info_get_attribute_data; - int function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_int32; - long function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_int64; - GObject* function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_object; - GFileAttributeStatus function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_status; - const(char)* function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_string; - char** function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_stringv; - GFileAttributeType function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_type; - uint function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_uint32; - ulong function(GFileInfo* info, const(char)* attribute) c_g_file_info_get_attribute_uint64; - const(char)* function(GFileInfo* info) c_g_file_info_get_content_type; - GDateTime* function(GFileInfo* info) c_g_file_info_get_deletion_date; - const(char)* function(GFileInfo* info) c_g_file_info_get_display_name; - const(char)* function(GFileInfo* info) c_g_file_info_get_edit_name; - const(char)* function(GFileInfo* info) c_g_file_info_get_etag; - GFileType function(GFileInfo* info) c_g_file_info_get_file_type; - GIcon* function(GFileInfo* info) c_g_file_info_get_icon; - int function(GFileInfo* info) c_g_file_info_get_is_backup; - int function(GFileInfo* info) c_g_file_info_get_is_hidden; - int function(GFileInfo* info) c_g_file_info_get_is_symlink; - GDateTime* function(GFileInfo* info) c_g_file_info_get_modification_date_time; - void function(GFileInfo* info, GTimeVal* result) c_g_file_info_get_modification_time; - char* function(GFileInfo* info) c_g_file_info_get_name; - long function(GFileInfo* info) c_g_file_info_get_size; - int function(GFileInfo* info) c_g_file_info_get_sort_order; - GIcon* function(GFileInfo* info) c_g_file_info_get_symbolic_icon; - const(char)* function(GFileInfo* info) c_g_file_info_get_symlink_target; - int function(GFileInfo* info, const(char)* attribute) c_g_file_info_has_attribute; - int function(GFileInfo* info, const(char)* nameSpace) c_g_file_info_has_namespace; - char** function(GFileInfo* info, const(char)* nameSpace) c_g_file_info_list_attributes; - void function(GFileInfo* info, const(char)* attribute) c_g_file_info_remove_attribute; - void function(GFileInfo* info, const(char)* attribute, GFileAttributeType type, void* valueP) c_g_file_info_set_attribute; - void function(GFileInfo* info, const(char)* attribute, int attrValue) c_g_file_info_set_attribute_boolean; - void function(GFileInfo* info, const(char)* attribute, const(char)* attrValue) c_g_file_info_set_attribute_byte_string; - void function(GFileInfo* info, const(char)* attribute, int attrValue) c_g_file_info_set_attribute_int32; - void function(GFileInfo* info, const(char)* attribute, long attrValue) c_g_file_info_set_attribute_int64; - void function(GFileInfo* info, GFileAttributeMatcher* mask) c_g_file_info_set_attribute_mask; - void function(GFileInfo* info, const(char)* attribute, GObject* attrValue) c_g_file_info_set_attribute_object; - int function(GFileInfo* info, const(char)* attribute, GFileAttributeStatus status) c_g_file_info_set_attribute_status; - void function(GFileInfo* info, const(char)* attribute, const(char)* attrValue) c_g_file_info_set_attribute_string; - void function(GFileInfo* info, const(char)* attribute, char** attrValue) c_g_file_info_set_attribute_stringv; - void function(GFileInfo* info, const(char)* attribute, uint attrValue) c_g_file_info_set_attribute_uint32; - void function(GFileInfo* info, const(char)* attribute, ulong attrValue) c_g_file_info_set_attribute_uint64; - void function(GFileInfo* info, const(char)* contentType) c_g_file_info_set_content_type; - void function(GFileInfo* info, const(char)* displayName) c_g_file_info_set_display_name; - void function(GFileInfo* info, const(char)* editName) c_g_file_info_set_edit_name; - void function(GFileInfo* info, GFileType type) c_g_file_info_set_file_type; - void function(GFileInfo* info, GIcon* icon) c_g_file_info_set_icon; - void function(GFileInfo* info, int isHidden) c_g_file_info_set_is_hidden; - void function(GFileInfo* info, int isSymlink) c_g_file_info_set_is_symlink; - void function(GFileInfo* info, GDateTime* mtime) c_g_file_info_set_modification_date_time; - void function(GFileInfo* info, GTimeVal* mtime) c_g_file_info_set_modification_time; - void function(GFileInfo* info, char* name) c_g_file_info_set_name; - void function(GFileInfo* info, long size) c_g_file_info_set_size; - void function(GFileInfo* info, int sortOrder) c_g_file_info_set_sort_order; - void function(GFileInfo* info, GIcon* icon) c_g_file_info_set_symbolic_icon; - void function(GFileInfo* info, const(char)* symlinkTarget) c_g_file_info_set_symlink_target; - void function(GFileInfo* info) c_g_file_info_unset_attribute_mask; - - // gio.FileInputStream - - GType function() c_g_file_input_stream_get_type; - GFileInfo* function(GFileInputStream* stream, const(char)* attributes, GCancellable* cancellable, GError** err) c_g_file_input_stream_query_info; - void function(GFileInputStream* stream, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_input_stream_query_info_async; - GFileInfo* function(GFileInputStream* stream, GAsyncResult* result, GError** err) c_g_file_input_stream_query_info_finish; - - // gio.FileMonitor - - GType function() c_g_file_monitor_get_type; - int function(GFileMonitor* monitor) c_g_file_monitor_cancel; - void function(GFileMonitor* monitor, GFile* child, GFile* otherFile, GFileMonitorEvent eventType) c_g_file_monitor_emit_event; - int function(GFileMonitor* monitor) c_g_file_monitor_is_cancelled; - void function(GFileMonitor* monitor, int limitMsecs) c_g_file_monitor_set_rate_limit; - - // gio.FileOutputStream - - GType function() c_g_file_output_stream_get_type; - char* function(GFileOutputStream* stream) c_g_file_output_stream_get_etag; - GFileInfo* function(GFileOutputStream* stream, const(char)* attributes, GCancellable* cancellable, GError** err) c_g_file_output_stream_query_info; - void function(GFileOutputStream* stream, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_file_output_stream_query_info_async; - GFileInfo* function(GFileOutputStream* stream, GAsyncResult* result, GError** err) c_g_file_output_stream_query_info_finish; - - // gio.FilenameCompleter - - GType function() c_g_filename_completer_get_type; - GFilenameCompleter* function() c_g_filename_completer_new; - char* function(GFilenameCompleter* completer, const(char)* initialText) c_g_filename_completer_get_completion_suffix; - char** function(GFilenameCompleter* completer, const(char)* initialText) c_g_filename_completer_get_completions; - void function(GFilenameCompleter* completer, int dirsOnly) c_g_filename_completer_set_dirs_only; - - // gio.FilterInputStream - - GType function() c_g_filter_input_stream_get_type; - GInputStream* function(GFilterInputStream* stream) c_g_filter_input_stream_get_base_stream; - int function(GFilterInputStream* stream) c_g_filter_input_stream_get_close_base_stream; - void function(GFilterInputStream* stream, int closeBase) c_g_filter_input_stream_set_close_base_stream; - - // gio.FilterOutputStream - - GType function() c_g_filter_output_stream_get_type; - GOutputStream* function(GFilterOutputStream* stream) c_g_filter_output_stream_get_base_stream; - int function(GFilterOutputStream* stream) c_g_filter_output_stream_get_close_base_stream; - void function(GFilterOutputStream* stream, int closeBase) c_g_filter_output_stream_set_close_base_stream; - - // gio.IOExtension - - const(char)* function(GIOExtension* extension) c_g_io_extension_get_name; - int function(GIOExtension* extension) c_g_io_extension_get_priority; - GType function(GIOExtension* extension) c_g_io_extension_get_type; - GTypeClass* function(GIOExtension* extension) c_g_io_extension_ref_class; - - // gio.IOExtensionPoint - - GIOExtension* function(GIOExtensionPoint* extensionPoint, const(char)* name) c_g_io_extension_point_get_extension_by_name; - GList* function(GIOExtensionPoint* extensionPoint) c_g_io_extension_point_get_extensions; - GType function(GIOExtensionPoint* extensionPoint) c_g_io_extension_point_get_required_type; - void function(GIOExtensionPoint* extensionPoint, GType type) c_g_io_extension_point_set_required_type; - GIOExtension* function(const(char)* extensionPointName, GType type, const(char)* extensionName, int priority) c_g_io_extension_point_implement; - GIOExtensionPoint* function(const(char)* name) c_g_io_extension_point_lookup; - GIOExtensionPoint* function(const(char)* name) c_g_io_extension_point_register; - - // gio.IOModule - - GType function() c_g_io_module_get_type; - GIOModule* function(char* filename) c_g_io_module_new; - GList* function(char* dirname) c_g_io_modules_load_all_in_directory; - GList* function(char* dirname, GIOModuleScope* scope_) c_g_io_modules_load_all_in_directory_with_scope; - void function(char* dirname) c_g_io_modules_scan_all_in_directory; - void function(char* dirname, GIOModuleScope* scope_) c_g_io_modules_scan_all_in_directory_with_scope; - - // gio.IOModuleScope - - void function(GIOModuleScope* scope_, const(char)* basename) c_g_io_module_scope_block; - void function(GIOModuleScope* scope_) c_g_io_module_scope_free; - GIOModuleScope* function(GIOModuleScopeFlags flags) c_g_io_module_scope_new; - - // gio.IOSchedulerJob - - int function(GIOSchedulerJob* job, GSourceFunc func, void* userData, GDestroyNotify notify) c_g_io_scheduler_job_send_to_mainloop; - void function(GIOSchedulerJob* job, GSourceFunc func, void* userData, GDestroyNotify notify) c_g_io_scheduler_job_send_to_mainloop_async; - void function() c_g_io_scheduler_cancel_all_jobs; - void function(GIOSchedulerJobFunc jobFunc, void* userData, GDestroyNotify notify, int ioPriority, GCancellable* cancellable) c_g_io_scheduler_push_job; - - // gio.IOStream - - GType function() c_g_io_stream_get_type; - int function(GAsyncResult* result, GError** err) c_g_io_stream_splice_finish; - void function(GIOStream* stream) c_g_io_stream_clear_pending; - int function(GIOStream* stream, GCancellable* cancellable, GError** err) c_g_io_stream_close; - void function(GIOStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_io_stream_close_async; - int function(GIOStream* stream, GAsyncResult* result, GError** err) c_g_io_stream_close_finish; - GInputStream* function(GIOStream* stream) c_g_io_stream_get_input_stream; - GOutputStream* function(GIOStream* stream) c_g_io_stream_get_output_stream; - int function(GIOStream* stream) c_g_io_stream_has_pending; - int function(GIOStream* stream) c_g_io_stream_is_closed; - int function(GIOStream* stream, GError** err) c_g_io_stream_set_pending; - void function(GIOStream* stream1, GIOStream* stream2, GIOStreamSpliceFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_io_stream_splice_async; - - // gio.Icon - - GType function() c_g_icon_get_type; - GIcon* function(GVariant* value) c_g_icon_deserialize; - uint function(void* icon) c_g_icon_hash; - GIcon* function(const(char)* str, GError** err) c_g_icon_new_for_string; - int function(GIcon* icon1, GIcon* icon2) c_g_icon_equal; - GVariant* function(GIcon* icon) c_g_icon_serialize; - char* function(GIcon* icon) c_g_icon_to_string; - - // gio.InetAddress - - GType function() c_g_inet_address_get_type; - GInetAddress* function(GSocketFamily family) c_g_inet_address_new_any; - GInetAddress* function(ubyte* bytes, GSocketFamily family) c_g_inet_address_new_from_bytes; - GInetAddress* function(const(char)* string_) c_g_inet_address_new_from_string; - GInetAddress* function(GSocketFamily family) c_g_inet_address_new_loopback; - int function(GInetAddress* address, GInetAddress* otherAddress) c_g_inet_address_equal; - GSocketFamily function(GInetAddress* address) c_g_inet_address_get_family; - int function(GInetAddress* address) c_g_inet_address_get_is_any; - int function(GInetAddress* address) c_g_inet_address_get_is_link_local; - int function(GInetAddress* address) c_g_inet_address_get_is_loopback; - int function(GInetAddress* address) c_g_inet_address_get_is_mc_global; - int function(GInetAddress* address) c_g_inet_address_get_is_mc_link_local; - int function(GInetAddress* address) c_g_inet_address_get_is_mc_node_local; - int function(GInetAddress* address) c_g_inet_address_get_is_mc_org_local; - int function(GInetAddress* address) c_g_inet_address_get_is_mc_site_local; - int function(GInetAddress* address) c_g_inet_address_get_is_multicast; - int function(GInetAddress* address) c_g_inet_address_get_is_site_local; - size_t function(GInetAddress* address) c_g_inet_address_get_native_size; - ubyte* function(GInetAddress* address) c_g_inet_address_to_bytes; - char* function(GInetAddress* address) c_g_inet_address_to_string; - - // gio.InetAddressMask - - GType function() c_g_inet_address_mask_get_type; - GInetAddressMask* function(GInetAddress* addr, uint length, GError** err) c_g_inet_address_mask_new; - GInetAddressMask* function(const(char)* maskString, GError** err) c_g_inet_address_mask_new_from_string; - int function(GInetAddressMask* mask, GInetAddressMask* mask2) c_g_inet_address_mask_equal; - GInetAddress* function(GInetAddressMask* mask) c_g_inet_address_mask_get_address; - GSocketFamily function(GInetAddressMask* mask) c_g_inet_address_mask_get_family; - uint function(GInetAddressMask* mask) c_g_inet_address_mask_get_length; - int function(GInetAddressMask* mask, GInetAddress* address) c_g_inet_address_mask_matches; - char* function(GInetAddressMask* mask) c_g_inet_address_mask_to_string; - - // gio.InetSocketAddress - - GType function() c_g_inet_socket_address_get_type; - GSocketAddress* function(GInetAddress* address, ushort port) c_g_inet_socket_address_new; - GSocketAddress* function(const(char)* address, uint port) c_g_inet_socket_address_new_from_string; - GInetAddress* function(GInetSocketAddress* address) c_g_inet_socket_address_get_address; - uint function(GInetSocketAddress* address) c_g_inet_socket_address_get_flowinfo; - ushort function(GInetSocketAddress* address) c_g_inet_socket_address_get_port; - uint function(GInetSocketAddress* address) c_g_inet_socket_address_get_scope_id; - - // gio.Initable - - GType function() c_g_initable_get_type; - void* function(GType objectType, GCancellable* cancellable, GError** error, const(char)* firstPropertyName, ... ) c_g_initable_new; - GObject* function(GType objectType, const(char)* firstPropertyName, void* varArgs, GCancellable* cancellable, GError** err) c_g_initable_new_valist; - void* function(GType objectType, uint nParameters, GParameter* parameters, GCancellable* cancellable, GError** err) c_g_initable_newv; - int function(GInitable* initable, GCancellable* cancellable, GError** err) c_g_initable_init; - - // gio.InputStream - - GType function() c_g_input_stream_get_type; - void function(GInputStream* stream) c_g_input_stream_clear_pending; - int function(GInputStream* stream, GCancellable* cancellable, GError** err) c_g_input_stream_close; - void function(GInputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_input_stream_close_async; - int function(GInputStream* stream, GAsyncResult* result, GError** err) c_g_input_stream_close_finish; - int function(GInputStream* stream) c_g_input_stream_has_pending; - int function(GInputStream* stream) c_g_input_stream_is_closed; - ptrdiff_t function(GInputStream* stream, void* buffer, size_t count, GCancellable* cancellable, GError** err) c_g_input_stream_read; - int function(GInputStream* stream, void* buffer, size_t count, size_t* bytesRead, GCancellable* cancellable, GError** err) c_g_input_stream_read_all; - void function(GInputStream* stream, void* buffer, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_input_stream_read_all_async; - int function(GInputStream* stream, GAsyncResult* result, size_t* bytesRead, GError** err) c_g_input_stream_read_all_finish; - void function(GInputStream* stream, void* buffer, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_input_stream_read_async; - GBytes* function(GInputStream* stream, size_t count, GCancellable* cancellable, GError** err) c_g_input_stream_read_bytes; - void function(GInputStream* stream, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_input_stream_read_bytes_async; - GBytes* function(GInputStream* stream, GAsyncResult* result, GError** err) c_g_input_stream_read_bytes_finish; - ptrdiff_t function(GInputStream* stream, GAsyncResult* result, GError** err) c_g_input_stream_read_finish; - int function(GInputStream* stream, GError** err) c_g_input_stream_set_pending; - ptrdiff_t function(GInputStream* stream, size_t count, GCancellable* cancellable, GError** err) c_g_input_stream_skip; - void function(GInputStream* stream, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_input_stream_skip_async; - ptrdiff_t function(GInputStream* stream, GAsyncResult* result, GError** err) c_g_input_stream_skip_finish; - - // gio.ListModel - - GType function() c_g_list_model_get_type; - void* function(GListModel* list, uint position) c_g_list_model_get_item; - GType function(GListModel* list) c_g_list_model_get_item_type; - uint function(GListModel* list) c_g_list_model_get_n_items; - GObject* function(GListModel* list, uint position) c_g_list_model_get_object; - void function(GListModel* list, uint position, uint removed, uint added) c_g_list_model_items_changed; - - // gio.ListStore - - GType function() c_g_list_store_get_type; - GListStore* function(GType itemType) c_g_list_store_new; - void function(GListStore* store, void* item) c_g_list_store_append; - int function(GListStore* store, void* item, uint* position) c_g_list_store_find; - int function(GListStore* store, void* item, GEqualFunc equalFunc, uint* position) c_g_list_store_find_with_equal_func; - void function(GListStore* store, uint position, void* item) c_g_list_store_insert; - uint function(GListStore* store, void* item, GCompareDataFunc compareFunc, void* userData) c_g_list_store_insert_sorted; - void function(GListStore* store, uint position) c_g_list_store_remove; - void function(GListStore* store) c_g_list_store_remove_all; - void function(GListStore* store, GCompareDataFunc compareFunc, void* userData) c_g_list_store_sort; - void function(GListStore* store, uint position, uint nRemovals, void** additions, uint nAdditions) c_g_list_store_splice; - - // gio.LoadableIcon - - GType function() c_g_loadable_icon_get_type; - GInputStream* function(GLoadableIcon* icon, int size, char** type, GCancellable* cancellable, GError** err) c_g_loadable_icon_load; - void function(GLoadableIcon* icon, int size, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_loadable_icon_load_async; - GInputStream* function(GLoadableIcon* icon, GAsyncResult* res, char** type, GError** err) c_g_loadable_icon_load_finish; - - // gio.MemoryInputStream - - GType function() c_g_memory_input_stream_get_type; - GInputStream* function() c_g_memory_input_stream_new; - GInputStream* function(GBytes* bytes) c_g_memory_input_stream_new_from_bytes; - GInputStream* function(void* data, ptrdiff_t len, GDestroyNotify destroy) c_g_memory_input_stream_new_from_data; - void function(GMemoryInputStream* stream, GBytes* bytes) c_g_memory_input_stream_add_bytes; - void function(GMemoryInputStream* stream, void* data, ptrdiff_t len, GDestroyNotify destroy) c_g_memory_input_stream_add_data; - - // gio.MemoryMonitor - - GType function() c_g_memory_monitor_get_type; - GMemoryMonitor* function() c_g_memory_monitor_dup_default; - - // gio.MemoryOutputStream - - GType function() c_g_memory_output_stream_get_type; - GOutputStream* function(void* data, size_t size, GReallocFunc reallocFunction, GDestroyNotify destroyFunction) c_g_memory_output_stream_new; - GOutputStream* function() c_g_memory_output_stream_new_resizable; - void* function(GMemoryOutputStream* ostream) c_g_memory_output_stream_get_data; - size_t function(GMemoryOutputStream* ostream) c_g_memory_output_stream_get_data_size; - size_t function(GMemoryOutputStream* ostream) c_g_memory_output_stream_get_size; - GBytes* function(GMemoryOutputStream* ostream) c_g_memory_output_stream_steal_as_bytes; - void* function(GMemoryOutputStream* ostream) c_g_memory_output_stream_steal_data; - - // gio.Menu - - GType function() c_g_menu_get_type; - GMenu* function() c_g_menu_new; - void function(GMenu* menu, const(char)* label, const(char)* detailedAction) c_g_menu_append; - void function(GMenu* menu, GMenuItem* item) c_g_menu_append_item; - void function(GMenu* menu, const(char)* label, GMenuModel* section) c_g_menu_append_section; - void function(GMenu* menu, const(char)* label, GMenuModel* submenu) c_g_menu_append_submenu; - void function(GMenu* menu) c_g_menu_freeze; - void function(GMenu* menu, int position, const(char)* label, const(char)* detailedAction) c_g_menu_insert; - void function(GMenu* menu, int position, GMenuItem* item) c_g_menu_insert_item; - void function(GMenu* menu, int position, const(char)* label, GMenuModel* section) c_g_menu_insert_section; - void function(GMenu* menu, int position, const(char)* label, GMenuModel* submenu) c_g_menu_insert_submenu; - void function(GMenu* menu, const(char)* label, const(char)* detailedAction) c_g_menu_prepend; - void function(GMenu* menu, GMenuItem* item) c_g_menu_prepend_item; - void function(GMenu* menu, const(char)* label, GMenuModel* section) c_g_menu_prepend_section; - void function(GMenu* menu, const(char)* label, GMenuModel* submenu) c_g_menu_prepend_submenu; - void function(GMenu* menu, int position) c_g_menu_remove; - void function(GMenu* menu) c_g_menu_remove_all; - - // gio.MenuAttributeIter - - GType function() c_g_menu_attribute_iter_get_type; - const(char)* function(GMenuAttributeIter* iter) c_g_menu_attribute_iter_get_name; - int function(GMenuAttributeIter* iter, char** outName, GVariant** value) c_g_menu_attribute_iter_get_next; - GVariant* function(GMenuAttributeIter* iter) c_g_menu_attribute_iter_get_value; - int function(GMenuAttributeIter* iter) c_g_menu_attribute_iter_next; - - // gio.MenuItem - - GType function() c_g_menu_item_get_type; - GMenuItem* function(const(char)* label, const(char)* detailedAction) c_g_menu_item_new; - GMenuItem* function(GMenuModel* model, int itemIndex) c_g_menu_item_new_from_model; - GMenuItem* function(const(char)* label, GMenuModel* section) c_g_menu_item_new_section; - GMenuItem* function(const(char)* label, GMenuModel* submenu) c_g_menu_item_new_submenu; - int function(GMenuItem* menuItem, const(char)* attribute, const(char)* formatString, ... ) c_g_menu_item_get_attribute; - GVariant* function(GMenuItem* menuItem, const(char)* attribute, GVariantType* expectedType) c_g_menu_item_get_attribute_value; - GMenuModel* function(GMenuItem* menuItem, const(char)* link) c_g_menu_item_get_link; - void function(GMenuItem* menuItem, const(char)* action, const(char)* formatString, ... ) c_g_menu_item_set_action_and_target; - void function(GMenuItem* menuItem, const(char)* action, GVariant* targetValue) c_g_menu_item_set_action_and_target_value; - void function(GMenuItem* menuItem, const(char)* attribute, const(char)* formatString, ... ) c_g_menu_item_set_attribute; - void function(GMenuItem* menuItem, const(char)* attribute, GVariant* value) c_g_menu_item_set_attribute_value; - void function(GMenuItem* menuItem, const(char)* detailedAction) c_g_menu_item_set_detailed_action; - void function(GMenuItem* menuItem, GIcon* icon) c_g_menu_item_set_icon; - void function(GMenuItem* menuItem, const(char)* label) c_g_menu_item_set_label; - void function(GMenuItem* menuItem, const(char)* link, GMenuModel* model) c_g_menu_item_set_link; - void function(GMenuItem* menuItem, GMenuModel* section) c_g_menu_item_set_section; - void function(GMenuItem* menuItem, GMenuModel* submenu) c_g_menu_item_set_submenu; - - // gio.MenuLinkIter - - GType function() c_g_menu_link_iter_get_type; - const(char)* function(GMenuLinkIter* iter) c_g_menu_link_iter_get_name; - int function(GMenuLinkIter* iter, char** outLink, GMenuModel** value) c_g_menu_link_iter_get_next; - GMenuModel* function(GMenuLinkIter* iter) c_g_menu_link_iter_get_value; - int function(GMenuLinkIter* iter) c_g_menu_link_iter_next; - - // gio.MenuModel - - GType function() c_g_menu_model_get_type; - int function(GMenuModel* model, int itemIndex, const(char)* attribute, const(char)* formatString, ... ) c_g_menu_model_get_item_attribute; - GVariant* function(GMenuModel* model, int itemIndex, const(char)* attribute, GVariantType* expectedType) c_g_menu_model_get_item_attribute_value; - GMenuModel* function(GMenuModel* model, int itemIndex, const(char)* link) c_g_menu_model_get_item_link; - int function(GMenuModel* model) c_g_menu_model_get_n_items; - int function(GMenuModel* model) c_g_menu_model_is_mutable; - void function(GMenuModel* model, int position, int removed, int added) c_g_menu_model_items_changed; - GMenuAttributeIter* function(GMenuModel* model, int itemIndex) c_g_menu_model_iterate_item_attributes; - GMenuLinkIter* function(GMenuModel* model, int itemIndex) c_g_menu_model_iterate_item_links; - - // gio.Mount - - GType function() c_g_mount_get_type; - int function(GMount* mount) c_g_mount_can_eject; - int function(GMount* mount) c_g_mount_can_unmount; - void function(GMount* mount, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_mount_eject; - int function(GMount* mount, GAsyncResult* result, GError** err) c_g_mount_eject_finish; - void function(GMount* mount, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_mount_eject_with_operation; - int function(GMount* mount, GAsyncResult* result, GError** err) c_g_mount_eject_with_operation_finish; - GFile* function(GMount* mount) c_g_mount_get_default_location; - GDrive* function(GMount* mount) c_g_mount_get_drive; - GIcon* function(GMount* mount) c_g_mount_get_icon; - char* function(GMount* mount) c_g_mount_get_name; - GFile* function(GMount* mount) c_g_mount_get_root; - const(char)* function(GMount* mount) c_g_mount_get_sort_key; - GIcon* function(GMount* mount) c_g_mount_get_symbolic_icon; - char* function(GMount* mount) c_g_mount_get_uuid; - GVolume* function(GMount* mount) c_g_mount_get_volume; - void function(GMount* mount, int forceRescan, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_mount_guess_content_type; - char** function(GMount* mount, GAsyncResult* result, GError** err) c_g_mount_guess_content_type_finish; - char** function(GMount* mount, int forceRescan, GCancellable* cancellable, GError** err) c_g_mount_guess_content_type_sync; - int function(GMount* mount) c_g_mount_is_shadowed; - void function(GMount* mount, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_mount_remount; - int function(GMount* mount, GAsyncResult* result, GError** err) c_g_mount_remount_finish; - void function(GMount* mount) c_g_mount_shadow; - void function(GMount* mount, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_mount_unmount; - int function(GMount* mount, GAsyncResult* result, GError** err) c_g_mount_unmount_finish; - void function(GMount* mount, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_mount_unmount_with_operation; - int function(GMount* mount, GAsyncResult* result, GError** err) c_g_mount_unmount_with_operation_finish; - void function(GMount* mount) c_g_mount_unshadow; - - // gio.MountOperation - - GType function() c_g_mount_operation_get_type; - GMountOperation* function() c_g_mount_operation_new; - int function(GMountOperation* op) c_g_mount_operation_get_anonymous; - int function(GMountOperation* op) c_g_mount_operation_get_choice; - const(char)* function(GMountOperation* op) c_g_mount_operation_get_domain; - int function(GMountOperation* op) c_g_mount_operation_get_is_tcrypt_hidden_volume; - int function(GMountOperation* op) c_g_mount_operation_get_is_tcrypt_system_volume; - const(char)* function(GMountOperation* op) c_g_mount_operation_get_password; - GPasswordSave function(GMountOperation* op) c_g_mount_operation_get_password_save; - uint function(GMountOperation* op) c_g_mount_operation_get_pim; - const(char)* function(GMountOperation* op) c_g_mount_operation_get_username; - void function(GMountOperation* op, GMountOperationResult result) c_g_mount_operation_reply; - void function(GMountOperation* op, int anonymous) c_g_mount_operation_set_anonymous; - void function(GMountOperation* op, int choice) c_g_mount_operation_set_choice; - void function(GMountOperation* op, const(char)* domain) c_g_mount_operation_set_domain; - void function(GMountOperation* op, int hiddenVolume) c_g_mount_operation_set_is_tcrypt_hidden_volume; - void function(GMountOperation* op, int systemVolume) c_g_mount_operation_set_is_tcrypt_system_volume; - void function(GMountOperation* op, const(char)* password) c_g_mount_operation_set_password; - void function(GMountOperation* op, GPasswordSave save) c_g_mount_operation_set_password_save; - void function(GMountOperation* op, uint pim) c_g_mount_operation_set_pim; - void function(GMountOperation* op, const(char)* username) c_g_mount_operation_set_username; - - // gio.NativeSocketAddress - - GType function() c_g_native_socket_address_get_type; - GSocketAddress* function(void* native, size_t len) c_g_native_socket_address_new; - - // gio.NativeVolumeMonitor - - GType function() c_g_native_volume_monitor_get_type; - - // gio.NetworkAddress - - GType function() c_g_network_address_get_type; - GSocketConnectable* function(const(char)* hostname, ushort port) c_g_network_address_new; - GSocketConnectable* function(ushort port) c_g_network_address_new_loopback; - GSocketConnectable* function(const(char)* hostAndPort, ushort defaultPort, GError** err) c_g_network_address_parse; - GSocketConnectable* function(const(char)* uri, ushort defaultPort, GError** err) c_g_network_address_parse_uri; - const(char)* function(GNetworkAddress* addr) c_g_network_address_get_hostname; - ushort function(GNetworkAddress* addr) c_g_network_address_get_port; - const(char)* function(GNetworkAddress* addr) c_g_network_address_get_scheme; - - // gio.NetworkMonitor - - GType function() c_g_network_monitor_get_type; - GNetworkMonitor* function() c_g_network_monitor_get_default; - int function(GNetworkMonitor* monitor, GSocketConnectable* connectable, GCancellable* cancellable, GError** err) c_g_network_monitor_can_reach; - void function(GNetworkMonitor* monitor, GSocketConnectable* connectable, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_network_monitor_can_reach_async; - int function(GNetworkMonitor* monitor, GAsyncResult* result, GError** err) c_g_network_monitor_can_reach_finish; - GNetworkConnectivity function(GNetworkMonitor* monitor) c_g_network_monitor_get_connectivity; - int function(GNetworkMonitor* monitor) c_g_network_monitor_get_network_available; - int function(GNetworkMonitor* monitor) c_g_network_monitor_get_network_metered; - - // gio.NetworkService - - GType function() c_g_network_service_get_type; - GSocketConnectable* function(const(char)* service, const(char)* protocol, const(char)* domain) c_g_network_service_new; - const(char)* function(GNetworkService* srv) c_g_network_service_get_domain; - const(char)* function(GNetworkService* srv) c_g_network_service_get_protocol; - const(char)* function(GNetworkService* srv) c_g_network_service_get_scheme; - const(char)* function(GNetworkService* srv) c_g_network_service_get_service; - void function(GNetworkService* srv, const(char)* scheme) c_g_network_service_set_scheme; - - // gio.Notification - - GType function() c_g_notification_get_type; - GNotification* function(const(char)* title) c_g_notification_new; - void function(GNotification* notification, const(char)* label, const(char)* detailedAction) c_g_notification_add_button; - void function(GNotification* notification, const(char)* label, const(char)* action, const(char)* targetFormat, ... ) c_g_notification_add_button_with_target; - void function(GNotification* notification, const(char)* label, const(char)* action, GVariant* target) c_g_notification_add_button_with_target_value; - void function(GNotification* notification, const(char)* body_) c_g_notification_set_body; - void function(GNotification* notification, const(char)* detailedAction) c_g_notification_set_default_action; - void function(GNotification* notification, const(char)* action, const(char)* targetFormat, ... ) c_g_notification_set_default_action_and_target; - void function(GNotification* notification, const(char)* action, GVariant* target) c_g_notification_set_default_action_and_target_value; - void function(GNotification* notification, GIcon* icon) c_g_notification_set_icon; - void function(GNotification* notification, GNotificationPriority priority) c_g_notification_set_priority; - void function(GNotification* notification, const(char)* title) c_g_notification_set_title; - void function(GNotification* notification, int urgent) c_g_notification_set_urgent; - - // gio.OutputStream - - GType function() c_g_output_stream_get_type; - void function(GOutputStream* stream) c_g_output_stream_clear_pending; - int function(GOutputStream* stream, GCancellable* cancellable, GError** err) c_g_output_stream_close; - void function(GOutputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_close_async; - int function(GOutputStream* stream, GAsyncResult* result, GError** err) c_g_output_stream_close_finish; - int function(GOutputStream* stream, GCancellable* cancellable, GError** err) c_g_output_stream_flush; - void function(GOutputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_flush_async; - int function(GOutputStream* stream, GAsyncResult* result, GError** err) c_g_output_stream_flush_finish; - int function(GOutputStream* stream) c_g_output_stream_has_pending; - int function(GOutputStream* stream) c_g_output_stream_is_closed; - int function(GOutputStream* stream) c_g_output_stream_is_closing; - int function(GOutputStream* stream, size_t* bytesWritten, GCancellable* cancellable, GError** error, const(char)* format, ... ) c_g_output_stream_printf; - int function(GOutputStream* stream, GError** err) c_g_output_stream_set_pending; - ptrdiff_t function(GOutputStream* stream, GInputStream* source, GOutputStreamSpliceFlags flags, GCancellable* cancellable, GError** err) c_g_output_stream_splice; - void function(GOutputStream* stream, GInputStream* source, GOutputStreamSpliceFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_splice_async; - ptrdiff_t function(GOutputStream* stream, GAsyncResult* result, GError** err) c_g_output_stream_splice_finish; - int function(GOutputStream* stream, size_t* bytesWritten, GCancellable* cancellable, GError** error, const(char)* format, void* args) c_g_output_stream_vprintf; - ptrdiff_t function(GOutputStream* stream, void* buffer, size_t count, GCancellable* cancellable, GError** err) c_g_output_stream_write; - int function(GOutputStream* stream, void* buffer, size_t count, size_t* bytesWritten, GCancellable* cancellable, GError** err) c_g_output_stream_write_all; - void function(GOutputStream* stream, void* buffer, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_write_all_async; - int function(GOutputStream* stream, GAsyncResult* result, size_t* bytesWritten, GError** err) c_g_output_stream_write_all_finish; - void function(GOutputStream* stream, void* buffer, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_write_async; - ptrdiff_t function(GOutputStream* stream, GBytes* bytes, GCancellable* cancellable, GError** err) c_g_output_stream_write_bytes; - void function(GOutputStream* stream, GBytes* bytes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_write_bytes_async; - ptrdiff_t function(GOutputStream* stream, GAsyncResult* result, GError** err) c_g_output_stream_write_bytes_finish; - ptrdiff_t function(GOutputStream* stream, GAsyncResult* result, GError** err) c_g_output_stream_write_finish; - int function(GOutputStream* stream, GOutputVector* vectors, size_t nVectors, size_t* bytesWritten, GCancellable* cancellable, GError** err) c_g_output_stream_writev; - int function(GOutputStream* stream, GOutputVector* vectors, size_t nVectors, size_t* bytesWritten, GCancellable* cancellable, GError** err) c_g_output_stream_writev_all; - void function(GOutputStream* stream, GOutputVector* vectors, size_t nVectors, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_writev_all_async; - int function(GOutputStream* stream, GAsyncResult* result, size_t* bytesWritten, GError** err) c_g_output_stream_writev_all_finish; - void function(GOutputStream* stream, GOutputVector* vectors, size_t nVectors, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_output_stream_writev_async; - int function(GOutputStream* stream, GAsyncResult* result, size_t* bytesWritten, GError** err) c_g_output_stream_writev_finish; - - // gio.Permission - - GType function() c_g_permission_get_type; - int function(GPermission* permission, GCancellable* cancellable, GError** err) c_g_permission_acquire; - void function(GPermission* permission, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_permission_acquire_async; - int function(GPermission* permission, GAsyncResult* result, GError** err) c_g_permission_acquire_finish; - int function(GPermission* permission) c_g_permission_get_allowed; - int function(GPermission* permission) c_g_permission_get_can_acquire; - int function(GPermission* permission) c_g_permission_get_can_release; - void function(GPermission* permission, int allowed, int canAcquire, int canRelease) c_g_permission_impl_update; - int function(GPermission* permission, GCancellable* cancellable, GError** err) c_g_permission_release; - void function(GPermission* permission, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_permission_release_async; - int function(GPermission* permission, GAsyncResult* result, GError** err) c_g_permission_release_finish; - - // gio.PollableInputStream - - GType function() c_g_pollable_input_stream_get_type; - int function(GPollableInputStream* stream) c_g_pollable_input_stream_can_poll; - GSource* function(GPollableInputStream* stream, GCancellable* cancellable) c_g_pollable_input_stream_create_source; - int function(GPollableInputStream* stream) c_g_pollable_input_stream_is_readable; - ptrdiff_t function(GPollableInputStream* stream, void* buffer, size_t count, GCancellable* cancellable, GError** err) c_g_pollable_input_stream_read_nonblocking; - - // gio.PollableOutputStream - - GType function() c_g_pollable_output_stream_get_type; - int function(GPollableOutputStream* stream) c_g_pollable_output_stream_can_poll; - GSource* function(GPollableOutputStream* stream, GCancellable* cancellable) c_g_pollable_output_stream_create_source; - int function(GPollableOutputStream* stream) c_g_pollable_output_stream_is_writable; - ptrdiff_t function(GPollableOutputStream* stream, void* buffer, size_t count, GCancellable* cancellable, GError** err) c_g_pollable_output_stream_write_nonblocking; - GPollableReturn function(GPollableOutputStream* stream, GOutputVector* vectors, size_t nVectors, size_t* bytesWritten, GCancellable* cancellable, GError** err) c_g_pollable_output_stream_writev_nonblocking; - - // gio.PropertyAction - - GType function() c_g_property_action_get_type; - GPropertyAction* function(const(char)* name, void* object, const(char)* propertyName) c_g_property_action_new; - - // gio.Proxy - - GType function() c_g_proxy_get_type; - GProxy* function(const(char)* protocol) c_g_proxy_get_default_for_protocol; - GIOStream* function(GProxy* proxy, GIOStream* connection, GProxyAddress* proxyAddress, GCancellable* cancellable, GError** err) c_g_proxy_connect; - void function(GProxy* proxy, GIOStream* connection, GProxyAddress* proxyAddress, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_proxy_connect_async; - GIOStream* function(GProxy* proxy, GAsyncResult* result, GError** err) c_g_proxy_connect_finish; - int function(GProxy* proxy) c_g_proxy_supports_hostname; - - // gio.ProxyAddress - - GType function() c_g_proxy_address_get_type; - GSocketAddress* function(GInetAddress* inetaddr, ushort port, const(char)* protocol, const(char)* destHostname, ushort destPort, const(char)* username, const(char)* password) c_g_proxy_address_new; - const(char)* function(GProxyAddress* proxy) c_g_proxy_address_get_destination_hostname; - ushort function(GProxyAddress* proxy) c_g_proxy_address_get_destination_port; - const(char)* function(GProxyAddress* proxy) c_g_proxy_address_get_destination_protocol; - const(char)* function(GProxyAddress* proxy) c_g_proxy_address_get_password; - const(char)* function(GProxyAddress* proxy) c_g_proxy_address_get_protocol; - const(char)* function(GProxyAddress* proxy) c_g_proxy_address_get_uri; - const(char)* function(GProxyAddress* proxy) c_g_proxy_address_get_username; - - // gio.ProxyAddressEnumerator - - GType function() c_g_proxy_address_enumerator_get_type; - - // gio.ProxyResolver - - GType function() c_g_proxy_resolver_get_type; - GProxyResolver* function() c_g_proxy_resolver_get_default; - int function(GProxyResolver* resolver) c_g_proxy_resolver_is_supported; - char** function(GProxyResolver* resolver, const(char)* uri, GCancellable* cancellable, GError** err) c_g_proxy_resolver_lookup; - void function(GProxyResolver* resolver, const(char)* uri, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_proxy_resolver_lookup_async; - char** function(GProxyResolver* resolver, GAsyncResult* result, GError** err) c_g_proxy_resolver_lookup_finish; - - // gio.RemoteActionGroup - - GType function() c_g_remote_action_group_get_type; - void function(GRemoteActionGroup* remote, const(char)* actionName, GVariant* parameter, GVariant* platformData) c_g_remote_action_group_activate_action_full; - void function(GRemoteActionGroup* remote, const(char)* actionName, GVariant* value, GVariant* platformData) c_g_remote_action_group_change_action_state_full; - - // gio.Resolver - - GType function() c_g_resolver_get_type; - void function(GList* addresses) c_g_resolver_free_addresses; - void function(GList* targets) c_g_resolver_free_targets; - GResolver* function() c_g_resolver_get_default; - char* function(GResolver* resolver, GInetAddress* address, GCancellable* cancellable, GError** err) c_g_resolver_lookup_by_address; - void function(GResolver* resolver, GInetAddress* address, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_resolver_lookup_by_address_async; - char* function(GResolver* resolver, GAsyncResult* result, GError** err) c_g_resolver_lookup_by_address_finish; - GList* function(GResolver* resolver, const(char)* hostname, GCancellable* cancellable, GError** err) c_g_resolver_lookup_by_name; - void function(GResolver* resolver, const(char)* hostname, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_resolver_lookup_by_name_async; - GList* function(GResolver* resolver, GAsyncResult* result, GError** err) c_g_resolver_lookup_by_name_finish; - GList* function(GResolver* resolver, const(char)* hostname, GResolverNameLookupFlags flags, GCancellable* cancellable, GError** err) c_g_resolver_lookup_by_name_with_flags; - void function(GResolver* resolver, const(char)* hostname, GResolverNameLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_resolver_lookup_by_name_with_flags_async; - GList* function(GResolver* resolver, GAsyncResult* result, GError** err) c_g_resolver_lookup_by_name_with_flags_finish; - GList* function(GResolver* resolver, const(char)* rrname, GResolverRecordType recordType, GCancellable* cancellable, GError** err) c_g_resolver_lookup_records; - void function(GResolver* resolver, const(char)* rrname, GResolverRecordType recordType, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_resolver_lookup_records_async; - GList* function(GResolver* resolver, GAsyncResult* result, GError** err) c_g_resolver_lookup_records_finish; - GList* function(GResolver* resolver, const(char)* service, const(char)* protocol, const(char)* domain, GCancellable* cancellable, GError** err) c_g_resolver_lookup_service; - void function(GResolver* resolver, const(char)* service, const(char)* protocol, const(char)* domain, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_resolver_lookup_service_async; - GList* function(GResolver* resolver, GAsyncResult* result, GError** err) c_g_resolver_lookup_service_finish; - void function(GResolver* resolver) c_g_resolver_set_default; - - // gio.Resource - - GType function() c_g_resource_get_type; - GResource* function(GBytes* data, GError** err) c_g_resource_new_from_data; - void function(GResource* resource) c_g_resources_register; - void function(GResource* resource) c_g_resources_unregister; - char** function(GResource* resource, const(char)* path, GResourceLookupFlags lookupFlags, GError** err) c_g_resource_enumerate_children; - int function(GResource* resource, const(char)* path, GResourceLookupFlags lookupFlags, size_t* size, uint* flags, GError** err) c_g_resource_get_info; - GBytes* function(GResource* resource, const(char)* path, GResourceLookupFlags lookupFlags, GError** err) c_g_resource_lookup_data; - GInputStream* function(GResource* resource, const(char)* path, GResourceLookupFlags lookupFlags, GError** err) c_g_resource_open_stream; - GResource* function(GResource* resource) c_g_resource_ref; - void function(GResource* resource) c_g_resource_unref; - GResource* function(char* filename, GError** err) c_g_resource_load; - char** function(const(char)* path, GResourceLookupFlags lookupFlags, GError** err) c_g_resources_enumerate_children; - int function(const(char)* path, GResourceLookupFlags lookupFlags, size_t* size, uint* flags, GError** err) c_g_resources_get_info; - GBytes* function(const(char)* path, GResourceLookupFlags lookupFlags, GError** err) c_g_resources_lookup_data; - GInputStream* function(const(char)* path, GResourceLookupFlags lookupFlags, GError** err) c_g_resources_open_stream; - - // gio.Seekable - - GType function() c_g_seekable_get_type; - int function(GSeekable* seekable) c_g_seekable_can_seek; - int function(GSeekable* seekable) c_g_seekable_can_truncate; - int function(GSeekable* seekable, long offset, GSeekType type, GCancellable* cancellable, GError** err) c_g_seekable_seek; - long function(GSeekable* seekable) c_g_seekable_tell; - int function(GSeekable* seekable, long offset, GCancellable* cancellable, GError** err) c_g_seekable_truncate; - - // gio.Settings - - GType function() c_g_settings_get_type; - GSettings* function(const(char)* schemaId) c_g_settings_new; - GSettings* function(GSettingsSchema* schema, GSettingsBackend* backend, const(char)* path) c_g_settings_new_full; - GSettings* function(const(char)* schemaId, GSettingsBackend* backend) c_g_settings_new_with_backend; - GSettings* function(const(char)* schemaId, GSettingsBackend* backend, const(char)* path) c_g_settings_new_with_backend_and_path; - GSettings* function(const(char)* schemaId, const(char)* path) c_g_settings_new_with_path; - char** function() c_g_settings_list_relocatable_schemas; - char** function() c_g_settings_list_schemas; - void function() c_g_settings_sync; - void function(void* object, const(char)* property) c_g_settings_unbind; - void function(GSettings* settings) c_g_settings_apply; - void function(GSettings* settings, const(char)* key, void* object, const(char)* property, GSettingsBindFlags flags) c_g_settings_bind; - void function(GSettings* settings, const(char)* key, void* object, const(char)* property, GSettingsBindFlags flags, GSettingsBindGetMapping getMapping, GSettingsBindSetMapping setMapping, void* userData, GDestroyNotify destroy) c_g_settings_bind_with_mapping; - void function(GSettings* settings, const(char)* key, void* object, const(char)* property, int inverted) c_g_settings_bind_writable; - GAction* function(GSettings* settings, const(char)* key) c_g_settings_create_action; - void function(GSettings* settings) c_g_settings_delay; - void function(GSettings* settings, const(char)* key, const(char)* format, ... ) c_g_settings_get; - int function(GSettings* settings, const(char)* key) c_g_settings_get_boolean; - GSettings* function(GSettings* settings, const(char)* name) c_g_settings_get_child; - GVariant* function(GSettings* settings, const(char)* key) c_g_settings_get_default_value; - double function(GSettings* settings, const(char)* key) c_g_settings_get_double; - int function(GSettings* settings, const(char)* key) c_g_settings_get_enum; - uint function(GSettings* settings, const(char)* key) c_g_settings_get_flags; - int function(GSettings* settings) c_g_settings_get_has_unapplied; - int function(GSettings* settings, const(char)* key) c_g_settings_get_int; - long function(GSettings* settings, const(char)* key) c_g_settings_get_int64; - void* function(GSettings* settings, const(char)* key, GSettingsGetMapping mapping, void* userData) c_g_settings_get_mapped; - GVariant* function(GSettings* settings, const(char)* key) c_g_settings_get_range; - char* function(GSettings* settings, const(char)* key) c_g_settings_get_string; - char** function(GSettings* settings, const(char)* key) c_g_settings_get_strv; - uint function(GSettings* settings, const(char)* key) c_g_settings_get_uint; - ulong function(GSettings* settings, const(char)* key) c_g_settings_get_uint64; - GVariant* function(GSettings* settings, const(char)* key) c_g_settings_get_user_value; - GVariant* function(GSettings* settings, const(char)* key) c_g_settings_get_value; - int function(GSettings* settings, const(char)* name) c_g_settings_is_writable; - char** function(GSettings* settings) c_g_settings_list_children; - char** function(GSettings* settings) c_g_settings_list_keys; - int function(GSettings* settings, const(char)* key, GVariant* value) c_g_settings_range_check; - void function(GSettings* settings, const(char)* key) c_g_settings_reset; - void function(GSettings* settings) c_g_settings_revert; - int function(GSettings* settings, const(char)* key, const(char)* format, ... ) c_g_settings_set; - int function(GSettings* settings, const(char)* key, int value) c_g_settings_set_boolean; - int function(GSettings* settings, const(char)* key, double value) c_g_settings_set_double; - int function(GSettings* settings, const(char)* key, int value) c_g_settings_set_enum; - int function(GSettings* settings, const(char)* key, uint value) c_g_settings_set_flags; - int function(GSettings* settings, const(char)* key, int value) c_g_settings_set_int; - int function(GSettings* settings, const(char)* key, long value) c_g_settings_set_int64; - int function(GSettings* settings, const(char)* key, const(char)* value) c_g_settings_set_string; - int function(GSettings* settings, const(char)* key, char** value) c_g_settings_set_strv; - int function(GSettings* settings, const(char)* key, uint value) c_g_settings_set_uint; - int function(GSettings* settings, const(char)* key, ulong value) c_g_settings_set_uint64; - int function(GSettings* settings, const(char)* key, GVariant* value) c_g_settings_set_value; - - // gio.SettingsBackend - - GType function() c_g_settings_backend_get_type; - void function(GTree* tree, char** path, char*** keys, GVariant*** values) c_g_settings_backend_flatten_tree; - GSettingsBackend* function() c_g_settings_backend_get_default; - void function(GSettingsBackend* backend, const(char)* key, void* originTag) c_g_settings_backend_changed; - void function(GSettingsBackend* backend, GTree* tree, void* originTag) c_g_settings_backend_changed_tree; - void function(GSettingsBackend* backend, const(char)* path, char** items, void* originTag) c_g_settings_backend_keys_changed; - void function(GSettingsBackend* backend, const(char)* path, void* originTag) c_g_settings_backend_path_changed; - void function(GSettingsBackend* backend, const(char)* path) c_g_settings_backend_path_writable_changed; - void function(GSettingsBackend* backend, const(char)* key) c_g_settings_backend_writable_changed; - GSettingsBackend* function(const(char)* filename, const(char)* rootPath, const(char)* rootGroup) c_g_keyfile_settings_backend_new; - GSettingsBackend* function() c_g_memory_settings_backend_new; - GSettingsBackend* function() c_g_null_settings_backend_new; - - // gio.SettingsSchema - - GType function() c_g_settings_schema_get_type; - const(char)* function(GSettingsSchema* schema) c_g_settings_schema_get_id; - GSettingsSchemaKey* function(GSettingsSchema* schema, const(char)* name) c_g_settings_schema_get_key; - const(char)* function(GSettingsSchema* schema) c_g_settings_schema_get_path; - int function(GSettingsSchema* schema, const(char)* name) c_g_settings_schema_has_key; - char** function(GSettingsSchema* schema) c_g_settings_schema_list_children; - char** function(GSettingsSchema* schema) c_g_settings_schema_list_keys; - GSettingsSchema* function(GSettingsSchema* schema) c_g_settings_schema_ref; - void function(GSettingsSchema* schema) c_g_settings_schema_unref; - - // gio.SettingsSchemaKey - - GType function() c_g_settings_schema_key_get_type; - GVariant* function(GSettingsSchemaKey* key) c_g_settings_schema_key_get_default_value; - const(char)* function(GSettingsSchemaKey* key) c_g_settings_schema_key_get_description; - const(char)* function(GSettingsSchemaKey* key) c_g_settings_schema_key_get_name; - GVariant* function(GSettingsSchemaKey* key) c_g_settings_schema_key_get_range; - const(char)* function(GSettingsSchemaKey* key) c_g_settings_schema_key_get_summary; - GVariantType* function(GSettingsSchemaKey* key) c_g_settings_schema_key_get_value_type; - int function(GSettingsSchemaKey* key, GVariant* value) c_g_settings_schema_key_range_check; - GSettingsSchemaKey* function(GSettingsSchemaKey* key) c_g_settings_schema_key_ref; - void function(GSettingsSchemaKey* key) c_g_settings_schema_key_unref; - - // gio.SettingsSchemaSource - - GType function() c_g_settings_schema_source_get_type; - GSettingsSchemaSource* function(char* directory, GSettingsSchemaSource* parent, int trusted, GError** err) c_g_settings_schema_source_new_from_directory; - void function(GSettingsSchemaSource* source, int recursive, char*** nonRelocatable, char*** relocatable) c_g_settings_schema_source_list_schemas; - GSettingsSchema* function(GSettingsSchemaSource* source, const(char)* schemaId, int recursive) c_g_settings_schema_source_lookup; - GSettingsSchemaSource* function(GSettingsSchemaSource* source) c_g_settings_schema_source_ref; - void function(GSettingsSchemaSource* source) c_g_settings_schema_source_unref; - GSettingsSchemaSource* function() c_g_settings_schema_source_get_default; - - // gio.SimpleAction - - GType function() c_g_simple_action_get_type; - GSimpleAction* function(const(char)* name, GVariantType* parameterType) c_g_simple_action_new; - GSimpleAction* function(const(char)* name, GVariantType* parameterType, GVariant* state) c_g_simple_action_new_stateful; - void function(GSimpleAction* simple, int enabled) c_g_simple_action_set_enabled; - void function(GSimpleAction* simple, GVariant* value) c_g_simple_action_set_state; - void function(GSimpleAction* simple, GVariant* stateHint) c_g_simple_action_set_state_hint; - - // gio.SimpleActionGroup - - GType function() c_g_simple_action_group_get_type; - GSimpleActionGroup* function() c_g_simple_action_group_new; - void function(GSimpleActionGroup* simple, GActionEntry* entries, int nEntries, void* userData) c_g_simple_action_group_add_entries; - void function(GSimpleActionGroup* simple, GAction* action) c_g_simple_action_group_insert; - GAction* function(GSimpleActionGroup* simple, const(char)* actionName) c_g_simple_action_group_lookup; - void function(GSimpleActionGroup* simple, const(char)* actionName) c_g_simple_action_group_remove; - - // gio.SimpleAsyncResult - - GType function() c_g_simple_async_result_get_type; - GSimpleAsyncResult* function(GObject* sourceObject, GAsyncReadyCallback callback, void* userData, void* sourceTag) c_g_simple_async_result_new; - GSimpleAsyncResult* function(GObject* sourceObject, GAsyncReadyCallback callback, void* userData, GQuark domain, int code, const(char)* format, ... ) c_g_simple_async_result_new_error; - GSimpleAsyncResult* function(GObject* sourceObject, GAsyncReadyCallback callback, void* userData, GError* error) c_g_simple_async_result_new_from_error; - GSimpleAsyncResult* function(GObject* sourceObject, GAsyncReadyCallback callback, void* userData, GError* error) c_g_simple_async_result_new_take_error; - int function(GAsyncResult* result, GObject* source, void* sourceTag) c_g_simple_async_result_is_valid; - void function(GSimpleAsyncResult* simple) c_g_simple_async_result_complete; - void function(GSimpleAsyncResult* simple) c_g_simple_async_result_complete_in_idle; - int function(GSimpleAsyncResult* simple) c_g_simple_async_result_get_op_res_gboolean; - void* function(GSimpleAsyncResult* simple) c_g_simple_async_result_get_op_res_gpointer; - ptrdiff_t function(GSimpleAsyncResult* simple) c_g_simple_async_result_get_op_res_gssize; - void* function(GSimpleAsyncResult* simple) c_g_simple_async_result_get_source_tag; - int function(GSimpleAsyncResult* simple, GError** err) c_g_simple_async_result_propagate_error; - void function(GSimpleAsyncResult* simple, GSimpleAsyncThreadFunc func, int ioPriority, GCancellable* cancellable) c_g_simple_async_result_run_in_thread; - void function(GSimpleAsyncResult* simple, GCancellable* checkCancellable) c_g_simple_async_result_set_check_cancellable; - void function(GSimpleAsyncResult* simple, GQuark domain, int code, const(char)* format, ... ) c_g_simple_async_result_set_error; - void function(GSimpleAsyncResult* simple, GQuark domain, int code, const(char)* format, void* args) c_g_simple_async_result_set_error_va; - void function(GSimpleAsyncResult* simple, GError* error) c_g_simple_async_result_set_from_error; - void function(GSimpleAsyncResult* simple, int handleCancellation) c_g_simple_async_result_set_handle_cancellation; - void function(GSimpleAsyncResult* simple, int opRes) c_g_simple_async_result_set_op_res_gboolean; - void function(GSimpleAsyncResult* simple, void* opRes, GDestroyNotify destroyOpRes) c_g_simple_async_result_set_op_res_gpointer; - void function(GSimpleAsyncResult* simple, ptrdiff_t opRes) c_g_simple_async_result_set_op_res_gssize; - void function(GSimpleAsyncResult* simple, GError* error) c_g_simple_async_result_take_error; - void function(GObject* object, GAsyncReadyCallback callback, void* userData, GQuark domain, int code, const(char)* format, ... ) c_g_simple_async_report_error_in_idle; - void function(GObject* object, GAsyncReadyCallback callback, void* userData, GError* error) c_g_simple_async_report_gerror_in_idle; - void function(GObject* object, GAsyncReadyCallback callback, void* userData, GError* error) c_g_simple_async_report_take_gerror_in_idle; - - // gio.SimpleIOStream - - GType function() c_g_simple_io_stream_get_type; - GIOStream* function(GInputStream* inputStream, GOutputStream* outputStream) c_g_simple_io_stream_new; - - // gio.SimplePermission - - GType function() c_g_simple_permission_get_type; - GPermission* function(int allowed) c_g_simple_permission_new; - - // gio.SimpleProxyResolver - - GType function() c_g_simple_proxy_resolver_get_type; - GProxyResolver* function(const(char)* defaultProxy, char** ignoreHosts) c_g_simple_proxy_resolver_new; - void function(GSimpleProxyResolver* resolver, const(char)* defaultProxy) c_g_simple_proxy_resolver_set_default_proxy; - void function(GSimpleProxyResolver* resolver, char** ignoreHosts) c_g_simple_proxy_resolver_set_ignore_hosts; - void function(GSimpleProxyResolver* resolver, const(char)* uriScheme, const(char)* proxy) c_g_simple_proxy_resolver_set_uri_proxy; - - // gio.Socket - - GType function() c_g_socket_get_type; - GSocket* function(GSocketFamily family, GSocketType type, GSocketProtocol protocol, GError** err) c_g_socket_new; - GSocket* function(int fd, GError** err) c_g_socket_new_from_fd; - GSocket* function(GSocket* socket, GCancellable* cancellable, GError** err) c_g_socket_accept; - int function(GSocket* socket, GSocketAddress* address, int allowReuse, GError** err) c_g_socket_bind; - int function(GSocket* socket, GError** err) c_g_socket_check_connect_result; - int function(GSocket* socket, GError** err) c_g_socket_close; - GIOCondition function(GSocket* socket, GIOCondition condition) c_g_socket_condition_check; - int function(GSocket* socket, GIOCondition condition, long timeoutUs, GCancellable* cancellable, GError** err) c_g_socket_condition_timed_wait; - int function(GSocket* socket, GIOCondition condition, GCancellable* cancellable, GError** err) c_g_socket_condition_wait; - int function(GSocket* socket, GSocketAddress* address, GCancellable* cancellable, GError** err) c_g_socket_connect; - GSocketConnection* function(GSocket* socket) c_g_socket_connection_factory_create_connection; - GSource* function(GSocket* socket, GIOCondition condition, GCancellable* cancellable) c_g_socket_create_source; - ptrdiff_t function(GSocket* socket) c_g_socket_get_available_bytes; - int function(GSocket* socket) c_g_socket_get_blocking; - int function(GSocket* socket) c_g_socket_get_broadcast; - GCredentials* function(GSocket* socket, GError** err) c_g_socket_get_credentials; - GSocketFamily function(GSocket* socket) c_g_socket_get_family; - int function(GSocket* socket) c_g_socket_get_fd; - int function(GSocket* socket) c_g_socket_get_keepalive; - int function(GSocket* socket) c_g_socket_get_listen_backlog; - GSocketAddress* function(GSocket* socket, GError** err) c_g_socket_get_local_address; - int function(GSocket* socket) c_g_socket_get_multicast_loopback; - uint function(GSocket* socket) c_g_socket_get_multicast_ttl; - int function(GSocket* socket, int level, int optname, int* value, GError** err) c_g_socket_get_option; - GSocketProtocol function(GSocket* socket) c_g_socket_get_protocol; - GSocketAddress* function(GSocket* socket, GError** err) c_g_socket_get_remote_address; - GSocketType function(GSocket* socket) c_g_socket_get_socket_type; - uint function(GSocket* socket) c_g_socket_get_timeout; - uint function(GSocket* socket) c_g_socket_get_ttl; - int function(GSocket* socket) c_g_socket_is_closed; - int function(GSocket* socket) c_g_socket_is_connected; - int function(GSocket* socket, GInetAddress* group, int sourceSpecific, const(char)* iface, GError** err) c_g_socket_join_multicast_group; - int function(GSocket* socket, GInetAddress* group, GInetAddress* sourceSpecific, const(char)* iface, GError** err) c_g_socket_join_multicast_group_ssm; - int function(GSocket* socket, GInetAddress* group, int sourceSpecific, const(char)* iface, GError** err) c_g_socket_leave_multicast_group; - int function(GSocket* socket, GInetAddress* group, GInetAddress* sourceSpecific, const(char)* iface, GError** err) c_g_socket_leave_multicast_group_ssm; - int function(GSocket* socket, GError** err) c_g_socket_listen; - ptrdiff_t function(GSocket* socket, char* buffer, size_t size, GCancellable* cancellable, GError** err) c_g_socket_receive; - ptrdiff_t function(GSocket* socket, GSocketAddress** address, char* buffer, size_t size, GCancellable* cancellable, GError** err) c_g_socket_receive_from; - ptrdiff_t function(GSocket* socket, GSocketAddress** address, GInputVector* vectors, int numVectors, GSocketControlMessage*** messages, int* numMessages, int* flags, GCancellable* cancellable, GError** err) c_g_socket_receive_message; - int function(GSocket* socket, GInputMessage* messages, uint numMessages, int flags, GCancellable* cancellable, GError** err) c_g_socket_receive_messages; - ptrdiff_t function(GSocket* socket, char* buffer, size_t size, int blocking, GCancellable* cancellable, GError** err) c_g_socket_receive_with_blocking; - ptrdiff_t function(GSocket* socket, char* buffer, size_t size, GCancellable* cancellable, GError** err) c_g_socket_send; - ptrdiff_t function(GSocket* socket, GSocketAddress* address, GOutputVector* vectors, int numVectors, GSocketControlMessage** messages, int numMessages, int flags, GCancellable* cancellable, GError** err) c_g_socket_send_message; - GPollableReturn function(GSocket* socket, GSocketAddress* address, GOutputVector* vectors, int numVectors, GSocketControlMessage** messages, int numMessages, int flags, long timeoutUs, size_t* bytesWritten, GCancellable* cancellable, GError** err) c_g_socket_send_message_with_timeout; - int function(GSocket* socket, GOutputMessage* messages, uint numMessages, int flags, GCancellable* cancellable, GError** err) c_g_socket_send_messages; - ptrdiff_t function(GSocket* socket, GSocketAddress* address, char* buffer, size_t size, GCancellable* cancellable, GError** err) c_g_socket_send_to; - ptrdiff_t function(GSocket* socket, char* buffer, size_t size, int blocking, GCancellable* cancellable, GError** err) c_g_socket_send_with_blocking; - void function(GSocket* socket, int blocking) c_g_socket_set_blocking; - void function(GSocket* socket, int broadcast) c_g_socket_set_broadcast; - void function(GSocket* socket, int keepalive) c_g_socket_set_keepalive; - void function(GSocket* socket, int backlog) c_g_socket_set_listen_backlog; - void function(GSocket* socket, int loopback) c_g_socket_set_multicast_loopback; - void function(GSocket* socket, uint ttl) c_g_socket_set_multicast_ttl; - int function(GSocket* socket, int level, int optname, int value, GError** err) c_g_socket_set_option; - void function(GSocket* socket, uint timeout) c_g_socket_set_timeout; - void function(GSocket* socket, uint ttl) c_g_socket_set_ttl; - int function(GSocket* socket, int shutdownRead, int shutdownWrite, GError** err) c_g_socket_shutdown; - int function(GSocket* socket) c_g_socket_speaks_ipv4; - - // gio.SocketAddress - - GType function() c_g_socket_address_get_type; - GSocketAddress* function(void* native, size_t len) c_g_socket_address_new_from_native; - GSocketFamily function(GSocketAddress* address) c_g_socket_address_get_family; - ptrdiff_t function(GSocketAddress* address) c_g_socket_address_get_native_size; - int function(GSocketAddress* address, void* dest, size_t destlen, GError** err) c_g_socket_address_to_native; - - // gio.SocketAddressEnumerator - - GType function() c_g_socket_address_enumerator_get_type; - GSocketAddress* function(GSocketAddressEnumerator* enumerator, GCancellable* cancellable, GError** err) c_g_socket_address_enumerator_next; - void function(GSocketAddressEnumerator* enumerator, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_address_enumerator_next_async; - GSocketAddress* function(GSocketAddressEnumerator* enumerator, GAsyncResult* result, GError** err) c_g_socket_address_enumerator_next_finish; - - // gio.SocketClient - - GType function() c_g_socket_client_get_type; - GSocketClient* function() c_g_socket_client_new; - void function(GSocketClient* client, const(char)* protocol) c_g_socket_client_add_application_proxy; - GSocketConnection* function(GSocketClient* client, GSocketConnectable* connectable, GCancellable* cancellable, GError** err) c_g_socket_client_connect; - void function(GSocketClient* client, GSocketConnectable* connectable, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_client_connect_async; - GSocketConnection* function(GSocketClient* client, GAsyncResult* result, GError** err) c_g_socket_client_connect_finish; - GSocketConnection* function(GSocketClient* client, const(char)* hostAndPort, ushort defaultPort, GCancellable* cancellable, GError** err) c_g_socket_client_connect_to_host; - void function(GSocketClient* client, const(char)* hostAndPort, ushort defaultPort, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_client_connect_to_host_async; - GSocketConnection* function(GSocketClient* client, GAsyncResult* result, GError** err) c_g_socket_client_connect_to_host_finish; - GSocketConnection* function(GSocketClient* client, const(char)* domain, const(char)* service, GCancellable* cancellable, GError** err) c_g_socket_client_connect_to_service; - void function(GSocketClient* client, const(char)* domain, const(char)* service, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_client_connect_to_service_async; - GSocketConnection* function(GSocketClient* client, GAsyncResult* result, GError** err) c_g_socket_client_connect_to_service_finish; - GSocketConnection* function(GSocketClient* client, const(char)* uri, ushort defaultPort, GCancellable* cancellable, GError** err) c_g_socket_client_connect_to_uri; - void function(GSocketClient* client, const(char)* uri, ushort defaultPort, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_client_connect_to_uri_async; - GSocketConnection* function(GSocketClient* client, GAsyncResult* result, GError** err) c_g_socket_client_connect_to_uri_finish; - int function(GSocketClient* client) c_g_socket_client_get_enable_proxy; - GSocketFamily function(GSocketClient* client) c_g_socket_client_get_family; - GSocketAddress* function(GSocketClient* client) c_g_socket_client_get_local_address; - GSocketProtocol function(GSocketClient* client) c_g_socket_client_get_protocol; - GProxyResolver* function(GSocketClient* client) c_g_socket_client_get_proxy_resolver; - GSocketType function(GSocketClient* client) c_g_socket_client_get_socket_type; - uint function(GSocketClient* client) c_g_socket_client_get_timeout; - int function(GSocketClient* client) c_g_socket_client_get_tls; - GTlsCertificateFlags function(GSocketClient* client) c_g_socket_client_get_tls_validation_flags; - void function(GSocketClient* client, int enable) c_g_socket_client_set_enable_proxy; - void function(GSocketClient* client, GSocketFamily family) c_g_socket_client_set_family; - void function(GSocketClient* client, GSocketAddress* address) c_g_socket_client_set_local_address; - void function(GSocketClient* client, GSocketProtocol protocol) c_g_socket_client_set_protocol; - void function(GSocketClient* client, GProxyResolver* proxyResolver) c_g_socket_client_set_proxy_resolver; - void function(GSocketClient* client, GSocketType type) c_g_socket_client_set_socket_type; - void function(GSocketClient* client, uint timeout) c_g_socket_client_set_timeout; - void function(GSocketClient* client, int tls) c_g_socket_client_set_tls; - void function(GSocketClient* client, GTlsCertificateFlags flags) c_g_socket_client_set_tls_validation_flags; - - // gio.SocketConnectable - - GType function() c_g_socket_connectable_get_type; - GSocketAddressEnumerator* function(GSocketConnectable* connectable) c_g_socket_connectable_enumerate; - GSocketAddressEnumerator* function(GSocketConnectable* connectable) c_g_socket_connectable_proxy_enumerate; - char* function(GSocketConnectable* connectable) c_g_socket_connectable_to_string; - - // gio.SocketConnection - - GType function() c_g_socket_connection_get_type; - GType function(GSocketFamily family, GSocketType type, int protocolId) c_g_socket_connection_factory_lookup_type; - void function(GType gType, GSocketFamily family, GSocketType type, int protocol) c_g_socket_connection_factory_register_type; - int function(GSocketConnection* connection, GSocketAddress* address, GCancellable* cancellable, GError** err) c_g_socket_connection_connect; - void function(GSocketConnection* connection, GSocketAddress* address, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_connection_connect_async; - int function(GSocketConnection* connection, GAsyncResult* result, GError** err) c_g_socket_connection_connect_finish; - GSocketAddress* function(GSocketConnection* connection, GError** err) c_g_socket_connection_get_local_address; - GSocketAddress* function(GSocketConnection* connection, GError** err) c_g_socket_connection_get_remote_address; - GSocket* function(GSocketConnection* connection) c_g_socket_connection_get_socket; - int function(GSocketConnection* connection) c_g_socket_connection_is_connected; - - // gio.SocketControlMessage - - GType function() c_g_socket_control_message_get_type; - GSocketControlMessage* function(int level, int type, size_t size, void* data) c_g_socket_control_message_deserialize; - int function(GSocketControlMessage* message) c_g_socket_control_message_get_level; - int function(GSocketControlMessage* message) c_g_socket_control_message_get_msg_type; - size_t function(GSocketControlMessage* message) c_g_socket_control_message_get_size; - void function(GSocketControlMessage* message, void* data) c_g_socket_control_message_serialize; - - // gio.SocketListener - - GType function() c_g_socket_listener_get_type; - GSocketListener* function() c_g_socket_listener_new; - GSocketConnection* function(GSocketListener* listener, GObject** sourceObject, GCancellable* cancellable, GError** err) c_g_socket_listener_accept; - void function(GSocketListener* listener, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_listener_accept_async; - GSocketConnection* function(GSocketListener* listener, GAsyncResult* result, GObject** sourceObject, GError** err) c_g_socket_listener_accept_finish; - GSocket* function(GSocketListener* listener, GObject** sourceObject, GCancellable* cancellable, GError** err) c_g_socket_listener_accept_socket; - void function(GSocketListener* listener, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_socket_listener_accept_socket_async; - GSocket* function(GSocketListener* listener, GAsyncResult* result, GObject** sourceObject, GError** err) c_g_socket_listener_accept_socket_finish; - int function(GSocketListener* listener, GSocketAddress* address, GSocketType type, GSocketProtocol protocol, GObject* sourceObject, GSocketAddress** effectiveAddress, GError** err) c_g_socket_listener_add_address; - ushort function(GSocketListener* listener, GObject* sourceObject, GError** err) c_g_socket_listener_add_any_inet_port; - int function(GSocketListener* listener, ushort port, GObject* sourceObject, GError** err) c_g_socket_listener_add_inet_port; - int function(GSocketListener* listener, GSocket* socket, GObject* sourceObject, GError** err) c_g_socket_listener_add_socket; - void function(GSocketListener* listener) c_g_socket_listener_close; - void function(GSocketListener* listener, int listenBacklog) c_g_socket_listener_set_backlog; - - // gio.SocketService - - GType function() c_g_socket_service_get_type; - GSocketService* function() c_g_socket_service_new; - int function(GSocketService* service) c_g_socket_service_is_active; - void function(GSocketService* service) c_g_socket_service_start; - void function(GSocketService* service) c_g_socket_service_stop; - - // gio.SrvTarget - - GType function() c_g_srv_target_get_type; - GSrvTarget* function(const(char)* hostname, ushort port, ushort priority, ushort weight) c_g_srv_target_new; - GSrvTarget* function(GSrvTarget* target) c_g_srv_target_copy; - void function(GSrvTarget* target) c_g_srv_target_free; - const(char)* function(GSrvTarget* target) c_g_srv_target_get_hostname; - ushort function(GSrvTarget* target) c_g_srv_target_get_port; - ushort function(GSrvTarget* target) c_g_srv_target_get_priority; - ushort function(GSrvTarget* target) c_g_srv_target_get_weight; - GList* function(GList* targets) c_g_srv_target_list_sort; - - // gio.StaticResource - - void function(GStaticResource* staticResource) c_g_static_resource_fini; - GResource* function(GStaticResource* staticResource) c_g_static_resource_get_resource; - void function(GStaticResource* staticResource) c_g_static_resource_init; - - // gio.Subprocess - - GType function() c_g_subprocess_get_type; - GSubprocess* function(GSubprocessFlags flags, GError** error, const(char)* argv0, ... ) c_g_subprocess_new; - GSubprocess* function(char** argv, GSubprocessFlags flags, GError** err) c_g_subprocess_newv; - int function(GSubprocess* subprocess, GBytes* stdinBuf, GCancellable* cancellable, GBytes** stdoutBuf, GBytes** stderrBuf, GError** err) c_g_subprocess_communicate; - void function(GSubprocess* subprocess, GBytes* stdinBuf, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_subprocess_communicate_async; - int function(GSubprocess* subprocess, GAsyncResult* result, GBytes** stdoutBuf, GBytes** stderrBuf, GError** err) c_g_subprocess_communicate_finish; - int function(GSubprocess* subprocess, const(char)* stdinBuf, GCancellable* cancellable, char** stdoutBuf, char** stderrBuf, GError** err) c_g_subprocess_communicate_utf8; - void function(GSubprocess* subprocess, const(char)* stdinBuf, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_subprocess_communicate_utf8_async; - int function(GSubprocess* subprocess, GAsyncResult* result, char** stdoutBuf, char** stderrBuf, GError** err) c_g_subprocess_communicate_utf8_finish; - void function(GSubprocess* subprocess) c_g_subprocess_force_exit; - int function(GSubprocess* subprocess) c_g_subprocess_get_exit_status; - const(char)* function(GSubprocess* subprocess) c_g_subprocess_get_identifier; - int function(GSubprocess* subprocess) c_g_subprocess_get_if_exited; - int function(GSubprocess* subprocess) c_g_subprocess_get_if_signaled; - int function(GSubprocess* subprocess) c_g_subprocess_get_status; - GInputStream* function(GSubprocess* subprocess) c_g_subprocess_get_stderr_pipe; - GOutputStream* function(GSubprocess* subprocess) c_g_subprocess_get_stdin_pipe; - GInputStream* function(GSubprocess* subprocess) c_g_subprocess_get_stdout_pipe; - int function(GSubprocess* subprocess) c_g_subprocess_get_successful; - int function(GSubprocess* subprocess) c_g_subprocess_get_term_sig; - void function(GSubprocess* subprocess, int signalNum) c_g_subprocess_send_signal; - int function(GSubprocess* subprocess, GCancellable* cancellable, GError** err) c_g_subprocess_wait; - void function(GSubprocess* subprocess, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_subprocess_wait_async; - int function(GSubprocess* subprocess, GCancellable* cancellable, GError** err) c_g_subprocess_wait_check; - void function(GSubprocess* subprocess, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_subprocess_wait_check_async; - int function(GSubprocess* subprocess, GAsyncResult* result, GError** err) c_g_subprocess_wait_check_finish; - int function(GSubprocess* subprocess, GAsyncResult* result, GError** err) c_g_subprocess_wait_finish; - - // gio.SubprocessLauncher - - GType function() c_g_subprocess_launcher_get_type; - GSubprocessLauncher* function(GSubprocessFlags flags) c_g_subprocess_launcher_new; - void function(GSubprocessLauncher* self) c_g_subprocess_launcher_close; - char* function(GSubprocessLauncher* self, char* variable) c_g_subprocess_launcher_getenv; - void function(GSubprocessLauncher* self, GSpawnChildSetupFunc childSetup, void* userData, GDestroyNotify destroyNotify) c_g_subprocess_launcher_set_child_setup; - void function(GSubprocessLauncher* self, char* cwd) c_g_subprocess_launcher_set_cwd; - void function(GSubprocessLauncher* self, char** env) c_g_subprocess_launcher_set_environ; - void function(GSubprocessLauncher* self, GSubprocessFlags flags) c_g_subprocess_launcher_set_flags; - void function(GSubprocessLauncher* self, char* path) c_g_subprocess_launcher_set_stderr_file_path; - void function(GSubprocessLauncher* self, const(char)* path) c_g_subprocess_launcher_set_stdin_file_path; - void function(GSubprocessLauncher* self, char* path) c_g_subprocess_launcher_set_stdout_file_path; - void function(GSubprocessLauncher* self, char* variable, char* value, int overwrite) c_g_subprocess_launcher_setenv; - GSubprocess* function(GSubprocessLauncher* self, GError** error, const(char)* argv0, ... ) c_g_subprocess_launcher_spawn; - GSubprocess* function(GSubprocessLauncher* self, char** argv, GError** err) c_g_subprocess_launcher_spawnv; - void function(GSubprocessLauncher* self, int sourceFd, int targetFd) c_g_subprocess_launcher_take_fd; - void function(GSubprocessLauncher* self, int fd) c_g_subprocess_launcher_take_stderr_fd; - void function(GSubprocessLauncher* self, int fd) c_g_subprocess_launcher_take_stdin_fd; - void function(GSubprocessLauncher* self, int fd) c_g_subprocess_launcher_take_stdout_fd; - void function(GSubprocessLauncher* self, char* variable) c_g_subprocess_launcher_unsetenv; - - // gio.Task - - GType function() c_g_task_get_type; - GTask* function(void* sourceObject, GCancellable* cancellable, GAsyncReadyCallback callback, void* callbackData) c_g_task_new; - int function(void* result, void* sourceObject) c_g_task_is_valid; - void function(void* sourceObject, GAsyncReadyCallback callback, void* callbackData, void* sourceTag, GError* error) c_g_task_report_error; - void function(void* sourceObject, GAsyncReadyCallback callback, void* callbackData, void* sourceTag, GQuark domain, int code, const(char)* format, ... ) c_g_task_report_new_error; - void function(GTask* task, GSource* source, GSourceFunc callback) c_g_task_attach_source; - GCancellable* function(GTask* task) c_g_task_get_cancellable; - int function(GTask* task) c_g_task_get_check_cancellable; - int function(GTask* task) c_g_task_get_completed; - GMainContext* function(GTask* task) c_g_task_get_context; - const(char)* function(GTask* task) c_g_task_get_name; - int function(GTask* task) c_g_task_get_priority; - int function(GTask* task) c_g_task_get_return_on_cancel; - void* function(GTask* task) c_g_task_get_source_object; - void* function(GTask* task) c_g_task_get_source_tag; - void* function(GTask* task) c_g_task_get_task_data; - int function(GTask* task) c_g_task_had_error; - int function(GTask* task, GError** err) c_g_task_propagate_boolean; - ptrdiff_t function(GTask* task, GError** err) c_g_task_propagate_int; - void* function(GTask* task, GError** err) c_g_task_propagate_pointer; - int function(GTask* task, GValue* value, GError** err) c_g_task_propagate_value; - void function(GTask* task, int result) c_g_task_return_boolean; - void function(GTask* task, GError* error) c_g_task_return_error; - int function(GTask* task) c_g_task_return_error_if_cancelled; - void function(GTask* task, ptrdiff_t result) c_g_task_return_int; - void function(GTask* task, GQuark domain, int code, const(char)* format, ... ) c_g_task_return_new_error; - void function(GTask* task, void* result, GDestroyNotify resultDestroy) c_g_task_return_pointer; - void function(GTask* task, GValue* result) c_g_task_return_value; - void function(GTask* task, GTaskThreadFunc taskFunc) c_g_task_run_in_thread; - void function(GTask* task, GTaskThreadFunc taskFunc) c_g_task_run_in_thread_sync; - void function(GTask* task, int checkCancellable) c_g_task_set_check_cancellable; - void function(GTask* task, const(char)* name) c_g_task_set_name; - void function(GTask* task, int priority) c_g_task_set_priority; - int function(GTask* task, int returnOnCancel) c_g_task_set_return_on_cancel; - void function(GTask* task, void* sourceTag) c_g_task_set_source_tag; - void function(GTask* task, void* taskData, GDestroyNotify taskDataDestroy) c_g_task_set_task_data; - - // gio.TcpConnection - - GType function() c_g_tcp_connection_get_type; - int function(GTcpConnection* connection) c_g_tcp_connection_get_graceful_disconnect; - void function(GTcpConnection* connection, int gracefulDisconnect) c_g_tcp_connection_set_graceful_disconnect; - - // gio.TcpWrapperConnection - - GType function() c_g_tcp_wrapper_connection_get_type; - GSocketConnection* function(GIOStream* baseIoStream, GSocket* socket) c_g_tcp_wrapper_connection_new; - GIOStream* function(GTcpWrapperConnection* conn) c_g_tcp_wrapper_connection_get_base_io_stream; - - // gio.TestDBus - - GType function() c_g_test_dbus_get_type; - GTestDBus* function(GTestDBusFlags flags) c_g_test_dbus_new; - void function() c_g_test_dbus_unset; - void function(GTestDBus* self, const(char)* path) c_g_test_dbus_add_service_dir; - void function(GTestDBus* self) c_g_test_dbus_down; - const(char)* function(GTestDBus* self) c_g_test_dbus_get_bus_address; - GTestDBusFlags function(GTestDBus* self) c_g_test_dbus_get_flags; - void function(GTestDBus* self) c_g_test_dbus_stop; - void function(GTestDBus* self) c_g_test_dbus_up; - - // gio.ThemedIcon - - GType function() c_g_themed_icon_get_type; - GIcon* function(const(char)* iconname) c_g_themed_icon_new; - GIcon* function(char** iconnames, int len) c_g_themed_icon_new_from_names; - GIcon* function(const(char)* iconname) c_g_themed_icon_new_with_default_fallbacks; - void function(GThemedIcon* icon, const(char)* iconname) c_g_themed_icon_append_name; - char** function(GThemedIcon* icon) c_g_themed_icon_get_names; - void function(GThemedIcon* icon, const(char)* iconname) c_g_themed_icon_prepend_name; - - // gio.ThreadedSocketService - - GType function() c_g_threaded_socket_service_get_type; - GSocketService* function(int maxThreads) c_g_threaded_socket_service_new; - - // gio.TlsBackend - - GType function() c_g_tls_backend_get_type; - GTlsBackend* function() c_g_tls_backend_get_default; - GType function(GTlsBackend* backend) c_g_tls_backend_get_certificate_type; - GType function(GTlsBackend* backend) c_g_tls_backend_get_client_connection_type; - GTlsDatabase* function(GTlsBackend* backend) c_g_tls_backend_get_default_database; - GType function(GTlsBackend* backend) c_g_tls_backend_get_dtls_client_connection_type; - GType function(GTlsBackend* backend) c_g_tls_backend_get_dtls_server_connection_type; - GType function(GTlsBackend* backend) c_g_tls_backend_get_file_database_type; - GType function(GTlsBackend* backend) c_g_tls_backend_get_server_connection_type; - void function(GTlsBackend* backend, GTlsDatabase* database) c_g_tls_backend_set_default_database; - int function(GTlsBackend* backend) c_g_tls_backend_supports_dtls; - int function(GTlsBackend* backend) c_g_tls_backend_supports_tls; - - // gio.TlsCertificate - - GType function() c_g_tls_certificate_get_type; - GTlsCertificate* function(char* file, GError** err) c_g_tls_certificate_new_from_file; - GTlsCertificate* function(char* certFile, char* keyFile, GError** err) c_g_tls_certificate_new_from_files; - GTlsCertificate* function(const(char)* data, ptrdiff_t length, GError** err) c_g_tls_certificate_new_from_pem; - GTlsCertificate* function(const(char)* pkcs11Uri, const(char)* privateKeyPkcs11Uri, GError** err) c_g_tls_certificate_new_from_pkcs11_uris; - GList* function(char* file, GError** err) c_g_tls_certificate_list_new_from_file; - GTlsCertificate* function(GTlsCertificate* cert) c_g_tls_certificate_get_issuer; - int function(GTlsCertificate* certOne, GTlsCertificate* certTwo) c_g_tls_certificate_is_same; - GTlsCertificateFlags function(GTlsCertificate* cert, GSocketConnectable* identity, GTlsCertificate* trustedCa) c_g_tls_certificate_verify; - - // gio.TlsClientConnection - - GType function() c_g_tls_client_connection_get_type; - GIOStream* function(GIOStream* baseIoStream, GSocketConnectable* serverIdentity, GError** err) c_g_tls_client_connection_new; - void function(GTlsClientConnection* conn, GTlsClientConnection* source) c_g_tls_client_connection_copy_session_state; - GList* function(GTlsClientConnection* conn) c_g_tls_client_connection_get_accepted_cas; - GSocketConnectable* function(GTlsClientConnection* conn) c_g_tls_client_connection_get_server_identity; - int function(GTlsClientConnection* conn) c_g_tls_client_connection_get_use_ssl3; - GTlsCertificateFlags function(GTlsClientConnection* conn) c_g_tls_client_connection_get_validation_flags; - void function(GTlsClientConnection* conn, GSocketConnectable* identity) c_g_tls_client_connection_set_server_identity; - void function(GTlsClientConnection* conn, int useSsl3) c_g_tls_client_connection_set_use_ssl3; - void function(GTlsClientConnection* conn, GTlsCertificateFlags flags) c_g_tls_client_connection_set_validation_flags; - - // gio.TlsConnection - - GType function() c_g_tls_connection_get_type; - int function(GTlsConnection* conn, GTlsCertificate* peerCert, GTlsCertificateFlags errors) c_g_tls_connection_emit_accept_certificate; - GTlsCertificate* function(GTlsConnection* conn) c_g_tls_connection_get_certificate; - int function(GTlsConnection* conn, GTlsChannelBindingType type, GByteArray* data, GError** err) c_g_tls_connection_get_channel_binding_data; - GTlsDatabase* function(GTlsConnection* conn) c_g_tls_connection_get_database; - GTlsInteraction* function(GTlsConnection* conn) c_g_tls_connection_get_interaction; - const(char)* function(GTlsConnection* conn) c_g_tls_connection_get_negotiated_protocol; - GTlsCertificate* function(GTlsConnection* conn) c_g_tls_connection_get_peer_certificate; - GTlsCertificateFlags function(GTlsConnection* conn) c_g_tls_connection_get_peer_certificate_errors; - GTlsRehandshakeMode function(GTlsConnection* conn) c_g_tls_connection_get_rehandshake_mode; - int function(GTlsConnection* conn) c_g_tls_connection_get_require_close_notify; - int function(GTlsConnection* conn) c_g_tls_connection_get_use_system_certdb; - int function(GTlsConnection* conn, GCancellable* cancellable, GError** err) c_g_tls_connection_handshake; - void function(GTlsConnection* conn, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_tls_connection_handshake_async; - int function(GTlsConnection* conn, GAsyncResult* result, GError** err) c_g_tls_connection_handshake_finish; - void function(GTlsConnection* conn, char** protocols) c_g_tls_connection_set_advertised_protocols; - void function(GTlsConnection* conn, GTlsCertificate* certificate) c_g_tls_connection_set_certificate; - void function(GTlsConnection* conn, GTlsDatabase* database) c_g_tls_connection_set_database; - void function(GTlsConnection* conn, GTlsInteraction* interaction) c_g_tls_connection_set_interaction; - void function(GTlsConnection* conn, GTlsRehandshakeMode mode) c_g_tls_connection_set_rehandshake_mode; - void function(GTlsConnection* conn, int requireCloseNotify) c_g_tls_connection_set_require_close_notify; - void function(GTlsConnection* conn, int useSystemCertdb) c_g_tls_connection_set_use_system_certdb; - - // gio.TlsDatabase - - GType function() c_g_tls_database_get_type; - char* function(GTlsDatabase* self, GTlsCertificate* certificate) c_g_tls_database_create_certificate_handle; - GTlsCertificate* function(GTlsDatabase* self, const(char)* handle, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GError** err) c_g_tls_database_lookup_certificate_for_handle; - void function(GTlsDatabase* self, const(char)* handle, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_tls_database_lookup_certificate_for_handle_async; - GTlsCertificate* function(GTlsDatabase* self, GAsyncResult* result, GError** err) c_g_tls_database_lookup_certificate_for_handle_finish; - GTlsCertificate* function(GTlsDatabase* self, GTlsCertificate* certificate, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GError** err) c_g_tls_database_lookup_certificate_issuer; - void function(GTlsDatabase* self, GTlsCertificate* certificate, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_tls_database_lookup_certificate_issuer_async; - GTlsCertificate* function(GTlsDatabase* self, GAsyncResult* result, GError** err) c_g_tls_database_lookup_certificate_issuer_finish; - GList* function(GTlsDatabase* self, GByteArray* issuerRawDn, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GError** err) c_g_tls_database_lookup_certificates_issued_by; - void function(GTlsDatabase* self, GByteArray* issuerRawDn, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_tls_database_lookup_certificates_issued_by_async; - GList* function(GTlsDatabase* self, GAsyncResult* result, GError** err) c_g_tls_database_lookup_certificates_issued_by_finish; - GTlsCertificateFlags function(GTlsDatabase* self, GTlsCertificate* chain, const(char)* purpose, GSocketConnectable* identity, GTlsInteraction* interaction, GTlsDatabaseVerifyFlags flags, GCancellable* cancellable, GError** err) c_g_tls_database_verify_chain; - void function(GTlsDatabase* self, GTlsCertificate* chain, const(char)* purpose, GSocketConnectable* identity, GTlsInteraction* interaction, GTlsDatabaseVerifyFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_tls_database_verify_chain_async; - GTlsCertificateFlags function(GTlsDatabase* self, GAsyncResult* result, GError** err) c_g_tls_database_verify_chain_finish; - - // gio.TlsFileDatabase - - GType function() c_g_tls_file_database_get_type; - GTlsDatabase* function(char* anchors, GError** err) c_g_tls_file_database_new; - - // gio.TlsInteraction - - GType function() c_g_tls_interaction_get_type; - GTlsInteractionResult function(GTlsInteraction* interaction, GTlsPassword* password, GCancellable* cancellable, GError** err) c_g_tls_interaction_ask_password; - void function(GTlsInteraction* interaction, GTlsPassword* password, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_tls_interaction_ask_password_async; - GTlsInteractionResult function(GTlsInteraction* interaction, GAsyncResult* result, GError** err) c_g_tls_interaction_ask_password_finish; - GTlsInteractionResult function(GTlsInteraction* interaction, GTlsPassword* password, GCancellable* cancellable, GError** err) c_g_tls_interaction_invoke_ask_password; - GTlsInteractionResult function(GTlsInteraction* interaction, GTlsConnection* connection, GTlsCertificateRequestFlags flags, GCancellable* cancellable, GError** err) c_g_tls_interaction_invoke_request_certificate; - GTlsInteractionResult function(GTlsInteraction* interaction, GTlsConnection* connection, GTlsCertificateRequestFlags flags, GCancellable* cancellable, GError** err) c_g_tls_interaction_request_certificate; - void function(GTlsInteraction* interaction, GTlsConnection* connection, GTlsCertificateRequestFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_tls_interaction_request_certificate_async; - GTlsInteractionResult function(GTlsInteraction* interaction, GAsyncResult* result, GError** err) c_g_tls_interaction_request_certificate_finish; - - // gio.TlsPassword - - GType function() c_g_tls_password_get_type; - GTlsPassword* function(GTlsPasswordFlags flags, const(char)* description) c_g_tls_password_new; - const(char)* function(GTlsPassword* password) c_g_tls_password_get_description; - GTlsPasswordFlags function(GTlsPassword* password) c_g_tls_password_get_flags; - char* function(GTlsPassword* password, size_t* length) c_g_tls_password_get_value; - const(char)* function(GTlsPassword* password) c_g_tls_password_get_warning; - void function(GTlsPassword* password, const(char)* description) c_g_tls_password_set_description; - void function(GTlsPassword* password, GTlsPasswordFlags flags) c_g_tls_password_set_flags; - void function(GTlsPassword* password, char* value, ptrdiff_t length) c_g_tls_password_set_value; - void function(GTlsPassword* password, char* value, ptrdiff_t length, GDestroyNotify destroy) c_g_tls_password_set_value_full; - void function(GTlsPassword* password, const(char)* warning) c_g_tls_password_set_warning; - - // gio.TlsServerConnection - - GType function() c_g_tls_server_connection_get_type; - GIOStream* function(GIOStream* baseIoStream, GTlsCertificate* certificate, GError** err) c_g_tls_server_connection_new; - - // gio.UnixConnection - - GType function() c_g_unix_connection_get_type; - GCredentials* function(GUnixConnection* connection, GCancellable* cancellable, GError** err) c_g_unix_connection_receive_credentials; - void function(GUnixConnection* connection, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_unix_connection_receive_credentials_async; - GCredentials* function(GUnixConnection* connection, GAsyncResult* result, GError** err) c_g_unix_connection_receive_credentials_finish; - int function(GUnixConnection* connection, GCancellable* cancellable, GError** err) c_g_unix_connection_receive_fd; - int function(GUnixConnection* connection, GCancellable* cancellable, GError** err) c_g_unix_connection_send_credentials; - void function(GUnixConnection* connection, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_unix_connection_send_credentials_async; - int function(GUnixConnection* connection, GAsyncResult* result, GError** err) c_g_unix_connection_send_credentials_finish; - int function(GUnixConnection* connection, int fd, GCancellable* cancellable, GError** err) c_g_unix_connection_send_fd; - - // gio.UnixCredentialsMessage - - GType function() c_g_unix_credentials_message_get_type; - GSocketControlMessage* function() c_g_unix_credentials_message_new; - GSocketControlMessage* function(GCredentials* credentials) c_g_unix_credentials_message_new_with_credentials; - int function() c_g_unix_credentials_message_is_supported; - GCredentials* function(GUnixCredentialsMessage* message) c_g_unix_credentials_message_get_credentials; - - // gio.UnixFDList - - GType function() c_g_unix_fd_list_get_type; - GUnixFDList* function() c_g_unix_fd_list_new; - GUnixFDList* function(int* fds, int nFds) c_g_unix_fd_list_new_from_array; - int function(GUnixFDList* list, int fd, GError** err) c_g_unix_fd_list_append; - int function(GUnixFDList* list, int index, GError** err) c_g_unix_fd_list_get; - int function(GUnixFDList* list) c_g_unix_fd_list_get_length; - int* function(GUnixFDList* list, int* length) c_g_unix_fd_list_peek_fds; - int* function(GUnixFDList* list, int* length) c_g_unix_fd_list_steal_fds; - - // gio.UnixFDMessage - - GType function() c_g_unix_fd_message_get_type; - GSocketControlMessage* function() c_g_unix_fd_message_new; - GSocketControlMessage* function(GUnixFDList* fdList) c_g_unix_fd_message_new_with_fd_list; - int function(GUnixFDMessage* message, int fd, GError** err) c_g_unix_fd_message_append_fd; - GUnixFDList* function(GUnixFDMessage* message) c_g_unix_fd_message_get_fd_list; - int* function(GUnixFDMessage* message, int* length) c_g_unix_fd_message_steal_fds; - - // gio.UnixInputStream - - GType function() c_g_unix_input_stream_get_type; - GInputStream* function(int fd, int closeFd) c_g_unix_input_stream_new; - int function(GUnixInputStream* stream) c_g_unix_input_stream_get_close_fd; - int function(GUnixInputStream* stream) c_g_unix_input_stream_get_fd; - void function(GUnixInputStream* stream, int closeFd) c_g_unix_input_stream_set_close_fd; - - // gio.UnixMountEntry - - GType function() c_g_unix_mount_entry_get_type; - int function(char* mountPath) c_g_unix_is_mount_path_system_internal; - GUnixMountEntry* function(char* mountPath, ulong* timeRead) c_g_unix_mount_at; - int function(GUnixMountEntry* mount1, GUnixMountEntry* mount2) c_g_unix_mount_compare; - void function(GUnixMountEntry* mountEntry) c_g_unix_mount_free; - char* function(GUnixMountEntry* mountEntry) c_g_unix_mount_get_device_path; - const(char)* function(GUnixMountEntry* mountEntry) c_g_unix_mount_get_fs_type; - char* function(GUnixMountEntry* mountEntry) c_g_unix_mount_get_mount_path; - int function(GUnixMountEntry* mountEntry) c_g_unix_mount_guess_can_eject; - GIcon* function(GUnixMountEntry* mountEntry) c_g_unix_mount_guess_icon; - char* function(GUnixMountEntry* mountEntry) c_g_unix_mount_guess_name; - int function(GUnixMountEntry* mountEntry) c_g_unix_mount_guess_should_display; - GIcon* function(GUnixMountEntry* mountEntry) c_g_unix_mount_guess_symbolic_icon; - int function(GUnixMountEntry* mountEntry) c_g_unix_mount_is_readonly; - int function(GUnixMountEntry* mountEntry) c_g_unix_mount_is_system_internal; - int function(ulong time) c_g_unix_mount_points_changed_since; - GList* function(ulong* timeRead) c_g_unix_mount_points_get; - int function(ulong time) c_g_unix_mounts_changed_since; - GList* function(ulong* timeRead) c_g_unix_mounts_get; - GUnixMountEntry* function(GUnixMountEntry* mountEntry) c_g_unix_mount_copy; - GUnixMountEntry* function(char* filePath, ulong* timeRead) c_g_unix_mount_for; - const(char)* function(GUnixMountEntry* mountEntry) c_g_unix_mount_get_options; - const(char)* function(GUnixMountEntry* mountEntry) c_g_unix_mount_get_root_path; - - // gio.UnixMountMonitor - - GType function() c_g_unix_mount_monitor_get_type; - GUnixMountMonitor* function() c_g_unix_mount_monitor_new; - GUnixMountMonitor* function() c_g_unix_mount_monitor_get; - void function(GUnixMountMonitor* mountMonitor, int limitMsec) c_g_unix_mount_monitor_set_rate_limit; - - // gio.UnixMountPoint - - GType function() c_g_unix_mount_point_get_type; - int function(GUnixMountPoint* mount1, GUnixMountPoint* mount2) c_g_unix_mount_point_compare; - GUnixMountPoint* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_copy; - void function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_free; - char* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_get_device_path; - const(char)* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_get_fs_type; - char* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_get_mount_path; - const(char)* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_get_options; - int function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_guess_can_eject; - GIcon* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_guess_icon; - char* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_guess_name; - GIcon* function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_guess_symbolic_icon; - int function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_is_loopback; - int function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_is_readonly; - int function(GUnixMountPoint* mountPoint) c_g_unix_mount_point_is_user_mountable; - GUnixMountPoint* function(char* mountPath, ulong* timeRead) c_g_unix_mount_point_at; - - // gio.UnixOutputStream - - GType function() c_g_unix_output_stream_get_type; - GOutputStream* function(int fd, int closeFd) c_g_unix_output_stream_new; - int function(GUnixOutputStream* stream) c_g_unix_output_stream_get_close_fd; - int function(GUnixOutputStream* stream) c_g_unix_output_stream_get_fd; - void function(GUnixOutputStream* stream, int closeFd) c_g_unix_output_stream_set_close_fd; - - // gio.UnixSocketAddress - - GType function() c_g_unix_socket_address_get_type; - GSocketAddress* function(const(char)* path) c_g_unix_socket_address_new; - GSocketAddress* function(char* path, int pathLen) c_g_unix_socket_address_new_abstract; - GSocketAddress* function(char* path, int pathLen, GUnixSocketAddressType type) c_g_unix_socket_address_new_with_type; - int function() c_g_unix_socket_address_abstract_names_supported; - GUnixSocketAddressType function(GUnixSocketAddress* address) c_g_unix_socket_address_get_address_type; - int function(GUnixSocketAddress* address) c_g_unix_socket_address_get_is_abstract; - const(char)* function(GUnixSocketAddress* address) c_g_unix_socket_address_get_path; - size_t function(GUnixSocketAddress* address) c_g_unix_socket_address_get_path_len; - - // gio.Vfs - - GType function() c_g_vfs_get_type; - GVfs* function() c_g_vfs_get_default; - GVfs* function() c_g_vfs_get_local; - GFile* function(GVfs* vfs, const(char)* path) c_g_vfs_get_file_for_path; - GFile* function(GVfs* vfs, const(char)* uri) c_g_vfs_get_file_for_uri; - char** function(GVfs* vfs) c_g_vfs_get_supported_uri_schemes; - int function(GVfs* vfs) c_g_vfs_is_active; - GFile* function(GVfs* vfs, const(char)* parseName) c_g_vfs_parse_name; - int function(GVfs* vfs, const(char)* scheme, GVfsFileLookupFunc uriFunc, void* uriData, GDestroyNotify uriDestroy, GVfsFileLookupFunc parseNameFunc, void* parseNameData, GDestroyNotify parseNameDestroy) c_g_vfs_register_uri_scheme; - int function(GVfs* vfs, const(char)* scheme) c_g_vfs_unregister_uri_scheme; - - // gio.Volume - - GType function() c_g_volume_get_type; - int function(GVolume* volume) c_g_volume_can_eject; - int function(GVolume* volume) c_g_volume_can_mount; - void function(GVolume* volume, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_volume_eject; - int function(GVolume* volume, GAsyncResult* result, GError** err) c_g_volume_eject_finish; - void function(GVolume* volume, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_volume_eject_with_operation; - int function(GVolume* volume, GAsyncResult* result, GError** err) c_g_volume_eject_with_operation_finish; - char** function(GVolume* volume) c_g_volume_enumerate_identifiers; - GFile* function(GVolume* volume) c_g_volume_get_activation_root; - GDrive* function(GVolume* volume) c_g_volume_get_drive; - GIcon* function(GVolume* volume) c_g_volume_get_icon; - char* function(GVolume* volume, const(char)* kind) c_g_volume_get_identifier; - GMount* function(GVolume* volume) c_g_volume_get_mount; - char* function(GVolume* volume) c_g_volume_get_name; - const(char)* function(GVolume* volume) c_g_volume_get_sort_key; - GIcon* function(GVolume* volume) c_g_volume_get_symbolic_icon; - char* function(GVolume* volume) c_g_volume_get_uuid; - void function(GVolume* volume, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_volume_mount; - int function(GVolume* volume, GAsyncResult* result, GError** err) c_g_volume_mount_finish; - int function(GVolume* volume) c_g_volume_should_automount; - - // gio.VolumeMonitor - - GType function() c_g_volume_monitor_get_type; - GVolume* function(GMount* mount) c_g_volume_monitor_adopt_orphan_mount; - GVolumeMonitor* function() c_g_volume_monitor_get; - GList* function(GVolumeMonitor* volumeMonitor) c_g_volume_monitor_get_connected_drives; - GMount* function(GVolumeMonitor* volumeMonitor, const(char)* uuid) c_g_volume_monitor_get_mount_for_uuid; - GList* function(GVolumeMonitor* volumeMonitor) c_g_volume_monitor_get_mounts; - GVolume* function(GVolumeMonitor* volumeMonitor, const(char)* uuid) c_g_volume_monitor_get_volume_for_uuid; - GList* function(GVolumeMonitor* volumeMonitor) c_g_volume_monitor_get_volumes; - - // gio.ZlibCompressor - - GType function() c_g_zlib_compressor_get_type; - GZlibCompressor* function(GZlibCompressorFormat format, int level) c_g_zlib_compressor_new; - GFileInfo* function(GZlibCompressor* compressor) c_g_zlib_compressor_get_file_info; - void function(GZlibCompressor* compressor, GFileInfo* fileInfo) c_g_zlib_compressor_set_file_info; - - // gio.ZlibDecompressor - - GType function() c_g_zlib_decompressor_get_type; - GZlibDecompressor* function(GZlibCompressorFormat format) c_g_zlib_decompressor_new; - GFileInfo* function(GZlibDecompressor* decompressor) c_g_zlib_decompressor_get_file_info; - - // gio.PollableUtils - - GSource* function(GObject* pollableStream) c_g_pollable_source_new; - GSource* function(void* pollableStream, GSource* childSource, GCancellable* cancellable) c_g_pollable_source_new_full; - ptrdiff_t function(GInputStream* stream, void* buffer, size_t count, int blocking, GCancellable* cancellable, GError** err) c_g_pollable_stream_read; - ptrdiff_t function(GOutputStream* stream, void* buffer, size_t count, int blocking, GCancellable* cancellable, GError** err) c_g_pollable_stream_write; - int function(GOutputStream* stream, void* buffer, size_t count, int blocking, size_t* bytesWritten, GCancellable* cancellable, GError** err) c_g_pollable_stream_write_all; - - // gio.DBusNames - - uint function(GBusType busType, const(char)* name, GBusNameOwnerFlags flags, GBusAcquiredCallback busAcquiredHandler, GBusNameAcquiredCallback nameAcquiredHandler, GBusNameLostCallback nameLostHandler, void* userData, GDestroyNotify userDataFreeFunc) c_g_bus_own_name; - uint function(GDBusConnection* connection, const(char)* name, GBusNameOwnerFlags flags, GBusNameAcquiredCallback nameAcquiredHandler, GBusNameLostCallback nameLostHandler, void* userData, GDestroyNotify userDataFreeFunc) c_g_bus_own_name_on_connection; - uint function(GDBusConnection* connection, const(char)* name, GBusNameOwnerFlags flags, GClosure* nameAcquiredClosure, GClosure* nameLostClosure) c_g_bus_own_name_on_connection_with_closures; - uint function(GBusType busType, const(char)* name, GBusNameOwnerFlags flags, GClosure* busAcquiredClosure, GClosure* nameAcquiredClosure, GClosure* nameLostClosure) c_g_bus_own_name_with_closures; - void function(uint ownerId) c_g_bus_unown_name; - void function(uint watcherId) c_g_bus_unwatch_name; - uint function(GBusType busType, const(char)* name, GBusNameWatcherFlags flags, GBusNameAppearedCallback nameAppearedHandler, GBusNameVanishedCallback nameVanishedHandler, void* userData, GDestroyNotify userDataFreeFunc) c_g_bus_watch_name; - uint function(GDBusConnection* connection, const(char)* name, GBusNameWatcherFlags flags, GBusNameAppearedCallback nameAppearedHandler, GBusNameVanishedCallback nameVanishedHandler, void* userData, GDestroyNotify userDataFreeFunc) c_g_bus_watch_name_on_connection; - uint function(GDBusConnection* connection, const(char)* name, GBusNameWatcherFlags flags, GClosure* nameAppearedClosure, GClosure* nameVanishedClosure) c_g_bus_watch_name_on_connection_with_closures; - uint function(GBusType busType, const(char)* name, GBusNameWatcherFlags flags, GClosure* nameAppearedClosure, GClosure* nameVanishedClosure) c_g_bus_watch_name_with_closures; - - // gio.ContentType - - int function(const(char)* type) c_g_content_type_can_be_executable; - int function(const(char)* type1, const(char)* type2) c_g_content_type_equals; - char* function(const(char)* mimeType) c_g_content_type_from_mime_type; - char* function(const(char)* type) c_g_content_type_get_description; - char* function(const(char)* type) c_g_content_type_get_generic_icon_name; - GIcon* function(const(char)* type) c_g_content_type_get_icon; - char* function(const(char)* type) c_g_content_type_get_mime_type; - GIcon* function(const(char)* type) c_g_content_type_get_symbolic_icon; - char* function(const(char)* filename, char* data, size_t dataSize, int* resultUncertain) c_g_content_type_guess; - char** function(GFile* root) c_g_content_type_guess_for_tree; - int function(const(char)* type, const(char)* supertype) c_g_content_type_is_a; - int function(const(char)* type) c_g_content_type_is_unknown; - GList* function() c_g_content_types_get_registered; - int function(const(char)* type, const(char)* mimeType) c_g_content_type_is_mime_type; - char** function() c_g_content_type_get_mime_dirs; - void function(char** dirs) c_g_content_type_set_mime_dirs; - - // gio.DBusError - - char* function(GError* error) c_g_dbus_error_encode_gerror; - char* function(GError* error) c_g_dbus_error_get_remote_error; - int function(GError* error) c_g_dbus_error_is_remote_error; - GError* function(const(char)* dbusErrorName, const(char)* dbusErrorMessage) c_g_dbus_error_new_for_dbus_error; - GQuark function() c_g_dbus_error_quark; - int function(GQuark errorDomain, int errorCode, const(char)* dbusErrorName) c_g_dbus_error_register_error; - void function(const(char)* errorDomainQuarkName, size_t* quarkVolatile, GDBusErrorEntry* entries, uint numEntries) c_g_dbus_error_register_error_domain; - int function(GError* error) c_g_dbus_error_strip_remote_error; - int function(GQuark errorDomain, int errorCode, const(char)* dbusErrorName) c_g_dbus_error_unregister_error; - - // gio.DBusUtilities - - char* function(const(char)* string_) c_g_dbus_address_escape_value; - char* function(GBusType busType, GCancellable* cancellable, GError** err) c_g_dbus_address_get_for_bus_sync; - void function(const(char)* address, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_g_dbus_address_get_stream; - GIOStream* function(GAsyncResult* res, char** outGuid, GError** err) c_g_dbus_address_get_stream_finish; - GIOStream* function(const(char)* address, char** outGuid, GCancellable* cancellable, GError** err) c_g_dbus_address_get_stream_sync; - char* function() c_g_dbus_generate_guid; - GVariant* function(GValue* gvalue, GVariantType* type) c_g_dbus_gvalue_to_gvariant; - void function(GVariant* value, GValue* outGvalue) c_g_dbus_gvariant_to_gvalue; - int function(const(char)* string_) c_g_dbus_is_address; - int function(const(char)* string_) c_g_dbus_is_guid; - int function(const(char)* string_) c_g_dbus_is_interface_name; - int function(const(char)* string_) c_g_dbus_is_member_name; - int function(const(char)* string_) c_g_dbus_is_name; - int function(const(char)* string_, GError** err) c_g_dbus_is_supported_address; - int function(const(char)* string_) c_g_dbus_is_unique_name; - - // gio.ErrorGIO - - GIOErrorEnum function(int errNo) c_g_io_error_from_errno; - GQuark function() c_g_io_error_quark; -} - - -// gio.Action - -alias c_g_action_get_type g_action_get_type; -alias c_g_action_name_is_valid g_action_name_is_valid; -alias c_g_action_parse_detailed_name g_action_parse_detailed_name; -alias c_g_action_print_detailed_name g_action_print_detailed_name; -alias c_g_action_activate g_action_activate; -alias c_g_action_change_state g_action_change_state; -alias c_g_action_get_enabled g_action_get_enabled; -alias c_g_action_get_name g_action_get_name; -alias c_g_action_get_parameter_type g_action_get_parameter_type; -alias c_g_action_get_state g_action_get_state; -alias c_g_action_get_state_hint g_action_get_state_hint; -alias c_g_action_get_state_type g_action_get_state_type; - -// gio.ActionGroup - -alias c_g_action_group_get_type g_action_group_get_type; -alias c_g_action_group_action_added g_action_group_action_added; -alias c_g_action_group_action_enabled_changed g_action_group_action_enabled_changed; -alias c_g_action_group_action_removed g_action_group_action_removed; -alias c_g_action_group_action_state_changed g_action_group_action_state_changed; -alias c_g_action_group_activate_action g_action_group_activate_action; -alias c_g_action_group_change_action_state g_action_group_change_action_state; -alias c_g_action_group_get_action_enabled g_action_group_get_action_enabled; -alias c_g_action_group_get_action_parameter_type g_action_group_get_action_parameter_type; -alias c_g_action_group_get_action_state g_action_group_get_action_state; -alias c_g_action_group_get_action_state_hint g_action_group_get_action_state_hint; -alias c_g_action_group_get_action_state_type g_action_group_get_action_state_type; -alias c_g_action_group_has_action g_action_group_has_action; -alias c_g_action_group_list_actions g_action_group_list_actions; -alias c_g_action_group_query_action g_action_group_query_action; - -// gio.ActionMap - -alias c_g_action_map_get_type g_action_map_get_type; -alias c_g_action_map_add_action g_action_map_add_action; -alias c_g_action_map_add_action_entries g_action_map_add_action_entries; -alias c_g_action_map_lookup_action g_action_map_lookup_action; -alias c_g_action_map_remove_action g_action_map_remove_action; - -// gio.AppInfo - -alias c_g_app_info_get_type g_app_info_get_type; -alias c_g_app_info_create_from_commandline g_app_info_create_from_commandline; -alias c_g_app_info_get_all g_app_info_get_all; -alias c_g_app_info_get_all_for_type g_app_info_get_all_for_type; -alias c_g_app_info_get_default_for_type g_app_info_get_default_for_type; -alias c_g_app_info_get_default_for_uri_scheme g_app_info_get_default_for_uri_scheme; -alias c_g_app_info_get_fallback_for_type g_app_info_get_fallback_for_type; -alias c_g_app_info_get_recommended_for_type g_app_info_get_recommended_for_type; -alias c_g_app_info_launch_default_for_uri g_app_info_launch_default_for_uri; -alias c_g_app_info_launch_default_for_uri_async g_app_info_launch_default_for_uri_async; -alias c_g_app_info_launch_default_for_uri_finish g_app_info_launch_default_for_uri_finish; -alias c_g_app_info_reset_type_associations g_app_info_reset_type_associations; -alias c_g_app_info_add_supports_type g_app_info_add_supports_type; -alias c_g_app_info_can_delete g_app_info_can_delete; -alias c_g_app_info_can_remove_supports_type g_app_info_can_remove_supports_type; -alias c_g_app_info_delete g_app_info_delete; -alias c_g_app_info_dup g_app_info_dup; -alias c_g_app_info_equal g_app_info_equal; -alias c_g_app_info_get_commandline g_app_info_get_commandline; -alias c_g_app_info_get_description g_app_info_get_description; -alias c_g_app_info_get_display_name g_app_info_get_display_name; -alias c_g_app_info_get_executable g_app_info_get_executable; -alias c_g_app_info_get_icon g_app_info_get_icon; -alias c_g_app_info_get_id g_app_info_get_id; -alias c_g_app_info_get_name g_app_info_get_name; -alias c_g_app_info_get_supported_types g_app_info_get_supported_types; -alias c_g_app_info_launch g_app_info_launch; -alias c_g_app_info_launch_uris g_app_info_launch_uris; -alias c_g_app_info_launch_uris_async g_app_info_launch_uris_async; -alias c_g_app_info_launch_uris_finish g_app_info_launch_uris_finish; -alias c_g_app_info_remove_supports_type g_app_info_remove_supports_type; -alias c_g_app_info_set_as_default_for_extension g_app_info_set_as_default_for_extension; -alias c_g_app_info_set_as_default_for_type g_app_info_set_as_default_for_type; -alias c_g_app_info_set_as_last_used_for_type g_app_info_set_as_last_used_for_type; -alias c_g_app_info_should_show g_app_info_should_show; -alias c_g_app_info_supports_files g_app_info_supports_files; -alias c_g_app_info_supports_uris g_app_info_supports_uris; - -// gio.AppInfoMonitor - -alias c_g_app_info_monitor_get_type g_app_info_monitor_get_type; -alias c_g_app_info_monitor_get g_app_info_monitor_get; - -// gio.AppLaunchContext - -alias c_g_app_launch_context_get_type g_app_launch_context_get_type; -alias c_g_app_launch_context_new g_app_launch_context_new; -alias c_g_app_launch_context_get_display g_app_launch_context_get_display; -alias c_g_app_launch_context_get_environment g_app_launch_context_get_environment; -alias c_g_app_launch_context_get_startup_notify_id g_app_launch_context_get_startup_notify_id; -alias c_g_app_launch_context_launch_failed g_app_launch_context_launch_failed; -alias c_g_app_launch_context_setenv g_app_launch_context_setenv; -alias c_g_app_launch_context_unsetenv g_app_launch_context_unsetenv; - -// gio.Application - -alias c_g_application_get_type g_application_get_type; -alias c_g_application_new g_application_new; -alias c_g_application_get_default g_application_get_default; -alias c_g_application_id_is_valid g_application_id_is_valid; -alias c_g_application_activate g_application_activate; -alias c_g_application_add_main_option g_application_add_main_option; -alias c_g_application_add_main_option_entries g_application_add_main_option_entries; -alias c_g_application_add_option_group g_application_add_option_group; -alias c_g_application_bind_busy_property g_application_bind_busy_property; -alias c_g_application_get_application_id g_application_get_application_id; -alias c_g_application_get_dbus_connection g_application_get_dbus_connection; -alias c_g_application_get_dbus_object_path g_application_get_dbus_object_path; -alias c_g_application_get_flags g_application_get_flags; -alias c_g_application_get_inactivity_timeout g_application_get_inactivity_timeout; -alias c_g_application_get_is_busy g_application_get_is_busy; -alias c_g_application_get_is_registered g_application_get_is_registered; -alias c_g_application_get_is_remote g_application_get_is_remote; -alias c_g_application_get_resource_base_path g_application_get_resource_base_path; -alias c_g_application_hold g_application_hold; -alias c_g_application_mark_busy g_application_mark_busy; -alias c_g_application_open g_application_open; -alias c_g_application_quit g_application_quit; -alias c_g_application_register g_application_register; -alias c_g_application_release g_application_release; -alias c_g_application_run g_application_run; -alias c_g_application_send_notification g_application_send_notification; -alias c_g_application_set_action_group g_application_set_action_group; -alias c_g_application_set_application_id g_application_set_application_id; -alias c_g_application_set_default g_application_set_default; -alias c_g_application_set_flags g_application_set_flags; -alias c_g_application_set_inactivity_timeout g_application_set_inactivity_timeout; -alias c_g_application_set_option_context_description g_application_set_option_context_description; -alias c_g_application_set_option_context_parameter_string g_application_set_option_context_parameter_string; -alias c_g_application_set_option_context_summary g_application_set_option_context_summary; -alias c_g_application_set_resource_base_path g_application_set_resource_base_path; -alias c_g_application_unbind_busy_property g_application_unbind_busy_property; -alias c_g_application_unmark_busy g_application_unmark_busy; -alias c_g_application_withdraw_notification g_application_withdraw_notification; - -// gio.ApplicationCommandLine - -alias c_g_application_command_line_get_type g_application_command_line_get_type; -alias c_g_application_command_line_create_file_for_arg g_application_command_line_create_file_for_arg; -alias c_g_application_command_line_get_arguments g_application_command_line_get_arguments; -alias c_g_application_command_line_get_cwd g_application_command_line_get_cwd; -alias c_g_application_command_line_get_environ g_application_command_line_get_environ; -alias c_g_application_command_line_get_exit_status g_application_command_line_get_exit_status; -alias c_g_application_command_line_get_is_remote g_application_command_line_get_is_remote; -alias c_g_application_command_line_get_options_dict g_application_command_line_get_options_dict; -alias c_g_application_command_line_get_platform_data g_application_command_line_get_platform_data; -alias c_g_application_command_line_get_stdin g_application_command_line_get_stdin; -alias c_g_application_command_line_getenv g_application_command_line_getenv; -alias c_g_application_command_line_print g_application_command_line_print; -alias c_g_application_command_line_printerr g_application_command_line_printerr; -alias c_g_application_command_line_set_exit_status g_application_command_line_set_exit_status; - -// gio.AsyncInitable - -alias c_g_async_initable_get_type g_async_initable_get_type; -alias c_g_async_initable_new_async g_async_initable_new_async; -alias c_g_async_initable_new_valist_async g_async_initable_new_valist_async; -alias c_g_async_initable_newv_async g_async_initable_newv_async; -alias c_g_async_initable_init_async g_async_initable_init_async; -alias c_g_async_initable_init_finish g_async_initable_init_finish; -alias c_g_async_initable_new_finish g_async_initable_new_finish; - -// gio.AsyncResult - -alias c_g_async_result_get_type g_async_result_get_type; -alias c_g_async_result_get_source_object g_async_result_get_source_object; -alias c_g_async_result_get_user_data g_async_result_get_user_data; -alias c_g_async_result_is_tagged g_async_result_is_tagged; -alias c_g_async_result_legacy_propagate_error g_async_result_legacy_propagate_error; - -// gio.BufferedInputStream - -alias c_g_buffered_input_stream_get_type g_buffered_input_stream_get_type; -alias c_g_buffered_input_stream_new g_buffered_input_stream_new; -alias c_g_buffered_input_stream_new_sized g_buffered_input_stream_new_sized; -alias c_g_buffered_input_stream_fill g_buffered_input_stream_fill; -alias c_g_buffered_input_stream_fill_async g_buffered_input_stream_fill_async; -alias c_g_buffered_input_stream_fill_finish g_buffered_input_stream_fill_finish; -alias c_g_buffered_input_stream_get_available g_buffered_input_stream_get_available; -alias c_g_buffered_input_stream_get_buffer_size g_buffered_input_stream_get_buffer_size; -alias c_g_buffered_input_stream_peek g_buffered_input_stream_peek; -alias c_g_buffered_input_stream_peek_buffer g_buffered_input_stream_peek_buffer; -alias c_g_buffered_input_stream_read_byte g_buffered_input_stream_read_byte; -alias c_g_buffered_input_stream_set_buffer_size g_buffered_input_stream_set_buffer_size; - -// gio.BufferedOutputStream - -alias c_g_buffered_output_stream_get_type g_buffered_output_stream_get_type; -alias c_g_buffered_output_stream_new g_buffered_output_stream_new; -alias c_g_buffered_output_stream_new_sized g_buffered_output_stream_new_sized; -alias c_g_buffered_output_stream_get_auto_grow g_buffered_output_stream_get_auto_grow; -alias c_g_buffered_output_stream_get_buffer_size g_buffered_output_stream_get_buffer_size; -alias c_g_buffered_output_stream_set_auto_grow g_buffered_output_stream_set_auto_grow; -alias c_g_buffered_output_stream_set_buffer_size g_buffered_output_stream_set_buffer_size; - -// gio.BytesIcon - -alias c_g_bytes_icon_get_type g_bytes_icon_get_type; -alias c_g_bytes_icon_new g_bytes_icon_new; -alias c_g_bytes_icon_get_bytes g_bytes_icon_get_bytes; - -// gio.Cancellable - -alias c_g_cancellable_get_type g_cancellable_get_type; -alias c_g_cancellable_new g_cancellable_new; -alias c_g_cancellable_get_current g_cancellable_get_current; -alias c_g_cancellable_cancel g_cancellable_cancel; -alias c_g_cancellable_connect g_cancellable_connect; -alias c_g_cancellable_disconnect g_cancellable_disconnect; -alias c_g_cancellable_get_fd g_cancellable_get_fd; -alias c_g_cancellable_is_cancelled g_cancellable_is_cancelled; -alias c_g_cancellable_make_pollfd g_cancellable_make_pollfd; -alias c_g_cancellable_pop_current g_cancellable_pop_current; -alias c_g_cancellable_push_current g_cancellable_push_current; -alias c_g_cancellable_release_fd g_cancellable_release_fd; -alias c_g_cancellable_reset g_cancellable_reset; -alias c_g_cancellable_set_error_if_cancelled g_cancellable_set_error_if_cancelled; -alias c_g_cancellable_source_new g_cancellable_source_new; - -// gio.CharsetConverter - -alias c_g_charset_converter_get_type g_charset_converter_get_type; -alias c_g_charset_converter_new g_charset_converter_new; -alias c_g_charset_converter_get_num_fallbacks g_charset_converter_get_num_fallbacks; -alias c_g_charset_converter_get_use_fallback g_charset_converter_get_use_fallback; -alias c_g_charset_converter_set_use_fallback g_charset_converter_set_use_fallback; - -// gio.Converter - -alias c_g_converter_get_type g_converter_get_type; -alias c_g_converter_convert g_converter_convert; -alias c_g_converter_reset g_converter_reset; - -// gio.ConverterInputStream - -alias c_g_converter_input_stream_get_type g_converter_input_stream_get_type; -alias c_g_converter_input_stream_new g_converter_input_stream_new; -alias c_g_converter_input_stream_get_converter g_converter_input_stream_get_converter; - -// gio.ConverterOutputStream - -alias c_g_converter_output_stream_get_type g_converter_output_stream_get_type; -alias c_g_converter_output_stream_new g_converter_output_stream_new; -alias c_g_converter_output_stream_get_converter g_converter_output_stream_get_converter; - -// gio.Credentials - -alias c_g_credentials_get_type g_credentials_get_type; -alias c_g_credentials_new g_credentials_new; -alias c_g_credentials_get_native g_credentials_get_native; -alias c_g_credentials_get_unix_pid g_credentials_get_unix_pid; -alias c_g_credentials_get_unix_user g_credentials_get_unix_user; -alias c_g_credentials_is_same_user g_credentials_is_same_user; -alias c_g_credentials_set_native g_credentials_set_native; -alias c_g_credentials_set_unix_user g_credentials_set_unix_user; -alias c_g_credentials_to_string g_credentials_to_string; - -// gio.DBusActionGroup - -alias c_g_dbus_action_group_get_type g_dbus_action_group_get_type; -alias c_g_dbus_action_group_get g_dbus_action_group_get; - -// gio.DBusAnnotationInfo - -alias c_g_dbus_annotation_info_get_type g_dbus_annotation_info_get_type; -alias c_g_dbus_annotation_info_ref g_dbus_annotation_info_ref; -alias c_g_dbus_annotation_info_unref g_dbus_annotation_info_unref; -alias c_g_dbus_annotation_info_lookup g_dbus_annotation_info_lookup; - -// gio.DBusArgInfo - -alias c_g_dbus_arg_info_get_type g_dbus_arg_info_get_type; -alias c_g_dbus_arg_info_ref g_dbus_arg_info_ref; -alias c_g_dbus_arg_info_unref g_dbus_arg_info_unref; - -// gio.DBusAuthObserver - -alias c_g_dbus_auth_observer_get_type g_dbus_auth_observer_get_type; -alias c_g_dbus_auth_observer_new g_dbus_auth_observer_new; -alias c_g_dbus_auth_observer_allow_mechanism g_dbus_auth_observer_allow_mechanism; -alias c_g_dbus_auth_observer_authorize_authenticated_peer g_dbus_auth_observer_authorize_authenticated_peer; - -// gio.DBusConnection - -alias c_g_dbus_connection_get_type g_dbus_connection_get_type; -alias c_g_dbus_connection_new_finish g_dbus_connection_new_finish; -alias c_g_dbus_connection_new_for_address_finish g_dbus_connection_new_for_address_finish; -alias c_g_dbus_connection_new_for_address_sync g_dbus_connection_new_for_address_sync; -alias c_g_dbus_connection_new_sync g_dbus_connection_new_sync; -alias c_g_dbus_connection_new g_dbus_connection_new; -alias c_g_dbus_connection_new_for_address g_dbus_connection_new_for_address; -alias c_g_dbus_connection_add_filter g_dbus_connection_add_filter; -alias c_g_dbus_connection_call g_dbus_connection_call; -alias c_g_dbus_connection_call_finish g_dbus_connection_call_finish; -alias c_g_dbus_connection_call_sync g_dbus_connection_call_sync; -alias c_g_dbus_connection_call_with_unix_fd_list g_dbus_connection_call_with_unix_fd_list; -alias c_g_dbus_connection_call_with_unix_fd_list_finish g_dbus_connection_call_with_unix_fd_list_finish; -alias c_g_dbus_connection_call_with_unix_fd_list_sync g_dbus_connection_call_with_unix_fd_list_sync; -alias c_g_dbus_connection_close g_dbus_connection_close; -alias c_g_dbus_connection_close_finish g_dbus_connection_close_finish; -alias c_g_dbus_connection_close_sync g_dbus_connection_close_sync; -alias c_g_dbus_connection_emit_signal g_dbus_connection_emit_signal; -alias c_g_dbus_connection_export_action_group g_dbus_connection_export_action_group; -alias c_g_dbus_connection_export_menu_model g_dbus_connection_export_menu_model; -alias c_g_dbus_connection_flush g_dbus_connection_flush; -alias c_g_dbus_connection_flush_finish g_dbus_connection_flush_finish; -alias c_g_dbus_connection_flush_sync g_dbus_connection_flush_sync; -alias c_g_dbus_connection_get_capabilities g_dbus_connection_get_capabilities; -alias c_g_dbus_connection_get_exit_on_close g_dbus_connection_get_exit_on_close; -alias c_g_dbus_connection_get_flags g_dbus_connection_get_flags; -alias c_g_dbus_connection_get_guid g_dbus_connection_get_guid; -alias c_g_dbus_connection_get_last_serial g_dbus_connection_get_last_serial; -alias c_g_dbus_connection_get_peer_credentials g_dbus_connection_get_peer_credentials; -alias c_g_dbus_connection_get_stream g_dbus_connection_get_stream; -alias c_g_dbus_connection_get_unique_name g_dbus_connection_get_unique_name; -alias c_g_dbus_connection_is_closed g_dbus_connection_is_closed; -alias c_g_dbus_connection_register_object g_dbus_connection_register_object; -alias c_g_dbus_connection_register_object_with_closures g_dbus_connection_register_object_with_closures; -alias c_g_dbus_connection_register_subtree g_dbus_connection_register_subtree; -alias c_g_dbus_connection_remove_filter g_dbus_connection_remove_filter; -alias c_g_dbus_connection_send_message g_dbus_connection_send_message; -alias c_g_dbus_connection_send_message_with_reply g_dbus_connection_send_message_with_reply; -alias c_g_dbus_connection_send_message_with_reply_finish g_dbus_connection_send_message_with_reply_finish; -alias c_g_dbus_connection_send_message_with_reply_sync g_dbus_connection_send_message_with_reply_sync; -alias c_g_dbus_connection_set_exit_on_close g_dbus_connection_set_exit_on_close; -alias c_g_dbus_connection_signal_subscribe g_dbus_connection_signal_subscribe; -alias c_g_dbus_connection_signal_unsubscribe g_dbus_connection_signal_unsubscribe; -alias c_g_dbus_connection_start_message_processing g_dbus_connection_start_message_processing; -alias c_g_dbus_connection_unexport_action_group g_dbus_connection_unexport_action_group; -alias c_g_dbus_connection_unexport_menu_model g_dbus_connection_unexport_menu_model; -alias c_g_dbus_connection_unregister_object g_dbus_connection_unregister_object; -alias c_g_dbus_connection_unregister_subtree g_dbus_connection_unregister_subtree; -alias c_g_bus_get g_bus_get; -alias c_g_bus_get_finish g_bus_get_finish; -alias c_g_bus_get_sync g_bus_get_sync; - -// gio.DBusInterface - -alias c_g_dbus_interface_get_type g_dbus_interface_get_type; -alias c_g_dbus_interface_dup_object g_dbus_interface_dup_object; -alias c_g_dbus_interface_get_info g_dbus_interface_get_info; -alias c_g_dbus_interface_get_object g_dbus_interface_get_object; -alias c_g_dbus_interface_set_object g_dbus_interface_set_object; - -// gio.DBusInterfaceInfo - -alias c_g_dbus_interface_info_get_type g_dbus_interface_info_get_type; -alias c_g_dbus_interface_info_cache_build g_dbus_interface_info_cache_build; -alias c_g_dbus_interface_info_cache_release g_dbus_interface_info_cache_release; -alias c_g_dbus_interface_info_generate_xml g_dbus_interface_info_generate_xml; -alias c_g_dbus_interface_info_lookup_method g_dbus_interface_info_lookup_method; -alias c_g_dbus_interface_info_lookup_property g_dbus_interface_info_lookup_property; -alias c_g_dbus_interface_info_lookup_signal g_dbus_interface_info_lookup_signal; -alias c_g_dbus_interface_info_ref g_dbus_interface_info_ref; -alias c_g_dbus_interface_info_unref g_dbus_interface_info_unref; - -// gio.DBusInterfaceSkeleton - -alias c_g_dbus_interface_skeleton_get_type g_dbus_interface_skeleton_get_type; -alias c_g_dbus_interface_skeleton_export g_dbus_interface_skeleton_export; -alias c_g_dbus_interface_skeleton_flush g_dbus_interface_skeleton_flush; -alias c_g_dbus_interface_skeleton_get_connection g_dbus_interface_skeleton_get_connection; -alias c_g_dbus_interface_skeleton_get_connections g_dbus_interface_skeleton_get_connections; -alias c_g_dbus_interface_skeleton_get_flags g_dbus_interface_skeleton_get_flags; -alias c_g_dbus_interface_skeleton_get_info g_dbus_interface_skeleton_get_info; -alias c_g_dbus_interface_skeleton_get_object_path g_dbus_interface_skeleton_get_object_path; -alias c_g_dbus_interface_skeleton_get_properties g_dbus_interface_skeleton_get_properties; -alias c_g_dbus_interface_skeleton_get_vtable g_dbus_interface_skeleton_get_vtable; -alias c_g_dbus_interface_skeleton_has_connection g_dbus_interface_skeleton_has_connection; -alias c_g_dbus_interface_skeleton_set_flags g_dbus_interface_skeleton_set_flags; -alias c_g_dbus_interface_skeleton_unexport g_dbus_interface_skeleton_unexport; -alias c_g_dbus_interface_skeleton_unexport_from_connection g_dbus_interface_skeleton_unexport_from_connection; - -// gio.DBusMenuModel - -alias c_g_dbus_menu_model_get_type g_dbus_menu_model_get_type; -alias c_g_dbus_menu_model_get g_dbus_menu_model_get; - -// gio.DBusMessage - -alias c_g_dbus_message_get_type g_dbus_message_get_type; -alias c_g_dbus_message_new g_dbus_message_new; -alias c_g_dbus_message_new_from_blob g_dbus_message_new_from_blob; -alias c_g_dbus_message_new_method_call g_dbus_message_new_method_call; -alias c_g_dbus_message_new_signal g_dbus_message_new_signal; -alias c_g_dbus_message_bytes_needed g_dbus_message_bytes_needed; -alias c_g_dbus_message_copy g_dbus_message_copy; -alias c_g_dbus_message_get_arg0 g_dbus_message_get_arg0; -alias c_g_dbus_message_get_body g_dbus_message_get_body; -alias c_g_dbus_message_get_byte_order g_dbus_message_get_byte_order; -alias c_g_dbus_message_get_destination g_dbus_message_get_destination; -alias c_g_dbus_message_get_error_name g_dbus_message_get_error_name; -alias c_g_dbus_message_get_flags g_dbus_message_get_flags; -alias c_g_dbus_message_get_header g_dbus_message_get_header; -alias c_g_dbus_message_get_header_fields g_dbus_message_get_header_fields; -alias c_g_dbus_message_get_interface g_dbus_message_get_interface; -alias c_g_dbus_message_get_locked g_dbus_message_get_locked; -alias c_g_dbus_message_get_member g_dbus_message_get_member; -alias c_g_dbus_message_get_message_type g_dbus_message_get_message_type; -alias c_g_dbus_message_get_num_unix_fds g_dbus_message_get_num_unix_fds; -alias c_g_dbus_message_get_path g_dbus_message_get_path; -alias c_g_dbus_message_get_reply_serial g_dbus_message_get_reply_serial; -alias c_g_dbus_message_get_sender g_dbus_message_get_sender; -alias c_g_dbus_message_get_serial g_dbus_message_get_serial; -alias c_g_dbus_message_get_signature g_dbus_message_get_signature; -alias c_g_dbus_message_get_unix_fd_list g_dbus_message_get_unix_fd_list; -alias c_g_dbus_message_lock g_dbus_message_lock; -alias c_g_dbus_message_new_method_error g_dbus_message_new_method_error; -alias c_g_dbus_message_new_method_error_literal g_dbus_message_new_method_error_literal; -alias c_g_dbus_message_new_method_error_valist g_dbus_message_new_method_error_valist; -alias c_g_dbus_message_new_method_reply g_dbus_message_new_method_reply; -alias c_g_dbus_message_print g_dbus_message_print; -alias c_g_dbus_message_set_body g_dbus_message_set_body; -alias c_g_dbus_message_set_byte_order g_dbus_message_set_byte_order; -alias c_g_dbus_message_set_destination g_dbus_message_set_destination; -alias c_g_dbus_message_set_error_name g_dbus_message_set_error_name; -alias c_g_dbus_message_set_flags g_dbus_message_set_flags; -alias c_g_dbus_message_set_header g_dbus_message_set_header; -alias c_g_dbus_message_set_interface g_dbus_message_set_interface; -alias c_g_dbus_message_set_member g_dbus_message_set_member; -alias c_g_dbus_message_set_message_type g_dbus_message_set_message_type; -alias c_g_dbus_message_set_num_unix_fds g_dbus_message_set_num_unix_fds; -alias c_g_dbus_message_set_path g_dbus_message_set_path; -alias c_g_dbus_message_set_reply_serial g_dbus_message_set_reply_serial; -alias c_g_dbus_message_set_sender g_dbus_message_set_sender; -alias c_g_dbus_message_set_serial g_dbus_message_set_serial; -alias c_g_dbus_message_set_signature g_dbus_message_set_signature; -alias c_g_dbus_message_set_unix_fd_list g_dbus_message_set_unix_fd_list; -alias c_g_dbus_message_to_blob g_dbus_message_to_blob; -alias c_g_dbus_message_to_gerror g_dbus_message_to_gerror; - -// gio.DBusMethodInfo - -alias c_g_dbus_method_info_get_type g_dbus_method_info_get_type; -alias c_g_dbus_method_info_ref g_dbus_method_info_ref; -alias c_g_dbus_method_info_unref g_dbus_method_info_unref; - -// gio.DBusMethodInvocation - -alias c_g_dbus_method_invocation_get_type g_dbus_method_invocation_get_type; -alias c_g_dbus_method_invocation_get_connection g_dbus_method_invocation_get_connection; -alias c_g_dbus_method_invocation_get_interface_name g_dbus_method_invocation_get_interface_name; -alias c_g_dbus_method_invocation_get_message g_dbus_method_invocation_get_message; -alias c_g_dbus_method_invocation_get_method_info g_dbus_method_invocation_get_method_info; -alias c_g_dbus_method_invocation_get_method_name g_dbus_method_invocation_get_method_name; -alias c_g_dbus_method_invocation_get_object_path g_dbus_method_invocation_get_object_path; -alias c_g_dbus_method_invocation_get_parameters g_dbus_method_invocation_get_parameters; -alias c_g_dbus_method_invocation_get_property_info g_dbus_method_invocation_get_property_info; -alias c_g_dbus_method_invocation_get_sender g_dbus_method_invocation_get_sender; -alias c_g_dbus_method_invocation_get_user_data g_dbus_method_invocation_get_user_data; -alias c_g_dbus_method_invocation_return_dbus_error g_dbus_method_invocation_return_dbus_error; -alias c_g_dbus_method_invocation_return_error g_dbus_method_invocation_return_error; -alias c_g_dbus_method_invocation_return_error_literal g_dbus_method_invocation_return_error_literal; -alias c_g_dbus_method_invocation_return_error_valist g_dbus_method_invocation_return_error_valist; -alias c_g_dbus_method_invocation_return_gerror g_dbus_method_invocation_return_gerror; -alias c_g_dbus_method_invocation_return_value g_dbus_method_invocation_return_value; -alias c_g_dbus_method_invocation_return_value_with_unix_fd_list g_dbus_method_invocation_return_value_with_unix_fd_list; -alias c_g_dbus_method_invocation_take_error g_dbus_method_invocation_take_error; - -// gio.DBusNodeInfo - -alias c_g_dbus_node_info_get_type g_dbus_node_info_get_type; -alias c_g_dbus_node_info_new_for_xml g_dbus_node_info_new_for_xml; -alias c_g_dbus_node_info_generate_xml g_dbus_node_info_generate_xml; -alias c_g_dbus_node_info_lookup_interface g_dbus_node_info_lookup_interface; -alias c_g_dbus_node_info_ref g_dbus_node_info_ref; -alias c_g_dbus_node_info_unref g_dbus_node_info_unref; - -// gio.DBusObject - -alias c_g_dbus_object_get_type g_dbus_object_get_type; -alias c_g_dbus_object_get_interface g_dbus_object_get_interface; -alias c_g_dbus_object_get_interfaces g_dbus_object_get_interfaces; -alias c_g_dbus_object_get_object_path g_dbus_object_get_object_path; - -// gio.DBusObjectManager - -alias c_g_dbus_object_manager_get_type g_dbus_object_manager_get_type; -alias c_g_dbus_object_manager_get_interface g_dbus_object_manager_get_interface; -alias c_g_dbus_object_manager_get_object g_dbus_object_manager_get_object; -alias c_g_dbus_object_manager_get_object_path g_dbus_object_manager_get_object_path; -alias c_g_dbus_object_manager_get_objects g_dbus_object_manager_get_objects; - -// gio.DBusObjectManagerClient - -alias c_g_dbus_object_manager_client_get_type g_dbus_object_manager_client_get_type; -alias c_g_dbus_object_manager_client_new_finish g_dbus_object_manager_client_new_finish; -alias c_g_dbus_object_manager_client_new_for_bus_finish g_dbus_object_manager_client_new_for_bus_finish; -alias c_g_dbus_object_manager_client_new_for_bus_sync g_dbus_object_manager_client_new_for_bus_sync; -alias c_g_dbus_object_manager_client_new_sync g_dbus_object_manager_client_new_sync; -alias c_g_dbus_object_manager_client_new g_dbus_object_manager_client_new; -alias c_g_dbus_object_manager_client_new_for_bus g_dbus_object_manager_client_new_for_bus; -alias c_g_dbus_object_manager_client_get_connection g_dbus_object_manager_client_get_connection; -alias c_g_dbus_object_manager_client_get_flags g_dbus_object_manager_client_get_flags; -alias c_g_dbus_object_manager_client_get_name g_dbus_object_manager_client_get_name; -alias c_g_dbus_object_manager_client_get_name_owner g_dbus_object_manager_client_get_name_owner; - -// gio.DBusObjectManagerServer - -alias c_g_dbus_object_manager_server_get_type g_dbus_object_manager_server_get_type; -alias c_g_dbus_object_manager_server_new g_dbus_object_manager_server_new; -alias c_g_dbus_object_manager_server_export g_dbus_object_manager_server_export; -alias c_g_dbus_object_manager_server_export_uniquely g_dbus_object_manager_server_export_uniquely; -alias c_g_dbus_object_manager_server_get_connection g_dbus_object_manager_server_get_connection; -alias c_g_dbus_object_manager_server_is_exported g_dbus_object_manager_server_is_exported; -alias c_g_dbus_object_manager_server_set_connection g_dbus_object_manager_server_set_connection; -alias c_g_dbus_object_manager_server_unexport g_dbus_object_manager_server_unexport; - -// gio.DBusObjectProxy - -alias c_g_dbus_object_proxy_get_type g_dbus_object_proxy_get_type; -alias c_g_dbus_object_proxy_new g_dbus_object_proxy_new; -alias c_g_dbus_object_proxy_get_connection g_dbus_object_proxy_get_connection; - -// gio.DBusObjectSkeleton - -alias c_g_dbus_object_skeleton_get_type g_dbus_object_skeleton_get_type; -alias c_g_dbus_object_skeleton_new g_dbus_object_skeleton_new; -alias c_g_dbus_object_skeleton_add_interface g_dbus_object_skeleton_add_interface; -alias c_g_dbus_object_skeleton_flush g_dbus_object_skeleton_flush; -alias c_g_dbus_object_skeleton_remove_interface g_dbus_object_skeleton_remove_interface; -alias c_g_dbus_object_skeleton_remove_interface_by_name g_dbus_object_skeleton_remove_interface_by_name; -alias c_g_dbus_object_skeleton_set_object_path g_dbus_object_skeleton_set_object_path; - -// gio.DBusPropertyInfo - -alias c_g_dbus_property_info_get_type g_dbus_property_info_get_type; -alias c_g_dbus_property_info_ref g_dbus_property_info_ref; -alias c_g_dbus_property_info_unref g_dbus_property_info_unref; - -// gio.DBusProxy - -alias c_g_dbus_proxy_get_type g_dbus_proxy_get_type; -alias c_g_dbus_proxy_new_finish g_dbus_proxy_new_finish; -alias c_g_dbus_proxy_new_for_bus_finish g_dbus_proxy_new_for_bus_finish; -alias c_g_dbus_proxy_new_for_bus_sync g_dbus_proxy_new_for_bus_sync; -alias c_g_dbus_proxy_new_sync g_dbus_proxy_new_sync; -alias c_g_dbus_proxy_new g_dbus_proxy_new; -alias c_g_dbus_proxy_new_for_bus g_dbus_proxy_new_for_bus; -alias c_g_dbus_proxy_call g_dbus_proxy_call; -alias c_g_dbus_proxy_call_finish g_dbus_proxy_call_finish; -alias c_g_dbus_proxy_call_sync g_dbus_proxy_call_sync; -alias c_g_dbus_proxy_call_with_unix_fd_list g_dbus_proxy_call_with_unix_fd_list; -alias c_g_dbus_proxy_call_with_unix_fd_list_finish g_dbus_proxy_call_with_unix_fd_list_finish; -alias c_g_dbus_proxy_call_with_unix_fd_list_sync g_dbus_proxy_call_with_unix_fd_list_sync; -alias c_g_dbus_proxy_get_cached_property g_dbus_proxy_get_cached_property; -alias c_g_dbus_proxy_get_cached_property_names g_dbus_proxy_get_cached_property_names; -alias c_g_dbus_proxy_get_connection g_dbus_proxy_get_connection; -alias c_g_dbus_proxy_get_default_timeout g_dbus_proxy_get_default_timeout; -alias c_g_dbus_proxy_get_flags g_dbus_proxy_get_flags; -alias c_g_dbus_proxy_get_interface_info g_dbus_proxy_get_interface_info; -alias c_g_dbus_proxy_get_interface_name g_dbus_proxy_get_interface_name; -alias c_g_dbus_proxy_get_name g_dbus_proxy_get_name; -alias c_g_dbus_proxy_get_name_owner g_dbus_proxy_get_name_owner; -alias c_g_dbus_proxy_get_object_path g_dbus_proxy_get_object_path; -alias c_g_dbus_proxy_set_cached_property g_dbus_proxy_set_cached_property; -alias c_g_dbus_proxy_set_default_timeout g_dbus_proxy_set_default_timeout; -alias c_g_dbus_proxy_set_interface_info g_dbus_proxy_set_interface_info; - -// gio.DBusServer - -alias c_g_dbus_server_get_type g_dbus_server_get_type; -alias c_g_dbus_server_new_sync g_dbus_server_new_sync; -alias c_g_dbus_server_get_client_address g_dbus_server_get_client_address; -alias c_g_dbus_server_get_flags g_dbus_server_get_flags; -alias c_g_dbus_server_get_guid g_dbus_server_get_guid; -alias c_g_dbus_server_is_active g_dbus_server_is_active; -alias c_g_dbus_server_start g_dbus_server_start; -alias c_g_dbus_server_stop g_dbus_server_stop; - -// gio.DBusSignalInfo - -alias c_g_dbus_signal_info_get_type g_dbus_signal_info_get_type; -alias c_g_dbus_signal_info_ref g_dbus_signal_info_ref; -alias c_g_dbus_signal_info_unref g_dbus_signal_info_unref; - -// gio.DataInputStream - -alias c_g_data_input_stream_get_type g_data_input_stream_get_type; -alias c_g_data_input_stream_new g_data_input_stream_new; -alias c_g_data_input_stream_get_byte_order g_data_input_stream_get_byte_order; -alias c_g_data_input_stream_get_newline_type g_data_input_stream_get_newline_type; -alias c_g_data_input_stream_read_byte g_data_input_stream_read_byte; -alias c_g_data_input_stream_read_int16 g_data_input_stream_read_int16; -alias c_g_data_input_stream_read_int32 g_data_input_stream_read_int32; -alias c_g_data_input_stream_read_int64 g_data_input_stream_read_int64; -alias c_g_data_input_stream_read_line g_data_input_stream_read_line; -alias c_g_data_input_stream_read_line_async g_data_input_stream_read_line_async; -alias c_g_data_input_stream_read_line_finish g_data_input_stream_read_line_finish; -alias c_g_data_input_stream_read_line_finish_utf8 g_data_input_stream_read_line_finish_utf8; -alias c_g_data_input_stream_read_line_utf8 g_data_input_stream_read_line_utf8; -alias c_g_data_input_stream_read_uint16 g_data_input_stream_read_uint16; -alias c_g_data_input_stream_read_uint32 g_data_input_stream_read_uint32; -alias c_g_data_input_stream_read_uint64 g_data_input_stream_read_uint64; -alias c_g_data_input_stream_read_until g_data_input_stream_read_until; -alias c_g_data_input_stream_read_until_async g_data_input_stream_read_until_async; -alias c_g_data_input_stream_read_until_finish g_data_input_stream_read_until_finish; -alias c_g_data_input_stream_read_upto g_data_input_stream_read_upto; -alias c_g_data_input_stream_read_upto_async g_data_input_stream_read_upto_async; -alias c_g_data_input_stream_read_upto_finish g_data_input_stream_read_upto_finish; -alias c_g_data_input_stream_set_byte_order g_data_input_stream_set_byte_order; -alias c_g_data_input_stream_set_newline_type g_data_input_stream_set_newline_type; - -// gio.DataOutputStream - -alias c_g_data_output_stream_get_type g_data_output_stream_get_type; -alias c_g_data_output_stream_new g_data_output_stream_new; -alias c_g_data_output_stream_get_byte_order g_data_output_stream_get_byte_order; -alias c_g_data_output_stream_put_byte g_data_output_stream_put_byte; -alias c_g_data_output_stream_put_int16 g_data_output_stream_put_int16; -alias c_g_data_output_stream_put_int32 g_data_output_stream_put_int32; -alias c_g_data_output_stream_put_int64 g_data_output_stream_put_int64; -alias c_g_data_output_stream_put_string g_data_output_stream_put_string; -alias c_g_data_output_stream_put_uint16 g_data_output_stream_put_uint16; -alias c_g_data_output_stream_put_uint32 g_data_output_stream_put_uint32; -alias c_g_data_output_stream_put_uint64 g_data_output_stream_put_uint64; -alias c_g_data_output_stream_set_byte_order g_data_output_stream_set_byte_order; - -// gio.DatagramBased - -alias c_g_datagram_based_get_type g_datagram_based_get_type; -alias c_g_datagram_based_condition_check g_datagram_based_condition_check; -alias c_g_datagram_based_condition_wait g_datagram_based_condition_wait; -alias c_g_datagram_based_create_source g_datagram_based_create_source; -alias c_g_datagram_based_receive_messages g_datagram_based_receive_messages; -alias c_g_datagram_based_send_messages g_datagram_based_send_messages; - -// gio.DesktopAppInfo - -alias c_g_desktop_app_info_get_type g_desktop_app_info_get_type; -alias c_g_desktop_app_info_new g_desktop_app_info_new; -alias c_g_desktop_app_info_new_from_filename g_desktop_app_info_new_from_filename; -alias c_g_desktop_app_info_new_from_keyfile g_desktop_app_info_new_from_keyfile; -alias c_g_desktop_app_info_get_implementations g_desktop_app_info_get_implementations; -alias c_g_desktop_app_info_search g_desktop_app_info_search; -alias c_g_desktop_app_info_set_desktop_env g_desktop_app_info_set_desktop_env; -alias c_g_desktop_app_info_get_action_name g_desktop_app_info_get_action_name; -alias c_g_desktop_app_info_get_boolean g_desktop_app_info_get_boolean; -alias c_g_desktop_app_info_get_categories g_desktop_app_info_get_categories; -alias c_g_desktop_app_info_get_filename g_desktop_app_info_get_filename; -alias c_g_desktop_app_info_get_generic_name g_desktop_app_info_get_generic_name; -alias c_g_desktop_app_info_get_is_hidden g_desktop_app_info_get_is_hidden; -alias c_g_desktop_app_info_get_keywords g_desktop_app_info_get_keywords; -alias c_g_desktop_app_info_get_locale_string g_desktop_app_info_get_locale_string; -alias c_g_desktop_app_info_get_nodisplay g_desktop_app_info_get_nodisplay; -alias c_g_desktop_app_info_get_show_in g_desktop_app_info_get_show_in; -alias c_g_desktop_app_info_get_startup_wm_class g_desktop_app_info_get_startup_wm_class; -alias c_g_desktop_app_info_get_string g_desktop_app_info_get_string; -alias c_g_desktop_app_info_get_string_list g_desktop_app_info_get_string_list; -alias c_g_desktop_app_info_has_key g_desktop_app_info_has_key; -alias c_g_desktop_app_info_launch_action g_desktop_app_info_launch_action; -alias c_g_desktop_app_info_launch_uris_as_manager g_desktop_app_info_launch_uris_as_manager; -alias c_g_desktop_app_info_launch_uris_as_manager_with_fds g_desktop_app_info_launch_uris_as_manager_with_fds; -alias c_g_desktop_app_info_list_actions g_desktop_app_info_list_actions; - -// gio.DesktopAppInfoLookup - -alias c_g_desktop_app_info_lookup_get_type g_desktop_app_info_lookup_get_type; -alias c_g_desktop_app_info_lookup_get_default_for_uri_scheme g_desktop_app_info_lookup_get_default_for_uri_scheme; - -// gio.Drive - -alias c_g_drive_get_type g_drive_get_type; -alias c_g_drive_can_eject g_drive_can_eject; -alias c_g_drive_can_poll_for_media g_drive_can_poll_for_media; -alias c_g_drive_can_start g_drive_can_start; -alias c_g_drive_can_start_degraded g_drive_can_start_degraded; -alias c_g_drive_can_stop g_drive_can_stop; -alias c_g_drive_eject g_drive_eject; -alias c_g_drive_eject_finish g_drive_eject_finish; -alias c_g_drive_eject_with_operation g_drive_eject_with_operation; -alias c_g_drive_eject_with_operation_finish g_drive_eject_with_operation_finish; -alias c_g_drive_enumerate_identifiers g_drive_enumerate_identifiers; -alias c_g_drive_get_icon g_drive_get_icon; -alias c_g_drive_get_identifier g_drive_get_identifier; -alias c_g_drive_get_name g_drive_get_name; -alias c_g_drive_get_sort_key g_drive_get_sort_key; -alias c_g_drive_get_start_stop_type g_drive_get_start_stop_type; -alias c_g_drive_get_symbolic_icon g_drive_get_symbolic_icon; -alias c_g_drive_get_volumes g_drive_get_volumes; -alias c_g_drive_has_media g_drive_has_media; -alias c_g_drive_has_volumes g_drive_has_volumes; -alias c_g_drive_is_media_check_automatic g_drive_is_media_check_automatic; -alias c_g_drive_is_media_removable g_drive_is_media_removable; -alias c_g_drive_is_removable g_drive_is_removable; -alias c_g_drive_poll_for_media g_drive_poll_for_media; -alias c_g_drive_poll_for_media_finish g_drive_poll_for_media_finish; -alias c_g_drive_start g_drive_start; -alias c_g_drive_start_finish g_drive_start_finish; -alias c_g_drive_stop g_drive_stop; -alias c_g_drive_stop_finish g_drive_stop_finish; - -// gio.DtlsClientConnection - -alias c_g_dtls_client_connection_get_type g_dtls_client_connection_get_type; -alias c_g_dtls_client_connection_new g_dtls_client_connection_new; -alias c_g_dtls_client_connection_get_accepted_cas g_dtls_client_connection_get_accepted_cas; -alias c_g_dtls_client_connection_get_server_identity g_dtls_client_connection_get_server_identity; -alias c_g_dtls_client_connection_get_validation_flags g_dtls_client_connection_get_validation_flags; -alias c_g_dtls_client_connection_set_server_identity g_dtls_client_connection_set_server_identity; -alias c_g_dtls_client_connection_set_validation_flags g_dtls_client_connection_set_validation_flags; - -// gio.DtlsConnection - -alias c_g_dtls_connection_get_type g_dtls_connection_get_type; -alias c_g_dtls_connection_close g_dtls_connection_close; -alias c_g_dtls_connection_close_async g_dtls_connection_close_async; -alias c_g_dtls_connection_close_finish g_dtls_connection_close_finish; -alias c_g_dtls_connection_emit_accept_certificate g_dtls_connection_emit_accept_certificate; -alias c_g_dtls_connection_get_certificate g_dtls_connection_get_certificate; -alias c_g_dtls_connection_get_channel_binding_data g_dtls_connection_get_channel_binding_data; -alias c_g_dtls_connection_get_database g_dtls_connection_get_database; -alias c_g_dtls_connection_get_interaction g_dtls_connection_get_interaction; -alias c_g_dtls_connection_get_negotiated_protocol g_dtls_connection_get_negotiated_protocol; -alias c_g_dtls_connection_get_peer_certificate g_dtls_connection_get_peer_certificate; -alias c_g_dtls_connection_get_peer_certificate_errors g_dtls_connection_get_peer_certificate_errors; -alias c_g_dtls_connection_get_rehandshake_mode g_dtls_connection_get_rehandshake_mode; -alias c_g_dtls_connection_get_require_close_notify g_dtls_connection_get_require_close_notify; -alias c_g_dtls_connection_handshake g_dtls_connection_handshake; -alias c_g_dtls_connection_handshake_async g_dtls_connection_handshake_async; -alias c_g_dtls_connection_handshake_finish g_dtls_connection_handshake_finish; -alias c_g_dtls_connection_set_advertised_protocols g_dtls_connection_set_advertised_protocols; -alias c_g_dtls_connection_set_certificate g_dtls_connection_set_certificate; -alias c_g_dtls_connection_set_database g_dtls_connection_set_database; -alias c_g_dtls_connection_set_interaction g_dtls_connection_set_interaction; -alias c_g_dtls_connection_set_rehandshake_mode g_dtls_connection_set_rehandshake_mode; -alias c_g_dtls_connection_set_require_close_notify g_dtls_connection_set_require_close_notify; -alias c_g_dtls_connection_shutdown g_dtls_connection_shutdown; -alias c_g_dtls_connection_shutdown_async g_dtls_connection_shutdown_async; -alias c_g_dtls_connection_shutdown_finish g_dtls_connection_shutdown_finish; - -// gio.DtlsServerConnection - -alias c_g_dtls_server_connection_get_type g_dtls_server_connection_get_type; -alias c_g_dtls_server_connection_new g_dtls_server_connection_new; - -// gio.Emblem - -alias c_g_emblem_get_type g_emblem_get_type; -alias c_g_emblem_new g_emblem_new; -alias c_g_emblem_new_with_origin g_emblem_new_with_origin; -alias c_g_emblem_get_icon g_emblem_get_icon; -alias c_g_emblem_get_origin g_emblem_get_origin; - -// gio.EmblemedIcon - -alias c_g_emblemed_icon_get_type g_emblemed_icon_get_type; -alias c_g_emblemed_icon_new g_emblemed_icon_new; -alias c_g_emblemed_icon_add_emblem g_emblemed_icon_add_emblem; -alias c_g_emblemed_icon_clear_emblems g_emblemed_icon_clear_emblems; -alias c_g_emblemed_icon_get_emblems g_emblemed_icon_get_emblems; -alias c_g_emblemed_icon_get_icon g_emblemed_icon_get_icon; - -// gio.File - -alias c_g_file_get_type g_file_get_type; -alias c_g_file_new_build_filename g_file_new_build_filename; -alias c_g_file_new_for_commandline_arg g_file_new_for_commandline_arg; -alias c_g_file_new_for_commandline_arg_and_cwd g_file_new_for_commandline_arg_and_cwd; -alias c_g_file_new_for_path g_file_new_for_path; -alias c_g_file_new_for_uri g_file_new_for_uri; -alias c_g_file_new_tmp g_file_new_tmp; -alias c_g_file_parse_name g_file_parse_name; -alias c_g_file_append_to g_file_append_to; -alias c_g_file_append_to_async g_file_append_to_async; -alias c_g_file_append_to_finish g_file_append_to_finish; -alias c_g_file_build_attribute_list_for_copy g_file_build_attribute_list_for_copy; -alias c_g_file_copy g_file_copy; -alias c_g_file_copy_async g_file_copy_async; -alias c_g_file_copy_attributes g_file_copy_attributes; -alias c_g_file_copy_finish g_file_copy_finish; -alias c_g_file_create g_file_create; -alias c_g_file_create_async g_file_create_async; -alias c_g_file_create_finish g_file_create_finish; -alias c_g_file_create_readwrite g_file_create_readwrite; -alias c_g_file_create_readwrite_async g_file_create_readwrite_async; -alias c_g_file_create_readwrite_finish g_file_create_readwrite_finish; -alias c_g_file_delete g_file_delete; -alias c_g_file_delete_async g_file_delete_async; -alias c_g_file_delete_finish g_file_delete_finish; -alias c_g_file_dup g_file_dup; -alias c_g_file_eject_mountable g_file_eject_mountable; -alias c_g_file_eject_mountable_finish g_file_eject_mountable_finish; -alias c_g_file_eject_mountable_with_operation g_file_eject_mountable_with_operation; -alias c_g_file_eject_mountable_with_operation_finish g_file_eject_mountable_with_operation_finish; -alias c_g_file_enumerate_children g_file_enumerate_children; -alias c_g_file_enumerate_children_async g_file_enumerate_children_async; -alias c_g_file_enumerate_children_finish g_file_enumerate_children_finish; -alias c_g_file_equal g_file_equal; -alias c_g_file_find_enclosing_mount g_file_find_enclosing_mount; -alias c_g_file_find_enclosing_mount_async g_file_find_enclosing_mount_async; -alias c_g_file_find_enclosing_mount_finish g_file_find_enclosing_mount_finish; -alias c_g_file_get_basename g_file_get_basename; -alias c_g_file_get_child g_file_get_child; -alias c_g_file_get_child_for_display_name g_file_get_child_for_display_name; -alias c_g_file_get_parent g_file_get_parent; -alias c_g_file_get_parse_name g_file_get_parse_name; -alias c_g_file_get_path g_file_get_path; -alias c_g_file_get_relative_path g_file_get_relative_path; -alias c_g_file_get_uri g_file_get_uri; -alias c_g_file_get_uri_scheme g_file_get_uri_scheme; -alias c_g_file_has_parent g_file_has_parent; -alias c_g_file_has_prefix g_file_has_prefix; -alias c_g_file_has_uri_scheme g_file_has_uri_scheme; -alias c_g_file_hash g_file_hash; -alias c_g_file_is_native g_file_is_native; -alias c_g_file_load_bytes g_file_load_bytes; -alias c_g_file_load_bytes_async g_file_load_bytes_async; -alias c_g_file_load_bytes_finish g_file_load_bytes_finish; -alias c_g_file_load_contents g_file_load_contents; -alias c_g_file_load_contents_async g_file_load_contents_async; -alias c_g_file_load_contents_finish g_file_load_contents_finish; -alias c_g_file_load_partial_contents_async g_file_load_partial_contents_async; -alias c_g_file_load_partial_contents_finish g_file_load_partial_contents_finish; -alias c_g_file_make_directory g_file_make_directory; -alias c_g_file_make_directory_async g_file_make_directory_async; -alias c_g_file_make_directory_finish g_file_make_directory_finish; -alias c_g_file_make_directory_with_parents g_file_make_directory_with_parents; -alias c_g_file_make_symbolic_link g_file_make_symbolic_link; -alias c_g_file_measure_disk_usage g_file_measure_disk_usage; -alias c_g_file_measure_disk_usage_async g_file_measure_disk_usage_async; -alias c_g_file_measure_disk_usage_finish g_file_measure_disk_usage_finish; -alias c_g_file_monitor g_file_monitor; -alias c_g_file_monitor_directory g_file_monitor_directory; -alias c_g_file_monitor_file g_file_monitor_file; -alias c_g_file_mount_enclosing_volume g_file_mount_enclosing_volume; -alias c_g_file_mount_enclosing_volume_finish g_file_mount_enclosing_volume_finish; -alias c_g_file_mount_mountable g_file_mount_mountable; -alias c_g_file_mount_mountable_finish g_file_mount_mountable_finish; -alias c_g_file_move g_file_move; -alias c_g_file_open_readwrite g_file_open_readwrite; -alias c_g_file_open_readwrite_async g_file_open_readwrite_async; -alias c_g_file_open_readwrite_finish g_file_open_readwrite_finish; -alias c_g_file_peek_path g_file_peek_path; -alias c_g_file_poll_mountable g_file_poll_mountable; -alias c_g_file_poll_mountable_finish g_file_poll_mountable_finish; -alias c_g_file_query_default_handler g_file_query_default_handler; -alias c_g_file_query_default_handler_async g_file_query_default_handler_async; -alias c_g_file_query_default_handler_finish g_file_query_default_handler_finish; -alias c_g_file_query_exists g_file_query_exists; -alias c_g_file_query_file_type g_file_query_file_type; -alias c_g_file_query_filesystem_info g_file_query_filesystem_info; -alias c_g_file_query_filesystem_info_async g_file_query_filesystem_info_async; -alias c_g_file_query_filesystem_info_finish g_file_query_filesystem_info_finish; -alias c_g_file_query_info g_file_query_info; -alias c_g_file_query_info_async g_file_query_info_async; -alias c_g_file_query_info_finish g_file_query_info_finish; -alias c_g_file_query_settable_attributes g_file_query_settable_attributes; -alias c_g_file_query_writable_namespaces g_file_query_writable_namespaces; -alias c_g_file_read g_file_read; -alias c_g_file_read_async g_file_read_async; -alias c_g_file_read_finish g_file_read_finish; -alias c_g_file_replace g_file_replace; -alias c_g_file_replace_async g_file_replace_async; -alias c_g_file_replace_contents g_file_replace_contents; -alias c_g_file_replace_contents_async g_file_replace_contents_async; -alias c_g_file_replace_contents_bytes_async g_file_replace_contents_bytes_async; -alias c_g_file_replace_contents_finish g_file_replace_contents_finish; -alias c_g_file_replace_finish g_file_replace_finish; -alias c_g_file_replace_readwrite g_file_replace_readwrite; -alias c_g_file_replace_readwrite_async g_file_replace_readwrite_async; -alias c_g_file_replace_readwrite_finish g_file_replace_readwrite_finish; -alias c_g_file_resolve_relative_path g_file_resolve_relative_path; -alias c_g_file_set_attribute g_file_set_attribute; -alias c_g_file_set_attribute_byte_string g_file_set_attribute_byte_string; -alias c_g_file_set_attribute_int32 g_file_set_attribute_int32; -alias c_g_file_set_attribute_int64 g_file_set_attribute_int64; -alias c_g_file_set_attribute_string g_file_set_attribute_string; -alias c_g_file_set_attribute_uint32 g_file_set_attribute_uint32; -alias c_g_file_set_attribute_uint64 g_file_set_attribute_uint64; -alias c_g_file_set_attributes_async g_file_set_attributes_async; -alias c_g_file_set_attributes_finish g_file_set_attributes_finish; -alias c_g_file_set_attributes_from_info g_file_set_attributes_from_info; -alias c_g_file_set_display_name g_file_set_display_name; -alias c_g_file_set_display_name_async g_file_set_display_name_async; -alias c_g_file_set_display_name_finish g_file_set_display_name_finish; -alias c_g_file_start_mountable g_file_start_mountable; -alias c_g_file_start_mountable_finish g_file_start_mountable_finish; -alias c_g_file_stop_mountable g_file_stop_mountable; -alias c_g_file_stop_mountable_finish g_file_stop_mountable_finish; -alias c_g_file_supports_thread_contexts g_file_supports_thread_contexts; -alias c_g_file_trash g_file_trash; -alias c_g_file_trash_async g_file_trash_async; -alias c_g_file_trash_finish g_file_trash_finish; -alias c_g_file_unmount_mountable g_file_unmount_mountable; -alias c_g_file_unmount_mountable_finish g_file_unmount_mountable_finish; -alias c_g_file_unmount_mountable_with_operation g_file_unmount_mountable_with_operation; -alias c_g_file_unmount_mountable_with_operation_finish g_file_unmount_mountable_with_operation_finish; - -// gio.FileAttributeInfoList - -alias c_g_file_attribute_info_list_get_type g_file_attribute_info_list_get_type; -alias c_g_file_attribute_info_list_new g_file_attribute_info_list_new; -alias c_g_file_attribute_info_list_add g_file_attribute_info_list_add; -alias c_g_file_attribute_info_list_dup g_file_attribute_info_list_dup; -alias c_g_file_attribute_info_list_lookup g_file_attribute_info_list_lookup; -alias c_g_file_attribute_info_list_ref g_file_attribute_info_list_ref; -alias c_g_file_attribute_info_list_unref g_file_attribute_info_list_unref; - -// gio.FileAttributeMatcher - -alias c_g_file_attribute_matcher_get_type g_file_attribute_matcher_get_type; -alias c_g_file_attribute_matcher_new g_file_attribute_matcher_new; -alias c_g_file_attribute_matcher_enumerate_namespace g_file_attribute_matcher_enumerate_namespace; -alias c_g_file_attribute_matcher_enumerate_next g_file_attribute_matcher_enumerate_next; -alias c_g_file_attribute_matcher_matches g_file_attribute_matcher_matches; -alias c_g_file_attribute_matcher_matches_only g_file_attribute_matcher_matches_only; -alias c_g_file_attribute_matcher_ref g_file_attribute_matcher_ref; -alias c_g_file_attribute_matcher_subtract g_file_attribute_matcher_subtract; -alias c_g_file_attribute_matcher_to_string g_file_attribute_matcher_to_string; -alias c_g_file_attribute_matcher_unref g_file_attribute_matcher_unref; - -// gio.FileDescriptorBased - -alias c_g_file_descriptor_based_get_type g_file_descriptor_based_get_type; -alias c_g_file_descriptor_based_get_fd g_file_descriptor_based_get_fd; - -// gio.FileEnumerator - -alias c_g_file_enumerator_get_type g_file_enumerator_get_type; -alias c_g_file_enumerator_close g_file_enumerator_close; -alias c_g_file_enumerator_close_async g_file_enumerator_close_async; -alias c_g_file_enumerator_close_finish g_file_enumerator_close_finish; -alias c_g_file_enumerator_get_child g_file_enumerator_get_child; -alias c_g_file_enumerator_get_container g_file_enumerator_get_container; -alias c_g_file_enumerator_has_pending g_file_enumerator_has_pending; -alias c_g_file_enumerator_is_closed g_file_enumerator_is_closed; -alias c_g_file_enumerator_iterate g_file_enumerator_iterate; -alias c_g_file_enumerator_next_file g_file_enumerator_next_file; -alias c_g_file_enumerator_next_files_async g_file_enumerator_next_files_async; -alias c_g_file_enumerator_next_files_finish g_file_enumerator_next_files_finish; -alias c_g_file_enumerator_set_pending g_file_enumerator_set_pending; - -// gio.FileIOStream - -alias c_g_file_io_stream_get_type g_file_io_stream_get_type; -alias c_g_file_io_stream_get_etag g_file_io_stream_get_etag; -alias c_g_file_io_stream_query_info g_file_io_stream_query_info; -alias c_g_file_io_stream_query_info_async g_file_io_stream_query_info_async; -alias c_g_file_io_stream_query_info_finish g_file_io_stream_query_info_finish; - -// gio.FileIcon - -alias c_g_file_icon_get_type g_file_icon_get_type; -alias c_g_file_icon_new g_file_icon_new; -alias c_g_file_icon_get_file g_file_icon_get_file; - -// gio.FileInfo - -alias c_g_file_info_get_type g_file_info_get_type; -alias c_g_file_info_new g_file_info_new; -alias c_g_file_info_clear_status g_file_info_clear_status; -alias c_g_file_info_copy_into g_file_info_copy_into; -alias c_g_file_info_dup g_file_info_dup; -alias c_g_file_info_get_attribute_as_string g_file_info_get_attribute_as_string; -alias c_g_file_info_get_attribute_boolean g_file_info_get_attribute_boolean; -alias c_g_file_info_get_attribute_byte_string g_file_info_get_attribute_byte_string; -alias c_g_file_info_get_attribute_data g_file_info_get_attribute_data; -alias c_g_file_info_get_attribute_int32 g_file_info_get_attribute_int32; -alias c_g_file_info_get_attribute_int64 g_file_info_get_attribute_int64; -alias c_g_file_info_get_attribute_object g_file_info_get_attribute_object; -alias c_g_file_info_get_attribute_status g_file_info_get_attribute_status; -alias c_g_file_info_get_attribute_string g_file_info_get_attribute_string; -alias c_g_file_info_get_attribute_stringv g_file_info_get_attribute_stringv; -alias c_g_file_info_get_attribute_type g_file_info_get_attribute_type; -alias c_g_file_info_get_attribute_uint32 g_file_info_get_attribute_uint32; -alias c_g_file_info_get_attribute_uint64 g_file_info_get_attribute_uint64; -alias c_g_file_info_get_content_type g_file_info_get_content_type; -alias c_g_file_info_get_deletion_date g_file_info_get_deletion_date; -alias c_g_file_info_get_display_name g_file_info_get_display_name; -alias c_g_file_info_get_edit_name g_file_info_get_edit_name; -alias c_g_file_info_get_etag g_file_info_get_etag; -alias c_g_file_info_get_file_type g_file_info_get_file_type; -alias c_g_file_info_get_icon g_file_info_get_icon; -alias c_g_file_info_get_is_backup g_file_info_get_is_backup; -alias c_g_file_info_get_is_hidden g_file_info_get_is_hidden; -alias c_g_file_info_get_is_symlink g_file_info_get_is_symlink; -alias c_g_file_info_get_modification_date_time g_file_info_get_modification_date_time; -alias c_g_file_info_get_modification_time g_file_info_get_modification_time; -alias c_g_file_info_get_name g_file_info_get_name; -alias c_g_file_info_get_size g_file_info_get_size; -alias c_g_file_info_get_sort_order g_file_info_get_sort_order; -alias c_g_file_info_get_symbolic_icon g_file_info_get_symbolic_icon; -alias c_g_file_info_get_symlink_target g_file_info_get_symlink_target; -alias c_g_file_info_has_attribute g_file_info_has_attribute; -alias c_g_file_info_has_namespace g_file_info_has_namespace; -alias c_g_file_info_list_attributes g_file_info_list_attributes; -alias c_g_file_info_remove_attribute g_file_info_remove_attribute; -alias c_g_file_info_set_attribute g_file_info_set_attribute; -alias c_g_file_info_set_attribute_boolean g_file_info_set_attribute_boolean; -alias c_g_file_info_set_attribute_byte_string g_file_info_set_attribute_byte_string; -alias c_g_file_info_set_attribute_int32 g_file_info_set_attribute_int32; -alias c_g_file_info_set_attribute_int64 g_file_info_set_attribute_int64; -alias c_g_file_info_set_attribute_mask g_file_info_set_attribute_mask; -alias c_g_file_info_set_attribute_object g_file_info_set_attribute_object; -alias c_g_file_info_set_attribute_status g_file_info_set_attribute_status; -alias c_g_file_info_set_attribute_string g_file_info_set_attribute_string; -alias c_g_file_info_set_attribute_stringv g_file_info_set_attribute_stringv; -alias c_g_file_info_set_attribute_uint32 g_file_info_set_attribute_uint32; -alias c_g_file_info_set_attribute_uint64 g_file_info_set_attribute_uint64; -alias c_g_file_info_set_content_type g_file_info_set_content_type; -alias c_g_file_info_set_display_name g_file_info_set_display_name; -alias c_g_file_info_set_edit_name g_file_info_set_edit_name; -alias c_g_file_info_set_file_type g_file_info_set_file_type; -alias c_g_file_info_set_icon g_file_info_set_icon; -alias c_g_file_info_set_is_hidden g_file_info_set_is_hidden; -alias c_g_file_info_set_is_symlink g_file_info_set_is_symlink; -alias c_g_file_info_set_modification_date_time g_file_info_set_modification_date_time; -alias c_g_file_info_set_modification_time g_file_info_set_modification_time; -alias c_g_file_info_set_name g_file_info_set_name; -alias c_g_file_info_set_size g_file_info_set_size; -alias c_g_file_info_set_sort_order g_file_info_set_sort_order; -alias c_g_file_info_set_symbolic_icon g_file_info_set_symbolic_icon; -alias c_g_file_info_set_symlink_target g_file_info_set_symlink_target; -alias c_g_file_info_unset_attribute_mask g_file_info_unset_attribute_mask; - -// gio.FileInputStream - -alias c_g_file_input_stream_get_type g_file_input_stream_get_type; -alias c_g_file_input_stream_query_info g_file_input_stream_query_info; -alias c_g_file_input_stream_query_info_async g_file_input_stream_query_info_async; -alias c_g_file_input_stream_query_info_finish g_file_input_stream_query_info_finish; - -// gio.FileMonitor - -alias c_g_file_monitor_get_type g_file_monitor_get_type; -alias c_g_file_monitor_cancel g_file_monitor_cancel; -alias c_g_file_monitor_emit_event g_file_monitor_emit_event; -alias c_g_file_monitor_is_cancelled g_file_monitor_is_cancelled; -alias c_g_file_monitor_set_rate_limit g_file_monitor_set_rate_limit; - -// gio.FileOutputStream - -alias c_g_file_output_stream_get_type g_file_output_stream_get_type; -alias c_g_file_output_stream_get_etag g_file_output_stream_get_etag; -alias c_g_file_output_stream_query_info g_file_output_stream_query_info; -alias c_g_file_output_stream_query_info_async g_file_output_stream_query_info_async; -alias c_g_file_output_stream_query_info_finish g_file_output_stream_query_info_finish; - -// gio.FilenameCompleter - -alias c_g_filename_completer_get_type g_filename_completer_get_type; -alias c_g_filename_completer_new g_filename_completer_new; -alias c_g_filename_completer_get_completion_suffix g_filename_completer_get_completion_suffix; -alias c_g_filename_completer_get_completions g_filename_completer_get_completions; -alias c_g_filename_completer_set_dirs_only g_filename_completer_set_dirs_only; - -// gio.FilterInputStream - -alias c_g_filter_input_stream_get_type g_filter_input_stream_get_type; -alias c_g_filter_input_stream_get_base_stream g_filter_input_stream_get_base_stream; -alias c_g_filter_input_stream_get_close_base_stream g_filter_input_stream_get_close_base_stream; -alias c_g_filter_input_stream_set_close_base_stream g_filter_input_stream_set_close_base_stream; - -// gio.FilterOutputStream - -alias c_g_filter_output_stream_get_type g_filter_output_stream_get_type; -alias c_g_filter_output_stream_get_base_stream g_filter_output_stream_get_base_stream; -alias c_g_filter_output_stream_get_close_base_stream g_filter_output_stream_get_close_base_stream; -alias c_g_filter_output_stream_set_close_base_stream g_filter_output_stream_set_close_base_stream; - -// gio.IOExtension - -alias c_g_io_extension_get_name g_io_extension_get_name; -alias c_g_io_extension_get_priority g_io_extension_get_priority; -alias c_g_io_extension_get_type g_io_extension_get_type; -alias c_g_io_extension_ref_class g_io_extension_ref_class; - -// gio.IOExtensionPoint - -alias c_g_io_extension_point_get_extension_by_name g_io_extension_point_get_extension_by_name; -alias c_g_io_extension_point_get_extensions g_io_extension_point_get_extensions; -alias c_g_io_extension_point_get_required_type g_io_extension_point_get_required_type; -alias c_g_io_extension_point_set_required_type g_io_extension_point_set_required_type; -alias c_g_io_extension_point_implement g_io_extension_point_implement; -alias c_g_io_extension_point_lookup g_io_extension_point_lookup; -alias c_g_io_extension_point_register g_io_extension_point_register; - -// gio.IOModule - -alias c_g_io_module_get_type g_io_module_get_type; -alias c_g_io_module_new g_io_module_new; -alias c_g_io_modules_load_all_in_directory g_io_modules_load_all_in_directory; -alias c_g_io_modules_load_all_in_directory_with_scope g_io_modules_load_all_in_directory_with_scope; -alias c_g_io_modules_scan_all_in_directory g_io_modules_scan_all_in_directory; -alias c_g_io_modules_scan_all_in_directory_with_scope g_io_modules_scan_all_in_directory_with_scope; - -// gio.IOModuleScope - -alias c_g_io_module_scope_block g_io_module_scope_block; -alias c_g_io_module_scope_free g_io_module_scope_free; -alias c_g_io_module_scope_new g_io_module_scope_new; - -// gio.IOSchedulerJob - -alias c_g_io_scheduler_job_send_to_mainloop g_io_scheduler_job_send_to_mainloop; -alias c_g_io_scheduler_job_send_to_mainloop_async g_io_scheduler_job_send_to_mainloop_async; -alias c_g_io_scheduler_cancel_all_jobs g_io_scheduler_cancel_all_jobs; -alias c_g_io_scheduler_push_job g_io_scheduler_push_job; - -// gio.IOStream - -alias c_g_io_stream_get_type g_io_stream_get_type; -alias c_g_io_stream_splice_finish g_io_stream_splice_finish; -alias c_g_io_stream_clear_pending g_io_stream_clear_pending; -alias c_g_io_stream_close g_io_stream_close; -alias c_g_io_stream_close_async g_io_stream_close_async; -alias c_g_io_stream_close_finish g_io_stream_close_finish; -alias c_g_io_stream_get_input_stream g_io_stream_get_input_stream; -alias c_g_io_stream_get_output_stream g_io_stream_get_output_stream; -alias c_g_io_stream_has_pending g_io_stream_has_pending; -alias c_g_io_stream_is_closed g_io_stream_is_closed; -alias c_g_io_stream_set_pending g_io_stream_set_pending; -alias c_g_io_stream_splice_async g_io_stream_splice_async; - -// gio.Icon - -alias c_g_icon_get_type g_icon_get_type; -alias c_g_icon_deserialize g_icon_deserialize; -alias c_g_icon_hash g_icon_hash; -alias c_g_icon_new_for_string g_icon_new_for_string; -alias c_g_icon_equal g_icon_equal; -alias c_g_icon_serialize g_icon_serialize; -alias c_g_icon_to_string g_icon_to_string; - -// gio.InetAddress - -alias c_g_inet_address_get_type g_inet_address_get_type; -alias c_g_inet_address_new_any g_inet_address_new_any; -alias c_g_inet_address_new_from_bytes g_inet_address_new_from_bytes; -alias c_g_inet_address_new_from_string g_inet_address_new_from_string; -alias c_g_inet_address_new_loopback g_inet_address_new_loopback; -alias c_g_inet_address_equal g_inet_address_equal; -alias c_g_inet_address_get_family g_inet_address_get_family; -alias c_g_inet_address_get_is_any g_inet_address_get_is_any; -alias c_g_inet_address_get_is_link_local g_inet_address_get_is_link_local; -alias c_g_inet_address_get_is_loopback g_inet_address_get_is_loopback; -alias c_g_inet_address_get_is_mc_global g_inet_address_get_is_mc_global; -alias c_g_inet_address_get_is_mc_link_local g_inet_address_get_is_mc_link_local; -alias c_g_inet_address_get_is_mc_node_local g_inet_address_get_is_mc_node_local; -alias c_g_inet_address_get_is_mc_org_local g_inet_address_get_is_mc_org_local; -alias c_g_inet_address_get_is_mc_site_local g_inet_address_get_is_mc_site_local; -alias c_g_inet_address_get_is_multicast g_inet_address_get_is_multicast; -alias c_g_inet_address_get_is_site_local g_inet_address_get_is_site_local; -alias c_g_inet_address_get_native_size g_inet_address_get_native_size; -alias c_g_inet_address_to_bytes g_inet_address_to_bytes; -alias c_g_inet_address_to_string g_inet_address_to_string; - -// gio.InetAddressMask - -alias c_g_inet_address_mask_get_type g_inet_address_mask_get_type; -alias c_g_inet_address_mask_new g_inet_address_mask_new; -alias c_g_inet_address_mask_new_from_string g_inet_address_mask_new_from_string; -alias c_g_inet_address_mask_equal g_inet_address_mask_equal; -alias c_g_inet_address_mask_get_address g_inet_address_mask_get_address; -alias c_g_inet_address_mask_get_family g_inet_address_mask_get_family; -alias c_g_inet_address_mask_get_length g_inet_address_mask_get_length; -alias c_g_inet_address_mask_matches g_inet_address_mask_matches; -alias c_g_inet_address_mask_to_string g_inet_address_mask_to_string; - -// gio.InetSocketAddress - -alias c_g_inet_socket_address_get_type g_inet_socket_address_get_type; -alias c_g_inet_socket_address_new g_inet_socket_address_new; -alias c_g_inet_socket_address_new_from_string g_inet_socket_address_new_from_string; -alias c_g_inet_socket_address_get_address g_inet_socket_address_get_address; -alias c_g_inet_socket_address_get_flowinfo g_inet_socket_address_get_flowinfo; -alias c_g_inet_socket_address_get_port g_inet_socket_address_get_port; -alias c_g_inet_socket_address_get_scope_id g_inet_socket_address_get_scope_id; - -// gio.Initable - -alias c_g_initable_get_type g_initable_get_type; -alias c_g_initable_new g_initable_new; -alias c_g_initable_new_valist g_initable_new_valist; -alias c_g_initable_newv g_initable_newv; -alias c_g_initable_init g_initable_init; - -// gio.InputStream - -alias c_g_input_stream_get_type g_input_stream_get_type; -alias c_g_input_stream_clear_pending g_input_stream_clear_pending; -alias c_g_input_stream_close g_input_stream_close; -alias c_g_input_stream_close_async g_input_stream_close_async; -alias c_g_input_stream_close_finish g_input_stream_close_finish; -alias c_g_input_stream_has_pending g_input_stream_has_pending; -alias c_g_input_stream_is_closed g_input_stream_is_closed; -alias c_g_input_stream_read g_input_stream_read; -alias c_g_input_stream_read_all g_input_stream_read_all; -alias c_g_input_stream_read_all_async g_input_stream_read_all_async; -alias c_g_input_stream_read_all_finish g_input_stream_read_all_finish; -alias c_g_input_stream_read_async g_input_stream_read_async; -alias c_g_input_stream_read_bytes g_input_stream_read_bytes; -alias c_g_input_stream_read_bytes_async g_input_stream_read_bytes_async; -alias c_g_input_stream_read_bytes_finish g_input_stream_read_bytes_finish; -alias c_g_input_stream_read_finish g_input_stream_read_finish; -alias c_g_input_stream_set_pending g_input_stream_set_pending; -alias c_g_input_stream_skip g_input_stream_skip; -alias c_g_input_stream_skip_async g_input_stream_skip_async; -alias c_g_input_stream_skip_finish g_input_stream_skip_finish; - -// gio.ListModel - -alias c_g_list_model_get_type g_list_model_get_type; -alias c_g_list_model_get_item g_list_model_get_item; -alias c_g_list_model_get_item_type g_list_model_get_item_type; -alias c_g_list_model_get_n_items g_list_model_get_n_items; -alias c_g_list_model_get_object g_list_model_get_object; -alias c_g_list_model_items_changed g_list_model_items_changed; - -// gio.ListStore - -alias c_g_list_store_get_type g_list_store_get_type; -alias c_g_list_store_new g_list_store_new; -alias c_g_list_store_append g_list_store_append; -alias c_g_list_store_find g_list_store_find; -alias c_g_list_store_find_with_equal_func g_list_store_find_with_equal_func; -alias c_g_list_store_insert g_list_store_insert; -alias c_g_list_store_insert_sorted g_list_store_insert_sorted; -alias c_g_list_store_remove g_list_store_remove; -alias c_g_list_store_remove_all g_list_store_remove_all; -alias c_g_list_store_sort g_list_store_sort; -alias c_g_list_store_splice g_list_store_splice; - -// gio.LoadableIcon - -alias c_g_loadable_icon_get_type g_loadable_icon_get_type; -alias c_g_loadable_icon_load g_loadable_icon_load; -alias c_g_loadable_icon_load_async g_loadable_icon_load_async; -alias c_g_loadable_icon_load_finish g_loadable_icon_load_finish; - -// gio.MemoryInputStream - -alias c_g_memory_input_stream_get_type g_memory_input_stream_get_type; -alias c_g_memory_input_stream_new g_memory_input_stream_new; -alias c_g_memory_input_stream_new_from_bytes g_memory_input_stream_new_from_bytes; -alias c_g_memory_input_stream_new_from_data g_memory_input_stream_new_from_data; -alias c_g_memory_input_stream_add_bytes g_memory_input_stream_add_bytes; -alias c_g_memory_input_stream_add_data g_memory_input_stream_add_data; - -// gio.MemoryMonitor - -alias c_g_memory_monitor_get_type g_memory_monitor_get_type; -alias c_g_memory_monitor_dup_default g_memory_monitor_dup_default; - -// gio.MemoryOutputStream - -alias c_g_memory_output_stream_get_type g_memory_output_stream_get_type; -alias c_g_memory_output_stream_new g_memory_output_stream_new; -alias c_g_memory_output_stream_new_resizable g_memory_output_stream_new_resizable; -alias c_g_memory_output_stream_get_data g_memory_output_stream_get_data; -alias c_g_memory_output_stream_get_data_size g_memory_output_stream_get_data_size; -alias c_g_memory_output_stream_get_size g_memory_output_stream_get_size; -alias c_g_memory_output_stream_steal_as_bytes g_memory_output_stream_steal_as_bytes; -alias c_g_memory_output_stream_steal_data g_memory_output_stream_steal_data; - -// gio.Menu - -alias c_g_menu_get_type g_menu_get_type; -alias c_g_menu_new g_menu_new; -alias c_g_menu_append g_menu_append; -alias c_g_menu_append_item g_menu_append_item; -alias c_g_menu_append_section g_menu_append_section; -alias c_g_menu_append_submenu g_menu_append_submenu; -alias c_g_menu_freeze g_menu_freeze; -alias c_g_menu_insert g_menu_insert; -alias c_g_menu_insert_item g_menu_insert_item; -alias c_g_menu_insert_section g_menu_insert_section; -alias c_g_menu_insert_submenu g_menu_insert_submenu; -alias c_g_menu_prepend g_menu_prepend; -alias c_g_menu_prepend_item g_menu_prepend_item; -alias c_g_menu_prepend_section g_menu_prepend_section; -alias c_g_menu_prepend_submenu g_menu_prepend_submenu; -alias c_g_menu_remove g_menu_remove; -alias c_g_menu_remove_all g_menu_remove_all; - -// gio.MenuAttributeIter - -alias c_g_menu_attribute_iter_get_type g_menu_attribute_iter_get_type; -alias c_g_menu_attribute_iter_get_name g_menu_attribute_iter_get_name; -alias c_g_menu_attribute_iter_get_next g_menu_attribute_iter_get_next; -alias c_g_menu_attribute_iter_get_value g_menu_attribute_iter_get_value; -alias c_g_menu_attribute_iter_next g_menu_attribute_iter_next; - -// gio.MenuItem - -alias c_g_menu_item_get_type g_menu_item_get_type; -alias c_g_menu_item_new g_menu_item_new; -alias c_g_menu_item_new_from_model g_menu_item_new_from_model; -alias c_g_menu_item_new_section g_menu_item_new_section; -alias c_g_menu_item_new_submenu g_menu_item_new_submenu; -alias c_g_menu_item_get_attribute g_menu_item_get_attribute; -alias c_g_menu_item_get_attribute_value g_menu_item_get_attribute_value; -alias c_g_menu_item_get_link g_menu_item_get_link; -alias c_g_menu_item_set_action_and_target g_menu_item_set_action_and_target; -alias c_g_menu_item_set_action_and_target_value g_menu_item_set_action_and_target_value; -alias c_g_menu_item_set_attribute g_menu_item_set_attribute; -alias c_g_menu_item_set_attribute_value g_menu_item_set_attribute_value; -alias c_g_menu_item_set_detailed_action g_menu_item_set_detailed_action; -alias c_g_menu_item_set_icon g_menu_item_set_icon; -alias c_g_menu_item_set_label g_menu_item_set_label; -alias c_g_menu_item_set_link g_menu_item_set_link; -alias c_g_menu_item_set_section g_menu_item_set_section; -alias c_g_menu_item_set_submenu g_menu_item_set_submenu; - -// gio.MenuLinkIter - -alias c_g_menu_link_iter_get_type g_menu_link_iter_get_type; -alias c_g_menu_link_iter_get_name g_menu_link_iter_get_name; -alias c_g_menu_link_iter_get_next g_menu_link_iter_get_next; -alias c_g_menu_link_iter_get_value g_menu_link_iter_get_value; -alias c_g_menu_link_iter_next g_menu_link_iter_next; - -// gio.MenuModel - -alias c_g_menu_model_get_type g_menu_model_get_type; -alias c_g_menu_model_get_item_attribute g_menu_model_get_item_attribute; -alias c_g_menu_model_get_item_attribute_value g_menu_model_get_item_attribute_value; -alias c_g_menu_model_get_item_link g_menu_model_get_item_link; -alias c_g_menu_model_get_n_items g_menu_model_get_n_items; -alias c_g_menu_model_is_mutable g_menu_model_is_mutable; -alias c_g_menu_model_items_changed g_menu_model_items_changed; -alias c_g_menu_model_iterate_item_attributes g_menu_model_iterate_item_attributes; -alias c_g_menu_model_iterate_item_links g_menu_model_iterate_item_links; - -// gio.Mount - -alias c_g_mount_get_type g_mount_get_type; -alias c_g_mount_can_eject g_mount_can_eject; -alias c_g_mount_can_unmount g_mount_can_unmount; -alias c_g_mount_eject g_mount_eject; -alias c_g_mount_eject_finish g_mount_eject_finish; -alias c_g_mount_eject_with_operation g_mount_eject_with_operation; -alias c_g_mount_eject_with_operation_finish g_mount_eject_with_operation_finish; -alias c_g_mount_get_default_location g_mount_get_default_location; -alias c_g_mount_get_drive g_mount_get_drive; -alias c_g_mount_get_icon g_mount_get_icon; -alias c_g_mount_get_name g_mount_get_name; -alias c_g_mount_get_root g_mount_get_root; -alias c_g_mount_get_sort_key g_mount_get_sort_key; -alias c_g_mount_get_symbolic_icon g_mount_get_symbolic_icon; -alias c_g_mount_get_uuid g_mount_get_uuid; -alias c_g_mount_get_volume g_mount_get_volume; -alias c_g_mount_guess_content_type g_mount_guess_content_type; -alias c_g_mount_guess_content_type_finish g_mount_guess_content_type_finish; -alias c_g_mount_guess_content_type_sync g_mount_guess_content_type_sync; -alias c_g_mount_is_shadowed g_mount_is_shadowed; -alias c_g_mount_remount g_mount_remount; -alias c_g_mount_remount_finish g_mount_remount_finish; -alias c_g_mount_shadow g_mount_shadow; -alias c_g_mount_unmount g_mount_unmount; -alias c_g_mount_unmount_finish g_mount_unmount_finish; -alias c_g_mount_unmount_with_operation g_mount_unmount_with_operation; -alias c_g_mount_unmount_with_operation_finish g_mount_unmount_with_operation_finish; -alias c_g_mount_unshadow g_mount_unshadow; - -// gio.MountOperation - -alias c_g_mount_operation_get_type g_mount_operation_get_type; -alias c_g_mount_operation_new g_mount_operation_new; -alias c_g_mount_operation_get_anonymous g_mount_operation_get_anonymous; -alias c_g_mount_operation_get_choice g_mount_operation_get_choice; -alias c_g_mount_operation_get_domain g_mount_operation_get_domain; -alias c_g_mount_operation_get_is_tcrypt_hidden_volume g_mount_operation_get_is_tcrypt_hidden_volume; -alias c_g_mount_operation_get_is_tcrypt_system_volume g_mount_operation_get_is_tcrypt_system_volume; -alias c_g_mount_operation_get_password g_mount_operation_get_password; -alias c_g_mount_operation_get_password_save g_mount_operation_get_password_save; -alias c_g_mount_operation_get_pim g_mount_operation_get_pim; -alias c_g_mount_operation_get_username g_mount_operation_get_username; -alias c_g_mount_operation_reply g_mount_operation_reply; -alias c_g_mount_operation_set_anonymous g_mount_operation_set_anonymous; -alias c_g_mount_operation_set_choice g_mount_operation_set_choice; -alias c_g_mount_operation_set_domain g_mount_operation_set_domain; -alias c_g_mount_operation_set_is_tcrypt_hidden_volume g_mount_operation_set_is_tcrypt_hidden_volume; -alias c_g_mount_operation_set_is_tcrypt_system_volume g_mount_operation_set_is_tcrypt_system_volume; -alias c_g_mount_operation_set_password g_mount_operation_set_password; -alias c_g_mount_operation_set_password_save g_mount_operation_set_password_save; -alias c_g_mount_operation_set_pim g_mount_operation_set_pim; -alias c_g_mount_operation_set_username g_mount_operation_set_username; - -// gio.NativeSocketAddress - -alias c_g_native_socket_address_get_type g_native_socket_address_get_type; -alias c_g_native_socket_address_new g_native_socket_address_new; - -// gio.NativeVolumeMonitor - -alias c_g_native_volume_monitor_get_type g_native_volume_monitor_get_type; - -// gio.NetworkAddress - -alias c_g_network_address_get_type g_network_address_get_type; -alias c_g_network_address_new g_network_address_new; -alias c_g_network_address_new_loopback g_network_address_new_loopback; -alias c_g_network_address_parse g_network_address_parse; -alias c_g_network_address_parse_uri g_network_address_parse_uri; -alias c_g_network_address_get_hostname g_network_address_get_hostname; -alias c_g_network_address_get_port g_network_address_get_port; -alias c_g_network_address_get_scheme g_network_address_get_scheme; - -// gio.NetworkMonitor - -alias c_g_network_monitor_get_type g_network_monitor_get_type; -alias c_g_network_monitor_get_default g_network_monitor_get_default; -alias c_g_network_monitor_can_reach g_network_monitor_can_reach; -alias c_g_network_monitor_can_reach_async g_network_monitor_can_reach_async; -alias c_g_network_monitor_can_reach_finish g_network_monitor_can_reach_finish; -alias c_g_network_monitor_get_connectivity g_network_monitor_get_connectivity; -alias c_g_network_monitor_get_network_available g_network_monitor_get_network_available; -alias c_g_network_monitor_get_network_metered g_network_monitor_get_network_metered; - -// gio.NetworkService - -alias c_g_network_service_get_type g_network_service_get_type; -alias c_g_network_service_new g_network_service_new; -alias c_g_network_service_get_domain g_network_service_get_domain; -alias c_g_network_service_get_protocol g_network_service_get_protocol; -alias c_g_network_service_get_scheme g_network_service_get_scheme; -alias c_g_network_service_get_service g_network_service_get_service; -alias c_g_network_service_set_scheme g_network_service_set_scheme; - -// gio.Notification - -alias c_g_notification_get_type g_notification_get_type; -alias c_g_notification_new g_notification_new; -alias c_g_notification_add_button g_notification_add_button; -alias c_g_notification_add_button_with_target g_notification_add_button_with_target; -alias c_g_notification_add_button_with_target_value g_notification_add_button_with_target_value; -alias c_g_notification_set_body g_notification_set_body; -alias c_g_notification_set_default_action g_notification_set_default_action; -alias c_g_notification_set_default_action_and_target g_notification_set_default_action_and_target; -alias c_g_notification_set_default_action_and_target_value g_notification_set_default_action_and_target_value; -alias c_g_notification_set_icon g_notification_set_icon; -alias c_g_notification_set_priority g_notification_set_priority; -alias c_g_notification_set_title g_notification_set_title; -alias c_g_notification_set_urgent g_notification_set_urgent; - -// gio.OutputStream - -alias c_g_output_stream_get_type g_output_stream_get_type; -alias c_g_output_stream_clear_pending g_output_stream_clear_pending; -alias c_g_output_stream_close g_output_stream_close; -alias c_g_output_stream_close_async g_output_stream_close_async; -alias c_g_output_stream_close_finish g_output_stream_close_finish; -alias c_g_output_stream_flush g_output_stream_flush; -alias c_g_output_stream_flush_async g_output_stream_flush_async; -alias c_g_output_stream_flush_finish g_output_stream_flush_finish; -alias c_g_output_stream_has_pending g_output_stream_has_pending; -alias c_g_output_stream_is_closed g_output_stream_is_closed; -alias c_g_output_stream_is_closing g_output_stream_is_closing; -alias c_g_output_stream_printf g_output_stream_printf; -alias c_g_output_stream_set_pending g_output_stream_set_pending; -alias c_g_output_stream_splice g_output_stream_splice; -alias c_g_output_stream_splice_async g_output_stream_splice_async; -alias c_g_output_stream_splice_finish g_output_stream_splice_finish; -alias c_g_output_stream_vprintf g_output_stream_vprintf; -alias c_g_output_stream_write g_output_stream_write; -alias c_g_output_stream_write_all g_output_stream_write_all; -alias c_g_output_stream_write_all_async g_output_stream_write_all_async; -alias c_g_output_stream_write_all_finish g_output_stream_write_all_finish; -alias c_g_output_stream_write_async g_output_stream_write_async; -alias c_g_output_stream_write_bytes g_output_stream_write_bytes; -alias c_g_output_stream_write_bytes_async g_output_stream_write_bytes_async; -alias c_g_output_stream_write_bytes_finish g_output_stream_write_bytes_finish; -alias c_g_output_stream_write_finish g_output_stream_write_finish; -alias c_g_output_stream_writev g_output_stream_writev; -alias c_g_output_stream_writev_all g_output_stream_writev_all; -alias c_g_output_stream_writev_all_async g_output_stream_writev_all_async; -alias c_g_output_stream_writev_all_finish g_output_stream_writev_all_finish; -alias c_g_output_stream_writev_async g_output_stream_writev_async; -alias c_g_output_stream_writev_finish g_output_stream_writev_finish; - -// gio.Permission - -alias c_g_permission_get_type g_permission_get_type; -alias c_g_permission_acquire g_permission_acquire; -alias c_g_permission_acquire_async g_permission_acquire_async; -alias c_g_permission_acquire_finish g_permission_acquire_finish; -alias c_g_permission_get_allowed g_permission_get_allowed; -alias c_g_permission_get_can_acquire g_permission_get_can_acquire; -alias c_g_permission_get_can_release g_permission_get_can_release; -alias c_g_permission_impl_update g_permission_impl_update; -alias c_g_permission_release g_permission_release; -alias c_g_permission_release_async g_permission_release_async; -alias c_g_permission_release_finish g_permission_release_finish; - -// gio.PollableInputStream - -alias c_g_pollable_input_stream_get_type g_pollable_input_stream_get_type; -alias c_g_pollable_input_stream_can_poll g_pollable_input_stream_can_poll; -alias c_g_pollable_input_stream_create_source g_pollable_input_stream_create_source; -alias c_g_pollable_input_stream_is_readable g_pollable_input_stream_is_readable; -alias c_g_pollable_input_stream_read_nonblocking g_pollable_input_stream_read_nonblocking; - -// gio.PollableOutputStream - -alias c_g_pollable_output_stream_get_type g_pollable_output_stream_get_type; -alias c_g_pollable_output_stream_can_poll g_pollable_output_stream_can_poll; -alias c_g_pollable_output_stream_create_source g_pollable_output_stream_create_source; -alias c_g_pollable_output_stream_is_writable g_pollable_output_stream_is_writable; -alias c_g_pollable_output_stream_write_nonblocking g_pollable_output_stream_write_nonblocking; -alias c_g_pollable_output_stream_writev_nonblocking g_pollable_output_stream_writev_nonblocking; - -// gio.PropertyAction - -alias c_g_property_action_get_type g_property_action_get_type; -alias c_g_property_action_new g_property_action_new; - -// gio.Proxy - -alias c_g_proxy_get_type g_proxy_get_type; -alias c_g_proxy_get_default_for_protocol g_proxy_get_default_for_protocol; -alias c_g_proxy_connect g_proxy_connect; -alias c_g_proxy_connect_async g_proxy_connect_async; -alias c_g_proxy_connect_finish g_proxy_connect_finish; -alias c_g_proxy_supports_hostname g_proxy_supports_hostname; - -// gio.ProxyAddress - -alias c_g_proxy_address_get_type g_proxy_address_get_type; -alias c_g_proxy_address_new g_proxy_address_new; -alias c_g_proxy_address_get_destination_hostname g_proxy_address_get_destination_hostname; -alias c_g_proxy_address_get_destination_port g_proxy_address_get_destination_port; -alias c_g_proxy_address_get_destination_protocol g_proxy_address_get_destination_protocol; -alias c_g_proxy_address_get_password g_proxy_address_get_password; -alias c_g_proxy_address_get_protocol g_proxy_address_get_protocol; -alias c_g_proxy_address_get_uri g_proxy_address_get_uri; -alias c_g_proxy_address_get_username g_proxy_address_get_username; - -// gio.ProxyAddressEnumerator - -alias c_g_proxy_address_enumerator_get_type g_proxy_address_enumerator_get_type; - -// gio.ProxyResolver - -alias c_g_proxy_resolver_get_type g_proxy_resolver_get_type; -alias c_g_proxy_resolver_get_default g_proxy_resolver_get_default; -alias c_g_proxy_resolver_is_supported g_proxy_resolver_is_supported; -alias c_g_proxy_resolver_lookup g_proxy_resolver_lookup; -alias c_g_proxy_resolver_lookup_async g_proxy_resolver_lookup_async; -alias c_g_proxy_resolver_lookup_finish g_proxy_resolver_lookup_finish; - -// gio.RemoteActionGroup - -alias c_g_remote_action_group_get_type g_remote_action_group_get_type; -alias c_g_remote_action_group_activate_action_full g_remote_action_group_activate_action_full; -alias c_g_remote_action_group_change_action_state_full g_remote_action_group_change_action_state_full; - -// gio.Resolver - -alias c_g_resolver_get_type g_resolver_get_type; -alias c_g_resolver_free_addresses g_resolver_free_addresses; -alias c_g_resolver_free_targets g_resolver_free_targets; -alias c_g_resolver_get_default g_resolver_get_default; -alias c_g_resolver_lookup_by_address g_resolver_lookup_by_address; -alias c_g_resolver_lookup_by_address_async g_resolver_lookup_by_address_async; -alias c_g_resolver_lookup_by_address_finish g_resolver_lookup_by_address_finish; -alias c_g_resolver_lookup_by_name g_resolver_lookup_by_name; -alias c_g_resolver_lookup_by_name_async g_resolver_lookup_by_name_async; -alias c_g_resolver_lookup_by_name_finish g_resolver_lookup_by_name_finish; -alias c_g_resolver_lookup_by_name_with_flags g_resolver_lookup_by_name_with_flags; -alias c_g_resolver_lookup_by_name_with_flags_async g_resolver_lookup_by_name_with_flags_async; -alias c_g_resolver_lookup_by_name_with_flags_finish g_resolver_lookup_by_name_with_flags_finish; -alias c_g_resolver_lookup_records g_resolver_lookup_records; -alias c_g_resolver_lookup_records_async g_resolver_lookup_records_async; -alias c_g_resolver_lookup_records_finish g_resolver_lookup_records_finish; -alias c_g_resolver_lookup_service g_resolver_lookup_service; -alias c_g_resolver_lookup_service_async g_resolver_lookup_service_async; -alias c_g_resolver_lookup_service_finish g_resolver_lookup_service_finish; -alias c_g_resolver_set_default g_resolver_set_default; - -// gio.Resource - -alias c_g_resource_get_type g_resource_get_type; -alias c_g_resource_new_from_data g_resource_new_from_data; -alias c_g_resources_register g_resources_register; -alias c_g_resources_unregister g_resources_unregister; -alias c_g_resource_enumerate_children g_resource_enumerate_children; -alias c_g_resource_get_info g_resource_get_info; -alias c_g_resource_lookup_data g_resource_lookup_data; -alias c_g_resource_open_stream g_resource_open_stream; -alias c_g_resource_ref g_resource_ref; -alias c_g_resource_unref g_resource_unref; -alias c_g_resource_load g_resource_load; -alias c_g_resources_enumerate_children g_resources_enumerate_children; -alias c_g_resources_get_info g_resources_get_info; -alias c_g_resources_lookup_data g_resources_lookup_data; -alias c_g_resources_open_stream g_resources_open_stream; - -// gio.Seekable - -alias c_g_seekable_get_type g_seekable_get_type; -alias c_g_seekable_can_seek g_seekable_can_seek; -alias c_g_seekable_can_truncate g_seekable_can_truncate; -alias c_g_seekable_seek g_seekable_seek; -alias c_g_seekable_tell g_seekable_tell; -alias c_g_seekable_truncate g_seekable_truncate; - -// gio.Settings - -alias c_g_settings_get_type g_settings_get_type; -alias c_g_settings_new g_settings_new; -alias c_g_settings_new_full g_settings_new_full; -alias c_g_settings_new_with_backend g_settings_new_with_backend; -alias c_g_settings_new_with_backend_and_path g_settings_new_with_backend_and_path; -alias c_g_settings_new_with_path g_settings_new_with_path; -alias c_g_settings_list_relocatable_schemas g_settings_list_relocatable_schemas; -alias c_g_settings_list_schemas g_settings_list_schemas; -alias c_g_settings_sync g_settings_sync; -alias c_g_settings_unbind g_settings_unbind; -alias c_g_settings_apply g_settings_apply; -alias c_g_settings_bind g_settings_bind; -alias c_g_settings_bind_with_mapping g_settings_bind_with_mapping; -alias c_g_settings_bind_writable g_settings_bind_writable; -alias c_g_settings_create_action g_settings_create_action; -alias c_g_settings_delay g_settings_delay; -alias c_g_settings_get g_settings_get; -alias c_g_settings_get_boolean g_settings_get_boolean; -alias c_g_settings_get_child g_settings_get_child; -alias c_g_settings_get_default_value g_settings_get_default_value; -alias c_g_settings_get_double g_settings_get_double; -alias c_g_settings_get_enum g_settings_get_enum; -alias c_g_settings_get_flags g_settings_get_flags; -alias c_g_settings_get_has_unapplied g_settings_get_has_unapplied; -alias c_g_settings_get_int g_settings_get_int; -alias c_g_settings_get_int64 g_settings_get_int64; -alias c_g_settings_get_mapped g_settings_get_mapped; -alias c_g_settings_get_range g_settings_get_range; -alias c_g_settings_get_string g_settings_get_string; -alias c_g_settings_get_strv g_settings_get_strv; -alias c_g_settings_get_uint g_settings_get_uint; -alias c_g_settings_get_uint64 g_settings_get_uint64; -alias c_g_settings_get_user_value g_settings_get_user_value; -alias c_g_settings_get_value g_settings_get_value; -alias c_g_settings_is_writable g_settings_is_writable; -alias c_g_settings_list_children g_settings_list_children; -alias c_g_settings_list_keys g_settings_list_keys; -alias c_g_settings_range_check g_settings_range_check; -alias c_g_settings_reset g_settings_reset; -alias c_g_settings_revert g_settings_revert; -alias c_g_settings_set g_settings_set; -alias c_g_settings_set_boolean g_settings_set_boolean; -alias c_g_settings_set_double g_settings_set_double; -alias c_g_settings_set_enum g_settings_set_enum; -alias c_g_settings_set_flags g_settings_set_flags; -alias c_g_settings_set_int g_settings_set_int; -alias c_g_settings_set_int64 g_settings_set_int64; -alias c_g_settings_set_string g_settings_set_string; -alias c_g_settings_set_strv g_settings_set_strv; -alias c_g_settings_set_uint g_settings_set_uint; -alias c_g_settings_set_uint64 g_settings_set_uint64; -alias c_g_settings_set_value g_settings_set_value; - -// gio.SettingsBackend - -alias c_g_settings_backend_get_type g_settings_backend_get_type; -alias c_g_settings_backend_flatten_tree g_settings_backend_flatten_tree; -alias c_g_settings_backend_get_default g_settings_backend_get_default; -alias c_g_settings_backend_changed g_settings_backend_changed; -alias c_g_settings_backend_changed_tree g_settings_backend_changed_tree; -alias c_g_settings_backend_keys_changed g_settings_backend_keys_changed; -alias c_g_settings_backend_path_changed g_settings_backend_path_changed; -alias c_g_settings_backend_path_writable_changed g_settings_backend_path_writable_changed; -alias c_g_settings_backend_writable_changed g_settings_backend_writable_changed; -alias c_g_keyfile_settings_backend_new g_keyfile_settings_backend_new; -alias c_g_memory_settings_backend_new g_memory_settings_backend_new; -alias c_g_null_settings_backend_new g_null_settings_backend_new; - -// gio.SettingsSchema - -alias c_g_settings_schema_get_type g_settings_schema_get_type; -alias c_g_settings_schema_get_id g_settings_schema_get_id; -alias c_g_settings_schema_get_key g_settings_schema_get_key; -alias c_g_settings_schema_get_path g_settings_schema_get_path; -alias c_g_settings_schema_has_key g_settings_schema_has_key; -alias c_g_settings_schema_list_children g_settings_schema_list_children; -alias c_g_settings_schema_list_keys g_settings_schema_list_keys; -alias c_g_settings_schema_ref g_settings_schema_ref; -alias c_g_settings_schema_unref g_settings_schema_unref; - -// gio.SettingsSchemaKey - -alias c_g_settings_schema_key_get_type g_settings_schema_key_get_type; -alias c_g_settings_schema_key_get_default_value g_settings_schema_key_get_default_value; -alias c_g_settings_schema_key_get_description g_settings_schema_key_get_description; -alias c_g_settings_schema_key_get_name g_settings_schema_key_get_name; -alias c_g_settings_schema_key_get_range g_settings_schema_key_get_range; -alias c_g_settings_schema_key_get_summary g_settings_schema_key_get_summary; -alias c_g_settings_schema_key_get_value_type g_settings_schema_key_get_value_type; -alias c_g_settings_schema_key_range_check g_settings_schema_key_range_check; -alias c_g_settings_schema_key_ref g_settings_schema_key_ref; -alias c_g_settings_schema_key_unref g_settings_schema_key_unref; - -// gio.SettingsSchemaSource - -alias c_g_settings_schema_source_get_type g_settings_schema_source_get_type; -alias c_g_settings_schema_source_new_from_directory g_settings_schema_source_new_from_directory; -alias c_g_settings_schema_source_list_schemas g_settings_schema_source_list_schemas; -alias c_g_settings_schema_source_lookup g_settings_schema_source_lookup; -alias c_g_settings_schema_source_ref g_settings_schema_source_ref; -alias c_g_settings_schema_source_unref g_settings_schema_source_unref; -alias c_g_settings_schema_source_get_default g_settings_schema_source_get_default; - -// gio.SimpleAction - -alias c_g_simple_action_get_type g_simple_action_get_type; -alias c_g_simple_action_new g_simple_action_new; -alias c_g_simple_action_new_stateful g_simple_action_new_stateful; -alias c_g_simple_action_set_enabled g_simple_action_set_enabled; -alias c_g_simple_action_set_state g_simple_action_set_state; -alias c_g_simple_action_set_state_hint g_simple_action_set_state_hint; - -// gio.SimpleActionGroup - -alias c_g_simple_action_group_get_type g_simple_action_group_get_type; -alias c_g_simple_action_group_new g_simple_action_group_new; -alias c_g_simple_action_group_add_entries g_simple_action_group_add_entries; -alias c_g_simple_action_group_insert g_simple_action_group_insert; -alias c_g_simple_action_group_lookup g_simple_action_group_lookup; -alias c_g_simple_action_group_remove g_simple_action_group_remove; - -// gio.SimpleAsyncResult - -alias c_g_simple_async_result_get_type g_simple_async_result_get_type; -alias c_g_simple_async_result_new g_simple_async_result_new; -alias c_g_simple_async_result_new_error g_simple_async_result_new_error; -alias c_g_simple_async_result_new_from_error g_simple_async_result_new_from_error; -alias c_g_simple_async_result_new_take_error g_simple_async_result_new_take_error; -alias c_g_simple_async_result_is_valid g_simple_async_result_is_valid; -alias c_g_simple_async_result_complete g_simple_async_result_complete; -alias c_g_simple_async_result_complete_in_idle g_simple_async_result_complete_in_idle; -alias c_g_simple_async_result_get_op_res_gboolean g_simple_async_result_get_op_res_gboolean; -alias c_g_simple_async_result_get_op_res_gpointer g_simple_async_result_get_op_res_gpointer; -alias c_g_simple_async_result_get_op_res_gssize g_simple_async_result_get_op_res_gssize; -alias c_g_simple_async_result_get_source_tag g_simple_async_result_get_source_tag; -alias c_g_simple_async_result_propagate_error g_simple_async_result_propagate_error; -alias c_g_simple_async_result_run_in_thread g_simple_async_result_run_in_thread; -alias c_g_simple_async_result_set_check_cancellable g_simple_async_result_set_check_cancellable; -alias c_g_simple_async_result_set_error g_simple_async_result_set_error; -alias c_g_simple_async_result_set_error_va g_simple_async_result_set_error_va; -alias c_g_simple_async_result_set_from_error g_simple_async_result_set_from_error; -alias c_g_simple_async_result_set_handle_cancellation g_simple_async_result_set_handle_cancellation; -alias c_g_simple_async_result_set_op_res_gboolean g_simple_async_result_set_op_res_gboolean; -alias c_g_simple_async_result_set_op_res_gpointer g_simple_async_result_set_op_res_gpointer; -alias c_g_simple_async_result_set_op_res_gssize g_simple_async_result_set_op_res_gssize; -alias c_g_simple_async_result_take_error g_simple_async_result_take_error; -alias c_g_simple_async_report_error_in_idle g_simple_async_report_error_in_idle; -alias c_g_simple_async_report_gerror_in_idle g_simple_async_report_gerror_in_idle; -alias c_g_simple_async_report_take_gerror_in_idle g_simple_async_report_take_gerror_in_idle; - -// gio.SimpleIOStream - -alias c_g_simple_io_stream_get_type g_simple_io_stream_get_type; -alias c_g_simple_io_stream_new g_simple_io_stream_new; - -// gio.SimplePermission - -alias c_g_simple_permission_get_type g_simple_permission_get_type; -alias c_g_simple_permission_new g_simple_permission_new; - -// gio.SimpleProxyResolver - -alias c_g_simple_proxy_resolver_get_type g_simple_proxy_resolver_get_type; -alias c_g_simple_proxy_resolver_new g_simple_proxy_resolver_new; -alias c_g_simple_proxy_resolver_set_default_proxy g_simple_proxy_resolver_set_default_proxy; -alias c_g_simple_proxy_resolver_set_ignore_hosts g_simple_proxy_resolver_set_ignore_hosts; -alias c_g_simple_proxy_resolver_set_uri_proxy g_simple_proxy_resolver_set_uri_proxy; - -// gio.Socket - -alias c_g_socket_get_type g_socket_get_type; -alias c_g_socket_new g_socket_new; -alias c_g_socket_new_from_fd g_socket_new_from_fd; -alias c_g_socket_accept g_socket_accept; -alias c_g_socket_bind g_socket_bind; -alias c_g_socket_check_connect_result g_socket_check_connect_result; -alias c_g_socket_close g_socket_close; -alias c_g_socket_condition_check g_socket_condition_check; -alias c_g_socket_condition_timed_wait g_socket_condition_timed_wait; -alias c_g_socket_condition_wait g_socket_condition_wait; -alias c_g_socket_connect g_socket_connect; -alias c_g_socket_connection_factory_create_connection g_socket_connection_factory_create_connection; -alias c_g_socket_create_source g_socket_create_source; -alias c_g_socket_get_available_bytes g_socket_get_available_bytes; -alias c_g_socket_get_blocking g_socket_get_blocking; -alias c_g_socket_get_broadcast g_socket_get_broadcast; -alias c_g_socket_get_credentials g_socket_get_credentials; -alias c_g_socket_get_family g_socket_get_family; -alias c_g_socket_get_fd g_socket_get_fd; -alias c_g_socket_get_keepalive g_socket_get_keepalive; -alias c_g_socket_get_listen_backlog g_socket_get_listen_backlog; -alias c_g_socket_get_local_address g_socket_get_local_address; -alias c_g_socket_get_multicast_loopback g_socket_get_multicast_loopback; -alias c_g_socket_get_multicast_ttl g_socket_get_multicast_ttl; -alias c_g_socket_get_option g_socket_get_option; -alias c_g_socket_get_protocol g_socket_get_protocol; -alias c_g_socket_get_remote_address g_socket_get_remote_address; -alias c_g_socket_get_socket_type g_socket_get_socket_type; -alias c_g_socket_get_timeout g_socket_get_timeout; -alias c_g_socket_get_ttl g_socket_get_ttl; -alias c_g_socket_is_closed g_socket_is_closed; -alias c_g_socket_is_connected g_socket_is_connected; -alias c_g_socket_join_multicast_group g_socket_join_multicast_group; -alias c_g_socket_join_multicast_group_ssm g_socket_join_multicast_group_ssm; -alias c_g_socket_leave_multicast_group g_socket_leave_multicast_group; -alias c_g_socket_leave_multicast_group_ssm g_socket_leave_multicast_group_ssm; -alias c_g_socket_listen g_socket_listen; -alias c_g_socket_receive g_socket_receive; -alias c_g_socket_receive_from g_socket_receive_from; -alias c_g_socket_receive_message g_socket_receive_message; -alias c_g_socket_receive_messages g_socket_receive_messages; -alias c_g_socket_receive_with_blocking g_socket_receive_with_blocking; -alias c_g_socket_send g_socket_send; -alias c_g_socket_send_message g_socket_send_message; -alias c_g_socket_send_message_with_timeout g_socket_send_message_with_timeout; -alias c_g_socket_send_messages g_socket_send_messages; -alias c_g_socket_send_to g_socket_send_to; -alias c_g_socket_send_with_blocking g_socket_send_with_blocking; -alias c_g_socket_set_blocking g_socket_set_blocking; -alias c_g_socket_set_broadcast g_socket_set_broadcast; -alias c_g_socket_set_keepalive g_socket_set_keepalive; -alias c_g_socket_set_listen_backlog g_socket_set_listen_backlog; -alias c_g_socket_set_multicast_loopback g_socket_set_multicast_loopback; -alias c_g_socket_set_multicast_ttl g_socket_set_multicast_ttl; -alias c_g_socket_set_option g_socket_set_option; -alias c_g_socket_set_timeout g_socket_set_timeout; -alias c_g_socket_set_ttl g_socket_set_ttl; -alias c_g_socket_shutdown g_socket_shutdown; -alias c_g_socket_speaks_ipv4 g_socket_speaks_ipv4; - -// gio.SocketAddress - -alias c_g_socket_address_get_type g_socket_address_get_type; -alias c_g_socket_address_new_from_native g_socket_address_new_from_native; -alias c_g_socket_address_get_family g_socket_address_get_family; -alias c_g_socket_address_get_native_size g_socket_address_get_native_size; -alias c_g_socket_address_to_native g_socket_address_to_native; - -// gio.SocketAddressEnumerator - -alias c_g_socket_address_enumerator_get_type g_socket_address_enumerator_get_type; -alias c_g_socket_address_enumerator_next g_socket_address_enumerator_next; -alias c_g_socket_address_enumerator_next_async g_socket_address_enumerator_next_async; -alias c_g_socket_address_enumerator_next_finish g_socket_address_enumerator_next_finish; - -// gio.SocketClient - -alias c_g_socket_client_get_type g_socket_client_get_type; -alias c_g_socket_client_new g_socket_client_new; -alias c_g_socket_client_add_application_proxy g_socket_client_add_application_proxy; -alias c_g_socket_client_connect g_socket_client_connect; -alias c_g_socket_client_connect_async g_socket_client_connect_async; -alias c_g_socket_client_connect_finish g_socket_client_connect_finish; -alias c_g_socket_client_connect_to_host g_socket_client_connect_to_host; -alias c_g_socket_client_connect_to_host_async g_socket_client_connect_to_host_async; -alias c_g_socket_client_connect_to_host_finish g_socket_client_connect_to_host_finish; -alias c_g_socket_client_connect_to_service g_socket_client_connect_to_service; -alias c_g_socket_client_connect_to_service_async g_socket_client_connect_to_service_async; -alias c_g_socket_client_connect_to_service_finish g_socket_client_connect_to_service_finish; -alias c_g_socket_client_connect_to_uri g_socket_client_connect_to_uri; -alias c_g_socket_client_connect_to_uri_async g_socket_client_connect_to_uri_async; -alias c_g_socket_client_connect_to_uri_finish g_socket_client_connect_to_uri_finish; -alias c_g_socket_client_get_enable_proxy g_socket_client_get_enable_proxy; -alias c_g_socket_client_get_family g_socket_client_get_family; -alias c_g_socket_client_get_local_address g_socket_client_get_local_address; -alias c_g_socket_client_get_protocol g_socket_client_get_protocol; -alias c_g_socket_client_get_proxy_resolver g_socket_client_get_proxy_resolver; -alias c_g_socket_client_get_socket_type g_socket_client_get_socket_type; -alias c_g_socket_client_get_timeout g_socket_client_get_timeout; -alias c_g_socket_client_get_tls g_socket_client_get_tls; -alias c_g_socket_client_get_tls_validation_flags g_socket_client_get_tls_validation_flags; -alias c_g_socket_client_set_enable_proxy g_socket_client_set_enable_proxy; -alias c_g_socket_client_set_family g_socket_client_set_family; -alias c_g_socket_client_set_local_address g_socket_client_set_local_address; -alias c_g_socket_client_set_protocol g_socket_client_set_protocol; -alias c_g_socket_client_set_proxy_resolver g_socket_client_set_proxy_resolver; -alias c_g_socket_client_set_socket_type g_socket_client_set_socket_type; -alias c_g_socket_client_set_timeout g_socket_client_set_timeout; -alias c_g_socket_client_set_tls g_socket_client_set_tls; -alias c_g_socket_client_set_tls_validation_flags g_socket_client_set_tls_validation_flags; - -// gio.SocketConnectable - -alias c_g_socket_connectable_get_type g_socket_connectable_get_type; -alias c_g_socket_connectable_enumerate g_socket_connectable_enumerate; -alias c_g_socket_connectable_proxy_enumerate g_socket_connectable_proxy_enumerate; -alias c_g_socket_connectable_to_string g_socket_connectable_to_string; - -// gio.SocketConnection - -alias c_g_socket_connection_get_type g_socket_connection_get_type; -alias c_g_socket_connection_factory_lookup_type g_socket_connection_factory_lookup_type; -alias c_g_socket_connection_factory_register_type g_socket_connection_factory_register_type; -alias c_g_socket_connection_connect g_socket_connection_connect; -alias c_g_socket_connection_connect_async g_socket_connection_connect_async; -alias c_g_socket_connection_connect_finish g_socket_connection_connect_finish; -alias c_g_socket_connection_get_local_address g_socket_connection_get_local_address; -alias c_g_socket_connection_get_remote_address g_socket_connection_get_remote_address; -alias c_g_socket_connection_get_socket g_socket_connection_get_socket; -alias c_g_socket_connection_is_connected g_socket_connection_is_connected; - -// gio.SocketControlMessage - -alias c_g_socket_control_message_get_type g_socket_control_message_get_type; -alias c_g_socket_control_message_deserialize g_socket_control_message_deserialize; -alias c_g_socket_control_message_get_level g_socket_control_message_get_level; -alias c_g_socket_control_message_get_msg_type g_socket_control_message_get_msg_type; -alias c_g_socket_control_message_get_size g_socket_control_message_get_size; -alias c_g_socket_control_message_serialize g_socket_control_message_serialize; - -// gio.SocketListener - -alias c_g_socket_listener_get_type g_socket_listener_get_type; -alias c_g_socket_listener_new g_socket_listener_new; -alias c_g_socket_listener_accept g_socket_listener_accept; -alias c_g_socket_listener_accept_async g_socket_listener_accept_async; -alias c_g_socket_listener_accept_finish g_socket_listener_accept_finish; -alias c_g_socket_listener_accept_socket g_socket_listener_accept_socket; -alias c_g_socket_listener_accept_socket_async g_socket_listener_accept_socket_async; -alias c_g_socket_listener_accept_socket_finish g_socket_listener_accept_socket_finish; -alias c_g_socket_listener_add_address g_socket_listener_add_address; -alias c_g_socket_listener_add_any_inet_port g_socket_listener_add_any_inet_port; -alias c_g_socket_listener_add_inet_port g_socket_listener_add_inet_port; -alias c_g_socket_listener_add_socket g_socket_listener_add_socket; -alias c_g_socket_listener_close g_socket_listener_close; -alias c_g_socket_listener_set_backlog g_socket_listener_set_backlog; - -// gio.SocketService - -alias c_g_socket_service_get_type g_socket_service_get_type; -alias c_g_socket_service_new g_socket_service_new; -alias c_g_socket_service_is_active g_socket_service_is_active; -alias c_g_socket_service_start g_socket_service_start; -alias c_g_socket_service_stop g_socket_service_stop; - -// gio.SrvTarget - -alias c_g_srv_target_get_type g_srv_target_get_type; -alias c_g_srv_target_new g_srv_target_new; -alias c_g_srv_target_copy g_srv_target_copy; -alias c_g_srv_target_free g_srv_target_free; -alias c_g_srv_target_get_hostname g_srv_target_get_hostname; -alias c_g_srv_target_get_port g_srv_target_get_port; -alias c_g_srv_target_get_priority g_srv_target_get_priority; -alias c_g_srv_target_get_weight g_srv_target_get_weight; -alias c_g_srv_target_list_sort g_srv_target_list_sort; - -// gio.StaticResource - -alias c_g_static_resource_fini g_static_resource_fini; -alias c_g_static_resource_get_resource g_static_resource_get_resource; -alias c_g_static_resource_init g_static_resource_init; - -// gio.Subprocess - -alias c_g_subprocess_get_type g_subprocess_get_type; -alias c_g_subprocess_new g_subprocess_new; -alias c_g_subprocess_newv g_subprocess_newv; -alias c_g_subprocess_communicate g_subprocess_communicate; -alias c_g_subprocess_communicate_async g_subprocess_communicate_async; -alias c_g_subprocess_communicate_finish g_subprocess_communicate_finish; -alias c_g_subprocess_communicate_utf8 g_subprocess_communicate_utf8; -alias c_g_subprocess_communicate_utf8_async g_subprocess_communicate_utf8_async; -alias c_g_subprocess_communicate_utf8_finish g_subprocess_communicate_utf8_finish; -alias c_g_subprocess_force_exit g_subprocess_force_exit; -alias c_g_subprocess_get_exit_status g_subprocess_get_exit_status; -alias c_g_subprocess_get_identifier g_subprocess_get_identifier; -alias c_g_subprocess_get_if_exited g_subprocess_get_if_exited; -alias c_g_subprocess_get_if_signaled g_subprocess_get_if_signaled; -alias c_g_subprocess_get_status g_subprocess_get_status; -alias c_g_subprocess_get_stderr_pipe g_subprocess_get_stderr_pipe; -alias c_g_subprocess_get_stdin_pipe g_subprocess_get_stdin_pipe; -alias c_g_subprocess_get_stdout_pipe g_subprocess_get_stdout_pipe; -alias c_g_subprocess_get_successful g_subprocess_get_successful; -alias c_g_subprocess_get_term_sig g_subprocess_get_term_sig; -alias c_g_subprocess_send_signal g_subprocess_send_signal; -alias c_g_subprocess_wait g_subprocess_wait; -alias c_g_subprocess_wait_async g_subprocess_wait_async; -alias c_g_subprocess_wait_check g_subprocess_wait_check; -alias c_g_subprocess_wait_check_async g_subprocess_wait_check_async; -alias c_g_subprocess_wait_check_finish g_subprocess_wait_check_finish; -alias c_g_subprocess_wait_finish g_subprocess_wait_finish; - -// gio.SubprocessLauncher - -alias c_g_subprocess_launcher_get_type g_subprocess_launcher_get_type; -alias c_g_subprocess_launcher_new g_subprocess_launcher_new; -alias c_g_subprocess_launcher_close g_subprocess_launcher_close; -alias c_g_subprocess_launcher_getenv g_subprocess_launcher_getenv; -alias c_g_subprocess_launcher_set_child_setup g_subprocess_launcher_set_child_setup; -alias c_g_subprocess_launcher_set_cwd g_subprocess_launcher_set_cwd; -alias c_g_subprocess_launcher_set_environ g_subprocess_launcher_set_environ; -alias c_g_subprocess_launcher_set_flags g_subprocess_launcher_set_flags; -alias c_g_subprocess_launcher_set_stderr_file_path g_subprocess_launcher_set_stderr_file_path; -alias c_g_subprocess_launcher_set_stdin_file_path g_subprocess_launcher_set_stdin_file_path; -alias c_g_subprocess_launcher_set_stdout_file_path g_subprocess_launcher_set_stdout_file_path; -alias c_g_subprocess_launcher_setenv g_subprocess_launcher_setenv; -alias c_g_subprocess_launcher_spawn g_subprocess_launcher_spawn; -alias c_g_subprocess_launcher_spawnv g_subprocess_launcher_spawnv; -alias c_g_subprocess_launcher_take_fd g_subprocess_launcher_take_fd; -alias c_g_subprocess_launcher_take_stderr_fd g_subprocess_launcher_take_stderr_fd; -alias c_g_subprocess_launcher_take_stdin_fd g_subprocess_launcher_take_stdin_fd; -alias c_g_subprocess_launcher_take_stdout_fd g_subprocess_launcher_take_stdout_fd; -alias c_g_subprocess_launcher_unsetenv g_subprocess_launcher_unsetenv; - -// gio.Task - -alias c_g_task_get_type g_task_get_type; -alias c_g_task_new g_task_new; -alias c_g_task_is_valid g_task_is_valid; -alias c_g_task_report_error g_task_report_error; -alias c_g_task_report_new_error g_task_report_new_error; -alias c_g_task_attach_source g_task_attach_source; -alias c_g_task_get_cancellable g_task_get_cancellable; -alias c_g_task_get_check_cancellable g_task_get_check_cancellable; -alias c_g_task_get_completed g_task_get_completed; -alias c_g_task_get_context g_task_get_context; -alias c_g_task_get_name g_task_get_name; -alias c_g_task_get_priority g_task_get_priority; -alias c_g_task_get_return_on_cancel g_task_get_return_on_cancel; -alias c_g_task_get_source_object g_task_get_source_object; -alias c_g_task_get_source_tag g_task_get_source_tag; -alias c_g_task_get_task_data g_task_get_task_data; -alias c_g_task_had_error g_task_had_error; -alias c_g_task_propagate_boolean g_task_propagate_boolean; -alias c_g_task_propagate_int g_task_propagate_int; -alias c_g_task_propagate_pointer g_task_propagate_pointer; -alias c_g_task_propagate_value g_task_propagate_value; -alias c_g_task_return_boolean g_task_return_boolean; -alias c_g_task_return_error g_task_return_error; -alias c_g_task_return_error_if_cancelled g_task_return_error_if_cancelled; -alias c_g_task_return_int g_task_return_int; -alias c_g_task_return_new_error g_task_return_new_error; -alias c_g_task_return_pointer g_task_return_pointer; -alias c_g_task_return_value g_task_return_value; -alias c_g_task_run_in_thread g_task_run_in_thread; -alias c_g_task_run_in_thread_sync g_task_run_in_thread_sync; -alias c_g_task_set_check_cancellable g_task_set_check_cancellable; -alias c_g_task_set_name g_task_set_name; -alias c_g_task_set_priority g_task_set_priority; -alias c_g_task_set_return_on_cancel g_task_set_return_on_cancel; -alias c_g_task_set_source_tag g_task_set_source_tag; -alias c_g_task_set_task_data g_task_set_task_data; - -// gio.TcpConnection - -alias c_g_tcp_connection_get_type g_tcp_connection_get_type; -alias c_g_tcp_connection_get_graceful_disconnect g_tcp_connection_get_graceful_disconnect; -alias c_g_tcp_connection_set_graceful_disconnect g_tcp_connection_set_graceful_disconnect; - -// gio.TcpWrapperConnection - -alias c_g_tcp_wrapper_connection_get_type g_tcp_wrapper_connection_get_type; -alias c_g_tcp_wrapper_connection_new g_tcp_wrapper_connection_new; -alias c_g_tcp_wrapper_connection_get_base_io_stream g_tcp_wrapper_connection_get_base_io_stream; - -// gio.TestDBus - -alias c_g_test_dbus_get_type g_test_dbus_get_type; -alias c_g_test_dbus_new g_test_dbus_new; -alias c_g_test_dbus_unset g_test_dbus_unset; -alias c_g_test_dbus_add_service_dir g_test_dbus_add_service_dir; -alias c_g_test_dbus_down g_test_dbus_down; -alias c_g_test_dbus_get_bus_address g_test_dbus_get_bus_address; -alias c_g_test_dbus_get_flags g_test_dbus_get_flags; -alias c_g_test_dbus_stop g_test_dbus_stop; -alias c_g_test_dbus_up g_test_dbus_up; - -// gio.ThemedIcon - -alias c_g_themed_icon_get_type g_themed_icon_get_type; -alias c_g_themed_icon_new g_themed_icon_new; -alias c_g_themed_icon_new_from_names g_themed_icon_new_from_names; -alias c_g_themed_icon_new_with_default_fallbacks g_themed_icon_new_with_default_fallbacks; -alias c_g_themed_icon_append_name g_themed_icon_append_name; -alias c_g_themed_icon_get_names g_themed_icon_get_names; -alias c_g_themed_icon_prepend_name g_themed_icon_prepend_name; - -// gio.ThreadedSocketService - -alias c_g_threaded_socket_service_get_type g_threaded_socket_service_get_type; -alias c_g_threaded_socket_service_new g_threaded_socket_service_new; - -// gio.TlsBackend - -alias c_g_tls_backend_get_type g_tls_backend_get_type; -alias c_g_tls_backend_get_default g_tls_backend_get_default; -alias c_g_tls_backend_get_certificate_type g_tls_backend_get_certificate_type; -alias c_g_tls_backend_get_client_connection_type g_tls_backend_get_client_connection_type; -alias c_g_tls_backend_get_default_database g_tls_backend_get_default_database; -alias c_g_tls_backend_get_dtls_client_connection_type g_tls_backend_get_dtls_client_connection_type; -alias c_g_tls_backend_get_dtls_server_connection_type g_tls_backend_get_dtls_server_connection_type; -alias c_g_tls_backend_get_file_database_type g_tls_backend_get_file_database_type; -alias c_g_tls_backend_get_server_connection_type g_tls_backend_get_server_connection_type; -alias c_g_tls_backend_set_default_database g_tls_backend_set_default_database; -alias c_g_tls_backend_supports_dtls g_tls_backend_supports_dtls; -alias c_g_tls_backend_supports_tls g_tls_backend_supports_tls; - -// gio.TlsCertificate - -alias c_g_tls_certificate_get_type g_tls_certificate_get_type; -alias c_g_tls_certificate_new_from_file g_tls_certificate_new_from_file; -alias c_g_tls_certificate_new_from_files g_tls_certificate_new_from_files; -alias c_g_tls_certificate_new_from_pem g_tls_certificate_new_from_pem; -alias c_g_tls_certificate_new_from_pkcs11_uris g_tls_certificate_new_from_pkcs11_uris; -alias c_g_tls_certificate_list_new_from_file g_tls_certificate_list_new_from_file; -alias c_g_tls_certificate_get_issuer g_tls_certificate_get_issuer; -alias c_g_tls_certificate_is_same g_tls_certificate_is_same; -alias c_g_tls_certificate_verify g_tls_certificate_verify; - -// gio.TlsClientConnection - -alias c_g_tls_client_connection_get_type g_tls_client_connection_get_type; -alias c_g_tls_client_connection_new g_tls_client_connection_new; -alias c_g_tls_client_connection_copy_session_state g_tls_client_connection_copy_session_state; -alias c_g_tls_client_connection_get_accepted_cas g_tls_client_connection_get_accepted_cas; -alias c_g_tls_client_connection_get_server_identity g_tls_client_connection_get_server_identity; -alias c_g_tls_client_connection_get_use_ssl3 g_tls_client_connection_get_use_ssl3; -alias c_g_tls_client_connection_get_validation_flags g_tls_client_connection_get_validation_flags; -alias c_g_tls_client_connection_set_server_identity g_tls_client_connection_set_server_identity; -alias c_g_tls_client_connection_set_use_ssl3 g_tls_client_connection_set_use_ssl3; -alias c_g_tls_client_connection_set_validation_flags g_tls_client_connection_set_validation_flags; - -// gio.TlsConnection - -alias c_g_tls_connection_get_type g_tls_connection_get_type; -alias c_g_tls_connection_emit_accept_certificate g_tls_connection_emit_accept_certificate; -alias c_g_tls_connection_get_certificate g_tls_connection_get_certificate; -alias c_g_tls_connection_get_channel_binding_data g_tls_connection_get_channel_binding_data; -alias c_g_tls_connection_get_database g_tls_connection_get_database; -alias c_g_tls_connection_get_interaction g_tls_connection_get_interaction; -alias c_g_tls_connection_get_negotiated_protocol g_tls_connection_get_negotiated_protocol; -alias c_g_tls_connection_get_peer_certificate g_tls_connection_get_peer_certificate; -alias c_g_tls_connection_get_peer_certificate_errors g_tls_connection_get_peer_certificate_errors; -alias c_g_tls_connection_get_rehandshake_mode g_tls_connection_get_rehandshake_mode; -alias c_g_tls_connection_get_require_close_notify g_tls_connection_get_require_close_notify; -alias c_g_tls_connection_get_use_system_certdb g_tls_connection_get_use_system_certdb; -alias c_g_tls_connection_handshake g_tls_connection_handshake; -alias c_g_tls_connection_handshake_async g_tls_connection_handshake_async; -alias c_g_tls_connection_handshake_finish g_tls_connection_handshake_finish; -alias c_g_tls_connection_set_advertised_protocols g_tls_connection_set_advertised_protocols; -alias c_g_tls_connection_set_certificate g_tls_connection_set_certificate; -alias c_g_tls_connection_set_database g_tls_connection_set_database; -alias c_g_tls_connection_set_interaction g_tls_connection_set_interaction; -alias c_g_tls_connection_set_rehandshake_mode g_tls_connection_set_rehandshake_mode; -alias c_g_tls_connection_set_require_close_notify g_tls_connection_set_require_close_notify; -alias c_g_tls_connection_set_use_system_certdb g_tls_connection_set_use_system_certdb; - -// gio.TlsDatabase - -alias c_g_tls_database_get_type g_tls_database_get_type; -alias c_g_tls_database_create_certificate_handle g_tls_database_create_certificate_handle; -alias c_g_tls_database_lookup_certificate_for_handle g_tls_database_lookup_certificate_for_handle; -alias c_g_tls_database_lookup_certificate_for_handle_async g_tls_database_lookup_certificate_for_handle_async; -alias c_g_tls_database_lookup_certificate_for_handle_finish g_tls_database_lookup_certificate_for_handle_finish; -alias c_g_tls_database_lookup_certificate_issuer g_tls_database_lookup_certificate_issuer; -alias c_g_tls_database_lookup_certificate_issuer_async g_tls_database_lookup_certificate_issuer_async; -alias c_g_tls_database_lookup_certificate_issuer_finish g_tls_database_lookup_certificate_issuer_finish; -alias c_g_tls_database_lookup_certificates_issued_by g_tls_database_lookup_certificates_issued_by; -alias c_g_tls_database_lookup_certificates_issued_by_async g_tls_database_lookup_certificates_issued_by_async; -alias c_g_tls_database_lookup_certificates_issued_by_finish g_tls_database_lookup_certificates_issued_by_finish; -alias c_g_tls_database_verify_chain g_tls_database_verify_chain; -alias c_g_tls_database_verify_chain_async g_tls_database_verify_chain_async; -alias c_g_tls_database_verify_chain_finish g_tls_database_verify_chain_finish; - -// gio.TlsFileDatabase - -alias c_g_tls_file_database_get_type g_tls_file_database_get_type; -alias c_g_tls_file_database_new g_tls_file_database_new; - -// gio.TlsInteraction - -alias c_g_tls_interaction_get_type g_tls_interaction_get_type; -alias c_g_tls_interaction_ask_password g_tls_interaction_ask_password; -alias c_g_tls_interaction_ask_password_async g_tls_interaction_ask_password_async; -alias c_g_tls_interaction_ask_password_finish g_tls_interaction_ask_password_finish; -alias c_g_tls_interaction_invoke_ask_password g_tls_interaction_invoke_ask_password; -alias c_g_tls_interaction_invoke_request_certificate g_tls_interaction_invoke_request_certificate; -alias c_g_tls_interaction_request_certificate g_tls_interaction_request_certificate; -alias c_g_tls_interaction_request_certificate_async g_tls_interaction_request_certificate_async; -alias c_g_tls_interaction_request_certificate_finish g_tls_interaction_request_certificate_finish; - -// gio.TlsPassword - -alias c_g_tls_password_get_type g_tls_password_get_type; -alias c_g_tls_password_new g_tls_password_new; -alias c_g_tls_password_get_description g_tls_password_get_description; -alias c_g_tls_password_get_flags g_tls_password_get_flags; -alias c_g_tls_password_get_value g_tls_password_get_value; -alias c_g_tls_password_get_warning g_tls_password_get_warning; -alias c_g_tls_password_set_description g_tls_password_set_description; -alias c_g_tls_password_set_flags g_tls_password_set_flags; -alias c_g_tls_password_set_value g_tls_password_set_value; -alias c_g_tls_password_set_value_full g_tls_password_set_value_full; -alias c_g_tls_password_set_warning g_tls_password_set_warning; - -// gio.TlsServerConnection - -alias c_g_tls_server_connection_get_type g_tls_server_connection_get_type; -alias c_g_tls_server_connection_new g_tls_server_connection_new; - -// gio.UnixConnection - -alias c_g_unix_connection_get_type g_unix_connection_get_type; -alias c_g_unix_connection_receive_credentials g_unix_connection_receive_credentials; -alias c_g_unix_connection_receive_credentials_async g_unix_connection_receive_credentials_async; -alias c_g_unix_connection_receive_credentials_finish g_unix_connection_receive_credentials_finish; -alias c_g_unix_connection_receive_fd g_unix_connection_receive_fd; -alias c_g_unix_connection_send_credentials g_unix_connection_send_credentials; -alias c_g_unix_connection_send_credentials_async g_unix_connection_send_credentials_async; -alias c_g_unix_connection_send_credentials_finish g_unix_connection_send_credentials_finish; -alias c_g_unix_connection_send_fd g_unix_connection_send_fd; - -// gio.UnixCredentialsMessage - -alias c_g_unix_credentials_message_get_type g_unix_credentials_message_get_type; -alias c_g_unix_credentials_message_new g_unix_credentials_message_new; -alias c_g_unix_credentials_message_new_with_credentials g_unix_credentials_message_new_with_credentials; -alias c_g_unix_credentials_message_is_supported g_unix_credentials_message_is_supported; -alias c_g_unix_credentials_message_get_credentials g_unix_credentials_message_get_credentials; - -// gio.UnixFDList - -alias c_g_unix_fd_list_get_type g_unix_fd_list_get_type; -alias c_g_unix_fd_list_new g_unix_fd_list_new; -alias c_g_unix_fd_list_new_from_array g_unix_fd_list_new_from_array; -alias c_g_unix_fd_list_append g_unix_fd_list_append; -alias c_g_unix_fd_list_get g_unix_fd_list_get; -alias c_g_unix_fd_list_get_length g_unix_fd_list_get_length; -alias c_g_unix_fd_list_peek_fds g_unix_fd_list_peek_fds; -alias c_g_unix_fd_list_steal_fds g_unix_fd_list_steal_fds; - -// gio.UnixFDMessage - -alias c_g_unix_fd_message_get_type g_unix_fd_message_get_type; -alias c_g_unix_fd_message_new g_unix_fd_message_new; -alias c_g_unix_fd_message_new_with_fd_list g_unix_fd_message_new_with_fd_list; -alias c_g_unix_fd_message_append_fd g_unix_fd_message_append_fd; -alias c_g_unix_fd_message_get_fd_list g_unix_fd_message_get_fd_list; -alias c_g_unix_fd_message_steal_fds g_unix_fd_message_steal_fds; - -// gio.UnixInputStream - -alias c_g_unix_input_stream_get_type g_unix_input_stream_get_type; -alias c_g_unix_input_stream_new g_unix_input_stream_new; -alias c_g_unix_input_stream_get_close_fd g_unix_input_stream_get_close_fd; -alias c_g_unix_input_stream_get_fd g_unix_input_stream_get_fd; -alias c_g_unix_input_stream_set_close_fd g_unix_input_stream_set_close_fd; - -// gio.UnixMountEntry - -alias c_g_unix_mount_entry_get_type g_unix_mount_entry_get_type; -alias c_g_unix_is_mount_path_system_internal g_unix_is_mount_path_system_internal; -alias c_g_unix_mount_at g_unix_mount_at; -alias c_g_unix_mount_compare g_unix_mount_compare; -alias c_g_unix_mount_free g_unix_mount_free; -alias c_g_unix_mount_get_device_path g_unix_mount_get_device_path; -alias c_g_unix_mount_get_fs_type g_unix_mount_get_fs_type; -alias c_g_unix_mount_get_mount_path g_unix_mount_get_mount_path; -alias c_g_unix_mount_guess_can_eject g_unix_mount_guess_can_eject; -alias c_g_unix_mount_guess_icon g_unix_mount_guess_icon; -alias c_g_unix_mount_guess_name g_unix_mount_guess_name; -alias c_g_unix_mount_guess_should_display g_unix_mount_guess_should_display; -alias c_g_unix_mount_guess_symbolic_icon g_unix_mount_guess_symbolic_icon; -alias c_g_unix_mount_is_readonly g_unix_mount_is_readonly; -alias c_g_unix_mount_is_system_internal g_unix_mount_is_system_internal; -alias c_g_unix_mount_points_changed_since g_unix_mount_points_changed_since; -alias c_g_unix_mount_points_get g_unix_mount_points_get; -alias c_g_unix_mounts_changed_since g_unix_mounts_changed_since; -alias c_g_unix_mounts_get g_unix_mounts_get; -alias c_g_unix_mount_copy g_unix_mount_copy; -alias c_g_unix_mount_for g_unix_mount_for; -alias c_g_unix_mount_get_options g_unix_mount_get_options; -alias c_g_unix_mount_get_root_path g_unix_mount_get_root_path; - -// gio.UnixMountMonitor - -alias c_g_unix_mount_monitor_get_type g_unix_mount_monitor_get_type; -alias c_g_unix_mount_monitor_new g_unix_mount_monitor_new; -alias c_g_unix_mount_monitor_get g_unix_mount_monitor_get; -alias c_g_unix_mount_monitor_set_rate_limit g_unix_mount_monitor_set_rate_limit; - -// gio.UnixMountPoint - -alias c_g_unix_mount_point_get_type g_unix_mount_point_get_type; -alias c_g_unix_mount_point_compare g_unix_mount_point_compare; -alias c_g_unix_mount_point_copy g_unix_mount_point_copy; -alias c_g_unix_mount_point_free g_unix_mount_point_free; -alias c_g_unix_mount_point_get_device_path g_unix_mount_point_get_device_path; -alias c_g_unix_mount_point_get_fs_type g_unix_mount_point_get_fs_type; -alias c_g_unix_mount_point_get_mount_path g_unix_mount_point_get_mount_path; -alias c_g_unix_mount_point_get_options g_unix_mount_point_get_options; -alias c_g_unix_mount_point_guess_can_eject g_unix_mount_point_guess_can_eject; -alias c_g_unix_mount_point_guess_icon g_unix_mount_point_guess_icon; -alias c_g_unix_mount_point_guess_name g_unix_mount_point_guess_name; -alias c_g_unix_mount_point_guess_symbolic_icon g_unix_mount_point_guess_symbolic_icon; -alias c_g_unix_mount_point_is_loopback g_unix_mount_point_is_loopback; -alias c_g_unix_mount_point_is_readonly g_unix_mount_point_is_readonly; -alias c_g_unix_mount_point_is_user_mountable g_unix_mount_point_is_user_mountable; -alias c_g_unix_mount_point_at g_unix_mount_point_at; - -// gio.UnixOutputStream - -alias c_g_unix_output_stream_get_type g_unix_output_stream_get_type; -alias c_g_unix_output_stream_new g_unix_output_stream_new; -alias c_g_unix_output_stream_get_close_fd g_unix_output_stream_get_close_fd; -alias c_g_unix_output_stream_get_fd g_unix_output_stream_get_fd; -alias c_g_unix_output_stream_set_close_fd g_unix_output_stream_set_close_fd; - -// gio.UnixSocketAddress - -alias c_g_unix_socket_address_get_type g_unix_socket_address_get_type; -alias c_g_unix_socket_address_new g_unix_socket_address_new; -alias c_g_unix_socket_address_new_abstract g_unix_socket_address_new_abstract; -alias c_g_unix_socket_address_new_with_type g_unix_socket_address_new_with_type; -alias c_g_unix_socket_address_abstract_names_supported g_unix_socket_address_abstract_names_supported; -alias c_g_unix_socket_address_get_address_type g_unix_socket_address_get_address_type; -alias c_g_unix_socket_address_get_is_abstract g_unix_socket_address_get_is_abstract; -alias c_g_unix_socket_address_get_path g_unix_socket_address_get_path; -alias c_g_unix_socket_address_get_path_len g_unix_socket_address_get_path_len; - -// gio.Vfs - -alias c_g_vfs_get_type g_vfs_get_type; -alias c_g_vfs_get_default g_vfs_get_default; -alias c_g_vfs_get_local g_vfs_get_local; -alias c_g_vfs_get_file_for_path g_vfs_get_file_for_path; -alias c_g_vfs_get_file_for_uri g_vfs_get_file_for_uri; -alias c_g_vfs_get_supported_uri_schemes g_vfs_get_supported_uri_schemes; -alias c_g_vfs_is_active g_vfs_is_active; -alias c_g_vfs_parse_name g_vfs_parse_name; -alias c_g_vfs_register_uri_scheme g_vfs_register_uri_scheme; -alias c_g_vfs_unregister_uri_scheme g_vfs_unregister_uri_scheme; - -// gio.Volume - -alias c_g_volume_get_type g_volume_get_type; -alias c_g_volume_can_eject g_volume_can_eject; -alias c_g_volume_can_mount g_volume_can_mount; -alias c_g_volume_eject g_volume_eject; -alias c_g_volume_eject_finish g_volume_eject_finish; -alias c_g_volume_eject_with_operation g_volume_eject_with_operation; -alias c_g_volume_eject_with_operation_finish g_volume_eject_with_operation_finish; -alias c_g_volume_enumerate_identifiers g_volume_enumerate_identifiers; -alias c_g_volume_get_activation_root g_volume_get_activation_root; -alias c_g_volume_get_drive g_volume_get_drive; -alias c_g_volume_get_icon g_volume_get_icon; -alias c_g_volume_get_identifier g_volume_get_identifier; -alias c_g_volume_get_mount g_volume_get_mount; -alias c_g_volume_get_name g_volume_get_name; -alias c_g_volume_get_sort_key g_volume_get_sort_key; -alias c_g_volume_get_symbolic_icon g_volume_get_symbolic_icon; -alias c_g_volume_get_uuid g_volume_get_uuid; -alias c_g_volume_mount g_volume_mount; -alias c_g_volume_mount_finish g_volume_mount_finish; -alias c_g_volume_should_automount g_volume_should_automount; - -// gio.VolumeMonitor - -alias c_g_volume_monitor_get_type g_volume_monitor_get_type; -alias c_g_volume_monitor_adopt_orphan_mount g_volume_monitor_adopt_orphan_mount; -alias c_g_volume_monitor_get g_volume_monitor_get; -alias c_g_volume_monitor_get_connected_drives g_volume_monitor_get_connected_drives; -alias c_g_volume_monitor_get_mount_for_uuid g_volume_monitor_get_mount_for_uuid; -alias c_g_volume_monitor_get_mounts g_volume_monitor_get_mounts; -alias c_g_volume_monitor_get_volume_for_uuid g_volume_monitor_get_volume_for_uuid; -alias c_g_volume_monitor_get_volumes g_volume_monitor_get_volumes; - -// gio.ZlibCompressor - -alias c_g_zlib_compressor_get_type g_zlib_compressor_get_type; -alias c_g_zlib_compressor_new g_zlib_compressor_new; -alias c_g_zlib_compressor_get_file_info g_zlib_compressor_get_file_info; -alias c_g_zlib_compressor_set_file_info g_zlib_compressor_set_file_info; - -// gio.ZlibDecompressor - -alias c_g_zlib_decompressor_get_type g_zlib_decompressor_get_type; -alias c_g_zlib_decompressor_new g_zlib_decompressor_new; -alias c_g_zlib_decompressor_get_file_info g_zlib_decompressor_get_file_info; - -// gio.PollableUtils - -alias c_g_pollable_source_new g_pollable_source_new; -alias c_g_pollable_source_new_full g_pollable_source_new_full; -alias c_g_pollable_stream_read g_pollable_stream_read; -alias c_g_pollable_stream_write g_pollable_stream_write; -alias c_g_pollable_stream_write_all g_pollable_stream_write_all; - -// gio.DBusNames - -alias c_g_bus_own_name g_bus_own_name; -alias c_g_bus_own_name_on_connection g_bus_own_name_on_connection; -alias c_g_bus_own_name_on_connection_with_closures g_bus_own_name_on_connection_with_closures; -alias c_g_bus_own_name_with_closures g_bus_own_name_with_closures; -alias c_g_bus_unown_name g_bus_unown_name; -alias c_g_bus_unwatch_name g_bus_unwatch_name; -alias c_g_bus_watch_name g_bus_watch_name; -alias c_g_bus_watch_name_on_connection g_bus_watch_name_on_connection; -alias c_g_bus_watch_name_on_connection_with_closures g_bus_watch_name_on_connection_with_closures; -alias c_g_bus_watch_name_with_closures g_bus_watch_name_with_closures; - -// gio.ContentType - -alias c_g_content_type_can_be_executable g_content_type_can_be_executable; -alias c_g_content_type_equals g_content_type_equals; -alias c_g_content_type_from_mime_type g_content_type_from_mime_type; -alias c_g_content_type_get_description g_content_type_get_description; -alias c_g_content_type_get_generic_icon_name g_content_type_get_generic_icon_name; -alias c_g_content_type_get_icon g_content_type_get_icon; -alias c_g_content_type_get_mime_type g_content_type_get_mime_type; -alias c_g_content_type_get_symbolic_icon g_content_type_get_symbolic_icon; -alias c_g_content_type_guess g_content_type_guess; -alias c_g_content_type_guess_for_tree g_content_type_guess_for_tree; -alias c_g_content_type_is_a g_content_type_is_a; -alias c_g_content_type_is_unknown g_content_type_is_unknown; -alias c_g_content_types_get_registered g_content_types_get_registered; -alias c_g_content_type_is_mime_type g_content_type_is_mime_type; -alias c_g_content_type_get_mime_dirs g_content_type_get_mime_dirs; -alias c_g_content_type_set_mime_dirs g_content_type_set_mime_dirs; - -// gio.DBusError - -alias c_g_dbus_error_encode_gerror g_dbus_error_encode_gerror; -alias c_g_dbus_error_get_remote_error g_dbus_error_get_remote_error; -alias c_g_dbus_error_is_remote_error g_dbus_error_is_remote_error; -alias c_g_dbus_error_new_for_dbus_error g_dbus_error_new_for_dbus_error; -alias c_g_dbus_error_quark g_dbus_error_quark; -alias c_g_dbus_error_register_error g_dbus_error_register_error; -alias c_g_dbus_error_register_error_domain g_dbus_error_register_error_domain; -alias c_g_dbus_error_strip_remote_error g_dbus_error_strip_remote_error; -alias c_g_dbus_error_unregister_error g_dbus_error_unregister_error; - -// gio.DBusUtilities - -alias c_g_dbus_address_escape_value g_dbus_address_escape_value; -alias c_g_dbus_address_get_for_bus_sync g_dbus_address_get_for_bus_sync; -alias c_g_dbus_address_get_stream g_dbus_address_get_stream; -alias c_g_dbus_address_get_stream_finish g_dbus_address_get_stream_finish; -alias c_g_dbus_address_get_stream_sync g_dbus_address_get_stream_sync; -alias c_g_dbus_generate_guid g_dbus_generate_guid; -alias c_g_dbus_gvalue_to_gvariant g_dbus_gvalue_to_gvariant; -alias c_g_dbus_gvariant_to_gvalue g_dbus_gvariant_to_gvalue; -alias c_g_dbus_is_address g_dbus_is_address; -alias c_g_dbus_is_guid g_dbus_is_guid; -alias c_g_dbus_is_interface_name g_dbus_is_interface_name; -alias c_g_dbus_is_member_name g_dbus_is_member_name; -alias c_g_dbus_is_name g_dbus_is_name; -alias c_g_dbus_is_supported_address g_dbus_is_supported_address; -alias c_g_dbus_is_unique_name g_dbus_is_unique_name; - -// gio.ErrorGIO - -alias c_g_io_error_from_errno g_io_error_from_errno; -alias c_g_io_error_quark g_io_error_quark; diff --git a/generated/gtkd/gio/c/types.d b/generated/gtkd/gio/c/types.d deleted file mode 100644 index 29d044134..000000000 --- a/generated/gtkd/gio/c/types.d +++ /dev/null @@ -1,10668 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module gio.c.types; - -public import glib.c.types; -public import gobject.c.types; - - -/** - * Flags used when creating a #GAppInfo. - */ -public enum GAppInfoCreateFlags -{ - /** - * No flags. - */ - NONE = 0, - /** - * Application opens in a terminal window. - */ - NEEDS_TERMINAL = 1, - /** - * Application supports URI arguments. - */ - SUPPORTS_URIS = 2, - /** - * Application supports startup notification. Since 2.26 - */ - SUPPORTS_STARTUP_NOTIFICATION = 4, -} -alias GAppInfoCreateFlags AppInfoCreateFlags; - -/** - * Flags used to define the behaviour of a #GApplication. - * - * Since: 2.28 - */ -public enum GApplicationFlags -{ - /** - * Default - */ - FLAGS_NONE = 0, - /** - * Run as a service. In this mode, registration - * fails if the service is already running, and the application - * will initially wait up to 10 seconds for an initial activation - * message to arrive. - */ - IS_SERVICE = 1, - /** - * Don't try to become the primary instance. - */ - IS_LAUNCHER = 2, - /** - * This application handles opening files (in - * the primary instance). Note that this flag only affects the default - * implementation of local_command_line(), and has no effect if - * %G_APPLICATION_HANDLES_COMMAND_LINE is given. - * See g_application_run() for details. - */ - HANDLES_OPEN = 4, - /** - * This application handles command line - * arguments (in the primary instance). Note that this flag only affect - * the default implementation of local_command_line(). - * See g_application_run() for details. - */ - HANDLES_COMMAND_LINE = 8, - /** - * Send the environment of the - * launching process to the primary instance. Set this flag if your - * application is expected to behave differently depending on certain - * environment variables. For instance, an editor might be expected - * to use the `GIT_COMMITTER_NAME` environment variable - * when editing a git commit message. The environment is available - * to the #GApplication::command-line signal handler, via - * g_application_command_line_getenv(). - */ - SEND_ENVIRONMENT = 16, - /** - * Make no attempts to do any of the typical - * single-instance application negotiation, even if the application - * ID is given. The application neither attempts to become the - * owner of the application ID nor does it check if an existing - * owner already exists. Everything occurs in the local process. - * Since: 2.30. - */ - NON_UNIQUE = 32, - /** - * Allow users to override the - * application ID from the command line with `--gapplication-app-id`. - * Since: 2.48 - */ - CAN_OVERRIDE_APP_ID = 64, - /** - * Allow another instance to take over - * the bus name. Since: 2.60 - */ - ALLOW_REPLACEMENT = 128, - /** - * Take over from another instance. This flag is - * usually set by passing `--gapplication-replace` on the commandline. - * Since: 2.60 - */ - REPLACE = 256, -} -alias GApplicationFlags ApplicationFlags; - -/** - * #GAskPasswordFlags are used to request specific information from the - * user, or to notify the user of their choices in an authentication - * situation. - */ -public enum GAskPasswordFlags -{ - /** - * operation requires a password. - */ - NEED_PASSWORD = 1, - /** - * operation requires a username. - */ - NEED_USERNAME = 2, - /** - * operation requires a domain. - */ - NEED_DOMAIN = 4, - /** - * operation supports saving settings. - */ - SAVING_SUPPORTED = 8, - /** - * operation supports anonymous users. - */ - ANONYMOUS_SUPPORTED = 16, - /** - * operation takes TCRYPT parameters (Since: 2.58) - */ - TCRYPT = 32, -} -alias GAskPasswordFlags AskPasswordFlags; - -/** - * Flags used in g_bus_own_name(). - * - * Since: 2.26 - */ -public enum GBusNameOwnerFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Allow another message bus connection to claim the name. - */ - ALLOW_REPLACEMENT = 1, - /** - * If another message bus connection owns the name and have - * specified #G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT, then take the name from the other connection. - */ - REPLACE = 2, - /** - * If another message bus connection owns the name, immediately - * return an error from g_bus_own_name() rather than entering the waiting queue for that name. (Since 2.54) - */ - DO_NOT_QUEUE = 4, -} -alias GBusNameOwnerFlags BusNameOwnerFlags; - -/** - * Flags used in g_bus_watch_name(). - * - * Since: 2.26 - */ -public enum GBusNameWatcherFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * If no-one owns the name when - * beginning to watch the name, ask the bus to launch an owner for the - * name. - */ - AUTO_START = 1, -} -alias GBusNameWatcherFlags BusNameWatcherFlags; - -/** - * An enumeration for well-known message buses. - * - * Since: 2.26 - */ -public enum GBusType -{ - /** - * An alias for the message bus that activated the process, if any. - */ - STARTER = -1, - /** - * Not a message bus. - */ - NONE = 0, - /** - * The system-wide message bus. - */ - SYSTEM = 1, - /** - * The login session message bus. - */ - SESSION = 2, -} -alias GBusType BusType; - -/** - * Flags used when calling a g_converter_convert(). - * - * Since: 2.24 - */ -public enum GConverterFlags -{ - /** - * No flags. - */ - NONE = 0, - /** - * At end of input data - */ - INPUT_AT_END = 1, - /** - * Flush data - */ - FLUSH = 2, -} -alias GConverterFlags ConverterFlags; - -/** - * Results returned from g_converter_convert(). - * - * Since: 2.24 - */ -public enum GConverterResult -{ - /** - * There was an error during conversion. - */ - ERROR = 0, - /** - * Some data was consumed or produced - */ - CONVERTED = 1, - /** - * The conversion is finished - */ - FINISHED = 2, - /** - * Flushing is finished - */ - FLUSHED = 3, -} -alias GConverterResult ConverterResult; - -/** - * Enumeration describing different kinds of native credential types. - * - * Since: 2.26 - */ -public enum GCredentialsType -{ - /** - * Indicates an invalid native credential type. - */ - INVALID = 0, - /** - * The native credentials type is a `struct ucred`. - */ - LINUX_UCRED = 1, - /** - * The native credentials type is a `struct cmsgcred`. - */ - FREEBSD_CMSGCRED = 2, - /** - * The native credentials type is a `struct sockpeercred`. Added in 2.30. - */ - OPENBSD_SOCKPEERCRED = 3, - /** - * The native credentials type is a `ucred_t`. Added in 2.40. - */ - SOLARIS_UCRED = 4, - /** - * The native credentials type is a `struct unpcbid`. Added in 2.42. - */ - NETBSD_UNPCBID = 5, - /** - * The native credentials type is a `struct xucred`. Added in 2.66. - */ - APPLE_XUCRED = 6, -} -alias GCredentialsType CredentialsType; - -/** - * Flags used in g_dbus_connection_call() and similar APIs. - * - * Since: 2.26 - */ -public enum GDBusCallFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * The bus must not launch - * an owner for the destination name in response to this method - * invocation. - */ - NO_AUTO_START = 1, - /** - * the caller is prepared to - * wait for interactive authorization. Since 2.46. - */ - ALLOW_INTERACTIVE_AUTHORIZATION = 2, -} -alias GDBusCallFlags DBusCallFlags; - -/** - * Capabilities negotiated with the remote peer. - * - * Since: 2.26 - */ -public enum GDBusCapabilityFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * The connection - * supports exchanging UNIX file descriptors with the remote peer. - */ - UNIX_FD_PASSING = 1, -} -alias GDBusCapabilityFlags DBusCapabilityFlags; - -/** - * Flags used when creating a new #GDBusConnection. - * - * Since: 2.26 - */ -public enum GDBusConnectionFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Perform authentication against server. - */ - AUTHENTICATION_CLIENT = 1, - /** - * Perform authentication against client. - */ - AUTHENTICATION_SERVER = 2, - /** - * When - * authenticating as a server, allow the anonymous authentication - * method. - */ - AUTHENTICATION_ALLOW_ANONYMOUS = 4, - /** - * Pass this flag if connecting to a peer that is a - * message bus. This means that the Hello() method will be invoked as part of the connection setup. - */ - MESSAGE_BUS_CONNECTION = 8, - /** - * If set, processing of D-Bus messages is - * delayed until g_dbus_connection_start_message_processing() is called. - */ - DELAY_MESSAGE_PROCESSING = 16, - /** - * When authenticating - * as a server, require the UID of the peer to be the same as the UID of the server. (Since: 2.68) - */ - AUTHENTICATION_REQUIRE_SAME_USER = 32, -} -alias GDBusConnectionFlags DBusConnectionFlags; - -/** - * Error codes for the %G_DBUS_ERROR error domain. - * - * Since: 2.26 - */ -public enum GDBusError -{ - /** - * A generic error; "something went wrong" - see the error message for - * more. - */ - FAILED = 0, - /** - * There was not enough memory to complete an operation. - */ - NO_MEMORY = 1, - /** - * The bus doesn't know how to launch a service to supply the bus name - * you wanted. - */ - SERVICE_UNKNOWN = 2, - /** - * The bus name you referenced doesn't exist (i.e. no application owns - * it). - */ - NAME_HAS_NO_OWNER = 3, - /** - * No reply to a message expecting one, usually means a timeout occurred. - */ - NO_REPLY = 4, - /** - * Something went wrong reading or writing to a socket, for example. - */ - IO_ERROR = 5, - /** - * A D-Bus bus address was malformed. - */ - BAD_ADDRESS = 6, - /** - * Requested operation isn't supported (like ENOSYS on UNIX). - */ - NOT_SUPPORTED = 7, - /** - * Some limited resource is exhausted. - */ - LIMITS_EXCEEDED = 8, - /** - * Security restrictions don't allow doing what you're trying to do. - */ - ACCESS_DENIED = 9, - /** - * Authentication didn't work. - */ - AUTH_FAILED = 10, - /** - * Unable to connect to server (probably caused by ECONNREFUSED on a - * socket). - */ - NO_SERVER = 11, - /** - * Certain timeout errors, possibly ETIMEDOUT on a socket. Note that - * %G_DBUS_ERROR_NO_REPLY is used for message reply timeouts. Warning: - * this is confusingly-named given that %G_DBUS_ERROR_TIMED_OUT also - * exists. We can't fix it for compatibility reasons so just be - * careful. - */ - TIMEOUT = 12, - /** - * No network access (probably ENETUNREACH on a socket). - */ - NO_NETWORK = 13, - /** - * Can't bind a socket since its address is in use (i.e. EADDRINUSE). - */ - ADDRESS_IN_USE = 14, - /** - * The connection is disconnected and you're trying to use it. - */ - DISCONNECTED = 15, - /** - * Invalid arguments passed to a method call. - */ - INVALID_ARGS = 16, - /** - * Missing file. - */ - FILE_NOT_FOUND = 17, - /** - * Existing file and the operation you're using does not silently overwrite. - */ - FILE_EXISTS = 18, - /** - * Method name you invoked isn't known by the object you invoked it on. - */ - UNKNOWN_METHOD = 19, - /** - * Certain timeout errors, e.g. while starting a service. Warning: this is - * confusingly-named given that %G_DBUS_ERROR_TIMEOUT also exists. We - * can't fix it for compatibility reasons so just be careful. - */ - TIMED_OUT = 20, - /** - * Tried to remove or modify a match rule that didn't exist. - */ - MATCH_RULE_NOT_FOUND = 21, - /** - * The match rule isn't syntactically valid. - */ - MATCH_RULE_INVALID = 22, - /** - * While starting a new process, the exec() call failed. - */ - SPAWN_EXEC_FAILED = 23, - /** - * While starting a new process, the fork() call failed. - */ - SPAWN_FORK_FAILED = 24, - /** - * While starting a new process, the child exited with a status code. - */ - SPAWN_CHILD_EXITED = 25, - /** - * While starting a new process, the child exited on a signal. - */ - SPAWN_CHILD_SIGNALED = 26, - /** - * While starting a new process, something went wrong. - */ - SPAWN_FAILED = 27, - /** - * We failed to setup the environment correctly. - */ - SPAWN_SETUP_FAILED = 28, - /** - * We failed to setup the config parser correctly. - */ - SPAWN_CONFIG_INVALID = 29, - /** - * Bus name was not valid. - */ - SPAWN_SERVICE_INVALID = 30, - /** - * Service file not found in system-services directory. - */ - SPAWN_SERVICE_NOT_FOUND = 31, - /** - * Permissions are incorrect on the setuid helper. - */ - SPAWN_PERMISSIONS_INVALID = 32, - /** - * Service file invalid (Name, User or Exec missing). - */ - SPAWN_FILE_INVALID = 33, - /** - * Tried to get a UNIX process ID and it wasn't available. - */ - SPAWN_NO_MEMORY = 34, - /** - * Tried to get a UNIX process ID and it wasn't available. - */ - UNIX_PROCESS_ID_UNKNOWN = 35, - /** - * A type signature is not valid. - */ - INVALID_SIGNATURE = 36, - /** - * A file contains invalid syntax or is otherwise broken. - */ - INVALID_FILE_CONTENT = 37, - /** - * Asked for SELinux security context and it wasn't available. - */ - SELINUX_SECURITY_CONTEXT_UNKNOWN = 38, - /** - * Asked for ADT audit data and it wasn't available. - */ - ADT_AUDIT_DATA_UNKNOWN = 39, - /** - * There's already an object with the requested object path. - */ - OBJECT_PATH_IN_USE = 40, - /** - * Object you invoked a method on isn't known. Since 2.42 - */ - UNKNOWN_OBJECT = 41, - /** - * Interface you invoked a method on isn't known by the object. Since 2.42 - */ - UNKNOWN_INTERFACE = 42, - /** - * Property you tried to access isn't known by the object. Since 2.42 - */ - UNKNOWN_PROPERTY = 43, - /** - * Property you tried to set is read-only. Since 2.42 - */ - PROPERTY_READ_ONLY = 44, -} -alias GDBusError DBusError; - -/** - * Flags describing the behavior of a #GDBusInterfaceSkeleton instance. - * - * Since: 2.30 - */ -public enum GDBusInterfaceSkeletonFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Each method invocation is handled in - * a thread dedicated to the invocation. This means that the method implementation can use blocking IO - * without blocking any other part of the process. It also means that the method implementation must - * use locking to access data structures used by other threads. - */ - HANDLE_METHOD_INVOCATIONS_IN_THREAD = 1, -} -alias GDBusInterfaceSkeletonFlags DBusInterfaceSkeletonFlags; - -/** - * Enumeration used to describe the byte order of a D-Bus message. - * - * Since: 2.26 - */ -public enum GDBusMessageByteOrder -{ - /** - * The byte order is big endian. - */ - BIG_ENDIAN = 66, - /** - * The byte order is little endian. - */ - LITTLE_ENDIAN = 108, -} -alias GDBusMessageByteOrder DBusMessageByteOrder; - -/** - * Message flags used in #GDBusMessage. - * - * Since: 2.26 - */ -public enum GDBusMessageFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * A reply is not expected. - */ - NO_REPLY_EXPECTED = 1, - /** - * The bus must not launch an - * owner for the destination name in response to this message. - */ - NO_AUTO_START = 2, - /** - * If set on a method - * call, this flag means that the caller is prepared to wait for interactive - * authorization. Since 2.46. - */ - ALLOW_INTERACTIVE_AUTHORIZATION = 4, -} -alias GDBusMessageFlags DBusMessageFlags; - -/** - * Header fields used in #GDBusMessage. - * - * Since: 2.26 - */ -public enum GDBusMessageHeaderField -{ - /** - * Not a valid header field. - */ - INVALID = 0, - /** - * The object path. - */ - PATH = 1, - /** - * The interface name. - */ - INTERFACE = 2, - /** - * The method or signal name. - */ - MEMBER = 3, - /** - * The name of the error that occurred. - */ - ERROR_NAME = 4, - /** - * The serial number the message is a reply to. - */ - REPLY_SERIAL = 5, - /** - * The name the message is intended for. - */ - DESTINATION = 6, - /** - * Unique name of the sender of the message (filled in by the bus). - */ - SENDER = 7, - /** - * The signature of the message body. - */ - SIGNATURE = 8, - /** - * The number of UNIX file descriptors that accompany the message. - */ - NUM_UNIX_FDS = 9, -} -alias GDBusMessageHeaderField DBusMessageHeaderField; - -/** - * Message types used in #GDBusMessage. - * - * Since: 2.26 - */ -public enum GDBusMessageType -{ - /** - * Message is of invalid type. - */ - INVALID = 0, - /** - * Method call. - */ - METHOD_CALL = 1, - /** - * Method reply. - */ - METHOD_RETURN = 2, - /** - * Error reply. - */ - ERROR = 3, - /** - * Signal emission. - */ - SIGNAL = 4, -} -alias GDBusMessageType DBusMessageType; - -/** - * Flags used when constructing a #GDBusObjectManagerClient. - * - * Since: 2.30 - */ -public enum GDBusObjectManagerClientFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * If not set and the - * manager is for a well-known name, then request the bus to launch - * an owner for the name if no-one owns the name. This flag can only - * be used in managers for well-known names. - */ - DO_NOT_AUTO_START = 1, -} -alias GDBusObjectManagerClientFlags DBusObjectManagerClientFlags; - -/** - * Flags describing the access control of a D-Bus property. - * - * Since: 2.26 - */ -public enum GDBusPropertyInfoFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Property is readable. - */ - READABLE = 1, - /** - * Property is writable. - */ - WRITABLE = 2, -} -alias GDBusPropertyInfoFlags DBusPropertyInfoFlags; - -/** - * Flags used when constructing an instance of a #GDBusProxy derived class. - * - * Since: 2.26 - */ -public enum GDBusProxyFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Don't load properties. - */ - DO_NOT_LOAD_PROPERTIES = 1, - /** - * Don't connect to signals on the remote object. - */ - DO_NOT_CONNECT_SIGNALS = 2, - /** - * If the proxy is for a well-known name, - * do not ask the bus to launch an owner during proxy initialization or a method call. - * This flag is only meaningful in proxies for well-known names. - */ - DO_NOT_AUTO_START = 4, - /** - * If set, the property value for any __invalidated property__ will be (asynchronously) retrieved upon receiving the [`PropertiesChanged`](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties) D-Bus signal and the property will not cause emission of the #GDBusProxy::g-properties-changed signal. When the value is received the #GDBusProxy::g-properties-changed signal is emitted for the property along with the retrieved value. Since 2.32. - */ - GET_INVALIDATED_PROPERTIES = 8, - /** - * If the proxy is for a well-known name, - * do not ask the bus to launch an owner during proxy initialization, but allow it to be - * autostarted by a method call. This flag is only meaningful in proxies for well-known names, - * and only if %G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START is not also specified. - */ - DO_NOT_AUTO_START_AT_CONSTRUCTION = 16, -} -alias GDBusProxyFlags DBusProxyFlags; - -/** - * Flags used when sending #GDBusMessages on a #GDBusConnection. - * - * Since: 2.26 - */ -public enum GDBusSendMessageFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Do not automatically - * assign a serial number from the #GDBusConnection object when - * sending a message. - */ - PRESERVE_SERIAL = 1, -} -alias GDBusSendMessageFlags DBusSendMessageFlags; - -/** - * Flags used when creating a #GDBusServer. - * - * Since: 2.26 - */ -public enum GDBusServerFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * All #GDBusServer::new-connection - * signals will run in separated dedicated threads (see signal for - * details). - */ - RUN_IN_THREAD = 1, - /** - * Allow the anonymous - * authentication method. - */ - AUTHENTICATION_ALLOW_ANONYMOUS = 2, - /** - * Require the UID of the - * peer to be the same as the UID of the server when authenticating. (Since: 2.68) - */ - AUTHENTICATION_REQUIRE_SAME_USER = 4, -} -alias GDBusServerFlags DBusServerFlags; - -/** - * Flags used when subscribing to signals via g_dbus_connection_signal_subscribe(). - * - * Since: 2.26 - */ -public enum GDBusSignalFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Don't actually send the AddMatch - * D-Bus call for this signal subscription. This gives you more control - * over which match rules you add (but you must add them manually). - */ - NO_MATCH_RULE = 1, - /** - * Match first arguments that - * contain a bus or interface name with the given namespace. - */ - MATCH_ARG0_NAMESPACE = 2, - /** - * Match first arguments that - * contain an object path that is either equivalent to the given path, - * or one of the paths is a subpath of the other. - */ - MATCH_ARG0_PATH = 4, -} -alias GDBusSignalFlags DBusSignalFlags; - -/** - * Flags passed to g_dbus_connection_register_subtree(). - * - * Since: 2.26 - */ -public enum GDBusSubtreeFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Method calls to objects not in the enumerated range - * will still be dispatched. This is useful if you want - * to dynamically spawn objects in the subtree. - */ - DISPATCH_TO_UNENUMERATED_NODES = 1, -} -alias GDBusSubtreeFlags DBusSubtreeFlags; - -/** - * #GDataStreamByteOrder is used to ensure proper endianness of streaming data sources - * across various machine architectures. - */ -public enum GDataStreamByteOrder -{ - /** - * Selects Big Endian byte order. - */ - BIG_ENDIAN = 0, - /** - * Selects Little Endian byte order. - */ - LITTLE_ENDIAN = 1, - /** - * Selects endianness based on host machine's architecture. - */ - HOST_ENDIAN = 2, -} -alias GDataStreamByteOrder DataStreamByteOrder; - -/** - * #GDataStreamNewlineType is used when checking for or setting the line endings for a given file. - */ -public enum GDataStreamNewlineType -{ - /** - * Selects "LF" line endings, common on most modern UNIX platforms. - */ - LF = 0, - /** - * Selects "CR" line endings. - */ - CR = 1, - /** - * Selects "CR, LF" line ending, common on Microsoft Windows. - */ - CR_LF = 2, - /** - * Automatically try to handle any line ending type. - */ - ANY = 3, -} -alias GDataStreamNewlineType DataStreamNewlineType; - -/** - * Flags used when starting a drive. - * - * Since: 2.22 - */ -public enum GDriveStartFlags -{ - /** - * No flags set. - */ - NONE = 0, -} -alias GDriveStartFlags DriveStartFlags; - -/** - * Enumeration describing how a drive can be started/stopped. - * - * Since: 2.22 - */ -public enum GDriveStartStopType -{ - /** - * Unknown or drive doesn't support - * start/stop. - */ - UNKNOWN = 0, - /** - * The stop method will physically - * shut down the drive and e.g. power down the port the drive is - * attached to. - */ - SHUTDOWN = 1, - /** - * The start/stop methods are used - * for connecting/disconnect to the drive over the network. - */ - NETWORK = 2, - /** - * The start/stop methods will - * assemble/disassemble a virtual drive from several physical - * drives. - */ - MULTIDISK = 3, - /** - * The start/stop methods will - * unlock/lock the disk (for example using the ATA SECURITY - * UNLOCK DEVICE command) - */ - PASSWORD = 4, -} -alias GDriveStartStopType DriveStartStopType; - -/** - * GEmblemOrigin is used to add information about the origin of the emblem - * to #GEmblem. - * - * Since: 2.18 - */ -public enum GEmblemOrigin -{ - /** - * Emblem of unknown origin - */ - UNKNOWN = 0, - /** - * Emblem adds device-specific information - */ - DEVICE = 1, - /** - * Emblem depicts live metadata, such as "readonly" - */ - LIVEMETADATA = 2, - /** - * Emblem comes from a user-defined tag, e.g. set by nautilus (in the future) - */ - TAG = 3, -} -alias GEmblemOrigin EmblemOrigin; - -/** - * Flags specifying the behaviour of an attribute. - */ -public enum GFileAttributeInfoFlags -{ - /** - * no flags set. - */ - NONE = 0, - /** - * copy the attribute values when the file is copied. - */ - COPY_WITH_FILE = 1, - /** - * copy the attribute values when the file is moved. - */ - COPY_WHEN_MOVED = 2, -} -alias GFileAttributeInfoFlags FileAttributeInfoFlags; - -/** - * Used by g_file_set_attributes_from_info() when setting file attributes. - */ -public enum GFileAttributeStatus -{ - /** - * Attribute value is unset (empty). - */ - UNSET = 0, - /** - * Attribute value is set. - */ - SET = 1, - /** - * Indicates an error in setting the value. - */ - ERROR_SETTING = 2, -} -alias GFileAttributeStatus FileAttributeStatus; - -/** - * The data types for file attributes. - */ -public enum GFileAttributeType -{ - /** - * indicates an invalid or uninitialized type. - */ - INVALID = 0, - /** - * a null terminated UTF8 string. - */ - STRING = 1, - /** - * a zero terminated string of non-zero bytes. - */ - BYTE_STRING = 2, - /** - * a boolean value. - */ - BOOLEAN = 3, - /** - * an unsigned 4-byte/32-bit integer. - */ - UINT32 = 4, - /** - * a signed 4-byte/32-bit integer. - */ - INT32 = 5, - /** - * an unsigned 8-byte/64-bit integer. - */ - UINT64 = 6, - /** - * a signed 8-byte/64-bit integer. - */ - INT64 = 7, - /** - * a #GObject. - */ - OBJECT = 8, - /** - * a %NULL terminated char **. Since 2.22 - */ - STRINGV = 9, -} -alias GFileAttributeType FileAttributeType; - -/** - * Flags used when copying or moving files. - */ -public enum GFileCopyFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Overwrite any existing files - */ - OVERWRITE = 1, - /** - * Make a backup of any existing files. - */ - BACKUP = 2, - /** - * Don't follow symlinks. - */ - NOFOLLOW_SYMLINKS = 4, - /** - * Copy all file metadata instead of just default set used for copy (see #GFileInfo). - */ - ALL_METADATA = 8, - /** - * Don't use copy and delete fallback if native move not supported. - */ - NO_FALLBACK_FOR_MOVE = 16, - /** - * Leaves target file with default perms, instead of setting the source file perms. - */ - TARGET_DEFAULT_PERMS = 32, -} -alias GFileCopyFlags FileCopyFlags; - -/** - * Flags used when an operation may create a file. - */ -public enum GFileCreateFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Create a file that can only be - * accessed by the current user. - */ - PRIVATE = 1, - /** - * Replace the destination - * as if it didn't exist before. Don't try to keep any old - * permissions, replace instead of following links. This - * is generally useful if you're doing a "copy over" - * rather than a "save new version of" replace operation. - * You can think of it as "unlink destination" before - * writing to it, although the implementation may not - * be exactly like that. This flag can only be used with - * g_file_replace() and its variants, including g_file_replace_contents(). - * Since 2.20 - */ - REPLACE_DESTINATION = 2, -} -alias GFileCreateFlags FileCreateFlags; - -/** - * Flags that can be used with g_file_measure_disk_usage(). - * - * Since: 2.38 - */ -public enum GFileMeasureFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Report any error encountered - * while traversing the directory tree. Normally errors are only - * reported for the toplevel file. - */ - REPORT_ANY_ERROR = 2, - /** - * Tally usage based on apparent file - * sizes. Normally, the block-size is used, if available, as this is a - * more accurate representation of disk space used. - * Compare with `du --apparent-size`. - */ - APPARENT_SIZE = 4, - /** - * Do not cross mount point boundaries. - * Compare with `du -x`. - */ - NO_XDEV = 8, -} -alias GFileMeasureFlags FileMeasureFlags; - -/** - * Specifies what type of event a monitor event is. - */ -public enum GFileMonitorEvent -{ - /** - * a file changed. - */ - CHANGED = 0, - /** - * a hint that this was probably the last change in a set of changes. - */ - CHANGES_DONE_HINT = 1, - /** - * a file was deleted. - */ - DELETED = 2, - /** - * a file was created. - */ - CREATED = 3, - /** - * a file attribute was changed. - */ - ATTRIBUTE_CHANGED = 4, - /** - * the file location will soon be unmounted. - */ - PRE_UNMOUNT = 5, - /** - * the file location was unmounted. - */ - UNMOUNTED = 6, - /** - * the file was moved -- only sent if the - * (deprecated) %G_FILE_MONITOR_SEND_MOVED flag is set - */ - MOVED = 7, - /** - * the file was renamed within the - * current directory -- only sent if the %G_FILE_MONITOR_WATCH_MOVES - * flag is set. Since: 2.46. - */ - RENAMED = 8, - /** - * the file was moved into the - * monitored directory from another location -- only sent if the - * %G_FILE_MONITOR_WATCH_MOVES flag is set. Since: 2.46. - */ - MOVED_IN = 9, - /** - * the file was moved out of the - * monitored directory to another location -- only sent if the - * %G_FILE_MONITOR_WATCH_MOVES flag is set. Since: 2.46 - */ - MOVED_OUT = 10, -} -alias GFileMonitorEvent FileMonitorEvent; - -/** - * Flags used to set what a #GFileMonitor will watch for. - */ -public enum GFileMonitorFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Watch for mount events. - */ - WATCH_MOUNTS = 1, - /** - * Pair DELETED and CREATED events caused - * by file renames (moves) and send a single G_FILE_MONITOR_EVENT_MOVED - * event instead (NB: not supported on all backends; the default - * behaviour -without specifying this flag- is to send single DELETED - * and CREATED events). Deprecated since 2.46: use - * %G_FILE_MONITOR_WATCH_MOVES instead. - */ - SEND_MOVED = 2, - /** - * Watch for changes to the file made - * via another hard link. Since 2.36. - */ - WATCH_HARD_LINKS = 4, - /** - * Watch for rename operations on a - * monitored directory. This causes %G_FILE_MONITOR_EVENT_RENAMED, - * %G_FILE_MONITOR_EVENT_MOVED_IN and %G_FILE_MONITOR_EVENT_MOVED_OUT - * events to be emitted when possible. Since: 2.46. - */ - WATCH_MOVES = 8, -} -alias GFileMonitorFlags FileMonitorFlags; - -/** - * Flags used when querying a #GFileInfo. - */ -public enum GFileQueryInfoFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Don't follow symlinks. - */ - NOFOLLOW_SYMLINKS = 1, -} -alias GFileQueryInfoFlags FileQueryInfoFlags; - -/** - * Indicates the file's on-disk type. - * - * On Windows systems a file will never have %G_FILE_TYPE_SYMBOLIC_LINK type; - * use #GFileInfo and %G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK to determine - * whether a file is a symlink or not. This is due to the fact that NTFS does - * not have a single filesystem object type for symbolic links - it has - * files that symlink to files, and directories that symlink to directories. - * #GFileType enumeration cannot precisely represent this important distinction, - * which is why all Windows symlinks will continue to be reported as - * %G_FILE_TYPE_REGULAR or %G_FILE_TYPE_DIRECTORY. - */ -public enum GFileType -{ - /** - * File's type is unknown. - */ - UNKNOWN = 0, - /** - * File handle represents a regular file. - */ - REGULAR = 1, - /** - * File handle represents a directory. - */ - DIRECTORY = 2, - /** - * File handle represents a symbolic link - * (Unix systems). - */ - SYMBOLIC_LINK = 3, - /** - * File is a "special" file, such as a socket, fifo, - * block device, or character device. - */ - SPECIAL = 4, - /** - * File is a shortcut (Windows systems). - */ - SHORTCUT = 5, - /** - * File is a mountable location. - */ - MOUNTABLE = 6, -} -alias GFileType FileType; - -/** - * Indicates a hint from the file system whether files should be - * previewed in a file manager. Returned as the value of the key - * #G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW. - */ -public enum GFilesystemPreviewType -{ - /** - * Only preview files if user has explicitly requested it. - */ - IF_ALWAYS = 0, - /** - * Preview files if user has requested preview of "local" files. - */ - IF_LOCAL = 1, - /** - * Never preview files. - */ - NEVER = 2, -} -alias GFilesystemPreviewType FilesystemPreviewType; - -/** - * Error codes returned by GIO functions. - * - * Note that this domain may be extended in future GLib releases. In - * general, new error codes either only apply to new APIs, or else - * replace %G_IO_ERROR_FAILED in cases that were not explicitly - * distinguished before. You should therefore avoid writing code like - * |[ - * if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED)) - * { - * // Assume that this is EPRINTERONFIRE - * ... - * } - * ]| - * but should instead treat all unrecognized error codes the same as - * #G_IO_ERROR_FAILED. - * - * See also #GPollableReturn for a cheaper way of returning - * %G_IO_ERROR_WOULD_BLOCK to callers without allocating a #GError. - */ -public enum GIOErrorEnum -{ - /** - * Generic error condition for when an operation fails - * and no more specific #GIOErrorEnum value is defined. - */ - FAILED = 0, - /** - * File not found. - */ - NOT_FOUND = 1, - /** - * File already exists. - */ - EXISTS = 2, - /** - * File is a directory. - */ - IS_DIRECTORY = 3, - /** - * File is not a directory. - */ - NOT_DIRECTORY = 4, - /** - * File is a directory that isn't empty. - */ - NOT_EMPTY = 5, - /** - * File is not a regular file. - */ - NOT_REGULAR_FILE = 6, - /** - * File is not a symbolic link. - */ - NOT_SYMBOLIC_LINK = 7, - /** - * File cannot be mounted. - */ - NOT_MOUNTABLE_FILE = 8, - /** - * Filename is too many characters. - */ - FILENAME_TOO_LONG = 9, - /** - * Filename is invalid or contains invalid characters. - */ - INVALID_FILENAME = 10, - /** - * File contains too many symbolic links. - */ - TOO_MANY_LINKS = 11, - /** - * No space left on drive. - */ - NO_SPACE = 12, - /** - * Invalid argument. - */ - INVALID_ARGUMENT = 13, - /** - * Permission denied. - */ - PERMISSION_DENIED = 14, - /** - * Operation (or one of its parameters) not supported - */ - NOT_SUPPORTED = 15, - /** - * File isn't mounted. - */ - NOT_MOUNTED = 16, - /** - * File is already mounted. - */ - ALREADY_MOUNTED = 17, - /** - * File was closed. - */ - CLOSED = 18, - /** - * Operation was cancelled. See #GCancellable. - */ - CANCELLED = 19, - /** - * Operations are still pending. - */ - PENDING = 20, - /** - * File is read only. - */ - READ_ONLY = 21, - /** - * Backup couldn't be created. - */ - CANT_CREATE_BACKUP = 22, - /** - * File's Entity Tag was incorrect. - */ - WRONG_ETAG = 23, - /** - * Operation timed out. - */ - TIMED_OUT = 24, - /** - * Operation would be recursive. - */ - WOULD_RECURSE = 25, - /** - * File is busy. - */ - BUSY = 26, - /** - * Operation would block. - */ - WOULD_BLOCK = 27, - /** - * Host couldn't be found (remote operations). - */ - HOST_NOT_FOUND = 28, - /** - * Operation would merge files. - */ - WOULD_MERGE = 29, - /** - * Operation failed and a helper program has - * already interacted with the user. Do not display any error dialog. - */ - FAILED_HANDLED = 30, - /** - * The current process has too many files - * open and can't open any more. Duplicate descriptors do count toward - * this limit. Since 2.20 - */ - TOO_MANY_OPEN_FILES = 31, - /** - * The object has not been initialized. Since 2.22 - */ - NOT_INITIALIZED = 32, - /** - * The requested address is already in use. Since 2.22 - */ - ADDRESS_IN_USE = 33, - /** - * Need more input to finish operation. Since 2.24 - */ - PARTIAL_INPUT = 34, - /** - * The input data was invalid. Since 2.24 - */ - INVALID_DATA = 35, - /** - * A remote object generated an error that - * doesn't correspond to a locally registered #GError error - * domain. Use g_dbus_error_get_remote_error() to extract the D-Bus - * error name and g_dbus_error_strip_remote_error() to fix up the - * message so it matches what was received on the wire. Since 2.26. - */ - DBUS_ERROR = 36, - /** - * Host unreachable. Since 2.26 - */ - HOST_UNREACHABLE = 37, - /** - * Network unreachable. Since 2.26 - */ - NETWORK_UNREACHABLE = 38, - /** - * Connection refused. Since 2.26 - */ - CONNECTION_REFUSED = 39, - /** - * Connection to proxy server failed. Since 2.26 - */ - PROXY_FAILED = 40, - /** - * Proxy authentication failed. Since 2.26 - */ - PROXY_AUTH_FAILED = 41, - /** - * Proxy server needs authentication. Since 2.26 - */ - PROXY_NEED_AUTH = 42, - /** - * Proxy connection is not allowed by ruleset. - * Since 2.26 - */ - PROXY_NOT_ALLOWED = 43, - /** - * Broken pipe. Since 2.36 - */ - BROKEN_PIPE = 44, - /** - * Connection closed by peer. Note that this - * is the same code as %G_IO_ERROR_BROKEN_PIPE; before 2.44 some - * "connection closed" errors returned %G_IO_ERROR_BROKEN_PIPE, but others - * returned %G_IO_ERROR_FAILED. Now they should all return the same - * value, which has this more logical name. Since 2.44. - */ - CONNECTION_CLOSED = 44, - /** - * Transport endpoint is not connected. Since 2.44 - */ - NOT_CONNECTED = 45, - /** - * Message too large. Since 2.48. - */ - MESSAGE_TOO_LARGE = 46, -} -alias GIOErrorEnum IOErrorEnum; - -/** - * Flags for use with g_io_module_scope_new(). - * - * Since: 2.30 - */ -public enum GIOModuleScopeFlags -{ - /** - * No module scan flags - */ - NONE = 0, - /** - * When using this scope to load or - * scan modules, automatically block a modules which has the same base - * basename as previously loaded module. - */ - BLOCK_DUPLICATES = 1, -} -alias GIOModuleScopeFlags IOModuleScopeFlags; - -/** - * GIOStreamSpliceFlags determine how streams should be spliced. - * - * Since: 2.28 - */ -public enum GIOStreamSpliceFlags -{ - /** - * Do not close either stream. - */ - NONE = 0, - /** - * Close the first stream after - * the splice. - */ - CLOSE_STREAM1 = 1, - /** - * Close the second stream after - * the splice. - */ - CLOSE_STREAM2 = 2, - /** - * Wait for both splice operations to finish - * before calling the callback. - */ - WAIT_FOR_BOTH = 4, -} -alias GIOStreamSpliceFlags IOStreamSpliceFlags; - -/** - * Memory availability warning levels. - * - * Note that because new values might be added, it is recommended that applications check - * #GMemoryMonitorWarningLevel as ranges, for example: - * |[ - * if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW) - * drop_caches (); - * ]| - * - * Since: 2.64 - */ -public enum GMemoryMonitorWarningLevel -{ - /** - * Memory on the device is low, processes - * should free up unneeded resources (for example, in-memory caches) so they can - * be used elsewhere. - */ - LOW = 50, - /** - * Same as @G_MEMORY_MONITOR_WARNING_LEVEL_LOW - * but the device has even less free memory, so processes should try harder to free - * up unneeded resources. If your process does not need to stay running, it is a - * good time for it to quit. - */ - MEDIUM = 100, - /** - * The system will soon start terminating - * processes to reclaim memory, including background processes. - */ - CRITICAL = 255, -} -alias GMemoryMonitorWarningLevel MemoryMonitorWarningLevel; - -/** - * Flags used when mounting a mount. - */ -public enum GMountMountFlags -{ - /** - * No flags set. - */ - NONE = 0, -} -alias GMountMountFlags MountMountFlags; - -/** - * #GMountOperationResult is returned as a result when a request for - * information is send by the mounting operation. - */ -public enum GMountOperationResult -{ - /** - * The request was fulfilled and the - * user specified data is now available - */ - HANDLED = 0, - /** - * The user requested the mount operation - * to be aborted - */ - ABORTED = 1, - /** - * The request was unhandled (i.e. not - * implemented) - */ - UNHANDLED = 2, -} -alias GMountOperationResult MountOperationResult; - -/** - * Flags used when an unmounting a mount. - */ -public enum GMountUnmountFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * Unmount even if there are outstanding - * file operations on the mount. - */ - FORCE = 1, -} -alias GMountUnmountFlags MountUnmountFlags; - -/** - * The host's network connectivity state, as reported by #GNetworkMonitor. - * - * Since: 2.44 - */ -public enum GNetworkConnectivity -{ - /** - * The host is not configured with a - * route to the Internet; it may or may not be connected to a local - * network. - */ - LOCAL = 1, - /** - * The host is connected to a network, but - * does not appear to be able to reach the full Internet, perhaps - * due to upstream network problems. - */ - LIMITED = 2, - /** - * The host is behind a captive portal and - * cannot reach the full Internet. - */ - PORTAL = 3, - /** - * The host is connected to a network, and - * appears to be able to reach the full Internet. - */ - FULL = 4, -} -alias GNetworkConnectivity NetworkConnectivity; - -/** - * Priority levels for #GNotifications. - * - * Since: 2.42 - */ -public enum GNotificationPriority -{ - /** - * the default priority, to be used for the - * majority of notifications (for example email messages, software updates, - * completed download/sync operations) - */ - NORMAL = 0, - /** - * for notifications that do not require - * immediate attention - typically used for contextual background - * information, such as contact birthdays or local weather - */ - LOW = 1, - /** - * for events that require more attention, - * usually because responses are time-sensitive (for example chat and SMS - * messages or alarms) - */ - HIGH = 2, - /** - * for urgent notifications, or notifications - * that require a response in a short space of time (for example phone calls - * or emergency warnings) - */ - URGENT = 3, -} -alias GNotificationPriority NotificationPriority; - -/** - * GOutputStreamSpliceFlags determine how streams should be spliced. - */ -public enum GOutputStreamSpliceFlags -{ - /** - * Do not close either stream. - */ - NONE = 0, - /** - * Close the source stream after - * the splice. - */ - CLOSE_SOURCE = 1, - /** - * Close the target stream after - * the splice. - */ - CLOSE_TARGET = 2, -} -alias GOutputStreamSpliceFlags OutputStreamSpliceFlags; - -/** - * #GPasswordSave is used to indicate the lifespan of a saved password. - * - * #Gvfs stores passwords in the Gnome keyring when this flag allows it - * to, and later retrieves it again from there. - */ -public enum GPasswordSave -{ - /** - * never save a password. - */ - NEVER = 0, - /** - * save a password for the session. - */ - FOR_SESSION = 1, - /** - * save a password permanently. - */ - PERMANENTLY = 2, -} -alias GPasswordSave PasswordSave; - -/** - * Return value for various IO operations that signal errors via the - * return value and not necessarily via a #GError. - * - * This enum exists to be able to return errors to callers without having to - * allocate a #GError. Allocating #GErrors can be quite expensive for - * regularly happening errors like %G_IO_ERROR_WOULD_BLOCK. - * - * In case of %G_POLLABLE_RETURN_FAILED a #GError should be set for the - * operation to give details about the error that happened. - * - * Since: 2.60 - */ -public enum GPollableReturn -{ - /** - * Generic error condition for when an operation fails. - */ - FAILED = 0, - /** - * The operation was successfully finished. - */ - OK = 1, - /** - * The operation would block. - */ - WOULD_BLOCK = -27, -} -alias GPollableReturn PollableReturn; - -/** - * An error code used with %G_RESOLVER_ERROR in a #GError returned - * from a #GResolver routine. - * - * Since: 2.22 - */ -public enum GResolverError -{ - /** - * the requested name/address/service was not - * found - */ - NOT_FOUND = 0, - /** - * the requested information could not - * be looked up due to a network error or similar problem - */ - TEMPORARY_FAILURE = 1, - /** - * unknown error - */ - INTERNAL = 2, -} -alias GResolverError ResolverError; - -/** - * Flags to modify lookup behavior. - * - * Since: 2.60 - */ -public enum GResolverNameLookupFlags -{ - /** - * default behavior (same as g_resolver_lookup_by_name()) - */ - DEFAULT = 0, - /** - * only resolve ipv4 addresses - */ - IPV4_ONLY = 1, - /** - * only resolve ipv6 addresses - */ - IPV6_ONLY = 2, -} -alias GResolverNameLookupFlags ResolverNameLookupFlags; - -/** - * The type of record that g_resolver_lookup_records() or - * g_resolver_lookup_records_async() should retrieve. The records are returned - * as lists of #GVariant tuples. Each record type has different values in - * the variant tuples returned. - * - * %G_RESOLVER_RECORD_SRV records are returned as variants with the signature - * `(qqqs)`, containing a `guint16` with the priority, a `guint16` with the - * weight, a `guint16` with the port, and a string of the hostname. - * - * %G_RESOLVER_RECORD_MX records are returned as variants with the signature - * `(qs)`, representing a `guint16` with the preference, and a string containing - * the mail exchanger hostname. - * - * %G_RESOLVER_RECORD_TXT records are returned as variants with the signature - * `(as)`, representing an array of the strings in the text record. Note: Most TXT - * records only contain a single string, but - * [RFC 1035](https://tools.ietf.org/html/rfc1035#section-3.3.14) does allow a - * record to contain multiple strings. The RFC which defines the interpretation - * of a specific TXT record will likely require concatenation of multiple - * strings if they are present, as with - * [RFC 7208](https://tools.ietf.org/html/rfc7208#section-3.3). - * - * %G_RESOLVER_RECORD_SOA records are returned as variants with the signature - * `(ssuuuuu)`, representing a string containing the primary name server, a - * string containing the administrator, the serial as a `guint32`, the refresh - * interval as a `guint32`, the retry interval as a `guint32`, the expire timeout - * as a `guint32`, and the TTL as a `guint32`. - * - * %G_RESOLVER_RECORD_NS records are returned as variants with the signature - * `(s)`, representing a string of the hostname of the name server. - * - * Since: 2.34 - */ -public enum GResolverRecordType -{ - /** - * look up DNS SRV records for a domain - */ - SRV = 1, - /** - * look up DNS MX records for a domain - */ - MX = 2, - /** - * look up DNS TXT records for a name - */ - TXT = 3, - /** - * look up DNS SOA records for a zone - */ - SOA = 4, - /** - * look up DNS NS records for a domain - */ - NS = 5, -} -alias GResolverRecordType ResolverRecordType; - -/** - * An error code used with %G_RESOURCE_ERROR in a #GError returned - * from a #GResource routine. - * - * Since: 2.32 - */ -public enum GResourceError -{ - /** - * no file was found at the requested path - */ - NOT_FOUND = 0, - /** - * unknown error - */ - INTERNAL = 1, -} -alias GResourceError ResourceError; - -/** - * GResourceFlags give information about a particular file inside a resource - * bundle. - * - * Since: 2.32 - */ -public enum GResourceFlags -{ - /** - * No flags set. - */ - NONE = 0, - /** - * The file is compressed. - */ - COMPRESSED = 1, -} -alias GResourceFlags ResourceFlags; - -/** - * GResourceLookupFlags determine how resource path lookups are handled. - * - * Since: 2.32 - */ -public enum GResourceLookupFlags -{ - /** - * No flags set. - */ - NONE = 0, -} -alias GResourceLookupFlags ResourceLookupFlags; - -/** - * Flags used when creating a binding. These flags determine in which - * direction the binding works. The default is to synchronize in both - * directions. - */ -public enum GSettingsBindFlags -{ - /** - * Equivalent to `G_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET` - */ - DEFAULT = 0, - /** - * Update the #GObject property when the setting changes. - * It is an error to use this flag if the property is not writable. - */ - GET = 1, - /** - * Update the setting when the #GObject property changes. - * It is an error to use this flag if the property is not readable. - */ - SET = 2, - /** - * Do not try to bind a "sensitivity" property to the writability of the setting - */ - NO_SENSITIVITY = 4, - /** - * When set in addition to #G_SETTINGS_BIND_GET, set the #GObject property - * value initially from the setting, but do not listen for changes of the setting - */ - GET_NO_CHANGES = 8, - /** - * When passed to g_settings_bind(), uses a pair of mapping functions that invert - * the boolean value when mapping between the setting and the property. The setting and property must both - * be booleans. You cannot pass this flag to g_settings_bind_with_mapping(). - */ - INVERT_BOOLEAN = 16, -} -alias GSettingsBindFlags SettingsBindFlags; - -/** - * Describes an event occurring on a #GSocketClient. See the - * #GSocketClient::event signal for more details. - * - * Additional values may be added to this type in the future. - * - * Since: 2.32 - */ -public enum GSocketClientEvent -{ - /** - * The client is doing a DNS lookup. - */ - RESOLVING = 0, - /** - * The client has completed a DNS lookup. - */ - RESOLVED = 1, - /** - * The client is connecting to a remote - * host (either a proxy or the destination server). - */ - CONNECTING = 2, - /** - * The client has connected to a remote - * host. - */ - CONNECTED = 3, - /** - * The client is negotiating - * with a proxy to connect to the destination server. - */ - PROXY_NEGOTIATING = 4, - /** - * The client has negotiated - * with the proxy server. - */ - PROXY_NEGOTIATED = 5, - /** - * The client is performing a - * TLS handshake. - */ - TLS_HANDSHAKING = 6, - /** - * The client has performed a - * TLS handshake. - */ - TLS_HANDSHAKED = 7, - /** - * The client is done with a particular - * #GSocketConnectable. - */ - COMPLETE = 8, -} -alias GSocketClientEvent SocketClientEvent; - -/** - * The protocol family of a #GSocketAddress. (These values are - * identical to the system defines %AF_INET, %AF_INET6 and %AF_UNIX, - * if available.) - * - * Since: 2.22 - */ -public enum GSocketFamily -{ - /** - * no address family - */ - INVALID = 0, - /** - * the UNIX domain family - */ - UNIX = 1, - /** - * the IPv4 family - */ - IPV4 = 2, - /** - * the IPv6 family - */ - IPV6 = 10, -} -alias GSocketFamily SocketFamily; - -/** - * Describes an event occurring on a #GSocketListener. See the - * #GSocketListener::event signal for more details. - * - * Additional values may be added to this type in the future. - * - * Since: 2.46 - */ -public enum GSocketListenerEvent -{ - /** - * The listener is about to bind a socket. - */ - BINDING = 0, - /** - * The listener has bound a socket. - */ - BOUND = 1, - /** - * The listener is about to start - * listening on this socket. - */ - LISTENING = 2, - /** - * The listener is now listening on - * this socket. - */ - LISTENED = 3, -} -alias GSocketListenerEvent SocketListenerEvent; - -/** - * Flags used in g_socket_receive_message() and g_socket_send_message(). - * The flags listed in the enum are some commonly available flags, but the - * values used for them are the same as on the platform, and any other flags - * are passed in/out as is. So to use a platform specific flag, just include - * the right system header and pass in the flag. - * - * Since: 2.22 - */ -public enum GSocketMsgFlags -{ - /** - * No flags. - */ - NONE = 0, - /** - * Request to send/receive out of band data. - */ - OOB = 1, - /** - * Read data from the socket without removing it from - * the queue. - */ - PEEK = 2, - /** - * Don't use a gateway to send out the packet, - * only send to hosts on directly connected networks. - */ - DONTROUTE = 4, -} -alias GSocketMsgFlags SocketMsgFlags; - -/** - * A protocol identifier is specified when creating a #GSocket, which is a - * family/type specific identifier, where 0 means the default protocol for - * the particular family/type. - * - * This enum contains a set of commonly available and used protocols. You - * can also pass any other identifiers handled by the platform in order to - * use protocols not listed here. - * - * Since: 2.22 - */ -public enum GSocketProtocol -{ - /** - * The protocol type is unknown - */ - UNKNOWN = -1, - /** - * The default protocol for the family/type - */ - DEFAULT = 0, - /** - * TCP over IP - */ - TCP = 6, - /** - * UDP over IP - */ - UDP = 17, - /** - * SCTP over IP - */ - SCTP = 132, -} -alias GSocketProtocol SocketProtocol; - -/** - * Flags used when creating a #GSocket. Some protocols may not implement - * all the socket types. - * - * Since: 2.22 - */ -public enum GSocketType -{ - /** - * Type unknown or wrong - */ - INVALID = 0, - /** - * Reliable connection-based byte streams (e.g. TCP). - */ - STREAM = 1, - /** - * Connectionless, unreliable datagram passing. - * (e.g. UDP) - */ - DATAGRAM = 2, - /** - * Reliable connection-based passing of datagrams - * of fixed maximum length (e.g. SCTP). - */ - SEQPACKET = 3, -} -alias GSocketType SocketType; - -/** - * Flags to define the behaviour of a #GSubprocess. - * - * Note that the default for stdin is to redirect from `/dev/null`. For - * stdout and stderr the default are for them to inherit the - * corresponding descriptor from the calling process. - * - * Note that it is a programmer error to mix 'incompatible' flags. For - * example, you may not request both %G_SUBPROCESS_FLAGS_STDOUT_PIPE and - * %G_SUBPROCESS_FLAGS_STDOUT_SILENCE. - * - * Since: 2.40 - */ -public enum GSubprocessFlags -{ - /** - * No flags. - */ - NONE = 0, - /** - * create a pipe for the stdin of the - * spawned process that can be accessed with - * g_subprocess_get_stdin_pipe(). - */ - STDIN_PIPE = 1, - /** - * stdin is inherited from the - * calling process. - */ - STDIN_INHERIT = 2, - /** - * create a pipe for the stdout of the - * spawned process that can be accessed with - * g_subprocess_get_stdout_pipe(). - */ - STDOUT_PIPE = 4, - /** - * silence the stdout of the spawned - * process (ie: redirect to `/dev/null`). - */ - STDOUT_SILENCE = 8, - /** - * create a pipe for the stderr of the - * spawned process that can be accessed with - * g_subprocess_get_stderr_pipe(). - */ - STDERR_PIPE = 16, - /** - * silence the stderr of the spawned - * process (ie: redirect to `/dev/null`). - */ - STDERR_SILENCE = 32, - /** - * merge the stderr of the spawned - * process with whatever the stdout happens to be. This is a good way - * of directing both streams to a common log file, for example. - */ - STDERR_MERGE = 64, - /** - * spawned processes will inherit the - * file descriptors of their parent, unless those descriptors have - * been explicitly marked as close-on-exec. This flag has no effect - * over the "standard" file descriptors (stdin, stdout, stderr). - */ - INHERIT_FDS = 128, -} -alias GSubprocessFlags SubprocessFlags; - -/** - * Flags to define future #GTestDBus behaviour. - * - * Since: 2.34 - */ -public enum GTestDBusFlags -{ - /** - * No flags. - */ - NONE = 0, -} -alias GTestDBusFlags TestDBusFlags; - -/** - * The client authentication mode for a #GTlsServerConnection. - * - * Since: 2.28 - */ -public enum GTlsAuthenticationMode -{ - /** - * client authentication not required - */ - NONE = 0, - /** - * client authentication is requested - */ - REQUESTED = 1, - /** - * client authentication is required - */ - REQUIRED = 2, -} -alias GTlsAuthenticationMode TlsAuthenticationMode; - -/** - * A set of flags describing TLS certification validation. This can be - * used to set which validation steps to perform (eg, with - * g_tls_client_connection_set_validation_flags()), or to describe why - * a particular certificate was rejected (eg, in - * #GTlsConnection::accept-certificate). - * - * Since: 2.28 - */ -public enum GTlsCertificateFlags -{ - /** - * The signing certificate authority is - * not known. - */ - UNKNOWN_CA = 1, - /** - * The certificate does not match the - * expected identity of the site that it was retrieved from. - */ - BAD_IDENTITY = 2, - /** - * The certificate's activation time - * is still in the future - */ - NOT_ACTIVATED = 4, - /** - * The certificate has expired - */ - EXPIRED = 8, - /** - * The certificate has been revoked - * according to the #GTlsConnection's certificate revocation list. - */ - REVOKED = 16, - /** - * The certificate's algorithm is - * considered insecure. - */ - INSECURE = 32, - /** - * Some other error occurred validating - * the certificate - */ - GENERIC_ERROR = 64, - /** - * the combination of all of the above - * flags - */ - VALIDATE_ALL = 127, -} -alias GTlsCertificateFlags TlsCertificateFlags; - -/** - * Flags for g_tls_interaction_request_certificate(), - * g_tls_interaction_request_certificate_async(), and - * g_tls_interaction_invoke_request_certificate(). - * - * Since: 2.40 - */ -public enum GTlsCertificateRequestFlags -{ - /** - * No flags - */ - NONE = 0, -} -alias GTlsCertificateRequestFlags TlsCertificateRequestFlags; - -/** - * An error code used with %G_TLS_CHANNEL_BINDING_ERROR in a #GError to - * indicate a TLS channel binding retrieval error. - * - * Since: 2.66 - */ -public enum GTlsChannelBindingError -{ - /** - * Either entire binding - * retrieval facility or specific binding type is not implemented in the - * TLS backend. - */ - NOT_IMPLEMENTED = 0, - /** - * The handshake is not yet - * complete on the connection which is a strong requirement for any existing - * binding type. - */ - INVALID_STATE = 1, - /** - * Handshake is complete but - * binding data is not available. That normally indicates the TLS - * implementation failed to provide the binding data. For example, some - * implementations do not provide a peer certificate for resumed connections. - */ - NOT_AVAILABLE = 2, - /** - * Binding type is not supported - * on the current connection. This error could be triggered when requesting - * `tls-server-end-point` binding data for a certificate which has no hash - * function or uses multiple hash functions. - */ - NOT_SUPPORTED = 3, - /** - * Any other backend error - * preventing binding data retrieval. - */ - GENERAL_ERROR = 4, -} -alias GTlsChannelBindingError TlsChannelBindingError; - -/** - * The type of TLS channel binding data to retrieve from #GTlsConnection - * or #GDtlsConnection, as documented by RFC 5929. The - * [`tls-unique-for-telnet`](https://tools.ietf.org/html/rfc5929#section-5) - * binding type is not currently implemented. - * - * Since: 2.66 - */ -public enum GTlsChannelBindingType -{ - /** - * [`tls-unique`](https://tools.ietf.org/html/rfc5929#section-3) binding - * type - */ - UNIQUE = 0, - /** - * [`tls-server-end-point`](https://tools.ietf.org/html/rfc5929#section-4) - * binding type - */ - SERVER_END_POINT = 1, -} -alias GTlsChannelBindingType TlsChannelBindingType; - -/** - * Flags for g_tls_database_lookup_certificate_for_handle(), - * g_tls_database_lookup_certificate_issuer(), - * and g_tls_database_lookup_certificates_issued_by(). - * - * Since: 2.30 - */ -public enum GTlsDatabaseLookupFlags -{ - /** - * No lookup flags - */ - NONE = 0, - /** - * Restrict lookup to certificates that have - * a private key. - */ - KEYPAIR = 1, -} -alias GTlsDatabaseLookupFlags TlsDatabaseLookupFlags; - -/** - * Flags for g_tls_database_verify_chain(). - * - * Since: 2.30 - */ -public enum GTlsDatabaseVerifyFlags -{ - /** - * No verification flags - */ - NONE = 0, -} -alias GTlsDatabaseVerifyFlags TlsDatabaseVerifyFlags; - -/** - * An error code used with %G_TLS_ERROR in a #GError returned from a - * TLS-related routine. - * - * Since: 2.28 - */ -public enum GTlsError -{ - /** - * No TLS provider is available - */ - UNAVAILABLE = 0, - /** - * Miscellaneous TLS error - */ - MISC = 1, - /** - * The certificate presented could not - * be parsed or failed validation. - */ - BAD_CERTIFICATE = 2, - /** - * The TLS handshake failed because the - * peer does not seem to be a TLS server. - */ - NOT_TLS = 3, - /** - * The TLS handshake failed because the - * peer's certificate was not acceptable. - */ - HANDSHAKE = 4, - /** - * The TLS handshake failed because - * the server requested a client-side certificate, but none was - * provided. See g_tls_connection_set_certificate(). - */ - CERTIFICATE_REQUIRED = 5, - /** - * The TLS connection was closed without proper - * notice, which may indicate an attack. See - * g_tls_connection_set_require_close_notify(). - */ - EOF = 6, - /** - * The TLS handshake failed - * because the client sent the fallback SCSV, indicating a protocol - * downgrade attack. Since: 2.60 - */ - INAPPROPRIATE_FALLBACK = 7, -} -alias GTlsError TlsError; - -/** - * #GTlsInteractionResult is returned by various functions in #GTlsInteraction - * when finishing an interaction request. - * - * Since: 2.30 - */ -public enum GTlsInteractionResult -{ - /** - * The interaction was unhandled (i.e. not - * implemented). - */ - UNHANDLED = 0, - /** - * The interaction completed, and resulting data - * is available. - */ - HANDLED = 1, - /** - * The interaction has failed, or was cancelled. - * and the operation should be aborted. - */ - FAILED = 2, -} -alias GTlsInteractionResult TlsInteractionResult; - -/** - * Various flags for the password. - * - * Since: 2.30 - */ -public enum GTlsPasswordFlags -{ - /** - * No flags - */ - NONE = 0, - /** - * The password was wrong, and the user should retry. - */ - RETRY = 2, - /** - * Hint to the user that the password has been - * wrong many times, and the user may not have many chances left. - */ - MANY_TRIES = 4, - /** - * Hint to the user that this is the last try to get - * this password right. - */ - FINAL_TRY = 8, -} -alias GTlsPasswordFlags TlsPasswordFlags; - -/** - * When to allow rehandshaking. See - * g_tls_connection_set_rehandshake_mode(). - * - * Deprecated: Changing the rehandshake mode is no longer - * required for compatibility. Also, rehandshaking has been removed - * from the TLS protocol in TLS 1.3. - * - * Since: 2.28 - */ -public enum GTlsRehandshakeMode -{ - /** - * Never allow rehandshaking - */ - NEVER = 0, - /** - * Allow safe rehandshaking only - */ - SAFELY = 1, - /** - * Allow unsafe rehandshaking - */ - UNSAFELY = 2, -} -alias GTlsRehandshakeMode TlsRehandshakeMode; - -/** - * The type of name used by a #GUnixSocketAddress. - * %G_UNIX_SOCKET_ADDRESS_PATH indicates a traditional unix domain - * socket bound to a filesystem path. %G_UNIX_SOCKET_ADDRESS_ANONYMOUS - * indicates a socket not bound to any name (eg, a client-side socket, - * or a socket created with socketpair()). - * - * For abstract sockets, there are two incompatible ways of naming - * them; the man pages suggest using the entire `struct sockaddr_un` - * as the name, padding the unused parts of the %sun_path field with - * zeroes; this corresponds to %G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED. - * However, many programs instead just use a portion of %sun_path, and - * pass an appropriate smaller length to bind() or connect(). This is - * %G_UNIX_SOCKET_ADDRESS_ABSTRACT. - * - * Since: 2.26 - */ -public enum GUnixSocketAddressType -{ - /** - * invalid - */ - INVALID = 0, - /** - * anonymous - */ - ANONYMOUS = 1, - /** - * a filesystem path - */ - PATH = 2, - /** - * an abstract name - */ - ABSTRACT = 3, - /** - * an abstract name, 0-padded - * to the full length of a unix socket name - */ - ABSTRACT_PADDED = 4, -} -alias GUnixSocketAddressType UnixSocketAddressType; - -/** - * Used to select the type of data format to use for #GZlibDecompressor - * and #GZlibCompressor. - * - * Since: 2.24 - */ -public enum GZlibCompressorFormat -{ - /** - * deflate compression with zlib header - */ - ZLIB = 0, - /** - * gzip file format - */ - GZIP = 1, - /** - * deflate compression with no header - */ - RAW = 2, -} -alias GZlibCompressorFormat ZlibCompressorFormat; - -struct GAction; - -/** - * This struct defines a single action. It is for use with - * g_action_map_add_action_entries(). - * - * The order of the items in the structure are intended to reflect - * frequency of use. It is permissible to use an incomplete initialiser - * in order to leave some of the later values as %NULL. All values - * after @name are optional. Additional optional fields may be added in - * the future. - * - * See g_action_map_add_action_entries() for an example. - */ -struct GActionEntry -{ - /** - * the name of the action - */ - const(char)* name; - /** */ - extern(C) void function(GSimpleAction* action, GVariant* parameter, void* userData) activate; - /** - * the type of the parameter that must be passed to the - * activate function for this action, given as a single - * GVariant type string (or %NULL for no parameter) - */ - const(char)* parameterType; - /** - * the initial state for this action, given in - * [GVariant text format][gvariant-text]. The state is parsed - * with no extra type information, so type tags must be added to - * the string if they are necessary. Stateless actions should - * give %NULL here. - */ - const(char)* state; - /** */ - extern(C) void function(GSimpleAction* action, GVariant* value, void* userData) changeState; - size_t[3] padding; -} - -struct GActionGroup; - -/** - * The virtual function table for #GActionGroup. - * - * Since: 2.28 - */ -struct GActionGroupInterface -{ - GTypeInterface gIface; - /** - * - * Params: - * actionGroup = a #GActionGroup - * actionName = the name of the action to check for - * Returns: whether the named action exists - */ - extern(C) int function(GActionGroup* actionGroup, const(char)* actionName) hasAction; - /** - * - * Params: - * actionGroup = a #GActionGroup - * Returns: a %NULL-terminated array of the names of the - * actions in the group - */ - extern(C) char** function(GActionGroup* actionGroup) listActions; - /** - * - * Params: - * actionGroup = a #GActionGroup - * actionName = the name of the action to query - * Returns: whether or not the action is currently enabled - */ - extern(C) int function(GActionGroup* actionGroup, const(char)* actionName) getActionEnabled; - /** - * - * Params: - * actionGroup = a #GActionGroup - * actionName = the name of the action to query - * Returns: the parameter type - */ - extern(C) GVariantType* function(GActionGroup* actionGroup, const(char)* actionName) getActionParameterType; - /** - * - * Params: - * actionGroup = a #GActionGroup - * actionName = the name of the action to query - * Returns: the state type, if the action is stateful - */ - extern(C) GVariantType* function(GActionGroup* actionGroup, const(char)* actionName) getActionStateType; - /** - * - * Params: - * actionGroup = a #GActionGroup - * actionName = the name of the action to query - * Returns: the state range hint - */ - extern(C) GVariant* function(GActionGroup* actionGroup, const(char)* actionName) getActionStateHint; - /** - * - * Params: - * actionGroup = a #GActionGroup - * actionName = the name of the action to query - * Returns: the current state of the action - */ - extern(C) GVariant* function(GActionGroup* actionGroup, const(char)* actionName) getActionState; - /** */ - extern(C) void function(GActionGroup* actionGroup, const(char)* actionName, GVariant* value) changeActionState; - /** */ - extern(C) void function(GActionGroup* actionGroup, const(char)* actionName, GVariant* parameter) activateAction; - /** */ - extern(C) void function(GActionGroup* actionGroup, const(char)* actionName) actionAdded; - /** */ - extern(C) void function(GActionGroup* actionGroup, const(char)* actionName) actionRemoved; - /** */ - extern(C) void function(GActionGroup* actionGroup, const(char)* actionName, int enabled) actionEnabledChanged; - /** */ - extern(C) void function(GActionGroup* actionGroup, const(char)* actionName, GVariant* state) actionStateChanged; - /** - * - * Params: - * actionGroup = a #GActionGroup - * actionName = the name of an action in the group - * enabled = if the action is presently enabled - * parameterType = the parameter type, or %NULL if none needed - * stateType = the state type, or %NULL if stateless - * stateHint = the state hint, or %NULL if none - * state = the current state, or %NULL if stateless - * Returns: %TRUE if the action exists, else %FALSE - */ - extern(C) int function(GActionGroup* actionGroup, const(char)* actionName, int* enabled, GVariantType** parameterType, GVariantType** stateType, GVariant** stateHint, GVariant** state) queryAction; -} - -/** - * The virtual function table for #GAction. - * - * Since: 2.28 - */ -struct GActionInterface -{ - GTypeInterface gIface; - /** - * - * Params: - * action = a #GAction - * Returns: the name of the action - */ - extern(C) const(char)* function(GAction* action) getName; - /** - * - * Params: - * action = a #GAction - * Returns: the parameter type - */ - extern(C) GVariantType* function(GAction* action) getParameterType; - /** - * - * Params: - * action = a #GAction - * Returns: the state type, if the action is stateful - */ - extern(C) GVariantType* function(GAction* action) getStateType; - /** - * - * Params: - * action = a #GAction - * Returns: the state range hint - */ - extern(C) GVariant* function(GAction* action) getStateHint; - /** - * - * Params: - * action = a #GAction - * Returns: whether the action is enabled - */ - extern(C) int function(GAction* action) getEnabled; - /** - * - * Params: - * action = a #GAction - * Returns: the current state of the action - */ - extern(C) GVariant* function(GAction* action) getState; - /** */ - extern(C) void function(GAction* action, GVariant* value) changeState; - /** */ - extern(C) void function(GAction* action, GVariant* parameter) activate; -} - -struct GActionMap; - -/** - * The virtual function table for #GActionMap. - * - * Since: 2.32 - */ -struct GActionMapInterface -{ - GTypeInterface gIface; - /** - * - * Params: - * actionMap = a #GActionMap - * actionName = the name of an action - * Returns: a #GAction, or %NULL - */ - extern(C) GAction* function(GActionMap* actionMap, const(char)* actionName) lookupAction; - /** */ - extern(C) void function(GActionMap* actionMap, GAction* action) addAction; - /** */ - extern(C) void function(GActionMap* actionMap, const(char)* actionName) removeAction; -} - -struct GAppInfo; - -/** - * Application Information interface, for operating system portability. - */ -struct GAppInfoIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: a duplicate of @appinfo. - */ - extern(C) GAppInfo* function(GAppInfo* appinfo) dup; - /** - * - * Params: - * appinfo1 = the first #GAppInfo. - * appinfo2 = the second #GAppInfo. - * Returns: %TRUE if @appinfo1 is equal to @appinfo2. %FALSE otherwise. - */ - extern(C) int function(GAppInfo* appinfo1, GAppInfo* appinfo2) equal; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: a string containing the application's ID. - */ - extern(C) const(char)* function(GAppInfo* appinfo) getId; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: the name of the application for @appinfo. - */ - extern(C) const(char)* function(GAppInfo* appinfo) getName; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: a string containing a description of the - * application @appinfo, or %NULL if none. - */ - extern(C) const(char)* function(GAppInfo* appinfo) getDescription; - /** - * - * Params: - * appinfo = a #GAppInfo - * Returns: a string containing the @appinfo's application - * binaries name - */ - extern(C) char* function(GAppInfo* appinfo) getExecutable; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: the default #GIcon for @appinfo or %NULL - * if there is no default icon. - */ - extern(C) GIcon* function(GAppInfo* appinfo) getIcon; - /** - * - * Params: - * appinfo = a #GAppInfo - * files = a #GList of #GFile objects - * context = a #GAppLaunchContext or %NULL - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, GList* files, GAppLaunchContext* context, GError** err) launch; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: %TRUE if the @appinfo supports URIs. - */ - extern(C) int function(GAppInfo* appinfo) supportsUris; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: %TRUE if the @appinfo supports files. - */ - extern(C) int function(GAppInfo* appinfo) supportsFiles; - /** - * - * Params: - * appinfo = a #GAppInfo - * uris = a #GList containing URIs to launch. - * context = a #GAppLaunchContext or %NULL - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, GList* uris, GAppLaunchContext* context, GError** err) launchUris; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: %TRUE if the @appinfo should be shown, %FALSE otherwise. - */ - extern(C) int function(GAppInfo* appinfo) shouldShow; - /** - * - * Params: - * appinfo = a #GAppInfo. - * contentType = the content type. - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, const(char)* contentType, GError** err) setAsDefaultForType; - /** - * - * Params: - * appinfo = a #GAppInfo. - * extension = a string containing the file extension - * (without the dot). - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, char* extension, GError** err) setAsDefaultForExtension; - /** - * - * Params: - * appinfo = a #GAppInfo. - * contentType = a string. - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, const(char)* contentType, GError** err) addSupportsType; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: %TRUE if it is possible to remove supported - * content types from a given @appinfo, %FALSE if not. - */ - extern(C) int function(GAppInfo* appinfo) canRemoveSupportsType; - /** - * - * Params: - * appinfo = a #GAppInfo. - * contentType = a string. - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, const(char)* contentType, GError** err) removeSupportsType; - /** - * - * Params: - * appinfo = a #GAppInfo - * Returns: %TRUE if @appinfo can be deleted - */ - extern(C) int function(GAppInfo* appinfo) canDelete; - /** - * - * Params: - * appinfo = a #GAppInfo - * Returns: %TRUE if @appinfo has been deleted - */ - extern(C) int function(GAppInfo* appinfo) doDelete; - /** - * - * Params: - * appinfo = a #GAppInfo - * Returns: a string containing the @appinfo's commandline, - * or %NULL if this information is not available - */ - extern(C) char* function(GAppInfo* appinfo) getCommandline; - /** - * - * Params: - * appinfo = a #GAppInfo. - * Returns: the display name of the application for @appinfo, or the name if - * no display name is available. - */ - extern(C) const(char)* function(GAppInfo* appinfo) getDisplayName; - /** - * - * Params: - * appinfo = a #GAppInfo. - * contentType = the content type. - * Returns: %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, const(char)* contentType, GError** err) setAsLastUsedForType; - /** - * - * Params: - * appinfo = a #GAppInfo that can handle files - * Returns: a list of content types. - */ - extern(C) char** function(GAppInfo* appinfo) getSupportedTypes; - /** */ - extern(C) void function(GAppInfo* appinfo, GList* uris, GAppLaunchContext* context, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) launchUrisAsync; - /** - * - * Params: - * appinfo = a #GAppInfo - * result = a #GAsyncResult - * Returns: %TRUE on successful launch, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GAppInfo* appinfo, GAsyncResult* result, GError** err) launchUrisFinish; -} - -struct GAppInfoMonitor; - -struct GAppLaunchContext -{ - GObject parentInstance; - GAppLaunchContextPrivate* priv; -} - -struct GAppLaunchContextClass -{ - GObjectClass parentClass; - /** - * - * Params: - * context = a #GAppLaunchContext - * info = a #GAppInfo - * files = a #GList of #GFile objects - * Returns: a display string for the display. - */ - extern(C) char* function(GAppLaunchContext* context, GAppInfo* info, GList* files) getDisplay; - /** - * - * Params: - * context = a #GAppLaunchContext - * info = a #GAppInfo - * files = a #GList of of #GFile objects - * Returns: a startup notification ID for the application, or %NULL if - * not supported. - */ - extern(C) char* function(GAppLaunchContext* context, GAppInfo* info, GList* files) getStartupNotifyId; - /** */ - extern(C) void function(GAppLaunchContext* context, const(char)* startupNotifyId) launchFailed; - /** */ - extern(C) void function(GAppLaunchContext* context, GAppInfo* info, GVariant* platformData) launched; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; -} - -struct GAppLaunchContextPrivate; - -struct GApplication -{ - GObject parentInstance; - GApplicationPrivate* priv; -} - -/** - * Virtual function table for #GApplication. - * - * Since: 2.28 - */ -struct GApplicationClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GApplication* application) startup; - /** */ - extern(C) void function(GApplication* application) activate; - /** */ - extern(C) void function(GApplication* application, GFile** files, int nFiles, const(char)* hint) open; - /** */ - extern(C) int function(GApplication* application, GApplicationCommandLine* commandLine) commandLine; - /** - * - * Params: - * application = a #GApplication - * arguments = array of command line arguments - * exitStatus = exit status to fill after processing the command line. - * Returns: %TRUE if the commandline has been completely handled - */ - extern(C) int function(GApplication* application, char*** arguments, int* exitStatus) localCommandLine; - /** */ - extern(C) void function(GApplication* application, GVariant* platformData) beforeEmit; - /** */ - extern(C) void function(GApplication* application, GVariant* platformData) afterEmit; - /** */ - extern(C) void function(GApplication* application, GVariantBuilder* builder) addPlatformData; - /** */ - extern(C) void function(GApplication* application) quitMainloop; - /** */ - extern(C) void function(GApplication* application) runMainloop; - /** */ - extern(C) void function(GApplication* application) shutdown; - /** */ - extern(C) int function(GApplication* application, GDBusConnection* connection, const(char)* objectPath, GError** err) dbusRegister; - /** */ - extern(C) void function(GApplication* application, GDBusConnection* connection, const(char)* objectPath) dbusUnregister; - /** */ - extern(C) int function(GApplication* application, GVariantDict* options) handleLocalOptions; - /** */ - extern(C) int function(GApplication* application) nameLost; - void*[7] padding; -} - -struct GApplicationCommandLine -{ - GObject parentInstance; - GApplicationCommandLinePrivate* priv; -} - -/** - * The #GApplicationCommandLineClass-struct - * contains private data only. - * - * Since: 2.28 - */ -struct GApplicationCommandLineClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GApplicationCommandLine* cmdline, const(char)* message) printLiteral; - /** */ - extern(C) void function(GApplicationCommandLine* cmdline, const(char)* message) printerrLiteral; - /** - * - * Params: - * cmdline = a #GApplicationCommandLine - * Returns: a #GInputStream for stdin - */ - extern(C) GInputStream* function(GApplicationCommandLine* cmdline) getStdin; - void*[11] padding; -} - -struct GApplicationCommandLinePrivate; - -struct GApplicationPrivate; - -struct GAsyncInitable; - -/** - * Provides an interface for asynchronous initializing object such that - * initialization may fail. - * - * Since: 2.22 - */ -struct GAsyncInitableIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) void function(GAsyncInitable* initable, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) initAsync; - /** - * - * Params: - * initable = a #GAsyncInitable. - * res = a #GAsyncResult. - * Returns: %TRUE if successful. If an error has occurred, this function - * will return %FALSE and set @error appropriately if present. - * - * Throws: GException on failure. - */ - extern(C) int function(GAsyncInitable* initable, GAsyncResult* res, GError** err) initFinish; -} - -struct GAsyncResult; - -/** - * Interface definition for #GAsyncResult. - */ -struct GAsyncResultIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * res = a #GAsyncResult. - * Returns: the user data for @res. - */ - extern(C) void* function(GAsyncResult* res) getUserData; - /** - * - * Params: - * res = a #GAsyncResult - * Returns: a new reference to the source - * object for the @res, or %NULL if there is none. - */ - extern(C) GObject* function(GAsyncResult* res) getSourceObject; - /** - * - * Params: - * res = a #GAsyncResult - * sourceTag = an application-defined tag - * Returns: %TRUE if @res has the indicated @source_tag, %FALSE if - * not. - */ - extern(C) int function(GAsyncResult* res, void* sourceTag) isTagged; -} - -struct GBufferedInputStream -{ - GFilterInputStream parentInstance; - GBufferedInputStreamPrivate* priv; -} - -struct GBufferedInputStreamClass -{ - GFilterInputStreamClass parentClass; - /** - * - * Params: - * stream = a #GBufferedInputStream - * count = the number of bytes that will be read from the stream - * cancellable = optional #GCancellable object, %NULL to ignore - * Returns: the number of bytes read into @stream's buffer, up to @count, - * or -1 on error. - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GBufferedInputStream* stream, ptrdiff_t count, GCancellable* cancellable, GError** err) fill; - /** */ - extern(C) void function(GBufferedInputStream* stream, ptrdiff_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) fillAsync; - /** - * - * Params: - * stream = a #GBufferedInputStream - * result = a #GAsyncResult - * Returns: a #gssize of the read stream, or `-1` on an error. - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GBufferedInputStream* stream, GAsyncResult* result, GError** err) fillFinish; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GBufferedInputStreamPrivate; - -struct GBufferedOutputStream -{ - GFilterOutputStream parentInstance; - GBufferedOutputStreamPrivate* priv; -} - -struct GBufferedOutputStreamClass -{ - GFilterOutputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; -} - -struct GBufferedOutputStreamPrivate; - -struct GBytesIcon; - -struct GCancellable -{ - GObject parentInstance; - GCancellablePrivate* priv; -} - -struct GCancellableClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GCancellable* cancellable) cancelled; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GCancellablePrivate; - -struct GCharsetConverter; - -struct GCharsetConverterClass -{ - GObjectClass parentClass; -} - -struct GConverter; - -/** - * Provides an interface for converting data from one type - * to another type. The conversion can be stateful - * and may fail at any place. - * - * Since: 2.24 - */ -struct GConverterIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * converter = a #GConverter. - * inbuf = the buffer - * containing the data to convert. - * inbufSize = the number of bytes in @inbuf - * outbuf = a buffer to write - * converted data in. - * outbufSize = the number of bytes in @outbuf, must be at least one - * flags = a #GConverterFlags controlling the conversion details - * bytesRead = will be set to the number of bytes read from @inbuf on success - * bytesWritten = will be set to the number of bytes written to @outbuf on success - * Returns: a #GConverterResult, %G_CONVERTER_ERROR on error. - * - * Throws: GException on failure. - */ - extern(C) GConverterResult function(GConverter* converter, void* inbuf, size_t inbufSize, void* outbuf, size_t outbufSize, GConverterFlags flags, size_t* bytesRead, size_t* bytesWritten, GError** err) convert; - /** */ - extern(C) void function(GConverter* converter) reset; -} - -struct GConverterInputStream -{ - GFilterInputStream parentInstance; - GConverterInputStreamPrivate* priv; -} - -struct GConverterInputStreamClass -{ - GFilterInputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GConverterInputStreamPrivate; - -struct GConverterOutputStream -{ - GFilterOutputStream parentInstance; - GConverterOutputStreamPrivate* priv; -} - -struct GConverterOutputStreamClass -{ - GFilterOutputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GConverterOutputStreamPrivate; - -struct GCredentials; - -/** - * Class structure for #GCredentials. - * - * Since: 2.26 - */ -struct GCredentialsClass; - -struct GDBusActionGroup; - -struct GDBusAnnotationInfo -{ - /** - * The reference count or -1 if statically allocated. - */ - int refCount; - /** - * The name of the annotation, e.g. "org.freedesktop.DBus.Deprecated". - */ - char* key; - /** - * The value of the annotation. - */ - char* value; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - GDBusAnnotationInfo** annotations; -} - -struct GDBusArgInfo -{ - /** - * The reference count or -1 if statically allocated. - */ - int refCount; - /** - * Name of the argument, e.g. @unix_user_id. - */ - char* name; - /** - * D-Bus signature of the argument (a single complete type). - */ - char* signature; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - GDBusAnnotationInfo** annotations; -} - -struct GDBusAuthObserver; - -struct GDBusConnection; - -/** - * Struct used in g_dbus_error_register_error_domain(). - * - * Since: 2.26 - */ -struct GDBusErrorEntry -{ - /** - * An error code. - */ - int errorCode; - /** - * The D-Bus error name to associate with @error_code. - */ - const(char)* dbusErrorName; -} - -struct GDBusInterface; - -/** - * Base type for D-Bus interfaces. - * - * Since: 2.30 - */ -struct GDBusInterfaceIface -{ - /** - * The parent interface. - */ - GTypeInterface parentIface; - /** - * - * Params: - * interface_ = An exported D-Bus interface. - * Returns: A #GDBusInterfaceInfo. Do not free. - */ - extern(C) GDBusInterfaceInfo* function(GDBusInterface* interface_) getInfo; - /** - * - * Params: - * interface_ = An exported D-Bus interface - * Returns: A #GDBusObject or %NULL. The returned - * reference belongs to @interface_ and should not be freed. - */ - extern(C) GDBusObject* function(GDBusInterface* interface_) getObject; - /** */ - extern(C) void function(GDBusInterface* interface_, GDBusObject* object) setObject; - /** - * - * Params: - * interface_ = An exported D-Bus interface. - * Returns: A #GDBusObject or %NULL. The returned - * reference should be freed with g_object_unref(). - */ - extern(C) GDBusObject* function(GDBusInterface* interface_) dupObject; -} - -struct GDBusInterfaceInfo -{ - /** - * The reference count or -1 if statically allocated. - */ - int refCount; - /** - * The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties". - */ - char* name; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusMethodInfo structures or %NULL if there are no methods. - */ - GDBusMethodInfo** methods; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusSignalInfo structures or %NULL if there are no signals. - */ - GDBusSignalInfo** signals; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusPropertyInfo structures or %NULL if there are no properties. - */ - GDBusPropertyInfo** properties; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - GDBusAnnotationInfo** annotations; -} - -struct GDBusInterfaceSkeleton -{ - GObject parentInstance; - GDBusInterfaceSkeletonPrivate* priv; -} - -/** - * Class structure for #GDBusInterfaceSkeleton. - * - * Since: 2.30 - */ -struct GDBusInterfaceSkeletonClass -{ - /** - * The parent class. - */ - GObjectClass parentClass; - /** - * - * Params: - * interface_ = A #GDBusInterfaceSkeleton. - * Returns: A #GDBusInterfaceInfo (never %NULL). Do not free. - */ - extern(C) GDBusInterfaceInfo* function(GDBusInterfaceSkeleton* interface_) getInfo; - /** - * - * Params: - * interface_ = A #GDBusInterfaceSkeleton. - * Returns: A #GDBusInterfaceVTable (never %NULL). - */ - extern(C) GDBusInterfaceVTable* function(GDBusInterfaceSkeleton* interface_) getVtable; - /** - * - * Params: - * interface_ = A #GDBusInterfaceSkeleton. - * Returns: A #GVariant of type - * ['a{sv}'][G-VARIANT-TYPE-VARDICT:CAPS]. - * Free with g_variant_unref(). - */ - extern(C) GVariant* function(GDBusInterfaceSkeleton* interface_) getProperties; - /** */ - extern(C) void function(GDBusInterfaceSkeleton* interface_) flush; - void*[8] vfuncPadding; - /** */ - extern(C) int function(GDBusInterfaceSkeleton* interface_, GDBusMethodInvocation* invocation) gAuthorizeMethod; - void*[8] signalPadding; -} - -struct GDBusInterfaceSkeletonPrivate; - -/** - * Virtual table for handling properties and method calls for a D-Bus - * interface. - * - * Since 2.38, if you want to handle getting/setting D-Bus properties - * asynchronously, give %NULL as your get_property() or set_property() - * function. The D-Bus call will be directed to your @method_call function, - * with the provided @interface_name set to "org.freedesktop.DBus.Properties". - * - * Ownership of the #GDBusMethodInvocation object passed to the - * method_call() function is transferred to your handler; you must - * call one of the methods of #GDBusMethodInvocation to return a reply - * (possibly empty), or an error. These functions also take ownership - * of the passed-in invocation object, so unless the invocation - * object has otherwise been referenced, it will be then be freed. - * Calling one of these functions may be done within your - * method_call() implementation but it also can be done at a later - * point to handle the method asynchronously. - * - * The usual checks on the validity of the calls is performed. For - * `Get` calls, an error is automatically returned if the property does - * not exist or the permissions do not allow access. The same checks are - * performed for `Set` calls, and the provided value is also checked for - * being the correct type. - * - * For both `Get` and `Set` calls, the #GDBusMethodInvocation - * passed to the @method_call handler can be queried with - * g_dbus_method_invocation_get_property_info() to get a pointer - * to the #GDBusPropertyInfo of the property. - * - * If you have readable properties specified in your interface info, - * you must ensure that you either provide a non-%NULL @get_property() - * function or provide implementations of both the `Get` and `GetAll` - * methods on org.freedesktop.DBus.Properties interface in your @method_call - * function. Note that the required return type of the `Get` call is - * `(v)`, not the type of the property. `GetAll` expects a return value - * of type `a{sv}`. - * - * If you have writable properties specified in your interface info, - * you must ensure that you either provide a non-%NULL @set_property() - * function or provide an implementation of the `Set` call. If implementing - * the call, you must return the value of type %G_VARIANT_TYPE_UNIT. - * - * Since: 2.26 - */ -struct GDBusInterfaceVTable -{ - /** - * Function for handling incoming method calls. - */ - GDBusInterfaceMethodCallFunc methodCall; - /** - * Function for getting a property. - */ - GDBusInterfaceGetPropertyFunc getProperty; - /** - * Function for setting a property. - */ - GDBusInterfaceSetPropertyFunc setProperty; - void*[8] padding; -} - -struct GDBusMenuModel; - -struct GDBusMessage; - -struct GDBusMethodInfo -{ - /** - * The reference count or -1 if statically allocated. - */ - int refCount; - /** - * The name of the D-Bus method, e.g. @RequestName. - */ - char* name; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no in arguments. - */ - GDBusArgInfo** inArgs; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no out arguments. - */ - GDBusArgInfo** outArgs; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - GDBusAnnotationInfo** annotations; -} - -struct GDBusMethodInvocation; - -struct GDBusNodeInfo -{ - /** - * The reference count or -1 if statically allocated. - */ - int refCount; - /** - * The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details. - */ - char* path; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusInterfaceInfo structures or %NULL if there are no interfaces. - */ - GDBusInterfaceInfo** interfaces; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusNodeInfo structures or %NULL if there are no nodes. - */ - GDBusNodeInfo** nodes; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - GDBusAnnotationInfo** annotations; -} - -struct GDBusObject; - -/** - * Base object type for D-Bus objects. - * - * Since: 2.30 - */ -struct GDBusObjectIface -{ - /** - * The parent interface. - */ - GTypeInterface parentIface; - /** - * - * Params: - * object = A #GDBusObject. - * Returns: A string owned by @object. Do not free. - */ - extern(C) const(char)* function(GDBusObject* object) getObjectPath; - /** - * - * Params: - * object = A #GDBusObject. - * Returns: A list of #GDBusInterface instances. - * The returned list must be freed by g_list_free() after each element has been freed - * with g_object_unref(). - */ - extern(C) GList* function(GDBusObject* object) getInterfaces; - /** - * - * Params: - * object = A #GDBusObject. - * interfaceName = A D-Bus interface name. - * Returns: %NULL if not found, otherwise a - * #GDBusInterface that must be freed with g_object_unref(). - */ - extern(C) GDBusInterface* function(GDBusObject* object, const(char)* interfaceName) getInterface; - /** */ - extern(C) void function(GDBusObject* object, GDBusInterface* interface_) interfaceAdded; - /** */ - extern(C) void function(GDBusObject* object, GDBusInterface* interface_) interfaceRemoved; -} - -struct GDBusObjectManager; - -struct GDBusObjectManagerClient -{ - GObject parentInstance; - GDBusObjectManagerClientPrivate* priv; -} - -/** - * Class structure for #GDBusObjectManagerClient. - * - * Since: 2.30 - */ -struct GDBusObjectManagerClientClass -{ - /** - * The parent class. - */ - GObjectClass parentClass; - /** */ - extern(C) void function(GDBusObjectManagerClient* manager, GDBusObjectProxy* objectProxy, GDBusProxy* interfaceProxy, const(char)* senderName, const(char)* signalName, GVariant* parameters) interfaceProxySignal; - /** */ - extern(C) void function(GDBusObjectManagerClient* manager, GDBusObjectProxy* objectProxy, GDBusProxy* interfaceProxy, GVariant* changedProperties, const(char)* invalidatedProperties) interfaceProxyPropertiesChanged; - void*[8] padding; -} - -struct GDBusObjectManagerClientPrivate; - -/** - * Base type for D-Bus object managers. - * - * Since: 2.30 - */ -struct GDBusObjectManagerIface -{ - /** - * The parent interface. - */ - GTypeInterface parentIface; - /** - * - * Params: - * manager = A #GDBusObjectManager. - * Returns: A string owned by @manager. Do not free. - */ - extern(C) const(char)* function(GDBusObjectManager* manager) getObjectPath; - /** - * - * Params: - * manager = A #GDBusObjectManager. - * Returns: A list of - * #GDBusObject objects. The returned list should be freed with - * g_list_free() after each element has been freed with - * g_object_unref(). - */ - extern(C) GList* function(GDBusObjectManager* manager) getObjects; - /** - * - * Params: - * manager = A #GDBusObjectManager. - * objectPath = Object path to look up. - * Returns: A #GDBusObject or %NULL. Free with - * g_object_unref(). - */ - extern(C) GDBusObject* function(GDBusObjectManager* manager, const(char)* objectPath) getObject; - /** - * - * Params: - * manager = A #GDBusObjectManager. - * objectPath = Object path to look up. - * interfaceName = D-Bus interface name to look up. - * Returns: A #GDBusInterface instance or %NULL. Free - * with g_object_unref(). - */ - extern(C) GDBusInterface* function(GDBusObjectManager* manager, const(char)* objectPath, const(char)* interfaceName) getInterface; - /** */ - extern(C) void function(GDBusObjectManager* manager, GDBusObject* object) objectAdded; - /** */ - extern(C) void function(GDBusObjectManager* manager, GDBusObject* object) objectRemoved; - /** */ - extern(C) void function(GDBusObjectManager* manager, GDBusObject* object, GDBusInterface* interface_) interfaceAdded; - /** */ - extern(C) void function(GDBusObjectManager* manager, GDBusObject* object, GDBusInterface* interface_) interfaceRemoved; -} - -struct GDBusObjectManagerServer -{ - GObject parentInstance; - GDBusObjectManagerServerPrivate* priv; -} - -/** - * Class structure for #GDBusObjectManagerServer. - * - * Since: 2.30 - */ -struct GDBusObjectManagerServerClass -{ - /** - * The parent class. - */ - GObjectClass parentClass; - void*[8] padding; -} - -struct GDBusObjectManagerServerPrivate; - -struct GDBusObjectProxy -{ - GObject parentInstance; - GDBusObjectProxyPrivate* priv; -} - -/** - * Class structure for #GDBusObjectProxy. - * - * Since: 2.30 - */ -struct GDBusObjectProxyClass -{ - /** - * The parent class. - */ - GObjectClass parentClass; - void*[8] padding; -} - -struct GDBusObjectProxyPrivate; - -struct GDBusObjectSkeleton -{ - GObject parentInstance; - GDBusObjectSkeletonPrivate* priv; -} - -/** - * Class structure for #GDBusObjectSkeleton. - * - * Since: 2.30 - */ -struct GDBusObjectSkeletonClass -{ - /** - * The parent class. - */ - GObjectClass parentClass; - /** */ - extern(C) int function(GDBusObjectSkeleton* object, GDBusInterfaceSkeleton* interface_, GDBusMethodInvocation* invocation) authorizeMethod; - void*[8] padding; -} - -struct GDBusObjectSkeletonPrivate; - -struct GDBusPropertyInfo -{ - /** - * The reference count or -1 if statically allocated. - */ - int refCount; - /** - * The name of the D-Bus property, e.g. "SupportedFilesystems". - */ - char* name; - /** - * The D-Bus signature of the property (a single complete type). - */ - char* signature; - /** - * Access control flags for the property. - */ - GDBusPropertyInfoFlags flags; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - GDBusAnnotationInfo** annotations; -} - -struct GDBusProxy -{ - GObject parentInstance; - GDBusProxyPrivate* priv; -} - -/** - * Class structure for #GDBusProxy. - * - * Since: 2.26 - */ -struct GDBusProxyClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GDBusProxy* proxy, GVariant* changedProperties, const(char)* invalidatedProperties) gPropertiesChanged; - /** */ - extern(C) void function(GDBusProxy* proxy, const(char)* senderName, const(char)* signalName, GVariant* parameters) gSignal; - void*[32] padding; -} - -struct GDBusProxyPrivate; - -struct GDBusServer; - -struct GDBusSignalInfo -{ - /** - * The reference count or -1 if statically allocated. - */ - int refCount; - /** - * The name of the D-Bus signal, e.g. "NameOwnerChanged". - */ - char* name; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no arguments. - */ - GDBusArgInfo** args; - /** - * A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations. - */ - GDBusAnnotationInfo** annotations; -} - -/** - * Virtual table for handling subtrees registered with g_dbus_connection_register_subtree(). - * - * Since: 2.26 - */ -struct GDBusSubtreeVTable -{ - /** - * Function for enumerating child nodes. - */ - GDBusSubtreeEnumerateFunc enumerate; - /** - * Function for introspecting a child node. - */ - GDBusSubtreeIntrospectFunc introspect; - /** - * Function for dispatching a remote call on a child node. - */ - GDBusSubtreeDispatchFunc dispatch; - void*[8] padding; -} - -struct GDataInputStream -{ - GBufferedInputStream parentInstance; - GDataInputStreamPrivate* priv; -} - -struct GDataInputStreamClass -{ - GBufferedInputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GDataInputStreamPrivate; - -struct GDataOutputStream -{ - GFilterOutputStream parentInstance; - GDataOutputStreamPrivate* priv; -} - -struct GDataOutputStreamClass -{ - GFilterOutputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GDataOutputStreamPrivate; - -struct GDatagramBased; - -/** - * Provides an interface for socket-like objects which have datagram semantics, - * following the Berkeley sockets API. The interface methods are thin wrappers - * around the corresponding virtual methods, and no pre-processing of inputs is - * implemented — so implementations of this API must handle all functionality - * documented in the interface methods. - * - * Since: 2.48 - */ -struct GDatagramBasedInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * datagramBased = a #GDatagramBased - * messages = an array of #GInputMessage structs - * numMessages = the number of elements in @messages - * flags = an int containing #GSocketMsgFlags flags for the overall operation - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a %GCancellable - * Returns: number of messages received, or -1 on error. Note that the number - * of messages received may be smaller than @num_messages if @timeout is - * zero or positive, if the peer closed the connection, or if @num_messages - * was larger than `UIO_MAXIOV` (1024), in which case the caller may re-try - * to receive the remaining messages. - * - * Throws: GException on failure. - */ - extern(C) int function(GDatagramBased* datagramBased, GInputMessage* messages, uint numMessages, int flags, long timeout, GCancellable* cancellable, GError** err) receiveMessages; - /** - * - * Params: - * datagramBased = a #GDatagramBased - * messages = an array of #GOutputMessage structs - * numMessages = the number of elements in @messages - * flags = an int containing #GSocketMsgFlags flags - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a %GCancellable - * Returns: number of messages sent, or -1 on error. Note that the number of - * messages sent may be smaller than @num_messages if @timeout is zero - * or positive, or if @num_messages was larger than `UIO_MAXIOV` (1024), in - * which case the caller may re-try to send the remaining messages. - * - * Throws: GException on failure. - */ - extern(C) int function(GDatagramBased* datagramBased, GOutputMessage* messages, uint numMessages, int flags, long timeout, GCancellable* cancellable, GError** err) sendMessages; - /** - * - * Params: - * datagramBased = a #GDatagramBased - * condition = a #GIOCondition mask to monitor - * cancellable = a #GCancellable - * Returns: a newly allocated #GSource - */ - extern(C) GSource* function(GDatagramBased* datagramBased, GIOCondition condition, GCancellable* cancellable) createSource; - /** - * - * Params: - * datagramBased = a #GDatagramBased - * condition = a #GIOCondition mask to check - * Returns: the #GIOCondition mask of the current state - */ - extern(C) GIOCondition function(GDatagramBased* datagramBased, GIOCondition condition) conditionCheck; - /** - * - * Params: - * datagramBased = a #GDatagramBased - * condition = a #GIOCondition mask to wait for - * timeout = the maximum time (in microseconds) to wait, 0 to not block, or -1 - * to block indefinitely - * cancellable = a #GCancellable - * Returns: %TRUE if the condition was met, %FALSE otherwise - * - * Throws: GException on failure. - */ - extern(C) int function(GDatagramBased* datagramBased, GIOCondition condition, long timeout, GCancellable* cancellable, GError** err) conditionWait; -} - -struct GDesktopAppInfo; - -struct GDesktopAppInfoClass -{ - GObjectClass parentClass; -} - -struct GDesktopAppInfoLookup; - -/** - * Interface that is used by backends to associate default - * handlers with URI schemes. - */ -struct GDesktopAppInfoLookupIface -{ - GTypeInterface gIface; - /** - * - * Params: - * lookup = a #GDesktopAppInfoLookup - * uriScheme = a string containing a URI scheme. - * Returns: #GAppInfo for given @uri_scheme or - * %NULL on error. - */ - extern(C) GAppInfo* function(GDesktopAppInfoLookup* lookup, const(char)* uriScheme) getDefaultForUriScheme; -} - -struct GDrive; - -/** - * Interface for creating #GDrive implementations. - */ -struct GDriveIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) void function(GDrive* drive) changed; - /** */ - extern(C) void function(GDrive* drive) disconnected; - /** */ - extern(C) void function(GDrive* drive) ejectButton; - /** - * - * Params: - * drive = a #GDrive. - * Returns: a string containing @drive's name. The returned - * string should be freed when no longer needed. - */ - extern(C) char* function(GDrive* drive) getName; - /** - * - * Params: - * drive = a #GDrive. - * Returns: #GIcon for the @drive. - * Free the returned object with g_object_unref(). - */ - extern(C) GIcon* function(GDrive* drive) getIcon; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if the @drive contains volumes, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) hasVolumes; - /** - * - * Params: - * drive = a #GDrive. - * Returns: #GList containing any #GVolume objects on the given @drive. - */ - extern(C) GList* function(GDrive* drive) getVolumes; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if @drive supports removable media, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) isMediaRemovable; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if @drive has media, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) hasMedia; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if the @drive is capable of automatically detecting - * media changes, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) isMediaCheckAutomatic; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if the @drive can be ejected, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) canEject; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if the @drive can be polled for media changes, - * %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) canPollForMedia; - /** */ - extern(C) void function(GDrive* drive, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) eject; - /** - * - * Params: - * drive = a #GDrive. - * result = a #GAsyncResult. - * Returns: %TRUE if the drive has been ejected successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GDrive* drive, GAsyncResult* result, GError** err) ejectFinish; - /** */ - extern(C) void function(GDrive* drive, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) pollForMedia; - /** - * - * Params: - * drive = a #GDrive. - * result = a #GAsyncResult. - * Returns: %TRUE if the drive has been poll_for_mediaed successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GDrive* drive, GAsyncResult* result, GError** err) pollForMediaFinish; - /** - * - * Params: - * drive = a #GDrive - * kind = the kind of identifier to return - * Returns: a newly allocated string containing the - * requested identifier, or %NULL if the #GDrive - * doesn't have this kind of identifier. - */ - extern(C) char* function(GDrive* drive, const(char)* kind) getIdentifier; - /** - * - * Params: - * drive = a #GDrive - * Returns: a %NULL-terminated - * array of strings containing kinds of identifiers. Use g_strfreev() - * to free. - */ - extern(C) char** function(GDrive* drive) enumerateIdentifiers; - /** - * - * Params: - * drive = a #GDrive. - * Returns: A value from the #GDriveStartStopType enumeration. - */ - extern(C) GDriveStartStopType function(GDrive* drive) getStartStopType; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if the @drive can be started, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) canStart; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if the @drive can be started degraded, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) canStartDegraded; - /** */ - extern(C) void function(GDrive* drive, GDriveStartFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) start; - /** - * - * Params: - * drive = a #GDrive. - * result = a #GAsyncResult. - * Returns: %TRUE if the drive has been started successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GDrive* drive, GAsyncResult* result, GError** err) startFinish; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if the @drive can be stopped, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) canStop; - /** */ - extern(C) void function(GDrive* drive, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) stop; - /** - * - * Params: - * drive = a #GDrive. - * result = a #GAsyncResult. - * Returns: %TRUE if the drive has been stopped successfully, - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GDrive* drive, GAsyncResult* result, GError** err) stopFinish; - /** */ - extern(C) void function(GDrive* drive) stopButton; - /** */ - extern(C) void function(GDrive* drive, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectWithOperation; - /** - * - * Params: - * drive = a #GDrive. - * result = a #GAsyncResult. - * Returns: %TRUE if the drive was successfully ejected. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GDrive* drive, GAsyncResult* result, GError** err) ejectWithOperationFinish; - /** - * - * Params: - * drive = A #GDrive. - * Returns: Sorting key for @drive or %NULL if no such key is available. - */ - extern(C) const(char)* function(GDrive* drive) getSortKey; - /** - * - * Params: - * drive = a #GDrive. - * Returns: symbolic #GIcon for the @drive. - * Free the returned object with g_object_unref(). - */ - extern(C) GIcon* function(GDrive* drive) getSymbolicIcon; - /** - * - * Params: - * drive = a #GDrive. - * Returns: %TRUE if @drive and/or its media is considered removable, %FALSE otherwise. - */ - extern(C) int function(GDrive* drive) isRemovable; -} - -struct GDtlsClientConnection; - -/** - * vtable for a #GDtlsClientConnection implementation. - * - * Since: 2.48 - */ -struct GDtlsClientConnectionInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; -} - -struct GDtlsConnection; - -/** - * Virtual method table for a #GDtlsConnection implementation. - * - * Since: 2.48 - */ -struct GDtlsConnectionInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) int function(GDtlsConnection* connection, GTlsCertificate* peerCert, GTlsCertificateFlags errors) acceptCertificate; - /** - * - * Params: - * conn = a #GDtlsConnection - * cancellable = a #GCancellable, or %NULL - * Returns: success or failure - * - * Throws: GException on failure. - */ - extern(C) int function(GDtlsConnection* conn, GCancellable* cancellable, GError** err) handshake; - /** */ - extern(C) void function(GDtlsConnection* conn, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) handshakeAsync; - /** - * - * Params: - * conn = a #GDtlsConnection - * result = a #GAsyncResult. - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set. - * - * Throws: GException on failure. - */ - extern(C) int function(GDtlsConnection* conn, GAsyncResult* result, GError** err) handshakeFinish; - /** - * - * Params: - * conn = a #GDtlsConnection - * shutdownRead = %TRUE to stop reception of incoming datagrams - * shutdownWrite = %TRUE to stop sending outgoing datagrams - * cancellable = a #GCancellable, or %NULL - * Returns: %TRUE on success, %FALSE otherwise - * - * Throws: GException on failure. - */ - extern(C) int function(GDtlsConnection* conn, int shutdownRead, int shutdownWrite, GCancellable* cancellable, GError** err) shutdown; - /** */ - extern(C) void function(GDtlsConnection* conn, int shutdownRead, int shutdownWrite, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) shutdownAsync; - /** - * - * Params: - * conn = a #GDtlsConnection - * result = a #GAsyncResult - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set - * - * Throws: GException on failure. - */ - extern(C) int function(GDtlsConnection* conn, GAsyncResult* result, GError** err) shutdownFinish; - /** */ - extern(C) void function(GDtlsConnection* conn, char** protocols) setAdvertisedProtocols; - /** - * - * Params: - * conn = a #GDtlsConnection - * Returns: the negotiated protocol, or %NULL - */ - extern(C) const(char)* function(GDtlsConnection* conn) getNegotiatedProtocol; - /** */ - extern(C) int function(GDtlsConnection* conn, GTlsChannelBindingType type, GByteArray* data, GError** err) getBindingData; -} - -struct GDtlsServerConnection; - -/** - * vtable for a #GDtlsServerConnection implementation. - * - * Since: 2.48 - */ -struct GDtlsServerConnectionInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; -} - -struct GEmblem; - -struct GEmblemClass; - -struct GEmblemedIcon -{ - GObject parentInstance; - GEmblemedIconPrivate* priv; -} - -struct GEmblemedIconClass -{ - GObjectClass parentClass; -} - -struct GEmblemedIconPrivate; - -struct GFile; - -/** - * Information about a specific attribute. - */ -struct GFileAttributeInfo -{ - /** - * the name of the attribute. - */ - char* name; - /** - * the #GFileAttributeType type of the attribute. - */ - GFileAttributeType type; - /** - * a set of #GFileAttributeInfoFlags. - */ - GFileAttributeInfoFlags flags; -} - -struct GFileAttributeInfoList -{ - /** - * an array of #GFileAttributeInfos. - */ - GFileAttributeInfo* infos; - /** - * the number of values in the array. - */ - int nInfos; -} - -struct GFileAttributeMatcher; - -struct GFileDescriptorBased; - -/** - * An interface for file descriptor based io objects. - */ -struct GFileDescriptorBasedIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * fdBased = a #GFileDescriptorBased. - * Returns: The file descriptor - */ - extern(C) int function(GFileDescriptorBased* fdBased) getFd; -} - -struct GFileEnumerator -{ - GObject parentInstance; - GFileEnumeratorPrivate* priv; -} - -struct GFileEnumeratorClass -{ - GObjectClass parentClass; - /** - * - * Params: - * enumerator = a #GFileEnumerator. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: A #GFileInfo or %NULL on error - * or end of enumerator. Free the returned object with - * g_object_unref() when no longer needed. - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFileEnumerator* enumerator, GCancellable* cancellable, GError** err) nextFile; - /** */ - extern(C) int function(GFileEnumerator* enumerator, GCancellable* cancellable, GError** err) closeFn; - /** */ - extern(C) void function(GFileEnumerator* enumerator, int numFiles, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) nextFilesAsync; - /** - * - * Params: - * enumerator = a #GFileEnumerator. - * result = a #GAsyncResult. - * Returns: a #GList of #GFileInfos. You must free the list with - * g_list_free() and unref the infos with g_object_unref() when you're - * done with them. - * - * Throws: GException on failure. - */ - extern(C) GList* function(GFileEnumerator* enumerator, GAsyncResult* result, GError** err) nextFilesFinish; - /** */ - extern(C) void function(GFileEnumerator* enumerator, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) closeAsync; - /** - * - * Params: - * enumerator = a #GFileEnumerator. - * result = a #GAsyncResult. - * Returns: %TRUE if the close operation has finished successfully. - * - * Throws: GException on failure. - */ - extern(C) int function(GFileEnumerator* enumerator, GAsyncResult* result, GError** err) closeFinish; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; - /** */ - extern(C) void function() GReserved7; -} - -struct GFileEnumeratorPrivate; - -struct GFileIOStream -{ - GIOStream parentInstance; - GFileIOStreamPrivate* priv; -} - -struct GFileIOStreamClass -{ - GIOStreamClass parentClass; - /** */ - extern(C) long function(GFileIOStream* stream) tell; - /** */ - extern(C) int function(GFileIOStream* stream) canSeek; - /** */ - extern(C) int function(GFileIOStream* stream, long offset, GSeekType type, GCancellable* cancellable, GError** err) seek; - /** */ - extern(C) int function(GFileIOStream* stream) canTruncate; - /** */ - extern(C) int function(GFileIOStream* stream, long size, GCancellable* cancellable, GError** err) truncateFn; - /** - * - * Params: - * stream = a #GFileIOStream. - * attributes = a file attribute query string. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: a #GFileInfo for the @stream, or %NULL on error. - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFileIOStream* stream, const(char)* attributes, GCancellable* cancellable, GError** err) queryInfo; - /** */ - extern(C) void function(GFileIOStream* stream, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) queryInfoAsync; - /** - * - * Params: - * stream = a #GFileIOStream. - * result = a #GAsyncResult. - * Returns: A #GFileInfo for the finished query. - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFileIOStream* stream, GAsyncResult* result, GError** err) queryInfoFinish; - /** - * - * Params: - * stream = a #GFileIOStream. - * Returns: the entity tag for the stream. - */ - extern(C) char* function(GFileIOStream* stream) getEtag; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GFileIOStreamPrivate; - -struct GFileIcon; - -struct GFileIconClass; - -/** - * An interface for writing VFS file handles. - */ -struct GFileIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * file = input #GFile - * Returns: a new #GFile that is a duplicate - * of the given #GFile. - */ - extern(C) GFile* function(GFile* file) dup; - /** - * - * Params: - * file = #gconstpointer to a #GFile - * Returns: 0 if @file is not a valid #GFile, otherwise an - * integer that can be used as hash value for the #GFile. - * This function is intended for easily hashing a #GFile to - * add to a #GHashTable or similar data structure. - */ - extern(C) uint function(GFile* file) hash; - /** - * - * Params: - * file1 = the first #GFile - * file2 = the second #GFile - * Returns: %TRUE if @file1 and @file2 are equal. - */ - extern(C) int function(GFile* file1, GFile* file2) equal; - /** - * - * Params: - * file = input #GFile - * Returns: %TRUE if @file is native - */ - extern(C) int function(GFile* file) isNative; - /** - * - * Params: - * file = input #GFile - * uriScheme = a string containing a URI scheme - * Returns: %TRUE if #GFile's backend supports the - * given URI scheme, %FALSE if URI scheme is %NULL, - * not supported, or #GFile is invalid. - */ - extern(C) int function(GFile* file, const(char)* uriScheme) hasUriScheme; - /** - * - * Params: - * file = input #GFile - * Returns: a string containing the URI scheme for the given - * #GFile or %NULL if the #GFile was constructed with an invalid URI. The - * returned string should be freed with g_free() when no longer needed. - */ - extern(C) char* function(GFile* file) getUriScheme; - /** - * - * Params: - * file = input #GFile - * Returns: string containing the #GFile's - * base name, or %NULL if given #GFile is invalid. The returned string - * should be freed with g_free() when no longer needed. - */ - extern(C) char* function(GFile* file) getBasename; - /** - * - * Params: - * file = input #GFile - * Returns: string containing the #GFile's path, - * or %NULL if no such path exists. The returned string should be freed - * with g_free() when no longer needed. - */ - extern(C) char* function(GFile* file) getPath; - /** - * - * Params: - * file = input #GFile - * Returns: a string containing the #GFile's URI. If the #GFile was constructed - * with an invalid URI, an invalid URI is returned. - * The returned string should be freed with g_free() - * when no longer needed. - */ - extern(C) char* function(GFile* file) getUri; - /** - * - * Params: - * file = input #GFile - * Returns: a string containing the #GFile's parse name. - * The returned string should be freed with g_free() - * when no longer needed. - */ - extern(C) char* function(GFile* file) getParseName; - /** - * - * Params: - * file = input #GFile - * Returns: a #GFile structure to the - * parent of the given #GFile or %NULL if there is no parent. Free - * the returned object with g_object_unref(). - */ - extern(C) GFile* function(GFile* file) getParent; - /** - * - * Params: - * prefix = input #GFile - * file = input #GFile - * Returns: %TRUE if the @file's parent, grandparent, etc is @prefix, - * %FALSE otherwise. - */ - extern(C) int function(GFile* prefix, GFile* file) prefixMatches; - /** - * - * Params: - * parent = input #GFile - * descendant = input #GFile - * Returns: string with the relative path from - * @descendant to @parent, or %NULL if @descendant doesn't have @parent as - * prefix. The returned string should be freed with g_free() when - * no longer needed. - */ - extern(C) char* function(GFile* parent, GFile* descendant) getRelativePath; - /** - * - * Params: - * file = input #GFile - * relativePath = a given relative path string - * Returns: #GFile to the resolved path. - * %NULL if @relative_path is %NULL or if @file is invalid. - * Free the returned object with g_object_unref(). - */ - extern(C) GFile* function(GFile* file, char* relativePath) resolveRelativePath; - /** - * - * Params: - * file = input #GFile - * displayName = string to a possible child - * Returns: a #GFile to the specified child, or - * %NULL if the display name couldn't be converted. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFile* function(GFile* file, const(char)* displayName, GError** err) getChildForDisplayName; - /** - * - * Params: - * file = input #GFile - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: A #GFileEnumerator if successful, - * %NULL on error. Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileEnumerator* function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) enumerateChildren; - /** */ - extern(C) void function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) enumerateChildrenAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFileEnumerator or %NULL - * if an error occurred. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileEnumerator* function(GFile* file, GAsyncResult* res, GError** err) enumerateChildrenFinish; - /** - * - * Params: - * file = input #GFile - * attributes = an attribute query string - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileInfo for the given @file, or %NULL - * on error. Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) queryInfo; - /** */ - extern(C) void function(GFile* file, const(char)* attributes, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) queryInfoAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: #GFileInfo for given @file - * or %NULL on error. Free the returned object with - * g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFile* file, GAsyncResult* res, GError** err) queryInfoFinish; - /** - * - * Params: - * file = input #GFile - * attributes = an attribute query string - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileInfo or %NULL if there was an error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFile* file, const(char)* attributes, GCancellable* cancellable, GError** err) queryFilesystemInfo; - /** */ - extern(C) void function(GFile* file, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) queryFilesystemInfoAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: #GFileInfo for given @file - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFile* file, GAsyncResult* res, GError** err) queryFilesystemInfoFinish; - /** - * - * Params: - * file = input #GFile - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GMount where the @file is located - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GMount* function(GFile* file, GCancellable* cancellable, GError** err) findEnclosingMount; - /** */ - extern(C) void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) findEnclosingMountAsync; - /** - * - * Params: - * file = a #GFile - * res = a #GAsyncResult - * Returns: #GMount for given @file or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GMount* function(GFile* file, GAsyncResult* res, GError** err) findEnclosingMountFinish; - /** - * - * Params: - * file = input #GFile - * displayName = a string - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFile specifying what @file was renamed to, - * or %NULL if there was an error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFile* function(GFile* file, const(char)* displayName, GCancellable* cancellable, GError** err) setDisplayName; - /** */ - extern(C) void function(GFile* file, const(char)* displayName, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) setDisplayNameAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFile or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFile* function(GFile* file, GAsyncResult* res, GError** err) setDisplayNameFinish; - /** - * - * Params: - * file = input #GFile - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileAttributeInfoList describing the settable attributes. - * When you are done with it, release it with - * g_file_attribute_info_list_unref() - * - * Throws: GException on failure. - */ - extern(C) GFileAttributeInfoList* function(GFile* file, GCancellable* cancellable, GError** err) querySettableAttributes; - /** */ - extern(C) void function() QuerySettableAttributesAsync; - /** */ - extern(C) void function() QuerySettableAttributesFinish; - /** - * - * Params: - * file = input #GFile - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileAttributeInfoList describing the writable namespaces. - * When you are done with it, release it with - * g_file_attribute_info_list_unref() - * - * Throws: GException on failure. - */ - extern(C) GFileAttributeInfoList* function(GFile* file, GCancellable* cancellable, GError** err) queryWritableNamespaces; - /** */ - extern(C) void function() QueryWritableNamespacesAsync; - /** */ - extern(C) void function() QueryWritableNamespacesFinish; - /** - * - * Params: - * file = input #GFile - * attribute = a string containing the attribute's name - * type = The type of the attribute - * valueP = a pointer to the value (or the pointer - * itself if the type is a pointer type) - * flags = a set of #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: %TRUE if the attribute was set, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, const(char)* attribute, GFileAttributeType type, void* valueP, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) setAttribute; - /** - * - * Params: - * file = input #GFile - * info = a #GFileInfo - * flags = #GFileQueryInfoFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: %FALSE if there was any error, %TRUE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GFileInfo* info, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) setAttributesFromInfo; - /** */ - extern(C) void function(GFile* file, GFileInfo* info, GFileQueryInfoFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) setAttributesAsync; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * info = a #GFileInfo - * Returns: %TRUE if the attributes were set correctly, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GFileInfo** info, GError** err) setAttributesFinish; - /** - * - * Params: - * file = #GFile to read - * cancellable = a #GCancellable - * Returns: #GFileInputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileInputStream* function(GFile* file, GCancellable* cancellable, GError** err) readFn; - /** */ - extern(C) void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) readAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFileInputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileInputStream* function(GFile* file, GAsyncResult* res, GError** err) readFinish; - /** - * - * Params: - * file = input #GFile - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileOutputStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileOutputStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** err) appendTo; - /** */ - extern(C) void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) appendToAsync; - /** - * - * Params: - * file = input #GFile - * res = #GAsyncResult - * Returns: a valid #GFileOutputStream - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** err) appendToFinish; - /** - * - * Params: - * file = input #GFile - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileOutputStream for the newly created - * file, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileOutputStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** err) create; - /** */ - extern(C) void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) createAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFileOutputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** err) createFinish; - /** - * - * Params: - * file = input #GFile - * etag = an optional [entity tag][gfile-etag] - * for the current #GFile, or #NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileOutputStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileOutputStream* function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GError** err) replace; - /** */ - extern(C) void function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) replaceAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFileOutputStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileOutputStream* function(GFile* file, GAsyncResult* res, GError** err) replaceFinish; - /** - * - * Params: - * file = input #GFile - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: %TRUE if the file was deleted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GCancellable* cancellable, GError** err) deleteFile; - /** */ - extern(C) void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) deleteFileAsync; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the file was deleted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) deleteFileFinish; - /** - * - * Params: - * file = #GFile to send to trash - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: %TRUE on successful trash, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GCancellable* cancellable, GError** err) trash; - /** */ - extern(C) void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) trashAsync; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE on successful trash, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) trashFinish; - /** - * - * Params: - * file = input #GFile - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: %TRUE on successful creation, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GCancellable* cancellable, GError** err) makeDirectory; - /** */ - extern(C) void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) makeDirectoryAsync; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE on successful directory creation, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) makeDirectoryFinish; - /** - * - * Params: - * file = a #GFile with the name of the symlink to create - * symlinkValue = a string with the path for the target - * of the new symlink - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: %TRUE on the creation of a new symlink, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, char* symlinkValue, GCancellable* cancellable, GError** err) makeSymbolicLink; - /** */ - extern(C) void function() MakeSymbolicLinkAsync; - /** */ - extern(C) void function() MakeSymbolicLinkFinish; - /** - * - * Params: - * source = input #GFile - * destination = destination #GFile - * flags = set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = function to callback with - * progress information, or %NULL if progress information is not needed - * progressCallbackData = user data to pass to @progress_callback - * Returns: %TRUE on success, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* source, GFile* destination, GFileCopyFlags flags, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GError** err) copy; - /** */ - extern(C) void function(GFile* source, GFile* destination, GFileCopyFlags flags, int ioPriority, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GAsyncReadyCallback callback, void* userData) copyAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a %TRUE on success, %FALSE on error. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* res, GError** err) copyFinish; - /** - * - * Params: - * source = #GFile pointing to the source location - * destination = #GFile pointing to the destination location - * flags = set of #GFileCopyFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * progressCallback = #GFileProgressCallback - * function for updates - * progressCallbackData = gpointer to user data for - * the callback function - * Returns: %TRUE on successful move, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* source, GFile* destination, GFileCopyFlags flags, GCancellable* cancellable, GFileProgressCallback progressCallback, void* progressCallbackData, GError** err) move; - /** */ - extern(C) void function() MoveAsync; - /** */ - extern(C) void function() MoveFinish; - /** */ - extern(C) void function(GFile* file, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) mountMountable; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: a #GFile or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFile* function(GFile* file, GAsyncResult* result, GError** err) mountMountableFinish; - /** */ - extern(C) void function(GFile* file, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) unmountMountable; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) unmountMountableFinish; - /** */ - extern(C) void function(GFile* file, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectMountable; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the @file was ejected successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) ejectMountableFinish; - /** */ - extern(C) void function(GFile* location, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) mountEnclosingVolume; - /** - * - * Params: - * location = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if successful. If an error has occurred, - * this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* location, GAsyncResult* result, GError** err) mountEnclosingVolumeFinish; - /** - * - * Params: - * file = input #GFile - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileMonitor* function(GFile* file, GFileMonitorFlags flags, GCancellable* cancellable, GError** err) monitorDir; - /** - * - * Params: - * file = input #GFile - * flags = a set of #GFileMonitorFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileMonitor for the given @file, - * or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileMonitor* function(GFile* file, GFileMonitorFlags flags, GCancellable* cancellable, GError** err) monitorFile; - /** - * - * Params: - * file = #GFile to open - * cancellable = a #GCancellable - * Returns: #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileIOStream* function(GFile* file, GCancellable* cancellable, GError** err) openReadwrite; - /** */ - extern(C) void function(GFile* file, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) openReadwriteAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileIOStream* function(GFile* file, GAsyncResult* res, GError** err) openReadwriteFinish; - /** - * - * Params: - * file = a #GFile - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileIOStream for the newly created - * file, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileIOStream* function(GFile* file, GFileCreateFlags flags, GCancellable* cancellable, GError** err) createReadwrite; - /** */ - extern(C) void function(GFile* file, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) createReadwriteAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileIOStream* function(GFile* file, GAsyncResult* res, GError** err) createReadwriteFinish; - /** - * - * Params: - * file = a #GFile - * etag = an optional [entity tag][gfile-etag] - * for the current #GFile, or #NULL to ignore - * makeBackup = %TRUE if a backup should be created - * flags = a set of #GFileCreateFlags - * cancellable = optional #GCancellable object, - * %NULL to ignore - * Returns: a #GFileIOStream or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileIOStream* function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, GCancellable* cancellable, GError** err) replaceReadwrite; - /** */ - extern(C) void function(GFile* file, const(char)* etag, int makeBackup, GFileCreateFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) replaceReadwriteAsync; - /** - * - * Params: - * file = input #GFile - * res = a #GAsyncResult - * Returns: a #GFileIOStream, or %NULL on error. - * Free the returned object with g_object_unref(). - * - * Throws: GException on failure. - */ - extern(C) GFileIOStream* function(GFile* file, GAsyncResult* res, GError** err) replaceReadwriteFinish; - /** */ - extern(C) void function(GFile* file, GDriveStartFlags flags, GMountOperation* startOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) startMountable; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the operation finished successfully. %FALSE - * otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) startMountableFinish; - /** */ - extern(C) void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) stopMountable; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) stopMountableFinish; - /** - * a boolean that indicates whether the #GFile implementation supports thread-default contexts. Since 2.22. - */ - bool supportsThreadContexts; - /** */ - extern(C) void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) unmountMountableWithOperation; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the operation finished successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) unmountMountableWithOperationFinish; - /** */ - extern(C) void function(GFile* file, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectMountableWithOperation; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the @file was ejected successfully. - * %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) ejectMountableWithOperationFinish; - /** */ - extern(C) void function(GFile* file, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) pollMountable; - /** - * - * Params: - * file = input #GFile - * result = a #GAsyncResult - * Returns: %TRUE if the operation finished successfully. %FALSE - * otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, GError** err) pollMountableFinish; - /** - * - * Params: - * file = a #GFile - * flags = #GFileMeasureFlags - * cancellable = optional #GCancellable - * progressCallback = a #GFileMeasureProgressCallback - * progressData = user_data for @progress_callback - * diskUsage = the number of bytes of disk space used - * numDirs = the number of directories encountered - * numFiles = the number of non-directories encountered - * Returns: %TRUE if successful, with the out parameters set. - * %FALSE otherwise, with @error set. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GFileMeasureFlags flags, GCancellable* cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, ulong* diskUsage, ulong* numDirs, ulong* numFiles, GError** err) measureDiskUsage; - /** */ - extern(C) void function(GFile* file, GFileMeasureFlags flags, int ioPriority, GCancellable* cancellable, GFileMeasureProgressCallback progressCallback, void* progressData, GAsyncReadyCallback callback, void* userData) measureDiskUsageAsync; - /** - * - * Params: - * file = a #GFile - * result = the #GAsyncResult passed to your #GAsyncReadyCallback - * diskUsage = the number of bytes of disk space used - * numDirs = the number of directories encountered - * numFiles = the number of non-directories encountered - * Returns: %TRUE if successful, with the out parameters set. - * %FALSE otherwise, with @error set. - * - * Throws: GException on failure. - */ - extern(C) int function(GFile* file, GAsyncResult* result, ulong* diskUsage, ulong* numDirs, ulong* numFiles, GError** err) measureDiskUsageFinish; -} - -struct GFileInfo; - -struct GFileInfoClass; - -struct GFileInputStream -{ - GInputStream parentInstance; - GFileInputStreamPrivate* priv; -} - -struct GFileInputStreamClass -{ - GInputStreamClass parentClass; - /** */ - extern(C) long function(GFileInputStream* stream) tell; - /** */ - extern(C) int function(GFileInputStream* stream) canSeek; - /** */ - extern(C) int function(GFileInputStream* stream, long offset, GSeekType type, GCancellable* cancellable, GError** err) seek; - /** - * - * Params: - * stream = a #GFileInputStream. - * attributes = a file attribute query string. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: a #GFileInfo, or %NULL on error. - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFileInputStream* stream, const(char)* attributes, GCancellable* cancellable, GError** err) queryInfo; - /** */ - extern(C) void function(GFileInputStream* stream, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) queryInfoAsync; - /** - * - * Params: - * stream = a #GFileInputStream. - * result = a #GAsyncResult. - * Returns: #GFileInfo. - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFileInputStream* stream, GAsyncResult* result, GError** err) queryInfoFinish; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GFileInputStreamPrivate; - -struct GFileMonitor -{ - GObject parentInstance; - GFileMonitorPrivate* priv; -} - -struct GFileMonitorClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GFileMonitor* monitor, GFile* file, GFile* otherFile, GFileMonitorEvent eventType) changed; - /** - * - * Params: - * monitor = a #GFileMonitor. - * Returns: always %TRUE - */ - extern(C) int function(GFileMonitor* monitor) cancel; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GFileMonitorPrivate; - -struct GFileOutputStream -{ - GOutputStream parentInstance; - GFileOutputStreamPrivate* priv; -} - -struct GFileOutputStreamClass -{ - GOutputStreamClass parentClass; - /** */ - extern(C) long function(GFileOutputStream* stream) tell; - /** */ - extern(C) int function(GFileOutputStream* stream) canSeek; - /** */ - extern(C) int function(GFileOutputStream* stream, long offset, GSeekType type, GCancellable* cancellable, GError** err) seek; - /** */ - extern(C) int function(GFileOutputStream* stream) canTruncate; - /** */ - extern(C) int function(GFileOutputStream* stream, long size, GCancellable* cancellable, GError** err) truncateFn; - /** - * - * Params: - * stream = a #GFileOutputStream. - * attributes = a file attribute query string. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: a #GFileInfo for the @stream, or %NULL on error. - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFileOutputStream* stream, const(char)* attributes, GCancellable* cancellable, GError** err) queryInfo; - /** */ - extern(C) void function(GFileOutputStream* stream, const(char)* attributes, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) queryInfoAsync; - /** - * - * Params: - * stream = a #GFileOutputStream. - * result = a #GAsyncResult. - * Returns: A #GFileInfo for the finished query. - * - * Throws: GException on failure. - */ - extern(C) GFileInfo* function(GFileOutputStream* stream, GAsyncResult* result, GError** err) queryInfoFinish; - /** - * - * Params: - * stream = a #GFileOutputStream. - * Returns: the entity tag for the stream. - */ - extern(C) char* function(GFileOutputStream* stream) getEtag; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GFileOutputStreamPrivate; - -struct GFilenameCompleter; - -struct GFilenameCompleterClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GFilenameCompleter* filenameCompleter) gotCompletionData; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; -} - -struct GFilterInputStream -{ - GInputStream parentInstance; - GInputStream* baseStream; -} - -struct GFilterInputStreamClass -{ - GInputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; -} - -struct GFilterOutputStream -{ - GOutputStream parentInstance; - GOutputStream* baseStream; -} - -struct GFilterOutputStreamClass -{ - GOutputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; -} - -struct GIOExtension; - -struct GIOExtensionPoint; - -struct GIOModule; - -struct GIOModuleClass; - -struct GIOModuleScope; - -struct GIOSchedulerJob; - -struct GIOStream -{ - GObject parentInstance; - GIOStreamPrivate* priv; -} - -struct GIOStreamAdapter; - -struct GIOStreamClass -{ - GObjectClass parentClass; - /** - * - * Params: - * stream = a #GIOStream - * Returns: a #GInputStream, owned by the #GIOStream. - * Do not free. - */ - extern(C) GInputStream* function(GIOStream* stream) getInputStream; - /** - * - * Params: - * stream = a #GIOStream - * Returns: a #GOutputStream, owned by the #GIOStream. - * Do not free. - */ - extern(C) GOutputStream* function(GIOStream* stream) getOutputStream; - /** */ - extern(C) int function(GIOStream* stream, GCancellable* cancellable, GError** err) closeFn; - /** */ - extern(C) void function(GIOStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) closeAsync; - /** - * - * Params: - * stream = a #GIOStream - * result = a #GAsyncResult - * Returns: %TRUE if stream was successfully closed, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GIOStream* stream, GAsyncResult* result, GError** err) closeFinish; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; - /** */ - extern(C) void function() GReserved7; - /** */ - extern(C) void function() GReserved8; - /** */ - extern(C) void function() GReserved9; - /** */ - extern(C) void function() GReserved10; -} - -struct GIOStreamPrivate; - -struct GIcon; - -/** - * GIconIface is used to implement GIcon types for various - * different systems. See #GThemedIcon and #GLoadableIcon for - * examples of how to implement this interface. - */ -struct GIconIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * icon = #gconstpointer to an icon object. - * Returns: a #guint containing a hash for the @icon, suitable for - * use in a #GHashTable or similar data structure. - */ - extern(C) uint function(GIcon* icon) hash; - /** - * - * Params: - * icon1 = pointer to the first #GIcon. - * icon2 = pointer to the second #GIcon. - * Returns: %TRUE if @icon1 is equal to @icon2. %FALSE otherwise. - */ - extern(C) int function(GIcon* icon1, GIcon* icon2) equal; - /** - * - * Params: - * icon = a #GIcon. - * Returns: An allocated NUL-terminated UTF8 string or - * %NULL if @icon can't be serialized. Use g_free() to free. - */ - extern(C) int function(GIcon* icon, GPtrArray* tokens, int* outVersion) toTokens; - /** */ - extern(C) GIcon* function(char** tokens, int numTokens, int version_, GError** err) fromTokens; - /** - * - * Params: - * icon = a #GIcon - * Returns: a #GVariant, or %NULL when serialization fails. The #GVariant will not be floating. - */ - extern(C) GVariant* function(GIcon* icon) serialize; -} - -struct GInetAddress -{ - GObject parentInstance; - GInetAddressPrivate* priv; -} - -struct GInetAddressClass -{ - GObjectClass parentClass; - /** - * - * Params: - * address = a #GInetAddress - * Returns: a representation of @address as a string, which should be - * freed after use. - */ - extern(C) char* function(GInetAddress* address) toString; - /** - * - * Params: - * address = a #GInetAddress - * Returns: a pointer to an internal array of the bytes in @address, - * which should not be modified, stored, or freed. The size of this - * array can be gotten with g_inet_address_get_native_size(). - */ - extern(C) ubyte* function(GInetAddress* address) toBytes; -} - -struct GInetAddressMask -{ - GObject parentInstance; - GInetAddressMaskPrivate* priv; -} - -struct GInetAddressMaskClass -{ - GObjectClass parentClass; -} - -struct GInetAddressMaskPrivate; - -struct GInetAddressPrivate; - -struct GInetSocketAddress -{ - GSocketAddress parentInstance; - GInetSocketAddressPrivate* priv; -} - -struct GInetSocketAddressClass -{ - GSocketAddressClass parentClass; -} - -struct GInetSocketAddressPrivate; - -struct GInitable; - -/** - * Provides an interface for initializing object such that initialization - * may fail. - * - * Since: 2.22 - */ -struct GInitableIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * initable = a #GInitable. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: %TRUE if successful. If an error has occurred, this function will - * return %FALSE and set @error appropriately if present. - * - * Throws: GException on failure. - */ - extern(C) int function(GInitable* initable, GCancellable* cancellable, GError** err) init; -} - -/** - * Structure used for scatter/gather data input when receiving multiple - * messages or packets in one go. You generally pass in an array of empty - * #GInputVectors and the operation will use all the buffers as if they - * were one buffer, and will set @bytes_received to the total number of bytes - * received across all #GInputVectors. - * - * This structure closely mirrors `struct mmsghdr` and `struct msghdr` from - * the POSIX sockets API (see `man 2 recvmmsg`). - * - * If @address is non-%NULL then it is set to the source address the message - * was received from, and the caller must free it afterwards. - * - * If @control_messages is non-%NULL then it is set to an array of control - * messages received with the message (if any), and the caller must free it - * afterwards. @num_control_messages is set to the number of elements in - * this array, which may be zero. - * - * Flags relevant to this message will be returned in @flags. For example, - * `MSG_EOR` or `MSG_TRUNC`. - * - * Since: 2.48 - */ -struct GInputMessage -{ - /** - * return location - * for a #GSocketAddress, or %NULL - */ - GSocketAddress** address; - /** - * pointer to an - * array of input vectors - */ - GInputVector* vectors; - /** - * the number of input vectors pointed to by @vectors - */ - uint numVectors; - /** - * will be set to the number of bytes that have been - * received - */ - size_t bytesReceived; - /** - * collection of #GSocketMsgFlags for the received message, - * outputted by the call - */ - int flags; - /** - * return location for a - * caller-allocated array of #GSocketControlMessages, or %NULL - */ - GSocketControlMessage*** controlMessages; - /** - * return location for the number of - * elements in @control_messages - */ - uint* numControlMessages; -} - -struct GInputStream -{ - GObject parentInstance; - GInputStreamPrivate* priv; -} - -struct GInputStreamClass -{ - GObjectClass parentClass; - /** */ - extern(C) ptrdiff_t function(GInputStream* stream, void* buffer, size_t count, GCancellable* cancellable, GError** err) readFn; - /** - * - * Params: - * stream = a #GInputStream. - * count = the number of bytes that will be skipped from the stream - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: Number of bytes skipped, or -1 on error - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GInputStream* stream, size_t count, GCancellable* cancellable, GError** err) skip; - /** */ - extern(C) int function(GInputStream* stream, GCancellable* cancellable, GError** err) closeFn; - /** */ - extern(C) void function(GInputStream* stream, void* buffer, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) readAsync; - /** - * - * Params: - * stream = a #GInputStream. - * result = a #GAsyncResult. - * Returns: number of bytes read in, or -1 on error, or 0 on end of file. - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GInputStream* stream, GAsyncResult* result, GError** err) readFinish; - /** */ - extern(C) void function(GInputStream* stream, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) skipAsync; - /** - * - * Params: - * stream = a #GInputStream. - * result = a #GAsyncResult. - * Returns: the size of the bytes skipped, or `-1` on error. - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GInputStream* stream, GAsyncResult* result, GError** err) skipFinish; - /** */ - extern(C) void function(GInputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) closeAsync; - /** - * - * Params: - * stream = a #GInputStream. - * result = a #GAsyncResult. - * Returns: %TRUE if the stream was closed successfully. - * - * Throws: GException on failure. - */ - extern(C) int function(GInputStream* stream, GAsyncResult* result, GError** err) closeFinish; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GInputStreamPrivate; - -/** - * Structure used for scatter/gather data input. - * You generally pass in an array of #GInputVectors - * and the operation will store the read data starting in the - * first buffer, switching to the next as needed. - * - * Since: 2.22 - */ -struct GInputVector -{ - /** - * Pointer to a buffer where data will be written. - */ - void* buffer; - /** - * the available size in @buffer. - */ - size_t size; -} - -struct GListModel; - -/** - * The virtual function table for #GListModel. - * - * Since: 2.44 - */ -struct GListModelInterface -{ - /** - * parent #GTypeInterface - */ - GTypeInterface gIface; - /** - * - * Params: - * list = a #GListModel - * Returns: the #GType of the items contained in @list. - */ - extern(C) GType function(GListModel* list) getItemType; - /** - * - * Params: - * list = a #GListModel - * Returns: the number of items in @list. - */ - extern(C) uint function(GListModel* list) getNItems; - /** - * - * Params: - * list = a #GListModel - * position = the position of the item to fetch - * Returns: the object at @position. - */ - extern(C) void* function(GListModel* list, uint position) getItem; -} - -struct GListStore; - -struct GListStoreClass -{ - GObjectClass parentClass; -} - -struct GLoadableIcon; - -/** - * Interface for icons that can be loaded as a stream. - */ -struct GLoadableIconIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * icon = a #GLoadableIcon. - * size = an integer. - * type = a location to store the type of the loaded - * icon, %NULL to ignore. - * cancellable = optional #GCancellable object, %NULL to - * ignore. - * Returns: a #GInputStream to read the icon from. - * - * Throws: GException on failure. - */ - extern(C) GInputStream* function(GLoadableIcon* icon, int size, char** type, GCancellable* cancellable, GError** err) load; - /** */ - extern(C) void function(GLoadableIcon* icon, int size, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) loadAsync; - /** - * - * Params: - * icon = a #GLoadableIcon. - * res = a #GAsyncResult. - * type = a location to store the type of the loaded - * icon, %NULL to ignore. - * Returns: a #GInputStream to read the icon from. - * - * Throws: GException on failure. - */ - extern(C) GInputStream* function(GLoadableIcon* icon, GAsyncResult* res, char** type, GError** err) loadFinish; -} - -struct GMemoryInputStream -{ - GInputStream parentInstance; - GMemoryInputStreamPrivate* priv; -} - -struct GMemoryInputStreamClass -{ - GInputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GMemoryInputStreamPrivate; - -struct GMemoryMonitor; - -/** - * The virtual function table for #GMemoryMonitor. - * - * Since: 2.64 - */ -struct GMemoryMonitorInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) void function(GMemoryMonitor* monitor, GMemoryMonitorWarningLevel level) lowMemoryWarning; -} - -struct GMemoryOutputStream -{ - GOutputStream parentInstance; - GMemoryOutputStreamPrivate* priv; -} - -struct GMemoryOutputStreamClass -{ - GOutputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GMemoryOutputStreamPrivate; - -struct GMenu; - -struct GMenuAttributeIter -{ - GObject parentInstance; - GMenuAttributeIterPrivate* priv; -} - -struct GMenuAttributeIterClass -{ - GObjectClass parentClass; - /** - * - * Params: - * iter = a #GMenuAttributeIter - * outName = the type of the attribute - * value = the attribute value - * Returns: %TRUE on success, or %FALSE if there is no additional - * attribute - */ - extern(C) int function(GMenuAttributeIter* iter, char** outName, GVariant** value) getNext; -} - -struct GMenuAttributeIterPrivate; - -struct GMenuItem; - -struct GMenuLinkIter -{ - GObject parentInstance; - GMenuLinkIterPrivate* priv; -} - -struct GMenuLinkIterClass -{ - GObjectClass parentClass; - /** - * - * Params: - * iter = a #GMenuLinkIter - * outLink = the name of the link - * value = the linked #GMenuModel - * Returns: %TRUE on success, or %FALSE if there is no additional link - */ - extern(C) int function(GMenuLinkIter* iter, char** outLink, GMenuModel** value) getNext; -} - -struct GMenuLinkIterPrivate; - -struct GMenuModel -{ - GObject parentInstance; - GMenuModelPrivate* priv; -} - -struct GMenuModelClass -{ - GObjectClass parentClass; - /** - * - * Params: - * model = a #GMenuModel - * Returns: %TRUE if the model is mutable (ie: "items-changed" may be - * emitted). - */ - extern(C) int function(GMenuModel* model) isMutable; - /** - * - * Params: - * model = a #GMenuModel - * Returns: the number of items - */ - extern(C) int function(GMenuModel* model) getNItems; - /** */ - extern(C) void function(GMenuModel* model, int itemIndex, GHashTable** attributes) getItemAttributes; - /** - * - * Params: - * model = a #GMenuModel - * itemIndex = the index of the item - * Returns: a new #GMenuAttributeIter - */ - extern(C) GMenuAttributeIter* function(GMenuModel* model, int itemIndex) iterateItemAttributes; - /** - * - * Params: - * model = a #GMenuModel - * itemIndex = the index of the item - * attribute = the attribute to query - * expectedType = the expected type of the attribute, or - * %NULL - * Returns: the value of the attribute - */ - extern(C) GVariant* function(GMenuModel* model, int itemIndex, const(char)* attribute, GVariantType* expectedType) getItemAttributeValue; - /** */ - extern(C) void function(GMenuModel* model, int itemIndex, GHashTable** links) getItemLinks; - /** - * - * Params: - * model = a #GMenuModel - * itemIndex = the index of the item - * Returns: a new #GMenuLinkIter - */ - extern(C) GMenuLinkIter* function(GMenuModel* model, int itemIndex) iterateItemLinks; - /** - * - * Params: - * model = a #GMenuModel - * itemIndex = the index of the item - * link = the link to query - * Returns: the linked #GMenuModel, or %NULL - */ - extern(C) GMenuModel* function(GMenuModel* model, int itemIndex, const(char)* link) getItemLink; -} - -struct GMenuModelPrivate; - -struct GMount; - -/** - * Interface for implementing operations for mounts. - */ -struct GMountIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) void function(GMount* mount) changed; - /** */ - extern(C) void function(GMount* mount) unmounted; - /** - * - * Params: - * mount = a #GMount. - * Returns: a #GFile. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - extern(C) GFile* function(GMount* mount) getRoot; - /** - * - * Params: - * mount = a #GMount. - * Returns: the name for the given @mount. - * The returned string should be freed with g_free() - * when no longer needed. - */ - extern(C) char* function(GMount* mount) getName; - /** - * - * Params: - * mount = a #GMount. - * Returns: a #GIcon. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - extern(C) GIcon* function(GMount* mount) getIcon; - /** - * - * Params: - * mount = a #GMount. - * Returns: the UUID for @mount or %NULL if no UUID - * can be computed. - * The returned string should be freed with g_free() - * when no longer needed. - */ - extern(C) char* function(GMount* mount) getUuid; - /** - * - * Params: - * mount = a #GMount. - * Returns: a #GVolume or %NULL if @mount is not - * associated with a volume. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - extern(C) GVolume* function(GMount* mount) getVolume; - /** - * - * Params: - * mount = a #GMount. - * Returns: a #GDrive or %NULL if @mount is not - * associated with a volume or a drive. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - extern(C) GDrive* function(GMount* mount) getDrive; - /** - * - * Params: - * mount = a #GMount. - * Returns: %TRUE if the @mount can be unmounted. - */ - extern(C) int function(GMount* mount) canUnmount; - /** - * - * Params: - * mount = a #GMount. - * Returns: %TRUE if the @mount can be ejected. - */ - extern(C) int function(GMount* mount) canEject; - /** */ - extern(C) void function(GMount* mount, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) unmount; - /** - * - * Params: - * mount = a #GMount. - * result = a #GAsyncResult. - * Returns: %TRUE if the mount was successfully unmounted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GMount* mount, GAsyncResult* result, GError** err) unmountFinish; - /** */ - extern(C) void function(GMount* mount, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) eject; - /** - * - * Params: - * mount = a #GMount. - * result = a #GAsyncResult. - * Returns: %TRUE if the mount was successfully ejected. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GMount* mount, GAsyncResult* result, GError** err) ejectFinish; - /** */ - extern(C) void function(GMount* mount, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) remount; - /** - * - * Params: - * mount = a #GMount. - * result = a #GAsyncResult. - * Returns: %TRUE if the mount was successfully remounted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GMount* mount, GAsyncResult* result, GError** err) remountFinish; - /** */ - extern(C) void function(GMount* mount, int forceRescan, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) guessContentType; - /** - * - * Params: - * mount = a #GMount - * result = a #GAsyncResult - * Returns: a %NULL-terminated array of content types or %NULL on error. - * Caller should free this array with g_strfreev() when done with it. - * - * Throws: GException on failure. - */ - extern(C) char** function(GMount* mount, GAsyncResult* result, GError** err) guessContentTypeFinish; - /** - * - * Params: - * mount = a #GMount - * forceRescan = Whether to force a rescan of the content. - * Otherwise a cached result will be used if available - * cancellable = optional #GCancellable object, %NULL to ignore - * Returns: a %NULL-terminated array of content types or %NULL on error. - * Caller should free this array with g_strfreev() when done with it. - * - * Throws: GException on failure. - */ - extern(C) char** function(GMount* mount, int forceRescan, GCancellable* cancellable, GError** err) guessContentTypeSync; - /** */ - extern(C) void function(GMount* mount) preUnmount; - /** */ - extern(C) void function(GMount* mount, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) unmountWithOperation; - /** - * - * Params: - * mount = a #GMount. - * result = a #GAsyncResult. - * Returns: %TRUE if the mount was successfully unmounted. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GMount* mount, GAsyncResult* result, GError** err) unmountWithOperationFinish; - /** */ - extern(C) void function(GMount* mount, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectWithOperation; - /** - * - * Params: - * mount = a #GMount. - * result = a #GAsyncResult. - * Returns: %TRUE if the mount was successfully ejected. %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GMount* mount, GAsyncResult* result, GError** err) ejectWithOperationFinish; - /** - * - * Params: - * mount = a #GMount. - * Returns: a #GFile. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - extern(C) GFile* function(GMount* mount) getDefaultLocation; - /** - * - * Params: - * mount = A #GMount. - * Returns: Sorting key for @mount or %NULL if no such key is available. - */ - extern(C) const(char)* function(GMount* mount) getSortKey; - /** - * - * Params: - * mount = a #GMount. - * Returns: a #GIcon. - * The returned object should be unreffed with - * g_object_unref() when no longer needed. - */ - extern(C) GIcon* function(GMount* mount) getSymbolicIcon; -} - -struct GMountOperation -{ - GObject parentInstance; - GMountOperationPrivate* priv; -} - -struct GMountOperationClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GMountOperation* op, const(char)* message, const(char)* defaultUser, const(char)* defaultDomain, GAskPasswordFlags flags) askPassword; - /** */ - extern(C) void function(GMountOperation* op, const(char)* message, char** choices) askQuestion; - /** */ - extern(C) void function(GMountOperation* op, GMountOperationResult result) reply; - /** */ - extern(C) void function(GMountOperation* op) aborted; - /** */ - extern(C) void function(GMountOperation* op, const(char)* message, GArray* processes, char** choices) showProcesses; - /** */ - extern(C) void function(GMountOperation* op, const(char)* message, long timeLeft, long bytesLeft) showUnmountProgress; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; - /** */ - extern(C) void function() GReserved7; - /** */ - extern(C) void function() GReserved8; - /** */ - extern(C) void function() GReserved9; -} - -struct GMountOperationPrivate; - -struct GNativeSocketAddress -{ - GSocketAddress parentInstance; - GNativeSocketAddressPrivate* priv; -} - -struct GNativeSocketAddressClass -{ - GSocketAddressClass parentClass; -} - -struct GNativeSocketAddressPrivate; - -struct GNativeVolumeMonitor -{ - GVolumeMonitor parentInstance; -} - -struct GNativeVolumeMonitorClass -{ - GVolumeMonitorClass parentClass; - /** */ - extern(C) GMount* function(const(char)* mountPath, GCancellable* cancellable) getMountForMountPath; -} - -struct GNetworkAddress -{ - GObject parentInstance; - GNetworkAddressPrivate* priv; -} - -struct GNetworkAddressClass -{ - GObjectClass parentClass; -} - -struct GNetworkAddressPrivate; - -struct GNetworkMonitor; - -/** - * The virtual function table for #GNetworkMonitor. - * - * Since: 2.32 - */ -struct GNetworkMonitorInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) void function(GNetworkMonitor* monitor, int networkAvailable) networkChanged; - /** - * - * Params: - * monitor = a #GNetworkMonitor - * connectable = a #GSocketConnectable - * cancellable = a #GCancellable, or %NULL - * Returns: %TRUE if @connectable is reachable, %FALSE if not. - * - * Throws: GException on failure. - */ - extern(C) int function(GNetworkMonitor* monitor, GSocketConnectable* connectable, GCancellable* cancellable, GError** err) canReach; - /** */ - extern(C) void function(GNetworkMonitor* monitor, GSocketConnectable* connectable, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) canReachAsync; - /** - * - * Params: - * monitor = a #GNetworkMonitor - * result = a #GAsyncResult - * Returns: %TRUE if network is reachable, %FALSE if not. - * - * Throws: GException on failure. - */ - extern(C) int function(GNetworkMonitor* monitor, GAsyncResult* result, GError** err) canReachFinish; -} - -struct GNetworkService -{ - GObject parentInstance; - GNetworkServicePrivate* priv; -} - -struct GNetworkServiceClass -{ - GObjectClass parentClass; -} - -struct GNetworkServicePrivate; - -struct GNotification; - -/** - * Structure used for scatter/gather data output when sending multiple - * messages or packets in one go. You generally pass in an array of - * #GOutputVectors and the operation will use all the buffers as if they - * were one buffer. - * - * If @address is %NULL then the message is sent to the default receiver - * (as previously set by g_socket_connect()). - * - * Since: 2.44 - */ -struct GOutputMessage -{ - /** - * a #GSocketAddress, or %NULL - */ - GSocketAddress* address; - /** - * pointer to an array of output vectors - */ - GOutputVector* vectors; - /** - * the number of output vectors pointed to by @vectors. - */ - uint numVectors; - /** - * initialize to 0. Will be set to the number of bytes - * that have been sent - */ - uint bytesSent; - /** - * a pointer - * to an array of #GSocketControlMessages, or %NULL. - */ - GSocketControlMessage** controlMessages; - /** - * number of elements in @control_messages. - */ - uint numControlMessages; -} - -struct GOutputStream -{ - GObject parentInstance; - GOutputStreamPrivate* priv; -} - -struct GOutputStreamClass -{ - GObjectClass parentClass; - /** - * - * Params: - * stream = a #GOutputStream. - * buffer = the buffer containing the data to write. - * count = the number of bytes to write - * cancellable = optional cancellable object - * Returns: Number of bytes written, or -1 on error - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GOutputStream* stream, void* buffer, size_t count, GCancellable* cancellable, GError** err) writeFn; - /** - * - * Params: - * stream = a #GOutputStream. - * source = a #GInputStream. - * flags = a set of #GOutputStreamSpliceFlags. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: a #gssize containing the size of the data spliced, or - * -1 if an error occurred. Note that if the number of bytes - * spliced is greater than %G_MAXSSIZE, then that will be - * returned, and there is no way to determine the actual number - * of bytes spliced. - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GOutputStream* stream, GInputStream* source, GOutputStreamSpliceFlags flags, GCancellable* cancellable, GError** err) splice; - /** - * - * Params: - * stream = a #GOutputStream. - * cancellable = optional cancellable object - * Returns: %TRUE on success, %FALSE on error - * - * Throws: GException on failure. - */ - extern(C) int function(GOutputStream* stream, GCancellable* cancellable, GError** err) flush; - /** */ - extern(C) int function(GOutputStream* stream, GCancellable* cancellable, GError** err) closeFn; - /** */ - extern(C) void function(GOutputStream* stream, void* buffer, size_t count, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) writeAsync; - /** - * - * Params: - * stream = a #GOutputStream. - * result = a #GAsyncResult. - * Returns: a #gssize containing the number of bytes written to the stream. - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GOutputStream* stream, GAsyncResult* result, GError** err) writeFinish; - /** */ - extern(C) void function(GOutputStream* stream, GInputStream* source, GOutputStreamSpliceFlags flags, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) spliceAsync; - /** - * - * Params: - * stream = a #GOutputStream. - * result = a #GAsyncResult. - * Returns: a #gssize of the number of bytes spliced. Note that if the - * number of bytes spliced is greater than %G_MAXSSIZE, then that - * will be returned, and there is no way to determine the actual - * number of bytes spliced. - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GOutputStream* stream, GAsyncResult* result, GError** err) spliceFinish; - /** */ - extern(C) void function(GOutputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) flushAsync; - /** - * - * Params: - * stream = a #GOutputStream. - * result = a GAsyncResult. - * Returns: %TRUE if flush operation succeeded, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GOutputStream* stream, GAsyncResult* result, GError** err) flushFinish; - /** */ - extern(C) void function(GOutputStream* stream, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) closeAsync; - /** - * - * Params: - * stream = a #GOutputStream. - * result = a #GAsyncResult. - * Returns: %TRUE if stream was successfully closed, %FALSE otherwise. - * - * Throws: GException on failure. - */ - extern(C) int function(GOutputStream* stream, GAsyncResult* result, GError** err) closeFinish; - /** - * - * Params: - * stream = a #GOutputStream. - * vectors = the buffer containing the #GOutputVectors to write. - * nVectors = the number of vectors to write - * bytesWritten = location to store the number of bytes that were - * written to the stream - * cancellable = optional cancellable object - * Returns: %TRUE on success, %FALSE if there was an error - * - * Throws: GException on failure. - */ - extern(C) int function(GOutputStream* stream, GOutputVector* vectors, size_t nVectors, size_t* bytesWritten, GCancellable* cancellable, GError** err) writevFn; - /** */ - extern(C) void function(GOutputStream* stream, GOutputVector* vectors, size_t nVectors, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) writevAsync; - /** - * - * Params: - * stream = a #GOutputStream. - * result = a #GAsyncResult. - * bytesWritten = location to store the number of bytes that were written to the stream - * Returns: %TRUE on success, %FALSE if there was an error - * - * Throws: GException on failure. - */ - extern(C) int function(GOutputStream* stream, GAsyncResult* result, size_t* bytesWritten, GError** err) writevFinish; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; - /** */ - extern(C) void function() GReserved7; - /** */ - extern(C) void function() GReserved8; -} - -struct GOutputStreamPrivate; - -/** - * Structure used for scatter/gather data output. - * You generally pass in an array of #GOutputVectors - * and the operation will use all the buffers as if they were - * one buffer. - * - * Since: 2.22 - */ -struct GOutputVector -{ - /** - * Pointer to a buffer of data to read. - */ - void* buffer; - /** - * the size of @buffer. - */ - size_t size; -} - -struct GPermission -{ - GObject parentInstance; - GPermissionPrivate* priv; -} - -struct GPermissionClass -{ - GObjectClass parentClass; - /** - * - * Params: - * permission = a #GPermission instance - * cancellable = a #GCancellable, or %NULL - * Returns: %TRUE if the permission was successfully acquired - * - * Throws: GException on failure. - */ - extern(C) int function(GPermission* permission, GCancellable* cancellable, GError** err) acquire; - /** */ - extern(C) void function(GPermission* permission, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) acquireAsync; - /** - * - * Params: - * permission = a #GPermission instance - * result = the #GAsyncResult given to the #GAsyncReadyCallback - * Returns: %TRUE if the permission was successfully acquired - * - * Throws: GException on failure. - */ - extern(C) int function(GPermission* permission, GAsyncResult* result, GError** err) acquireFinish; - /** - * - * Params: - * permission = a #GPermission instance - * cancellable = a #GCancellable, or %NULL - * Returns: %TRUE if the permission was successfully released - * - * Throws: GException on failure. - */ - extern(C) int function(GPermission* permission, GCancellable* cancellable, GError** err) release; - /** */ - extern(C) void function(GPermission* permission, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) releaseAsync; - /** - * - * Params: - * permission = a #GPermission instance - * result = the #GAsyncResult given to the #GAsyncReadyCallback - * Returns: %TRUE if the permission was successfully released - * - * Throws: GException on failure. - */ - extern(C) int function(GPermission* permission, GAsyncResult* result, GError** err) releaseFinish; - void*[16] reserved; -} - -struct GPermissionPrivate; - -struct GPollableInputStream; - -/** - * The interface for pollable input streams. - * - * The default implementation of @can_poll always returns %TRUE. - * - * The default implementation of @read_nonblocking calls - * g_pollable_input_stream_is_readable(), and then calls - * g_input_stream_read() if it returns %TRUE. This means you only need - * to override it if it is possible that your @is_readable - * implementation may return %TRUE when the stream is not actually - * readable. - * - * Since: 2.28 - */ -struct GPollableInputStreamInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * stream = a #GPollableInputStream. - * Returns: %TRUE if @stream is pollable, %FALSE if not. - */ - extern(C) int function(GPollableInputStream* stream) canPoll; - /** - * - * Params: - * stream = a #GPollableInputStream. - * Returns: %TRUE if @stream is readable, %FALSE if not. If an error - * has occurred on @stream, this will result in - * g_pollable_input_stream_is_readable() returning %TRUE, and the - * next attempt to read will return the error. - */ - extern(C) int function(GPollableInputStream* stream) isReadable; - /** - * - * Params: - * stream = a #GPollableInputStream. - * cancellable = a #GCancellable, or %NULL - * Returns: a new #GSource - */ - extern(C) GSource* function(GPollableInputStream* stream, GCancellable* cancellable) createSource; - /** - * - * Params: - * stream = a #GPollableInputStream - * buffer = a buffer to - * read data into (which should be at least @count bytes long). - * count = the number of bytes you want to read - * Returns: the number of bytes read, or -1 on error (including - * %G_IO_ERROR_WOULD_BLOCK). - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GPollableInputStream* stream, void* buffer, size_t count, GError** err) readNonblocking; -} - -struct GPollableOutputStream; - -/** - * The interface for pollable output streams. - * - * The default implementation of @can_poll always returns %TRUE. - * - * The default implementation of @write_nonblocking calls - * g_pollable_output_stream_is_writable(), and then calls - * g_output_stream_write() if it returns %TRUE. This means you only - * need to override it if it is possible that your @is_writable - * implementation may return %TRUE when the stream is not actually - * writable. - * - * The default implementation of @writev_nonblocking calls - * g_pollable_output_stream_write_nonblocking() for each vector, and converts - * its return value and error (if set) to a #GPollableReturn. You should - * override this where possible to avoid having to allocate a #GError to return - * %G_IO_ERROR_WOULD_BLOCK. - * - * Since: 2.28 - */ -struct GPollableOutputStreamInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * stream = a #GPollableOutputStream. - * Returns: %TRUE if @stream is pollable, %FALSE if not. - */ - extern(C) int function(GPollableOutputStream* stream) canPoll; - /** - * - * Params: - * stream = a #GPollableOutputStream. - * Returns: %TRUE if @stream is writable, %FALSE if not. If an error - * has occurred on @stream, this will result in - * g_pollable_output_stream_is_writable() returning %TRUE, and the - * next attempt to write will return the error. - */ - extern(C) int function(GPollableOutputStream* stream) isWritable; - /** - * - * Params: - * stream = a #GPollableOutputStream. - * cancellable = a #GCancellable, or %NULL - * Returns: a new #GSource - */ - extern(C) GSource* function(GPollableOutputStream* stream, GCancellable* cancellable) createSource; - /** - * - * Params: - * stream = a #GPollableOutputStream - * buffer = a buffer to write - * data from - * count = the number of bytes you want to write - * Returns: the number of bytes written, or -1 on error (including - * %G_IO_ERROR_WOULD_BLOCK). - * - * Throws: GException on failure. - */ - extern(C) ptrdiff_t function(GPollableOutputStream* stream, void* buffer, size_t count, GError** err) writeNonblocking; - /** - * - * Params: - * stream = a #GPollableOutputStream - * vectors = the buffer containing the #GOutputVectors to write. - * nVectors = the number of vectors to write - * bytesWritten = location to store the number of bytes that were - * written to the stream - * Returns: %@G_POLLABLE_RETURN_OK on success, %G_POLLABLE_RETURN_WOULD_BLOCK - * if the stream is not currently writable (and @error is *not* set), or - * %G_POLLABLE_RETURN_FAILED if there was an error in which case @error will - * be set. - * - * Throws: GException on failure. - */ - extern(C) GPollableReturn function(GPollableOutputStream* stream, GOutputVector* vectors, size_t nVectors, size_t* bytesWritten, GError** err) writevNonblocking; -} - -struct GPropertyAction; - -struct GProxy; - -struct GProxyAddress -{ - GInetSocketAddress parentInstance; - GProxyAddressPrivate* priv; -} - -/** - * Class structure for #GProxyAddress. - * - * Since: 2.26 - */ -struct GProxyAddressClass -{ - GInetSocketAddressClass parentClass; -} - -struct GProxyAddressEnumerator -{ - GSocketAddressEnumerator parentInstance; - GProxyAddressEnumeratorPrivate* priv; -} - -/** - * Class structure for #GProxyAddressEnumerator. - */ -struct GProxyAddressEnumeratorClass -{ - GSocketAddressEnumeratorClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; - /** */ - extern(C) void function() GReserved7; -} - -struct GProxyAddressEnumeratorPrivate; - -struct GProxyAddressPrivate; - -/** - * Provides an interface for handling proxy connection and payload. - * - * Since: 2.26 - */ -struct GProxyInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * proxy = a #GProxy - * connection = a #GIOStream - * proxyAddress = a #GProxyAddress - * cancellable = a #GCancellable - * Returns: a #GIOStream that will replace @connection. This might - * be the same as @connection, in which case a reference - * will be added. - * - * Throws: GException on failure. - */ - extern(C) GIOStream* function(GProxy* proxy, GIOStream* connection, GProxyAddress* proxyAddress, GCancellable* cancellable, GError** err) connect; - /** */ - extern(C) void function(GProxy* proxy, GIOStream* connection, GProxyAddress* proxyAddress, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) connectAsync; - /** - * - * Params: - * proxy = a #GProxy - * result = a #GAsyncResult - * Returns: a #GIOStream. - * - * Throws: GException on failure. - */ - extern(C) GIOStream* function(GProxy* proxy, GAsyncResult* result, GError** err) connectFinish; - /** - * - * Params: - * proxy = a #GProxy - * Returns: %TRUE if hostname resolution is supported. - */ - extern(C) int function(GProxy* proxy) supportsHostname; -} - -struct GProxyResolver; - -/** - * The virtual function table for #GProxyResolver. - */ -struct GProxyResolverInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * resolver = a #GProxyResolver - * Returns: %TRUE if @resolver is supported. - */ - extern(C) int function(GProxyResolver* resolver) isSupported; - /** - * - * Params: - * resolver = a #GProxyResolver - * uri = a URI representing the destination to connect to - * cancellable = a #GCancellable, or %NULL - * Returns: A - * NULL-terminated array of proxy URIs. Must be freed - * with g_strfreev(). - * - * Throws: GException on failure. - */ - extern(C) char** function(GProxyResolver* resolver, const(char)* uri, GCancellable* cancellable, GError** err) lookup; - /** */ - extern(C) void function(GProxyResolver* resolver, const(char)* uri, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupAsync; - /** - * - * Params: - * resolver = a #GProxyResolver - * result = the result passed to your #GAsyncReadyCallback - * Returns: A - * NULL-terminated array of proxy URIs. Must be freed - * with g_strfreev(). - * - * Throws: GException on failure. - */ - extern(C) char** function(GProxyResolver* resolver, GAsyncResult* result, GError** err) lookupFinish; -} - -struct GRemoteActionGroup; - -/** - * The virtual function table for #GRemoteActionGroup. - * - * Since: 2.32 - */ -struct GRemoteActionGroupInterface -{ - GTypeInterface gIface; - /** */ - extern(C) void function(GRemoteActionGroup* remote, const(char)* actionName, GVariant* parameter, GVariant* platformData) activateActionFull; - /** */ - extern(C) void function(GRemoteActionGroup* remote, const(char)* actionName, GVariant* value, GVariant* platformData) changeActionStateFull; -} - -struct GResolver -{ - GObject parentInstance; - GResolverPrivate* priv; -} - -struct GResolverClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GResolver* resolver) reload; - /** - * - * Params: - * resolver = a #GResolver - * hostname = the hostname to look up - * cancellable = a #GCancellable, or %NULL - * Returns: a non-empty #GList - * of #GInetAddress, or %NULL on error. You - * must unref each of the addresses and free the list when you are - * done with it. (You can use g_resolver_free_addresses() to do this.) - * - * Throws: GException on failure. - */ - extern(C) GList* function(GResolver* resolver, const(char)* hostname, GCancellable* cancellable, GError** err) lookupByName; - /** */ - extern(C) void function(GResolver* resolver, const(char)* hostname, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupByNameAsync; - /** - * - * Params: - * resolver = a #GResolver - * result = the result passed to your #GAsyncReadyCallback - * Returns: a #GList - * of #GInetAddress, or %NULL on error. See g_resolver_lookup_by_name() - * for more details. - * - * Throws: GException on failure. - */ - extern(C) GList* function(GResolver* resolver, GAsyncResult* result, GError** err) lookupByNameFinish; - /** - * - * Params: - * resolver = a #GResolver - * address = the address to reverse-resolve - * cancellable = a #GCancellable, or %NULL - * Returns: a hostname (either ASCII-only, or in ASCII-encoded - * form), or %NULL on error. - * - * Throws: GException on failure. - */ - extern(C) char* function(GResolver* resolver, GInetAddress* address, GCancellable* cancellable, GError** err) lookupByAddress; - /** */ - extern(C) void function(GResolver* resolver, GInetAddress* address, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupByAddressAsync; - /** - * - * Params: - * resolver = a #GResolver - * result = the result passed to your #GAsyncReadyCallback - * Returns: a hostname (either ASCII-only, or in ASCII-encoded - * form), or %NULL on error. - * - * Throws: GException on failure. - */ - extern(C) char* function(GResolver* resolver, GAsyncResult* result, GError** err) lookupByAddressFinish; - /** */ - extern(C) GList* function(GResolver* resolver, const(char)* rrname, GCancellable* cancellable, GError** err) lookupService; - /** */ - extern(C) void function(GResolver* resolver, const(char)* rrname, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupServiceAsync; - /** - * - * Params: - * resolver = a #GResolver - * result = the result passed to your #GAsyncReadyCallback - * Returns: a non-empty #GList of - * #GSrvTarget, or %NULL on error. See g_resolver_lookup_service() for more - * details. - * - * Throws: GException on failure. - */ - extern(C) GList* function(GResolver* resolver, GAsyncResult* result, GError** err) lookupServiceFinish; - /** - * - * Params: - * resolver = a #GResolver - * rrname = the DNS name to look up the record for - * recordType = the type of DNS record to look up - * cancellable = a #GCancellable, or %NULL - * Returns: a non-empty #GList of - * #GVariant, or %NULL on error. You must free each of the records and the list - * when you are done with it. (You can use g_list_free_full() with - * g_variant_unref() to do this.) - * - * Throws: GException on failure. - */ - extern(C) GList* function(GResolver* resolver, const(char)* rrname, GResolverRecordType recordType, GCancellable* cancellable, GError** err) lookupRecords; - /** */ - extern(C) void function(GResolver* resolver, const(char)* rrname, GResolverRecordType recordType, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupRecordsAsync; - /** - * - * Params: - * resolver = a #GResolver - * result = the result passed to your #GAsyncReadyCallback - * Returns: a non-empty #GList of - * #GVariant, or %NULL on error. You must free each of the records and the list - * when you are done with it. (You can use g_list_free_full() with - * g_variant_unref() to do this.) - * - * Throws: GException on failure. - */ - extern(C) GList* function(GResolver* resolver, GAsyncResult* result, GError** err) lookupRecordsFinish; - /** */ - extern(C) void function(GResolver* resolver, const(char)* hostname, GResolverNameLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupByNameWithFlagsAsync; - /** - * - * Params: - * resolver = a #GResolver - * result = the result passed to your #GAsyncReadyCallback - * Returns: a #GList - * of #GInetAddress, or %NULL on error. See g_resolver_lookup_by_name() - * for more details. - * - * Throws: GException on failure. - */ - extern(C) GList* function(GResolver* resolver, GAsyncResult* result, GError** err) lookupByNameWithFlagsFinish; - /** - * - * Params: - * resolver = a #GResolver - * hostname = the hostname to look up - * flags = extra #GResolverNameLookupFlags for the lookup - * cancellable = a #GCancellable, or %NULL - * Returns: a non-empty #GList - * of #GInetAddress, or %NULL on error. You - * must unref each of the addresses and free the list when you are - * done with it. (You can use g_resolver_free_addresses() to do this.) - * - * Throws: GException on failure. - */ - extern(C) GList* function(GResolver* resolver, const(char)* hostname, GResolverNameLookupFlags flags, GCancellable* cancellable, GError** err) lookupByNameWithFlags; -} - -struct GResolverPrivate; - -struct GResource; - -struct GSeekable; - -/** - * Provides an interface for implementing seekable functionality on I/O Streams. - */ -struct GSeekableIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * seekable = a #GSeekable. - * Returns: the offset from the beginning of the buffer. - */ - extern(C) long function(GSeekable* seekable) tell; - /** - * - * Params: - * seekable = a #GSeekable. - * Returns: %TRUE if @seekable can be seeked. %FALSE otherwise. - */ - extern(C) int function(GSeekable* seekable) canSeek; - /** - * - * Params: - * seekable = a #GSeekable. - * offset = a #goffset. - * type = a #GSeekType. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: %TRUE if successful. If an error - * has occurred, this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - extern(C) int function(GSeekable* seekable, long offset, GSeekType type, GCancellable* cancellable, GError** err) seek; - /** - * - * Params: - * seekable = a #GSeekable. - * Returns: %TRUE if the stream can be truncated, %FALSE otherwise. - */ - extern(C) int function(GSeekable* seekable) canTruncate; - /** - * - * Params: - * seekable = a #GSeekable. - * offset = new length for @seekable, in bytes. - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: %TRUE if successful. If an error - * has occurred, this function will return %FALSE and set @error - * appropriately if present. - * - * Throws: GException on failure. - */ - extern(C) int function(GSeekable* seekable, long offset, GCancellable* cancellable, GError** err) truncateFn; -} - -struct GSettings -{ - GObject parentInstance; - GSettingsPrivate* priv; -} - -struct GSettingsBackend -{ - GObject parentInstance; - GSettingsBackendPrivate* priv; -} - -/** - * Class structure for #GSettingsBackend. - */ -struct GSettingsBackendClass -{ - GObjectClass parentClass; - /** */ - extern(C) GVariant* function(GSettingsBackend* backend, const(char)* key, GVariantType* expectedType, int defaultValue) read; - /** */ - extern(C) int function(GSettingsBackend* backend, const(char)* key) getWritable; - /** */ - extern(C) int function(GSettingsBackend* backend, const(char)* key, GVariant* value, void* originTag) write; - /** */ - extern(C) int function(GSettingsBackend* backend, GTree* tree, void* originTag) writeTree; - /** */ - extern(C) void function(GSettingsBackend* backend, const(char)* key, void* originTag) reset; - /** */ - extern(C) void function(GSettingsBackend* backend, const(char)* name) subscribe; - /** */ - extern(C) void function(GSettingsBackend* backend, const(char)* name) unsubscribe; - /** */ - extern(C) void function(GSettingsBackend* backend) sync; - /** */ - extern(C) GPermission* function(GSettingsBackend* backend, const(char)* path) getPermission; - /** */ - extern(C) GVariant* function(GSettingsBackend* backend, const(char)* key, GVariantType* expectedType) readUserValue; - void*[23] padding; -} - -struct GSettingsBackendPrivate; - -struct GSettingsClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GSettings* settings, const(char)* key) writableChanged; - /** */ - extern(C) void function(GSettings* settings, const(char)* key) changed; - /** */ - extern(C) int function(GSettings* settings, GQuark key) writableChangeEvent; - /** */ - extern(C) int function(GSettings* settings, GQuark* keys, int nKeys) changeEvent; - void*[20] padding; -} - -struct GSettingsPrivate; - -struct GSettingsSchema; - -struct GSettingsSchemaKey; - -struct GSettingsSchemaSource; - -struct GSimpleAction; - -struct GSimpleActionGroup -{ - GObject parentInstance; - GSimpleActionGroupPrivate* priv; -} - -struct GSimpleActionGroupClass -{ - GObjectClass parentClass; - void*[12] padding; -} - -struct GSimpleActionGroupPrivate; - -struct GSimpleAsyncResult; - -struct GSimpleAsyncResultClass; - -struct GSimpleIOStream; - -struct GSimplePermission; - -struct GSimpleProxyResolver -{ - GObject parentInstance; - GSimpleProxyResolverPrivate* priv; -} - -struct GSimpleProxyResolverClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GSimpleProxyResolverPrivate; - -struct GSocket -{ - GObject parentInstance; - GSocketPrivate* priv; -} - -struct GSocketAddress -{ - GObject parentInstance; -} - -struct GSocketAddressClass -{ - GObjectClass parentClass; - /** - * - * Params: - * address = a #GSocketAddress - * Returns: the socket family type of @address - */ - extern(C) GSocketFamily function(GSocketAddress* address) getFamily; - /** - * - * Params: - * address = a #GSocketAddress - * Returns: the size of the native struct sockaddr that - * @address represents - */ - extern(C) ptrdiff_t function(GSocketAddress* address) getNativeSize; - /** - * - * Params: - * address = a #GSocketAddress - * dest = a pointer to a memory location that will contain the native - * struct sockaddr - * destlen = the size of @dest. Must be at least as large as - * g_socket_address_get_native_size() - * Returns: %TRUE if @dest was filled in, %FALSE on error - * - * Throws: GException on failure. - */ - extern(C) int function(GSocketAddress* address, void* dest, size_t destlen, GError** err) toNative; -} - -struct GSocketAddressEnumerator -{ - GObject parentInstance; -} - -/** - * Class structure for #GSocketAddressEnumerator. - */ -struct GSocketAddressEnumeratorClass -{ - GObjectClass parentClass; - /** - * - * Params: - * enumerator = a #GSocketAddressEnumerator - * cancellable = optional #GCancellable object, %NULL to ignore. - * Returns: a #GSocketAddress (owned by the caller), or %NULL on - * error (in which case *@error will be set) or if there are no - * more addresses. - * - * Throws: GException on failure. - */ - extern(C) GSocketAddress* function(GSocketAddressEnumerator* enumerator, GCancellable* cancellable, GError** err) next; - /** */ - extern(C) void function(GSocketAddressEnumerator* enumerator, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) nextAsync; - /** - * - * Params: - * enumerator = a #GSocketAddressEnumerator - * result = a #GAsyncResult - * Returns: a #GSocketAddress (owned by the caller), or %NULL on - * error (in which case *@error will be set) or if there are no - * more addresses. - * - * Throws: GException on failure. - */ - extern(C) GSocketAddress* function(GSocketAddressEnumerator* enumerator, GAsyncResult* result, GError** err) nextFinish; -} - -struct GSocketClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; - /** */ - extern(C) void function() GReserved7; - /** */ - extern(C) void function() GReserved8; - /** */ - extern(C) void function() GReserved9; - /** */ - extern(C) void function() GReserved10; -} - -struct GSocketClient -{ - GObject parentInstance; - GSocketClientPrivate* priv; -} - -struct GSocketClientClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GSocketClient* client, GSocketClientEvent event, GSocketConnectable* connectable, GIOStream* connection) event; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; -} - -struct GSocketClientPrivate; - -struct GSocketConnectable; - -/** - * Provides an interface for returning a #GSocketAddressEnumerator - * and #GProxyAddressEnumerator - */ -struct GSocketConnectableIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * connectable = a #GSocketConnectable - * Returns: a new #GSocketAddressEnumerator. - */ - extern(C) GSocketAddressEnumerator* function(GSocketConnectable* connectable) enumerate; - /** - * - * Params: - * connectable = a #GSocketConnectable - * Returns: a new #GSocketAddressEnumerator. - */ - extern(C) GSocketAddressEnumerator* function(GSocketConnectable* connectable) proxyEnumerate; - /** - * - * Params: - * connectable = a #GSocketConnectable - * Returns: the formatted string - */ - extern(C) char* function(GSocketConnectable* connectable) toString; -} - -struct GSocketConnection -{ - GIOStream parentInstance; - GSocketConnectionPrivate* priv; -} - -struct GSocketConnectionClass -{ - GIOStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; -} - -struct GSocketConnectionPrivate; - -struct GSocketControlMessage -{ - GObject parentInstance; - GSocketControlMessagePrivate* priv; -} - -/** - * Class structure for #GSocketControlMessage. - */ -struct GSocketControlMessageClass -{ - GObjectClass parentClass; - /** - * - * Params: - * message = a #GSocketControlMessage - * Returns: The number of bytes required. - */ - extern(C) size_t function(GSocketControlMessage* message) getSize; - /** - * - * Params: - * message = a #GSocketControlMessage - * Returns: an integer describing the level - */ - extern(C) int function(GSocketControlMessage* message) getLevel; - /** */ - extern(C) int function(GSocketControlMessage* message) getType; - /** */ - extern(C) void function(GSocketControlMessage* message, void* data) serialize; - /** */ - extern(C) GSocketControlMessage* function(int level, int type, size_t size, void* data) deserialize; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GSocketControlMessagePrivate; - -struct GSocketListener -{ - GObject parentInstance; - GSocketListenerPrivate* priv; -} - -/** - * Class structure for #GSocketListener. - */ -struct GSocketListenerClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GSocketListener* listener) changed; - /** */ - extern(C) void function(GSocketListener* listener, GSocketListenerEvent event, GSocket* socket) event; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; -} - -struct GSocketListenerPrivate; - -struct GSocketPrivate; - -struct GSocketService -{ - GSocketListener parentInstance; - GSocketServicePrivate* priv; -} - -/** - * Class structure for #GSocketService. - */ -struct GSocketServiceClass -{ - GSocketListenerClass parentClass; - /** */ - extern(C) int function(GSocketService* service, GSocketConnection* connection, GObject* sourceObject) incoming; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; -} - -struct GSocketServicePrivate; - -struct GSrvTarget; - -struct GStaticResource -{ - ubyte* data; - size_t dataLen; - GResource* resource; - GStaticResource* next; - void* padding; -} - -struct GSubprocess; - -struct GSubprocessLauncher; - -struct GTask; - -struct GTaskClass; - -struct GTcpConnection -{ - GSocketConnection parentInstance; - GTcpConnectionPrivate* priv; -} - -struct GTcpConnectionClass -{ - GSocketConnectionClass parentClass; -} - -struct GTcpConnectionPrivate; - -struct GTcpWrapperConnection -{ - GTcpConnection parentInstance; - GTcpWrapperConnectionPrivate* priv; -} - -struct GTcpWrapperConnectionClass -{ - GTcpConnectionClass parentClass; -} - -struct GTcpWrapperConnectionPrivate; - -struct GTestDBus; - -struct GThemedIcon; - -struct GThemedIconClass; - -struct GThreadedSocketService -{ - GSocketService parentInstance; - GThreadedSocketServicePrivate* priv; -} - -struct GThreadedSocketServiceClass -{ - GSocketServiceClass parentClass; - /** */ - extern(C) int function(GThreadedSocketService* service, GSocketConnection* connection, GObject* sourceObject) run; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GThreadedSocketServicePrivate; - -struct GTlsBackend; - -/** - * Provides an interface for describing TLS-related types. - * - * Since: 2.28 - */ -struct GTlsBackendInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** - * - * Params: - * backend = the #GTlsBackend - * Returns: whether or not TLS is supported - */ - extern(C) int function(GTlsBackend* backend) supportsTls; - /** */ - extern(C) GType function() getCertificateType; - /** */ - extern(C) GType function() getClientConnectionType; - /** */ - extern(C) GType function() getServerConnectionType; - /** */ - extern(C) GType function() getFileDatabaseType; - /** - * - * Params: - * backend = the #GTlsBackend - * Returns: the default database, which should be - * unreffed when done. - */ - extern(C) GTlsDatabase* function(GTlsBackend* backend) getDefaultDatabase; - /** - * - * Params: - * backend = the #GTlsBackend - * Returns: whether DTLS is supported - */ - extern(C) int function(GTlsBackend* backend) supportsDtls; - /** */ - extern(C) GType function() getDtlsClientConnectionType; - /** */ - extern(C) GType function() getDtlsServerConnectionType; -} - -struct GTlsCertificate -{ - GObject parentInstance; - GTlsCertificatePrivate* priv; -} - -struct GTlsCertificateClass -{ - GObjectClass parentClass; - /** - * - * Params: - * cert = a #GTlsCertificate - * identity = the expected peer identity - * trustedCa = the certificate of a trusted authority - * Returns: the appropriate #GTlsCertificateFlags - */ - extern(C) GTlsCertificateFlags function(GTlsCertificate* cert, GSocketConnectable* identity, GTlsCertificate* trustedCa) verify; - void*[8] padding; -} - -struct GTlsCertificatePrivate; - -struct GTlsClientConnection; - -/** - * vtable for a #GTlsClientConnection implementation. - * - * Since: 2.26 - */ -struct GTlsClientConnectionInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) void function(GTlsClientConnection* conn, GTlsClientConnection* source) copySessionState; -} - -struct GTlsConnection -{ - GIOStream parentInstance; - GTlsConnectionPrivate* priv; -} - -struct GTlsConnectionClass -{ - GIOStreamClass parentClass; - /** */ - extern(C) int function(GTlsConnection* connection, GTlsCertificate* peerCert, GTlsCertificateFlags errors) acceptCertificate; - /** - * - * Params: - * conn = a #GTlsConnection - * cancellable = a #GCancellable, or %NULL - * Returns: success or failure - * - * Throws: GException on failure. - */ - extern(C) int function(GTlsConnection* conn, GCancellable* cancellable, GError** err) handshake; - /** */ - extern(C) void function(GTlsConnection* conn, int ioPriority, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) handshakeAsync; - /** - * - * Params: - * conn = a #GTlsConnection - * result = a #GAsyncResult. - * Returns: %TRUE on success, %FALSE on failure, in which - * case @error will be set. - * - * Throws: GException on failure. - */ - extern(C) int function(GTlsConnection* conn, GAsyncResult* result, GError** err) handshakeFinish; - /** */ - extern(C) int function(GTlsConnection* conn, GTlsChannelBindingType type, GByteArray* data, GError** err) getBindingData; - void*[7] padding; -} - -struct GTlsConnectionPrivate; - -struct GTlsDatabase -{ - GObject parentInstance; - GTlsDatabasePrivate* priv; -} - -/** - * The class for #GTlsDatabase. Derived classes should implement the various - * virtual methods. _async and _finish methods have a default - * implementation that runs the corresponding sync method in a thread. - * - * Since: 2.30 - */ -struct GTlsDatabaseClass -{ - GObjectClass parentClass; - /** - * - * Params: - * self = a #GTlsDatabase - * chain = a #GTlsCertificate chain - * purpose = the purpose that this certificate chain will be used for. - * identity = the expected peer identity - * interaction = used to interact with the user if necessary - * flags = additional verify flags - * cancellable = a #GCancellable, or %NULL - * Returns: the appropriate #GTlsCertificateFlags which represents the - * result of verification. - * - * Throws: GException on failure. - */ - extern(C) GTlsCertificateFlags function(GTlsDatabase* self, GTlsCertificate* chain, const(char)* purpose, GSocketConnectable* identity, GTlsInteraction* interaction, GTlsDatabaseVerifyFlags flags, GCancellable* cancellable, GError** err) verifyChain; - /** */ - extern(C) void function(GTlsDatabase* self, GTlsCertificate* chain, const(char)* purpose, GSocketConnectable* identity, GTlsInteraction* interaction, GTlsDatabaseVerifyFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) verifyChainAsync; - /** - * - * Params: - * self = a #GTlsDatabase - * result = a #GAsyncResult. - * Returns: the appropriate #GTlsCertificateFlags which represents the - * result of verification. - * - * Throws: GException on failure. - */ - extern(C) GTlsCertificateFlags function(GTlsDatabase* self, GAsyncResult* result, GError** err) verifyChainFinish; - /** - * - * Params: - * self = a #GTlsDatabase - * certificate = certificate for which to create a handle. - * Returns: a newly allocated string containing the - * handle. - */ - extern(C) char* function(GTlsDatabase* self, GTlsCertificate* certificate) createCertificateHandle; - /** - * - * Params: - * self = a #GTlsDatabase - * handle = a certificate handle - * interaction = used to interact with the user if necessary - * flags = Flags which affect the lookup. - * cancellable = a #GCancellable, or %NULL - * Returns: a newly allocated - * #GTlsCertificate, or %NULL. Use g_object_unref() to release the certificate. - * - * Throws: GException on failure. - */ - extern(C) GTlsCertificate* function(GTlsDatabase* self, const(char)* handle, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GError** err) lookupCertificateForHandle; - /** */ - extern(C) void function(GTlsDatabase* self, const(char)* handle, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupCertificateForHandleAsync; - /** - * - * Params: - * self = a #GTlsDatabase - * result = a #GAsyncResult. - * Returns: a newly allocated #GTlsCertificate object. - * Use g_object_unref() to release the certificate. - * - * Throws: GException on failure. - */ - extern(C) GTlsCertificate* function(GTlsDatabase* self, GAsyncResult* result, GError** err) lookupCertificateForHandleFinish; - /** - * - * Params: - * self = a #GTlsDatabase - * certificate = a #GTlsCertificate - * interaction = used to interact with the user if necessary - * flags = flags which affect the lookup operation - * cancellable = a #GCancellable, or %NULL - * Returns: a newly allocated issuer #GTlsCertificate, - * or %NULL. Use g_object_unref() to release the certificate. - * - * Throws: GException on failure. - */ - extern(C) GTlsCertificate* function(GTlsDatabase* self, GTlsCertificate* certificate, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GError** err) lookupCertificateIssuer; - /** */ - extern(C) void function(GTlsDatabase* self, GTlsCertificate* certificate, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupCertificateIssuerAsync; - /** - * - * Params: - * self = a #GTlsDatabase - * result = a #GAsyncResult. - * Returns: a newly allocated issuer #GTlsCertificate, - * or %NULL. Use g_object_unref() to release the certificate. - * - * Throws: GException on failure. - */ - extern(C) GTlsCertificate* function(GTlsDatabase* self, GAsyncResult* result, GError** err) lookupCertificateIssuerFinish; - /** - * - * Params: - * self = a #GTlsDatabase - * issuerRawDn = a #GByteArray which holds the DER encoded issuer DN. - * interaction = used to interact with the user if necessary - * flags = Flags which affect the lookup operation. - * cancellable = a #GCancellable, or %NULL - * Returns: a newly allocated list of #GTlsCertificate - * objects. Use g_object_unref() on each certificate, and g_list_free() on the release the list. - * - * Throws: GException on failure. - */ - extern(C) GList* function(GTlsDatabase* self, GByteArray* issuerRawDn, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GError** err) lookupCertificatesIssuedBy; - /** */ - extern(C) void function(GTlsDatabase* self, GByteArray* issuerRawDn, GTlsInteraction* interaction, GTlsDatabaseLookupFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) lookupCertificatesIssuedByAsync; - /** - * - * Params: - * self = a #GTlsDatabase - * result = a #GAsyncResult. - * Returns: a newly allocated list of #GTlsCertificate - * objects. Use g_object_unref() on each certificate, and g_list_free() on the release the list. - * - * Throws: GException on failure. - */ - extern(C) GList* function(GTlsDatabase* self, GAsyncResult* result, GError** err) lookupCertificatesIssuedByFinish; - void*[16] padding; -} - -struct GTlsDatabasePrivate; - -struct GTlsFileDatabase; - -/** - * Provides an interface for #GTlsFileDatabase implementations. - */ -struct GTlsFileDatabaseInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - void*[8] padding; -} - -struct GTlsInteraction -{ - GObject parentInstance; - GTlsInteractionPrivate* priv; -} - -/** - * The class for #GTlsInteraction. Derived classes implement the various - * virtual interaction methods to handle TLS interactions. - * - * Derived classes can choose to implement whichever interactions methods they'd - * like to support by overriding those virtual methods in their class - * initialization function. If a derived class implements an async method, - * it must also implement the corresponding finish method. - * - * The synchronous interaction methods should implement to display modal dialogs, - * and the asynchronous methods to display modeless dialogs. - * - * If the user cancels an interaction, then the result should be - * %G_TLS_INTERACTION_FAILED and the error should be set with a domain of - * %G_IO_ERROR and code of %G_IO_ERROR_CANCELLED. - * - * Since: 2.30 - */ -struct GTlsInteractionClass -{ - GObjectClass parentClass; - /** - * - * Params: - * interaction = a #GTlsInteraction object - * password = a #GTlsPassword object - * cancellable = an optional #GCancellable cancellation object - * Returns: The status of the ask password interaction. - * - * Throws: GException on failure. - */ - extern(C) GTlsInteractionResult function(GTlsInteraction* interaction, GTlsPassword* password, GCancellable* cancellable, GError** err) askPassword; - /** */ - extern(C) void function(GTlsInteraction* interaction, GTlsPassword* password, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) askPasswordAsync; - /** - * - * Params: - * interaction = a #GTlsInteraction object - * result = the result passed to the callback - * Returns: The status of the ask password interaction. - * - * Throws: GException on failure. - */ - extern(C) GTlsInteractionResult function(GTlsInteraction* interaction, GAsyncResult* result, GError** err) askPasswordFinish; - /** - * - * Params: - * interaction = a #GTlsInteraction object - * connection = a #GTlsConnection object - * flags = flags providing more information about the request - * cancellable = an optional #GCancellable cancellation object - * Returns: The status of the request certificate interaction. - * - * Throws: GException on failure. - */ - extern(C) GTlsInteractionResult function(GTlsInteraction* interaction, GTlsConnection* connection, GTlsCertificateRequestFlags flags, GCancellable* cancellable, GError** err) requestCertificate; - /** */ - extern(C) void function(GTlsInteraction* interaction, GTlsConnection* connection, GTlsCertificateRequestFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) requestCertificateAsync; - /** - * - * Params: - * interaction = a #GTlsInteraction object - * result = the result passed to the callback - * Returns: The status of the request certificate interaction. - * - * Throws: GException on failure. - */ - extern(C) GTlsInteractionResult function(GTlsInteraction* interaction, GAsyncResult* result, GError** err) requestCertificateFinish; - void*[21] padding; -} - -struct GTlsInteractionPrivate; - -struct GTlsPassword -{ - GObject parentInstance; - GTlsPasswordPrivate* priv; -} - -/** - * Class structure for #GTlsPassword. - */ -struct GTlsPasswordClass -{ - GObjectClass parentClass; - /** - * - * Params: - * password = a #GTlsPassword object - * length = location to place the length of the password. - * Returns: The password value (owned by the password object). - */ - extern(C) char* function(GTlsPassword* password, size_t* length) getValue; - /** */ - extern(C) void function(GTlsPassword* password, char* value, ptrdiff_t length, GDestroyNotify destroy) setValue; - /** */ - extern(C) const(char)* function(GTlsPassword* password) getDefaultWarning; - void*[4] padding; -} - -struct GTlsPasswordPrivate; - -struct GTlsServerConnection; - -/** - * vtable for a #GTlsServerConnection implementation. - * - * Since: 2.26 - */ -struct GTlsServerConnectionInterface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; -} - -struct GUnixConnection -{ - GSocketConnection parentInstance; - GUnixConnectionPrivate* priv; -} - -struct GUnixConnectionClass -{ - GSocketConnectionClass parentClass; -} - -struct GUnixConnectionPrivate; - -struct GUnixCredentialsMessage -{ - GSocketControlMessage parentInstance; - GUnixCredentialsMessagePrivate* priv; -} - -/** - * Class structure for #GUnixCredentialsMessage. - * - * Since: 2.26 - */ -struct GUnixCredentialsMessageClass -{ - GSocketControlMessageClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; -} - -struct GUnixCredentialsMessagePrivate; - -struct GUnixFDList -{ - GObject parentInstance; - GUnixFDListPrivate* priv; -} - -struct GUnixFDListClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GUnixFDListPrivate; - -struct GUnixFDMessage -{ - GSocketControlMessage parentInstance; - GUnixFDMessagePrivate* priv; -} - -struct GUnixFDMessageClass -{ - GSocketControlMessageClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; -} - -struct GUnixFDMessagePrivate; - -struct GUnixInputStream -{ - GInputStream parentInstance; - GUnixInputStreamPrivate* priv; -} - -struct GUnixInputStreamClass -{ - GInputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GUnixInputStreamPrivate; - -/** - * Defines a Unix mount entry (e.g. /media/cdrom). - * This corresponds roughly to a mtab entry. - */ -struct GUnixMountEntry; - -struct GUnixMountMonitor; - -struct GUnixMountMonitorClass; - -struct GUnixMountPoint; - -struct GUnixOutputStream -{ - GOutputStream parentInstance; - GUnixOutputStreamPrivate* priv; -} - -struct GUnixOutputStreamClass -{ - GOutputStreamClass parentClass; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; -} - -struct GUnixOutputStreamPrivate; - -struct GUnixSocketAddress -{ - GSocketAddress parentInstance; - GUnixSocketAddressPrivate* priv; -} - -struct GUnixSocketAddressClass -{ - GSocketAddressClass parentClass; -} - -struct GUnixSocketAddressPrivate; - -struct GVfs -{ - GObject parentInstance; -} - -struct GVfsClass -{ - GObjectClass parentClass; - /** - * - * Params: - * vfs = a #GVfs. - * Returns: %TRUE if construction of the @vfs was successful - * and it is now active. - */ - extern(C) int function(GVfs* vfs) isActive; - /** - * - * Params: - * vfs = a #GVfs. - * path = a string containing a VFS path. - * Returns: a #GFile. - * Free the returned object with g_object_unref(). - */ - extern(C) GFile* function(GVfs* vfs, const(char)* path) getFileForPath; - /** - * - * Params: - * vfs = a#GVfs. - * uri = a string containing a URI - * Returns: a #GFile. - * Free the returned object with g_object_unref(). - */ - extern(C) GFile* function(GVfs* vfs, const(char)* uri) getFileForUri; - /** - * - * Params: - * vfs = a #GVfs. - * Returns: a %NULL-terminated array of strings. - * The returned array belongs to GIO and must - * not be freed or modified. - */ - extern(C) char** function(GVfs* vfs) getSupportedUriSchemes; - /** - * - * Params: - * vfs = a #GVfs. - * parseName = a string to be parsed by the VFS module. - * Returns: a #GFile for the given @parse_name. - * Free the returned object with g_object_unref(). - */ - extern(C) GFile* function(GVfs* vfs, const(char)* parseName) parseName; - /** */ - extern(C) void function(GVfs* vfs, const(char)* filename, ulong device, GFileAttributeMatcher* attributeMatcher, GFileInfo* info, GCancellable* cancellable, void** extraData, GDestroyNotify* freeExtraData) localFileAddInfo; - /** */ - extern(C) void function(GVfs* vfs, GFileAttributeInfoList* list) addWritableNamespaces; - /** */ - extern(C) int function(GVfs* vfs, const(char)* filename, GFileInfo* info, GFileQueryInfoFlags flags, GCancellable* cancellable, GError** err) localFileSetAttributes; - /** */ - extern(C) void function(GVfs* vfs, const(char)* filename) localFileRemoved; - /** */ - extern(C) void function(GVfs* vfs, const(char)* source, const(char)* dest) localFileMoved; - /** */ - extern(C) GIcon* function(GVfs* vfs, GVariant* value) deserializeIcon; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; -} - -struct GVolume; - -/** - * Interface for implementing operations for mountable volumes. - */ -struct GVolumeIface -{ - /** - * The parent interface. - */ - GTypeInterface gIface; - /** */ - extern(C) void function(GVolume* volume) changed; - /** */ - extern(C) void function(GVolume* volume) removed; - /** - * - * Params: - * volume = a #GVolume - * Returns: the name for the given @volume. The returned string should - * be freed with g_free() when no longer needed. - */ - extern(C) char* function(GVolume* volume) getName; - /** - * - * Params: - * volume = a #GVolume - * Returns: a #GIcon. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - */ - extern(C) GIcon* function(GVolume* volume) getIcon; - /** - * - * Params: - * volume = a #GVolume - * Returns: the UUID for @volume or %NULL if no UUID - * can be computed. - * The returned string should be freed with g_free() - * when no longer needed. - */ - extern(C) char* function(GVolume* volume) getUuid; - /** - * - * Params: - * volume = a #GVolume - * Returns: a #GDrive or %NULL if @volume is not - * associated with a drive. The returned object should be unreffed - * with g_object_unref() when no longer needed. - */ - extern(C) GDrive* function(GVolume* volume) getDrive; - /** - * - * Params: - * volume = a #GVolume - * Returns: a #GMount or %NULL if @volume isn't mounted. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - */ - extern(C) GMount* function(GVolume* volume) getMount; - /** - * - * Params: - * volume = a #GVolume - * Returns: %TRUE if the @volume can be mounted. %FALSE otherwise - */ - extern(C) int function(GVolume* volume) canMount; - /** - * - * Params: - * volume = a #GVolume - * Returns: %TRUE if the @volume can be ejected. %FALSE otherwise - */ - extern(C) int function(GVolume* volume) canEject; - /** */ - extern(C) void function(GVolume* volume, GMountMountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) mountFn; - /** - * - * Params: - * volume = a #GVolume - * result = a #GAsyncResult - * Returns: %TRUE, %FALSE if operation failed - * - * Throws: GException on failure. - */ - extern(C) int function(GVolume* volume, GAsyncResult* result, GError** err) mountFinish; - /** */ - extern(C) void function(GVolume* volume, GMountUnmountFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) eject; - /** - * - * Params: - * volume = pointer to a #GVolume - * result = a #GAsyncResult - * Returns: %TRUE, %FALSE if operation failed - * - * Throws: GException on failure. - */ - extern(C) int function(GVolume* volume, GAsyncResult* result, GError** err) ejectFinish; - /** - * - * Params: - * volume = a #GVolume - * kind = the kind of identifier to return - * Returns: a newly allocated string containing the - * requested identifier, or %NULL if the #GVolume - * doesn't have this kind of identifier - */ - extern(C) char* function(GVolume* volume, const(char)* kind) getIdentifier; - /** - * - * Params: - * volume = a #GVolume - * Returns: a %NULL-terminated array - * of strings containing kinds of identifiers. Use g_strfreev() to free. - */ - extern(C) char** function(GVolume* volume) enumerateIdentifiers; - /** - * - * Params: - * volume = a #GVolume - * Returns: %TRUE if the volume should be automatically mounted - */ - extern(C) int function(GVolume* volume) shouldAutomount; - /** - * - * Params: - * volume = a #GVolume - * Returns: the activation root of @volume - * or %NULL. Use g_object_unref() to free. - */ - extern(C) GFile* function(GVolume* volume) getActivationRoot; - /** */ - extern(C) void function(GVolume* volume, GMountUnmountFlags flags, GMountOperation* mountOperation, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) ejectWithOperation; - /** - * - * Params: - * volume = a #GVolume - * result = a #GAsyncResult - * Returns: %TRUE if the volume was successfully ejected. %FALSE otherwise - * - * Throws: GException on failure. - */ - extern(C) int function(GVolume* volume, GAsyncResult* result, GError** err) ejectWithOperationFinish; - /** - * - * Params: - * volume = a #GVolume - * Returns: Sorting key for @volume or %NULL if no such key is available - */ - extern(C) const(char)* function(GVolume* volume) getSortKey; - /** - * - * Params: - * volume = a #GVolume - * Returns: a #GIcon. - * The returned object should be unreffed with g_object_unref() - * when no longer needed. - */ - extern(C) GIcon* function(GVolume* volume) getSymbolicIcon; -} - -struct GVolumeMonitor -{ - GObject parentInstance; - void* priv; -} - -struct GVolumeMonitorClass -{ - GObjectClass parentClass; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GVolume* volume) volumeAdded; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GVolume* volume) volumeRemoved; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GVolume* volume) volumeChanged; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GMount* mount) mountAdded; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GMount* mount) mountRemoved; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GMount* mount) mountPreUnmount; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GMount* mount) mountChanged; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GDrive* drive) driveConnected; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GDrive* drive) driveDisconnected; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GDrive* drive) driveChanged; - /** */ - extern(C) int function() isSupported; - /** - * - * Params: - * volumeMonitor = a #GVolumeMonitor. - * Returns: a #GList of connected #GDrive objects. - */ - extern(C) GList* function(GVolumeMonitor* volumeMonitor) getConnectedDrives; - /** - * - * Params: - * volumeMonitor = a #GVolumeMonitor. - * Returns: a #GList of #GVolume objects. - */ - extern(C) GList* function(GVolumeMonitor* volumeMonitor) getVolumes; - /** - * - * Params: - * volumeMonitor = a #GVolumeMonitor. - * Returns: a #GList of #GMount objects. - */ - extern(C) GList* function(GVolumeMonitor* volumeMonitor) getMounts; - /** - * - * Params: - * volumeMonitor = a #GVolumeMonitor. - * uuid = the UUID to look for - * Returns: a #GVolume or %NULL if no such volume is available. - * Free the returned object with g_object_unref(). - */ - extern(C) GVolume* function(GVolumeMonitor* volumeMonitor, const(char)* uuid) getVolumeForUuid; - /** - * - * Params: - * volumeMonitor = a #GVolumeMonitor. - * uuid = the UUID to look for - * Returns: a #GMount or %NULL if no such mount is available. - * Free the returned object with g_object_unref(). - */ - extern(C) GMount* function(GVolumeMonitor* volumeMonitor, const(char)* uuid) getMountForUuid; - /** */ - extern(C) GVolume* function(GMount* mount, GVolumeMonitor* volumeMonitor) adoptOrphanMount; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GDrive* drive) driveEjectButton; - /** */ - extern(C) void function(GVolumeMonitor* volumeMonitor, GDrive* drive) driveStopButton; - /** */ - extern(C) void function() GReserved1; - /** */ - extern(C) void function() GReserved2; - /** */ - extern(C) void function() GReserved3; - /** */ - extern(C) void function() GReserved4; - /** */ - extern(C) void function() GReserved5; - /** */ - extern(C) void function() GReserved6; -} - -struct GZlibCompressor; - -struct GZlibCompressorClass -{ - GObjectClass parentClass; -} - -struct GZlibDecompressor; - -struct GZlibDecompressorClass -{ - GObjectClass parentClass; -} - -/** - * Type definition for a function that will be called back when an asynchronous - * operation within GIO has been completed. #GAsyncReadyCallback - * callbacks from #GTask are guaranteed to be invoked in a later - * iteration of the - * [thread-default main context][g-main-context-push-thread-default] - * where the #GTask was created. All other users of - * #GAsyncReadyCallback must likewise call it asynchronously in a - * later iteration of the main context. - * - * Params: - * sourceObject = the object the asynchronous operation was started with. - * res = a #GAsyncResult. - * userData = user data passed to the callback. - */ -public alias extern(C) void function(GObject* sourceObject, GAsyncResult* res, void* userData) GAsyncReadyCallback; - -/** - * Invoked when a connection to a message bus has been obtained. - * - * Params: - * connection = The #GDBusConnection to a message bus. - * name = The name that is requested to be owned. - * userData = User data passed to g_bus_own_name(). - * - * Since: 2.26 - */ -public alias extern(C) void function(GDBusConnection* connection, const(char)* name, void* userData) GBusAcquiredCallback; - -/** - * Invoked when the name is acquired. - * - * Params: - * connection = The #GDBusConnection on which to acquired the name. - * name = The name being owned. - * userData = User data passed to g_bus_own_name() or g_bus_own_name_on_connection(). - * - * Since: 2.26 - */ -public alias extern(C) void function(GDBusConnection* connection, const(char)* name, void* userData) GBusNameAcquiredCallback; - -/** - * Invoked when the name being watched is known to have to have an owner. - * - * Params: - * connection = The #GDBusConnection the name is being watched on. - * name = The name being watched. - * nameOwner = Unique name of the owner of the name being watched. - * userData = User data passed to g_bus_watch_name(). - * - * Since: 2.26 - */ -public alias extern(C) void function(GDBusConnection* connection, const(char)* name, const(char)* nameOwner, void* userData) GBusNameAppearedCallback; - -/** - * Invoked when the name is lost or @connection has been closed. - * - * Params: - * connection = The #GDBusConnection on which to acquire the name or %NULL if - * the connection was disconnected. - * name = The name being owned. - * userData = User data passed to g_bus_own_name() or g_bus_own_name_on_connection(). - * - * Since: 2.26 - */ -public alias extern(C) void function(GDBusConnection* connection, const(char)* name, void* userData) GBusNameLostCallback; - -/** - * Invoked when the name being watched is known not to have to have an owner. - * - * This is also invoked when the #GDBusConnection on which the watch was - * established has been closed. In that case, @connection will be - * %NULL. - * - * Params: - * connection = The #GDBusConnection the name is being watched on, or - * %NULL. - * name = The name being watched. - * userData = User data passed to g_bus_watch_name(). - * - * Since: 2.26 - */ -public alias extern(C) void function(GDBusConnection* connection, const(char)* name, void* userData) GBusNameVanishedCallback; - -/** - * This is the function type of the callback used for the #GSource - * returned by g_cancellable_source_new(). - * - * Params: - * cancellable = the #GCancellable - * userData = data passed in by the user. - * - * Returns: it should return %FALSE if the source should be removed. - * - * Since: 2.28 - */ -public alias extern(C) int function(GCancellable* cancellable, void* userData) GCancellableSourceFunc; - -/** - * The type of the @get_property function in #GDBusInterfaceVTable. - * - * Params: - * connection = A #GDBusConnection. - * sender = The unique bus name of the remote caller. - * objectPath = The object path that the method was invoked on. - * interfaceName = The D-Bus interface name for the property. - * propertyName = The name of the property to get the value of. - * error = Return location for error. - * userData = The @user_data #gpointer passed to g_dbus_connection_register_object(). - * - * Returns: A #GVariant with the value for @property_name or %NULL if - * @error is set. If the returned #GVariant is floating, it is - * consumed - otherwise its reference count is decreased by one. - * - * Since: 2.26 - */ -public alias extern(C) GVariant* function(GDBusConnection* connection, const(char)* sender, const(char)* objectPath, const(char)* interfaceName, const(char)* propertyName, GError** error, void* userData) GDBusInterfaceGetPropertyFunc; - -/** - * The type of the @method_call function in #GDBusInterfaceVTable. - * - * Params: - * connection = A #GDBusConnection. - * sender = The unique bus name of the remote caller. - * objectPath = The object path that the method was invoked on. - * interfaceName = The D-Bus interface name the method was invoked on. - * methodName = The name of the method that was invoked. - * parameters = A #GVariant tuple with parameters. - * invocation = A #GDBusMethodInvocation object that must be used to return a value or error. - * userData = The @user_data #gpointer passed to g_dbus_connection_register_object(). - * - * Since: 2.26 - */ -public alias extern(C) void function(GDBusConnection* connection, const(char)* sender, const(char)* objectPath, const(char)* interfaceName, const(char)* methodName, GVariant* parameters, GDBusMethodInvocation* invocation, void* userData) GDBusInterfaceMethodCallFunc; - -/** - * The type of the @set_property function in #GDBusInterfaceVTable. - * - * Params: - * connection = A #GDBusConnection. - * sender = The unique bus name of the remote caller. - * objectPath = The object path that the method was invoked on. - * interfaceName = The D-Bus interface name for the property. - * propertyName = The name of the property to get the value of. - * value = The value to set the property to. - * error = Return location for error. - * userData = The @user_data #gpointer passed to g_dbus_connection_register_object(). - * - * Returns: %TRUE if the property was set to @value, %FALSE if @error is set. - * - * Since: 2.26 - */ -public alias extern(C) int function(GDBusConnection* connection, const(char)* sender, const(char)* objectPath, const(char)* interfaceName, const(char)* propertyName, GVariant* value, GError** error, void* userData) GDBusInterfaceSetPropertyFunc; - -/** - * Signature for function used in g_dbus_connection_add_filter(). - * - * A filter function is passed a #GDBusMessage and expected to return - * a #GDBusMessage too. Passive filter functions that don't modify the - * message can simply return the @message object: - * |[ - * static GDBusMessage * - * passive_filter (GDBusConnection *connection - * GDBusMessage *message, - * gboolean incoming, - * gpointer user_data) - * { - * // inspect @message - * return message; - * } - * ]| - * Filter functions that wants to drop a message can simply return %NULL: - * |[ - * static GDBusMessage * - * drop_filter (GDBusConnection *connection - * GDBusMessage *message, - * gboolean incoming, - * gpointer user_data) - * { - * if (should_drop_message) - * { - * g_object_unref (message); - * message = NULL; - * } - * return message; - * } - * ]| - * Finally, a filter function may modify a message by copying it: - * |[ - * static GDBusMessage * - * modifying_filter (GDBusConnection *connection - * GDBusMessage *message, - * gboolean incoming, - * gpointer user_data) - * { - * GDBusMessage *copy; - * GError *error; - * - * error = NULL; - * copy = g_dbus_message_copy (message, &error); - * // handle @error being set - * g_object_unref (message); - * - * // modify @copy - * - * return copy; - * } - * ]| - * If the returned #GDBusMessage is different from @message and cannot - * be sent on @connection (it could use features, such as file - * descriptors, not compatible with @connection), then a warning is - * logged to standard error. Applications can - * check this ahead of time using g_dbus_message_to_blob() passing a - * #GDBusCapabilityFlags value obtained from @connection. - * - * Params: - * connection = A #GDBusConnection. - * message = A locked #GDBusMessage that the filter function takes ownership of. - * incoming = %TRUE if it is a message received from the other peer, %FALSE if it is - * a message to be sent to the other peer. - * userData = User data passed when adding the filter. - * - * Returns: A #GDBusMessage that will be freed with - * g_object_unref() or %NULL to drop the message. Passive filter - * functions can simply return the passed @message object. - * - * Since: 2.26 - */ -public alias extern(C) GDBusMessage* function(GDBusConnection* connection, GDBusMessage* message, int incoming, void* userData) GDBusMessageFilterFunction; - -/** - * Function signature for a function used to determine the #GType to - * use for an interface proxy (if @interface_name is not %NULL) or - * object proxy (if @interface_name is %NULL). - * - * This function is called in the - * [thread-default main loop][g-main-context-push-thread-default] - * that @manager was constructed in. - * - * Params: - * manager = A #GDBusObjectManagerClient. - * objectPath = The object path of the remote object. - * interfaceName = The interface name of the remote object or %NULL if a #GDBusObjectProxy #GType is requested. - * userData = User data. - * - * Returns: A #GType to use for the remote object. The returned type - * must be a #GDBusProxy or #GDBusObjectProxy -derived - * type. - * - * Since: 2.30 - */ -public alias extern(C) GType function(GDBusObjectManagerClient* manager, const(char)* objectPath, const(char)* interfaceName, void* userData) GDBusProxyTypeFunc; - -/** - * Signature for callback function used in g_dbus_connection_signal_subscribe(). - * - * Params: - * connection = A #GDBusConnection. - * senderName = The unique bus name of the sender of the signal, - * or %NULL on a peer-to-peer D-Bus connection. - * objectPath = The object path that the signal was emitted on. - * interfaceName = The name of the interface. - * signalName = The name of the signal. - * parameters = A #GVariant tuple with parameters for the signal. - * userData = User data passed when subscribing to the signal. - * - * Since: 2.26 - */ -public alias extern(C) void function(GDBusConnection* connection, const(char)* senderName, const(char)* objectPath, const(char)* interfaceName, const(char)* signalName, GVariant* parameters, void* userData) GDBusSignalCallback; - -/** - * The type of the @dispatch function in #GDBusSubtreeVTable. - * - * Subtrees are flat. @node, if non-%NULL, is always exactly one - * segment of the object path (ie: it never contains a slash). - * - * Params: - * connection = A #GDBusConnection. - * sender = The unique bus name of the remote caller. - * objectPath = The object path that was registered with g_dbus_connection_register_subtree(). - * interfaceName = The D-Bus interface name that the method call or property access is for. - * node = A node that is a child of @object_path (relative to @object_path) or %NULL for the root of the subtree. - * outUserData = Return location for user data to pass to functions in the returned #GDBusInterfaceVTable. - * userData = The @user_data #gpointer passed to g_dbus_connection_register_subtree(). - * - * Returns: A #GDBusInterfaceVTable or %NULL if you don't want to handle the methods. - * - * Since: 2.26 - */ -public alias extern(C) GDBusInterfaceVTable* function(GDBusConnection* connection, const(char)* sender, const(char)* objectPath, const(char)* interfaceName, const(char)* node, void** outUserData, void* userData) GDBusSubtreeDispatchFunc; - -/** - * The type of the @enumerate function in #GDBusSubtreeVTable. - * - * This function is called when generating introspection data and also - * when preparing to dispatch incoming messages in the event that the - * %G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES flag is not - * specified (ie: to verify that the object path is valid). - * - * Hierarchies are not supported; the items that you return should not - * contain the `/` character. - * - * The return value will be freed with g_strfreev(). - * - * Params: - * connection = A #GDBusConnection. - * sender = The unique bus name of the remote caller. - * objectPath = The object path that was registered with g_dbus_connection_register_subtree(). - * userData = The @user_data #gpointer passed to g_dbus_connection_register_subtree(). - * - * Returns: A newly allocated array of strings for node names that are children of @object_path. - * - * Since: 2.26 - */ -public alias extern(C) char** function(GDBusConnection* connection, const(char)* sender, const(char)* objectPath, void* userData) GDBusSubtreeEnumerateFunc; - -/** - * The type of the @introspect function in #GDBusSubtreeVTable. - * - * Subtrees are flat. @node, if non-%NULL, is always exactly one - * segment of the object path (ie: it never contains a slash). - * - * This function should return %NULL to indicate that there is no object - * at this node. - * - * If this function returns non-%NULL, the return value is expected to - * be a %NULL-terminated array of pointers to #GDBusInterfaceInfo - * structures describing the interfaces implemented by @node. This - * array will have g_dbus_interface_info_unref() called on each item - * before being freed with g_free(). - * - * The difference between returning %NULL and an array containing zero - * items is that the standard DBus interfaces will returned to the - * remote introspector in the empty array case, but not in the %NULL - * case. - * - * Params: - * connection = A #GDBusConnection. - * sender = The unique bus name of the remote caller. - * objectPath = The object path that was registered with g_dbus_connection_register_subtree(). - * node = A node that is a child of @object_path (relative to @object_path) or %NULL for the root of the subtree. - * userData = The @user_data #gpointer passed to g_dbus_connection_register_subtree(). - * - * Returns: A %NULL-terminated array of pointers to #GDBusInterfaceInfo, or %NULL. - * - * Since: 2.26 - */ -public alias extern(C) GDBusInterfaceInfo** function(GDBusConnection* connection, const(char)* sender, const(char)* objectPath, const(char)* node, void* userData) GDBusSubtreeIntrospectFunc; - -/** - * This is the function type of the callback used for the #GSource - * returned by g_datagram_based_create_source(). - * - * Params: - * datagramBased = the #GDatagramBased - * condition = the current condition at the source fired - * userData = data passed in by the user - * - * Returns: %G_SOURCE_REMOVE if the source should be removed, - * %G_SOURCE_CONTINUE otherwise - * - * Since: 2.48 - */ -public alias extern(C) int function(GDatagramBased* datagramBased, GIOCondition condition, void* userData) GDatagramBasedSourceFunc; - -/** - * During invocation, g_desktop_app_info_launch_uris_as_manager() may - * create one or more child processes. This callback is invoked once - * for each, providing the process ID. - * - * Params: - * appinfo = a #GDesktopAppInfo - * pid = Process identifier - * userData = User data - */ -public alias extern(C) void function(GDesktopAppInfo* appinfo, GPid pid, void* userData) GDesktopAppLaunchCallback; - -/** - * This callback type is used by g_file_measure_disk_usage() to make - * periodic progress reports when measuring the amount of disk spaced - * used by a directory. - * - * These calls are made on a best-effort basis and not all types of - * #GFile will support them. At the minimum, however, one call will - * always be made immediately. - * - * In the case that there is no support, @reporting will be set to - * %FALSE (and the other values undefined) and no further calls will be - * made. Otherwise, the @reporting will be %TRUE and the other values - * all-zeros during the first (immediate) call. In this way, you can - * know which type of progress UI to show without a delay. - * - * For g_file_measure_disk_usage() the callback is made directly. For - * g_file_measure_disk_usage_async() the callback is made via the - * default main context of the calling thread (ie: the same way that the - * final async result would be reported). - * - * @current_size is in the same units as requested by the operation (see - * %G_FILE_MEASURE_APPARENT_SIZE). - * - * The frequency of the updates is implementation defined, but is - * ideally about once every 200ms. - * - * The last progress callback may or may not be equal to the final - * result. Always check the async result to get the final value. - * - * Params: - * reporting = %TRUE if more reports will come - * currentSize = the current cumulative size measurement - * numDirs = the number of directories visited so far - * numFiles = the number of non-directory files encountered - * userData = the data passed to the original request for this callback - * - * Since: 2.38 - */ -public alias extern(C) void function(int reporting, ulong currentSize, ulong numDirs, ulong numFiles, void* userData) GFileMeasureProgressCallback; - -/** - * When doing file operations that may take a while, such as moving - * a file or copying a file, a progress callback is used to pass how - * far along that operation is to the application. - * - * Params: - * currentNumBytes = the current number of bytes in the operation. - * totalNumBytes = the total number of bytes in the operation. - * userData = user data passed to the callback. - */ -public alias extern(C) void function(long currentNumBytes, long totalNumBytes, void* userData) GFileProgressCallback; - -/** - * When loading the partial contents of a file with g_file_load_partial_contents_async(), - * it may become necessary to determine if any more data from the file should be loaded. - * A #GFileReadMoreCallback function facilitates this by returning %TRUE if more data - * should be read, or %FALSE otherwise. - * - * Params: - * fileContents = the data as currently read. - * fileSize = the size of the data currently read. - * callbackData = data passed to the callback. - * - * Returns: %TRUE if more data should be read back. %FALSE otherwise. - */ -public alias extern(C) int function(const(char)* fileContents, long fileSize, void* callbackData) GFileReadMoreCallback; - -/** - * I/O Job function. - * - * Long-running jobs should periodically check the @cancellable - * to see if they have been cancelled. - * - * Params: - * job = a #GIOSchedulerJob. - * cancellable = optional #GCancellable object, %NULL to ignore. - * userData = the data to pass to callback function - * - * Returns: %TRUE if this function should be called again to - * complete the job, %FALSE if the job is complete (or cancelled) - */ -public alias extern(C) int function(GIOSchedulerJob* job, GCancellable* cancellable, void* userData) GIOSchedulerJobFunc; - -/** - * This is the function type of the callback used for the #GSource - * returned by g_pollable_input_stream_create_source() and - * g_pollable_output_stream_create_source(). - * - * Params: - * pollableStream = the #GPollableInputStream or #GPollableOutputStream - * userData = data passed in by the user. - * - * Returns: it should return %FALSE if the source should be removed. - * - * Since: 2.28 - */ -public alias extern(C) int function(GObject* pollableStream, void* userData) GPollableSourceFunc; - -/** - * Changes the size of the memory block pointed to by @data to - * @size bytes. - * - * The function should have the same semantics as realloc(). - * - * Params: - * data = memory block to reallocate - * size = size to reallocate @data to - * - * Returns: a pointer to the reallocated memory - */ -public alias extern(C) void* function(void* data, size_t size) GReallocFunc; - -/** - * The type for the function that is used to convert from #GSettings to - * an object property. The @value is already initialized to hold values - * of the appropriate type. - * - * Params: - * value = return location for the property value - * variant = the #GVariant - * userData = user data that was specified when the binding was created - * - * Returns: %TRUE if the conversion succeeded, %FALSE in case of an error - */ -public alias extern(C) int function(GValue* value, GVariant* variant, void* userData) GSettingsBindGetMapping; - -/** - * The type for the function that is used to convert an object property - * value to a #GVariant for storing it in #GSettings. - * - * Params: - * value = a #GValue containing the property value to map - * expectedType = the #GVariantType to create - * userData = user data that was specified when the binding was created - * - * Returns: a new #GVariant holding the data from @value, - * or %NULL in case of an error - */ -public alias extern(C) GVariant* function(GValue* value, GVariantType* expectedType, void* userData) GSettingsBindSetMapping; - -/** - * The type of the function that is used to convert from a value stored - * in a #GSettings to a value that is useful to the application. - * - * If the value is successfully mapped, the result should be stored at - * @result and %TRUE returned. If mapping fails (for example, if @value - * is not in the right format) then %FALSE should be returned. - * - * If @value is %NULL then it means that the mapping function is being - * given a "last chance" to successfully return a valid value. %TRUE - * must be returned in this case. - * - * Params: - * value = the #GVariant to map, or %NULL - * result = the result of the mapping - * userData = the user data that was passed to - * g_settings_get_mapped() - * - * Returns: %TRUE if the conversion succeeded, %FALSE in case of an error - */ -public alias extern(C) int function(GVariant* value, void** result, void* userData) GSettingsGetMapping; - -/** - * Simple thread function that runs an asynchronous operation and - * checks for cancellation. - * - * Params: - * res = a #GSimpleAsyncResult. - * object = a #GObject. - * cancellable = optional #GCancellable object, %NULL to ignore. - */ -public alias extern(C) void function(GSimpleAsyncResult* res, GObject* object, GCancellable* cancellable) GSimpleAsyncThreadFunc; - -/** - * This is the function type of the callback used for the #GSource - * returned by g_socket_create_source(). - * - * Params: - * socket = the #GSocket - * condition = the current condition at the source fired. - * userData = data passed in by the user. - * - * Returns: it should return %FALSE if the source should be removed. - * - * Since: 2.22 - */ -public alias extern(C) int function(GSocket* socket, GIOCondition condition, void* userData) GSocketSourceFunc; - -/** - * The prototype for a task function to be run in a thread via - * g_task_run_in_thread() or g_task_run_in_thread_sync(). - * - * If the return-on-cancel flag is set on @task, and @cancellable gets - * cancelled, then the #GTask will be completed immediately (as though - * g_task_return_error_if_cancelled() had been called), without - * waiting for the task function to complete. However, the task - * function will continue running in its thread in the background. The - * function therefore needs to be careful about how it uses - * externally-visible state in this case. See - * g_task_set_return_on_cancel() for more details. - * - * Other than in that case, @task will be completed when the - * #GTaskThreadFunc returns, not when it calls a - * `g_task_return_` function. - * - * Params: - * task = the #GTask - * sourceObject = @task's source object - * taskData = @task's task data - * cancellable = @task's #GCancellable, or %NULL - * - * Since: 2.36 - */ -public alias extern(C) void function(GTask* task, void* sourceObject, void* taskData, GCancellable* cancellable) GTaskThreadFunc; - -/** - * This function type is used by g_vfs_register_uri_scheme() to make it - * possible for a client to associate an URI scheme to a different #GFile - * implementation. - * - * The client should return a reference to the new file that has been - * created for @uri, or %NULL to continue with the default implementation. - * - * Params: - * vfs = a #GVfs - * identifier = the identifier to look up a #GFile for. This can either - * be an URI or a parse name as returned by g_file_get_parse_name() - * userData = user data passed to the function - * - * Returns: a #GFile for @identifier. - * - * Since: 2.50 - */ -public alias extern(C) GFile* function(GVfs* vfs, const(char)* identifier, void* userData) GVfsFileLookupFunc; - -/** - * The value returned by handlers of the signals generated by - * the `gdbus-codegen` tool to indicate that a method call has been - * handled by an implementation. It is equal to %TRUE, but using - * this macro is sometimes more readable. - * - * In code that needs to be backwards-compatible with older GLib, - * use %TRUE instead, often written like this: - * - * |[ - * g_dbus_method_invocation_return_error (invocation, ...); - * return TRUE; // handled - * ]| - */ -enum DBUS_METHOD_INVOCATION_HANDLED = true; -alias G_DBUS_METHOD_INVOCATION_HANDLED = DBUS_METHOD_INVOCATION_HANDLED; - -/** - * The value returned by handlers of the signals generated by - * the `gdbus-codegen` tool to indicate that a method call has not been - * handled by an implementation. It is equal to %FALSE, but using - * this macro is sometimes more readable. - * - * In code that needs to be backwards-compatible with older GLib, - * use %FALSE instead. - */ -enum DBUS_METHOD_INVOCATION_UNHANDLED = false; -alias G_DBUS_METHOD_INVOCATION_UNHANDLED = DBUS_METHOD_INVOCATION_UNHANDLED; - -/** - * Extension point for default handler to URI association. See - * [Extending GIO][extending-gio]. - * - * Deprecated: The #GDesktopAppInfoLookup interface is deprecated and - * unused by GIO. - */ -enum DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME = "gio-desktop-app-info-lookup"; -alias G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME = DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME; - -/** - * The string used to obtain a Unix device path with g_drive_get_identifier(). - */ -enum DRIVE_IDENTIFIER_KIND_UNIX_DEVICE = "unix-device"; -alias G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE = DRIVE_IDENTIFIER_KIND_UNIX_DEVICE; - -/** - * A key in the "access" namespace for checking deletion privileges. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - * This attribute will be %TRUE if the user is able to delete the file. - */ -enum FILE_ATTRIBUTE_ACCESS_CAN_DELETE = "access::can-delete"; -alias G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE = FILE_ATTRIBUTE_ACCESS_CAN_DELETE; - -/** - * A key in the "access" namespace for getting execution privileges. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - * This attribute will be %TRUE if the user is able to execute the file. - */ -enum FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE = "access::can-execute"; -alias G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE = FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE; - -/** - * A key in the "access" namespace for getting read privileges. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - * This attribute will be %TRUE if the user is able to read the file. - */ -enum FILE_ATTRIBUTE_ACCESS_CAN_READ = "access::can-read"; -alias G_FILE_ATTRIBUTE_ACCESS_CAN_READ = FILE_ATTRIBUTE_ACCESS_CAN_READ; - -/** - * A key in the "access" namespace for checking renaming privileges. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - * This attribute will be %TRUE if the user is able to rename the file. - */ -enum FILE_ATTRIBUTE_ACCESS_CAN_RENAME = "access::can-rename"; -alias G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME = FILE_ATTRIBUTE_ACCESS_CAN_RENAME; - -/** - * A key in the "access" namespace for checking trashing privileges. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - * This attribute will be %TRUE if the user is able to move the file to - * the trash. - */ -enum FILE_ATTRIBUTE_ACCESS_CAN_TRASH = "access::can-trash"; -alias G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH = FILE_ATTRIBUTE_ACCESS_CAN_TRASH; - -/** - * A key in the "access" namespace for getting write privileges. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - * This attribute will be %TRUE if the user is able to write to the file. - */ -enum FILE_ATTRIBUTE_ACCESS_CAN_WRITE = "access::can-write"; -alias G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE = FILE_ATTRIBUTE_ACCESS_CAN_WRITE; - -/** - * A key in the "dos" namespace for checking if the file's archive flag - * is set. This attribute is %TRUE if the archive flag is set. This attribute - * is only available for DOS file systems. Corresponding #GFileAttributeType - * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_DOS_IS_ARCHIVE = "dos::is-archive"; -alias G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE = FILE_ATTRIBUTE_DOS_IS_ARCHIVE; - -/** - * A key in the "dos" namespace for checking if the file is a NTFS mount point - * (a volume mount or a junction point). - * This attribute is %TRUE if file is a reparse point of type - * [IO_REPARSE_TAG_MOUNT_POINT](https://msdn.microsoft.com/en-us/library/dd541667.aspx). - * This attribute is only available for DOS file systems. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT = "dos::is-mountpoint"; -alias G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT = FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT; - -/** - * A key in the "dos" namespace for checking if the file's backup flag - * is set. This attribute is %TRUE if the backup flag is set. This attribute - * is only available for DOS file systems. Corresponding #GFileAttributeType - * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_DOS_IS_SYSTEM = "dos::is-system"; -alias G_FILE_ATTRIBUTE_DOS_IS_SYSTEM = FILE_ATTRIBUTE_DOS_IS_SYSTEM; - -/** - * A key in the "dos" namespace for getting the file NTFS reparse tag. - * This value is 0 for files that are not reparse points. - * See the [Reparse Tags](https://msdn.microsoft.com/en-us/library/dd541667.aspx) - * page for possible reparse tag values. Corresponding #GFileAttributeType - * is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG = "dos::reparse-point-tag"; -alias G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG = FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG; - -/** - * A key in the "etag" namespace for getting the value of the file's - * entity tag. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_ETAG_VALUE = "etag::value"; -alias G_FILE_ATTRIBUTE_ETAG_VALUE = FILE_ATTRIBUTE_ETAG_VALUE; - -/** - * A key in the "filesystem" namespace for getting the number of bytes of free space left on the - * file system. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT64. - */ -enum FILE_ATTRIBUTE_FILESYSTEM_FREE = "filesystem::free"; -alias G_FILE_ATTRIBUTE_FILESYSTEM_FREE = FILE_ATTRIBUTE_FILESYSTEM_FREE; - -/** - * A key in the "filesystem" namespace for checking if the file system - * is read only. Is set to %TRUE if the file system is read only. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_FILESYSTEM_READONLY = "filesystem::readonly"; -alias G_FILE_ATTRIBUTE_FILESYSTEM_READONLY = FILE_ATTRIBUTE_FILESYSTEM_READONLY; - -/** - * A key in the "filesystem" namespace for checking if the file system - * is remote. Is set to %TRUE if the file system is remote. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_FILESYSTEM_REMOTE = "filesystem::remote"; -alias G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE = FILE_ATTRIBUTE_FILESYSTEM_REMOTE; - -/** - * A key in the "filesystem" namespace for getting the total size (in bytes) of the file system, - * used in g_file_query_filesystem_info(). Corresponding #GFileAttributeType - * is %G_FILE_ATTRIBUTE_TYPE_UINT64. - */ -enum FILE_ATTRIBUTE_FILESYSTEM_SIZE = "filesystem::size"; -alias G_FILE_ATTRIBUTE_FILESYSTEM_SIZE = FILE_ATTRIBUTE_FILESYSTEM_SIZE; - -/** - * A key in the "filesystem" namespace for getting the file system's type. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_FILESYSTEM_TYPE = "filesystem::type"; -alias G_FILE_ATTRIBUTE_FILESYSTEM_TYPE = FILE_ATTRIBUTE_FILESYSTEM_TYPE; - -/** - * A key in the "filesystem" namespace for getting the number of bytes of used on the - * file system. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT64. - */ -enum FILE_ATTRIBUTE_FILESYSTEM_USED = "filesystem::used"; -alias G_FILE_ATTRIBUTE_FILESYSTEM_USED = FILE_ATTRIBUTE_FILESYSTEM_USED; - -/** - * A key in the "filesystem" namespace for hinting a file manager - * application whether it should preview (e.g. thumbnail) files on the - * file system. The value for this key contain a - * #GFilesystemPreviewType. - */ -enum FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW = "filesystem::use-preview"; -alias G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW = FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW; - -/** - * A key in the "gvfs" namespace that gets the name of the current - * GVFS backend in use. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_GVFS_BACKEND = "gvfs::backend"; -alias G_FILE_ATTRIBUTE_GVFS_BACKEND = FILE_ATTRIBUTE_GVFS_BACKEND; - -/** - * A key in the "id" namespace for getting a file identifier. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - * An example use would be during listing files, to avoid recursive - * directory scanning. - */ -enum FILE_ATTRIBUTE_ID_FILE = "id::file"; -alias G_FILE_ATTRIBUTE_ID_FILE = FILE_ATTRIBUTE_ID_FILE; - -/** - * A key in the "id" namespace for getting the file system identifier. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - * An example use would be during drag and drop to see if the source - * and target are on the same filesystem (default to move) or not (default - * to copy). - */ -enum FILE_ATTRIBUTE_ID_FILESYSTEM = "id::filesystem"; -alias G_FILE_ATTRIBUTE_ID_FILESYSTEM = FILE_ATTRIBUTE_ID_FILESYSTEM; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be ejected. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT = "mountable::can-eject"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT = FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is mountable. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT = "mountable::can-mount"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT = FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be polled. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL = "mountable::can-poll"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL = FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_CAN_START = "mountable::can-start"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START = FILE_ATTRIBUTE_MOUNTABLE_CAN_START; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be started - * degraded. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED = "mountable::can-start-degraded"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED = FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be stopped. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP = "mountable::can-stop"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP = FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is unmountable. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT = "mountable::can-unmount"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT = FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT; - -/** - * A key in the "mountable" namespace for getting the HAL UDI for the mountable - * file. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI = "mountable::hal-udi"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI = FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI; - -/** - * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) - * is automatically polled for media. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC = "mountable::is-media-check-automatic"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC = FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC; - -/** - * A key in the "mountable" namespace for getting the #GDriveStartStopType. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE = "mountable::start-stop-type"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE = FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE; - -/** - * A key in the "mountable" namespace for getting the unix device. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE = "mountable::unix-device"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE = FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE; - -/** - * A key in the "mountable" namespace for getting the unix device file. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE = "mountable::unix-device-file"; -alias G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE = FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE; - -/** - * A key in the "owner" namespace for getting the file owner's group. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_OWNER_GROUP = "owner::group"; -alias G_FILE_ATTRIBUTE_OWNER_GROUP = FILE_ATTRIBUTE_OWNER_GROUP; - -/** - * A key in the "owner" namespace for getting the user name of the - * file's owner. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_OWNER_USER = "owner::user"; -alias G_FILE_ATTRIBUTE_OWNER_USER = FILE_ATTRIBUTE_OWNER_USER; - -/** - * A key in the "owner" namespace for getting the real name of the - * user that owns the file. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_OWNER_USER_REAL = "owner::user-real"; -alias G_FILE_ATTRIBUTE_OWNER_USER_REAL = FILE_ATTRIBUTE_OWNER_USER_REAL; - -/** - * A key in the "preview" namespace for getting a #GIcon that can be - * used to get preview of the file. For example, it may be a low - * resolution thumbnail without metadata. Corresponding - * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT. The value - * for this key should contain a #GIcon. - */ -enum FILE_ATTRIBUTE_PREVIEW_ICON = "preview::icon"; -alias G_FILE_ATTRIBUTE_PREVIEW_ICON = FILE_ATTRIBUTE_PREVIEW_ICON; - -/** - * A key in the "recent" namespace for getting time, when the metadata for the - * file in `recent:///` was last changed. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_INT64. - */ -enum FILE_ATTRIBUTE_RECENT_MODIFIED = "recent::modified"; -alias G_FILE_ATTRIBUTE_RECENT_MODIFIED = FILE_ATTRIBUTE_RECENT_MODIFIED; - -/** - * A key in the "selinux" namespace for getting the file's SELinux - * context. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_STRING. Note that this attribute is only - * available if GLib has been built with SELinux support. - */ -enum FILE_ATTRIBUTE_SELINUX_CONTEXT = "selinux::context"; -alias G_FILE_ATTRIBUTE_SELINUX_CONTEXT = FILE_ATTRIBUTE_SELINUX_CONTEXT; - -/** - * A key in the "standard" namespace for getting the amount of disk space - * that is consumed by the file (in bytes). This will generally be larger - * than the file size (due to block size overhead) but can occasionally be - * smaller (for example, for sparse files). - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64. - */ -enum FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE = "standard::allocated-size"; -alias G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE = FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE; - -/** - * A key in the "standard" namespace for getting the content type of the file. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - * The value for this key should contain a valid content type. - */ -enum FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE = "standard::content-type"; -alias G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE = FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE; - -/** - * A key in the "standard" namespace for getting the copy name of the file. - * The copy name is an optional version of the name. If available it's always - * in UTF8, and corresponds directly to the original filename (only transcoded to - * UTF8). This is useful if you want to copy the file to another filesystem that - * might have a different encoding. If the filename is not a valid string in the - * encoding selected for the filesystem it is in then the copy name will not be set. - * - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_COPY_NAME = "standard::copy-name"; -alias G_FILE_ATTRIBUTE_STANDARD_COPY_NAME = FILE_ATTRIBUTE_STANDARD_COPY_NAME; - -/** - * A key in the "standard" namespace for getting the description of the file. - * The description is a utf8 string that describes the file, generally containing - * the filename, but can also contain further information. Example descriptions - * could be "filename (on hostname)" for a remote file or "filename (in trash)" - * for a file in the trash. This is useful for instance as the window title - * when displaying a directory or for a bookmarks menu. - * - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_DESCRIPTION = "standard::description"; -alias G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION = FILE_ATTRIBUTE_STANDARD_DESCRIPTION; - -/** - * A key in the "standard" namespace for getting the display name of the file. - * A display name is guaranteed to be in UTF-8 and can thus be displayed in - * the UI. It is guaranteed to be set on every file. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME = "standard::display-name"; -alias G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME = FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME; - -/** - * A key in the "standard" namespace for edit name of the file. - * An edit name is similar to the display name, but it is meant to be - * used when you want to rename the file in the UI. The display name - * might contain information you don't want in the new filename (such as - * "(invalid unicode)" if the filename was in an invalid encoding). - * - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_EDIT_NAME = "standard::edit-name"; -alias G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME = FILE_ATTRIBUTE_STANDARD_EDIT_NAME; - -/** - * A key in the "standard" namespace for getting the fast content type. - * The fast content type isn't as reliable as the regular one, as it - * only uses the filename to guess it, but it is faster to calculate than the - * regular content type. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE = "standard::fast-content-type"; -alias G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE = FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE; - -/** - * A key in the "standard" namespace for getting the icon for the file. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT. - * The value for this key should contain a #GIcon. - */ -enum FILE_ATTRIBUTE_STANDARD_ICON = "standard::icon"; -alias G_FILE_ATTRIBUTE_STANDARD_ICON = FILE_ATTRIBUTE_STANDARD_ICON; - -/** - * A key in the "standard" namespace for checking if a file is a backup file. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_STANDARD_IS_BACKUP = "standard::is-backup"; -alias G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP = FILE_ATTRIBUTE_STANDARD_IS_BACKUP; - -/** - * A key in the "standard" namespace for checking if a file is hidden. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_STANDARD_IS_HIDDEN = "standard::is-hidden"; -alias G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN = FILE_ATTRIBUTE_STANDARD_IS_HIDDEN; - -/** - * A key in the "standard" namespace for checking if the file is a symlink. - * Typically the actual type is something else, if we followed the symlink - * to get the type. - * On Windows NTFS mountpoints are considered to be symlinks as well. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_STANDARD_IS_SYMLINK = "standard::is-symlink"; -alias G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK = FILE_ATTRIBUTE_STANDARD_IS_SYMLINK; - -/** - * A key in the "standard" namespace for checking if a file is virtual. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL = "standard::is-virtual"; -alias G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL = FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL; - -/** - * A key in the "standard" namespace for checking if a file is - * volatile. This is meant for opaque, non-POSIX-like backends to - * indicate that the URI is not persistent. Applications should look - * at #G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET for the persistent URI. - * - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_STANDARD_IS_VOLATILE = "standard::is-volatile"; -alias G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE = FILE_ATTRIBUTE_STANDARD_IS_VOLATILE; - -/** - * A key in the "standard" namespace for getting the name of the file. - * The name is the on-disk filename which may not be in any known encoding, - * and can thus not be generally displayed as is. It is guaranteed to be set on - * every file. - * Use #G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME if you need to display the - * name in a user interface. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_NAME = "standard::name"; -alias G_FILE_ATTRIBUTE_STANDARD_NAME = FILE_ATTRIBUTE_STANDARD_NAME; - -/** - * A key in the "standard" namespace for getting the file's size (in bytes). - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64. - */ -enum FILE_ATTRIBUTE_STANDARD_SIZE = "standard::size"; -alias G_FILE_ATTRIBUTE_STANDARD_SIZE = FILE_ATTRIBUTE_STANDARD_SIZE; - -/** - * A key in the "standard" namespace for setting the sort order of a file. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_INT32. - * An example use would be in file managers, which would use this key - * to set the order files are displayed. Files with smaller sort order - * should be sorted first, and files without sort order as if sort order - * was zero. - */ -enum FILE_ATTRIBUTE_STANDARD_SORT_ORDER = "standard::sort-order"; -alias G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER = FILE_ATTRIBUTE_STANDARD_SORT_ORDER; - -/** - * A key in the "standard" namespace for getting the symbolic icon for the file. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT. - * The value for this key should contain a #GIcon. - */ -enum FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON = "standard::symbolic-icon"; -alias G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON = FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON; - -/** - * A key in the "standard" namespace for getting the symlink target, if the file - * is a symlink. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET = "standard::symlink-target"; -alias G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET = FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET; - -/** - * A key in the "standard" namespace for getting the target URI for the file, in - * the case of %G_FILE_TYPE_SHORTCUT or %G_FILE_TYPE_MOUNTABLE files. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_STANDARD_TARGET_URI = "standard::target-uri"; -alias G_FILE_ATTRIBUTE_STANDARD_TARGET_URI = FILE_ATTRIBUTE_STANDARD_TARGET_URI; - -/** - * A key in the "standard" namespace for storing file types. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - * The value for this key should contain a #GFileType. - */ -enum FILE_ATTRIBUTE_STANDARD_TYPE = "standard::type"; -alias G_FILE_ATTRIBUTE_STANDARD_TYPE = FILE_ATTRIBUTE_STANDARD_TYPE; - -/** - * A key in the "thumbnail" namespace for checking if thumbnailing failed. - * This attribute is %TRUE if thumbnailing failed. Corresponding - * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_THUMBNAILING_FAILED = "thumbnail::failed"; -alias G_FILE_ATTRIBUTE_THUMBNAILING_FAILED = FILE_ATTRIBUTE_THUMBNAILING_FAILED; - -/** - * A key in the "thumbnail" namespace for checking whether the thumbnail is outdated. - * This attribute is %TRUE if the thumbnail is up-to-date with the file it represents, - * and %FALSE if the file has been modified since the thumbnail was generated. - * - * If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED is %TRUE and this attribute is %FALSE, - * it indicates that thumbnailing may be attempted again and may succeed. - * - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_THUMBNAIL_IS_VALID = "thumbnail::is-valid"; -alias G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID = FILE_ATTRIBUTE_THUMBNAIL_IS_VALID; - -/** - * A key in the "thumbnail" namespace for getting the path to the thumbnail - * image. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING. - */ -enum FILE_ATTRIBUTE_THUMBNAIL_PATH = "thumbnail::path"; -alias G_FILE_ATTRIBUTE_THUMBNAIL_PATH = FILE_ATTRIBUTE_THUMBNAIL_PATH; - -/** - * A key in the "time" namespace for getting the time the file was last - * accessed. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the time since the - * file was last accessed, in seconds since the UNIX epoch. - */ -enum FILE_ATTRIBUTE_TIME_ACCESS = "time::access"; -alias G_FILE_ATTRIBUTE_TIME_ACCESS = FILE_ATTRIBUTE_TIME_ACCESS; - -/** - * A key in the "time" namespace for getting the microseconds of the time - * the file was last accessed. This should be used in conjunction with - * #G_FILE_ATTRIBUTE_TIME_ACCESS. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_TIME_ACCESS_USEC = "time::access-usec"; -alias G_FILE_ATTRIBUTE_TIME_ACCESS_USEC = FILE_ATTRIBUTE_TIME_ACCESS_USEC; - -/** - * A key in the "time" namespace for getting the time the file was last - * changed. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64, - * and contains the time since the file was last changed, in seconds since the - * UNIX epoch. - * - * This corresponds to the traditional UNIX ctime. - */ -enum FILE_ATTRIBUTE_TIME_CHANGED = "time::changed"; -alias G_FILE_ATTRIBUTE_TIME_CHANGED = FILE_ATTRIBUTE_TIME_CHANGED; - -/** - * A key in the "time" namespace for getting the microseconds of the time - * the file was last changed. This should be used in conjunction with - * #G_FILE_ATTRIBUTE_TIME_CHANGED. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_TIME_CHANGED_USEC = "time::changed-usec"; -alias G_FILE_ATTRIBUTE_TIME_CHANGED_USEC = FILE_ATTRIBUTE_TIME_CHANGED_USEC; - -/** - * A key in the "time" namespace for getting the time the file was created. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64, - * and contains the time since the file was created, in seconds since the UNIX - * epoch. - * - * This may correspond to Linux stx_btime, FreeBSD st_birthtim, NetBSD - * st_birthtime or NTFS ctime. - */ -enum FILE_ATTRIBUTE_TIME_CREATED = "time::created"; -alias G_FILE_ATTRIBUTE_TIME_CREATED = FILE_ATTRIBUTE_TIME_CREATED; - -/** - * A key in the "time" namespace for getting the microseconds of the time - * the file was created. This should be used in conjunction with - * #G_FILE_ATTRIBUTE_TIME_CREATED. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_TIME_CREATED_USEC = "time::created-usec"; -alias G_FILE_ATTRIBUTE_TIME_CREATED_USEC = FILE_ATTRIBUTE_TIME_CREATED_USEC; - -/** - * A key in the "time" namespace for getting the time the file was last - * modified. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the time since the - * file was modified, in seconds since the UNIX epoch. - */ -enum FILE_ATTRIBUTE_TIME_MODIFIED = "time::modified"; -alias G_FILE_ATTRIBUTE_TIME_MODIFIED = FILE_ATTRIBUTE_TIME_MODIFIED; - -/** - * A key in the "time" namespace for getting the microseconds of the time - * the file was last modified. This should be used in conjunction with - * #G_FILE_ATTRIBUTE_TIME_MODIFIED. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_TIME_MODIFIED_USEC = "time::modified-usec"; -alias G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC = FILE_ATTRIBUTE_TIME_MODIFIED_USEC; - -/** - * A key in the "trash" namespace. When requested against - * items in `trash:///`, will return the date and time when the file - * was trashed. The format of the returned string is YYYY-MM-DDThh:mm:ss. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. - */ -enum FILE_ATTRIBUTE_TRASH_DELETION_DATE = "trash::deletion-date"; -alias G_FILE_ATTRIBUTE_TRASH_DELETION_DATE = FILE_ATTRIBUTE_TRASH_DELETION_DATE; - -/** - * A key in the "trash" namespace. When requested against - * `trash:///` returns the number of (toplevel) items in the trash folder. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_TRASH_ITEM_COUNT = "trash::item-count"; -alias G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT = FILE_ATTRIBUTE_TRASH_ITEM_COUNT; - -/** - * A key in the "trash" namespace. When requested against - * items in `trash:///`, will return the original path to the file before it - * was trashed. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING. - */ -enum FILE_ATTRIBUTE_TRASH_ORIG_PATH = "trash::orig-path"; -alias G_FILE_ATTRIBUTE_TRASH_ORIG_PATH = FILE_ATTRIBUTE_TRASH_ORIG_PATH; - -/** - * A key in the "unix" namespace for getting the number of blocks allocated - * for the file. This attribute is only available for UNIX file systems. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64. - */ -enum FILE_ATTRIBUTE_UNIX_BLOCKS = "unix::blocks"; -alias G_FILE_ATTRIBUTE_UNIX_BLOCKS = FILE_ATTRIBUTE_UNIX_BLOCKS; - -/** - * A key in the "unix" namespace for getting the block size for the file - * system. This attribute is only available for UNIX file systems. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_UNIX_BLOCK_SIZE = "unix::block-size"; -alias G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE = FILE_ATTRIBUTE_UNIX_BLOCK_SIZE; - -/** - * A key in the "unix" namespace for getting the device id of the device the - * file is located on (see stat() documentation). This attribute is only - * available for UNIX file systems. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_UNIX_DEVICE = "unix::device"; -alias G_FILE_ATTRIBUTE_UNIX_DEVICE = FILE_ATTRIBUTE_UNIX_DEVICE; - -/** - * A key in the "unix" namespace for getting the group ID for the file. - * This attribute is only available for UNIX file systems. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_UNIX_GID = "unix::gid"; -alias G_FILE_ATTRIBUTE_UNIX_GID = FILE_ATTRIBUTE_UNIX_GID; - -/** - * A key in the "unix" namespace for getting the inode of the file. - * This attribute is only available for UNIX file systems. Corresponding - * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64. - */ -enum FILE_ATTRIBUTE_UNIX_INODE = "unix::inode"; -alias G_FILE_ATTRIBUTE_UNIX_INODE = FILE_ATTRIBUTE_UNIX_INODE; - -/** - * A key in the "unix" namespace for checking if the file represents a - * UNIX mount point. This attribute is %TRUE if the file is a UNIX mount - * point. Since 2.58, `/` is considered to be a mount point. - * This attribute is only available for UNIX file systems. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. - */ -enum FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT = "unix::is-mountpoint"; -alias G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT = FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT; - -/** - * A key in the "unix" namespace for getting the mode of the file - * (e.g. whether the file is a regular file, symlink, etc). See the - * documentation for `lstat()`: this attribute is equivalent to the `st_mode` - * member of `struct stat`, and includes both the file type and permissions. - * This attribute is only available for UNIX file systems. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_UNIX_MODE = "unix::mode"; -alias G_FILE_ATTRIBUTE_UNIX_MODE = FILE_ATTRIBUTE_UNIX_MODE; - -/** - * A key in the "unix" namespace for getting the number of hard links - * for a file. See lstat() documentation. This attribute is only available - * for UNIX file systems. Corresponding #GFileAttributeType is - * %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_UNIX_NLINK = "unix::nlink"; -alias G_FILE_ATTRIBUTE_UNIX_NLINK = FILE_ATTRIBUTE_UNIX_NLINK; - -/** - * A key in the "unix" namespace for getting the device ID for the file - * (if it is a special file). See lstat() documentation. This attribute - * is only available for UNIX file systems. Corresponding #GFileAttributeType - * is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_UNIX_RDEV = "unix::rdev"; -alias G_FILE_ATTRIBUTE_UNIX_RDEV = FILE_ATTRIBUTE_UNIX_RDEV; - -/** - * A key in the "unix" namespace for getting the user ID for the file. - * This attribute is only available for UNIX file systems. - * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. - */ -enum FILE_ATTRIBUTE_UNIX_UID = "unix::uid"; -alias G_FILE_ATTRIBUTE_UNIX_UID = FILE_ATTRIBUTE_UNIX_UID; - -/** - * Extension point for memory usage monitoring functionality. - * See [Extending GIO][extending-gio]. - */ -enum MEMORY_MONITOR_EXTENSION_POINT_NAME = "gio-memory-monitor"; -alias G_MEMORY_MONITOR_EXTENSION_POINT_NAME = MEMORY_MONITOR_EXTENSION_POINT_NAME; - -/** - * The menu item attribute which holds the action name of the item. Action - * names are namespaced with an identifier for the action group in which the - * action resides. For example, "win." for window-specific actions and "app." - * for application-wide actions. - * - * See also g_menu_model_get_item_attribute() and g_menu_item_set_attribute(). - */ -enum MENU_ATTRIBUTE_ACTION = "action"; -alias G_MENU_ATTRIBUTE_ACTION = MENU_ATTRIBUTE_ACTION; - -/** - * The menu item attribute that holds the namespace for all action names in - * menus that are linked from this item. - */ -enum MENU_ATTRIBUTE_ACTION_NAMESPACE = "action-namespace"; -alias G_MENU_ATTRIBUTE_ACTION_NAMESPACE = MENU_ATTRIBUTE_ACTION_NAMESPACE; - -/** - * The menu item attribute which holds the icon of the item. - * - * The icon is stored in the format returned by g_icon_serialize(). - * - * This attribute is intended only to represent 'noun' icons such as - * favicons for a webpage, or application icons. It should not be used - * for 'verbs' (ie: stock icons). - */ -enum MENU_ATTRIBUTE_ICON = "icon"; -alias G_MENU_ATTRIBUTE_ICON = MENU_ATTRIBUTE_ICON; - -/** - * The menu item attribute which holds the label of the item. - */ -enum MENU_ATTRIBUTE_LABEL = "label"; -alias G_MENU_ATTRIBUTE_LABEL = MENU_ATTRIBUTE_LABEL; - -/** - * The menu item attribute which holds the target with which the item's action - * will be activated. - * - * See also g_menu_item_set_action_and_target() - */ -enum MENU_ATTRIBUTE_TARGET = "target"; -alias G_MENU_ATTRIBUTE_TARGET = MENU_ATTRIBUTE_TARGET; - -/** - * The name of the link that associates a menu item with a section. The linked - * menu will usually be shown in place of the menu item, using the item's label - * as a header. - * - * See also g_menu_item_set_link(). - */ -enum MENU_LINK_SECTION = "section"; -alias G_MENU_LINK_SECTION = MENU_LINK_SECTION; - -/** - * The name of the link that associates a menu item with a submenu. - * - * See also g_menu_item_set_link(). - */ -enum MENU_LINK_SUBMENU = "submenu"; -alias G_MENU_LINK_SUBMENU = MENU_LINK_SUBMENU; - -enum NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME = "gio-native-volume-monitor"; -alias G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME = NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME; - -/** - * Extension point for network status monitoring functionality. - * See [Extending GIO][extending-gio]. - */ -enum NETWORK_MONITOR_EXTENSION_POINT_NAME = "gio-network-monitor"; -alias G_NETWORK_MONITOR_EXTENSION_POINT_NAME = NETWORK_MONITOR_EXTENSION_POINT_NAME; - -/** - * Extension point for proxy functionality. - * See [Extending GIO][extending-gio]. - */ -enum PROXY_EXTENSION_POINT_NAME = "gio-proxy"; -alias G_PROXY_EXTENSION_POINT_NAME = PROXY_EXTENSION_POINT_NAME; - -/** - * Extension point for proxy resolving functionality. - * See [Extending GIO][extending-gio]. - */ -enum PROXY_RESOLVER_EXTENSION_POINT_NAME = "gio-proxy-resolver"; -alias G_PROXY_RESOLVER_EXTENSION_POINT_NAME = PROXY_RESOLVER_EXTENSION_POINT_NAME; - -/** - * Extension point for #GSettingsBackend functionality. - */ -enum SETTINGS_BACKEND_EXTENSION_POINT_NAME = "gsettings-backend"; -alias G_SETTINGS_BACKEND_EXTENSION_POINT_NAME = SETTINGS_BACKEND_EXTENSION_POINT_NAME; - -/** - * Extension point for TLS functionality via #GTlsBackend. - * See [Extending GIO][extending-gio]. - */ -enum TLS_BACKEND_EXTENSION_POINT_NAME = "gio-tls-backend"; -alias G_TLS_BACKEND_EXTENSION_POINT_NAME = TLS_BACKEND_EXTENSION_POINT_NAME; - -/** - * The purpose used to verify the client certificate in a TLS connection. - * Used by TLS servers. - */ -enum TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT = "1.3.6.1.5.5.7.3.2"; -alias G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT = TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT; - -/** - * The purpose used to verify the server certificate in a TLS connection. This - * is the most common purpose in use. Used by TLS clients. - */ -enum TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER = "1.3.6.1.5.5.7.3.1"; -alias G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER = TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER; - -/** - * Extension point for #GVfs functionality. - * See [Extending GIO][extending-gio]. - */ -enum VFS_EXTENSION_POINT_NAME = "gio-vfs"; -alias G_VFS_EXTENSION_POINT_NAME = VFS_EXTENSION_POINT_NAME; - -/** - * The string used to obtain the volume class with g_volume_get_identifier(). - * - * Known volume classes include `device`, `network`, and `loop`. Other - * classes may be added in the future. - * - * This is intended to be used by applications to classify #GVolume - * instances into different sections - for example a file manager or - * file chooser can use this information to show `network` volumes under - * a "Network" heading and `device` volumes under a "Devices" heading. - */ -enum VOLUME_IDENTIFIER_KIND_CLASS = "class"; -alias G_VOLUME_IDENTIFIER_KIND_CLASS = VOLUME_IDENTIFIER_KIND_CLASS; - -/** - * The string used to obtain a Hal UDI with g_volume_get_identifier(). - * - * Deprecated: Do not use, HAL is deprecated. - */ -enum VOLUME_IDENTIFIER_KIND_HAL_UDI = "hal-udi"; -alias G_VOLUME_IDENTIFIER_KIND_HAL_UDI = VOLUME_IDENTIFIER_KIND_HAL_UDI; - -/** - * The string used to obtain a filesystem label with g_volume_get_identifier(). - */ -enum VOLUME_IDENTIFIER_KIND_LABEL = "label"; -alias G_VOLUME_IDENTIFIER_KIND_LABEL = VOLUME_IDENTIFIER_KIND_LABEL; - -/** - * The string used to obtain a NFS mount with g_volume_get_identifier(). - */ -enum VOLUME_IDENTIFIER_KIND_NFS_MOUNT = "nfs-mount"; -alias G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT = VOLUME_IDENTIFIER_KIND_NFS_MOUNT; - -/** - * The string used to obtain a Unix device path with g_volume_get_identifier(). - */ -enum VOLUME_IDENTIFIER_KIND_UNIX_DEVICE = "unix-device"; -alias G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE = VOLUME_IDENTIFIER_KIND_UNIX_DEVICE; - -/** - * The string used to obtain a UUID with g_volume_get_identifier(). - */ -enum VOLUME_IDENTIFIER_KIND_UUID = "uuid"; -alias G_VOLUME_IDENTIFIER_KIND_UUID = VOLUME_IDENTIFIER_KIND_UUID; - -/** - * Extension point for volume monitor functionality. - * See [Extending GIO][extending-gio]. - */ -enum VOLUME_MONITOR_EXTENSION_POINT_NAME = "gio-volume-monitor"; -alias G_VOLUME_MONITOR_EXTENSION_POINT_NAME = VOLUME_MONITOR_EXTENSION_POINT_NAME; diff --git a/generated/gtkd/glib/ArrayG.d b/generated/gtkd/glib/ArrayG.d deleted file mode 100644 index ba3b06008..000000000 --- a/generated/gtkd/glib/ArrayG.d +++ /dev/null @@ -1,521 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.ArrayG; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -public import glib.c.types; - - -/** - * Contains the public fields of a GArray. - */ -public class ArrayG -{ - /** the main Gtk struct */ - protected GArray* gArray; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GArray* getArrayGStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gArray; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gArray; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GArray* gArray, bool ownedRef = false) - { - this.gArray = gArray; - this.ownedRef = ownedRef; - } - - - /** - * Adds @len elements onto the end of the array. - * - * Params: - * data = a pointer to the elements to append to the end of the array - * len = the number of elements to append - * - * Returns: the #GArray - */ - public ArrayG appendVals(void* data, uint len) - { - auto __p = g_array_append_vals(gArray, data, len); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Checks whether @target exists in @array by performing a binary - * search based on the given comparison function @compare_func which - * get pointers to items as arguments. If the element is found, %TRUE - * is returned and the element’s index is returned in @out_match_index - * (if non-%NULL). Otherwise, %FALSE is returned and @out_match_index - * is undefined. If @target exists multiple times in @array, the index - * of the first instance is returned. This search is using a binary - * search, so the @array must absolutely be sorted to return a correct - * result (if not, the function may produce false-negative). - * - * This example defines a comparison function and search an element in a #GArray: - * |[ - * static gint* - * cmpint (gconstpointer a, gconstpointer b) - * { - * const gint *_a = a; - * const gint *_b = b; - * - * return *_a - *_b; - * } - * ... - * gint i = 424242; - * guint matched_index; - * gboolean result = g_array_binary_search (garray, &i, cmpint, &matched_index); - * ... - * ]| - * - * Params: - * target = a pointer to the item to look up. - * compareFunc = A #GCompareFunc used to locate @target. - * outMatchIndex = return location - * for the index of the element, if found. - * - * Returns: %TRUE if @target is one of the elements of @array, %FALSE otherwise. - * - * Since: 2.62 - */ - public bool binarySearch(void* target, GCompareFunc compareFunc, out uint outMatchIndex) - { - return g_array_binary_search(gArray, target, compareFunc, &outMatchIndex) != 0; - } - - /** - * Create a shallow copy of a #GArray. If the array elements consist of - * pointers to data, the pointers are copied but the actual data is not. - * - * Returns: A copy of @array. - * - * Since: 2.62 - */ - public ArrayG copy() - { - auto __p = g_array_copy(gArray); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Frees the memory allocated for the #GArray. If @free_segment is - * %TRUE it frees the memory block holding the elements as well. Pass - * %FALSE if you want to free the #GArray wrapper but preserve the - * underlying array for use elsewhere. If the reference count of - * @array is greater than one, the #GArray wrapper is preserved but - * the size of @array will be set to zero. - * - * If array contents point to dynamically-allocated memory, they should - * be freed separately if @free_seg is %TRUE and no @clear_func - * function has been set for @array. - * - * This function is not thread-safe. If using a #GArray from multiple - * threads, use only the atomic g_array_ref() and g_array_unref() - * functions. - * - * Params: - * freeSegment = if %TRUE the actual element data is freed as well - * - * Returns: the element data if @free_segment is %FALSE, otherwise - * %NULL. The element data should be freed using g_free(). - */ - public string free(bool freeSegment) - { - auto retStr = g_array_free(gArray, freeSegment); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the size of the elements in @array. - * - * Returns: Size of each element, in bytes - * - * Since: 2.22 - */ - public uint getElementSize() - { - return g_array_get_element_size(gArray); - } - - /** - * Inserts @len elements into a #GArray at the given index. - * - * If @index_ is greater than the array’s current length, the array is expanded. - * The elements between the old end of the array and the newly inserted elements - * will be initialised to zero if the array was configured to clear elements; - * otherwise their values will be undefined. - * - * If @index_ is less than the array’s current length, new entries will be - * inserted into the array, and the existing entries above @index_ will be moved - * upwards. - * - * @data may be %NULL if (and only if) @len is zero. If @len is zero, this - * function is a no-op. - * - * Params: - * index = the index to place the elements at - * data = a pointer to the elements to insert - * len = the number of elements to insert - * - * Returns: the #GArray - */ - public ArrayG insertVals(uint index, void* data, uint len) - { - auto __p = g_array_insert_vals(gArray, index, data, len); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Creates a new #GArray with a reference count of 1. - * - * Params: - * zeroTerminated = %TRUE if the array should have an extra element at - * the end which is set to 0 - * clear = %TRUE if #GArray elements should be automatically cleared - * to 0 when they are allocated - * elementSize = the size of each element in bytes - * - * Returns: the new #GArray - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(bool zeroTerminated, bool clear, uint elementSize) - { - auto __p = g_array_new(zeroTerminated, clear, elementSize); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GArray*) __p); - } - - /** - * Adds @len elements onto the start of the array. - * - * @data may be %NULL if (and only if) @len is zero. If @len is zero, this - * function is a no-op. - * - * This operation is slower than g_array_append_vals() since the - * existing elements in the array have to be moved to make space for - * the new elements. - * - * Params: - * data = a pointer to the elements to prepend to the start of the array - * len = the number of elements to prepend, which may be zero - * - * Returns: the #GArray - */ - public ArrayG prependVals(void* data, uint len) - { - auto __p = g_array_prepend_vals(gArray, data, len); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - alias doref = ref_; - /** - * Atomically increments the reference count of @array by one. - * This function is thread-safe and may be called from any thread. - * - * Returns: The passed in #GArray - * - * Since: 2.22 - */ - public ArrayG ref_() - { - auto __p = g_array_ref(gArray); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Removes the element at the given index from a #GArray. The following - * elements are moved down one place. - * - * Params: - * index = the index of the element to remove - * - * Returns: the #GArray - */ - public ArrayG removeIndex(uint index) - { - auto __p = g_array_remove_index(gArray, index); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Removes the element at the given index from a #GArray. The last - * element in the array is used to fill in the space, so this function - * does not preserve the order of the #GArray. But it is faster than - * g_array_remove_index(). - * - * Params: - * index = the index of the element to remove - * - * Returns: the #GArray - */ - public ArrayG removeIndexFast(uint index) - { - auto __p = g_array_remove_index_fast(gArray, index); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Removes the given number of elements starting at the given index - * from a #GArray. The following elements are moved to close the gap. - * - * Params: - * index = the index of the first element to remove - * length = the number of elements to remove - * - * Returns: the #GArray - * - * Since: 2.4 - */ - public ArrayG removeRange(uint index, uint length) - { - auto __p = g_array_remove_range(gArray, index, length); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Sets a function to clear an element of @array. - * - * The @clear_func will be called when an element in the array - * data segment is removed and when the array is freed and data - * segment is deallocated as well. @clear_func will be passed a - * pointer to the element to clear, rather than the element itself. - * - * Note that in contrast with other uses of #GDestroyNotify - * functions, @clear_func is expected to clear the contents of - * the array element it is given, but not free the element itself. - * - * Params: - * clearFunc = a function to clear an element of @array - * - * Since: 2.32 - */ - public void setClearFunc(GDestroyNotify clearFunc) - { - g_array_set_clear_func(gArray, clearFunc); - } - - /** - * Sets the size of the array, expanding it if necessary. If the array - * was created with @clear_ set to %TRUE, the new elements are set to 0. - * - * Params: - * length = the new size of the #GArray - * - * Returns: the #GArray - */ - public ArrayG setSize(uint length) - { - auto __p = g_array_set_size(gArray, length); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Creates a new #GArray with @reserved_size elements preallocated and - * a reference count of 1. This avoids frequent reallocation, if you - * are going to add many elements to the array. Note however that the - * size of the array is still 0. - * - * Params: - * zeroTerminated = %TRUE if the array should have an extra element at - * the end with all bits cleared - * clear = %TRUE if all bits in the array should be cleared to 0 on - * allocation - * elementSize = size of each element in the array - * reservedSize = number of elements preallocated - * - * Returns: the new #GArray - */ - public static ArrayG sizedNew(bool zeroTerminated, bool clear, uint elementSize, uint reservedSize) - { - auto __p = g_array_sized_new(zeroTerminated, clear, elementSize, reservedSize); - - if(__p is null) - { - return null; - } - - return new ArrayG(cast(GArray*) __p); - } - - /** - * Sorts a #GArray using @compare_func which should be a qsort()-style - * comparison function (returns less than zero for first arg is less - * than second arg, zero for equal, greater zero if first arg is - * greater than second arg). - * - * This is guaranteed to be a stable sort since version 2.32. - * - * Params: - * compareFunc = comparison function - */ - public void sort(GCompareFunc compareFunc) - { - g_array_sort(gArray, compareFunc); - } - - /** - * Like g_array_sort(), but the comparison function receives an extra - * user data argument. - * - * This is guaranteed to be a stable sort since version 2.32. - * - * There used to be a comment here about making the sort stable by - * using the addresses of the elements in the comparison function. - * This did not actually work, so any such code should be removed. - * - * Params: - * compareFunc = comparison function - * userData = data to pass to @compare_func - */ - public void sortWithData(GCompareDataFunc compareFunc, void* userData) - { - g_array_sort_with_data(gArray, compareFunc, userData); - } - - /** - * Frees the data in the array and resets the size to zero, while - * the underlying array is preserved for use elsewhere and returned - * to the caller. - * - * If the array was created with the @zero_terminate property - * set to %TRUE, the returned data is zero terminated too. - * - * If array elements contain dynamically-allocated memory, - * the array elements should also be freed by the caller. - * - * A short example of use: - * |[ - * ... - * gpointer data; - * gsize data_len; - * data = g_array_steal (some_array, &data_len); - * ... - * ]| - * - * Params: - * len = pointer to retrieve the number of - * elements of the original array - * - * Returns: the element data, which should be - * freed using g_free(). - * - * Since: 2.64 - */ - public void* steal(out size_t len) - { - return g_array_steal(gArray, &len); - } - - /** - * Atomically decrements the reference count of @array by one. If the - * reference count drops to 0, all memory allocated by the array is - * released. This function is thread-safe and may be called from any - * thread. - * - * Since: 2.22 - */ - public void unref() - { - g_array_unref(gArray); - } -} diff --git a/generated/gtkd/glib/AsyncQueue.d b/generated/gtkd/glib/AsyncQueue.d deleted file mode 100644 index 8c5519c16..000000000 --- a/generated/gtkd/glib/AsyncQueue.d +++ /dev/null @@ -1,574 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.AsyncQueue; - -private import glib.ConstructionException; -private import glib.TimeVal; -private import glib.c.functions; -public import glib.c.types; -private import gtkd.Loader; - - -/** - * The GAsyncQueue struct is an opaque data structure which represents - * an asynchronous queue. It should only be accessed through the - * g_async_queue_* functions. - */ -public class AsyncQueue -{ - /** the main Gtk struct */ - protected GAsyncQueue* gAsyncQueue; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GAsyncQueue* getAsyncQueueStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gAsyncQueue; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gAsyncQueue; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GAsyncQueue* gAsyncQueue, bool ownedRef = false) - { - this.gAsyncQueue = gAsyncQueue; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GLIB) && ownedRef ) - g_async_queue_unref(gAsyncQueue); - } - - - /** - * Returns the length of the queue. - * - * Actually this function returns the number of data items in - * the queue minus the number of waiting threads, so a negative - * value means waiting threads, and a positive value means available - * entries in the @queue. A return value of 0 could mean n entries - * in the queue and n threads waiting. This can happen due to locking - * of the queue or due to scheduling. - * - * Returns: the length of the @queue - */ - public int length() - { - return g_async_queue_length(gAsyncQueue); - } - - /** - * Returns the length of the queue. - * - * Actually this function returns the number of data items in - * the queue minus the number of waiting threads, so a negative - * value means waiting threads, and a positive value means available - * entries in the @queue. A return value of 0 could mean n entries - * in the queue and n threads waiting. This can happen due to locking - * of the queue or due to scheduling. - * - * This function must be called while holding the @queue's lock. - * - * Returns: the length of the @queue. - */ - public int lengthUnlocked() - { - return g_async_queue_length_unlocked(gAsyncQueue); - } - - /** - * Acquires the @queue's lock. If another thread is already - * holding the lock, this call will block until the lock - * becomes available. - * - * Call g_async_queue_unlock() to drop the lock again. - * - * While holding the lock, you can only call the - * g_async_queue_*_unlocked() functions on @queue. Otherwise, - * deadlock may occur. - */ - public void lock() - { - g_async_queue_lock(gAsyncQueue); - } - - /** - * Pops data from the @queue. If @queue is empty, this function - * blocks until data becomes available. - * - * Returns: data from the queue - */ - public void* pop() - { - return g_async_queue_pop(gAsyncQueue); - } - - /** - * Pops data from the @queue. If @queue is empty, this function - * blocks until data becomes available. - * - * This function must be called while holding the @queue's lock. - * - * Returns: data from the queue. - */ - public void* popUnlocked() - { - return g_async_queue_pop_unlocked(gAsyncQueue); - } - - /** - * Pushes the @data into the @queue. @data must not be %NULL. - * - * Params: - * data = @data to push into the @queue - */ - public void push(void* data) - { - g_async_queue_push(gAsyncQueue, data); - } - - /** - * Pushes the @item into the @queue. @item must not be %NULL. - * In contrast to g_async_queue_push(), this function - * pushes the new item ahead of the items already in the queue, - * so that it will be the next one to be popped off the queue. - * - * Params: - * item = data to push into the @queue - * - * Since: 2.46 - */ - public void pushFront(void* item) - { - g_async_queue_push_front(gAsyncQueue, item); - } - - /** - * Pushes the @item into the @queue. @item must not be %NULL. - * In contrast to g_async_queue_push_unlocked(), this function - * pushes the new item ahead of the items already in the queue, - * so that it will be the next one to be popped off the queue. - * - * This function must be called while holding the @queue's lock. - * - * Params: - * item = data to push into the @queue - * - * Since: 2.46 - */ - public void pushFrontUnlocked(void* item) - { - g_async_queue_push_front_unlocked(gAsyncQueue, item); - } - - /** - * Inserts @data into @queue using @func to determine the new - * position. - * - * This function requires that the @queue is sorted before pushing on - * new elements, see g_async_queue_sort(). - * - * This function will lock @queue before it sorts the queue and unlock - * it when it is finished. - * - * For an example of @func see g_async_queue_sort(). - * - * Params: - * data = the @data to push into the @queue - * func = the #GCompareDataFunc is used to sort @queue - * userData = user data passed to @func. - * - * Since: 2.10 - */ - public void pushSorted(void* data, GCompareDataFunc func, void* userData) - { - g_async_queue_push_sorted(gAsyncQueue, data, func, userData); - } - - /** - * Inserts @data into @queue using @func to determine the new - * position. - * - * The sort function @func is passed two elements of the @queue. - * It should return 0 if they are equal, a negative value if the - * first element should be higher in the @queue or a positive value - * if the first element should be lower in the @queue than the second - * element. - * - * This function requires that the @queue is sorted before pushing on - * new elements, see g_async_queue_sort(). - * - * This function must be called while holding the @queue's lock. - * - * For an example of @func see g_async_queue_sort(). - * - * Params: - * data = the @data to push into the @queue - * func = the #GCompareDataFunc is used to sort @queue - * userData = user data passed to @func. - * - * Since: 2.10 - */ - public void pushSortedUnlocked(void* data, GCompareDataFunc func, void* userData) - { - g_async_queue_push_sorted_unlocked(gAsyncQueue, data, func, userData); - } - - /** - * Pushes the @data into the @queue. @data must not be %NULL. - * - * This function must be called while holding the @queue's lock. - * - * Params: - * data = @data to push into the @queue - */ - public void pushUnlocked(void* data) - { - g_async_queue_push_unlocked(gAsyncQueue, data); - } - - alias doref = ref_; - /** - * Increases the reference count of the asynchronous @queue by 1. - * You do not need to hold the lock to call this function. - * - * Returns: the @queue that was passed in (since 2.6) - */ - public AsyncQueue ref_() - { - auto __p = g_async_queue_ref(gAsyncQueue); - - if(__p is null) - { - return null; - } - - return new AsyncQueue(cast(GAsyncQueue*) __p); - } - - /** - * Increases the reference count of the asynchronous @queue by 1. - * - * Deprecated: Reference counting is done atomically. - * so g_async_queue_ref() can be used regardless of the @queue's - * lock. - */ - public void refUnlocked() - { - g_async_queue_ref_unlocked(gAsyncQueue); - } - - /** - * Remove an item from the queue. - * - * Params: - * item = the data to remove from the @queue - * - * Returns: %TRUE if the item was removed - * - * Since: 2.46 - */ - public bool remove(void* item) - { - return g_async_queue_remove(gAsyncQueue, item) != 0; - } - - /** - * Remove an item from the queue. - * - * This function must be called while holding the @queue's lock. - * - * Params: - * item = the data to remove from the @queue - * - * Returns: %TRUE if the item was removed - * - * Since: 2.46 - */ - public bool removeUnlocked(void* item) - { - return g_async_queue_remove_unlocked(gAsyncQueue, item) != 0; - } - - /** - * Sorts @queue using @func. - * - * The sort function @func is passed two elements of the @queue. - * It should return 0 if they are equal, a negative value if the - * first element should be higher in the @queue or a positive value - * if the first element should be lower in the @queue than the second - * element. - * - * This function will lock @queue before it sorts the queue and unlock - * it when it is finished. - * - * If you were sorting a list of priority numbers to make sure the - * lowest priority would be at the top of the queue, you could use: - * |[ - * gint32 id1; - * gint32 id2; - * - * id1 = GPOINTER_TO_INT (element1); - * id2 = GPOINTER_TO_INT (element2); - * - * return (id1 > id2 ? +1 : id1 == id2 ? 0 : -1); - * ]| - * - * Params: - * func = the #GCompareDataFunc is used to sort @queue - * userData = user data passed to @func - * - * Since: 2.10 - */ - public void sort(GCompareDataFunc func, void* userData) - { - g_async_queue_sort(gAsyncQueue, func, userData); - } - - /** - * Sorts @queue using @func. - * - * The sort function @func is passed two elements of the @queue. - * It should return 0 if they are equal, a negative value if the - * first element should be higher in the @queue or a positive value - * if the first element should be lower in the @queue than the second - * element. - * - * This function must be called while holding the @queue's lock. - * - * Params: - * func = the #GCompareDataFunc is used to sort @queue - * userData = user data passed to @func - * - * Since: 2.10 - */ - public void sortUnlocked(GCompareDataFunc func, void* userData) - { - g_async_queue_sort_unlocked(gAsyncQueue, func, userData); - } - - /** - * Pops data from the @queue. If the queue is empty, blocks until - * @end_time or until data becomes available. - * - * If no data is received before @end_time, %NULL is returned. - * - * To easily calculate @end_time, a combination of g_get_real_time() - * and g_time_val_add() can be used. - * - * Deprecated: use g_async_queue_timeout_pop(). - * - * Params: - * endTime = a #GTimeVal, determining the final time - * - * Returns: data from the queue or %NULL, when no data is - * received before @end_time. - */ - public void* timedPop(TimeVal endTime) - { - return g_async_queue_timed_pop(gAsyncQueue, (endTime is null) ? null : endTime.getTimeValStruct()); - } - - /** - * Pops data from the @queue. If the queue is empty, blocks until - * @end_time or until data becomes available. - * - * If no data is received before @end_time, %NULL is returned. - * - * To easily calculate @end_time, a combination of g_get_real_time() - * and g_time_val_add() can be used. - * - * This function must be called while holding the @queue's lock. - * - * Deprecated: use g_async_queue_timeout_pop_unlocked(). - * - * Params: - * endTime = a #GTimeVal, determining the final time - * - * Returns: data from the queue or %NULL, when no data is - * received before @end_time. - */ - public void* timedPopUnlocked(TimeVal endTime) - { - return g_async_queue_timed_pop_unlocked(gAsyncQueue, (endTime is null) ? null : endTime.getTimeValStruct()); - } - - /** - * Pops data from the @queue. If the queue is empty, blocks for - * @timeout microseconds, or until data becomes available. - * - * If no data is received before the timeout, %NULL is returned. - * - * Params: - * timeout = the number of microseconds to wait - * - * Returns: data from the queue or %NULL, when no data is - * received before the timeout. - */ - public void* timeoutPop(ulong timeout) - { - return g_async_queue_timeout_pop(gAsyncQueue, timeout); - } - - /** - * Pops data from the @queue. If the queue is empty, blocks for - * @timeout microseconds, or until data becomes available. - * - * If no data is received before the timeout, %NULL is returned. - * - * This function must be called while holding the @queue's lock. - * - * Params: - * timeout = the number of microseconds to wait - * - * Returns: data from the queue or %NULL, when no data is - * received before the timeout. - */ - public void* timeoutPopUnlocked(ulong timeout) - { - return g_async_queue_timeout_pop_unlocked(gAsyncQueue, timeout); - } - - /** - * Tries to pop data from the @queue. If no data is available, - * %NULL is returned. - * - * Returns: data from the queue or %NULL, when no data is - * available immediately. - */ - public void* tryPop() - { - return g_async_queue_try_pop(gAsyncQueue); - } - - /** - * Tries to pop data from the @queue. If no data is available, - * %NULL is returned. - * - * This function must be called while holding the @queue's lock. - * - * Returns: data from the queue or %NULL, when no data is - * available immediately. - */ - public void* tryPopUnlocked() - { - return g_async_queue_try_pop_unlocked(gAsyncQueue); - } - - /** - * Releases the queue's lock. - * - * Calling this function when you have not acquired - * the with g_async_queue_lock() leads to undefined - * behaviour. - */ - public void unlock() - { - g_async_queue_unlock(gAsyncQueue); - } - - /** - * Decreases the reference count of the asynchronous @queue by 1. - * - * If the reference count went to 0, the @queue will be destroyed - * and the memory allocated will be freed. So you are not allowed - * to use the @queue afterwards, as it might have disappeared. - * You do not need to hold the lock to call this function. - */ - public void unref() - { - g_async_queue_unref(gAsyncQueue); - } - - /** - * Decreases the reference count of the asynchronous @queue by 1 - * and releases the lock. This function must be called while holding - * the @queue's lock. If the reference count went to 0, the @queue - * will be destroyed and the memory allocated will be freed. - * - * Deprecated: Reference counting is done atomically. - * so g_async_queue_unref() can be used regardless of the @queue's - * lock. - */ - public void unrefAndUnlock() - { - g_async_queue_unref_and_unlock(gAsyncQueue); - } - - /** - * Creates a new asynchronous queue. - * - * Returns: a new #GAsyncQueue. Free with g_async_queue_unref() - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_async_queue_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GAsyncQueue*) __p); - } - - /** - * Creates a new asynchronous queue and sets up a destroy notify - * function that is used to free any remaining queue items when - * the queue is destroyed after the final unref. - * - * Params: - * itemFreeFunc = function to free queue elements - * - * Returns: a new #GAsyncQueue. Free with g_async_queue_unref() - * - * Since: 2.16 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GDestroyNotify itemFreeFunc) - { - auto __p = g_async_queue_new_full(itemFreeFunc); - - if(__p is null) - { - throw new ConstructionException("null returned by new_full"); - } - - this(cast(GAsyncQueue*) __p); - } -} diff --git a/generated/gtkd/glib/Atomic.d b/generated/gtkd/glib/Atomic.d deleted file mode 100644 index 2329a4e0a..000000000 --- a/generated/gtkd/glib/Atomic.d +++ /dev/null @@ -1,436 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.Atomic; - -private import glib.c.functions; -public import glib.c.types; - - -/** */ -public struct Atomic -{ - - /** - * Atomically adds @val to the value of @atomic. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic += val; return tmp; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * Before version 2.30, this function did not return a value - * (but g_atomic_int_exchange_and_add() did, and had the same meaning). - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * val = the value to add - * - * Returns: the value of @atomic before the add, signed - * - * Since: 2.4 - */ - public static int intAdd(int* atomic, int val) - { - return g_atomic_int_add(atomic, val); - } - - /** - * Performs an atomic bitwise 'and' of the value of @atomic and @val, - * storing the result back in @atomic. - * - * This call acts as a full compiler and hardware memory barrier. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic &= val; return tmp; }`. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * val = the value to 'and' - * - * Returns: the value of @atomic before the operation, unsigned - * - * Since: 2.30 - */ - public static uint intAnd(uint* atomic, uint val) - { - return g_atomic_int_and(atomic, val); - } - - /** - * Compares @atomic to @oldval and, if equal, sets it to @newval. - * If @atomic was not equal to @oldval then no change occurs. - * - * This compare and exchange is done atomically. - * - * Think of this operation as an atomic version of - * `{ if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * oldval = the value to compare with - * newval = the value to conditionally replace with - * - * Returns: %TRUE if the exchange took place - * - * Since: 2.4 - */ - public static bool intCompareAndExchange(int* atomic, int oldval, int newval) - { - return g_atomic_int_compare_and_exchange(atomic, oldval, newval) != 0; - } - - /** - * Decrements the value of @atomic by 1. - * - * Think of this operation as an atomic version of - * `{ *atomic -= 1; return (*atomic == 0); }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * - * Returns: %TRUE if the resultant value is zero - * - * Since: 2.4 - */ - public static bool intDecAndTest(int* atomic) - { - return g_atomic_int_dec_and_test(atomic) != 0; - } - - /** - * This function existed before g_atomic_int_add() returned the prior - * value of the integer (which it now does). It is retained only for - * compatibility reasons. Don't use this function in new code. - * - * Deprecated: Use g_atomic_int_add() instead. - * - * Params: - * atomic = a pointer to a #gint - * val = the value to add - * - * Returns: the value of @atomic before the add, signed - * - * Since: 2.4 - */ - public static int intExchangeAndAdd(int* atomic, int val) - { - return g_atomic_int_exchange_and_add(atomic, val); - } - - /** - * Gets the current value of @atomic. - * - * This call acts as a full compiler and hardware - * memory barrier (before the get). - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * - * Returns: the value of the integer - * - * Since: 2.4 - */ - public static int intGet(int* atomic) - { - return g_atomic_int_get(atomic); - } - - /** - * Increments the value of @atomic by 1. - * - * Think of this operation as an atomic version of `{ *atomic += 1; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * - * Since: 2.4 - */ - public static void intInc(int* atomic) - { - g_atomic_int_inc(atomic); - } - - /** - * Performs an atomic bitwise 'or' of the value of @atomic and @val, - * storing the result back in @atomic. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic |= val; return tmp; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * val = the value to 'or' - * - * Returns: the value of @atomic before the operation, unsigned - * - * Since: 2.30 - */ - public static uint intOr(uint* atomic, uint val) - { - return g_atomic_int_or(atomic, val); - } - - /** - * Sets the value of @atomic to @newval. - * - * This call acts as a full compiler and hardware - * memory barrier (after the set). - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * newval = a new value to store - * - * Since: 2.4 - */ - public static void intSet(int* atomic, int newval) - { - g_atomic_int_set(atomic, newval); - } - - /** - * Performs an atomic bitwise 'xor' of the value of @atomic and @val, - * storing the result back in @atomic. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic ^= val; return tmp; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gint or #guint - * val = the value to 'xor' - * - * Returns: the value of @atomic before the operation, unsigned - * - * Since: 2.30 - */ - public static uint intXor(uint* atomic, uint val) - { - return g_atomic_int_xor(atomic, val); - } - - /** - * Atomically adds @val to the value of @atomic. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic += val; return tmp; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gpointer-sized value - * val = the value to add - * - * Returns: the value of @atomic before the add, signed - * - * Since: 2.30 - */ - public static ptrdiff_t pointerAdd(void* atomic, ptrdiff_t val) - { - return g_atomic_pointer_add(atomic, val); - } - - /** - * Performs an atomic bitwise 'and' of the value of @atomic and @val, - * storing the result back in @atomic. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic &= val; return tmp; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gpointer-sized value - * val = the value to 'and' - * - * Returns: the value of @atomic before the operation, unsigned - * - * Since: 2.30 - */ - public static size_t pointerAnd(void* atomic, size_t val) - { - return g_atomic_pointer_and(atomic, val); - } - - /** - * Compares @atomic to @oldval and, if equal, sets it to @newval. - * If @atomic was not equal to @oldval then no change occurs. - * - * This compare and exchange is done atomically. - * - * Think of this operation as an atomic version of - * `{ if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gpointer-sized value - * oldval = the value to compare with - * newval = the value to conditionally replace with - * - * Returns: %TRUE if the exchange took place - * - * Since: 2.4 - */ - public static bool pointerCompareAndExchange(void* atomic, void* oldval, void* newval) - { - return g_atomic_pointer_compare_and_exchange(atomic, oldval, newval) != 0; - } - - /** - * Gets the current value of @atomic. - * - * This call acts as a full compiler and hardware - * memory barrier (before the get). - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gpointer-sized value - * - * Returns: the value of the pointer - * - * Since: 2.4 - */ - public static void* pointerGet(void* atomic) - { - return g_atomic_pointer_get(atomic); - } - - /** - * Performs an atomic bitwise 'or' of the value of @atomic and @val, - * storing the result back in @atomic. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic |= val; return tmp; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gpointer-sized value - * val = the value to 'or' - * - * Returns: the value of @atomic before the operation, unsigned - * - * Since: 2.30 - */ - public static size_t pointerOr(void* atomic, size_t val) - { - return g_atomic_pointer_or(atomic, val); - } - - /** - * Sets the value of @atomic to @newval. - * - * This call acts as a full compiler and hardware - * memory barrier (after the set). - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gpointer-sized value - * newval = a new value to store - * - * Since: 2.4 - */ - public static void pointerSet(void* atomic, void* newval) - { - g_atomic_pointer_set(atomic, newval); - } - - /** - * Performs an atomic bitwise 'xor' of the value of @atomic and @val, - * storing the result back in @atomic. - * - * Think of this operation as an atomic version of - * `{ tmp = *atomic; *atomic ^= val; return tmp; }`. - * - * This call acts as a full compiler and hardware memory barrier. - * - * While @atomic has a `volatile` qualifier, this is a historical artifact and - * the pointer passed to it should not be `volatile`. - * - * Params: - * atomic = a pointer to a #gpointer-sized value - * val = the value to 'xor' - * - * Returns: the value of @atomic before the operation, unsigned - * - * Since: 2.30 - */ - public static size_t pointerXor(void* atomic, size_t val) - { - return g_atomic_pointer_xor(atomic, val); - } -} diff --git a/generated/gtkd/glib/BBTree.d b/generated/gtkd/glib/BBTree.d deleted file mode 100644 index a9f9fcecb..000000000 --- a/generated/gtkd/glib/BBTree.d +++ /dev/null @@ -1,638 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.BBTree; - -private import glib.ConstructionException; -private import glib.TreeNode; -private import glib.c.functions; -public import glib.c.types; -private import gtkd.Loader; - - -/** - * The GTree struct is an opaque data structure representing a - * [balanced binary tree][glib-Balanced-Binary-Trees]. It should be - * accessed only by using the following functions. - */ -public class BBTree -{ - /** the main Gtk struct */ - protected GTree* gTree; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GTree* getBBTreeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gTree; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gTree; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GTree* gTree, bool ownedRef = false) - { - this.gTree = gTree; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GLIB) && ownedRef ) - g_tree_unref(gTree); - } - - - /** - * Creates a new #GTree. - * - * Params: - * keyCompareFunc = the function used to order the nodes in the #GTree. - * It should return values similar to the standard strcmp() function - - * 0 if the two arguments are equal, a negative value if the first argument - * comes before the second, or a positive value if the first argument comes - * after the second. - * - * Returns: a newly allocated #GTree - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GCompareFunc keyCompareFunc) - { - auto __p = g_tree_new(keyCompareFunc); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GTree*) __p); - } - - /** - * Creates a new #GTree like g_tree_new() and allows to specify functions - * to free the memory allocated for the key and value that get called when - * removing the entry from the #GTree. - * - * Params: - * keyCompareFunc = qsort()-style comparison function - * keyCompareData = data to pass to comparison function - * keyDestroyFunc = a function to free the memory allocated for the key - * used when removing the entry from the #GTree or %NULL if you don't - * want to supply such a function - * valueDestroyFunc = a function to free the memory allocated for the - * value used when removing the entry from the #GTree or %NULL if you - * don't want to supply such a function - * - * Returns: a newly allocated #GTree - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GCompareDataFunc keyCompareFunc, void* keyCompareData, GDestroyNotify keyDestroyFunc, GDestroyNotify valueDestroyFunc) - { - auto __p = g_tree_new_full(keyCompareFunc, keyCompareData, keyDestroyFunc, valueDestroyFunc); - - if(__p is null) - { - throw new ConstructionException("null returned by new_full"); - } - - this(cast(GTree*) __p); - } - - /** - * Creates a new #GTree with a comparison function that accepts user data. - * See g_tree_new() for more details. - * - * Params: - * keyCompareFunc = qsort()-style comparison function - * keyCompareData = data to pass to comparison function - * - * Returns: a newly allocated #GTree - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GCompareDataFunc keyCompareFunc, void* keyCompareData) - { - auto __p = g_tree_new_with_data(keyCompareFunc, keyCompareData); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_data"); - } - - this(cast(GTree*) __p); - } - - /** - * Removes all keys and values from the #GTree and decreases its - * reference count by one. If keys and/or values are dynamically - * allocated, you should either free them first or create the #GTree - * using g_tree_new_full(). In the latter case the destroy functions - * you supplied will be called on all keys and values before destroying - * the #GTree. - */ - public void destroy() - { - g_tree_destroy(gTree); - } - - alias foreac = foreach_; - /** - * Calls the given function for each of the key/value pairs in the #GTree. - * The function is passed the key and value of each pair, and the given - * @data parameter. The tree is traversed in sorted order. - * - * The tree may not be modified while iterating over it (you can't - * add/remove items). To remove all items matching a predicate, you need - * to add each item to a list in your #GTraverseFunc as you walk over - * the tree, then walk the list and remove each item. - * - * Params: - * func = the function to call for each node visited. - * If this function returns %TRUE, the traversal is stopped. - * userData = user data to pass to the function - */ - public void foreach_(GTraverseFunc func, void* userData) - { - g_tree_foreach(gTree, func, userData); - } - - /** - * Calls the given function for each of the nodes in the #GTree. - * The function is passed the pointer to the particular node, and the given - * @data parameter. The tree traversal happens in-order. - * - * The tree may not be modified while iterating over it (you can't - * add/remove items). To remove all items matching a predicate, you need - * to add each item to a list in your #GTraverseFunc as you walk over - * the tree, then walk the list and remove each item. - * - * Params: - * func = the function to call for each node visited. - * If this function returns %TRUE, the traversal is stopped. - * userData = user data to pass to the function - * - * Since: 2.68 - */ - public void foreachNode(GTraverseNodeFunc func, void* userData) - { - g_tree_foreach_node(gTree, func, userData); - } - - /** - * Gets the height of a #GTree. - * - * If the #GTree contains no nodes, the height is 0. - * If the #GTree contains only one root node the height is 1. - * If the root node has children the height is 2, etc. - * - * Returns: the height of @tree - */ - public int height() - { - return g_tree_height(gTree); - } - - /** - * Inserts a key/value pair into a #GTree. - * - * Inserts a new key and value into a #GTree as g_tree_insert_node() does, - * only this function does not return the inserted or set node. - * - * Params: - * key = the key to insert - * value = the value corresponding to the key - */ - public void insert(void* key, void* value) - { - g_tree_insert(gTree, key, value); - } - - /** - * Inserts a key/value pair into a #GTree. - * - * If the given key already exists in the #GTree its corresponding value - * is set to the new value. If you supplied a @value_destroy_func when - * creating the #GTree, the old value is freed using that function. If - * you supplied a @key_destroy_func when creating the #GTree, the passed - * key is freed using that function. - * - * The tree is automatically 'balanced' as new key/value pairs are added, - * so that the distance from the root to every leaf is as small as possible. - * The cost of maintaining a balanced tree while inserting new key/value - * result in a O(n log(n)) operation where most of the other operations - * are O(log(n)). - * - * Params: - * key = the key to insert - * value = the value corresponding to the key - * - * Returns: the inserted (or set) node. - * - * Since: 2.68 - */ - public TreeNode insertNode(void* key, void* value) - { - auto __p = g_tree_insert_node(gTree, key, value); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } - - /** - * Gets the value corresponding to the given key. Since a #GTree is - * automatically balanced as key/value pairs are added, key lookup - * is O(log n) (where n is the number of key/value pairs in the tree). - * - * Params: - * key = the key to look up - * - * Returns: the value corresponding to the key, or %NULL - * if the key was not found - */ - public void* lookup(void* key) - { - return g_tree_lookup(gTree, key); - } - - /** - * Looks up a key in the #GTree, returning the original key and the - * associated value. This is useful if you need to free the memory - * allocated for the original key, for example before calling - * g_tree_remove(). - * - * Params: - * lookupKey = the key to look up - * origKey = returns the original key - * value = returns the value associated with the key - * - * Returns: %TRUE if the key was found in the #GTree - */ - public bool lookupExtended(void* lookupKey, out void* origKey, out void* value) - { - return g_tree_lookup_extended(gTree, lookupKey, &origKey, &value) != 0; - } - - /** - * Gets the tree node corresponding to the given key. Since a #GTree is - * automatically balanced as key/value pairs are added, key lookup - * is O(log n) (where n is the number of key/value pairs in the tree). - * - * Params: - * key = the key to look up - * - * Returns: the tree node corresponding to - * the key, or %NULL if the key was not found - * - * Since: 2.68 - */ - public TreeNode lookupNode(void* key) - { - auto __p = g_tree_lookup_node(gTree, key); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } - - /** - * Gets the lower bound node corresponding to the given key, - * or %NULL if the tree is empty or all the nodes in the tree - * have keys that are strictly lower than the searched key. - * - * The lower bound is the first node that has its key greater - * than or equal to the searched key. - * - * Params: - * key = the key to calculate the lower bound for - * - * Returns: the tree node corresponding to - * the lower bound, or %NULL if the tree is empty or has only - * keys strictly lower than the searched key. - * - * Since: 2.68 - */ - public TreeNode lowerBound(void* key) - { - auto __p = g_tree_lower_bound(gTree, key); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } - - /** - * Gets the number of nodes in a #GTree. - * - * Returns: the number of nodes in @tree - */ - public int nnodes() - { - return g_tree_nnodes(gTree); - } - - /** - * Returns the first in-order node of the tree, or %NULL - * for an empty tree. - * - * Returns: the first node in the tree - * - * Since: 2.68 - */ - public TreeNode nodeFirst() - { - auto __p = g_tree_node_first(gTree); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } - - /** - * Returns the last in-order node of the tree, or %NULL - * for an empty tree. - * - * Returns: the last node in the tree - * - * Since: 2.68 - */ - public TreeNode nodeLast() - { - auto __p = g_tree_node_last(gTree); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } - - alias doref = ref_; - /** - * Increments the reference count of @tree by one. - * - * It is safe to call this function from any thread. - * - * Returns: the passed in #GTree - * - * Since: 2.22 - */ - public BBTree ref_() - { - auto __p = g_tree_ref(gTree); - - if(__p is null) - { - return null; - } - - return new BBTree(cast(GTree*) __p, true); - } - - /** - * Removes a key/value pair from a #GTree. - * - * If the #GTree was created using g_tree_new_full(), the key and value - * are freed using the supplied destroy functions, otherwise you have to - * make sure that any dynamically allocated values are freed yourself. - * If the key does not exist in the #GTree, the function does nothing. - * - * The cost of maintaining a balanced tree while removing a key/value - * result in a O(n log(n)) operation where most of the other operations - * are O(log(n)). - * - * Params: - * key = the key to remove - * - * Returns: %TRUE if the key was found (prior to 2.8, this function - * returned nothing) - */ - public bool remove(void* key) - { - return g_tree_remove(gTree, key) != 0; - } - - /** - * Inserts a new key and value into a #GTree as g_tree_replace_node() does, - * only this function does not return the inserted or set node. - * - * Params: - * key = the key to insert - * value = the value corresponding to the key - */ - public void replace(void* key, void* value) - { - g_tree_replace(gTree, key, value); - } - - /** - * Inserts a new key and value into a #GTree similar to g_tree_insert_node(). - * The difference is that if the key already exists in the #GTree, it gets - * replaced by the new key. If you supplied a @value_destroy_func when - * creating the #GTree, the old value is freed using that function. If you - * supplied a @key_destroy_func when creating the #GTree, the old key is - * freed using that function. - * - * The tree is automatically 'balanced' as new key/value pairs are added, - * so that the distance from the root to every leaf is as small as possible. - * - * Params: - * key = the key to insert - * value = the value corresponding to the key - * - * Returns: the inserted (or set) node. - * - * Since: 2.68 - */ - public TreeNode replaceNode(void* key, void* value) - { - auto __p = g_tree_replace_node(gTree, key, value); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } - - /** - * Searches a #GTree using @search_func. - * - * The @search_func is called with a pointer to the key of a key/value - * pair in the tree, and the passed in @user_data. If @search_func returns - * 0 for a key/value pair, then the corresponding value is returned as - * the result of g_tree_search(). If @search_func returns -1, searching - * will proceed among the key/value pairs that have a smaller key; if - * @search_func returns 1, searching will proceed among the key/value - * pairs that have a larger key. - * - * Params: - * searchFunc = a function used to search the #GTree - * userData = the data passed as the second argument to @search_func - * - * Returns: the value corresponding to the found key, or %NULL - * if the key was not found - */ - public void* search(GCompareFunc searchFunc, void* userData) - { - return g_tree_search(gTree, searchFunc, userData); - } - - /** - * Searches a #GTree using @search_func. - * - * The @search_func is called with a pointer to the key of a key/value - * pair in the tree, and the passed in @user_data. If @search_func returns - * 0 for a key/value pair, then the corresponding node is returned as - * the result of g_tree_search(). If @search_func returns -1, searching - * will proceed among the key/value pairs that have a smaller key; if - * @search_func returns 1, searching will proceed among the key/value - * pairs that have a larger key. - * - * Params: - * searchFunc = a function used to search the #GTree - * userData = the data passed as the second argument to @search_func - * - * Returns: the node corresponding to the - * found key, or %NULL if the key was not found - * - * Since: 2.68 - */ - public TreeNode searchNode(GCompareFunc searchFunc, void* userData) - { - auto __p = g_tree_search_node(gTree, searchFunc, userData); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } - - /** - * Removes a key and its associated value from a #GTree without calling - * the key and value destroy functions. - * - * If the key does not exist in the #GTree, the function does nothing. - * - * Params: - * key = the key to remove - * - * Returns: %TRUE if the key was found (prior to 2.8, this function - * returned nothing) - */ - public bool steal(void* key) - { - return g_tree_steal(gTree, key) != 0; - } - - /** - * Calls the given function for each node in the #GTree. - * - * Deprecated: The order of a balanced tree is somewhat arbitrary. - * If you just want to visit all nodes in sorted order, use - * g_tree_foreach() instead. If you really need to visit nodes in - * a different order, consider using an [n-ary tree][glib-N-ary-Trees]. - * - * Params: - * traverseFunc = the function to call for each node visited. If this - * function returns %TRUE, the traversal is stopped. - * traverseType = the order in which nodes are visited, one of %G_IN_ORDER, - * %G_PRE_ORDER and %G_POST_ORDER - * userData = user data to pass to the function - */ - public void traverse(GTraverseFunc traverseFunc, GTraverseType traverseType, void* userData) - { - g_tree_traverse(gTree, traverseFunc, traverseType, userData); - } - - /** - * Decrements the reference count of @tree by one. - * If the reference count drops to 0, all keys and values will - * be destroyed (if destroy functions were specified) and all - * memory allocated by @tree will be released. - * - * It is safe to call this function from any thread. - * - * Since: 2.22 - */ - public void unref() - { - g_tree_unref(gTree); - } - - /** - * Gets the upper bound node corresponding to the given key, - * or %NULL if the tree is empty or all the nodes in the tree - * have keys that are lower than or equal to the searched key. - * - * The upper bound is the first node that has its key strictly greater - * than the searched key. - * - * Params: - * key = the key to calculate the upper bound for - * - * Returns: the tree node corresponding to the - * upper bound, or %NULL if the tree is empty or has only keys - * lower than or equal to the searched key. - * - * Since: 2.68 - */ - public TreeNode upperBound(void* key) - { - auto __p = g_tree_upper_bound(gTree, key); - - if(__p is null) - { - return null; - } - - return new TreeNode(cast(GTreeNode*) __p); - } -} diff --git a/generated/gtkd/glib/Base64.d b/generated/gtkd/glib/Base64.d deleted file mode 100644 index 3766d0cfa..000000000 --- a/generated/gtkd/glib/Base64.d +++ /dev/null @@ -1,194 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.Base64; - -private import glib.Str; -private import glib.c.functions; -public import glib.c.types; - - -/** */ -public struct Base64 -{ - /** - * Incrementally decode a sequence of binary data from its Base-64 stringified - * representation. By calling this function multiple times you can convert - * data in chunks to avoid having to have the full encoded data in memory. - * - * The output buffer must be large enough to fit all the data that will - * be written to it. Since base64 encodes 3 bytes in 4 chars you need - * at least: (@len / 4) * 3 + 3 bytes (+ 3 may be needed in case of non-zero - * state). - * - * Params: - * inn = binary input data - * len = max length of @in data to decode - * output = output buffer - * state = Saved state between steps, initialize to 0 - * save = Saved state between steps, initialize to 0 - * - * Return: The number of bytes of output that was written - * - * Since: 2.12 - */ - public static size_t decodeStep(string inn, ref ubyte[] output, ref int state, ref uint save) - { - auto p = g_base64_decode_step(Str.toStringz(inn), cast(int)inn.length, cast(char*)output.ptr, &state, &save); - - return p; - } - - /** - */ - - /** - * Decode a sequence of Base-64 encoded text into binary data - * by overwriting the input data. - * - * Params: - * text = zero-terminated - * string with base64 text to decode - * - * Returns: The binary data that @text responds. This pointer - * is the same as the input @text. - * - * Since: 2.20 - */ - public static char[] decodeInplace(ref char[] text) - { - size_t outLen = cast(size_t)text.length; - - auto __p = g_base64_decode_inplace(text.ptr, &outLen); - - text = text[0..outLen]; - - return __p[0 .. outLen]; - } - - /** - * Decode a sequence of Base-64 encoded text into binary data. Note - * that the returned binary data is not necessarily zero-terminated, - * so it should not be used as a character string. - * - * Params: - * text = zero-terminated string with base64 text to decode - * - * Returns: newly allocated buffer containing the binary data - * that @text represents. The returned buffer must - * be freed with g_free(). - * - * Since: 2.12 - */ - public static char[] decode(string text) - { - size_t outLen; - - auto __p = g_base64_decode(Str.toStringz(text), &outLen); - - return cast(char[])__p[0 .. outLen]; - } - - /** - * Encode a sequence of binary data into its Base-64 stringified - * representation. - * - * Params: - * data = the binary data to encode - * - * Returns: a newly allocated, zero-terminated Base-64 - * encoded string representing @data. The returned string must - * be freed with g_free(). - * - * Since: 2.12 - */ - public static string encode(char[] data) - { - auto retStr = g_base64_encode(data.ptr, cast(size_t)data.length); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Flush the status from a sequence of calls to g_base64_encode_step(). - * - * The output buffer must be large enough to fit all the data that will - * be written to it. It will need up to 4 bytes, or up to 5 bytes if - * line-breaking is enabled. - * - * The @out array will not be automatically nul-terminated. - * - * Params: - * breakLines = whether to break long lines - * out_ = pointer to destination buffer - * state = Saved state from g_base64_encode_step() - * save = Saved state from g_base64_encode_step() - * - * Returns: The number of bytes of output that was written - * - * Since: 2.12 - */ - public static size_t encodeClose(bool breakLines, out char[] out_, ref int state, ref int save) - { - return g_base64_encode_close(breakLines, out_.ptr, &state, &save); - } - - /** - * Incrementally encode a sequence of binary data into its Base-64 stringified - * representation. By calling this function multiple times you can convert - * data in chunks to avoid having to have the full encoded data in memory. - * - * When all of the data has been converted you must call - * g_base64_encode_close() to flush the saved state. - * - * The output buffer must be large enough to fit all the data that will - * be written to it. Due to the way base64 encodes you will need - * at least: (@len / 3 + 1) * 4 + 4 bytes (+ 4 may be needed in case of - * non-zero state). If you enable line-breaking you will need at least: - * ((@len / 3 + 1) * 4 + 4) / 76 + 1 bytes of extra space. - * - * @break_lines is typically used when putting base64-encoded data in emails. - * It breaks the lines at 76 columns instead of putting all of the text on - * the same line. This avoids problems with long lines in the email system. - * Note however that it breaks the lines with `LF` characters, not - * `CR LF` sequences, so the result cannot be passed directly to SMTP - * or certain other protocols. - * - * Params: - * in_ = the binary data to encode - * breakLines = whether to break long lines - * out_ = pointer to destination buffer - * state = Saved state between steps, initialize to 0 - * save = Saved state between steps, initialize to 0 - * - * Returns: The number of bytes of output that was written - * - * Since: 2.12 - */ - public static size_t encodeStep(char[] in_, bool breakLines, out char[] out_, ref int state, ref int save) - { - return g_base64_encode_step(in_.ptr, cast(size_t)in_.length, breakLines, out_.ptr, &state, &save); - } -} diff --git a/generated/gtkd/glib/BookmarkFile.d b/generated/gtkd/glib/BookmarkFile.d deleted file mode 100644 index 47b0050fe..000000000 --- a/generated/gtkd/glib/BookmarkFile.d +++ /dev/null @@ -1,1429 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.BookmarkFile; - -private import glib.ConstructionException; -private import glib.DateTime; -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -public import glib.c.types; -private import gtkd.Loader; - - -/** - * The `GBookmarkFile` structure contains only - * private data and should not be directly accessed. - */ -public class BookmarkFile -{ - /** the main Gtk struct */ - protected GBookmarkFile* gBookmarkFile; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GBookmarkFile* getBookmarkFileStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gBookmarkFile; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gBookmarkFile; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GBookmarkFile* gBookmarkFile, bool ownedRef = false) - { - this.gBookmarkFile = gBookmarkFile; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GLIB) && ownedRef ) - g_bookmark_file_free(gBookmarkFile); - } - - - /** - * Adds the application with @name and @exec to the list of - * applications that have registered a bookmark for @uri into - * @bookmark. - * - * Every bookmark inside a #GBookmarkFile must have at least an - * application registered. Each application must provide a name, a - * command line useful for launching the bookmark, the number of times - * the bookmark has been registered by the application and the last - * time the application registered this bookmark. - * - * If @name is %NULL, the name of the application will be the - * same returned by g_get_application_name(); if @exec is %NULL, the - * command line will be a composition of the program name as - * returned by g_get_prgname() and the "\%u" modifier, which will be - * expanded to the bookmark's URI. - * - * This function will automatically take care of updating the - * registrations count and timestamping in case an application - * with the same @name had already registered a bookmark for - * @uri inside @bookmark. - * - * If no bookmark for @uri is found, one is created. - * - * Params: - * uri = a valid URI - * name = the name of the application registering the bookmark - * or %NULL - * exec = command line to be used to launch the bookmark or %NULL - * - * Since: 2.12 - */ - public void addApplication(string uri, string name, string exec) - { - g_bookmark_file_add_application(gBookmarkFile, Str.toStringz(uri), Str.toStringz(name), Str.toStringz(exec)); - } - - /** - * Adds @group to the list of groups to which the bookmark for @uri - * belongs to. - * - * If no bookmark for @uri is found then it is created. - * - * Params: - * uri = a valid URI - * group = the group name to be added - * - * Since: 2.12 - */ - public void addGroup(string uri, string group) - { - g_bookmark_file_add_group(gBookmarkFile, Str.toStringz(uri), Str.toStringz(group)); - } - - /** - * Frees a #GBookmarkFile. - * - * Since: 2.12 - */ - public void free() - { - g_bookmark_file_free(gBookmarkFile); - ownedRef = false; - } - - /** - * Gets the time the bookmark for @uri was added to @bookmark - * - * In the event the URI cannot be found, -1 is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Deprecated: Use g_bookmark_file_get_added_date_time() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * - * Returns: a timestamp - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public uint getAdded(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_get_added(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the time the bookmark for @uri was added to @bookmark - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * - * Returns: a #GDateTime - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public DateTime getAddedDateTime(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_get_added_date_time(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new DateTime(cast(GDateTime*) __p); - } - - /** - * Gets the registration information of @app_name for the bookmark for - * @uri. See g_bookmark_file_set_application_info() for more information about - * the returned data. - * - * The string returned in @app_exec must be freed. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the - * event that no application with name @app_name has registered a bookmark - * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting - * the command line fails, an error of the #G_SHELL_ERROR domain is - * set and %FALSE is returned. - * - * Deprecated: Use g_bookmark_file_get_application_info() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * name = an application's name - * exec = return location for the command line of the application, or %NULL - * count = return location for the registration count, or %NULL - * stamp = return location for the last registration time, or %NULL - * - * Returns: %TRUE on success. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool getAppInfo(string uri, string name, out string exec, out uint count, out uint stamp) - { - char* outexec = null; - GError* err = null; - - auto __p = g_bookmark_file_get_app_info(gBookmarkFile, Str.toStringz(uri), Str.toStringz(name), &outexec, &count, &stamp, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - exec = Str.toString(outexec); - - return __p; - } - - /** - * Gets the registration information of @app_name for the bookmark for - * @uri. See g_bookmark_file_set_application_info() for more information about - * the returned data. - * - * The string returned in @app_exec must be freed. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the - * event that no application with name @app_name has registered a bookmark - * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting - * the command line fails, an error of the #G_SHELL_ERROR domain is - * set and %FALSE is returned. - * - * Params: - * uri = a valid URI - * name = an application's name - * exec = return location for the command line of the application, or %NULL - * count = return location for the registration count, or %NULL - * stamp = return location for the last registration time, or %NULL - * - * Returns: %TRUE on success. - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public bool getApplicationInfo(string uri, string name, out string exec, out uint count, out DateTime stamp) - { - char* outexec = null; - GDateTime* outstamp = null; - GError* err = null; - - auto __p = g_bookmark_file_get_application_info(gBookmarkFile, Str.toStringz(uri), Str.toStringz(name), &outexec, &count, &outstamp, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - exec = Str.toString(outexec); - stamp = new DateTime(outstamp); - - return __p; - } - - /** - * Retrieves the names of the applications that have registered the - * bookmark for @uri. - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * - * Returns: a newly allocated %NULL-terminated array of strings. - * Use g_strfreev() to free it. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public string[] getApplications(string uri) - { - size_t length; - GError* err = null; - - auto retStr = g_bookmark_file_get_applications(gBookmarkFile, Str.toStringz(uri), &length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr, length); - } - - /** - * Retrieves the description of the bookmark for @uri. - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * - * Returns: a newly allocated string or %NULL if the specified - * URI cannot be found. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public string getDescription(string uri) - { - GError* err = null; - - auto retStr = g_bookmark_file_get_description(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Retrieves the list of group names of the bookmark for @uri. - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * The returned array is %NULL terminated, so @length may optionally - * be %NULL. - * - * Params: - * uri = a valid URI - * - * Returns: a newly allocated %NULL-terminated array of group names. - * Use g_strfreev() to free it. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public string[] getGroups(string uri) - { - size_t length; - GError* err = null; - - auto retStr = g_bookmark_file_get_groups(gBookmarkFile, Str.toStringz(uri), &length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr, length); - } - - /** - * Gets the icon of the bookmark for @uri. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * href = return location for the icon's location or %NULL - * mimeType = return location for the icon's MIME type or %NULL - * - * Returns: %TRUE if the icon for the bookmark for the URI was found. - * You should free the returned strings. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool getIcon(string uri, out string href, out string mimeType) - { - char* outhref = null; - char* outmimeType = null; - GError* err = null; - - auto __p = g_bookmark_file_get_icon(gBookmarkFile, Str.toStringz(uri), &outhref, &outmimeType, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - href = Str.toString(outhref); - mimeType = Str.toString(outmimeType); - - return __p; - } - - /** - * Gets whether the private flag of the bookmark for @uri is set. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the - * event that the private flag cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE. - * - * Params: - * uri = a valid URI - * - * Returns: %TRUE if the private flag is set, %FALSE otherwise. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool getIsPrivate(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_get_is_private(gBookmarkFile, Str.toStringz(uri), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Retrieves the MIME type of the resource pointed by @uri. - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the - * event that the MIME type cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE. - * - * Params: - * uri = a valid URI - * - * Returns: a newly allocated string or %NULL if the specified - * URI cannot be found. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public string getMimeType(string uri) - { - GError* err = null; - - auto retStr = g_bookmark_file_get_mime_type(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Gets the time when the bookmark for @uri was last modified. - * - * In the event the URI cannot be found, -1 is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Deprecated: Use g_bookmark_file_get_modified_date_time() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * - * Returns: a timestamp - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public uint getModified(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_get_modified(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the time when the bookmark for @uri was last modified. - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * - * Returns: a #GDateTime - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public DateTime getModifiedDateTime(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_get_modified_date_time(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new DateTime(cast(GDateTime*) __p); - } - - /** - * Gets the number of bookmarks inside @bookmark. - * - * Returns: the number of bookmarks - * - * Since: 2.12 - */ - public int getSize() - { - return g_bookmark_file_get_size(gBookmarkFile); - } - - /** - * Returns the title of the bookmark for @uri. - * - * If @uri is %NULL, the title of @bookmark is returned. - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI or %NULL - * - * Returns: a newly allocated string or %NULL if the specified - * URI cannot be found. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public string getTitle(string uri) - { - GError* err = null; - - auto retStr = g_bookmark_file_get_title(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Returns all URIs of the bookmarks in the bookmark file @bookmark. - * The array of returned URIs will be %NULL-terminated, so @length may - * optionally be %NULL. - * - * Returns: a newly allocated %NULL-terminated array of strings. - * Use g_strfreev() to free it. - * - * Since: 2.12 - */ - public string[] getUris() - { - size_t length; - - auto retStr = g_bookmark_file_get_uris(gBookmarkFile, &length); - - scope(exit) Str.freeStringArray(retStr); - return Str.toStringArray(retStr, length); - } - - /** - * Gets the time the bookmark for @uri was last visited. - * - * In the event the URI cannot be found, -1 is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Deprecated: Use g_bookmark_file_get_visited_date_time() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * - * Returns: a timestamp. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public uint getVisited(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_get_visited(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Gets the time the bookmark for @uri was last visited. - * - * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * - * Returns: a #GDateTime - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public DateTime getVisitedDateTime(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_get_visited_date_time(gBookmarkFile, Str.toStringz(uri), &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - if(__p is null) - { - return null; - } - - return new DateTime(cast(GDateTime*) __p); - } - - /** - * Checks whether the bookmark for @uri inside @bookmark has been - * registered by application @name. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * name = the name of the application - * - * Returns: %TRUE if the application @name was found - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool hasApplication(string uri, string name) - { - GError* err = null; - - auto __p = g_bookmark_file_has_application(gBookmarkFile, Str.toStringz(uri), Str.toStringz(name), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Checks whether @group appears in the list of groups to which - * the bookmark for @uri belongs to. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * uri = a valid URI - * group = the group name to be searched - * - * Returns: %TRUE if @group was found. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool hasGroup(string uri, string group) - { - GError* err = null; - - auto __p = g_bookmark_file_has_group(gBookmarkFile, Str.toStringz(uri), Str.toStringz(group), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Looks whether the desktop bookmark has an item with its URI set to @uri. - * - * Params: - * uri = a valid URI - * - * Returns: %TRUE if @uri is inside @bookmark, %FALSE otherwise - * - * Since: 2.12 - */ - public bool hasItem(string uri) - { - return g_bookmark_file_has_item(gBookmarkFile, Str.toStringz(uri)) != 0; - } - - /** - * Loads a bookmark file from memory into an empty #GBookmarkFile - * structure. If the object cannot be created then @error is set to a - * #GBookmarkFileError. - * - * Params: - * data = desktop bookmarks - * loaded in memory - * - * Returns: %TRUE if a desktop bookmark could be loaded. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool loadFromData(string data) - { - GError* err = null; - - auto __p = g_bookmark_file_load_from_data(gBookmarkFile, Str.toStringz(data), cast(size_t)data.length, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * This function looks for a desktop bookmark file named @file in the - * paths returned from g_get_user_data_dir() and g_get_system_data_dirs(), - * loads the file into @bookmark and returns the file's full path in - * @full_path. If the file could not be loaded then @error is - * set to either a #GFileError or #GBookmarkFileError. - * - * Params: - * file = a relative path to a filename to open and parse - * fullPath = return location for a string - * containing the full path of the file, or %NULL - * - * Returns: %TRUE if a key file could be loaded, %FALSE otherwise - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool loadFromDataDirs(string file, out string fullPath) - { - char* outfullPath = null; - GError* err = null; - - auto __p = g_bookmark_file_load_from_data_dirs(gBookmarkFile, Str.toStringz(file), &outfullPath, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - fullPath = Str.toString(outfullPath); - - return __p; - } - - /** - * Loads a desktop bookmark file into an empty #GBookmarkFile structure. - * If the file could not be loaded then @error is set to either a #GFileError - * or #GBookmarkFileError. - * - * Params: - * filename = the path of a filename to load, in the - * GLib file name encoding - * - * Returns: %TRUE if a desktop bookmark file could be loaded - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool loadFromFile(string filename) - { - GError* err = null; - - auto __p = g_bookmark_file_load_from_file(gBookmarkFile, Str.toStringz(filename), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Changes the URI of a bookmark item from @old_uri to @new_uri. Any - * existing bookmark for @new_uri will be overwritten. If @new_uri is - * %NULL, then the bookmark is removed. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * - * Params: - * oldUri = a valid URI - * newUri = a valid URI, or %NULL - * - * Returns: %TRUE if the URI was successfully changed - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool moveItem(string oldUri, string newUri) - { - GError* err = null; - - auto __p = g_bookmark_file_move_item(gBookmarkFile, Str.toStringz(oldUri), Str.toStringz(newUri), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes application registered with @name from the list of applications - * that have registered a bookmark for @uri inside @bookmark. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * In the event that no application with name @app_name has registered - * a bookmark for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. - * - * Params: - * uri = a valid URI - * name = the name of the application - * - * Returns: %TRUE if the application was successfully removed. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool removeApplication(string uri, string name) - { - GError* err = null; - - auto __p = g_bookmark_file_remove_application(gBookmarkFile, Str.toStringz(uri), Str.toStringz(name), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes @group from the list of groups to which the bookmark - * for @uri belongs to. - * - * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. - * In the event no group was defined, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE. - * - * Params: - * uri = a valid URI - * group = the group name to be removed - * - * Returns: %TRUE if @group was successfully removed. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool removeGroup(string uri, string group) - { - GError* err = null; - - auto __p = g_bookmark_file_remove_group(gBookmarkFile, Str.toStringz(uri), Str.toStringz(group), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Removes the bookmark for @uri from the bookmark file @bookmark. - * - * Params: - * uri = a valid URI - * - * Returns: %TRUE if the bookmark was removed successfully. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool removeItem(string uri) - { - GError* err = null; - - auto __p = g_bookmark_file_remove_item(gBookmarkFile, Str.toStringz(uri), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the time the bookmark for @uri was added into @bookmark. - * - * If no bookmark for @uri is found then it is created. - * - * Deprecated: Use g_bookmark_file_set_added_date_time() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * added = a timestamp or -1 to use the current time - * - * Since: 2.12 - */ - public void setAdded(string uri, uint added) - { - g_bookmark_file_set_added(gBookmarkFile, Str.toStringz(uri), added); - } - - /** - * Sets the time the bookmark for @uri was added into @bookmark. - * - * If no bookmark for @uri is found then it is created. - * - * Params: - * uri = a valid URI - * added = a #GDateTime - * - * Since: 2.66 - */ - public void setAddedDateTime(string uri, DateTime added) - { - g_bookmark_file_set_added_date_time(gBookmarkFile, Str.toStringz(uri), (added is null) ? null : added.getDateTimeStruct()); - } - - /** - * Sets the meta-data of application @name inside the list of - * applications that have registered a bookmark for @uri inside - * @bookmark. - * - * You should rarely use this function; use g_bookmark_file_add_application() - * and g_bookmark_file_remove_application() instead. - * - * @name can be any UTF-8 encoded string used to identify an - * application. - * @exec can have one of these two modifiers: "\%f", which will - * be expanded as the local file name retrieved from the bookmark's - * URI; "\%u", which will be expanded as the bookmark's URI. - * The expansion is done automatically when retrieving the stored - * command line using the g_bookmark_file_get_application_info() function. - * @count is the number of times the application has registered the - * bookmark; if is < 0, the current registration count will be increased - * by one, if is 0, the application with @name will be removed from - * the list of registered applications. - * @stamp is the Unix time of the last registration; if it is -1, the - * current time will be used. - * - * If you try to remove an application by setting its registration count to - * zero, and no bookmark for @uri is found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND; similarly, - * in the event that no application @name has registered a bookmark - * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. Otherwise, if no bookmark - * for @uri is found, one is created. - * - * Deprecated: Use g_bookmark_file_set_application_info() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * name = an application's name - * exec = an application's command line - * count = the number of registrations done for this application - * stamp = the time of the last registration for this application - * - * Returns: %TRUE if the application's meta-data was successfully - * changed. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool setAppInfo(string uri, string name, string exec, int count, uint stamp) - { - GError* err = null; - - auto __p = g_bookmark_file_set_app_info(gBookmarkFile, Str.toStringz(uri), Str.toStringz(name), Str.toStringz(exec), count, stamp, &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets the meta-data of application @name inside the list of - * applications that have registered a bookmark for @uri inside - * @bookmark. - * - * You should rarely use this function; use g_bookmark_file_add_application() - * and g_bookmark_file_remove_application() instead. - * - * @name can be any UTF-8 encoded string used to identify an - * application. - * @exec can have one of these two modifiers: "\%f", which will - * be expanded as the local file name retrieved from the bookmark's - * URI; "\%u", which will be expanded as the bookmark's URI. - * The expansion is done automatically when retrieving the stored - * command line using the g_bookmark_file_get_application_info() function. - * @count is the number of times the application has registered the - * bookmark; if is < 0, the current registration count will be increased - * by one, if is 0, the application with @name will be removed from - * the list of registered applications. - * @stamp is the Unix time of the last registration. - * - * If you try to remove an application by setting its registration count to - * zero, and no bookmark for @uri is found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND; similarly, - * in the event that no application @name has registered a bookmark - * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. Otherwise, if no bookmark - * for @uri is found, one is created. - * - * Params: - * uri = a valid URI - * name = an application's name - * exec = an application's command line - * count = the number of registrations done for this application - * stamp = the time of the last registration for this application, - * which may be %NULL if @count is 0 - * - * Returns: %TRUE if the application's meta-data was successfully - * changed. - * - * Since: 2.66 - * - * Throws: GException on failure. - */ - public bool setApplicationInfo(string uri, string name, string exec, int count, DateTime stamp) - { - GError* err = null; - - auto __p = g_bookmark_file_set_application_info(gBookmarkFile, Str.toStringz(uri), Str.toStringz(name), Str.toStringz(exec), count, (stamp is null) ? null : stamp.getDateTimeStruct(), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** - * Sets @description as the description of the bookmark for @uri. - * - * If @uri is %NULL, the description of @bookmark is set. - * - * If a bookmark for @uri cannot be found then it is created. - * - * Params: - * uri = a valid URI or %NULL - * description = a string - * - * Since: 2.12 - */ - public void setDescription(string uri, string description) - { - g_bookmark_file_set_description(gBookmarkFile, Str.toStringz(uri), Str.toStringz(description)); - } - - /** - * Sets a list of group names for the item with URI @uri. Each previously - * set group name list is removed. - * - * If @uri cannot be found then an item for it is created. - * - * Params: - * uri = an item's URI - * groups = an array of - * group names, or %NULL to remove all groups - * - * Since: 2.12 - */ - public void setGroups(string uri, string[] groups) - { - g_bookmark_file_set_groups(gBookmarkFile, Str.toStringz(uri), Str.toStringzArray(groups), cast(size_t)groups.length); - } - - /** - * Sets the icon for the bookmark for @uri. If @href is %NULL, unsets - * the currently set icon. @href can either be a full URL for the icon - * file or the icon name following the Icon Naming specification. - * - * If no bookmark for @uri is found one is created. - * - * Params: - * uri = a valid URI - * href = the URI of the icon for the bookmark, or %NULL - * mimeType = the MIME type of the icon for the bookmark - * - * Since: 2.12 - */ - public void setIcon(string uri, string href, string mimeType) - { - g_bookmark_file_set_icon(gBookmarkFile, Str.toStringz(uri), Str.toStringz(href), Str.toStringz(mimeType)); - } - - /** - * Sets the private flag of the bookmark for @uri. - * - * If a bookmark for @uri cannot be found then it is created. - * - * Params: - * uri = a valid URI - * isPrivate = %TRUE if the bookmark should be marked as private - * - * Since: 2.12 - */ - public void setIsPrivate(string uri, bool isPrivate) - { - g_bookmark_file_set_is_private(gBookmarkFile, Str.toStringz(uri), isPrivate); - } - - /** - * Sets @mime_type as the MIME type of the bookmark for @uri. - * - * If a bookmark for @uri cannot be found then it is created. - * - * Params: - * uri = a valid URI - * mimeType = a MIME type - * - * Since: 2.12 - */ - public void setMimeType(string uri, string mimeType) - { - g_bookmark_file_set_mime_type(gBookmarkFile, Str.toStringz(uri), Str.toStringz(mimeType)); - } - - /** - * Sets the last time the bookmark for @uri was last modified. - * - * If no bookmark for @uri is found then it is created. - * - * The "modified" time should only be set when the bookmark's meta-data - * was actually changed. Every function of #GBookmarkFile that - * modifies a bookmark also changes the modification time, except for - * g_bookmark_file_set_visited_date_time(). - * - * Deprecated: Use g_bookmark_file_set_modified_date_time() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * modified = a timestamp or -1 to use the current time - * - * Since: 2.12 - */ - public void setModified(string uri, uint modified) - { - g_bookmark_file_set_modified(gBookmarkFile, Str.toStringz(uri), modified); - } - - /** - * Sets the last time the bookmark for @uri was last modified. - * - * If no bookmark for @uri is found then it is created. - * - * The "modified" time should only be set when the bookmark's meta-data - * was actually changed. Every function of #GBookmarkFile that - * modifies a bookmark also changes the modification time, except for - * g_bookmark_file_set_visited_date_time(). - * - * Params: - * uri = a valid URI - * modified = a #GDateTime - * - * Since: 2.66 - */ - public void setModifiedDateTime(string uri, DateTime modified) - { - g_bookmark_file_set_modified_date_time(gBookmarkFile, Str.toStringz(uri), (modified is null) ? null : modified.getDateTimeStruct()); - } - - /** - * Sets @title as the title of the bookmark for @uri inside the - * bookmark file @bookmark. - * - * If @uri is %NULL, the title of @bookmark is set. - * - * If a bookmark for @uri cannot be found then it is created. - * - * Params: - * uri = a valid URI or %NULL - * title = a UTF-8 encoded string - * - * Since: 2.12 - */ - public void setTitle(string uri, string title) - { - g_bookmark_file_set_title(gBookmarkFile, Str.toStringz(uri), Str.toStringz(title)); - } - - /** - * Sets the time the bookmark for @uri was last visited. - * - * If no bookmark for @uri is found then it is created. - * - * The "visited" time should only be set if the bookmark was launched, - * either using the command line retrieved by g_bookmark_file_get_application_info() - * or by the default application for the bookmark's MIME type, retrieved - * using g_bookmark_file_get_mime_type(). Changing the "visited" time - * does not affect the "modified" time. - * - * Deprecated: Use g_bookmark_file_set_visited_date_time() instead, as - * `time_t` is deprecated due to the year 2038 problem. - * - * Params: - * uri = a valid URI - * visited = a timestamp or -1 to use the current time - * - * Since: 2.12 - */ - public void setVisited(string uri, uint visited) - { - g_bookmark_file_set_visited(gBookmarkFile, Str.toStringz(uri), visited); - } - - /** - * Sets the time the bookmark for @uri was last visited. - * - * If no bookmark for @uri is found then it is created. - * - * The "visited" time should only be set if the bookmark was launched, - * either using the command line retrieved by g_bookmark_file_get_application_info() - * or by the default application for the bookmark's MIME type, retrieved - * using g_bookmark_file_get_mime_type(). Changing the "visited" time - * does not affect the "modified" time. - * - * Params: - * uri = a valid URI - * visited = a #GDateTime - * - * Since: 2.66 - */ - public void setVisitedDateTime(string uri, DateTime visited) - { - g_bookmark_file_set_visited_date_time(gBookmarkFile, Str.toStringz(uri), (visited is null) ? null : visited.getDateTimeStruct()); - } - - /** - * This function outputs @bookmark as a string. - * - * Returns: a newly allocated string holding the contents of the #GBookmarkFile - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public string toData() - { - size_t length; - GError* err = null; - - auto retStr = g_bookmark_file_to_data(gBookmarkFile, &length, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr, length); - } - - /** - * This function outputs @bookmark into a file. The write process is - * guaranteed to be atomic by using g_file_set_contents() internally. - * - * Params: - * filename = path of the output file - * - * Returns: %TRUE if the file was successfully written. - * - * Since: 2.12 - * - * Throws: GException on failure. - */ - public bool toFile(string filename) - { - GError* err = null; - - auto __p = g_bookmark_file_to_file(gBookmarkFile, Str.toStringz(filename), &err) != 0; - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - return __p; - } - - /** */ - public static GQuark errorQuark() - { - return g_bookmark_file_error_quark(); - } - - /** - * Creates a new empty #GBookmarkFile object. - * - * Use g_bookmark_file_load_from_file(), g_bookmark_file_load_from_data() - * or g_bookmark_file_load_from_data_dirs() to read an existing bookmark - * file. - * - * Returns: an empty #GBookmarkFile - * - * Since: 2.12 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_bookmark_file_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GBookmarkFile*) __p); - } -} diff --git a/generated/gtkd/glib/ByteArray.d b/generated/gtkd/glib/ByteArray.d deleted file mode 100644 index 60815e918..000000000 --- a/generated/gtkd/glib/ByteArray.d +++ /dev/null @@ -1,398 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.ByteArray; - -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.c.functions; -public import glib.c.types; - - -/** - * Contains the public fields of a GByteArray. - */ -public class ByteArray -{ - /** the main Gtk struct */ - protected GByteArray* gByteArray; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GByteArray* getByteArrayStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gByteArray; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gByteArray; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GByteArray* gByteArray, bool ownedRef = false) - { - this.gByteArray = gByteArray; - this.ownedRef = ownedRef; - } - - - /** - * Adds the given bytes to the end of the #GByteArray. - * The array will grow in size automatically if necessary. - * - * Params: - * data = the byte data to be added - * len = the number of bytes to add - * - * Returns: the #GByteArray - */ - public ByteArray append(ubyte* data, uint len) - { - auto __p = g_byte_array_append(gByteArray, data, len); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - /** - * Frees the memory allocated by the #GByteArray. If @free_segment is - * %TRUE it frees the actual byte data. If the reference count of - * @array is greater than one, the #GByteArray wrapper is preserved but - * the size of @array will be set to zero. - * - * Params: - * freeSegment = if %TRUE the actual byte data is freed as well - * - * Returns: the element data if @free_segment is %FALSE, otherwise - * %NULL. The element data should be freed using g_free(). - */ - public ubyte* free(bool freeSegment) - { - return g_byte_array_free(gByteArray, freeSegment); - } - - /** - * Transfers the data from the #GByteArray into a new immutable #GBytes. - * - * The #GByteArray is freed unless the reference count of @array is greater - * than one, the #GByteArray wrapper is preserved but the size of @array - * will be set to zero. - * - * This is identical to using g_bytes_new_take() and g_byte_array_free() - * together. - * - * Returns: a new immutable #GBytes representing same - * byte data that was in the array - * - * Since: 2.32 - */ - public Bytes freeToBytes() - { - auto __p = g_byte_array_free_to_bytes(gByteArray); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Creates a new #GByteArray with a reference count of 1. - * - * Returns: the new #GByteArray - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_byte_array_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GByteArray*) __p); - } - - /** - * Create byte array containing the data. The data will be owned by the array - * and will be freed with g_free(), i.e. it could be allocated using g_strdup(). - * - * Do not use it if @len is greater than %G_MAXUINT. #GByteArray - * stores the length of its data in #guint, which may be shorter than - * #gsize. - * - * Params: - * data = byte data for the array - * - * Returns: a new #GByteArray - * - * Since: 2.32 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data) - { - auto __p = g_byte_array_new_take(data.ptr, cast(size_t)data.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new_take"); - } - - this(cast(GByteArray*) __p); - } - - /** - * Adds the given data to the start of the #GByteArray. - * The array will grow in size automatically if necessary. - * - * Params: - * data = the byte data to be added - * len = the number of bytes to add - * - * Returns: the #GByteArray - */ - public ByteArray prepend(ubyte* data, uint len) - { - auto __p = g_byte_array_prepend(gByteArray, data, len); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - alias doref = ref_; - /** - * Atomically increments the reference count of @array by one. - * This function is thread-safe and may be called from any thread. - * - * Returns: The passed in #GByteArray - * - * Since: 2.22 - */ - public ByteArray ref_() - { - auto __p = g_byte_array_ref(gByteArray); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - /** - * Removes the byte at the given index from a #GByteArray. - * The following bytes are moved down one place. - * - * Params: - * index = the index of the byte to remove - * - * Returns: the #GByteArray - */ - public ByteArray removeIndex(uint index) - { - auto __p = g_byte_array_remove_index(gByteArray, index); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - /** - * Removes the byte at the given index from a #GByteArray. The last - * element in the array is used to fill in the space, so this function - * does not preserve the order of the #GByteArray. But it is faster - * than g_byte_array_remove_index(). - * - * Params: - * index = the index of the byte to remove - * - * Returns: the #GByteArray - */ - public ByteArray removeIndexFast(uint index) - { - auto __p = g_byte_array_remove_index_fast(gByteArray, index); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - /** - * Removes the given number of bytes starting at the given index from a - * #GByteArray. The following elements are moved to close the gap. - * - * Params: - * index = the index of the first byte to remove - * length = the number of bytes to remove - * - * Returns: the #GByteArray - * - * Since: 2.4 - */ - public ByteArray removeRange(uint index, uint length) - { - auto __p = g_byte_array_remove_range(gByteArray, index, length); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - /** - * Sets the size of the #GByteArray, expanding it if necessary. - * - * Params: - * length = the new size of the #GByteArray - * - * Returns: the #GByteArray - */ - public ByteArray setSize(uint length) - { - auto __p = g_byte_array_set_size(gByteArray, length); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - /** - * Creates a new #GByteArray with @reserved_size bytes preallocated. - * This avoids frequent reallocation, if you are going to add many - * bytes to the array. Note however that the size of the array is still - * 0. - * - * Params: - * reservedSize = number of bytes preallocated - * - * Returns: the new #GByteArray - */ - public static ByteArray sizedNew(uint reservedSize) - { - auto __p = g_byte_array_sized_new(reservedSize); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p); - } - - /** - * Sorts a byte array, using @compare_func which should be a - * qsort()-style comparison function (returns less than zero for first - * arg is less than second arg, zero for equal, greater than zero if - * first arg is greater than second arg). - * - * If two array elements compare equal, their order in the sorted array - * is undefined. If you want equal elements to keep their order (i.e. - * you want a stable sort) you can write a comparison function that, - * if two elements would otherwise compare equal, compares them by - * their addresses. - * - * Params: - * compareFunc = comparison function - */ - public void sort(GCompareFunc compareFunc) - { - g_byte_array_sort(gByteArray, compareFunc); - } - - /** - * Like g_byte_array_sort(), but the comparison function takes an extra - * user data argument. - * - * Params: - * compareFunc = comparison function - * userData = data to pass to @compare_func - */ - public void sortWithData(GCompareDataFunc compareFunc, void* userData) - { - g_byte_array_sort_with_data(gByteArray, compareFunc, userData); - } - - /** - * Frees the data in the array and resets the size to zero, while - * the underlying array is preserved for use elsewhere and returned - * to the caller. - * - * Params: - * len = pointer to retrieve the number of - * elements of the original array - * - * Returns: the element data, which should be - * freed using g_free(). - * - * Since: 2.64 - */ - public ubyte* steal(out size_t len) - { - return g_byte_array_steal(gByteArray, &len); - } - - /** - * Atomically decrements the reference count of @array by one. If the - * reference count drops to 0, all memory allocated by the array is - * released. This function is thread-safe and may be called from any - * thread. - * - * Since: 2.22 - */ - public void unref() - { - g_byte_array_unref(gByteArray); - } -} diff --git a/generated/gtkd/glib/Bytes.d b/generated/gtkd/glib/Bytes.d deleted file mode 100644 index 534580839..000000000 --- a/generated/gtkd/glib/Bytes.d +++ /dev/null @@ -1,368 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.Bytes; - -private import glib.ByteArray; -private import glib.ConstructionException; -private import glib.c.functions; -public import glib.c.types; -private import gtkd.Loader; - - -/** - * A simple refcounted data type representing an immutable sequence of zero or - * more bytes from an unspecified origin. - * - * The purpose of a #GBytes is to keep the memory region that it holds - * alive for as long as anyone holds a reference to the bytes. When - * the last reference count is dropped, the memory is released. Multiple - * unrelated callers can use byte data in the #GBytes without coordinating - * their activities, resting assured that the byte data will not change or - * move while they hold a reference. - * - * A #GBytes can come from many different origins that may have - * different procedures for freeing the memory region. Examples are - * memory from g_malloc(), from memory slices, from a #GMappedFile or - * memory from other allocators. - * - * #GBytes work well as keys in #GHashTable. Use g_bytes_equal() and - * g_bytes_hash() as parameters to g_hash_table_new() or g_hash_table_new_full(). - * #GBytes can also be used as keys in a #GTree by passing the g_bytes_compare() - * function to g_tree_new(). - * - * The data pointed to by this bytes must not be modified. For a mutable - * array of bytes see #GByteArray. Use g_bytes_unref_to_array() to create a - * mutable array for a #GBytes sequence. To create an immutable #GBytes from - * a mutable #GByteArray, use the g_byte_array_free_to_bytes() function. - * - * Since: 2.32 - */ -public class Bytes -{ - /** the main Gtk struct */ - protected GBytes* gBytes; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GBytes* getBytesStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gBytes; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gBytes; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GBytes* gBytes, bool ownedRef = false) - { - this.gBytes = gBytes; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GLIB) && ownedRef ) - g_bytes_unref(gBytes); - } - - - /** - * Creates a new #GBytes from @data. - * - * @data is copied. If @size is 0, @data may be %NULL. - * - * Params: - * data = the data to be used for the bytes - * - * Returns: a new #GBytes - * - * Since: 2.32 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data) - { - auto __p = g_bytes_new(data.ptr, cast(size_t)data.length); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GBytes*) __p); - } - - /** - * Creates a #GBytes from @data. - * - * When the last reference is dropped, @free_func will be called with the - * @user_data argument. - * - * @data must not be modified after this call is made until @free_func has - * been called to indicate that the bytes is no longer in use. - * - * @data may be %NULL if @size is 0. - * - * Params: - * data = the data to be used for the bytes - * freeFunc = the function to call to release the data - * userData = data to pass to @free_func - * - * Returns: a new #GBytes - * - * Since: 2.32 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(ubyte[] data, GDestroyNotify freeFunc, void* userData) - { - auto __p = g_bytes_new_with_free_func(data.ptr, cast(size_t)data.length, freeFunc, userData); - - if(__p is null) - { - throw new ConstructionException("null returned by new_with_free_func"); - } - - this(cast(GBytes*) __p); - } - - /** - * Compares the two #GBytes values. - * - * This function can be used to sort GBytes instances in lexicographical order. - * - * If @bytes1 and @bytes2 have different length but the shorter one is a - * prefix of the longer one then the shorter one is considered to be less than - * the longer one. Otherwise the first byte where both differ is used for - * comparison. If @bytes1 has a smaller value at that position it is - * considered less, otherwise greater than @bytes2. - * - * Params: - * bytes2 = a pointer to a #GBytes to compare with @bytes1 - * - * Returns: a negative value if @bytes1 is less than @bytes2, a positive value - * if @bytes1 is greater than @bytes2, and zero if @bytes1 is equal to - * @bytes2 - * - * Since: 2.32 - */ - public int compare(Bytes bytes2) - { - return g_bytes_compare(gBytes, (bytes2 is null) ? null : bytes2.getBytesStruct()); - } - - /** - * Compares the two #GBytes values being pointed to and returns - * %TRUE if they are equal. - * - * This function can be passed to g_hash_table_new() as the @key_equal_func - * parameter, when using non-%NULL #GBytes pointers as keys in a #GHashTable. - * - * Params: - * bytes2 = a pointer to a #GBytes to compare with @bytes1 - * - * Returns: %TRUE if the two keys match. - * - * Since: 2.32 - */ - public bool equal(Bytes bytes2) - { - return g_bytes_equal(gBytes, (bytes2 is null) ? null : bytes2.getBytesStruct()) != 0; - } - - /** - * Get the byte data in the #GBytes. This data should not be modified. - * - * This function will always return the same pointer for a given #GBytes. - * - * %NULL may be returned if @size is 0. This is not guaranteed, as the #GBytes - * may represent an empty string with @data non-%NULL and @size as 0. %NULL will - * not be returned if @size is non-zero. - * - * Returns: a pointer to the byte data, or %NULL - * - * Since: 2.32 - */ - public ubyte[] getData() - { - size_t size; - - auto __p = g_bytes_get_data(gBytes, &size); - - return cast(ubyte[])__p[0 .. size]; - } - - /** - * Get the size of the byte data in the #GBytes. - * - * This function will always return the same value for a given #GBytes. - * - * Returns: the size - * - * Since: 2.32 - */ - public size_t getSize() - { - return g_bytes_get_size(gBytes); - } - - /** - * Creates an integer hash code for the byte data in the #GBytes. - * - * This function can be passed to g_hash_table_new() as the @key_hash_func - * parameter, when using non-%NULL #GBytes pointers as keys in a #GHashTable. - * - * Returns: a hash value corresponding to the key. - * - * Since: 2.32 - */ - public uint hash() - { - return g_bytes_hash(gBytes); - } - - /** - * Creates a #GBytes which is a subsection of another #GBytes. The @offset + - * @length may not be longer than the size of @bytes. - * - * A reference to @bytes will be held by the newly created #GBytes until - * the byte data is no longer needed. - * - * Since 2.56, if @offset is 0 and @length matches the size of @bytes, then - * @bytes will be returned with the reference count incremented by 1. If @bytes - * is a slice of another #GBytes, then the resulting #GBytes will reference - * the same #GBytes instead of @bytes. This allows consumers to simplify the - * usage of #GBytes when asynchronously writing to streams. - * - * Params: - * offset = offset which subsection starts at - * length = length of subsection - * - * Returns: a new #GBytes - * - * Since: 2.32 - */ - public Bytes newFromBytes(size_t offset, size_t length) - { - auto __p = g_bytes_new_from_bytes(gBytes, offset, length); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - alias doref = ref_; - /** - * Increase the reference count on @bytes. - * - * Returns: the #GBytes - * - * Since: 2.32 - */ - public Bytes ref_() - { - auto __p = g_bytes_ref(gBytes); - - if(__p is null) - { - return null; - } - - return new Bytes(cast(GBytes*) __p, true); - } - - /** - * Releases a reference on @bytes. This may result in the bytes being - * freed. If @bytes is %NULL, it will return immediately. - * - * Since: 2.32 - */ - public void unref() - { - g_bytes_unref(gBytes); - } - - /** - * Unreferences the bytes, and returns a new mutable #GByteArray containing - * the same byte data. - * - * As an optimization, the byte data is transferred to the array without copying - * if this was the last reference to bytes and bytes was created with - * g_bytes_new(), g_bytes_new_take() or g_byte_array_free_to_bytes(). In all - * other cases the data is copied. - * - * Do not use it if @bytes contains more than %G_MAXUINT - * bytes. #GByteArray stores the length of its data in #guint, which - * may be shorter than #gsize, that @bytes is using. - * - * Returns: a new mutable #GByteArray containing the same byte data - * - * Since: 2.32 - */ - public ByteArray unrefToArray() - { - auto __p = g_bytes_unref_to_array(gBytes); - - if(__p is null) - { - return null; - } - - return new ByteArray(cast(GByteArray*) __p, true); - } - - /** - * Unreferences the bytes, and returns a pointer the same byte data - * contents. - * - * As an optimization, the byte data is returned without copying if this was - * the last reference to bytes and bytes was created with g_bytes_new(), - * g_bytes_new_take() or g_byte_array_free_to_bytes(). In all other cases the - * data is copied. - * - * Returns: a pointer to the same byte data, which should be - * freed with g_free() - * - * Since: 2.32 - */ - public ubyte[] unrefToData() - { - size_t size; - - auto __p = g_bytes_unref_to_data(gBytes, &size); - - return cast(ubyte[])__p[0 .. size]; - } -} diff --git a/generated/gtkd/glib/CharacterSet.d b/generated/gtkd/glib/CharacterSet.d deleted file mode 100644 index d75c0b15b..000000000 --- a/generated/gtkd/glib/CharacterSet.d +++ /dev/null @@ -1,623 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.CharacterSet; - -private import glib.ErrorG; -private import glib.GException; -private import glib.Str; -private import glib.c.functions; -public import glib.c.types; - - -/** */ -public struct CharacterSet -{ - - /** - * Converts a string from one character set to another. - * - * Note that you should use g_iconv() for streaming conversions. - * Despite the fact that @bytes_read can return information about partial - * characters, the g_convert_... functions are not generally suitable - * for streaming. If the underlying converter maintains internal state, - * then this won't be preserved across successive calls to g_convert(), - * g_convert_with_iconv() or g_convert_with_fallback(). (An example of - * this is the GNU C converter for CP1255 which does not emit a base - * character until it knows that the next character is not a mark that - * could combine with the base character.) - * - * Using extensions such as "//TRANSLIT" may not work (or may not work - * well) on many platforms. Consider using g_str_to_ascii() instead. - * - * Params: - * str = the string to convert. - * toCodeset = name of character set into which to convert @str - * fromCodeset = character set of @str. - * bytesRead = location to store the number of bytes in - * the input string that were successfully converted, or %NULL. - * Even if the conversion was successful, this may be - * less than @len if there were partial characters - * at the end of the input. If the error - * #G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value - * stored will be the byte offset after the last valid - * input sequence. - * - * Returns: If the conversion was successful, a newly allocated buffer - * containing the converted string, which must be freed with g_free(). - * Otherwise %NULL and @error will be set. - * - * Throws: GException on failure. - */ - public static string convert(string str, string toCodeset, string fromCodeset, out size_t bytesRead) - { - size_t bytesWritten; - GError* err = null; - - auto retStr = g_convert(Str.toStringz(str), cast(ptrdiff_t)str.length, Str.toStringz(toCodeset), Str.toStringz(fromCodeset), &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr, bytesWritten); - } - - /** */ - public static GQuark convertErrorQuark() - { - return g_convert_error_quark(); - } - - /** - * Converts a string from one character set to another, possibly - * including fallback sequences for characters not representable - * in the output. Note that it is not guaranteed that the specification - * for the fallback sequences in @fallback will be honored. Some - * systems may do an approximate conversion from @from_codeset - * to @to_codeset in their iconv() functions, - * in which case GLib will simply return that approximate conversion. - * - * Note that you should use g_iconv() for streaming conversions. - * Despite the fact that @bytes_read can return information about partial - * characters, the g_convert_... functions are not generally suitable - * for streaming. If the underlying converter maintains internal state, - * then this won't be preserved across successive calls to g_convert(), - * g_convert_with_iconv() or g_convert_with_fallback(). (An example of - * this is the GNU C converter for CP1255 which does not emit a base - * character until it knows that the next character is not a mark that - * could combine with the base character.) - * - * Params: - * str = the string to convert. - * toCodeset = name of character set into which to convert @str - * fromCodeset = character set of @str. - * fallback = UTF-8 string to use in place of characters not - * present in the target encoding. (The string must be - * representable in the target encoding). - * If %NULL, characters not in the target encoding will - * be represented as Unicode escapes \uxxxx or \Uxxxxyyyy. - * bytesRead = location to store the number of bytes in - * the input string that were successfully converted, or %NULL. - * Even if the conversion was successful, this may be - * less than @len if there were partial characters - * at the end of the input. - * - * Returns: If the conversion was successful, a newly allocated buffer - * containing the converted string, which must be freed with g_free(). - * Otherwise %NULL and @error will be set. - * - * Throws: GException on failure. - */ - public static string convertWithFallback(string str, string toCodeset, string fromCodeset, string fallback, out size_t bytesRead) - { - size_t bytesWritten; - GError* err = null; - - auto retStr = g_convert_with_fallback(Str.toStringz(str), cast(ptrdiff_t)str.length, Str.toStringz(toCodeset), Str.toStringz(fromCodeset), Str.toStringz(fallback), &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr, bytesWritten); - } - - /** - * Converts a string from one character set to another. - * - * Note that you should use g_iconv() for streaming conversions. - * Despite the fact that @bytes_read can return information about partial - * characters, the g_convert_... functions are not generally suitable - * for streaming. If the underlying converter maintains internal state, - * then this won't be preserved across successive calls to g_convert(), - * g_convert_with_iconv() or g_convert_with_fallback(). (An example of - * this is the GNU C converter for CP1255 which does not emit a base - * character until it knows that the next character is not a mark that - * could combine with the base character.) - * - * Characters which are valid in the input character set, but which have no - * representation in the output character set will result in a - * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE error. This is in contrast to the iconv() - * specification, which leaves this behaviour implementation defined. Note that - * this is the same error code as is returned for an invalid byte sequence in - * the input character set. To get defined behaviour for conversion of - * unrepresentable characters, use g_convert_with_fallback(). - * - * Params: - * str = the string to convert. - * converter = conversion descriptor from g_iconv_open() - * bytesRead = location to store the number of bytes in - * the input string that were successfully converted, or %NULL. - * Even if the conversion was successful, this may be - * less than @len if there were partial characters - * at the end of the input. If the error - * #G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value - * stored will be the byte offset after the last valid - * input sequence. - * - * Returns: If the conversion was successful, a newly allocated buffer - * containing the converted string, which must be freed with - * g_free(). Otherwise %NULL and @error will be set. - * - * Throws: GException on failure. - */ - public static string convertWithIconv(string str, GIConv converter, out size_t bytesRead) - { - size_t bytesWritten; - GError* err = null; - - auto retStr = g_convert_with_iconv(Str.toStringz(str), cast(ptrdiff_t)str.length, converter, &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr, bytesWritten); - } - - /** - * Returns the display basename for the particular filename, guaranteed - * to be valid UTF-8. The display name might not be identical to the filename, - * for instance there might be problems converting it to UTF-8, and some files - * can be translated in the display. - * - * If GLib cannot make sense of the encoding of @filename, as a last resort it - * replaces unknown characters with U+FFFD, the Unicode replacement character. - * You can search the result for the UTF-8 encoding of this character (which is - * "\357\277\275" in octal notation) to find out if @filename was in an invalid - * encoding. - * - * You must pass the whole absolute pathname to this functions so that - * translation of well known locations can be done. - * - * This function is preferred over g_filename_display_name() if you know the - * whole path, as it allows translation. - * - * Params: - * filename = an absolute pathname in the - * GLib file name encoding - * - * Returns: a newly allocated string containing - * a rendition of the basename of the filename in valid UTF-8 - * - * Since: 2.6 - */ - public static string filenameDisplayBasename(string filename) - { - auto retStr = g_filename_display_basename(Str.toStringz(filename)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Converts a filename into a valid UTF-8 string. The conversion is - * not necessarily reversible, so you should keep the original around - * and use the return value of this function only for display purposes. - * Unlike g_filename_to_utf8(), the result is guaranteed to be non-%NULL - * even if the filename actually isn't in the GLib file name encoding. - * - * If GLib cannot make sense of the encoding of @filename, as a last resort it - * replaces unknown characters with U+FFFD, the Unicode replacement character. - * You can search the result for the UTF-8 encoding of this character (which is - * "\357\277\275" in octal notation) to find out if @filename was in an invalid - * encoding. - * - * If you know the whole pathname of the file you should use - * g_filename_display_basename(), since that allows location-based - * translation of filenames. - * - * Params: - * filename = a pathname hopefully in the - * GLib file name encoding - * - * Returns: a newly allocated string containing - * a rendition of the filename in valid UTF-8 - * - * Since: 2.6 - */ - public static string filenameDisplayName(string filename) - { - auto retStr = g_filename_display_name(Str.toStringz(filename)); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Converts a string from UTF-8 to the encoding GLib uses for - * filenames. Note that on Windows GLib uses UTF-8 for filenames; - * on other platforms, this function indirectly depends on the - * [current locale][setlocale]. - * - * The input string shall not contain nul characters even if the @len - * argument is positive. A nul character found inside the string will result - * in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. If the filename encoding is - * not UTF-8 and the conversion output contains a nul character, the error - * %G_CONVERT_ERROR_EMBEDDED_NUL is set and the function returns %NULL. - * - * Params: - * utf8string = a UTF-8 encoded string. - * len = the length of the string, or -1 if the string is - * nul-terminated. - * bytesRead = location to store the number of bytes in - * the input string that were successfully converted, or %NULL. - * Even if the conversion was successful, this may be - * less than @len if there were partial characters - * at the end of the input. If the error - * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value - * stored will be the byte offset after the last valid - * input sequence. - * bytesWritten = the number of bytes stored in - * the output buffer (not including the terminating nul). - * - * Returns: The converted string, or %NULL on an error. - * - * Throws: GException on failure. - */ - public static string filenameFromUtf8(string utf8string, ptrdiff_t len, out size_t bytesRead, out size_t bytesWritten) - { - GError* err = null; - - auto retStr = g_filename_from_utf8(Str.toStringz(utf8string), len, &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Converts a string which is in the encoding used by GLib for - * filenames into a UTF-8 string. Note that on Windows GLib uses UTF-8 - * for filenames; on other platforms, this function indirectly depends on - * the [current locale][setlocale]. - * - * The input string shall not contain nul characters even if the @len - * argument is positive. A nul character found inside the string will result - * in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. - * If the source encoding is not UTF-8 and the conversion output contains a - * nul character, the error %G_CONVERT_ERROR_EMBEDDED_NUL is set and the - * function returns %NULL. Use g_convert() to produce output that - * may contain embedded nul characters. - * - * Params: - * opsysstring = a string in the encoding for filenames - * len = the length of the string, or -1 if the string is - * nul-terminated (Note that some encodings may allow nul - * bytes to occur inside strings. In that case, using -1 - * for the @len parameter is unsafe) - * bytesRead = location to store the number of bytes in the - * input string that were successfully converted, or %NULL. - * Even if the conversion was successful, this may be - * less than @len if there were partial characters - * at the end of the input. If the error - * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value - * stored will be the byte offset after the last valid - * input sequence. - * bytesWritten = the number of bytes stored in the output - * buffer (not including the terminating nul). - * - * Returns: The converted string, or %NULL on an error. - * - * Throws: GException on failure. - */ - public static string filenameToUtf8(string opsysstring, ptrdiff_t len, out size_t bytesRead, out size_t bytesWritten) - { - GError* err = null; - - auto retStr = g_filename_to_utf8(Str.toStringz(opsysstring), len, &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Obtains the character set for the [current locale][setlocale]; you - * might use this character set as an argument to g_convert(), to convert - * from the current locale's encoding to some other encoding. (Frequently - * g_locale_to_utf8() and g_locale_from_utf8() are nice shortcuts, though.) - * - * On Windows the character set returned by this function is the - * so-called system default ANSI code-page. That is the character set - * used by the "narrow" versions of C library and Win32 functions that - * handle file names. It might be different from the character set - * used by the C library's current locale. - * - * On Linux, the character set is found by consulting nl_langinfo() if - * available. If not, the environment variables `LC_ALL`, `LC_CTYPE`, `LANG` - * and `CHARSET` are queried in order. - * - * The return value is %TRUE if the locale's encoding is UTF-8, in that - * case you can perhaps avoid calling g_convert(). - * - * The string returned in @charset is not allocated, and should not be - * freed. - * - * Params: - * charset = return location for character set - * name, or %NULL. - * - * Returns: %TRUE if the returned charset is UTF-8 - */ - public static bool getCharset(out string charset) - { - char* outcharset = null; - - auto __p = g_get_charset(&outcharset) != 0; - - charset = Str.toString(outcharset); - - return __p; - } - - /** - * Gets the character set for the current locale. - * - * Returns: a newly allocated string containing the name - * of the character set. This string must be freed with g_free(). - */ - public static string getCodeset() - { - auto retStr = g_get_codeset(); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Determines the preferred character sets used for filenames. - * The first character set from the @charsets is the filename encoding, the - * subsequent character sets are used when trying to generate a displayable - * representation of a filename, see g_filename_display_name(). - * - * On Unix, the character sets are determined by consulting the - * environment variables `G_FILENAME_ENCODING` and `G_BROKEN_FILENAMES`. - * On Windows, the character set used in the GLib API is always UTF-8 - * and said environment variables have no effect. - * - * `G_FILENAME_ENCODING` may be set to a comma-separated list of - * character set names. The special token "\@locale" is taken - * to mean the character set for the [current locale][setlocale]. - * If `G_FILENAME_ENCODING` is not set, but `G_BROKEN_FILENAMES` is, - * the character set of the current locale is taken as the filename - * encoding. If neither environment variable is set, UTF-8 is taken - * as the filename encoding, but the character set of the current locale - * is also put in the list of encodings. - * - * The returned @charsets belong to GLib and must not be freed. - * - * Note that on Unix, regardless of the locale character set or - * `G_FILENAME_ENCODING` value, the actual file names present - * on a system might be in any random encoding or just gibberish. - * - * Params: - * filenameCharsets = return location for the %NULL-terminated list of encoding names - * - * Returns: %TRUE if the filename encoding is UTF-8. - * - * Since: 2.6 - */ - public static bool getFilenameCharsets(out string[] filenameCharsets) - { - char** outfilenameCharsets = null; - - auto __p = g_get_filename_charsets(&outfilenameCharsets) != 0; - - filenameCharsets = Str.toStringArray(outfilenameCharsets); - - return __p; - } - - /** - * Converts a string from UTF-8 to the encoding used for strings by - * the C runtime (usually the same as that used by the operating - * system) in the [current locale][setlocale]. On Windows this means - * the system codepage. - * - * The input string shall not contain nul characters even if the @len - * argument is positive. A nul character found inside the string will result - * in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. Use g_convert() to convert - * input that may contain embedded nul characters. - * - * Params: - * utf8string = a UTF-8 encoded string - * len = the length of the string, or -1 if the string is - * nul-terminated. - * bytesRead = location to store the number of bytes in the - * input string that were successfully converted, or %NULL. - * Even if the conversion was successful, this may be - * less than @len if there were partial characters - * at the end of the input. If the error - * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value - * stored will be the byte offset after the last valid - * input sequence. - * - * Returns: A newly-allocated buffer containing the converted string, - * or %NULL on an error, and error will be set. - * - * Throws: GException on failure. - */ - public static string localeFromUtf8(string utf8string, ptrdiff_t len, out size_t bytesRead) - { - size_t bytesWritten; - GError* err = null; - - auto retStr = g_locale_from_utf8(Str.toStringz(utf8string), len, &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr, bytesWritten); - } - - /** - * Converts a string which is in the encoding used for strings by - * the C runtime (usually the same as that used by the operating - * system) in the [current locale][setlocale] into a UTF-8 string. - * - * If the source encoding is not UTF-8 and the conversion output contains a - * nul character, the error %G_CONVERT_ERROR_EMBEDDED_NUL is set and the - * function returns %NULL. - * If the source encoding is UTF-8, an embedded nul character is treated with - * the %G_CONVERT_ERROR_ILLEGAL_SEQUENCE error for backward compatibility with - * earlier versions of this library. Use g_convert() to produce output that - * may contain embedded nul characters. - * - * Params: - * opsysstring = a string in the - * encoding of the current locale. On Windows - * this means the system codepage. - * bytesRead = location to store the number of bytes in the - * input string that were successfully converted, or %NULL. - * Even if the conversion was successful, this may be - * less than @len if there were partial characters - * at the end of the input. If the error - * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value - * stored will be the byte offset after the last valid - * input sequence. - * bytesWritten = the number of bytes stored in the output - * buffer (not including the terminating nul). - * - * Returns: The converted string, or %NULL on an error. - * - * Throws: GException on failure. - */ - public static string localeToUtf8(string opsysstring, out size_t bytesRead, out size_t bytesWritten) - { - GError* err = null; - - auto retStr = g_locale_to_utf8(Str.toStringz(opsysstring), cast(ptrdiff_t)opsysstring.length, &bytesRead, &bytesWritten, &err); - - if (err !is null) - { - throw new GException( new ErrorG(err) ); - } - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Computes a list of applicable locale names with a locale category name, - * which can be used to construct the fallback locale-dependent filenames - * or search paths. The returned list is sorted from most desirable to - * least desirable and always contains the default locale "C". - * - * This function consults the environment variables `LANGUAGE`, `LC_ALL`, - * @category_name, and `LANG` to find the list of locales specified by the - * user. - * - * g_get_language_names() returns g_get_language_names_with_category("LC_MESSAGES"). - * - * Params: - * categoryName = a locale category name - * - * Returns: a %NULL-terminated array of strings owned by - * the thread g_get_language_names_with_category was called from. - * It must not be modified or freed. It must be copied if planned to be used in another thread. - * - * Since: 2.58 - */ - public static string[] getLanguageNamesWithCategory(string categoryName) - { - return Str.toStringArray(g_get_language_names_with_category(Str.toStringz(categoryName))); - } - - /** - * Obtains the character set used by the console attached to the process, - * which is suitable for printing output to the terminal. - * - * Usually this matches the result returned by g_get_charset(), but in - * environments where the locale's character set does not match the encoding - * of the console this function tries to guess a more suitable value instead. - * - * On Windows the character set returned by this function is the - * output code page used by the console associated with the calling process. - * If the codepage can't be determined (for example because there is no - * console attached) UTF-8 is assumed. - * - * The return value is %TRUE if the locale's encoding is UTF-8, in that - * case you can perhaps avoid calling g_convert(). - * - * The string returned in @charset is not allocated, and should not be - * freed. - * - * Params: - * charset = return location for character set - * name, or %NULL. - * - * Returns: %TRUE if the returned charset is UTF-8 - * - * Since: 2.62 - */ - public static bool getConsoleCharset(out string charset) - { - char* outcharset = null; - - auto __p = g_get_console_charset(&outcharset) != 0; - - charset = Str.toString(outcharset); - - return __p; - } -} diff --git a/generated/gtkd/glib/Checksum.d b/generated/gtkd/glib/Checksum.d deleted file mode 100644 index 58546b397..000000000 --- a/generated/gtkd/glib/Checksum.d +++ /dev/null @@ -1,308 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.Checksum; - -private import glib.Bytes; -private import glib.ConstructionException; -private import glib.Str; -private import glib.c.functions; -public import glib.c.types; -private import gtkd.Loader; - - -/** - * An opaque structure representing a checksumming operation. - * To create a new GChecksum, use g_checksum_new(). To free - * a GChecksum, use g_checksum_free(). - * - * Since: 2.16 - */ -public class Checksum -{ - /** the main Gtk struct */ - protected GChecksum* gChecksum; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GChecksum* getChecksumStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gChecksum; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gChecksum; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GChecksum* gChecksum, bool ownedRef = false) - { - this.gChecksum = gChecksum; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GLIB) && ownedRef ) - g_checksum_free(gChecksum); - } - - /** - * Gets the digest from checksum as a raw binary vector and places it - * into buffer. The size of the digest depends on the type of checksum. - * - * Once this function has been called, the Checksum is closed and can - * no longer be updated with update(). - * - * Params: - * buffer = output buffer - * digestLen = an inout parameter. The caller initializes it to the size of buffer. - * After the call it contains the length of the digest. - * - * Since: 2.16 - */ - public void getDigest(ref ubyte[] buffer) - { - size_t digestLen = buffer.length; - - g_checksum_get_digest(gChecksum, buffer.ptr, &digestLen); - - buffer = buffer[0 .. digestLen]; - } - - /** - */ - - /** - * Creates a new #GChecksum, using the checksum algorithm @checksum_type. - * If the @checksum_type is not known, %NULL is returned. - * A #GChecksum can be used to compute the checksum, or digest, of an - * arbitrary binary blob, using different hashing algorithms. - * - * A #GChecksum works by feeding a binary blob through g_checksum_update() - * until there is data to be checked; the digest can then be extracted - * using g_checksum_get_string(), which will return the checksum as a - * hexadecimal string; or g_checksum_get_digest(), which will return a - * vector of raw bytes. Once either g_checksum_get_string() or - * g_checksum_get_digest() have been called on a #GChecksum, the checksum - * will be closed and it won't be possible to call g_checksum_update() - * on it anymore. - * - * Params: - * checksumType = the desired type of checksum - * - * Returns: the newly created #GChecksum, or %NULL. - * Use g_checksum_free() to free the memory allocated by it. - * - * Since: 2.16 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GChecksumType checksumType) - { - auto __p = g_checksum_new(checksumType); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GChecksum*) __p); - } - - /** - * Copies a #GChecksum. If @checksum has been closed, by calling - * g_checksum_get_string() or g_checksum_get_digest(), the copied - * checksum will be closed as well. - * - * Returns: the copy of the passed #GChecksum. Use - * g_checksum_free() when finished using it. - * - * Since: 2.16 - */ - public Checksum copy() - { - auto __p = g_checksum_copy(gChecksum); - - if(__p is null) - { - return null; - } - - return new Checksum(cast(GChecksum*) __p, true); - } - - /** - * Frees the memory allocated for @checksum. - * - * Since: 2.16 - */ - public void free() - { - g_checksum_free(gChecksum); - ownedRef = false; - } - - /** - * Gets the digest as a hexadecimal string. - * - * Once this function has been called the #GChecksum can no longer be - * updated with g_checksum_update(). - * - * The hexadecimal characters will be lower case. - * - * Returns: the hexadecimal representation of the checksum. The - * returned string is owned by the checksum and should not be modified - * or freed. - * - * Since: 2.16 - */ - public string getString() - { - return Str.toString(g_checksum_get_string(gChecksum)); - } - - /** - * Resets the state of the @checksum back to its initial state. - * - * Since: 2.18 - */ - public void reset() - { - g_checksum_reset(gChecksum); - } - - /** - * Feeds @data into an existing #GChecksum. The checksum must still be - * open, that is g_checksum_get_string() or g_checksum_get_digest() must - * not have been called on @checksum. - * - * Params: - * data = buffer used to compute the checksum - * - * Since: 2.16 - */ - public void update(char[] data) - { - g_checksum_update(gChecksum, data.ptr, cast(ptrdiff_t)data.length); - } - - /** - * Gets the length in bytes of digests of type @checksum_type - * - * Params: - * checksumType = a #GChecksumType - * - * Returns: the checksum length, or -1 if @checksum_type is - * not supported. - * - * Since: 2.16 - */ - public static ptrdiff_t typeGetLength(GChecksumType checksumType) - { - return g_checksum_type_get_length(checksumType); - } - - /** - * Computes the checksum for a binary @data. This is a - * convenience wrapper for g_checksum_new(), g_checksum_get_string() - * and g_checksum_free(). - * - * The hexadecimal string returned will be in lower case. - * - * Params: - * checksumType = a #GChecksumType - * data = binary blob to compute the digest of - * - * Returns: the digest of the binary data as a - * string in hexadecimal, or %NULL if g_checksum_new() fails for - * @checksum_type. The returned string should be freed with g_free() when - * done using it. - * - * Since: 2.34 - */ - public static string computeChecksumForBytes(GChecksumType checksumType, Bytes data) - { - auto retStr = g_compute_checksum_for_bytes(checksumType, (data is null) ? null : data.getBytesStruct()); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Computes the checksum for a binary @data of @length. This is a - * convenience wrapper for g_checksum_new(), g_checksum_get_string() - * and g_checksum_free(). - * - * The hexadecimal string returned will be in lower case. - * - * Params: - * checksumType = a #GChecksumType - * data = binary blob to compute the digest of - * - * Returns: the digest of the binary data as a - * string in hexadecimal, or %NULL if g_checksum_new() fails for - * @checksum_type. The returned string should be freed with g_free() when - * done using it. - * - * Since: 2.16 - */ - public static string computeChecksumForData(GChecksumType checksumType, char[] data) - { - auto retStr = g_compute_checksum_for_data(checksumType, data.ptr, cast(size_t)data.length); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } - - /** - * Computes the checksum of a string. - * - * The hexadecimal string returned will be in lower case. - * - * Params: - * checksumType = a #GChecksumType - * str = the string to compute the checksum of - * length = the length of the string, or -1 if the string is null-terminated. - * - * Returns: the checksum as a hexadecimal string, - * or %NULL if g_checksum_new() fails for @checksum_type. The returned string - * should be freed with g_free() when done using it. - * - * Since: 2.16 - */ - public static string computeChecksumForString(GChecksumType checksumType, string str, ptrdiff_t length) - { - auto retStr = g_compute_checksum_for_string(checksumType, Str.toStringz(str), length); - - scope(exit) Str.freeString(retStr); - return Str.toString(retStr); - } -} diff --git a/generated/gtkd/glib/Child.d b/generated/gtkd/glib/Child.d deleted file mode 100644 index 1f982a27c..000000000 --- a/generated/gtkd/glib/Child.d +++ /dev/null @@ -1,171 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.Child; - -private import glib.Source; -private import glib.c.functions; -public import glib.c.types; - - -/** */ -public struct Child -{ - - /** - * Sets a function to be called when the child indicated by @pid - * exits, at a default priority, #G_PRIORITY_DEFAULT. - * - * If you obtain @pid from g_spawn_async() or g_spawn_async_with_pipes() - * you will need to pass #G_SPAWN_DO_NOT_REAP_CHILD as flag to - * the spawn function for the child watching to work. - * - * Note that on platforms where #GPid must be explicitly closed - * (see g_spawn_close_pid()) @pid must not be closed while the - * source is still active. Typically, you will want to call - * g_spawn_close_pid() in the callback function for the source. - * - * GLib supports only a single callback per process id. - * On POSIX platforms, the same restrictions mentioned for - * g_child_watch_source_new() apply to this function. - * - * This internally creates a main loop source using - * g_child_watch_source_new() and attaches it to the main loop context - * using g_source_attach(). You can do these steps manually if you - * need greater control. - * - * Params: - * pid = process id to watch. On POSIX the positive pid of a child - * process. On Windows a handle for a process (which doesn't have to be - * a child). - * function_ = function to call - * data = data to pass to @function - * - * Returns: the ID (greater than 0) of the event source. - * - * Since: 2.4 - */ - public static uint childWatchAdd(GPid pid, GChildWatchFunc function_, void* data) - { - return g_child_watch_add(pid, function_, data); - } - - /** - * Sets a function to be called when the child indicated by @pid - * exits, at the priority @priority. - * - * If you obtain @pid from g_spawn_async() or g_spawn_async_with_pipes() - * you will need to pass #G_SPAWN_DO_NOT_REAP_CHILD as flag to - * the spawn function for the child watching to work. - * - * In many programs, you will want to call g_spawn_check_exit_status() - * in the callback to determine whether or not the child exited - * successfully. - * - * Also, note that on platforms where #GPid must be explicitly closed - * (see g_spawn_close_pid()) @pid must not be closed while the source - * is still active. Typically, you should invoke g_spawn_close_pid() - * in the callback function for the source. - * - * GLib supports only a single callback per process id. - * On POSIX platforms, the same restrictions mentioned for - * g_child_watch_source_new() apply to this function. - * - * This internally creates a main loop source using - * g_child_watch_source_new() and attaches it to the main loop context - * using g_source_attach(). You can do these steps manually if you - * need greater control. - * - * Params: - * priority = the priority of the idle source. Typically this will be in the - * range between #G_PRIORITY_DEFAULT_IDLE and #G_PRIORITY_HIGH_IDLE. - * pid = process to watch. On POSIX the positive pid of a child process. On - * Windows a handle for a process (which doesn't have to be a child). - * function_ = function to call - * data = data to pass to @function - * notify = function to call when the idle is removed, or %NULL - * - * Returns: the ID (greater than 0) of the event source. - * - * Since: 2.4 - */ - public static uint childWatchAddFull(int priority, GPid pid, GChildWatchFunc function_, void* data, GDestroyNotify notify) - { - return g_child_watch_add_full(priority, pid, function_, data, notify); - } - - /** - * Creates a new child_watch source. - * - * The source will not initially be associated with any #GMainContext - * and must be added to one with g_source_attach() before it will be - * executed. - * - * Note that child watch sources can only be used in conjunction with - * `g_spawn...` when the %G_SPAWN_DO_NOT_REAP_CHILD flag is used. - * - * Note that on platforms where #GPid must be explicitly closed - * (see g_spawn_close_pid()) @pid must not be closed while the - * source is still active. Typically, you will want to call - * g_spawn_close_pid() in the callback function for the source. - * - * On POSIX platforms, the following restrictions apply to this API - * due to limitations in POSIX process interfaces: - * - * * @pid must be a child of this process - * * @pid must be positive - * * the application must not call `waitpid` with a non-positive - * first argument, for instance in another thread - * * the application must not wait for @pid to exit by any other - * mechanism, including `waitpid(pid, ...)` or a second child-watch - * source for the same @pid - * * the application must not ignore `SIGCHLD` - * - * If any of those conditions are not met, this and related APIs will - * not work correctly. This can often be diagnosed via a GLib warning - * stating that `ECHILD` was received by `waitpid`. - * - * Calling `waitpid` for specific processes other than @pid remains a - * valid thing to do. - * - * Params: - * pid = process to watch. On POSIX the positive pid of a child process. On - * Windows a handle for a process (which doesn't have to be a child). - * - * Returns: the newly-created child watch source - * - * Since: 2.4 - */ - public static Source childWatchSourceNew(GPid pid) - { - auto __p = g_child_watch_source_new(pid); - - if(__p is null) - { - return null; - } - - return new Source(cast(GSource*) __p, true); - } -} diff --git a/generated/gtkd/glib/Cond.d b/generated/gtkd/glib/Cond.d deleted file mode 100644 index 75be32791..000000000 --- a/generated/gtkd/glib/Cond.d +++ /dev/null @@ -1,273 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.Cond; - -private import glib.Mutex; -private import glib.c.functions; -public import glib.c.types; - - -/** - * The #GCond struct is an opaque data structure that represents a - * condition. Threads can block on a #GCond if they find a certain - * condition to be false. If other threads change the state of this - * condition they signal the #GCond, and that causes the waiting - * threads to be woken up. - * - * Consider the following example of a shared variable. One or more - * threads can wait for data to be published to the variable and when - * another thread publishes the data, it can signal one of the waiting - * threads to wake up to collect the data. - * - * Here is an example for using GCond to block a thread until a condition - * is satisfied: - * |[ - * gpointer current_data = NULL; - * GMutex data_mutex; - * GCond data_cond; - * - * void - * push_data (gpointer data) - * { - * g_mutex_lock (&data_mutex); - * current_data = data; - * g_cond_signal (&data_cond); - * g_mutex_unlock (&data_mutex); - * } - * - * gpointer - * pop_data (void) - * { - * gpointer data; - * - * g_mutex_lock (&data_mutex); - * while (!current_data) - * g_cond_wait (&data_cond, &data_mutex); - * data = current_data; - * current_data = NULL; - * g_mutex_unlock (&data_mutex); - * - * return data; - * } - * ]| - * Whenever a thread calls pop_data() now, it will wait until - * current_data is non-%NULL, i.e. until some other thread - * has called push_data(). - * - * The example shows that use of a condition variable must always be - * paired with a mutex. Without the use of a mutex, there would be a - * race between the check of @current_data by the while loop in - * pop_data() and waiting. Specifically, another thread could set - * @current_data after the check, and signal the cond (with nobody - * waiting on it) before the first thread goes to sleep. #GCond is - * specifically useful for its ability to release the mutex and go - * to sleep atomically. - * - * It is also important to use the g_cond_wait() and g_cond_wait_until() - * functions only inside a loop which checks for the condition to be - * true. See g_cond_wait() for an explanation of why the condition may - * not be true even after it returns. - * - * If a #GCond is allocated in static storage then it can be used - * without initialisation. Otherwise, you should call g_cond_init() - * on it and g_cond_clear() when done. - * - * A #GCond should only be accessed via the g_cond_ functions. - */ -public class Cond -{ - /** the main Gtk struct */ - protected GCond* gCond; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GCond* getCondStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gCond; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gCond; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GCond* gCond, bool ownedRef = false) - { - this.gCond = gCond; - this.ownedRef = ownedRef; - } - - - /** - * If threads are waiting for @cond, all of them are unblocked. - * If no threads are waiting for @cond, this function has no effect. - * It is good practice to lock the same mutex as the waiting threads - * while calling this function, though not required. - */ - public void broadcast() - { - g_cond_broadcast(gCond); - } - - /** - * Frees the resources allocated to a #GCond with g_cond_init(). - * - * This function should not be used with a #GCond that has been - * statically allocated. - * - * Calling g_cond_clear() for a #GCond on which threads are - * blocking leads to undefined behaviour. - * - * Since: 2.32 - */ - public void clear() - { - g_cond_clear(gCond); - } - - /** - * Initialises a #GCond so that it can be used. - * - * This function is useful to initialise a #GCond that has been - * allocated as part of a larger structure. It is not necessary to - * initialise a #GCond that has been statically allocated. - * - * To undo the effect of g_cond_init() when a #GCond is no longer - * needed, use g_cond_clear(). - * - * Calling g_cond_init() on an already-initialised #GCond leads - * to undefined behaviour. - * - * Since: 2.32 - */ - public void init() - { - g_cond_init(gCond); - } - - /** - * If threads are waiting for @cond, at least one of them is unblocked. - * If no threads are waiting for @cond, this function has no effect. - * It is good practice to hold the same lock as the waiting thread - * while calling this function, though not required. - */ - public void signal() - { - g_cond_signal(gCond); - } - - /** - * Atomically releases @mutex and waits until @cond is signalled. - * When this function returns, @mutex is locked again and owned by the - * calling thread. - * - * When using condition variables, it is possible that a spurious wakeup - * may occur (ie: g_cond_wait() returns even though g_cond_signal() was - * not called). It's also possible that a stolen wakeup may occur. - * This is when g_cond_signal() is called, but another thread acquires - * @mutex before this thread and modifies the state of the program in - * such a way that when g_cond_wait() is able to return, the expected - * condition is no longer met. - * - * For this reason, g_cond_wait() must always be used in a loop. See - * the documentation for #GCond for a complete example. - * - * Params: - * mutex = a #GMutex that is currently locked - */ - public void wait(Mutex mutex) - { - g_cond_wait(gCond, (mutex is null) ? null : mutex.getMutexStruct()); - } - - /** - * Waits until either @cond is signalled or @end_time has passed. - * - * As with g_cond_wait() it is possible that a spurious or stolen wakeup - * could occur. For that reason, waiting on a condition variable should - * always be in a loop, based on an explicitly-checked predicate. - * - * %TRUE is returned if the condition variable was signalled (or in the - * case of a spurious wakeup). %FALSE is returned if @end_time has - * passed. - * - * The following code shows how to correctly perform a timed wait on a - * condition variable (extending the example presented in the - * documentation for #GCond): - * - * |[ - * gpointer - * pop_data_timed (void) - * { - * gint64 end_time; - * gpointer data; - * - * g_mutex_lock (&data_mutex); - * - * end_time = g_get_monotonic_time () + 5 * G_TIME_SPAN_SECOND; - * while (!current_data) - * if (!g_cond_wait_until (&data_cond, &data_mutex, end_time)) - * { - * // timeout has passed. - * g_mutex_unlock (&data_mutex); - * return NULL; - * } - * - * // there is data for us - * data = current_data; - * current_data = NULL; - * - * g_mutex_unlock (&data_mutex); - * - * return data; - * } - * ]| - * - * Notice that the end time is calculated once, before entering the - * loop and reused. This is the motivation behind the use of absolute - * time on this API -- if a relative time of 5 seconds were passed - * directly to the call and a spurious wakeup occurred, the program would - * have to start over waiting again (which would lead to a total wait - * time of more than 5 seconds). - * - * Params: - * mutex = a #GMutex that is currently locked - * endTime = the monotonic time to wait until - * - * Returns: %TRUE on a signal, %FALSE on a timeout - * - * Since: 2.32 - */ - public bool waitUntil(Mutex mutex, long endTime) - { - return g_cond_wait_until(gCond, (mutex is null) ? null : mutex.getMutexStruct(), endTime) != 0; - } -} diff --git a/generated/gtkd/glib/ConstructionException.d b/generated/gtkd/glib/ConstructionException.d deleted file mode 100644 index 17cd57486..000000000 --- a/generated/gtkd/glib/ConstructionException.d +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.ConstructionException; - -private import glib.c.functions; -public import glib.c.types; - - -/** */ -class ConstructionException : Exception -{ - this(string message) - { - super(message); - } - - override string toString() - { - return "Construction failure, " ~ msg; - } -} - -/** - */ diff --git a/generated/gtkd/glib/DataList.d b/generated/gtkd/glib/DataList.d deleted file mode 100644 index d525bbea9..000000000 --- a/generated/gtkd/glib/DataList.d +++ /dev/null @@ -1,274 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.DataList; - -private import glib.Str; -private import glib.c.functions; -public import glib.c.types; - - -/** */ -public struct DataList -{ - - /** - * Frees all the data elements of the datalist. - * The data elements' destroy functions are called - * if they have been set. - * - * Params: - * datalist = a datalist. - */ - public static void clear(GData** datalist) - { - g_datalist_clear(datalist); - } - - alias foreac = foreach_; - /** - * Calls the given function for each data element of the datalist. The - * function is called with each data element's #GQuark id and data, - * together with the given @user_data parameter. Note that this - * function is NOT thread-safe. So unless @datalist can be protected - * from any modifications during invocation of this function, it should - * not be called. - * - * @func can make changes to @datalist, but the iteration will not - * reflect changes made during the g_datalist_foreach() call, other - * than skipping over elements that are removed. - * - * Params: - * datalist = a datalist. - * func = the function to call for each data element. - * userData = user data to pass to the function. - */ - public static void foreach_(GData** datalist, GDataForeachFunc func, void* userData) - { - g_datalist_foreach(datalist, func, userData); - } - - /** - * Gets a data element, using its string identifier. This is slower than - * g_datalist_id_get_data() because it compares strings. - * - * Params: - * datalist = a datalist. - * key = the string identifying a data element. - * - * Returns: the data element, or %NULL if it - * is not found. - */ - public static void* getData(GData** datalist, string key) - { - return g_datalist_get_data(datalist, Str.toStringz(key)); - } - - /** - * Gets flags values packed in together with the datalist. - * See g_datalist_set_flags(). - * - * Params: - * datalist = pointer to the location that holds a list - * - * Returns: the flags of the datalist - * - * Since: 2.8 - */ - public static uint getFlags(GData** datalist) - { - return g_datalist_get_flags(datalist); - } - - /** - * This is a variant of g_datalist_id_get_data() which - * returns a 'duplicate' of the value. @dup_func defines the - * meaning of 'duplicate' in this context, it could e.g. - * take a reference on a ref-counted object. - * - * If the @key_id is not set in the datalist then @dup_func - * will be called with a %NULL argument. - * - * Note that @dup_func is called while the datalist is locked, so it - * is not allowed to read or modify the datalist. - * - * This function can be useful to avoid races when multiple - * threads are using the same datalist and the same key. - * - * Params: - * datalist = location of a datalist - * keyId = the #GQuark identifying a data element - * dupFunc = function to duplicate the old value - * userData = passed as user_data to @dup_func - * - * Returns: the result of calling @dup_func on the value - * associated with @key_id in @datalist, or %NULL if not set. - * If @dup_func is %NULL, the value is returned unmodified. - * - * Since: 2.34 - */ - public static void* idDupData(GData** datalist, GQuark keyId, GDuplicateFunc dupFunc, void* userData) - { - return g_datalist_id_dup_data(datalist, keyId, dupFunc, userData); - } - - /** - * Retrieves the data element corresponding to @key_id. - * - * Params: - * datalist = a datalist. - * keyId = the #GQuark identifying a data element. - * - * Returns: the data element, or %NULL if - * it is not found. - */ - public static void* idGetData(GData** datalist, GQuark keyId) - { - return g_datalist_id_get_data(datalist, keyId); - } - - /** - * Removes an element, without calling its destroy notification - * function. - * - * Params: - * datalist = a datalist. - * keyId = the #GQuark identifying a data element. - * - * Returns: the data previously stored at @key_id, - * or %NULL if none. - */ - public static void* idRemoveNoNotify(GData** datalist, GQuark keyId) - { - return g_datalist_id_remove_no_notify(datalist, keyId); - } - - /** - * Compares the member that is associated with @key_id in - * @datalist to @oldval, and if they are the same, replace - * @oldval with @newval. - * - * This is like a typical atomic compare-and-exchange - * operation, for a member of @datalist. - * - * If the previous value was replaced then ownership of the - * old value (@oldval) is passed to the caller, including - * the registered destroy notify for it (passed out in @old_destroy). - * Its up to the caller to free this as he wishes, which may - * or may not include using @old_destroy as sometimes replacement - * should not destroy the object in the normal way. - * - * Params: - * datalist = location of a datalist - * keyId = the #GQuark identifying a data element - * oldval = the old value to compare against - * newval = the new value to replace it with - * destroy = destroy notify for the new value - * oldDestroy = destroy notify for the existing value - * - * Returns: %TRUE if the existing value for @key_id was replaced - * by @newval, %FALSE otherwise. - * - * Since: 2.34 - */ - public static bool idReplaceData(GData** datalist, GQuark keyId, void* oldval, void* newval, GDestroyNotify destroy, out GDestroyNotify oldDestroy) - { - return g_datalist_id_replace_data(datalist, keyId, oldval, newval, destroy, &oldDestroy) != 0; - } - - /** - * Sets the data corresponding to the given #GQuark id, and the - * function to be called when the element is removed from the datalist. - * Any previous data with the same key is removed, and its destroy - * function is called. - * - * Params: - * datalist = a datalist. - * keyId = the #GQuark to identify the data element. - * data = the data element or %NULL to remove any previous element - * corresponding to @key_id. - * destroyFunc = the function to call when the data element is - * removed. This function will be called with the data - * element and can be used to free any memory allocated - * for it. If @data is %NULL, then @destroy_func must - * also be %NULL. - */ - public static void idSetDataFull(GData** datalist, GQuark keyId, void* data, GDestroyNotify destroyFunc) - { - g_datalist_id_set_data_full(datalist, keyId, data, destroyFunc); - } - - /** - * Resets the datalist to %NULL. It does not free any memory or call - * any destroy functions. - * - * Params: - * datalist = a pointer to a pointer to a datalist. - */ - public static void init(GData** datalist) - { - g_datalist_init(datalist); - } - - /** - * Turns on flag values for a data list. This function is used - * to keep a small number of boolean flags in an object with - * a data list without using any additional space. It is - * not generally useful except in circumstances where space - * is very tight. (It is used in the base #GObject type, for - * example.) - * - * Params: - * datalist = pointer to the location that holds a list - * flags = the flags to turn on. The values of the flags are - * restricted by %G_DATALIST_FLAGS_MASK (currently - * 3; giving two possible boolean flags). - * A value for @flags that doesn't fit within the mask is - * an error. - * - * Since: 2.8 - */ - public static void setFlags(GData** datalist, uint flags) - { - g_datalist_set_flags(datalist, flags); - } - - /** - * Turns off flag values for a data list. See g_datalist_unset_flags() - * - * Params: - * datalist = pointer to the location that holds a list - * flags = the flags to turn off. The values of the flags are - * restricted by %G_DATALIST_FLAGS_MASK (currently - * 3: giving two possible boolean flags). - * A value for @flags that doesn't fit within the mask is - * an error. - * - * Since: 2.8 - */ - public static void unsetFlags(GData** datalist, uint flags) - { - g_datalist_unset_flags(datalist, flags); - } -} diff --git a/generated/gtkd/glib/DataSet.d b/generated/gtkd/glib/DataSet.d deleted file mode 100644 index 2bfd3bdcc..000000000 --- a/generated/gtkd/glib/DataSet.d +++ /dev/null @@ -1,118 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.DataSet; - -private import glib.c.functions; -public import glib.c.types; - - -/** */ -public struct DataSet -{ - - /** - * Destroys the dataset, freeing all memory allocated, and calling any - * destroy functions set for data elements. - * - * Params: - * datasetLocation = the location identifying the dataset. - */ - public static void destroy(void* datasetLocation) - { - g_dataset_destroy(datasetLocation); - } - - alias foreac = foreach_; - /** - * Calls the given function for each data element which is associated - * with the given location. Note that this function is NOT thread-safe. - * So unless @dataset_location can be protected from any modifications - * during invocation of this function, it should not be called. - * - * @func can make changes to the dataset, but the iteration will not - * reflect changes made during the g_dataset_foreach() call, other - * than skipping over elements that are removed. - * - * Params: - * datasetLocation = the location identifying the dataset. - * func = the function to call for each data element. - * userData = user data to pass to the function. - */ - public static void foreach_(void* datasetLocation, GDataForeachFunc func, void* userData) - { - g_dataset_foreach(datasetLocation, func, userData); - } - - /** - * Gets the data element corresponding to a #GQuark. - * - * Params: - * datasetLocation = the location identifying the dataset. - * keyId = the #GQuark id to identify the data element. - * - * Returns: the data element corresponding to - * the #GQuark, or %NULL if it is not found. - */ - public static void* idGetData(void* datasetLocation, GQuark keyId) - { - return g_dataset_id_get_data(datasetLocation, keyId); - } - - /** - * Removes an element, without calling its destroy notification - * function. - * - * Params: - * datasetLocation = the location identifying the dataset. - * keyId = the #GQuark ID identifying the data element. - * - * Returns: the data previously stored at @key_id, - * or %NULL if none. - */ - public static void* idRemoveNoNotify(void* datasetLocation, GQuark keyId) - { - return g_dataset_id_remove_no_notify(datasetLocation, keyId); - } - - /** - * Sets the data element associated with the given #GQuark id, and also - * the function to call when the data element is destroyed. Any - * previous data with the same key is removed, and its destroy function - * is called. - * - * Params: - * datasetLocation = the location identifying the dataset. - * keyId = the #GQuark id to identify the data element. - * data = the data element. - * destroyFunc = the function to call when the data element is - * removed. This function will be called with the data - * element and can be used to free any memory allocated - * for it. - */ - public static void idSetDataFull(void* datasetLocation, GQuark keyId, void* data, GDestroyNotify destroyFunc) - { - g_dataset_id_set_data_full(datasetLocation, keyId, data, destroyFunc); - } -} diff --git a/generated/gtkd/glib/Date.d b/generated/gtkd/glib/Date.d deleted file mode 100644 index ae70a311a..000000000 --- a/generated/gtkd/glib/Date.d +++ /dev/null @@ -1,902 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.Date; - -private import glib.ConstructionException; -private import glib.MemorySlice; -private import glib.Str; -private import glib.TimeVal; -private import glib.c.functions; -public import glib.c.types; -private import gtkd.Loader; - - -/** - * Represents a day between January 1, Year 1 and a few thousand years in - * the future. None of its members should be accessed directly. - * - * If the #GDate-struct is obtained from g_date_new(), it will be safe - * to mutate but invalid and thus not safe for calendrical computations. - * - * If it's declared on the stack, it will contain garbage so must be - * initialized with g_date_clear(). g_date_clear() makes the date invalid - * but safe. An invalid date doesn't represent a day, it's "empty." A date - * becomes valid after you set it to a Julian day or you set a day, month, - * and year. - */ -public final class Date -{ - /** the main Gtk struct */ - protected GDate* gDate; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDate* getDateStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDate; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDate; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDate* gDate, bool ownedRef = false) - { - this.gDate = gDate; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GLIB) && ownedRef ) - g_date_free(gDate); - } - - - /** - * the Julian representation of the date - */ - public @property uint julianDays() - { - return gDate.julianDays; - } - - /** Ditto */ - public @property void julianDays(uint value) - { - gDate.julianDays = value; - } - - /** - * this bit is set if @julian_days is valid - */ - public @property uint julian() - { - return gDate.julian; - } - - /** Ditto */ - public @property void julian(uint value) - { - gDate.julian = value; - } - - /** - * this is set if @day, @month and @year are valid - */ - public @property uint dmy() - { - return gDate.dmy; - } - - /** Ditto */ - public @property void dmy(uint value) - { - gDate.dmy = value; - } - - /** - * the day of the day-month-year representation of the date, - * as a number between 1 and 31 - */ - public @property uint day() - { - return gDate.day; - } - - /** Ditto */ - public @property void day(uint value) - { - gDate.day = value; - } - - /** - * the day of the day-month-year representation of the date, - * as a number between 1 and 12 - */ - public @property uint month() - { - return gDate.month; - } - - /** Ditto */ - public @property void month(uint value) - { - gDate.month = value; - } - - /** - * the day of the day-month-year representation of the date - */ - public @property uint year() - { - return gDate.year; - } - - /** Ditto */ - public @property void year(uint value) - { - gDate.year = value; - } - - /** - * Allocates a #GDate and initializes - * it to a safe state. The new date will - * be cleared (as if you'd called g_date_clear()) but invalid (it won't - * represent an existing day). Free the return value with g_date_free(). - * - * Returns: a newly-allocated #GDate - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this() - { - auto __p = g_date_new(); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDate*) __p); - } - - /** - * Like g_date_new(), but also sets the value of the date. Assuming the - * day-month-year triplet you pass in represents an existing day, the - * returned date will be valid. - * - * Params: - * day = day of the month - * month = month of the year - * year = year - * - * Returns: a newly-allocated #GDate initialized with @day, @month, and @year - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(GDateDay day, GDateMonth month, GDateYear year) - { - auto __p = g_date_new_dmy(day, month, year); - - if(__p is null) - { - throw new ConstructionException("null returned by new_dmy"); - } - - this(cast(GDate*) __p); - } - - /** - * Like g_date_new(), but also sets the value of the date. Assuming the - * Julian day number you pass in is valid (greater than 0, less than an - * unreasonably large number), the returned date will be valid. - * - * Params: - * julianDay = days since January 1, Year 1 - * - * Returns: a newly-allocated #GDate initialized with @julian_day - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(uint julianDay) - { - auto __p = g_date_new_julian(julianDay); - - if(__p is null) - { - throw new ConstructionException("null returned by new_julian"); - } - - this(cast(GDate*) __p); - } - - /** - * Increments a date some number of days. - * To move forward by weeks, add weeks*7 days. - * The date must be valid. - * - * Params: - * nDays = number of days to move the date forward - */ - public void addDays(uint nDays) - { - g_date_add_days(gDate, nDays); - } - - /** - * Increments a date by some number of months. - * If the day of the month is greater than 28, - * this routine may change the day of the month - * (because the destination month may not have - * the current day in it). The date must be valid. - * - * Params: - * nMonths = number of months to move forward - */ - public void addMonths(uint nMonths) - { - g_date_add_months(gDate, nMonths); - } - - /** - * Increments a date by some number of years. - * If the date is February 29, and the destination - * year is not a leap year, the date will be changed - * to February 28. The date must be valid. - * - * Params: - * nYears = number of years to move forward - */ - public void addYears(uint nYears) - { - g_date_add_years(gDate, nYears); - } - - /** - * If @date is prior to @min_date, sets @date equal to @min_date. - * If @date falls after @max_date, sets @date equal to @max_date. - * Otherwise, @date is unchanged. - * Either of @min_date and @max_date may be %NULL. - * All non-%NULL dates must be valid. - * - * Params: - * minDate = minimum accepted value for @date - * maxDate = maximum accepted value for @date - */ - public void clamp(Date minDate, Date maxDate) - { - g_date_clamp(gDate, (minDate is null) ? null : minDate.getDateStruct(), (maxDate is null) ? null : maxDate.getDateStruct()); - } - - /** - * Initializes one or more #GDate structs to a safe but invalid - * state. The cleared dates will not represent an existing date, but will - * not contain garbage. Useful to init a date declared on the stack. - * Validity can be tested with g_date_valid(). - * - * Params: - * nDates = number of dates to clear - */ - public void clear(uint nDates) - { - g_date_clear(gDate, nDates); - } - - /** - * qsort()-style comparison function for dates. - * Both dates must be valid. - * - * Params: - * rhs = second date to compare - * - * Returns: 0 for equal, less than zero if @lhs is less than @rhs, - * greater than zero if @lhs is greater than @rhs - */ - public int compare(Date rhs) - { - return g_date_compare(gDate, (rhs is null) ? null : rhs.getDateStruct()); - } - - /** - * Copies a GDate to a newly-allocated GDate. If the input was invalid - * (as determined by g_date_valid()), the invalid state will be copied - * as is into the new object. - * - * Returns: a newly-allocated #GDate initialized from @date - * - * Since: 2.56 - */ - public Date copy() - { - auto __p = g_date_copy(gDate); - - if(__p is null) - { - return null; - } - - return new Date(cast(GDate*) __p, true); - } - - /** - * Computes the number of days between two dates. - * If @date2 is prior to @date1, the returned value is negative. - * Both dates must be valid. - * - * Params: - * date2 = the second date - * - * Returns: the number of days between @date1 and @date2 - */ - public int daysBetween(Date date2) - { - return g_date_days_between(gDate, (date2 is null) ? null : date2.getDateStruct()); - } - - /** - * Frees a #GDate returned from g_date_new(). - */ - public void free() - { - g_date_free(gDate); - ownedRef = false; - } - - /** - * Returns the day of the month. The date must be valid. - * - * Returns: day of the month - */ - public GDateDay getDay() - { - return g_date_get_day(gDate); - } - - /** - * Returns the day of the year, where Jan 1 is the first day of the - * year. The date must be valid. - * - * Returns: day of the year - */ - public uint getDayOfYear() - { - return g_date_get_day_of_year(gDate); - } - - /** - * Returns the week of the year, where weeks are interpreted according - * to ISO 8601. - * - * Returns: ISO 8601 week number of the year. - * - * Since: 2.6 - */ - public uint getIso8601WeekOfYear() - { - return g_date_get_iso8601_week_of_year(gDate); - } - - /** - * Returns the Julian day or "serial number" of the #GDate. The - * Julian day is simply the number of days since January 1, Year 1; i.e., - * January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2, - * etc. The date must be valid. - * - * Returns: Julian day - */ - public uint getJulian() - { - return g_date_get_julian(gDate); - } - - /** - * Returns the week of the year, where weeks are understood to start on - * Monday. If the date is before the first Monday of the year, return 0. - * The date must be valid. - * - * Returns: week of the year - */ - public uint getMondayWeekOfYear() - { - return g_date_get_monday_week_of_year(gDate); - } - - /** - * Returns the month of the year. The date must be valid. - * - * Returns: month of the year as a #GDateMonth - */ - public GDateMonth getMonth() - { - return g_date_get_month(gDate); - } - - /** - * Returns the week of the year during which this date falls, if - * weeks are understood to begin on Sunday. The date must be valid. - * Can return 0 if the day is before the first Sunday of the year. - * - * Returns: week number - */ - public uint getSundayWeekOfYear() - { - return g_date_get_sunday_week_of_year(gDate); - } - - /** - * Returns the day of the week for a #GDate. The date must be valid. - * - * Returns: day of the week as a #GDateWeekday. - */ - public GDateWeekday getWeekday() - { - return g_date_get_weekday(gDate); - } - - /** - * Returns the year of a #GDate. The date must be valid. - * - * Returns: year in which the date falls - */ - public GDateYear getYear() - { - return g_date_get_year(gDate); - } - - /** - * Returns %TRUE if the date is on the first of a month. - * The date must be valid. - * - * Returns: %TRUE if the date is the first of the month - */ - public bool isFirstOfMonth() - { - return g_date_is_first_of_month(gDate) != 0; - } - - /** - * Returns %TRUE if the date is the last day of the month. - * The date must be valid. - * - * Returns: %TRUE if the date is the last day of the month - */ - public bool isLastOfMonth() - { - return g_date_is_last_of_month(gDate) != 0; - } - - /** - * Checks if @date1 is less than or equal to @date2, - * and swap the values if this is not the case. - * - * Params: - * date2 = the second date - */ - public void order(Date date2) - { - g_date_order(gDate, (date2 is null) ? null : date2.getDateStruct()); - } - - /** - * Sets the day of the month for a #GDate. If the resulting - * day-month-year triplet is invalid, the date will be invalid. - * - * Params: - * day = day to set - */ - public void setDay(GDateDay day) - { - g_date_set_day(gDate, day); - } - - /** - * Sets the value of a #GDate from a day, month, and year. - * The day-month-year triplet must be valid; if you aren't - * sure it is, call g_date_valid_dmy() to check before you - * set it. - * - * Params: - * day = day - * month = month - * y = year - */ - public void setDmy(GDateDay day, GDateMonth month, GDateYear y) - { - g_date_set_dmy(gDate, day, month, y); - } - - /** - * Sets the value of a #GDate from a Julian day number. - * - * Params: - * julianDate = Julian day number (days since January 1, Year 1) - */ - public void setJulian(uint julianDate) - { - g_date_set_julian(gDate, julianDate); - } - - /** - * Sets the month of the year for a #GDate. If the resulting - * day-month-year triplet is invalid, the date will be invalid. - * - * Params: - * month = month to set - */ - public void setMonth(GDateMonth month) - { - g_date_set_month(gDate, month); - } - - /** - * Parses a user-inputted string @str, and try to figure out what date it - * represents, taking the [current locale][setlocale] into account. If the - * string is successfully parsed, the date will be valid after the call. - * Otherwise, it will be invalid. You should check using g_date_valid() - * to see whether the parsing succeeded. - * - * This function is not appropriate for file formats and the like; it - * isn't very precise, and its exact behavior varies with the locale. - * It's intended to be a heuristic routine that guesses what the user - * means by a given string (and it does work pretty well in that - * capacity). - * - * Params: - * str = string to parse - */ - public void setParse(string str) - { - g_date_set_parse(gDate, Str.toStringz(str)); - } - - /** - * Sets the value of a date from a #GTime value. - * The time to date conversion is done using the user's current timezone. - * - * Deprecated: Use g_date_set_time_t() instead. - * - * Params: - * time = #GTime value to set. - */ - public void setTime(GTime time) - { - g_date_set_time(gDate, time); - } - - /** - * Sets the value of a date to the date corresponding to a time - * specified as a time_t. The time to date conversion is done using - * the user's current timezone. - * - * To set the value of a date to the current day, you could write: - * |[ - * time_t now = time (NULL); - * if (now == (time_t) -1) - * // handle the error - * g_date_set_time_t (date, now); - * ]| - * - * Params: - * timet = time_t value to set - * - * Since: 2.10 - */ - public void set_time_t(uint timet) - { - g_date_set_time_t(gDate, timet); - } - - /** - * Sets the value of a date from a #GTimeVal value. Note that the - * @tv_usec member is ignored, because #GDate can't make use of the - * additional precision. - * - * The time to date conversion is done using the user's current timezone. - * - * Deprecated: #GTimeVal is not year-2038-safe. Use g_date_set_time_t() - * instead. - * - * Params: - * timeval = #GTimeVal value to set - * - * Since: 2.10 - */ - public void setTimeVal(TimeVal timeval) - { - g_date_set_time_val(gDate, (timeval is null) ? null : timeval.getTimeValStruct()); - } - - /** - * Sets the year for a #GDate. If the resulting day-month-year - * triplet is invalid, the date will be invalid. - * - * Params: - * year = year to set - */ - public void setYear(GDateYear year) - { - g_date_set_year(gDate, year); - } - - /** - * Moves a date some number of days into the past. - * To move by weeks, just move by weeks*7 days. - * The date must be valid. - * - * Params: - * nDays = number of days to move - */ - public void subtractDays(uint nDays) - { - g_date_subtract_days(gDate, nDays); - } - - /** - * Moves a date some number of months into the past. - * If the current day of the month doesn't exist in - * the destination month, the day of the month - * may change. The date must be valid. - * - * Params: - * nMonths = number of months to move - */ - public void subtractMonths(uint nMonths) - { - g_date_subtract_months(gDate, nMonths); - } - - /** - * Moves a date some number of years into the past. - * If the current day doesn't exist in the destination - * year (i.e. it's February 29 and you move to a non-leap-year) - * then the day is changed to February 29. The date - * must be valid. - * - * Params: - * nYears = number of years to move - */ - public void subtractYears(uint nYears) - { - g_date_subtract_years(gDate, nYears); - } - - /** - * Fills in the date-related bits of a struct tm using the @date value. - * Initializes the non-date parts with something safe but meaningless. - * - * Params: - * tm = struct tm to fill - */ - public void toStructTm(void* tm) - { - g_date_to_struct_tm(gDate, tm); - } - - /** - * Returns %TRUE if the #GDate represents an existing day. The date must not - * contain garbage; it should have been initialized with g_date_clear() - * if it wasn't allocated by one of the g_date_new() variants. - * - * Returns: Whether the date is valid - */ - public bool valid() - { - return g_date_valid(gDate) != 0; - } - - /** - * Returns the number of days in a month, taking leap - * years into account. - * - * Params: - * month = month - * year = year - * - * Returns: number of days in @month during the @year - */ - public static ubyte getDaysInMonth(GDateMonth month, GDateYear year) - { - return g_date_get_days_in_month(month, year); - } - - /** - * Returns the number of weeks in the year, where weeks - * are taken to start on Monday. Will be 52 or 53. The - * date must be valid. (Years always have 52 7-day periods, - * plus 1 or 2 extra days depending on whether it's a leap - * year. This function is basically telling you how many - * Mondays are in the year, i.e. there are 53 Mondays if - * one of the extra days happens to be a Monday.) - * - * Params: - * year = a year - * - * Returns: number of Mondays in the year - */ - public static ubyte getMondayWeeksInYear(GDateYear year) - { - return g_date_get_monday_weeks_in_year(year); - } - - /** - * Returns the number of weeks in the year, where weeks - * are taken to start on Sunday. Will be 52 or 53. The - * date must be valid. (Years always have 52 7-day periods, - * plus 1 or 2 extra days depending on whether it's a leap - * year. This function is basically telling you how many - * Sundays are in the year, i.e. there are 53 Sundays if - * one of the extra days happens to be a Sunday.) - * - * Params: - * year = year to count weeks in - * - * Returns: the number of weeks in @year - */ - public static ubyte getSundayWeeksInYear(GDateYear year) - { - return g_date_get_sunday_weeks_in_year(year); - } - - /** - * Returns %TRUE if the year is a leap year. - * - * For the purposes of this function, leap year is every year - * divisible by 4 unless that year is divisible by 100. If it - * is divisible by 100 it would be a leap year only if that year - * is also divisible by 400. - * - * Params: - * year = year to check - * - * Returns: %TRUE if the year is a leap year - */ - public static bool isLeapYear(GDateYear year) - { - return g_date_is_leap_year(year) != 0; - } - - /** - * Generates a printed representation of the date, in a - * [locale][setlocale]-specific way. - * Works just like the platform's C library strftime() function, - * but only accepts date-related formats; time-related formats - * give undefined results. Date must be valid. Unlike strftime() - * (which uses the locale encoding), works on a UTF-8 format - * string and stores a UTF-8 result. - * - * This function does not provide any conversion specifiers in - * addition to those implemented by the platform's C library. - * For example, don't expect that using g_date_strftime() would - * make the \%F provided by the C99 strftime() work on Windows - * where the C library only complies to C89. - * - * Params: - * s = destination buffer - * slen = buffer size - * format = format string - * date = valid #GDate - * - * Returns: number of characters written to the buffer, or 0 the buffer was too small - */ - public static size_t strftime(string s, size_t slen, string format, Date date) - { - return g_date_strftime(Str.toStringz(s), slen, Str.toStringz(format), (date is null) ? null : date.getDateStruct()); - } - - /** - * Returns %TRUE if the day of the month is valid (a day is valid if it's - * between 1 and 31 inclusive). - * - * Params: - * day = day to check - * - * Returns: %TRUE if the day is valid - */ - public static bool validDay(GDateDay day) - { - return g_date_valid_day(day) != 0; - } - - /** - * Returns %TRUE if the day-month-year triplet forms a valid, existing day - * in the range of days #GDate understands (Year 1 or later, no more than - * a few thousand years in the future). - * - * Params: - * day = day - * month = month - * year = year - * - * Returns: %TRUE if the date is a valid one - */ - public static bool validDmy(GDateDay day, GDateMonth month, GDateYear year) - { - return g_date_valid_dmy(day, month, year) != 0; - } - - /** - * Returns %TRUE if the Julian day is valid. Anything greater than zero - * is basically a valid Julian, though there is a 32-bit limit. - * - * Params: - * julianDate = Julian day to check - * - * Returns: %TRUE if the Julian day is valid - */ - public static bool validJulian(uint julianDate) - { - return g_date_valid_julian(julianDate) != 0; - } - - /** - * Returns %TRUE if the month value is valid. The 12 #GDateMonth - * enumeration values are the only valid months. - * - * Params: - * month = month - * - * Returns: %TRUE if the month is valid - */ - public static bool validMonth(GDateMonth month) - { - return g_date_valid_month(month) != 0; - } - - /** - * Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration - * values are the only valid weekdays. - * - * Params: - * weekday = weekday - * - * Returns: %TRUE if the weekday is valid - */ - public static bool validWeekday(GDateWeekday weekday) - { - return g_date_valid_weekday(weekday) != 0; - } - - /** - * Returns %TRUE if the year is valid. Any year greater than 0 is valid, - * though there is a 16-bit limit to what #GDate will understand. - * - * Params: - * year = year - * - * Returns: %TRUE if the year is valid - */ - public static bool validYear(GDateYear year) - { - return g_date_valid_year(year) != 0; - } -} diff --git a/generated/gtkd/glib/DateTime.d b/generated/gtkd/glib/DateTime.d deleted file mode 100644 index 9579358f3..000000000 --- a/generated/gtkd/glib/DateTime.d +++ /dev/null @@ -1,1216 +0,0 @@ -/* - * This file is part of gtkD. - * - * gtkD is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version, with - * some exceptions, please read the COPYING file. - * - * gtkD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with gtkD; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA - */ - -// generated automatically - do not change -// find conversion definition on APILookup.txt -// implement new conversion functionalities on the wrap.utils pakage - - -module glib.DateTime; - -private import glib.ConstructionException; -private import glib.Str; -private import glib.TimeVal; -private import glib.TimeZone; -private import glib.c.functions; -public import glib.c.types; -private import gtkd.Loader; - - -/** - * `GDateTime` is an opaque structure whose members - * cannot be accessed directly. - * - * Since: 2.26 - */ -public class DateTime -{ - /** the main Gtk struct */ - protected GDateTime* gDateTime; - protected bool ownedRef; - - /** Get the main Gtk struct */ - public GDateTime* getDateTimeStruct(bool transferOwnership = false) - { - if (transferOwnership) - ownedRef = false; - return gDateTime; - } - - /** the main Gtk struct as a void* */ - protected void* getStruct() - { - return cast(void*)gDateTime; - } - - /** - * Sets our main struct and passes it to the parent class. - */ - public this (GDateTime* gDateTime, bool ownedRef = false) - { - this.gDateTime = gDateTime; - this.ownedRef = ownedRef; - } - - ~this () - { - if ( Linker.isLoaded(LIBRARY_GLIB) && ownedRef ) - g_date_time_unref(gDateTime); - } - - /** - * Creates a DateTime corresponding to the given Unix time t - * Unix time is the number of seconds that have elapsed since 1970-01-01 - * 00:00:00 UTC, regardless of the local time offset. - * - * This call can fail (ConstructionException) if t represents a time outside - * of the supported range of GDateTime. - * You should release the return value by calling unref() - * when you are done with it - * - * Params: - * t = the Unix time - * utc = If true use utc else use the local timezone. - * - * Throws: ConstructionException GTK+ fails to create the object. - * - * Since: 2.26 - */ - public this (long t, bool utc = true) - { - GDateTime* p; - - if ( utc ) - { - p = g_date_time_new_from_unix_utc(t); - } - else - { - p = g_date_time_new_from_unix_local(t); - } - - if(p is null) - { - throw new ConstructionException("null returned by g_date_time_new_from_unix_local(t)"); - } - this(cast(GDateTime*) p); - } - - /** - * Creates a DateTime corresponding to the given TimeVal tv. - * The time contained in a TimeVal is always stored in the form of - * seconds elapsed since 1970-01-01 00:00:00 UTC, regardless of the - * local time offset. - * - * This call can fail (ConstructionException) if tv represents a time outside - * of the supported range of DateTime. - * You should release the return value by calling unref() - * when you are done with it. - * - * Params: - * tv = a GTimeVal - * utc = If true use utc else use the local timezone. - * - * Throws: ConstructionException GTK+ fails to create the object. - * - * Since: 2.26 - */ - public this (ref GTimeVal tv, bool utc = true) - { - GDateTime* p; - - if ( utc ) - { - p = g_date_time_new_from_timeval_utc(&tv); - } - else - { - p = g_date_time_new_from_timeval_local(&tv); - } - - if(p is null) - { - throw new ConstructionException("null returned by g_date_time_new_from_timeval_local((tv is null) ? null : tv.getTimeValStruct())"); - } - this(cast(GDateTime*) p); - } - - /** */ - override bool opEquals(Object rhs) - { - DateTime date = cast(DateTime)rhs; - - if ( date is null ) - return false; - - return equal(date) != 0; - } - - /** */ - override int opCmp(Object rhs) - { - DateTime date = cast(DateTime)rhs; - - if ( date is null ) - return int.min; - - return compare(date); - } - - /** */ - override nothrow @trusted hash_t toHash() - { - return hash(); - } - - /** - * Hashes datetime into a guint, suitable for use within GHashTable. - * Since 2.26 - * Params: - * datetime = a GDateTime - * Returns: a guint containing the hash - */ - public nothrow @trusted uint hash() - { - try - { - return g_date_time_hash(gDateTime); - } - catch(Exception e) - { - return 0; - } - } - - /** - */ - - /** - * Creates a new #GDateTime corresponding to the given date and time in - * the time zone @tz. - * - * The @year must be between 1 and 9999, @month between 1 and 12 and @day - * between 1 and 28, 29, 30 or 31 depending on the month and the year. - * - * @hour must be between 0 and 23 and @minute must be between 0 and 59. - * - * @seconds must be at least 0.0 and must be strictly less than 60.0. - * It will be rounded down to the nearest microsecond. - * - * If the given time is not representable in the given time zone (for - * example, 02:30 on March 14th 2010 in Toronto, due to daylight savings - * time) then the time will be rounded up to the nearest existing time - * (in this case, 03:00). If this matters to you then you should verify - * the return value for containing the same as the numbers you gave. - * - * In the case that the given time is ambiguous in the given time zone - * (for example, 01:30 on November 7th 2010 in Toronto, due to daylight - * savings time) then the time falling within standard (ie: - * non-daylight) time is taken. - * - * It not considered a programmer error for the values to this function - * to be out of range, but in the case that they are, the function will - * return %NULL. - * - * You should release the return value by calling g_date_time_unref() - * when you are done with it. - * - * Params: - * tz = a #GTimeZone - * year = the year component of the date - * month = the month component of the date - * day = the day component of the date - * hour = the hour component of the date - * minute = the minute component of the date - * seconds = the number of seconds past the minute - * - * Returns: a new #GDateTime, or %NULL - * - * Since: 2.26 - * - * Throws: ConstructionException GTK+ fails to create the object. - */ - public this(TimeZone tz, int year, int month, int day, int hour, int minute, double seconds) - { - auto __p = g_date_time_new((tz is null) ? null : tz.getTimeZoneStruct(), year, month, day, hour, minute, seconds); - - if(__p is null) - { - throw new ConstructionException("null returned by new"); - } - - this(cast(GDateTime*) __p); - } - - /** - * Creates a #GDateTime corresponding to the given - * [ISO 8601 formatted string](https://en.wikipedia.org/wiki/ISO_8601) - * @text. ISO 8601 strings of the form